window resizing and other small changes

This commit is contained in:
CJSatnarine
2025-03-14 14:45:55 -04:00
parent 40c6d1cb9c
commit 15fd3615f8
8 changed files with 93 additions and 42 deletions

10
window.js Normal file
View File

@@ -0,0 +1,10 @@
// Refreshes the page when the browser is resized.
window.addEventListener('resize', function(event) {
if (window.RT) {
clearTimeout(window.RT);
}
window.RT = setTimeout(function() {
window.location.reload(false); /* false to get page from cache */
}, 200);
});