Last active
December 10, 2015 01:38
-
-
Save olizilla/4360161 to your computer and use it in GitHub Desktop.
Unicode
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> | |
<meta charset="utf-8"> | |
<title>Unicode</title> | |
<style type="text/css"> | |
#output { | |
font-family: monospace; | |
text-align: center; | |
margin-top: 0.4em; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="output"></div> | |
<script> | |
var output = document.getElementById("output"); | |
output.style.fontSize = (window.innerHeight / 2) + "px"; | |
var characterCode = 30; | |
function nextChar() { | |
output.innerHTML = String.fromCharCode(characterCode); | |
characterCode++; | |
} | |
nextChar(); | |
setInterval(nextChar,100); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment