1( function( $ ) { 2 3 $(document).ready(function($){ 4 5 // Trigger mobile menu. 6 $('#mobile-trigger').sidr({ 7 timing: 'ease-in-out', 8 speed: 500, 9 source: '#mob-menu', 10 name: 'sidr-main' 11 }); 12 13 // Search in Header 14 if( $('#btn-search-icon').length > 0 ) { 15 $('#btn-search-icon').click(function(e){ 16 e.preventDefault(); 17 $( '#header-search-form' ).fadeToggle(); 18 }); 19 20 } 21 // Implement go to top 22 if ( $('#btn-scrollup').length > 0 ) { 23 24 $(window).scroll(function(){ 25 if ($(this).scrollTop() > 100) { 26 $('#btn-scrollup').fadeIn('slow'); 27 } else { 28 $('#btn-scrollup').fadeOut('slow'); 29 } 30 }); 31 32 $('#btn-scrollup').click(function(){ 33 $('html, body').animate({ scrollTop: 0 }, 600); 34 return false; 35 }); 36 37 } 38 // Implement sticky menu. 39 if( $('body').hasClass('sticky-menu-enabled') ){ 40 $( window ).scroll(function () { 41 if ( $( window ).scrollTop() > $( '#site-navigation' ).offset().top && ! ($( '#site-navigation' ).hasClass( 'fixed' ))) { 42 $( '#site-navigation' ).addClass( 'fixed' ); 43 } else if ( 0 === $( window ).scrollTop() ) { 44 $( '#site-navigation' ).removeClass( 'fixed' ); 45 } 46 }); 47 } 48 49 }); 50 51} )( jQuery );
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.