Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -556,20 +556,11 @@ with gr.Blocks(css=css) as demo:
|
|
556 |
this.value = \"\";
|
557 |
}
|
558 |
}
|
559 |
-
'
|
560 |
-
document.getElementById(\"keymap\").style.color = \"white\";
|
561 |
-
document.getElementById(\"keymap\").innerHTML = document.getElementById(\"keymap\").innerHTML.replace(/\s[weasdzx]\s/gi, function(c){
|
562 |
-
return \"<b style="color:red">\" + c.toUpperCase() + \"</b>\";
|
563 |
-
}).replace(/\s[tyfghvb]\s/gi, function(c){
|
564 |
-
return \"<b style="color:green">\" + c.toUpperCase() + \"</b>\";
|
565 |
-
}).replace(/\s[iojklm,]\s/gi, function(c){
|
566 |
-
return \"<b style="color:blue">\" + c.toUpperCase() + \"</b>\";
|
567 |
-
});
|
568 |
-
}'/><pre id='keymap'>
|
569 |
` 1 2 3 4 5 6 7 8 9 0 - =
|
570 |
-
|
571 |
-
A
|
572 |
-
Z
|
573 |
move rotate scale
|
574 |
</pre>""")
|
575 |
selected = gr.Number(elem_id="fnum", value=0, minimum=0, maximum=256, interactive=False)
|
|
|
556 |
this.value = \"\";
|
557 |
}
|
558 |
}
|
559 |
+
' style='color:auto;background-color:transparent;border:1px solid lightgray;'/><pre id='keymap'>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
560 |
` 1 2 3 4 5 6 7 8 9 0 - =
|
561 |
+
W E T Y I O { }
|
562 |
+
A-`S´-D F-`G´-H J-`K´-L ; '
|
563 |
+
Z´ X̀ V´ B̀ M´ `, . /
|
564 |
move rotate scale
|
565 |
</pre>""")
|
566 |
selected = gr.Number(elem_id="fnum", value=0, minimum=0, maximum=256, interactive=False)
|