freealise commited on
Commit
26f32f4
1 Parent(s): 822a192

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -13
app.py CHANGED
@@ -556,20 +556,11 @@ with gr.Blocks(css=css) as demo:
556
  this.value = \"\";
557
  }
558
  }
559
- ' onfocus='if (document.getElementById(\"keymap\").style.color != \"white\") {
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=&quot;color:red&quot;>\" + c.toUpperCase() + \"</b>\";
563
- }).replace(/\s[tyfghvb]\s/gi, function(c){
564
- return \"<b style=&quot;color:green&quot;>\" + c.toUpperCase() + \"</b>\";
565
- }).replace(/\s[iojklm,]\s/gi, function(c){
566
- return \"<b style=&quot;color:blue&quot;>\" + c.toUpperCase() + \"</b>\";
567
- });
568
- }'/><pre id='keymap'>
569
  ` 1 2 3 4 5 6 7 8 9 0 - =
570
- Q W E R T Y U I O P { }
571
- A S D F G H J K L ; '
572
- Z X C V B N M , . /
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)