update refresh interval and add disclaimer
All checks were successful
ci/woodpecker/push/netlify Pipeline was successful
All checks were successful
ci/woodpecker/push/netlify Pipeline was successful
This commit is contained in:
parent
11862d13b6
commit
b7ab58c0ac
2 changed files with 6 additions and 2 deletions
|
@ -18,12 +18,16 @@
|
|||
|
||||
<body onload="javascript:PopulatePage(false)">
|
||||
<h1>LiLa Games 💜</h1>
|
||||
<p class="info-text">
|
||||
The server list below refreshes every thirty seconds. It can
|
||||
happen that it seems to flicker while refreshing.
|
||||
</p>
|
||||
|
||||
<div id="gamelist" class="flex">
|
||||
</div>
|
||||
|
||||
<p class="info-text">
|
||||
For Info about getting whitelisted or for the password please ping @lauralani on Discord or
|
||||
For Info about getting whitelisted or for the password please ping @lauralani on Discord or
|
||||
<a class="info" href="https://social.lila.network/@lauralani">@lauralani@lila.network</a>
|
||||
on Fediverse <3
|
||||
</p>
|
||||
|
|
|
@ -3,7 +3,7 @@ const template = document.getElementById("game-template").content
|
|||
const serverdata = "/servers.json"
|
||||
var gamecontainer = document.getElementById("gamelist")
|
||||
|
||||
window.setInterval(PopulatePage, 10000, true)
|
||||
window.setInterval(PopulatePage, 30000, true)
|
||||
|
||||
async function PopulatePage(reload) {
|
||||
var request = await fetch(serverdata, {cache: "reload"})
|
||||
|
|
Loading…
Reference in a new issue