fix it for input

This commit is contained in:
Koen Lageveen 2016-02-29 22:48:24 +01:00
parent 7d1f997274
commit f7628292ab

View File

@ -296,15 +296,27 @@ function findSequence(goal) {
function selectFont() {
var font = $("#select-font").val();
$("pre").css({
fontFamily: font
});
$("textarea").css({
fontFamily: font
});
$(".CodeMirror").css({
fontFamily: font
});
if (font === "input") {
$("pre").css({
fontFamily: "Input Mono"
});
$("textarea").css({
fontFamily: "Input Mono"
});
$(".CodeMirror").css({
fontFamily: "Input Mono"
});
} else {
$("pre").css({
fontFamily: font
});
$("textarea").css({
fontFamily: font
});
$(".CodeMirror").css({
fontFamily: font
});
}
$("#font-info p").hide();
$("." + font).show();