1/* global woodmart_settings */ 2(function($) { 3 woodmartThemeModule.scrollTop = function() { 4 var $scrollTop = $('.scrollToTop'); 5 6 woodmartThemeModule.$window.on('scroll', function() { 7 if ($(this).scrollTop() > 100) { 8 $scrollTop.addClass('button-show'); 9 } else { 10 $scrollTop.removeClass('button-show'); 11 } 12 }); 13 14 $scrollTop.on('click', function() { 15 $('html, body').animate({ 16 scrollTop: 0 17 }, 800); 18 return false; 19 }); 20 }; 21 22 $(document).ready(function() { 23 woodmartThemeModule.scrollTop(); 24 }); 25})(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.