1const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]'); 2const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl)); 3 4var swiper = new Swiper(".opinionsSwiper", { 5 slidesPerView: 1, 6 spaceBetween: 24, 7 navigation: { 8 nextEl: '.swiper-next', 9 prevEl: '.swiper-prev', 10 disabledClass: 'disabled', 11 }, 12 breakpoints: { 13 0: { 14 slidesPerView: 1 15 }, 16 576: { 17 slidesPerView: 2 18 }, 19 992: { 20 slidesPerView: 4 21 } 22 }, 23}); 24 25var swiper2 = new Swiper(".infographicsSwiper", { 26 slidesPerView: 1, 27 spaceBetween: 24, 28 navigation: { 29 nextEl: '.swiper2-next', 30 prevEl: '.swiper2-prev', 31 disabledClass: 'disabled', 32 }, 33 breakpoints: { 34 0: { 35 slidesPerView: 1 36 }, 37 576: { 38 slidesPerView: 2 39 }, 40 992: { 41 slidesPerView: 4 42 } 43 }, 44}); 45 46var swiper3 = new Swiper(".videoSwiper", { 47 slidesPerView: 1, 48 spaceBetween: 24, 49 navigation: { 50 nextEl: '.swiper3-next', 51 prevEl: '.swiper3-prev', 52 disabledClass: 'disabled', 53 }, 54 breakpoints: { 55 0: { 56 slidesPerView: 1 57 }, 58 576: { 59 slidesPerView: 2 60 }, 61 992: { 62 slidesPerView: 4 63 }, 64 1200: { 65 slidesPerView: 5 66 } 67 }, 68}); 69 70var swiper4 = new Swiper(".seminarsSwiper", { 71 slidesPerView: 1, 72 spaceBetween: 24, 73 navigation: { 74 nextEl: '.swiper4-next', 75 prevEl: '.swiper4-prev', 76 disabledClass: 'disabled', 77 }, 78 breakpoints: { 79 0: { 80 slidesPerView: 1 81 }, 82 576: { 83 slidesPerView: 2 84 }, 85 992: { 86 slidesPerView: 3 87 } 88 }, 89}); 90 91var swiper5 = new Swiper(".linksSwiper", { 92 slidesPerView: 'auto', 93 spaceBetween: 16, 94 breakpoints: { 95 0: { 96 loop: true, 97 centeredSlides: true, 98 }, 99 576: { 100 loop: false, 101 centeredSlides: false, 102 } 103 } 104}); 105 106const authModal = document.getElementById('authorizationModal'); 107const tabEl = document.querySelectorAll('button[data-bs-toggle="tab"]'); 108tabEl.forEach(el => { 109 el.addEventListener('shown.bs.tab', event => { 110 clearAuthModal(); 111 const recipient = event.target.getAttribute('data-bs-whatever'); 112 const modalTitle = authModal.querySelector('.modal-title'); 113 modalTitle.textContent = recipient; 114 }); 115}); 116 117const btnReviews = document.querySelector('.reviews'); 118const btnTitle = document.querySelector('.reviews span'); 119const collapseEl = document.querySelectorAll('.multi-collapse'); 120let taggle = true; 121 122if (btnReviews) { 123 btnReviews.addEventListener('click', function() { 124 if (taggle) { 125 collapseEl.forEach(el => { 126 bootstrap.Collapse.getOrCreateInstance(el).show(); 127 }) 128 taggle = false; 129 btnTitle.textContent = 'Çàêðûòü îáçîðû'; 130 } 131 else { 132 collapseEl.forEach(el => { 133 bootstrap.Collapse.getOrCreateInstance(el).hide(); 134 }) 135 taggle = true; 136 btnTitle.textContent = 'Ðàñêðûòü îáçîðû'; 137 } 138 }); 139} 140 141if (authModal) { 142 authModal.addEventListener('hide.bs.modal', event => { 143 clearAuthModal(); 144 }) 145} 146 147function clearAuthModal() { 148 $('#auth .alert').html('').addClass('d-none'); 149 $('#auth input').val('').removeClass('is-invalid'); 150 $('#reg .alert').html('').addClass('d-none'); 151 $('#reg input').val('').removeClass('is-invalid'); 152 $('#recovery .alert').html('').addClass('d-none'); 153 $('#recovery input').val('').removeClass('is-invalid'); 154 $('#recovery .first_form').removeClass('d-none'); 155} 156 157function submit_cookies() { 158 var exdate = new Date(); 159 exdate.setDate(exdate.getDate()+365); 160 document.cookie = "submit_cookies=1;expires=" + exdate.toGMTString() + ";path=/;domain=.garant.ru;"; 161} 162 163let stickyHeader = document.querySelector('.header'); 164let startPoint = 144; 165 166addSticky(stickyHeader, "sticky"); 167
168function addSticky(pointEl, addClass) { 169 if (pointEl) { 170 let point = startPoint; 171 172 document.addEventListener('scroll', function() { 173 if (window.scrollY >= point) { 174 pointEl.classList.add(addClass); 175 } 176 177 if (window.scrollY <= point) { 178 pointEl.classList.remove(addClass); 179 } 180 }); 181 } 182} 183 184 185$(document).ready(function() { 186 const $container = $('.add_responsive'); 187 188 if ($container.length) { 189 $container.find('table').each(function() { 190 const $table = $(this); 191 192 if (!$table.parent().hasClass('table-responsive')) { 193 $table.wrap('<div class="table-responsive"></div>'); 194 } 195 }); 196 $container.find('img') 197 .filter(function() { 198 return $(this).closest('figure').length === 0; 199 }) 200 .addClass('img-fluid'); 201 } 202}); 203
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.