From b7ab58c0ac2811769669189a8e7bb89388c570e2 Mon Sep 17 00:00:00 2001 From: lauralani Date: Mon, 28 Aug 2023 13:53:31 +0200 Subject: [PATCH] update refresh interval and add disclaimer --- index.html | 6 +++++- static/main.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 4bdc041..fac3bb1 100644 --- a/index.html +++ b/index.html @@ -18,12 +18,16 @@

LiLa Games 💜

+

+ The server list below refreshes every thirty seconds. It can + happen that it seems to flicker while refreshing. +

- 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 @lauralani@lila.network on Fediverse <3

diff --git a/static/main.js b/static/main.js index 1389100..273c147 100644 --- a/static/main.js +++ b/static/main.js @@ -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"})