1$(".js-persons-slider").each((function () { 2 var e = new Swiper(".js-persons-slider", { 3 loop: !0, 4 navigation: {nextEl: ".js-persons-slider-next", prevEl: ".js-persons-slider-prev"}, 5 init: !1 6 }); 7 e.on("slideChange", (function () { 8 var t = e.slides.length - 2, a = e.realIndex ? e.realIndex + 1 : 1; 9 $(".js-persons-slider-pagination span").text("\n " + a + "/" + t + "\n ") 10 })), e.init() 11})); 12 13// sticky adfox 14 15$(document).ready(function() { 16 stickyAdfox(); 17 blankHref(); 18}) 19function blankHref(){ 20 /*$('a.incut').on('click', function(e){ 21 var link = $(this).attr('href'); 22 if(link.indexOf('https://') < 0){ 23 e.preventDefault(); 24 window.open('https://ko.ru'+link, '_blank') 25 } 26 });*/ 27 var href = $('a.incut'); 28 if(href){ 29 href.each(function(){ 30 var link = $(this).attr('href'); 31 if(link.indexOf('https://') < 0){ 32 $(this).attr('href', 'https://ko.ru'+link); 33 } 34 }) 35 } 36} 37 38function stickyAdfox() { 39 const adfoxBlock = $('.js-adfox-sticky'); 40 if(!adfoxBlock.length || window.innerWidth > 767) return 41 42 $('body').addClass('_sticky-adfox') 43 44 let lastScrollPosition = $(window).scrollTop(); 45 let lastDiff = 50; 46 let isUp; 47 let scrollSlowDown = false; 48 let upCounter = 0; 49 let showen = false; 50 let delay = false; 51 52 $(window).on('scroll', checkSwipe); 53 54 55 function checkSwipe(e) { 56 // down position show always 57 if($(window).scrollTop() + $(window).height() >= $(document).height() - 150) { 58 scrollSlowDown = true; 59 lastScrollPosition = $(window).scrollTop(); 60 lastDiff = 50; 61 upCounter = 0; 62 adfoxBlock.addClass('_active'); 63 return 64 } 65 66 if(delay) return 67 68 delay = true; 69 setTimeout(() => delay = false, 150); 70 71 const currentScrollPosition = $(window).scrollTop(); 72 const currentDiff = currentScrollPosition - lastScrollPosition; 73 74 if(currentDiff > 0 && currentDiff < lastDiff && !scrollSlowDown) { 75 scrollSlowDown = true; 76 upCounter++; 77 } else if(currentDiff > 0 && currentDiff > lastDiff) { 78 scrollSlowDown = false; 79 isUp = false; 80 } else if(currentDiff < 0) { 81 showen = false; 82 upCounter = 0; 83 } 84 85 lastScrollPosition = currentScrollPosition; 86 lastDiff = currentDiff; 87 88 if(upCounter === 2) { 89 showen = !showen; 90 upCounter = 0; 91 } 92 93 showen ? adfoxBlock.addClass('_active') : adfoxBlock.removeClass('_active'); 94 } 95} 96 97//акÑивиÑоваÑÑ ÐºÐ½Ð¾Ð¿ÐºÑ Ð¿Ð¾Ñле капÑÑи 98function captchaEnableBtnSend(){ 99 document.getElementById("buttonSendQuestion").disabled = false; 100} 101 102// smi2 fix. из-за smi2 не ÑабоÑÐ°ÐµÑ Ð¿ÐµÑÐµÑ Ð¾Ð´ по ÑÑÑлкам 103$(document).on('click', 'a', function(){ 104 let href = $(this).attr('href'); 105 if (href.startsWith('/')) document.location.href = href; 106}); 107 108/*$(document).ready(function() { 109 (function(){ 110 /!*setInterval(function() { 111 $('.js-sidebar-media').fadeOut(2500); 112 setTimeout(function () { 113 $('.js-sidebar-media').css('height', '600px;'); 114 if (Ya.adfoxCode !== undefined) { 115 Ya.adfoxCode.reload(); 116 } 117 $('.js-sidebar-media').fadeIn(2500); 118 }, 2500) 119 }, 7500);*!/ 120 if (Ya.adfoxCode !== undefined) { 121 Ya.adfoxCode.reload(); 122 } 123 setTimeout(arguments.callee, 15000); 124 })(); 125});*/
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.