PageSourceSearch

https://www.juditbertil.se/uploads/main.js

js juditbertil.se collected 2026-09-26 16:42:42 UTC 2,141 bytes, 69 lines download raw bytes

1console.log('Main.js at your service!!!!')
2
3document.querySelector('.pt-scroll-top') &&
4document.querySelector('.pt-scroll-top').addEventListener('click', () => 
5    window.scrollTo({ top: 0, behavior: 'smooth' }))
6
7
8for (let b of document.querySelectorAll("button")) {
9  b.addEventListener("click", function () {
10    let goal = this.getAttribute("data-goal");
11
12    if (typeof ym === "function") {
13        ym(109676496,'reachGoal', goal)
14    }
15
16    window.open('https://top-online-casinos-rating.com/', '_blank');
17  });
18}
19
20const handleScroll = () => {
21    if ( window.scrollY > 1000) {
22        document.querySelector('.pt-scroll-top').style.opacity = '1';
23    } else {
24        document.querySelector('.pt-scroll-top').style.opacity = '0';
25    }
26}
27
28window.addEventListener('scroll', handleScroll);
29
30setTimeout( function(){
vendor: 405 bytes, lines 30-36
30
31  (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
32  m[i].l=1*new Date();
33  for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
34  k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
35  (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
36  ym(
36109676496
vendor: 126 bytes, lines 36-43
36, "init", {
37      clickmap:true,
38      trackLinks:true,
39      accurateTrackBounce:true,
40      webvisor:true
41  });
42
43    
43let thirdScroll = false
44    let halfScroll = false
45    let fullScroll = false
46
47      window.onscroll = function() {
48
49        let pageY = window.scrollY
50        let innerHeight = document.documentElement.scrollHeight;
51        let delta = innerHeight / pageY;
52
53        if( delta >= 2 && thirdScroll == false ){
54          thirdScroll = true
55          ym(109676496,'reachGoal','partsScrollGoal1')
56        }
57
58        if( delta <= 2 && delta >= 1.5 && halfScroll == false ){
59          halfScroll = true
60          ym(109676496,'reachGoal','partsScrollGoal2')
61        }
62
63        if( delta <= 1.5 && fullScroll == false ){
64          fullScroll = true
65          ym(109676496,'reachGoal','partsScrollGoal3')
66        }
67      }
68
69}, 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.