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,6 +18,10 @@
<body onload="javascript:PopulatePage(false)"> <body onload="javascript:PopulatePage(false)">
<h1>LiLa Games 💜</h1> <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 id="gamelist" class="flex">
</div> </div>

View file

@ -3,7 +3,7 @@ const template = document.getElementById("game-template").content
const serverdata = "/servers.json" const serverdata = "/servers.json"
var gamecontainer = document.getElementById("gamelist") var gamecontainer = document.getElementById("gamelist")
window.setInterval(PopulatePage, 10000, true) window.setInterval(PopulatePage, 30000, true)
async function PopulatePage(reload) { async function PopulatePage(reload) {
var request = await fetch(serverdata, {cache: "reload"}) var request = await fetch(serverdata, {cache: "reload"})