CM94 - Build popup after 25min idle
This commit is contained in:
@@ -106,6 +106,10 @@ echo '
|
|||||||
|
|
||||||
display.textContent = minutes + ":" + seconds;
|
display.textContent = minutes + ":" + seconds;
|
||||||
|
|
||||||
|
if (timer === 60) {
|
||||||
|
// Show a popup when the timer reaches 60 seconds
|
||||||
|
alert("'.($message_build ?? 'Please login again').'");
|
||||||
|
}
|
||||||
if (--timer < 0) {
|
if (--timer < 0) {
|
||||||
timer = duration;
|
timer = duration;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user