aboutsummaryrefslogtreecommitdiff
path: root/18/script.js
diff options
context:
space:
mode:
Diffstat (limited to '18/script.js')
-rw-r--r--18/script.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/18/script.js b/18/script.js
index 61a5afc..6e80630 100644
--- a/18/script.js
+++ b/18/script.js
@@ -1,7 +1,3 @@
-/**
- *
- */
-
function wait(ms) {
return new Promise((resolve) => {
window.setTimeout(resolve, ms);
@@ -60,5 +56,10 @@ function resize() {
document.documentElement.style.setProperty('--factor', factor);
}
+if (window.location.hash === '#escape') {
+ document.querySelector('#escape-room').style.display = 'block';
+ document.querySelector('#no-escape-room').style.display = 'none';
+}
+
resize();
window.addEventListener('resize', resize); \ No newline at end of file