Dotclear


Ignore:
Location:
admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/js/common.js

    r1946 r1990  
    221221 
    222222     $('#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     ); 
    223238 
    224239     return this; 
  • admin/style/default.css

    r1979 r1991  
    11371137          border-top-left-radius: 1em; 
    11381138          } 
     1139     #help-button.floatable { 
     1140          border-radius: 2em; 
     1141          background-color: #f5f5f5; 
     1142          position: fixed; 
     1143          top: 10px; 
     1144          } 
    11391145.help-box { 
    11401146     display: none; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map