mirror of
https://github.com/braver/programmingfonts.git
synced 2024-09-28 14:21:34 +02:00
more reliable color selection
This commit is contained in:
parent
510c9e6e2a
commit
55beda47f1
2
index.js
2
index.js
@ -10,7 +10,7 @@ var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
||||
});
|
||||
|
||||
function applyColors() {
|
||||
$("body").attr("style" ,"--foreground:" + $(".CodeMirror .cm-def").css("color") + "; --background:" + $(".CodeMirror").css("background-color") + ";");
|
||||
$("body").attr("style" ,"--foreground:" + $(".CodeMirror").css("color") + "; --background:" + $(".CodeMirror").css("background-color") + ";");
|
||||
}
|
||||
|
||||
// CodeMirror theme selector
|
||||
|
Loading…
Reference in New Issue
Block a user