1function initOriginalProduct() { 2 const reviews = new Swiper('.original-products__slider', { 3 // Optional parameters 4 slidesPerView: 4, 5 spaceBetween: 24, 6 loop: false, 7 breakpoints: { 8 1250: { 9 slidesPerView: 4, 10 spaceBetween: 24, 11 }, 12 991: { 13 slidesPerView: 3, 14 spaceBetween: 16, 15 }, 16 650: { 17 slidesPerView: 2, 18 spaceBetween: 24, 19 }, 20 0: { 21 slidesPerView: 1.05, 22 spaceBetween: 8, 23 } 24 }, 25 26 // If we need pagination 27 /*pagination: { 28 el: '.swiper-pagination', 29 },*/ 30 31 // Navigation arrows 32 navigation: { 33 nextEl: '.original-products__slider-next', 34 prevEl: '.original-products__slider-prev', 35 }, 36 37 // And if we need scrollbar 38 /*scrollbar: { 39 el: '.swiper-scrollbar', 40 },*/ 41 }); 42} 43 44document.addEventListener('DOMContentLoaded', function(){ 45 initOriginalProduct(); 46}); 47 48 49 50 51document.addEventListener('DOMContentLoaded', function () { 52 // ÐбÑабоÑÑик кликов Ñ Ð´ÐµÐ»ÐµÐ³Ð¸Ñованием 53 document.addEventListener('click', function (e) { 54 // ÐÑкÑÑÑие â клик по .reviews-item__btn-open 55 const openBtn = e.target.closest('.reviews-item__btn-open'); 56 if (openBtn) { 57 const item = openBtn.closest('.reviews-item'); 58 if (item) { 59 e.preventDefault(); // оÑменÑем ÑÑандаÑÑное поведение, еÑли нÑжно 60 item.classList.add('is-flipped'); 61 } 62 return; // ÑÑÐ¾Ð±Ñ Ð½Ðµ обÑабаÑÑваÑÑ ÐºÐ°Ðº закÑÑÑие 63 } 64 65 // ÐакÑÑÑие â клик по .reviews-item__btn-close 66 const closeBtn = e.target.closest('.reviews-item__btn-close'); 67 if (closeBtn) { 68 const item = closeBtn.closest('.reviews-item'); 69 if (item) { 70 e.preventDefault(); 71 item.classList.remove('is-flipped'); 72 } 73 } 74 }); 75});
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.