MAPG-90 disable unload prevention and unify onbeforeunload script (loading animation)

This commit is contained in:
bence committed 2020-05-31 03:50:06 +02:00
1 parent 098f34ca0a
commit fe095cf435
4 files changed
+6 -18

No files matched your search

-7
View File
@@ -44,11 +44,4 @@
<?php endif; ?>
</div>
</div>
<script>
document.getElementById('loading').style.visibility = 'hidden';
window.addEventListener('beforeunload', function (e) {
document.getElementById('loading').style.visibility = 'visible';
});
</script>
<?php require 'templates/main_footer.php'; ?>
+5
View File
@@ -1,2 +1,7 @@
<script>
window.addEventListener('beforeunload', function (e) {
document.getElementById('loading').style.visibility = 'visible';
});
</script>
</body>
</html>