base.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!doctype html>
  2. {% include 'notice.html' %}
  3. <html>
  4. <head>
  5. <meta charset='utf-8'/>
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="theme-color" content="#45acf4">
  8. <title>Acoustic Genderspace Viewer - Research Trial</title>
  9. <link rel="shortcut icon" href="./resources/logo.png">
  10. <link rel="icon" sizes="192x192" href="./resources/logo.png">
  11. <link href="data:text/css," rel="stylesheet" type="text/css" title="Null">
  12. <link rel="manifest" href="./manifest.json">
  13. <style>
  14. {% filter indent(width=12) %}
  15. {% include 'variables.css' %}
  16. {% include 'layout.css' %}
  17. {% include 'style.css' %}
  18. {% include 'voice-graph.css' %}
  19. {% include 'spinner.css' %}
  20. {% endfilter %}
  21. </style>
  22. <script>
  23. {% include 'svg-icons.js' %}
  24. </script>
  25. {% if dev %}
  26. <script src="./ui/dom.js"></script>
  27. <script src="./ui/globals.js"></script>
  28. <script src="./ui/clip.js"></script>
  29. <script src="./ui/examples.js"></script>
  30. <script src="./ui/util.js"></script>
  31. {% else %}
  32. <script>
  33. {% filter indent(width=8) %}
  34. {% include "dom.js" %}
  35. {% include "globals.js" %}
  36. {% include "clip.js" %}
  37. {% include "examples.js" %}
  38. {% include "util.js" %}
  39. {% endfilter %}
  40. </script>
  41. {% endif %}
  42. </head>
  43. <body class="narrow-body custom-widgets">
  44. {% include 'popup.html' %}
  45. <header>
  46. {% filter indent(width=12) %}
  47. {% include 'player.html' %}
  48. {% endfilter %}
  49. <button class="new-clip attention" title='Add new clip'>{% include 'plus-lg.svg' %}<span>Clip</span></button>
  50. <div class="spinner hidden"></div>
  51. <div class="loading-message">Adding clip...</div>
  52. <script>
  53. $('button.new-clip').addEventListener('click', evt => {
  54. $('.modal').appendChild($('section.new-clip'));
  55. showModal();
  56. });
  57. </script>
  58. </header>
  59. <main>
  60. <section>
  61. <voice-graph-2d></voice-graph-2d>
  62. </section>
  63. <aside>
  64. {% filter indent(width=16) %}
  65. {% include 'sidepane.html' %}
  66. {% endfilter %}
  67. </aside>
  68. </main>
  69. {% filter indent(width=8) %}
  70. {% include 'modal.html' %}
  71. {% endfilter %}
  72. <!-- This is where we keep stuff we don't want visible -->
  73. <div id="offscreen">
  74. {% filter indent(width=12) %}
  75. {% include 'settings.html' %}
  76. {% include 'help.html' %}
  77. {% include 'details.html' %}
  78. {% include 'new-clip.html' %}
  79. {% endfilter %}
  80. </div>
  81. {% include "svg-icons.js" %}
  82. {% if dev %}
  83. <script src="./ui/index.js"></script>
  84. <script src="./ui/voice-graph.js"></script>
  85. {% else %}
  86. <script>
  87. {% filter indent(width=12) %}
  88. {% include "index.js" %}
  89. {% include "voice-graph.js" %}
  90. {% endfilter %}
  91. </script>
  92. {% endif %}
  93. </body>
  94. </html>