Created
November 27, 2012 15:09
-
-
Save bobend/4154712 to your computer and use it in GitHub Desktop.
"10 PRINT CHR$(205.5+RND(1)); : GOTO 10" - javascript version
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Index</title> | |
</head> | |
<body style="margin: 0px;"> | |
<div style="word-wrap: break-word; line-height: 1em;" id="content"></div> | |
<script type="text/javascript"> | |
var boxes = ["╱", "╲"]; | |
var max = 4000; | |
function writeNext() | |
{ | |
document.getElementById('content').innerHTML += | |
boxes[Math.round(Math.random())]; | |
} | |
var count = 0; | |
function run() { | |
writeNext(); | |
if(count++ < max) { | |
setTimeout(run,5); | |
} | |
} | |
run(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome!!