Last active
August 29, 2015 14:12
-
-
Save kishaningithub/b88acf76e8f129796d07 to your computer and use it in GitHub Desktop.
GooodBoy.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body style="background-color:black"> | |
<div id="junkWriter" style="color:green"> | |
</div> | |
<script> | |
(function(){ | |
function getRandomInt(min, max) { | |
return Math.floor(Math.random() * (max - min)) + min; | |
} | |
function repeatedAlert() | |
{ | |
var junkWriter=document.getElementById("junkWriter"); | |
junkWriter.innerHTML =""; | |
var noOfIterations=( (window.innerWidth * window.innerHeight) / 1000 ) * 4; | |
noOfIterations = Math.floor(noOfIterations) + 1; | |
for(var i=0;i<noOfIterations;i++){ | |
junkWriter.innerHTML = junkWriter.innerHTML + getRandomInt(0,9)+" "; | |
} | |
alert("You have entered the Jammais matrix!"); | |
} | |
setInterval(repeatedAlert,200); | |
})(); | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment