aboutsummaryrefslogtreecommitdiffstats
path: root/src/template.html
blob: ef16fb85e7d8cc8722a59a8663f530998bf7bd6d (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Leap Finger Scan</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <style>
    body {
      display: flex;
      margin: 0;
      padding: 0;

      width: 100vw;
      height: 100vh;

      overflow: hidden;

      flex-direction: column;

      background: #212121;
      color: #696969;
      font-family: sans-serif;
    }

    header {
      display: flex;

      min-height: 7em;
      justify-content: space-between;
      flex-wrap: wrap;

      flex: 0 0 auto;
    }

    header > div {
      display: flex;

      flex-direction: column;
      margin: 0.5em 1em;
    }

    header > div > span {
      font-size: 2em;
    }

    button {
      margin: 0.2em 0;
      flex: 1;

      border: 2px solid #696969;
      color: #696969;
      background: none;

      transition: background 300ms, color 300ms;
    }

    button:hover {
      background: #696969;
      color: #212121;
    }

    key {
      font-size: 0.8rem;
      line-height: 0.8rem;
      padding: 0.2rem;
      font-family: monospace;

      background: #696969;
      color: #212121;
    }

    div {
      padding: 0 0.5em 0.5em;
    }

    #main {
      flex: 1 1 0;
      width: auto !important;
      height: auto !important;
    }
  </style>
</head>
<body>
  <header id="header"></header>
  <div>
    <b>hotkeys &mdash;</b>
    <key>1-5</key> track fingers &mdash;
    <key>space</key> toggle slice data view &mdash;
    <key>shift</key> rotate slice &mdash;
    <key>alt</key> scale slice &mdash;
    <key>S</key> export data &mdash;
    <key>L</key> import data &mdash;
    <key>R</key> reset
  </div>
  <canvas id="main"></canvas>
</body>
</html>