╭ 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 /* overlay elements share the grid's coordinate system since 58 their parent (.page) is the positioning ancestor and the 59 grid sits at its top-left. */ 60 .page input, 61 .page button { 62 position: absolute; 63 font: inherit; 64 padding: 0; 65 margin: 0; 66 outline: none; 67 box-sizing: border-box; 68 } 69 70 .page input { 71 color: inherit; 72 /* transparent field so the backdrop shows through fully; a dark 73 halo backs just the characters so they stay legible */ 74 background: transparent; 75 text-shadow: 0 0 3px #000, 0 0 5px #000, 0 0 5px #000; 76 border: none; 77 } 78 79 /* the TUI cells under the button render the border + label; 80 the overlay button stays transparent so they show through 81 and just owns the click + form-submit behavior. */ 82 .page button { 83 background: transparent; 84 color: transparent; 85 border: none; 86 cursor: pointer; 87 } 88 89 #grid a { 90 color: inherit; 91 text-decoration: none; 92 } 93 94 #grid .clickable { 95 cursor: pointer; 96 } 97 </style> 98 </head> 99 <body> 100 <div class="page"> 101 <div id="grid">{{{ HAXY_HTML }}}</div> 102 <div id="overlay">{{{ HAXY_OVERLAY }}}</div> 103 </div> 104 <script id="page-data" type="text/plain">{{{ HAXY_JSON }}}</script> 105 <script src="/script.js"></script> 106 </body> 107 </html> 108