1$(function(){ 2 var windowWidth = $(window).width(); 3 var windowSm = 768; 4 if (windowWidth <= windowSm) { 5 $('a[href^=#]').click(function() { 6 var speed = 400; 7 var sclpos = 0; 8 var href= $(this).attr("href"); 9 var target = $(href == "#" || href == "" ? 'html' : href); 10 var position = target.offset().top - sclpos; 11 $('body,html').animate({scrollTop:position}, speed, 'swing'); 12 return false; 13 }); 14 } else { 15 $('a[href^=#]').click(function() { 16 var speed = 400; 17 var sclpos = 0; 18 var href= $(this).attr("href"); 19 var target = $(href == "#" || href == "" ? 'html' : href); 20 var position = target.offset().top - sclpos; 21 $('body,html').animate({scrollTop:position}, speed, 'swing'); 22 return false; 23 }); 24 } 25}); 26 27(function($) { 28 $(function() { 29 var $header = $('#head_nav'); 30 31 // Nav Toggle Button 32 $('#nav-toggle').click(function(){ 33 $header.toggleClass('open'); 34 $("#global-nav-sp").fadeToggle(500); 35 }); 36 $('#global-nav-sp ul li a').click(function(){ 37 $header.toggleClass('open'); 38 $("#global-nav-sp").fadeToggle(500); 39 }); 40 }); 41})(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.