index.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title><%= htmlWebpackPlugin.options.title %></title>
  7. <meta name="description" content="A showcase for OpenSheetMusicDisplay.">
  8. <meta name="author" content="OpenSheetMusicDisplay contributors">
  9. <!-- Demo index.js file is included automatically by webpack during build -->
  10. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" type="text/javascript"></script>
  11. <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/semantic.min.js" type="text/javascript"></script>
  12. <link href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/semantic.css" media="all" rel="stylesheet"/>
  13. <link href="https://unpkg.com/material-components-web@7.0.0/dist/material-components-web.min.css" rel="stylesheet">
  14. <link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
  15. <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@splidejs/splide@latest/dist/css/splide.min.css">
  17. <link href="annotations-ui.css" media="all" rel="stylesheet"/>
  18. <link rel="icon" href="./favicon.ico?" type="image/x-icon"/>
  19. </head>
  20. <body>
  21. <h1 class="ui centered header" id="header" style="opacity: 0.0">
  22. <img src="./favicon.ico?" class="ui image">
  23. <%= htmlWebpackPlugin.options.title %>
  24. </h1>
  25. <div class="ui four column grid container" id="divControls" style="visibility: hidden; opacity: 0.0">
  26. <div class="column">
  27. <h3 class="ui header">Select a sample:</h3>
  28. <select class="ui selection dropdown" id="selectSample" style="width:320px; height:38%; visibility: hidden"></select>
  29. </div>
  30. <div class="column" id="backend-select-div" style="visibility: hidden">
  31. <h3 class="ui header">Render backend:</h3>
  32. <select class="ui selection dropdown" id="backend-select" value="svg" style="height:38%; visibility: hidden;">
  33. <option value="svg">SVG</option>
  34. <option value="canvas">Canvas</option>
  35. </select>
  36. </div>
  37. <div class="column">
  38. <h3 class="ui header">Cursor controls:</h3>
  39. <div>
  40. <div class="ui vertical buttons">
  41. <div class="ui animated fade button" id="show-cursor-btn">
  42. <div class="visible content">Show</div>
  43. <div class="hidden content">
  44. <i class="eye icon"></i>
  45. </div>
  46. </div>
  47. <div class="ui animated fade button" id="hide-cursor-btn">
  48. <div class="visible content">Hide</div>
  49. <div class="hidden content">
  50. <i class="eye slash icon"></i>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="ui vertical buttons">
  55. <div class="ui animated fade button" id="previous-cursor-btn">
  56. <div class="visible content">Previous</div>
  57. <div class="hidden content">
  58. <i class="arrow left icon"></i>
  59. </div>
  60. </div>
  61. <div class="ui animated fade button" id="next-cursor-btn">
  62. <div class="visible content">Next</div>
  63. <div class="hidden content">
  64. <i class="arrow right icon"></i>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="ui vertical buttons">
  69. <div class="ui animated fade button" id="reset-cursor-btn">
  70. <div class="visible content">Reset</div>
  71. <div class="hidden content">
  72. <i class="undo icon"></i>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="item">
  77. <div class="ui toggle checkbox">
  78. <input type="checkbox" name="public" id="follow-cursor-checkbox" checked="true">
  79. <label>Follow Cursor</label>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="column" id="zoomControls">
  85. <h3 class="ui header">Zoom controls:</h3>
  86. <div class="ui buttons" id="zoomControlsButtons">
  87. <div class="ui button" id="zoom-in-btn">
  88. <i class="search plus icon"></i>
  89. </div>
  90. <div class="ui button" id="zoom-out-btn">
  91. <i class="search minus icon"></i>
  92. </div>
  93. </div>
  94. <h4 class="ui header" id="zoom-str">???</h4>
  95. </div>
  96. <div class="column">
  97. <h3 class="ui header">Show bounding box for:</h3>
  98. <select class="ui selection dropdown" id="selectBounding" style="visibility: hidden;">
  99. <option value="none">None</option>
  100. <option value="all">All</option>
  101. <option value="VexFlowMeasure">Measures</option>
  102. <option value="VexFlowGraphicalNote">GraphicalNotes</option>
  103. <option value="VexFlowVoiceEntry">VoiceEntries</option>
  104. <option value="VexFlowStaffEntry">StaffEntries</option>
  105. <option value="GraphicalLabel">Labels</option>
  106. <option value="VexFlowStaffLine">StaffLines</option>
  107. <option value="SystemLine">SystemLines</option>
  108. <option value="StaffLineActivitySymbol">ActivitySymbols</option>
  109. <option value="VexFlowContinuousDynamicExpression">DynamicExpressions</option>
  110. </select>
  111. </div>
  112. <div class="column">
  113. <h3 class="ui header">Show debug information:</h3>
  114. <div class="ui relaxed list">
  115. <div class="item">
  116. <div class="ui toggle checkbox">
  117. <input type="checkbox" name="public" id="skylineDebug">
  118. <label>Skyline</label>
  119. </div>
  120. </div>
  121. <div class="item">
  122. <div class="ui toggle checkbox">
  123. <input type="checkbox" name="public" id="bottomlineDebug">
  124. <label>Bottomline</label>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="column">
  130. <h3 class="ui header">Debug controls:</h3>
  131. <div>
  132. <div class="ui vertical buttons">
  133. <div class="ui button" id="debug-re-render-btn">Re-render</div>
  134. </div>
  135. <div class="ui vertical buttons">
  136. <div class="ui button" id="debug-clear-btn">Clear</div>
  137. </div>
  138. </div>
  139. </div>
  140. <div class="column">
  141. <h3 class="ui header">Page size:</h3>
  142. <select class="ui selection dropdown" id="selectPageSize" style="visibility: hidden;">
  143. <option value="endless">endless</option>
  144. <option value="A3 P">A3 Portrait</option>
  145. <option value="A3 L">A3 Landscape</option>
  146. <option value="A4 P">A4 Portrait</option>
  147. <option value="A4 L">A4 Landscape</option>
  148. <option value="A5 P">A5 Portrait</option>
  149. <option value="A5 L">A5 Landscape</option>
  150. <option value="Letter P">Letter Portrait</option>
  151. <option value="Letter L">Letter Landscape</option>
  152. </select>
  153. <div class="ui button" id="print-pdf-btn">Create PDF</div>
  154. </div>
  155. <div class="column">
  156. <h3 class="ui header">Transpose by Semitone(s):</h3>
  157. <div class="ui action input">
  158. <input type="number" id="transpose" value="0"/>
  159. <button class="ui button" id="transpose-btn">Transpose</button>
  160. </div>
  161. </div>
  162. <div class="column">
  163. <h3 class="ui header">Performance Mode:</h3>
  164. <div class="ui toggle checkbox">
  165. <input type="checkbox" name="public" id="performanceMode">
  166. <label>Performance Mode</label>
  167. </div>
  168. </div>
  169. </div>
  170. <div id="optionalControls" style="opacity: 0.0; width: 95%; display: block">
  171. <div class="ui three column grid container" style="padding: 10px; margin-right: auto; margin-left: auto" id="optionalControlsColumnContainer">
  172. <div class="column" id="zoomControlsButtons-optional-column" style="min-width: 30%; opacity: 0.0">
  173. <div class="ui buttons" id="zoomControlsButtons-optional">
  174. <div class="ui button" id="zoom-in-btn-optional">
  175. <i class="search plus icon"></i>
  176. </div>
  177. <div class="ui button" id="zoom-out-btn-optional">
  178. <i class="search minus icon"></i>
  179. </div>
  180. </div>
  181. <h4 id="zoom-str-optional">???</h4>
  182. </div>
  183. <div class="column" id="print-pdf-btn-optional-column" style="opacity: 0.0; max-width: 25%;">
  184. <div class="ui button" id="print-pdf-btn-optional">Create PDF</div>
  185. </div>
  186. <div class="column" id="selectPageSize-optional-column" style="opacity: 0.0; min-width: 35%">
  187. <div class="ui two column grid container">
  188. <div class="column" style="margin-top: 8px">
  189. <h3>Format:</h3>
  190. </div>
  191. <div class="column">
  192. <select class="ui selection dropdown" id="selectPageSize-optional">
  193. <option value="endless">endless</option>
  194. <option value="A3 P">A3 Portrait</option>
  195. <option value="A3 L">A3 Landscape</option>
  196. <option value="A4 P">A4 Portrait</option>
  197. <option value="A4 L">A4 Landscape</option>
  198. <option value="A5 P">A5 Portrait</option>
  199. <option value="A5 L">A5 Landscape</option>
  200. <option value="Letter P">Letter Portrait</option>
  201. <option value="Letter L">Letter Landscape</option>
  202. </select>
  203. </div>
  204. </div>
  205. </div>
  206. </div>
  207. </div>
  208. <div>
  209. <table cellspacing="0" style="max-width:700px;">
  210. <tr id="error-tr">
  211. <td></td>
  212. <td id="error-td"></td>
  213. </tr>
  214. </table>
  215. </div>
  216. <div class="settings-button-container">
  217. <button class="mdc-fab mdc-fab--mini playback-settings-button" id="playback-settings-button" aria-label="Playback Settings">
  218. <div class="mdc-fab__ripple"></div>
  219. <span class="mdc-fab__icon material-icons">settings</span>
  220. </button>
  221. <!-- <button class="mdc-fab mdc-fab--mini playback-settings-button" id="unmute-button" aria-label="Unmute">
  222. <div class="mdc-fab__ripple"></div>
  223. <span class="mdc-fab__icon material-icons">volume_off</span>
  224. </button> -->
  225. </div>
  226. </body>
  227. </html>