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
+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>