fixed bug
This commit is contained in:
1 parent
7b945786ed
commit
54b18039e3
21 files changed
+2363
-408
No files matched your search
@@ -0,0 +1,17 @@
|
||||
window.initLoader = function() {
|
||||
var loader = document.getElementById('loader');
|
||||
if (!loader) return;
|
||||
|
||||
// 定时关闭
|
||||
setTimeout(function() {
|
||||
loader.classList.add('hide');
|
||||
}, 30000);
|
||||
|
||||
// 点击关闭
|
||||
var closeBtn = document.getElementById('closeloader');
|
||||
if (closeBtn) {
|
||||
closeBtn.addEventListener('click', function() {
|
||||
loader.classList.add('hide');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user