1 2var scroll_delay = 1000; //задеÑжка в милиÑекÑÐ½Ð´Ð°Ñ 3var scroll_distance = 100; //пÑоÑÐµÐ½Ñ Ð¾Ñ Ð²ÑÑоÑÑ Ð´Ð¾ÐºÑменÑа, на коÑоÑÑй нÑжно ÑкÑолиÑÑ 4 5$(function() { 6 7 //ÐÑÑиÑлÑем ÑаÑÑÑоÑние в пикÑелÑÑ , на коÑоÑое нÑжно ÑкÑолиÑÑ 8 scroll_distance = Math.round($('body').height() * scroll_distance / 100.0); 9 10 var scroll_up = $('#scroll_div .arrow-up'); 11 var scroll_down = $('#scroll_div .arrow-down'); 12 13 scroll_up.on('click', function() {$('body').scrollTo('-=' + scroll_distance + 'px', scroll_delay);}); //СкÑолл ввеÑÑ 14 scroll_down.on('click', function() {$('body').scrollTo('+=' + scroll_distance + 'px', scroll_delay);}); //СкÑолл вниз 15 16 scroll_down.show(); 17 18 //ÐÑобÑажаем или ÑкÑÑваем ÑÑÑелки пÑи ÑкÑолле 19 window.onscroll = function () { 20 21 if ($(window).scrollTop() >= 50) scroll_up.show(); 22 else scroll_up.hide(); 23 24 if ($(document).height() - $(window).scrollTop() - $(window).height() > 50) scroll_down.show(); 25 else scroll_down.hide(); 26 27 } 28 29});
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.