Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
重写
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhu2007 authored Nov 25, 2022
1 parent adefad4 commit 95821a1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,15 @@ function setSiteTime() {
}
}
// TODO: LazyLoad 4
setTimeout(setInterval(setSiteTime, 1000), 5000);
setInterval(setSiteTime, 1000)
setTimeout(() => {
document.getElementsByClassName("download_link").href = window.conf.download_url;
document.getElementsByClassName("server_online_map").href = window.conf.server_online_map;
var x1 = document.getElementsByClassName("download_link");
var x2 = document.getElementsByClassName("server_online_map");
var i;
for (i = 0; i < x1.length; i++) {
x1[i].a.href = window.conf.download_url;
}
for (i = 0; i < x2.length; i++) {
x2[i].a.href = window.conf.server_online_map;
}
}, 500)

1 comment on commit 95821a1

@1zyao
Copy link
Owner

@1zyao 1zyao commented on 95821a1 Nov 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

反 向 优 化(跳转又炸了)

Please sign in to comment.