Skip to content

Instantly share code, notes, and snippets.

@kishaningithub
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kishaningithub/b88acf76e8f129796d07 to your computer and use it in GitHub Desktop.
Save kishaningithub/b88acf76e8f129796d07 to your computer and use it in GitHub Desktop.
GooodBoy.html
<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