aboutsummaryrefslogtreecommitdiff
path: root/18/script.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-12-10 14:42:45 +0100
committerNoah Loomans <noahloomans@gmail.com>2017-12-10 14:42:45 +0100
commitd9bc53d595f413b14a487afb2a11e4a73f83e655 (patch)
tree931bfd406e1ea327d68b2cd94e4ec71e2a3e38ef /18/script.js
parentbdb33bec441bf9eb607240b8958e7f21b24cfd22 (diff)
Update birthday invite
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