aboutsummaryrefslogtreecommitdiff
path: root/index.html
blob: f6ce0ead86cf6ddcbb49abbfea96343b4ea9487a (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
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Vanguard Editor</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="theme-color" content="#1D7BA3">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,900;1,400;1,900&display=swap">
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <h1>Vanguard</h1>
    <div id="toolbar">
      <input type="file" id="open-file" accept=".json,application/json">
      <div id="theme" class="material-icons">brightness_medium</div>
      <label id="open" for="open-file" class="material-icons">folder_open</label>
      <a id="save" class="material-icons">save_alt</a>
    </div>
    <div id="main"></div>
    <div id="unreachable"></div>

    <template id="view-entry">
      <a class="edit-btn material-icons">edit</a>
      <h2></h2>
    </template>

    <template id="edit-entry">
      <a class="done-btn material-icons">done</a>
      <h2></h2>
      <textarea id="body" rows="1"></textarea>
      <div class="choices"></div>
      <div class="add-choice material-icons">add</div>
    </template>

    <template id="edit-choice">
      <div class="choice-delete material-icons">clear</div>
      <textarea rows="1"></textarea>
    </template>

    <script src="dexie.js"></script>
    <script src="markup.js"></script>
    <script src="main.js"></script>
  </body>
</html>