aboutsummaryrefslogtreecommitdiff
path: root/_www/index.js
diff options
context:
space:
mode:
Diffstat (limited to '_www/index.js')
-rw-r--r--_www/index.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/_www/index.js b/_www/index.js
index f11cbbe..cb51265 100644
--- a/_www/index.js
+++ b/_www/index.js
@@ -2,30 +2,30 @@
// SPDX-License-Identifier: GPL-3.0-or-later
function notifError(msg) {
- displayNotif("error", msg)
+ displayNotif("error", msg);
}
function notifInfo(msg) {
- displayNotif("info", msg)
+ displayNotif("info", msg);
}
function displayNotif(className, msg) {
- let notif = document.getElementById("notif")
- let el = document.createElement("div")
- el.classList.add(className)
- el.innerHTML = msg
- notif.appendChild(el)
+ let notif = document.getElementById("notif");
+ let el = document.createElement("div");
+ el.classList.add(className);
+ el.innerHTML = msg;
+ notif.appendChild(el);
- setTimeout(function () {
- notif.removeChild(notif.children[0])
- }, 5000)
+ setTimeout(function () {
+ notif.removeChild(notif.children[0]);
+ }, 5000);
}
function toggleInfo(id) {
- let el = document.getElementById(id)
- if (el.style.display === "none") {
- el.style.display = "block"
- } else {
- el.style.display = "none"
- }
+ let el = document.getElementById(id);
+ if (el.style.display === "none") {
+ el.style.display = "block";
+ } else {
+ el.style.display = "none";
+ }
}