summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/components/emergency.inc10
-rw-r--r--includes/components/pleasure.inc10
-rw-r--r--includes/components/wakeup.inc8
3 files changed, 14 insertions, 14 deletions
diff --git a/includes/components/emergency.inc b/includes/components/emergency.inc
index ffa19d6..2de7134 100644
--- a/includes/components/emergency.inc
+++ b/includes/components/emergency.inc
@@ -150,22 +150,22 @@
document.getElementById("next-notification").innerText = "now";
if (document.getElementById("fake-requests").checked) {
window.alertIntervalCounter = window.alertIntervalAmount;
- document.getElementById("next-notification").innerText = window.alertIntervalAmount + " seconds";
+ document.getElementById("next-notification").innerText = "in " + window.alertIntervalAmount + " seconds";
} else {
window.fetch("/api/emergency").then(() => {
window.alertIntervalCounter = window.alertIntervalAmount;
- document.getElementById("next-notification").innerText = window.alertIntervalAmount + " seconds";
+ document.getElementById("next-notification").innerText = "in " + window.alertIntervalAmount + " seconds";
})
}
} else {
document.getElementById("next-notification").innerText = "now";
if (document.getElementById("fake-requests").checked) {
window.alertIntervalCounter = window.alertIntervalAmount;
- document.getElementById("next-notification").innerText = window.alertIntervalAmount + " seconds";
+ document.getElementById("next-notification").innerText = "in " + window.alertIntervalAmount + " seconds";
} else {
window.fetch("/api/emergency-real").then(() => {
window.alertIntervalCounter = window.alertIntervalAmount;
- document.getElementById("next-notification").innerText = window.alertIntervalAmount + " seconds";
+ document.getElementById("next-notification").innerText = "in " + window.alertIntervalAmount + " seconds";
})
}
}
@@ -184,7 +184,7 @@
if (window.alertIntervalCounter === 0) {
sendNotification();
} else if (window.alertIntervalCounter > -1) {
- document.getElementById("next-notification").innerText = window.alertIntervalCounter + " second" + (window.alertIntervalCounter > 1 ? "s" : "");
+ document.getElementById("next-notification").innerText = "in " + window.alertIntervalCounter + " second" + (window.alertIntervalCounter > 1 ? "s" : "");
}
}, 1000);
}
diff --git a/includes/components/pleasure.inc b/includes/components/pleasure.inc
index 02ce759..40bf7fd 100644
--- a/includes/components/pleasure.inc
+++ b/includes/components/pleasure.inc
@@ -163,22 +163,22 @@ if (!isset($school[$day])) {
document.getElementById("next-notification").innerText = "now";
if (document.getElementById("fake-requests").checked) {
window.alertIntervalCounter = window.alertIntervalAmount;
- document.getElementById("next-notification").innerText = window.alertIntervalAmount + " seconds";
+ document.getElementById("next-notification").innerText = "in " + window.alertIntervalAmount + " seconds";
} else {
window.fetch("/api/pleasure").then(() => {
window.alertIntervalCounter = window.alertIntervalAmount;
- document.getElementById("next-notification").innerText = window.alertIntervalAmount + " seconds";
+ document.getElementById("next-notification").innerText = "in " + window.alertIntervalAmount + " seconds";
})
}
} else {
document.getElementById("next-notification").innerText = "now";
if (document.getElementById("fake-requests").checked) {
window.alertIntervalCounter = window.alertIntervalAmount;
- document.getElementById("next-notification").innerText = window.alertIntervalAmount + " seconds";
+ document.getElementById("next-notification").innerText = "in " + window.alertIntervalAmount + " seconds";
} else {
window.fetch("/api/pleasure-real").then(() => {
window.alertIntervalCounter = window.alertIntervalAmount;
- document.getElementById("next-notification").innerText = window.alertIntervalAmount + " seconds";
+ document.getElementById("next-notification").innerText = "in " + window.alertIntervalAmount + " seconds";
})
}
}
@@ -197,7 +197,7 @@ if (!isset($school[$day])) {
if (window.alertIntervalCounter === 0) {
sendNotification();
} else if (window.alertIntervalCounter > -1) {
- document.getElementById("next-notification").innerText = window.alertIntervalCounter + " second" + (window.alertIntervalCounter > 1 ? "s" : "");
+ document.getElementById("next-notification").innerText = "in " + window.alertIntervalCounter + " second" + (window.alertIntervalCounter > 1 ? "s" : "");
}
}, 1000);
}
diff --git a/includes/components/wakeup.inc b/includes/components/wakeup.inc
index d7bceee..818378a 100644
--- a/includes/components/wakeup.inc
+++ b/includes/components/wakeup.inc
@@ -70,22 +70,22 @@
document.getElementById("next-notification").innerText = "now";
if (document.getElementById("fake-requests").checked) {
window.alertIntervalCounter = window.alertIntervalAmount;
- document.getElementById("next-notification").innerText = window.alertIntervalAmount + " seconds";
+ document.getElementById("next-notification").innerText = "in " + window.alertIntervalAmount + " seconds";
} else {
window.fetch("/api/wakeup").then(() => {
window.alertIntervalCounter = window.alertIntervalAmount;
- document.getElementById("next-notification").innerText = window.alertIntervalAmount + " seconds";
+ document.getElementById("next-notification").innerText = "in " + window.alertIntervalAmount + " seconds";
})
}
} else {
document.getElementById("next-notification").innerText = "now";
if (document.getElementById("fake-requests").checked) {
window.alertIntervalCounter = window.alertIntervalAmount;
- document.getElementById("next-notification").innerText = window.alertIntervalAmount + " seconds";
+ document.getElementById("next-notification").innerText = "in " + window.alertIntervalAmount + " seconds";
} else {
window.fetch("/api/wakeup-real").then(() => {
window.alertIntervalCounter = window.alertIntervalAmount;
- document.getElementById("next-notification").innerText = window.alertIntervalAmount + " seconds";
+ document.getElementById("next-notification").innerText = "in " + window.alertIntervalAmount + " seconds";
})
}
}