1 2/* ------------------------------------------------------------ *\ 3 Show and Hide the Button 4\* ------------------------------------------------------------ */ 5 6 7jQuery(function(){ 8 9 jQuery(document).on( 'scroll', function(){ 10 11 if (jQuery(window).scrollTop() > 100) { 12 jQuery('.scroll-top-wrapper').addClass('show'); 13 } else { 14 jQuery('.scroll-top-wrapper').removeClass('show'); 15 } 16 }); 17}); 18 19 20 21 22/* ------------------------------------------------------------ *\ 23 Scroll to Top 24\* ------------------------------------------------------------ */ 25 26 27jQuery(function(){ 28 29 jQuery(document).on( 'scroll', function(){ 30 31 if (jQuery(window).scrollTop() > 100) { 32 jQuery('.scroll-top-wrapper').addClass('show'); 33 } else { 34 jQuery('.scroll-top-wrapper').removeClass('show'); 35 } 36 }); 37 38 jQuery('.scroll-top-wrapper').on('click', scrollToTop); 39}); 40 41function scrollToTop() { 42 verticalOffset = typeof(verticalOffset) != 'undefined' ? verticalOffset : 0; 43 element = jQuery('body'); 44 offset = element.offset(); 45 offsetTop = offset.top; 46 jQuery('html, body').animate({scrollTop: offsetTop}, 500, 'linear'); 47} 48
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.