deal with initial state without hash

This commit is contained in:
Koen Lageveen 2017-10-26 21:03:02 +02:00
parent 899ff9cd35
commit 5f2b3c4956
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,10 @@ function selectTheme() {
function selectFont() {
var font = window.location.hash.substring(1);
if (font === "") {
font = "input";
}
if (font === "input") {
$("pre").css({ fontFamily: "Input Mono, monospace" });
$("textarea").css({ fontFamily: "Input Mono, monospace" });