aboutsummaryrefslogtreecommitdiff
path: root/src/wasm/index.html
blob: db24ceb17e53c27f4a9aa2d7f3df5f9ab507bd47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>nvim.wasm RPC client</title>
    <link rel="stylesheet" href="style.css" />

    <style>
      #grid {
        font-family: "SFMono-Regular", Menlo, Consolas, monospace;
        font-size: 14px;
        line-height: 1.35;
        white-space: pre;
        background: #050912;
        color: #dfe5f1;
        border: 1px solid #2a3346;
        border-radius: 8px;
        padding: 8px;
        outline: none;
        overflow: auto;
      }

      #grid:focus {
        border-color: #5ad1ff;
      }

      .cursor {
        outline: 1px solid currentColor;
      }

      #bar {
        display: none;
      }
    </style>
  </head>

  <body>
    <div id="grid" tabindex="0" aria-label="Neovim grid"></div>

    <div id="bar">
      <span id="status">booting…</span>
    </div>

    <script
      crossorigin="anonymous"
      src="https://cdn.jsdelivr.net/npm/msgpackr/dist/index.js"
    ></script>
    <script src="msgpack.js"></script>
    <script src="msgpackrpc.js"></script>
    <script src="rpc.js"></script>
    <script src="app.js"></script>
  </body>
</html>