update_pc

This commit is contained in:
annv
2023-03-31 13:29:47 +07:00
parent 6b9825afd6
commit 46328176d8
37 changed files with 7107 additions and 7107 deletions

41
Chico/PC/category.js Normal file
View File

@@ -0,0 +1,41 @@
//SWIPER SLIDER SHOWCASE
function swiperCategoryBaner() {
new Swiper(".swiperCategoryBaner", {
slidesPerView: 1,
spaceBetween: 12,
centeredSlides: true,
loop: true,
speed: 1000,
preloadImages: false,
lazy: true,
autoplay: {
delay: 2500,
disableOnInteraction: false,
pauseOnMouseEnter: "true",
},
pagination: {
el: ".swiper-pagination",
clickable: true,
},
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
});
}
swiperCategoryBaner();
// SORT SELECT BOX
function sortSelect() {
var href = window.location.href;
$(".js-select-sort-item").each(function () {
if ($(this).val() === href) {
$(this).attr("selected", "selected");
}
});
}
sortSelect();