Skip to content

Instantly share code, notes, and snippets.

@olizilla
Last active December 10, 2015 01:38
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 olizilla/4360161 to your computer and use it in GitHub Desktop.
Save olizilla/4360161 to your computer and use it in GitHub Desktop.
Unicode
<!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