diff --git a/extras/ui.png b/extras/ui.png index 7ef50da..5b57adf 100644 Binary files a/extras/ui.png and b/extras/ui.png differ diff --git a/main_view.html b/main_view.html index da2bbd6..bdfc6d6 100644 --- a/main_view.html +++ b/main_view.html @@ -78,8 +78,7 @@ selectNotch("fanNotch", await getFanTick(), 8); await updateBatteryStats(); // this is unimportant; always do it last - let version = await getVersion(); - document.getElementById("versionStr").innerText = "v" + version; + await updateVersion(); } async function setCPUNotch(index) { @@ -204,7 +203,7 @@ } async function updateBatteryStats() { - console.log("Updating battery stats"); + //console.log("Updating battery stats"); let batCapacityNow = document.getElementById("batCapacityNow"); let batCapacityFull = document.getElementById("batCapacityFull"); let chargeNow = await getChargeNow(); @@ -213,6 +212,19 @@ batCapacityNow.innerText = (7.7 * chargeNow / 1000000).toFixed(2).toString() + " Wh (" + (100 * chargeNow / chargeFull).toFixed(0).toString() + "%)"; batCapacityFull.innerText = (7.7 * chargeFull / 1000000).toFixed(2).toString() + " Wh (" + (100 * chargeFull / chargeDesign).toFixed(0).toString() + "%)"; } + + let versionCount = -1; + async function updateVersion() { + let version = await getVersion(); + let target = document.getElementById("versionStr"); + target.innerText = "v" + version; + if (versionCount >= 9) { + target.innerText += " by NGnius ;) "; + versionCount = 0; + } else { + versionCount += 1; + } + } @@ -222,7 +234,7 @@ -
+