main
ihzero 2025-03-20 17:54:01 +08:00
parent 81f8d80886
commit 8f4f73c360
6 changed files with 1648 additions and 1893 deletions

View File

@ -1336,7 +1336,7 @@
// 启动自动播放 // 启动自动播放
function startAutoPlay() { function startAutoPlay() {
if(!settings.autoPlay) if(settings.autoPlay)
autoPlayInterval = setInterval(() => { autoPlayInterval = setInterval(() => {
currentIndex = (currentIndex + 1) % $tabHead.length; // 循环切换 currentIndex = (currentIndex + 1) % $tabHead.length; // 循环切换
switchTab(currentIndex); switchTab(currentIndex);

View File

@ -27,7 +27,7 @@ $(function () {
tabHead: ".index-card-nav li", tabHead: ".index-card-nav li",
tabCont: ".index-card-body .index-item", tabCont: ".index-card-body .index-item",
cur: "cur", cur: "cur",
autoPlay: true, // Enable auto-play autoPlay: false, // Enable auto-play
interval: 5000 interval: 5000
}); });
@ -35,7 +35,7 @@ $(function () {
tabHead: ".index-card-nav li", tabHead: ".index-card-nav li",
tabCont: ".index-card-body .index-item", tabCont: ".index-card-body .index-item",
cur: "cur", cur: "cur",
autoPlay: false, // Enable auto-play autoPlay: true, // Enable auto-play
interval: 5000 interval: 5000
}); });

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -27,7 +27,7 @@ $(function () {
tabHead: ".index-card-nav li", tabHead: ".index-card-nav li",
tabCont: ".index-card-body .index-item", tabCont: ".index-card-body .index-item",
cur: "cur", cur: "cur",
autoPlay: true, // Enable auto-play autoPlay: false, // Enable auto-play
interval: 5000 interval: 5000
}); });
@ -35,7 +35,7 @@ $(function () {
tabHead: ".index-card-nav li", tabHead: ".index-card-nav li",
tabCont: ".index-card-body .index-item", tabCont: ".index-card-body .index-item",
cur: "cur", cur: "cur",
autoPlay: false, // Enable auto-play autoPlay: true, // Enable auto-play
interval: 5000 interval: 5000
}); });