PageSourceSearch

https://www.shinobu-kawashima.com/script/main.js

js shinobu-kawashima.com collected 2026-10-06 18:51:53 UTC 11,077 bytes, 272 lines download raw bytes

1document.querySelectorAll('.finp835a3mom').forEach(function(btn) {
2    btn.addEventListener('click', function() {
3        var item = this.closest('.qpwj1fbvgc');
4        var wasOpen = item.classList.contains('ji0tfgjuwp');
5
6        document.querySelectorAll('.qpwj1fbvgc.ji0tfgjuwp').forEach(function(el) {
7            el.classList.remove('ji0tfgjuwp');
8        });
9
10        if (!wasOpen) item.classList.add('ji0tfgjuwp');
11    });
12});
13
14var burger = document.getElementById('fy36ei36b9p1q');
15var mobileMenu = document.getElementById('vbozpvl66lg');
16var mobileMenuClose = document.getElementById('coum26obxll');
17if (burger && mobileMenu) {
18    function openMenu() {
19        mobileMenu.classList.add('ji0tfgjuwp');
20        burger.classList.add('ji0tfgjuwp');
21        document.body.style.overflow = 'hidden';
22
23        document.body.classList.add('menu-open');
24    }
25    function closeMenu() {
26        mobileMenu.classList.remove('ji0tfgjuwp');
27        burger.classList.remove('ji0tfgjuwp');
28        document.body.style.overflow = '';
29        document.body.classList.remove('menu-open');
30    }
31    function toggleMenu() {
32        if (mobileMenu.classList.contains('ji0tfgjuwp')) closeMenu();
33        else openMenu();
34    }
35    burger.addEventListener('click', toggleMenu);
36
37    mobileMenu.querySelectorAll('.rlmh54sx4hc a').forEach(function(a) {
38        a.addEventListener('click', closeMenu);
39    });
40}
41
42var langBtn = document.querySelector('.rirp1inqrv');
43var langPopup = document.querySelector('.j6a9ne5e');
44if (langBtn && langPopup) {
45    langBtn.addEventListener('click', function(e) {
46        e.stopPropagation();
47        langBtn.classList.toggle('ji0tfgjuwp');
48        langPopup.classList.toggle('ji0tfgjuwp');
49    });
50    document.addEventListener('click', function() {
51        langPopup.classList.remove('ji0tfgjuwp');
52        langBtn.classList.remove('ji0tfgjuwp');
53    });
54}
55
56function initShowMore(gridId, btnId, desktopShow, mobileShow, perClick) {
57    var btn = document.getElementById(btnId);
58    if (!btn) return;
59    var isMobile = window.innerWidth <= 768;
60    var initialShow = isMobile ? mobileShow : desktopShow;
61    var perPage = perClick || (isMobile ? 6 : 6);
62
63    if (isMobile) {
64        var allCards = document.querySelectorAll('#' + gridId + ' .uss3prs0hw6xll');
65        allCards.forEach(function(card, i) {
66            if (i >= initialShow && !card.getAttribute('data-hidden')) {
67                card.style.display = 'none';
68                card.setAttribute('data-hidden', '1');
69            }
70        });
71    }
72
73    function syncShowMoreVisibility() {
74        var hidden = document.querySelectorAll('#' + gridId + ' .uss3prs0hw6xll[data-hidden="1"]');
75        btn.style.display = hidden.length === 0 ? 'none' : '';
76    }
77    syncShowMoreVisibility();
78    btn.addEventListener('click', function() {
79        var hidden = document.querySelectorAll('#' + gridId + ' .uss3prs0hw6xll[data-hidden="1"]');
80        if (hidden.length === 0) { syncShowMoreVisibility(); return; }
81        var count = 0;
82        hidden.forEach(function(card) {
83            if (count < perPage) { card.style.display = ''; card.removeAttribute('data-hidden'); count++; }
84        });
85        syncShowMoreVisibility();
86    });
87}
88
89initShowMore('slotsGrid', 'slotsMoreBtn', 12, 6, 6);
90
91initShowMore('otherSlotsGrid', 'otherSlotsMoreBtn', 6, 6, 6);
92
93document.querySelectorAll('.ou5932nds6 a').forEach(function(link) {
94    link.addEventListener('click', function(e) {
95        var href = this.getAttribute('href') || '';
96        var id = href.charAt(0) === '#' ? decodeURIComponent(href.slice(1)) : '';
97        var target = id ? document.getElementById(id) : null;
98        if (target) {
99            e.preventDefault();
100            target.scrollIntoView({ behavior: 'smooth', block: 'start' });
101        }
102    });
103});
104
105document.querySelectorAll('.q71el7ed7nw').forEach(function(h) {
106    h.addEventListener('click', function() {
107        h.parentElement.classList.toggle('pdraplpsj');
108    });
109});
110
111var slotFullscreenBtn = document.getElementById('h354m2z3nl');
112if (slotFullscreenBtn) {
113    slotFullscreenBtn.addEventListener('click', function() {
114        var iframe = document.getElementById('chrbubunk');
115        if (!iframe) return;
116        if (iframe.requestFullscreen) iframe.requestFullscreen();
117        else if (iframe.webkitRequestFullscreen) iframe.webkitRequestFullscreen();
118    });
119}
120
121var scrollTopBtn = document.getElementById('r6ycoh0vrclygl');
122if (scrollTopBtn) {
123    window.addEventListener('scroll', function() {
124        if (window.scrollY > 400) {
125            scrollTopBtn.classList.add('d6a7iqrljoii0');
126        } else {
127            scrollTopBtn.classList.remove('d6a7iqrljoii0');
128        }
129    });
130    scrollTopBtn.addEventListener('click', function() {
131        window.scrollTo({ top: 0, behavior: 'smooth' });
132    });
133}
134
135var heroParallaxEl = document.querySelector('.ty8yzsgt24iz');
136if (heroParallaxEl) {
137    var runHeroParallax = function() {
138        heroParallaxEl.style.backgroundPositionY = 'calc(50% + ' + (window.pageYOffset * 0.3) + 'px)';
139    };
140    window.addEventListener('scroll', runHeroParallax, { passive: true });
141    runHeroParallax();
142}
143
144(function () {
145
146    if (!window.matchMedia || window.matchMedia('(hover: hover)').matches) return;
147    var cards = document.querySelectorAll('.uss3prs0hw6xll');
148    if (!cards.length) return;
149    function closeAll(except) {
150        Array.prototype.forEach.call(cards, function (c) {
151            if (c !== except) c.classList.remove('b4hf6u20vy');
152        });
153    }
154    Array.prototype.forEach.call(cards, function (card) {
155        card.addEventListener('click', function (e) {
156
157            if (e.target.closest('a, button')) return;
158
159            if (!card.classList.contains('b4hf6u20vy')) {
160                e.preventDefault();
161                closeAll(card);
162                card.classList.add('b4hf6u20vy');
163            }
164        });
165    });
166
167    document.addEventListener('click', function (e) {
168        if (e.target.closest('.uss3prs0hw6xll')) return;
169        closeAll(null);
170    });
171})();
172
173(function() {
174    var banner = document.getElementById('i3dx7vcfvem');
175    var modal = document.getElementById('par2whf3lr2g');
176    if (!banner || !modal) return;
177
178    var settings = {necessary: true, analytics: true, marketing: false, preferences: true};
179    try {
180        var saved = localStorage.getItem('cookieSettings');
181        if (saved) settings = JSON.parse(saved);
182    } catch(e) {}
183
184    var accepted = localStorage.getItem('cookiesAccepted') === 'true';
185
186    function updateSwitch(sw, active) {
187        if (!sw) return;
188        var track = sw.querySelector('.t928n3bjnls8');
189        var thumb = sw.querySelector('.lyfxk2o1niwkqu');
190        if (active) {
191            track && track.classList.add('mpmiuqtssk');
192            thumb && thumb.classList.add('mpmiuqtssk');
193        } else {
194            track && track.classList.remove('mpmiuqtssk');
195            thumb && thumb.classList.remove('mpmiuqtssk');
196        }
197    }
198
199    function updateAllSwitches() {
200        modal.querySelectorAll('.b7g9q68v[data-key]').forEach(function(sw) {
201            var key = sw.getAttribute('data-key');
202            if (key && settings[key] !== undefined) updateSwitch(sw, settings[key]);
203        });
204    }
205
206    function showBanner() {
207        if (accepted) return;
208        setTimeout(function() {
209            banner.classList.add('qdon7lrm72bm');
210            setTimeout(function() {
211                var h = banner.offsetHeight + 16;
212                document.documentElement.style.setProperty('--cookie-banner-height', h + 'px');
213                document.body.classList.add('eov0klxy9dzpw');
214            }, 50);
215        }, 800);
216    }
217
218    function hideBanner() {
219        banner.classList.remove('qdon7lrm72bm');
220        document.body.classList.remove('eov0klxy9dzpw');
221        document.documentElement.style.setProperty('--cookie-banner-height', '0px');
222    }
223
224    function showModal() {
225        modal.style.display = 'flex';
226        updateAllSwitches();
227    }
228
229    function hideModal() {
230        modal.style.display = 'none';
231    }
232
233    function save(s) {
234        settings = s;
235        localStorage.setItem('cookieSettings', JSON.stringify(s));
236        localStorage.setItem('cookiesAccepted', 'true');
237        hideBanner();
238        hideModal();
239    }
240
241    function acceptAll() {
242        save({necessary: true, analytics: true, marketing: true, preferences: true});
243    }
244
245    function rejectAll() {
246        save({necessary: true, analytics: false, marketing: false, preferences: false});
247    }
248
249    modal.querySelectorAll('.b7g9q68v[data-key]').forEach(function(sw) {
250        sw.addEventListener('click', function() {
251            var key = this.getAttribute('data-key');
252            if (key) {
253                settings[key] = !settings[key];
254                updateSwitch(this, settings[key]);
255            }
256        });
257    });
258
259    document.getElementById('b6me06kool').addEventListener('click', acceptAll);
260    document.getElementById('l0slx7vbt2').addEventListener('click', rejectAll);
261    document.getElementById('mvgo2wozf').addEventListener('click', showModal);
262
263    document.getElementById('usbfjqi4j3t3').addEventListener('click', acceptAll);
264    document.getElementById('njmusoqlza').addEventListener('click', rejectAll);
265    document.getElementById('lu7u4qlvch').addEventListener('click', function() { save(settings); });
266    document.getElementById('w0fku56d').addEventListener('click', hideModal);
267    document.getElementById('uuyuqa9a2s').addEventListener('click', hideModal);
268
269    showBanner();
270})();
271
272(function(){var SID=578,GO='/go/url',ATR='e2zyf',SEL='[e2zyf]',L;function showL(){if(L){L.style.display='flex';return;}L=document.createElement('div');L.style.cssText='position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:999999;display:flex;align-items:center;justify-content:center;';var s=document.createElement('div');s.style.cssText='width:48px;height:48px;border:4px solid rgba(255,255,255,0.3);border-top-color:#fff;border-radius:50%;animation:_ctaSpin .6s linear infinite;';var st=document.createElement('style');st.textContent='@keyframes _ctaSpin{to{transform:rotate(360deg)}}';document.head.appendChild(st);L.appendChild(s);document.body.appendChild(L);window.addEventListener('pageshow',function(){if(L)L.style.display='none';});}function hideL(){if(L)L.style.display='none';}function go(src){showL();fetch(GO+'?s='+SID+'&src='+encodeURIComponent(src)).then(function(r){return r.json();}).then(function(d){if(d&&d.u){location.href=d.u;}else{hideL();}}).catch(function(){hideL();});}function bind(b){if(b._cta)return;b._cta=1;b.style.cursor='pointer';b.addEventListener('click',function(e){e.preventDefault();go(b.getAttribute(ATR)||'cta');});}document.querySelectorAll(SEL).forEach(bind);
272var mo=new MutationObserver(function(ms){ms.forEach(function(m){m.addedNodes.forEach(function(n){if(n.nodeType!==1)return;if(n.matches&&n.matches(SEL))bind(n);if(n.querySelectorAll)n.querySelectorAll(SEL).forEach(bind);});});});mo.observe(document.body,{childList:true,subtree:true});})();

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.