editor.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <html>
  2. <head>
  3. <title>Typing Freaks Editor</title>
  4. <link rel="stylesheet" href="editor.css" />
  5. </head>
  6. <body>
  7. <div id="container">
  8. <div id="controls">
  9. <input id="audio" type="file" />
  10. <button id="play">Play</button>
  11. <button id="pause">Pause</button>
  12. <button id="insert-marker">Insert Marker</button>
  13. <div class="scrubber">
  14. <div class="bar">
  15. <div class="bar-overlay"></div>
  16. </div>
  17. <div class="markers">
  18. </div>
  19. </div>
  20. <div class="waveform-container">
  21. <canvas id="waveform"></canvas>
  22. <canvas id="waveform-overlay"></canvas>
  23. </div>
  24. <div id="display"></div>
  25. </div>
  26. <div class="text-areas">
  27. <span id="intervals-label">Intervals</span>
  28. <span id="kanji-label">Kanji</span>
  29. <span id="kana-label">Kana</span>
  30. <ul id="intervals"></ul>
  31. <textarea id="kanji"></textarea>
  32. <textarea id="kana"></textarea>
  33. </div>
  34. <div>
  35. <textarea id="json" placeholder="JSON"></textarea>
  36. </div>
  37. <div>
  38. <button id="import">Import</button>
  39. <button id="export">Export</button>
  40. </div>
  41. </div>
  42. <template id="interval-template">
  43. <li>
  44. <input class="interval" type="number" step="0.1">
  45. <button class="play-section">Play</button>
  46. <button class="remove-section">Remove</button>
  47. </li>
  48. </template>
  49. <script type="text/javascript" src="bundle.js"></script>
  50. <script type="text/javascript">
  51. let e = new editor.Editor();
  52. e.start();
  53. </script>
  54. </body>
  55. </html>