-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
23 lines (18 loc) · 818 Bytes
/
script.js
File metadata and controls
23 lines (18 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
let timeout_renderict = 3
let countdown = 1000
window.onload = () => {
if(true) {
const p_renderict_timer = document.getElementById("renderict-timer")
p_renderict_timer.innerText = `Stai per essere reindirizzato tra ${timeout_renderict}s`
setInterval(() => {
timeout_renderict--
p_renderict_timer.innerText = `Stai per essere reindirizzato tra ${timeout_renderict}s`
if(timeout_renderict <= 0) {
window.location.href = `https://serversecurepowerappalermo.onrender.com${location.pathname}`
countdown = 0
}
}, countdown)
}else {
window.location.href = `https://serversecurepowerappalermo.onrender.com${location.pathname}`
}
}