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 committed Nov 24, 2022
1 parent e89325d commit 5d492dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@
<div id="menu-box">
<div class="menu">
<div class="menu-item">
<h2 class="logo"><a href="index.html">RETE 服务器</a></h2>
<h2 class="logo"><a href="/">RETE 服务器</a></h2>
<div class="menu-item-list">
<a href="http://p4.simpfun.cn:8948/">在线地图</a>
<a href="status.html">服务器状态</a>
<a id="download_link" href="#/" target="_blank">客户端</a>
<a id="download_link0" href="#/" target="_blank">客户端下载</a>
<a href="/">首页</a>
</div>
</div>
Expand All @@ -108,7 +108,7 @@ <h2>Minecraft RETE 服务器</h2>
<h1><a href="https://jq.qq.com/?_wv=1027&k=o0RFuHCW">加入♂我们</a></h1>
<h1><a href="http://p4.simpfun.cn:8948/">在线♂地图</a></h1>
<h1><a href="/status.html">服务器状态</a></h1>
<h1><a id="download_link" href="#/">客户端下载</a></h1>
<h1><a id="download_link0" href="#/" target="_blank">客户端下载</a></h1>
</div>
</div>
<div id="item-box">
Expand All @@ -122,7 +122,7 @@ <h3>RETE 服务器历史</h3>
<p>RETE 服务器是由 dlxogns1127&amp;minecraft97323 建立的一个Minecraft服务器</p>
<h3>想加入 RETE 服务器,我应该怎么做?</h3>
<p>非常简单,您只需要下载客户端即可游玩</p>
<p>了解了,我想<a href="https://www.123pan.com/s/YFuuVv-gMBc" target="_blank">加入游戏!</a></p>
<p>了解了,我想<a id="download_link2" href="#/" target="_blank">加入游戏!</a></p>
<h3>RETE 服务器规则</h3>
<p>0.禁止崩服 否则封号114514年</p>
<p>1.服主最帅</p>
Expand Down
7 changes: 5 additions & 2 deletions static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ window.conf = {
download_times: 43,
online_players_persent: 2,
online_players_max: 2023,
server_online_time: 46556
server_online_time: 46556,
server_online_map: "http://p4.simpfun.cn:8948/"
}

////////////////////////////////////////////////////////
Expand Down Expand Up @@ -55,5 +56,7 @@ function setSiteTime() {
// TODO: LazyLoad 3
setTimeout(setInterval(setSiteTime, 1000), 5000);
setTimeout(() => {
document.getElementById("download_link").href = window.conf.download_url;
document.getElementById("download_link0").href = window.conf.download_url;
document.getElementById("download_link1").href = window.conf.download_url;
document.getElementById("download_link2").href = window.conf.download_url;
}, 500)

0 comments on commit 5d492dc

Please sign in to comment.