PageSourceSearch

https://kpda.ru/bitrix/templates/aspro-allcorp3/js/custom.js?17327953314277

js kpda.ru collected 2026-10-02 04:23:21 UTC 4,277 bytes, 128 lines download raw bytes

1/*
2You can use this file with your scripts.
3It will not be overwritten when you upgrade solution.
4*/
5
6let readyPage = () => {
7    // Табы 
8    let tableRegTab = document.querySelectorAll('.tableRegTab');
9    let tableRegContent = document.querySelectorAll('.tableRegContent');
10    
11    for(var i = 0; i < tableRegTab.length; i++) {
12        tableRegTab[i].addEventListener('click', e => {
13            for(var j = 0; j < tableRegTab.length; j++) {
14                tableRegTab[j].classList.remove('active');
15                tableRegContent[j].classList.remove('active');
16            }
17            tableRegTab[e.target.dataset.tab].classList.add('active');
18            tableRegContent[e.target.dataset.tab].classList.add('active');            
19        })
20    }
21
22
23
24    let dropdownCafedra = document.querySelectorAll('.dropdownCafedra');
25
26    for(var i = 0; i < dropdownCafedra.length; i++) {
27        
28        dropdownCafedra[i].addEventListener('click', e => {
29            console.log(e.target);
30            e.target.classList.toggle('active');
31        });
32    }
33
34    let videoPopup = document.querySelector('.videoPopup'),
35    videoPopupClose = document.querySelector('.videoPopupClose');
36    videoPopupOverlay = document.querySelector('.videoPopupOverlay');
37    let ourResource = document.getElementById('ourResource'),
38    popupOurResourceOverlay = document.querySelector('.popupOurResourceOverlay'),
39    popupOurResource = document.querySelector('.popupOurResource'),
40    popupOurResourceClose = document.querySelector('.popupOurResourceClose');
41    
42    const activeModal = (elem) => {
43        elem.classList.add('active');
44    }
45    const closeModal = (elem) => {
46        elem.classList.remove('active');
47    }
48    
49    ourResource.addEventListener('click', e => {
50        activeModal(popupOurResource);
51    })
52    popupOurResourceClose.addEventListener('click', e => {
53        closeModal(popupOurResource);
54    })
55    popupOurResourceOverlay.addEventListener('click', e => {
56        closeModal(popupOurResource);
57    })
58
59    
60    let ourResourceMob = document.getElementById('ourResource_mob'),
61    popupOurResourceOverlayMob = document.querySelector('.popupOurResourceOverlay_mob'),
62    popupOurResourceMob = document.querySelector('.popupOurResource_mob'),
63    popupOurResourceCloseMob = document.querySelector('.popupOurResourceClose_mob');
64    
65    const activeModalMob = (elem) => {
66        elem.classList.add('active');
67    }
68    const closeModalMob = (elem) => {
69        elem.classList.remove('active');
70    }
71    
72    ourResourceMob.addEventListener('click', e => {
73        activeModalMob(popupOurResourceMob);
74    })
75    popupOurResourceCloseMob.addEventListener('click', e => {
76        closeModalMob(popupOurResourceMob);
77    })
78    popupOurResourceOverlayMob.addEventListener('click', e => {
79        closeModalMob(popupOurResourceMob);
80    })
81
82    let videoBtn = document.querySelectorAll('.videoBtn');
83    
84    if(videoBtn.length > 0) {
85        for(var i = 0; i < videoBtn.length; i++) {
86            videoBtn[i].addEventListener('click', e => {
87                let videoPopupWrap = document.querySelector('.videoPopup .popupOurResourceWrap');
88                videoPopupWrap.innerHTML = e.target.dataset.url;
89                activeModal(videoPopup);
90            });
91        }
92        
93        videoPopupClose.addEventListener('click', e => {
94            closeModal(videoPopup);        
95            let videoPopupWrap = document.querySelector('.videoPopup .popupOurResourceWrap');
96            videoPopupWrap.innerHTML = '';
97        })
98        videoPopupOverlay.addEventListener('click', e => {
99            closeModal(videoPopup);
100            let videoPopupWrap = document.querySelector('.videoPopup .popupOurResourceWrap');
101            videoPopupWrap.innerHTML = '';
102        })
103    }
104
105    const swiper = new Swiper('.swiper-block', {
106        navigation: {
107            nextEl: '.swiper-button-next',
108            prevEl: '.swiper-button-prev',
109        },
110        pagination: {
111            el: '.swiper-pagination',
112            type: 'fraction',
113            formatFractionCurrent: function (number) {
114                return '' + number;
115            }
116        },
117        autoHeight: true,
118    });
119
120
121
122
123
124
125}
126
127
128document.addEventListener("DOMContentLoaded", readyPage);

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.