src/main/resources/static/home/js/slider.js
(完整代码) 904B// Carousel Home Page
$("#carousel-home .owl-carousel").on("initialized.owl.carousel", function() {
setTimeout(function() {
$("#carousel-home .owl-carousel .owl-item.active .owl-slide-animated").addClass("is-transitioned");
$("section").show();
}, 200);
});
const $owlCarousel = $("#carousel-home .owl-carousel").owlCarousel({
items: 1,
loop: true,
nav: false,
dots:true,
responsive:{
0:{
dots:false
},
767:{
dots:false
},
768:{
dots:true
}
}
});
$owlCarousel.on("changed.owl.carousel", function(e) {
$(".owl-slide-animated").removeClass("is-transitioned");
const $currentOwlItem = $(".owl-item").eq(e.item.index);
$currentOwlItem.find(".owl-slide-animated").addClass("is-transitioned");
});
$owlCarousel.on("resize.owl.carousel", function() {
setTimeout(function() {
}, 50);
});
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。