1console.log('Main.js at your service!!!!)') 2 3document.addEventListener('DOMContentLoaded', function () { 4 const updateDateElement = document.getElementById('update-date'); 5 if (updateDateElement) { 6 const months = [ 7 "yanvar", "fevral", "mart", "aprel", "may", "iyun", 8 "iyul", "avqust", "sentyabr", "oktyabr", "noyabr", "dekabr" 9 ]; 10 11 const today = new Date(); 12 const day = today.getDate(); 13 const month = months[today.getMonth()]; 14 const year = today.getFullYear(); 15 16 updateDateElement.textContent = `YenilÉnmÉ tarixi: ${day} ${month} ${year}`; 17 } 18}); 19 20const table_links = document.querySelectorAll(".table_link") 21 22for ( let link of table_links ) { 23 link.addEventListener('click', function(e){ 24 e.preventDefault() 25 26 const blockID = this.getAttribute('data-href').replace('#', '') 27 28 window.scrollTo({ 29 behavior: 'smooth', 30 top: document.getElementById(blockID).getBoundingClientRect().top - document.body.getBoundingClientRect().top - 70, 31 }) 32 }) 33} 34 35 36if ( document.querySelector('.scrollTop') ) { 37 document.querySelector('.scrollTop').addEventListener('click', () => window.scrollTo({ top: 0, behavior: 'smooth' })) 38} 39 40function openCloseMenu(e){ 41 e.preventDefault() 42 document.getElementById('mobileMenu').toggleAttribute('hidden') 43 document.querySelector('.overlay').toggleAttribute('hidden') 44} 45 46document.querySelector('.burger').addEventListener('click', openCloseMenu) 47document.querySelector('.close').addEventListener('click', openCloseMenu) 48document.querySelector('.overlay').addEventListener('click', openCloseMenu) 49 50 51// for ( let b of document.querySelectorAll('button')){ 52// b.addEventListener('click', function() { 53// let goal = this.getAttribute('data-goal') 54 55// if (typeof window.ym != 'undefined') { 56// ym(97231253,'reachGoal', goal) 57// } 58 59// console.log(`goal ${goal} reached`) 60// let link = "https://trafcapture.com/click?key=0f9f9bd253464583be00c1d35c93b946" 61// let split = this.getAttribute('data-split') 62// split == 'apkmain' ? location.href=`/uploads/pinup_official_app_v3_2.apk` : location.href=`${link}&split=${split}` 63// }) 64// } 65 66for (let b of document.querySelectorAll("button:not(#copyButton)")) { 67 b.addEventListener('click', function(event) { 68 let goal = this.getAttribute('data-goal'); 69 let classContains = this.classList.contains("dropdown-button"); 70 if (typeof ym === "function") { 71 ym(97231253, 'reachGoal', goal); 72 console.log(`goal ${goal} reached`); 73 } 74 75 if (classContains) { 76 toggleDropdown(); 77 event.preventDefault(); 78 } else { 79 let split = this.getAttribute('data-split'); 80 let link = "https://trafcapture.com/click?key=0f9f9bd253464583be00c1d35c93b946" 81 link = `${link}&split=${split}`; 82 location.href = link; 83 } 84 }); 85 } 86 87const handleScroll = () => { 88 if ( window.scrollY > 1000) { 89 document.querySelector('.scrollTop').style.opacity = '1'; 90 } else { 91 document.querySelector('.scrollTop').style.opacity = '0'; 92 } 93} 94 95window.addEventListener('scroll', handleScroll); 96 97let promoCodeCopy = document.querySelector("#promoCode"); 98let promoCodeButton = document.querySelector("#copyButton"); 99if (promoCodeButton) { 100 promoCodeButton.addEventListener("click", function (e) { 101 e.preventDefault(); 102 e.target.innerText = 'kopyalandı'; 103 navigator.clipboard.writeText(promoCodeCopy.textContent); 104 }); 105} 106 107 108setTimeout( function(){
vendor: 399 bytes, lines 108-114
108 109 (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; 110 m[i].l=1*new Date(); 111 for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} 112 k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) 113 (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); 114 ym(
11497231253
vendor: 117 bytes, lines 114-121
114, "init", { 115 clickmap:true, 116 trackLinks:true, 117 accurateTrackBounce:true, 118 webvisor:true 119 }); 120 121
121let thirdScroll = false 122 let halfScroll = false 123 let fullScroll = false 124 125 window.onscroll = function() { 126 127 let pageY = window.scrollY 128 let innerHeight = document.documentElement.scrollHeight; 129 let delta = innerHeight / pageY; 130 131 console.log('pageY', pageY) 132 console.log('height', innerHeight) 133 console.log('delta', delta) 134 135 if( delta >= 2 && thirdScroll == false ){ 136 thirdScroll = true 137 console.log('partsScrollGoal1 reached') 138 139 if (typeof window.ym != 'undefined') { 140 ym(97231253,'reachGoal','partsScrollGoal1') 141 } 142 143 } 144 145 if( delta <= 2 && delta >= 1.5 && halfScroll == false ){ 146 147 halfScroll = true 148 console.log('partsScrollGoal2 reached') 149 if (typeof window.ym != 'undefined') { 150 ym(97231253,'reachGoal','partsScrollGoal2') 151 } 152 153 } 154 155 if( delta <= 1.5 && fullScroll == false ){ 156 fullScroll = true 157 console.log('partsScrollGoal3 reached') 158 159 if (typeof window.ym != 'undefined') { 160 ym(97231253,'reachGoal','partsScrollGoal3') 161 } 162 163 } 164 165 166 } 167}, 3500)
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.