This commit is contained in:
awex
2021-06-21 17:44:04 -04:00
parent 181de09fbe
commit 01d2fefae8
2 changed files with 12 additions and 2 deletions
+9 -2
View File
@@ -1,5 +1,4 @@
function checkparam() { function checkparam() {
window.onLoad = function() {
const params = new URLSearchParams(window.location.search) const params = new URLSearchParams(window.location.search)
// console.log(params) Only uncomment this for testing purposes. // console.log(params) Only uncomment this for testing purposes.
@@ -44,5 +43,13 @@ function checkparam() {
const ee = document.getElementById("easteregg") const ee = document.getElementById("easteregg")
ee.style.display = "block"; ee.style.display = "block";
} }
if (params.get('ref') === 'demi') {
window.location.replace("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
} }
} }
window.addEventListener ?
window.addEventListener("load",checkparam,false)
:
window.attachEvent && window.attachEvent("onload",checkparam);
+3
View File
@@ -13,6 +13,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/js/bootstrap.bundle.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/medalclips.js"></script> <script src="assets/js/medalclips.js"></script>
<script src="assets/js/clicky.js"></script> <script src="assets/js/clicky.js"></script>
<script src="assets/js/q.js"></script>
<!-- Metadata --> <!-- Metadata -->
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -23,6 +24,7 @@
<meta content="https://awexxx.xyz/assets/img/logo.png" property="og:image"> <meta content="https://awexxx.xyz/assets/img/logo.png" property="og:image">
<meta content="#9c2d1c" data-react-helmet="true" name="theme-color"> <meta content="#9c2d1c" data-react-helmet="true" name="theme-color">
</head> </head>
<div id="bodydiv">
<body onload="medalclips()"> <body onload="medalclips()">
<div id="rc_logo"> <div id="rc_logo">
<a href="#" title="Logo">AWEX</a> <a href="#" title="Logo">AWEX</a>
@@ -101,6 +103,7 @@
</div> </div>
</body> </body>
</div>
</html> </html>
<style> <style>