1(function($){ 2 "use strict"; 3 4 // $btnUp must be declared and set in globals.js 5 // require velocity.js 6 rmz.initBtnUp = function(){ 7 if (!$btnUp.length) return; 8 9 $(window).on('scroll', function(){ 10 winScrollTop = $win.scrollTop(); 11 12 if (winScrollTop > 500) $btnUp.fadeIn('fast',function(){ 13 $btnUp.addClass('shown'); 14 }); 15 else $btnUp.removeClass('shown').fadeOut('fast'); 16 }); 17 18 $btnUp.on('click', function(){ 19 $('.main-wrapper').velocity('scroll'); 20 }); 21 } 22 23})(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.