git.s-ol.nu leap-finger-scan / master src / template.html
master

Tree @master (Download .tar.gz)

template.html @masterraw · history · blame

<!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>