Skip to content

Commit

Permalink
Fix '<' and '>' font size handling.
Browse files Browse the repository at this point in the history
Thanks, Firefox debugger! :D
  • Loading branch information
sirocyl committed Feb 2, 2017
1 parent 203b9aa commit 4b99dfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions execorder/index.html
Expand Up @@ -28,9 +28,9 @@
</body>
<script type='text/javascript'>
function keypress(e) {
var key = e.keyCode;
if (key != 60 && key != 62) return;
var adj = (key == 60) ? -1 : +1;
var key = e.key;
if (key != "<" && key != ">") return;
var adj = (key == "<") ? -1 : +1;
var eo = document.getElementById('eo');
var size = parseInt(eo.style['font-size']);
eo.style['font-size'] = (size + adj) + 'px';
Expand Down

0 comments on commit 4b99dfe

Please sign in to comment.