var swiper01; window.addEventListener('load', function () { AOS.init(); document.querySelectorAll(".go-top").forEach(element => { element.addEventListener("click", function(e) { e.preventDefault(); window.scrollTo({ top: 0, behavior: 'smooth' }); }); }); swiper01 = new Swiper(".swiper01", { slidesPerView: 'auto', centeredSlides: true, loop: true, pagination: { el: ".swiper-pagination", clickable: true, type: 'bullets' }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); }); function GA(action, category, label) { gtag('event', action, { 'event_category': category, 'event_label': label, 'value': 1 }); } function goTo(selector) { setTimeout(() => { const element = document.querySelector(selector); const top = element.getBoundingClientRect().top + window.pageYOffset - 40; window.scrollTo({ top: top, behavior: 'smooth' }); }, 10); } function clickNav(){ if (document.body.clientWidth <= 992) { const button = document.querySelector('.container-fluid > button'); if (button) { button.click(); } } }