From 01d2fefae89935f7d6e28c5dddfd4b80e37e3319 Mon Sep 17 00:00:00 2001 From: awex Date: Mon, 21 Jun 2021 17:44:04 -0400 Subject: [PATCH] wink --- assets/js/q.js | 11 +++++++++-- index.html | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/assets/js/q.js b/assets/js/q.js index 0370b46..992b5f0 100644 --- a/assets/js/q.js +++ b/assets/js/q.js @@ -1,5 +1,4 @@ function checkparam() { - window.onLoad = function() { const params = new URLSearchParams(window.location.search) // console.log(params) Only uncomment this for testing purposes. @@ -44,5 +43,13 @@ function checkparam() { const ee = document.getElementById("easteregg") ee.style.display = "block"; } + + if (params.get('ref') === 'demi') { + window.location.replace("https://www.youtube.com/watch?v=dQw4w9WgXcQ") + } } -} \ No newline at end of file + + window.addEventListener ? + window.addEventListener("load",checkparam,false) + : + window.attachEvent && window.attachEvent("onload",checkparam); \ No newline at end of file diff --git a/index.html b/index.html index a1df94a..71496c3 100644 --- a/index.html +++ b/index.html @@ -13,6 +13,7 @@ + @@ -23,6 +24,7 @@ +
+