mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-23 07:56:57 +00:00
add before-unload animation
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
59a49c62b4
commit
8c7e0bc63a
3 changed files with 9 additions and 0 deletions
|
|
@ -10,4 +10,8 @@ if (document.hasFocus()) {
|
|||
setTimeout(function(){
|
||||
window.location.reload(1);
|
||||
}, 5000);
|
||||
} else {
|
||||
window.addEventListener("beforeunload", function() {
|
||||
document.getElementById('overlay').classList.add('loading')
|
||||
});
|
||||
}
|
||||
3
php/public/before-unload.js
Normal file
3
php/public/before-unload.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
window.addEventListener("beforeunload", function() {
|
||||
document.getElementById('overlay').classList.add('loading')
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue