summaryrefslogtreecommitdiffstats
path: root/site/index.html
blob: eeebbe9d47fdc56b3494b2c48fb069d374e33383 (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html>
  <head>
    <title>automathon</title>
    <link rel='stylesheet' href='main.css'>
  </head>

  <body>
    <h1>automathon</h1>

    <div id='ff'>
      <section id='arena'>
        <h2>arena</h2>
        <canvas width='300px' height='300px'>
          oh no! no canvas support!
        </canvas>

        <div class='controls'>
          <!-- <button id='bench'>bench</button> -->
          <button id='tick'>tick</button>
          <button id='blinken'>blinken</button>
          <label for='tick-rate-select'>tps:</label>
          <select id='tick-rate-select'>
            <option>5</option>
            <option>10</option>
            <option selected>15</option>
            <option>30</option>
            <option>45</option>
            <option>60</option>
          </select>
        </div> <!-- controls -->
      </section> <!-- arena -->

      <section id='robview'>
        <h2>code</h2>
        <details id='editor' open>
          <summary>code</summary>
          <div id='code'>
            <select id='src-select'>
              <option>rob.fs</option>
              <option>fac.fs</option>
              <option>slo-fac.fs</option>
            </select>
            <button id='compile'>compile</button>
            <br>
            <div id='src' contenteditable='plaintext-only'></div>
          </div> <!-- code -->
        </details>

        <details id='scope' open>
          <summary>scope</summary>
          <fieldset class='wordlist'>
            <legend>word list</legend>
            <div id='wordlist'></div>
          </fieldset>

          <fieldset class='vars'>
            <legend>vars</legend>
            <dl id='vars'></dl>
          </fieldset>

          <fieldset class='stack'>
            <legend>stack</legend>
            <ol id='stack'></ol>
          </fieldset>

          <fieldset class='callstack'>
            <legend>call stack</legend>
            <ol id='callstack'></ol>
          </fieldset>
        </details> <!-- scope -->
      </section> <!-- robview -->
    </div>

    <script src='./main.mjs' type='module'></script>

    <footer>
      <address><a href='https://git.spork.org/automathon.git'>src</a></address>
    </footer>
  </body>
</html>