╭ 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: 20px; 26 line-height: 20px; 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 .ansi-art { 37 position: absolute; 38 top: 0; 39 pointer-events: none; 40 } 41 42 .grid-content { 43 position: relative; 44 } 45 46 body:has(#grid .scroll:not([data-scroll-direction="horiz"])) { 47 height: 100vh; 48 overflow: hidden; 49 } 50 51 /* each web-native Scroll widget: a box positioned over its viewport 52 (left/top/width/height and per-axis overflow come inline, the latter 53 from the widget's scroll direction) */ 54 .scroll { 55 position: absolute; 56 /* scrollbars are hidden; panes scroll via wheel/trackpad and via 57 scrollIntoView on keyboard focus, so a visible bar would only 58 cover content. (Firefox / WebKit respectively.) */ 59 scrollbar-width: none; 60 } 61 .scroll::-webkit-scrollbar { 62 display: none; 63 } 64 65 /* render each colored cell-run as an inline-block to prevent 66 horizontal seams between rows of the block art. */ 67 #grid span { 68 display: inline-block; 69 vertical-align: top; 70 } 71 72 /* a double-width rune pinned to its two grid cells so its advance 73 width can't shift the rest of the row. */ 74 #grid .w2 { 75 width: 2ch; 76 overflow: hidden; 77 } 78 79 /* overlay elements share the grid's coordinate system since 80 their parent (.page) is the positioning ancestor and the 81 grid sits at its top-left. */ 82 .page input, 83 .page textarea, 84 .page button { 85 position: absolute; 86 font: inherit; 87 padding: 0; 88 margin: 0; 89 outline: none; 90 box-sizing: border-box; 91 } 92 93 .page input, 94 .page textarea { 95 color: inherit; 96 background: transparent; 97 border: none; 98 } 99 100 /* the TUI border cells own the frame, so the textarea can't be 101 drag-resized past them */ 102 .page textarea { 103 resize: none; 104 overflow-y: auto; 105 } 106 107 /* the TUI cells under the button render the border + label; 108 the overlay button stays transparent so they show through 109 and just owns the click + form-submit behavior. */ 110 .page button { 111 background: transparent; 112 color: transparent; 113 border: none; 114 cursor: pointer; 115 } 116 117 #grid a { 118 color: inherit; 119 text-decoration: none; 120 } 121 122 #grid .clickable { 123 cursor: pointer; 124 } 125 </style> 126 </head> 127 <body> 128 <div class="page"> 129 <div id="grid">{{{ HAXY_HTML }}}</div> 130 <div id="overlay">{{{ HAXY_OVERLAY }}}</div> 131 </div> 132 <script id="page-data" type="application/json">{{{ HAXY_JSON }}}</script> 133 <script src="/script.js"></script> 134 </body> 135 </html> 136