Skip to content

Instantly share code, notes, and snippets.

@olizilla olizilla/index.html
Last active Dec 10, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.