1$(document).ready(function () { 2 3 var show = true; 4 var countbox = ".benefits__inner"; var out = $('.benefits__number'); 5 $(window).on("scroll load resize", function () { 6 if (!show) return false; // // Îòìåíÿåì ïîêàç àíèìàöèè, åñëè îíà óæå áûëà âûïîëíåíà 7 var w_top = $(window).scrollTop(); // Êîëè÷åñòâî ïèêñåëåé íà êîòîðîå áûëà ïðîêðó÷åíà ñòðàíèöà 8 var e_top = $(countbox).offset().top; // Ðàññòîÿíèå îò áëîêà ñî ñ÷åò÷èêàìè äî âåðõà âñåãî äîêóìåíòà 9 var w_height = $(window).height(); // Âûñîòà îêíà áðàóçåðà 10 var d_height = $(document).height(); // Âûñîòà âñåãî äîêóìåíòà 11 var e_height = $(countbox).outerHeight(); // Ïîëíàÿ âûñîòà áëîêà ñî ñ÷åò÷èêàìè 12 if (w_top + 800 >= e_top || w_height + w_top == d_height || e_height + e_top < w_height) { //w_top + 500 >=... 13 $('.benefits__number').css('opacity', '1'); 14 //$('.benefits__number').spincrement({ 15 out.spincrement({ 16 from: 0, 17 thousandSeparator: " ", 18 duration: 3000 19 }); 20 21 show = false; 22 } 23 }); 24 25});
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.