summaryrefslogtreecommitdiff
path: root/src/toys/turing/index.html
blob: 838c5bf51d2b6cfe09415da67fd0c5d13da3bd49 (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
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="https://adelie.liz.coffee/bundle.css">
  <link rel="stylesheet" href="./css/styles.css">
  <title>Turing Machine</title>
</head>
<body>
  <main>
    <article>
      <h3>Turing Machine</h3>

      <p id="state-text">State: _, Step: 0</p>

      <div id="tape" class="tape mt-md"></div>

      <div class="controls mt-sm">
        <button id="run-btn" class="primary">Run (Ctrl + Enter)</button>
        <button id="step-btn">Step</button>
        <button id="reset-btn">Reset</button>
        <button id="copy-btn">Copy State</button>
      </div>

      <section class="mt-lg">
        <div class="mt-sm">
          <label for="program-select">Example:</label>
          <select id="program-select"></select>
        </div>

        <div id="code-editor" class="code-editor-container mt-sm"></div>
      </section>
    </article>
  </main>

  <script src="https://adelie.liz.coffee/bundle.js"></script>
  <script src="https://adelie.liz.coffee/adelie-editor.js"></script>
  <script type="module" src="./js/main.js">
  </script>
</body>
</html>