added many debug logs

This commit is contained in:
2025-01-17 16:34:26 +01:00
parent 96b6beaa93
commit 47dfcd852f
5 changed files with 35 additions and 12 deletions
+3
View File
@@ -23,6 +23,7 @@ let tipsJson
async function loadTips() {
let tipsText = await fetch("/data/loadingScreenTips.json").then(response => response.text())
tipsJson = JSON.parse(tipsText)
console.log(tipsJson)
}
@@ -32,6 +33,7 @@ let selectedTip = "undefined"
function newTip() {
selectedTip = tipsJson[randomIntFrom0(tipsJson.length)]
debugPrint("new tip", selectedTip)
}
@@ -44,6 +46,7 @@ function startLoadingScreen() {
loadingScreenProgress.innerHTML = `Loading...<br><br>Tip: ${selectedTip}`
const loadDur = randomFloat(3000, 6000)
debugPrint("loadDur initial", loadDur)
setTimeout(removeLoadingScreen, loadDur)
}