╭ index.html ───────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 <title>HAXY</title> 6 <style> 7 html { 8 background-color: rgba(0, 50, 70, 1.0); 9 color: rgba(200, 200, 200, 1.0); 10 } 11 12 /* no body margin because it could push content past the viewport and 13 add a window scrollbar */ 14 body { 15 margin: 0; 16 } 17 18 @font-face { 19 font-family: '3270'; 20 src: url('/term.ttf') format('truetype'); 21 } 22 23 .page { 24 font-family: '3270', monospace; 25 font-size: 22px; 26 line-height: 22px; 27 position: relative; 28 } 29 30 #grid { 31 white-space: pre; 32 /* positioning context for the top-level .scroll divs */ 33 position: relative; 34 } 35 36 /* each web-native Scroll widget: a box positioned over its viewport 37 (left/top/width/height and per-axis overflow come inline, the latter 38 from the widget's scroll direction) */ 39 .scroll { 40 position: absolute; 41 /* scrollbars are hidden; panes scroll via wheel/trackpad and via 42 scrollIntoView on keyboard focus, so a visible bar would only 43 cover content. (Firefox / WebKit respectively.) */ 44 scrollbar-width: none; 45 } 46 .scroll::-webkit-scrollbar { 47 display: none; 48 } 49 50 /* render each colored cell-run as an inline-block to prevent 51 horizontal seams between rows of the block art. */ 52 #grid span { 53 display: inline-block; 54 vertical-align: top; 55 } 56 57 /* a double-width rune pinned to its two grid cells so its advance 58 width can't shift the rest of the row. */ 59 #grid .w2 { 60 width: 2ch; 61 overflow: hidden; 62 } 63 64 /* overlay elements share the grid's coordinate system since 65 their parent (.page) is the positioning ancestor and the 66 grid sits at its top-left. */ 67 .page input, 68 .page textarea, 69 .page button { 70 position: absolute; 71 font: inherit; 72 padding: 0; 73 margin: 0; 74 outline: none; 75 box-sizing: border-box; 76 } 77 78 .page input, 79 .page textarea { 80 color: inherit; 81 background: transparent; 82 border: none; 83 } 84 85 /* the TUI border cells own the frame, so the textarea can't be 86 drag-resized past them */ 87 .page textarea { 88 resize: none; 89 overflow-y: auto; 90 } 91 92 /* the TUI cells under the button render the border + label; 93 the overlay button stays transparent so they show through 94 and just owns the click + form-submit behavior. */ 95 .page button { 96 background: transparent; 97 color: transparent; 98 border: none; 99 cursor: pointer; 100 } 101 102 #grid a { 103 color: inherit; 104 text-decoration: none; 105 } 106 107 #grid .clickable { 108 cursor: pointer; 109 } 110 </style> 111 </head> 112 <body> 113 <div class="page"> 114 <div id="grid">{{{ HAXY_HTML }}}</div> 115 <div id="overlay">{{{ HAXY_OVERLAY }}}</div> 116 </div> 117 <script id="page-data" type="application/json">{{{ HAXY_JSON }}}</script> 118 <script src="/script.js"></script> 119 </body> 120 </html> 121