1// Auto scrolling to top of post module when FacetWP pagination is used 2 3jQuery(document).ready(function($){ 4 var firstFacetsLoaded = false; 5 $(document).on('facetwp-loaded', function() { 6 // Scroll to results 7 var verticalOffset = 150, 8 speed = 1000; 9 10 // Prevent the first scroll 11 if ( firstFacetsLoaded ) { 12 $('html, body').animate({ 13 scrollTop: jQuery(".facetwp-template").offset().top - verticalOffset 14 }, speed); 15 } else { 16 firstFacetsLoaded = true; 17 // Code runs only on the first FWP load 18 } 19 }); 20})
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.