1jQuery('document').ready(function ($){ 2 $('.menu-toggle').click(function () { 3 $('#primary-menu').slideToggle() 4 }) 5 6 7 // Initialize gototop for carousel 8 if ( $('#toTop').length > 0 ) { 9 // Hide the toTop button when the page loads. 10 $("#toTop").css("display", "none"); 11 12 // This function runs every time the user scrolls the page. 13 $(window).scroll(function(){ 14 15 // Check weather the user has scrolled down (if "scrollTop()"" is more than 0) 16 if($(window).scrollTop() > 0){ 17 18 // If it's more than or equal to 0, show the toTop button. 19 $("#toTop").fadeIn("slow"); 20 } 21 else { 22 // If it's less than 0 (at the top), hide the toTop button. 23 $("#toTop").fadeOut("slow"); 24 25 } 26 }); 27 28 // When the user clicks the toTop button, we want the page to scroll to the top. 29 jQuery("#toTop").click(function($){ 30 31 // Disable the default behaviour when a user clicks an empty anchor link. 32 // (The page jumps to the top instead of // animating) 33 event.preventDefault(); 34 35 // Animate the scrolling motion. 36 jQuery("html, body").animate({ 37 scrollTop:0 38 },"slow"); 39 40 }); 41 } 42//sticky sidebar 43 var at_body = $("body"); 44 var at_window = $(window); 45 46 if(at_body.hasClass('at-sticky-sidebar')){ 47 if(at_body.hasClass('right-sidebar')){ 48 $('#secondary, #primary').theiaStickySidebar(); 49 } 50 else{ 51 $('#secondary, #primary').theiaStickySidebar(); 52 } 53 } 54})
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.