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,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>
|
||||||
|
|
|
@ -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"})
|
||||||
|
|
Loading…
Reference in a new issue