1jQuery(document).ready(function(){ 2 3 4 // Smooth scroll up 5 6 jQuery(window).scroll(function(){ 7 if (jQuery(this).scrollTop() > 100) { 8 jQuery('.scrollup').fadeIn(); 9 } else { 10 jQuery('.scrollup').fadeOut(); 11 } 12 }); 13 14 jQuery('.scrollup').click(function(){ 15 jQuery("html, body").animate({ scrollTop: 0 }, 600); 16 return false; 17 }); 18 19 20 // Dropdown menu in small screen 21 22 jQuery("<select />").appendTo("#primarynav,#primarynav-footer"); 23 24 jQuery("<option />",{ 25 "selected": "selected", 26 "value" : "", 27 "text" : "Site Menu" // default <option> to display in dropdown 28 }).appendTo("#primarynav select,#primarynav-footer select"); 29 30 jQuery("#primarynav a").each(function() { 31 var el = jQuery(this); 32 jQuery("<option />", { 33 "value" : el.attr("href"), 34 "text" : el.text() 35 }).appendTo("#primarynav select,#primarynav-footer select"); 36 }); 37 38 jQuery("#primarynav select,#primarynav-footer select").change(function() { 39 window.location = jQuery(this).find("option:selected").val(); 40 }); 41 42});
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.