PageSourceSearch

https://www.isend.co.kr/inc/js/brand.js?FV=V20260212_1

js isend.co.kr collected 2026-10-06 14:01:51 UTC 2,713 bytes, 80 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function () {
2    // sc01
3    (function () {
4        const sc01 = document.querySelector('.sc01Swiper');
5        if (!sc01) return;
6
7        const slides = sc01.querySelectorAll('.swiper-slide');
8        let currentIndex = 0;
9        const nextBtn = sc01.querySelector('.next_btn');
10        const prevBtn = sc01.querySelector('.prev_btn');
11
12        function updateSlides() {
13            slides.forEach(slide => slide.classList.remove('prev2', 'prev', 'active', 'next', 'next2'));
14
15            if (slides.length > 0) {
16                const prev2Index = (currentIndex - 2 + slides.length) % slides.length;
17                const prevIndex = (currentIndex - 1 + slides.length) % slides.length;
18                const nextIndex = (currentIndex + 1) % slides.length;
19                const next2Index = (currentIndex + 2) % slides.length;
20
21                slides[prev2Index].classList.add('prev2');
22                slides[prevIndex].classList.add('prev');
23                slides[currentIndex].classList.add('active');
24                slides[nextIndex].classList.add('next');
25                slides[next2Index].classList.add('next2');
26            }
27
28            if (prevBtn) prevBtn.disabled = currentIndex === 0;
29            if (nextBtn) nextBtn.disabled = currentIndex === slides.length - 1;
30        }
31
32        if (slides.length > 0) {
33            updateSlides();
34
35            if (nextBtn) {
36                nextBtn.addEventListener('click', () => {
37                    if (currentIndex < slides.length - 1) {
38                        currentIndex++;
39                        updateSlides();
40                    }
41                });
42            }
43
44            if (prevBtn) {
45                prevBtn.addEventListener('click', () => {
46                    if (currentIndex > 0) {
47                        currentIndex--;
48                        updateSlides();
49                    }
50                });
51            }
52        }
53    })();
54
55    // sc02
56    (function () {
57        const tabItems = document.querySelectorAll(".sc02 .tab_box ul li");
58        const targets = document.querySelectorAll(".sc02 .target_box .target");
59
60        if (tabItems.length === 0 || targets.length === 0) return;
61
62        function activateTab(index) {
63            tabItems.forEach((tab, i) => {
64                tab.classList.toggle("active", i === index);
65            });
66            targets.forEach((target, i) => {
67                target.classList.toggle("show", i === index);
68            });
69        }
70
71        tabItems.forEach((tab, idx) => {
72            tab.addEventListener("click", () => {
73                activateTab(idx);
74            });
75        });
76
77        activateTab(0);
78    })();
79
80});

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.