1// scroll to top button 2jQuery( document ).ready( function ( $ ) { 3 // Menu fixes 4 $( function () { 5 if ( $( window ).width() > 767 ) { 6 $( ".dropdown" ).hover( 7 function () { 8 $( this ).addClass( 'open' ) 9 }, 10 function () { 11 $( this ).removeClass( 'open' ) 12 } 13 ); 14 } 15 } ); 16 $( '.navbar .dropdown-toggle' ).hover( function () { 17 $( this ).addClass( 'disabled' ); 18 } ); 19 $( window ).scroll( function () { 20 var topmenu = $( '.top-menu-on #top-navigation' ).outerHeight(); 21 if ( $( document ).scrollTop() > ( topmenu + 50 ) ) { 22 $( 'nav#site-navigation' ).addClass( 'shrink' ); 23 } else { 24 $( 'nav#site-navigation' ).removeClass( 'shrink' ); 25 } 26 } ); 27 28 $('.open-panel').each(function(){ 29 var menu = $( this ).data( 'panel' ); 30 $( "#" +menu ).click( function () { 31 $( "#blog" ).toggleClass( "openNav" ); 32 $( "#" +menu+ ".open-panel" ).toggleClass( "open" ); 33 var navHeight = jQuery( '#site-navigation' ).height(); 34 } ); 35 }); 36 37} ); 38 39jQuery( window ).on( 'load resize', function () { 40 var navHeight = jQuery( '#site-navigation' ).height(); 41 jQuery( '.page-area' ).css( 'padding-top', navHeight + 'px' ); 42 43 // Mobile menu height fix 44 if ( jQuery( window ).width() < 768 ) { 45 var vindowHeight = jQuery( window ).height(); 46 jQuery( '.menu-container' ).css( 'max-height', vindowHeight - navHeight + 'px' ); 47 jQuery( '.menu-container' ).css( 'padding-bottom', '60px' ); 48 } 49} );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.