home · contact · privacy
In web client, span invisible text input field over terminal pre.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 14 Dec 2020 21:52:13 +0000 (22:52 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 14 Dec 2020 21:52:13 +0000 (22:52 +0100)
rogue_chat.html

index 26e6bf802f91389628bb286db555c2f64ca70a12..dfb10fe13c2dbe19491faf121a59405857308657 100644 (file)
@@ -14,8 +14,10 @@ terminal rows: <input id="n_rows" type="number" step=4 min=24 value=24 />
 / terminal columns: <input id="n_cols" type="number" step=4 min=80 value=80 />
 / <a href="https://plomlompom.com/repos/?p=plomrogue2;a=summary">source code</a> (includes proper terminal/ncurses client)
 </div>
+<div style="position: relative; display: inline-block;">
 <pre id="terminal"></pre>
-<textarea id="input" style="opacity: 0; width: 0px;"></textarea>
+<textarea id="input" style="position: absolute; left: 0; height: 100%; width: 100%; opacity: 0"></textarea>
+</div>
 <h3>button controls for hard-to-remember keybindings</h3>
 <table id="move_table" style="float: left">
   <tr>