Changes in [1989:b234959829da:1991:72ab5d2aff52]
- Location:
- admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/common.js
r1946 r1990 221 221 222 222 $('#content').append(img); 223 224 // listen for scroll 225 var peInPage = $('#help-button').offset().top; 226 $('#help-button').addClass("floatable"); 227 var peInFloat = $('#help-button').offset().top; 228 $('#help-button').removeClass("floatable"); 229 $(window).scroll( 230 function() { 231 if ($(window).scrollTop() >= peInPage - peInFloat ) { 232 $('#help-button').addClass("floatable"); 233 } else { 234 $('#help-button').removeClass("floatable"); 235 } 236 } 237 ); 223 238 224 239 return this; -
admin/style/default.css
r1979 r1991 1137 1137 border-top-left-radius: 1em; 1138 1138 } 1139 #help-button.floatable { 1140 border-radius: 2em; 1141 background-color: #f5f5f5; 1142 position: fixed; 1143 top: 10px; 1144 } 1139 1145 .help-box { 1140 1146 display: none;
Note: See TracChangeset
for help on using the changeset viewer.