This commit is contained in:
awex
2021-06-05 14:18:58 -04:00
parent 1f73421727
commit 4ca8beb79c
4 changed files with 59 additions and 3 deletions
+17
View File
@@ -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');
}
}
+7
View File
@@ -1,4 +1,5 @@
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.
@@ -38,4 +39,10 @@ function checkparam() {
const success = document.getElementById("success"); const success = document.getElementById("success");
success.style.display = "block"; success.style.display = "block";
} }
if (params.get('ref') === 'ee') {
const ee = document.getElementById("easteregg")
ee.style.display = "block";
}
}
} }
+31
View File
@@ -0,0 +1,31 @@
<html>
<body onload="redir()" id="body">
<div id="easteregg" style="display:block;">
<section id="ee" style="padding-top:250px">
<center><iframe width="660" height="415" src="https://www.youtube.com/embed/plxlfuIJPE4?autoplay=1" allow="autoplay" title="YouTube video player" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></center>
</section>
</div>
</body>
</html>
<script>
var doc = document.getElementById("body");
var color = ["black", "blue", "brown", "green"];
var i = 0;
function change() {
var color = ["black", "blue", "brown", "green"];
doc.style.backgroundColor = color[i];
i++;
if(i > color.length - 1) {
i = 0;
}
}
setInterval(change, 500);
function redir() {
window.setTimeout(function(){
window.location.href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}, 20000)
}
</script>
+4 -3
View File
@@ -12,6 +12,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<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>
<!-- 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">
@@ -22,7 +23,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>
<body onload="loadClip()"> <body onload="checkparam()" onload="checkparam()">
<div id="rc_logo"> <div id="rc_logo">
<a href="#" title="Logo">AWEX</a> <a href="#" title="Logo">AWEX</a>
</div> </div>
@@ -87,12 +88,12 @@
<p class="copyright">Awexxx © 2021<br> <p class="copyright">Awexxx © 2021<br>
<div id="quote"></div> <div id="quote"></div>
<script> <script>
var quoteArray = ['You forget a thousand things every day, you make sure this is one of em.', 'THE DAMN SEMI COLON', `console.log('go away')`, `if else if else if else if else if else if else if elsfi fisafhjdskflsdf`, var quoteArray = ['You forget a thousand things every day, you make sure this is one of em.', 'THE DAMN SEMI COLON', `<a onclick="clickyBoy()" id="consolelog">console.log('go away')</a>`, `if else if else if else if else if else if else if elsfi fisafhjdskflsdf`,
`HELP PLEASE IM STUFK IN THE FOOTER CHOSOING THESE RESPONSES PLEASDSJAIF DSAF`] `HELP PLEASE IM STUFK IN THE FOOTER CHOSOING THESE RESPONSES PLEASDSJAIF DSAF`]
var rand = quoteArray[Math.random() * quoteArray.length | 0] var rand = quoteArray[Math.random() * quoteArray.length | 0]
document.querySelector("#quote").innerHTML = "<p>" + rand + "</p>" document.querySelector("#quote").innerHTML = "<p>" + rand + "</p>"
if(rand === `console.log('go away')`) { if(rand === `console.log('go away')`) {
console.log(`go away (no, this isn't a mistake, i actually hard coded this in lmao)\nYou found the easter egg :)`) console.log(`go away (no, this isn't a mistake, i actually hard coded this in lmao)\nYou found the easter egg :)\nBut wait.. something isn't right.. click it!`)
} }
</script> </script>