chore: set resync icon to continue animation until page refreshes

This commit is contained in:
2025-04-09 09:12:23 -07:00
parent 5fa7cd9d85
commit 6708bb17a3

View File

@@ -1,9 +1,9 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" data-bs-theme="dark"> <html lang="en" data-bs-theme="dark">
<head> <head>
<title><%= appName %> - v<%= appVersion %></title>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title><%= appName %> - v<%= appVersion %></title>
<meta name="robots" content="noindex, nofollow"> <meta name="robots" content="noindex, nofollow">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/css/bootstrap.min.css" integrity="sha384-SgOJa3DmI69IUzQ2PVdRZhwQ+dy64/BUtbMJw1MZ8t5HZApcHrRKUc4W0kG879m7" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/css/bootstrap.min.css" integrity="sha384-SgOJa3DmI69IUzQ2PVdRZhwQ+dy64/BUtbMJw1MZ8t5HZApcHrRKUc4W0kG879m7" crossorigin="anonymous">
<link rel="stylesheet" href="css/tvapp2.min.css"> <link rel="stylesheet" href="css/tvapp2.min.css">
@@ -383,11 +383,14 @@
dimmer.classList.remove('dimmer-in'); dimmer.classList.remove('dimmer-in');
dimmer.classList.add('dimmer-out'); dimmer.classList.add('dimmer-out');
dimmer.remove(); dimmer.remove();
const iconResync = document.getElementsByClassName('fa-rotate');
iconResync[0].classList.remove('spin');
iconResync[0].classList.add('restart');
setTimeout(location.reload.bind(location), 5000); setTimeout(function()
{
const iconResync = document.getElementsByClassName('fa-rotate');
iconResync[0].classList.remove('spin');
iconResync[0].classList.add('restart');
document.location.reload()
}, 5000);
}, 1000); }, 1000);
} }
}); });