all-in-one/php/public/before-unload.js
szaimen 8c7e0bc63a add before-unload animation
Signed-off-by: szaimen <szaimen@e.mail.de>
2022-03-30 17:06:01 +02:00

3 lines
No EOL
120 B
JavaScript

window.addEventListener("beforeunload", function() {
document.getElementById('overlay').classList.add('loading')
});