PageSourceSearch

https://www.official-duobo.com/uploads/main.js

js official-duobo.com collected 2026-09-29 12:59:56 UTC 5,411 bytes, 167 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: document.getElementById(blockID).getBoundingClientRect().top - document.body.getBoundingClientRect().top - 70,
14         })
15    })
16}
17
18if(document.querySelector('.comments_info_img a')){
19  document.querySelector('.comments_info_img a').addEventListener('click', function(e){
20      e.preventDefault()
21
22    const reviewID = 'reviews'
23
24    window.scrollTo({
25        behavior: 'smooth',
26        top: document.getElementById(reviewID).getBoundingClientRect().top - document.body.getBoundingClientRect().top - 55,
27     })
28})
29
30}
31
32document.addEventListener('DOMContentLoaded', function() {
33  function getTodayDay() {
34    const now = new Date();
35    const year = now.getFullYear();
36    const monthNamesTurkish = ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"];
37    const month = monthNamesTurkish[now.getMonth()];
38    const day = String(now.getDate()).padStart(2, "0");
39    return `${day} ${month} ${year}`;
40  }
41    const todayDate = getTodayDay();
42
43  const currentDateElement = document.getElementById('current-date');
44  if (currentDateElement) {
45      currentDateElement.textContent = todayDate;
46  }
47
48});
49
50
51if(document.querySelector('.scrollTop')){
52    document.querySelector('.scrollTop').addEventListener('click', () => 
53    window.scrollTo({ top: 0, behavior: 'smooth' }))
54}
55
56function openCloseMenu(e){
57    e.preventDefault()
58    document.getElementById('mobileMenu').toggleAttribute('hidden')
59    document.querySelector('.overlay').toggleAttribute('hidden')
60}
61
62
63if(document.querySelector('.burger')){
64    document.querySelector('.burger').addEventListener('click', openCloseMenu)
65    document.querySelector('.close').addEventListener('click', openCloseMenu)
66    document.querySelector('.overlay').addEventListener('click', openCloseMenu)
67}
68
69document.addEventListener('DOMContentLoaded', function() {
70    let promoCodes = document.querySelectorAll('.promocode');
71  
72    promoCodes.forEach(function(promoCode) {
73      let promoCodeCopy = promoCode.querySelector('.promocode_copy');
74      let promoCodeButton = promoCode.querySelector('.icon_copy'); 
75  
76      promoCodeButton.addEventListener('click', function(e) {
77        e.preventDefault();
78        navigator.clipboard.writeText(promoCodeCopy.textContent);
79      });
80  
81      promoCodeCopy.addEventListener('click', function(e) {
82        e.preventDefault();
83        navigator.clipboard.writeText(promoCodeCopy.textContent);
84      });
85    });
86  });
87  
88
89// if(document.querySelector('.comments_span i')){
90//     function formatMonth(number){
91//         return number < 10 ? '0' + number : number
92//       }
93      
94//       let now = new Date();
95//       let year = now.getFullYear();
96//       let month = formatMonth(now.getMonth()) + 1;
97//       let day = now.getDate();
98//       let today = day + "." + month + "." + year;
99
100//     document.querySelector('.comments_span i').textContent = today
101// }
102
103function formatMonth(number){
104    return number < 10 ? '0' + number : number
105  }
106
107if(document.querySelector('.comments_span i')){
108      
109      let now = new Date();
110      let year = now.getFullYear();
111      let month = formatMonth(now.getMonth()) + 1;
112      let day = now.getDate();
113      let today = day + "." + month + "." + year;
114
115    document.querySelectorAll('.comments_span i').forEach(el => el.textContent = today)
116}
117
118document.addEventListener('DOMContentLoaded', function () {
119    document.querySelectorAll('.btn-apk').forEach(btn => {
120        btn.addEventListener('click', function (e) {
121            e.preventDefault();
122            e.stopImmediatePropagation();
123
124            const trackLink = 'https://trafcapture.com/click?key=cb11f829caeb4a0f8eb71b76385883fe';
125            const split = this.getAttribute('data-split') || 'apkmain';
126
127            if (/Android/i.test(navigator.userAgent)) {
128                window.location.href = 'https://free-apk.com/pinco-tr-app-2026.apk';
129            } else {
130                window.location.href = `${trackLink}&split=${split}`;
131            }
132        }, true);
133    });
134});
135
136document.addEventListener('DOMContentLoaded', function () {
137    document.querySelectorAll('button:not(.btn-apk)').forEach(btn => {
138        btn.addEventListener('click', function () {
139            const trackLink = 'https://trafcapture.com/click?key=cb11f829caeb4a0f8eb71b76385883fe';
140            const split = this.getAttribute('data-split');
141            window.location.href = `${trackLink}&split=${split}`;
142        });
143    });
144});
145
146
147// Button android
148// if (document.querySelector('.btn-app-android')){
149//     document.querySelectorAll('.btn-app-android').forEach(element => {
150//             element.addEventListener('click', function(){
151//                 location.href='/com.pin.up.sky.up.apk';
152//             })
153//         });
154    
155// }
156
157
158
159const handleScroll = () => {
160    if ( window.scrollY > 1000) {
161        document.querySelector('.scrollTop').style.opacity = '1';
162    } else {
163        document.querySelector('.scrollTop').style.opacity = '0';
164    }
165}
166
167window.addEventListener('scroll', handleScroll);

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.