deactivated unused plugins
All checks were successful
Build and Deploy Hugo Site / buildAndDeploy (push) Successful in 1m42s

This commit is contained in:
Andreas Hnida 2024-04-18 13:34:51 +02:00
commit 99e790efa5
3 changed files with 32 additions and 34 deletions

View file

@ -1,36 +1,34 @@
// main script
(function () {
"use strict";
;(function () {
'use strict'
// Dropdown Menu Toggler For Mobile
// ----------------------------------------
const dropdownMenuToggler = document.querySelectorAll(
".nav-dropdown > .nav-link",
);
const dropdownMenuToggler = document.querySelectorAll('.nav-dropdown > .nav-link')
dropdownMenuToggler.forEach((toggler) => {
toggler?.addEventListener("click", (e) => {
e.target.closest(".nav-item").classList.toggle("active");
});
});
toggler?.addEventListener('click', (e) => {
e.target.closest('.nav-item').classList.toggle('active')
})
})
// Testimonial Slider
// ----------------------------------------
new Swiper(".testimonial-slider", {
spaceBetween: 24,
loop: true,
pagination: {
el: ".testimonial-slider-pagination",
type: "bullets",
clickable: true,
},
breakpoints: {
768: {
slidesPerView: 2,
},
992: {
slidesPerView: 3,
},
},
});
})();
// new Swiper(".testimonial-slider", {
// spaceBetween: 24,
// loop: true,
// pagination: {
// el: ".testimonial-slider-pagination",
// type: "bullets",
// clickable: true,
// },
// breakpoints: {
// 768: {
// slidesPerView: 2,
// },
// 992: {
// slidesPerView: 3,
// },
// },
// });
})()