From d9bc53d595f413b14a487afb2a11e4a73f83e655 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Sun, 10 Dec 2017 14:42:45 +0100 Subject: Update birthday invite --- 18/script.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to '18/script.js') 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 -- cgit v1.1