PageSourceSearch

https://educationtechpoints.org/uploads/main.js

js educationtechpoints.org collected 2026-10-04 22:03:15 UTC 4,541 bytes, 144 lines download raw bytes

1console.log("Main.js at your service!!!:)");
2
3const table_links = document.querySelectorAll(".table_link");
4
5for (let link of table_links) {
6  link.addEventListener("click", function (e) {
7    e.preventDefault();
8
9    const blockID = this.getAttribute("data-href").replace("#", "");
10
11    window.scrollTo({
12      behavior: "smooth",
13      top:
14        document.getElementById(blockID).getBoundingClientRect().top -
15        document.body.getBoundingClientRect().top -
16        70,
17    });
18  });
19}
20
21if (document.querySelector(".comments_info_img a")) {
22  document
23    .querySelector(".comments_info_img a")
24    .addEventListener("click", function (e) {
25      e.preventDefault();
26
27      const reviewID = "reviews";
28
29      window.scrollTo({
30        behavior: "smooth",
31        top:
32          document.getElementById(reviewID).getBoundingClientRect().top -
33          document.body.getBoundingClientRect().top -
34          55,
35      });
36    });
37}
38
39if (document.querySelector(".scrollTop")) {
40  document
41    .querySelector(".scrollTop")
42    .addEventListener("click", () =>
43      window.scrollTo({ top: 0, behavior: "smooth" })
44    );
45}
46
47// function openCloseMenu(e){
48//     e.preventDefault()
49//     document.getElementById('mobileMenu').toggleAttribute('hidden')
50//     document.querySelector('.overlay').toggleAttribute('hidden')
51// }
52
53// if(document.querySelector('.burger')){
54//     document.querySelector('.burger').addEventListener('click', openCloseMenu)
55//     document.querySelector('.close').addEventListener('click', openCloseMenu)
56//     document.querySelector('.overlay').addEventListener('click', openCloseMenu)
57// }
58
59for (let b of document.querySelectorAll("button")) {
60  b.addEventListener("click", function () {
61    let goal = this.getAttribute("data-goal");
62    //ym(94117567,'reachGoal', goal)
63    console.log(`goal ${goal} reached`);
64    let link = "https://dir-trk.org/click?key=5ad228f59e504b1e9964a5a0fa67cf5b";
65    let split = this.getAttribute("data-split");
66    location.href = `${link}&split=${split}`;
67  });
68}
69
70let promoCodeCopy = document.querySelector(".content-side__promocode-copy");
71let promoCodeButton = document.querySelector(".content-side__promocode-button");
72if (promoCodeButton) {
73  promoCodeButton.addEventListener("click", function (e) {
74    e.preventDefault();
75    navigator.clipboard.writeText(promoCodeCopy.textContent);
76  });
77}
78
79const handleScroll = () => {
80  if (window.scrollY > 1000) {
81    document.querySelector(".scrollTop").style.opacity = "1";
82  } else {
83    document.querySelector(".scrollTop").style.opacity = "0";
84  }
85};
86
87window.addEventListener("scroll", handleScroll);
88
89document.addEventListener('DOMContentLoaded', function() {
90  const moreInfoButtons = document.querySelectorAll('.info-casino');
91  const moreInfoDivs = document.querySelectorAll('.more-info');
92
93  moreInfoButtons.forEach((button, index) => {
94    button.addEventListener('click', function() {
95      const moreInfoDiv = moreInfoDivs[index];
96      if (moreInfoDiv.style.display === 'none' || moreInfoDiv.style.display === '') {
97        moreInfoDiv.style.display = 'grid';
98      } else {
99        moreInfoDiv.style.display = 'none';
100      }
101    });
102  });
103});
104
105// setTimeout( function(){
106//   (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
107//   m[i].l=1*new Date();
108//   for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
109//   k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
110//   (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
111//   ym(95209190, "init", {
112//       clickmap:true,
113//       trackLinks:true,
114//       accurateTrackBounce:true,
115//       webvisor:true
116//   });
117
118//     let thirdScroll = false
119//     let halfScroll = false
120//     let fullScroll = false
121
122//       window.onscroll = function() {
123
124//         let pageY = window.scrollY
125//         let innerHeight = document.documentElement.scrollHeight;
126//         let delta = innerHeight / pageY;
127
128//         if( delta >= 2 && thirdScroll == false ){
129//           thirdScroll = true
130//           ym(95209190,'reachGoal','partsScrollGoal1')
131//         }
132
133//         if( delta <= 2 && delta >= 1.5 && halfScroll == false ){
134//           halfScroll = true
135//           ym(95209190,'reachGoal','partsScrollGoal2')
136//         }
137
138//         if( delta <= 1.5 && fullScroll == false ){
139//           fullScroll = true
140//           ym(95209190,'reachGoal','partsScrollGoal3')
141//         }
142//       }
143
144// }, 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.