Skip to content

Instantly share code, notes, and snippets.

@bobend
Created November 27, 2012 15:09
Show Gist options
  • Save bobend/4154712 to your computer and use it in GitHub Desktop.
Save bobend/4154712 to your computer and use it in GitHub Desktop.
"10 PRINT CHR$(205.5+RND(1)); : GOTO 10" - javascript version
<!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>
@Ashikpaul
Copy link

Awesome!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment