PageSourceSearch

https://freeksenia.com/uploads/main.js

js freeksenia.com collected 2026-09-29 03:44:14 UTC 7,553 bytes, 244 lines download raw bytes

1console.log("Main.js at your service!!!:)");
2
3const table_links = document.querySelectorAll(".table_link");
4
5if (table_links.length > 0) {
6  for (let link of table_links) {
7    link.addEventListener("click", function (e) {
8      e.preventDefault();
9
10      const blockID = this.getAttribute("data-href").replace("#", "");
11
12      window.scrollTo({
13        behavior: "smooth",
14        top:
15          document.getElementById(blockID).getBoundingClientRect().top +
16          window.scrollY -
17          70,
18      });
19    });
20  }
21}
22
23if (document.querySelector(".comments_info_img a")) {
24  document
25    .querySelector(".comments_info_img a")
26    .addEventListener("click", function (e) {
27      e.preventDefault();
28
29      const reviewID = "reviews";
30
31      window.scrollTo({
32        behavior: "smooth",
33        top:
34          document.getElementById(reviewID).getBoundingClientRect().top -
35          document.body.getBoundingClientRect().top -
36          55,
37      });
38    });
39}
40
41if (document.querySelector(".scrollTop")) {
42  document
43    .querySelector(".scrollTop")
44    .addEventListener("click", () =>
45      window.scrollTo({ top: 0, behavior: "smooth" })
46    );
47}
48
49// Whell
50function showNewWheel() {
51  const titleElement = document.querySelector('.modal-content h2');
52  titleElement.textContent = 'Поздравляем! Ваш приз:';
53
54  const newTextElement = document.createElement('p');
55  newTextElement.textContent = '150% + 250 фриспинов';
56  
57  const existingNewTextElement = document.querySelector('.modal-content p');
58  if (existingNewTextElement) {
59    existingNewTextElement.remove();
60  }
61
62  titleElement.insertAdjacentElement('afterend', newTextElement);
63
64  const wheelContainer = document.getElementById('wheel-container');
65  wheelContainer.style.display = 'none';
66
67  const newWheelContainer = document.querySelector('.new-wheel-container');
68  newWheelContainer.style.display = 'flex';
69
70  document.querySelector('.bonus-info').appendChild(newWheelContainer);
71
72  const existingButton = document.querySelector('.modal-content-info .claim-button');
73
74  if (!existingButton) {
75      const claimButton = document.createElement('button');
76      claimButton.className = 'claim-button';
77      claimButton.setAttribute('data-goal', 'wheel');  
78      claimButton.setAttribute('aria-label', 'wheel'); 
79      claimButton.setAttribute('data-split', 'wheel');  
80      claimButton.setAttribute('name', 'wheel');        
81      claimButton.textContent = 'Забрать подарок';       
82  
83      document.querySelector('.modal-content-info').appendChild(claimButton);
84  
85      claimButton.addEventListener('click', function() {
86          const link = "https://dir-trk.org/click?key=f79cd22dfbe8434899632e2cb42fd31c";
87          const split = claimButton.getAttribute('data-split');
88          location.href = `${link}&split=${split}`;
89      });
90  }
91}
92
93function openModal() {
94  document.getElementById('modal').classList.add('show');
95  document.querySelector('.fixed-button').classList.add('no-animation');
96  startWheelSpin();
97}
98
99function closeModal() {
100  document.getElementById('modal').classList.remove('show');
101  document.querySelector('.fixed-button').classList.remove('no-animation');
102}
103
104function startWheelSpin() {
105  const wheel = document.querySelector('.wheel-wrapper');
106  const wheelMark = document.querySelector('.wheel-mark');
107  const bonusContainer = document.querySelector('.bonus-info');
108
109  wheel.classList.add('wheel-rotating');
110
111  setTimeout(() => {
112    wheel.style.display = 'none';
113    wheelMark.style.display = 'none';
114
115    bonusContainer.style.display = 'block';
116    showNewWheel();
117  }, 9000);
118}
119
120
121document.addEventListener("DOMContentLoaded", () => {
122  toggleMobileMenu();
123  
124  if (window.innerWidth <= 1400) {
125      document.getElementById("mobileMenu").setAttribute("hidden", "");
126      document.querySelector(".overlay").setAttribute("hidden", "");
127  }
128});
129
130window.addEventListener("resize", toggleMobileMenu);
131
132function toggleMobileMenu() {
133  const mobileMenu = document.getElementById("mobileMenu");
134  const overlay = document.querySelector(".overlay");
135
136  if (!mobileMenu || !overlay) 
137  {console.error('Нет id mobileMenu меню или класса overlay');
138  return;}
139
140  if (window.innerWidth > 1400) {
141      mobileMenu.removeAttribute("hidden"); 
142      overlay.setAttribute("hidden", ""); 
143  } else {
144      mobileMenu.setAttribute("hidden", ""); 
145      overlay.setAttribute("hidden", ""); 
146  }
147}
148
149
150function openCloseMenu(e) {
151  e.preventDefault();
152  
153  const mobileMenu = document.getElementById("mobileMenu");
154  const overlay = document.querySelector(".overlay");
155
156  if (!mobileMenu || !overlay)   {console.error('Нет id mobileMenu меню или класса overlay');
157  return;}
158
159  const isHidden = mobileMenu.hasAttribute("hidden");
160
161  if (isHidden) {
162      mobileMenu.removeAttribute("hidden");
163      overlay.removeAttribute("hidden");
164  } else {
165      mobileMenu.setAttribute("hidden", "");
166      overlay.setAttribute("hidden", "");
167  }
168}
169
170const burger = document.getElementById("burger");
171const overlay = document.querySelector(".overlay");
172const close = document.getElementById("close");
173
174if (burger && overlay && close) {
175  burger.addEventListener("click", openCloseMenu);
176  //overlay.addEventListener("click", openCloseMenu);
177  close.addEventListener("click", openCloseMenu);
178}
179
180
181
182for (let b of document.querySelectorAll('button')) {
183  b.addEventListener('click', function() {
184    let goal = this.getAttribute('data-goal');
185    
186    if (typeof window.ym != 'undefined') {
187      ym(94117567, 'reachGoal', goal);
188    }
189      
190    if (this.classList.contains('wheel-close')) {
191      closeModal(); 
192    } else if (this.classList.contains('fixed-button')) {
193      openModal(); 
194    } else {
195      let link = 'https://dir-trk.org/click?key=f79cd22dfbe8434899632e2cb42fd31c';
196      let split = this.getAttribute('data-split');
197      location.href = `${link}&split=${split}`;
198    }
199  });
200}
201
202document.addEventListener('DOMContentLoaded', () => {
203  document.querySelectorAll('a[href="#"]').forEach(link => {
204      link.addEventListener('click', (e) => {
205          e.preventDefault();
206          let split = e.target.getAttribute('data-split');
207          window.location.href = `https://dir-trk.org/click?key=f79cd22dfbe8434899632e2cb42fd31c&split=${split}`; 
208      });
209  });
210});
211
212let promoCodeCopy = document.querySelector(".content-side__promocode-copy");
213let promoCodeButton = document.querySelector(".content-side__promocode-button");
214if (promoCodeButton && promoCodeCopy) {
215  promoCodeButton.addEventListener("click", function (e) {
216    e.preventDefault();
217    navigator.clipboard.writeText(promoCodeCopy.textContent);
218  });
219}
220
221const handleScroll = () => {
222  if (window.scrollY > 1000) {
223    document.querySelector(".scrollTop").style.opacity = "1";
224  } else {
225    document.querySelector(".scrollTop").style.opacity = "0";
226  }
227};
228
229if (document.querySelector(".scrollTop")) window.addEventListener("scroll", handleScroll);
230
231setTimeout( function(){
vendor: 411 bytes, lines 231-237
231
232    (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
233    m[i].l=1*new Date();
234    for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
235    k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
236    (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
237    ym(
237110343414
vendor: 125 bytes, lines 237-243
237, "init", {
238        clickmap:true,
239        trackLinks:true,
240        accurateTrackBounce:true,
241        webvisor:true
242    });
243
244}, 3000 );

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.