From 4ca8beb79ce71da5ba83b3708b79b12d022409f6 Mon Sep 17 00:00:00 2001 From: awex Date: Sat, 5 Jun 2021 14:18:58 -0400 Subject: [PATCH] ;) --- assets/js/clicky.js | 17 +++++++++++++++++ assets/js/q.js | 7 +++++++ easter-egg.html | 31 +++++++++++++++++++++++++++++++ index.html | 7 ++++--- 4 files changed, 59 insertions(+), 3 deletions(-) create mode 100644 assets/js/clicky.js create mode 100644 easter-egg.html diff --git a/assets/js/clicky.js b/assets/js/clicky.js new file mode 100644 index 0000000..fc12624 --- /dev/null +++ b/assets/js/clicky.js @@ -0,0 +1,17 @@ +var count = 0; + +function clickyBoy() { + count++; + if (count == 1){ + alert("You feel the ground shake..") + } else if (count === 2) { + alert("You feel your spine tingle..") + } else if (count === 3) { + alert("The ground starts to split..") + } else if (count === 4) { + alert("It starts to rise up..") + } else if (count === 5) { + alert("It's here..") + window.location.replace('./easter-egg.html'); + } +} \ No newline at end of file diff --git a/assets/js/q.js b/assets/js/q.js index ee333ce..0370b46 100644 --- a/assets/js/q.js +++ b/assets/js/q.js @@ -1,4 +1,5 @@ function checkparam() { + window.onLoad = function() { const params = new URLSearchParams(window.location.search) // console.log(params) Only uncomment this for testing purposes. @@ -38,4 +39,10 @@ function checkparam() { const success = document.getElementById("success"); success.style.display = "block"; } + + if (params.get('ref') === 'ee') { + const ee = document.getElementById("easteregg") + ee.style.display = "block"; + } + } } \ No newline at end of file diff --git a/easter-egg.html b/easter-egg.html new file mode 100644 index 0000000..d3aaf0c --- /dev/null +++ b/easter-egg.html @@ -0,0 +1,31 @@ + + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/index.html b/index.html index bd6f0c5..e91e1c9 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,7 @@ + @@ -22,7 +23,7 @@ - + @@ -87,12 +88,12 @@