Loading spinner

This commit is contained in:
Jokob-sk
2023-09-16 09:57:38 +10:00
parent 6cb4439d59
commit 40c6c65ee5
10 changed files with 82 additions and 57 deletions

View File

@@ -83,9 +83,9 @@ if ($ENABLED_DARKMODE === True) {
<script>
function updateState(){
$.get('api/pialert_app_state.json?nocache=' + Date.now(), function(appState) {
$.get('api/app_state.json?nocache=' + Date.now(), function(appState) {
console.log(appState)
// console.log(appState)
document.getElementById('state').innerHTML = appState["currentState"].replaceAll('"', '');