nixos-config/machines/renge/services/onlypain.icu/script.js
Simon Bruder 909d7864e7
renge/onlypain.icu: Init
This is just a joke, please don’t take it seriously.
2022-04-07 16:13:40 +02:00

15 lines
352 B
JavaScript

document.addEventListener("DOMContentLoaded", () => {
let countdown = 5
let el = document.querySelector("#countdown")
const loop = () => {
if (countdown == 0) {
document.location = "https://www.pearson.de/abiturpruefung-bayern-2022-deutsch-9783849052010"
}
el.innerHTML = countdown--
}
loop()
setInterval(loop, 1000)
})