1( function( $ ) { 2 $( document ).ready( function() { 3 $('.snav i').click(function(){ 4 if (!$(this).parent().hasClass('On')) { 5 $('.snav div').removeClass('On'); 6 } 7 $(this).parent().toggleClass('On'); 8 }); 9 10 $('#toTop').hide(); 11 $(window).scroll(function () { 12 if ($(this).scrollTop() > 100) { 13 $('#toTop').fadeIn(); 14 } else { 15 $('#toTop').fadeOut(); 16 } 17 }); 18 19 $('#toTop a').click(function(){ 20 var speed = 800; 21 var href = $(this).attr("href"); 22 var target = $(href === "#masthead" || href === "" ? 'html' : href); 23 var position = target.offset().top; 24 $("html, body").animate({scrollTop:position}, speed, "swing"); 25 return false; 26 }); 27 } ); 28} )( 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.