1/*global window, jQuery, document */ 2(function($) { 3 4var scrollSpy = $('#quicksearch-scrollspy'); 5 6function searchScrollspy() { 7 8 if ( scrollSpy.length === 0 ) { 9 return; 10 } 11 12 $(window).scroll(function() { 13 14 var y = $(window).scrollTop(); 15 16 if ( $(document).width() > 767 ) { 17 if ( y > 500 ) { 18 scrollSpy.slideDown('slow'); 19 } else { 20 scrollSpy.slideUp(); 21 } 22 } 23 }); 24} 25 26$(document).ready(function() { 27 28 searchScrollspy(); 29 30}); 31 32$(document).resize(function() { 33 34 if ( scrollSpy.length !== 0 ) { 35 searchScrollspy(); 36 } 37 38}); 39 40})(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.