1(function($){ 2/** 3 * Toggle the visibility of the scroll to top link. 4 */ 5 6// ÐÑли кнопка еÑе не добавлена â добавлÑем 7 if ($('#back-top').length === 0) { 8 $('body').append( 9 "<p id='back-top' style='display:none;'>" + 10 "<a href='#top'><span id='button'></span><span id='link'>ÐавеÑÑ </span></a>" + 11 "</p>" 12 ); 13 } 14 15 // ÐоказÑваем/ÑкÑÑваем ÐºÐ½Ð¾Ð¿ÐºÑ Ð¿Ñи пÑокÑÑÑке 16 $(window).scroll(function(){ 17 if ($(this).scrollTop() > 100) { 18 $('#back-top').fadeIn(); 19 } else { 20 $('#back-top').fadeOut(); 21 } 22 }); 23 24 // ÐÑи клике â Ð¿Ð»Ð°Ð²Ð½Ð°Ñ Ð¿ÑокÑÑÑка к наÑÐ°Ð»Ñ ÑÑÑаниÑÑ 25 $('#back-top a').on('click', function(e){ 26 e.preventDefault(); 27 $('body, html').animate({scrollTop: 0}, 800); 28 }); 29 30})(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.