PageSourceSearch

https://geary.ru/catalog/view/theme/unishop2/js/about-store.js

js geary.ru collected 2026-09-28 08:44:17 UTC 3,089 bytes, 91 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function () {
2    const tabs = document.querySelectorAll('.team-department-tab');
3    const contents = document.querySelectorAll('.team-department-content');
4
5    tabs.forEach(tab => {
6        tab.addEventListener('click', function () {
7            const department = this.dataset.department;
8
9            tabs.forEach(t => {
10                t.classList.remove('team-department-tab--active');
11            });
12            this.classList.add('team-department-tab--active');
13
14            contents.forEach(content => {
15                content.classList.remove('team-department-content--active');
16                if (content.dataset.department === department) {
17                    content.classList.add('team-department-content--active');
18                }
19            });
20        });
21    });
22
23    document.addEventListener('click', function (e) {
24        if (e.target.matches('.open-register-popup') ||
25            e.target.closest('.open-register-popup')) {
26            e.preventDefault();
27            if (typeof uniRegisterOpen === 'function') {
28                uniRegisterOpen();
29            }
30        }
31    });
32
33    var swiper = new Swiper(".certificateSwiper", {
34        pagination: {
35            el: ".certificate-pagination",
36            type: "progressbar",
37        },
38        slidesPerView: "auto",
39        navigation: {
40            nextEl: ".certificate-button-next",
41            prevEl: ".certificate-button-prev",
42        },
43        spaceBetween: 30,
44        breakpoints: {
45            300: {
46                centeredSlides: true,
47            },
48            767: {
49                centeredSlides: false,
50            },
51        },
52    });
53});
54document.addEventListener('DOMContentLoaded', function () {
55    const popup = document.getElementById('certificatePopup');
56    const popupImage = popup.querySelector('.certificate-popup__image');
57    const closeBtn = document.getElementById('certificatePopupClose');
58    const overlay = popup.querySelector('.certificate-popup__overlay');
59
60    const certificateItems = document.querySelectorAll('.certificate-aboutstore__paper');
61
62    certificateItems.forEach(item => {
63        item.style.cursor = 'pointer';
64
65        item.addEventListener('click', function () {
66            const imageUrl = this.getAttribute('data-popup-image');
67            const altText = this.querySelector('img').getAttribute('alt');
68
69            popupImage.src = imageUrl;
70            popupImage.alt = altText;
71
72            popup.classList.add('active');
73            document.body.style.overflow = 'hidden';
74        });
75    });
76
77    closeBtn.addEventListener('click', closePopup);
78
79    overlay.addEventListener('click', closePopup);
80
81    document.addEventListener('keydown', function (e) {
82        if (e.key === 'Escape' && popup.classList.contains('active')) {
83            closePopup();
84        }
85    });
86
87    function closePopup() {
88        popup.classList.remove('active');
89        document.body.style.overflow = '';
90    }
91});

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.