增加租户官网模块
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// default 模板脚本:Banner 简单轮播
|
||||
(function () {
|
||||
var items = document.querySelectorAll('.yz-banner-item');
|
||||
if (items.length === 0) return;
|
||||
var idx = 0;
|
||||
items[0].classList.add('active');
|
||||
if (items.length === 1) return;
|
||||
setInterval(function () {
|
||||
items[idx].classList.remove('active');
|
||||
idx = (idx + 1) % items.length;
|
||||
items[idx].classList.add('active');
|
||||
}, 4000);
|
||||
})();
|
||||
Reference in New Issue
Block a user