mirror of
https://github.com/braver/programmingfonts.git
synced 2024-09-27 22:01:35 +02:00
fix it for input
This commit is contained in:
parent
7d1f997274
commit
f7628292ab
30
index.html
30
index.html
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user