Deploy CJSatnarine/CJSatnarine.github.io to CJSatnarine/CJSatnarine.github.io:gh-pages
This commit is contained in:
10
window.js
Normal file
10
window.js
Normal 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);
|
||||
});
|
Reference in New Issue
Block a user