update refresh interval and add disclaimer
All checks were successful
ci/woodpecker/push/netlify Pipeline was successful

This commit is contained in:
Adora Laura Kalb 2023-08-28 13:53:31 +02:00
parent 11862d13b6
commit b7ab58c0ac
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056
2 changed files with 6 additions and 2 deletions

View file

@ -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 &lt;3
</p>

View file

@ -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"})