index.html 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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="next-cursor-btn">
  56. <div class="visible content">Next</div>
  57. <div class="hidden content">
  58. <i class="arrow right icon"></i>
  59. </div>
  60. </div>
  61. <div class="ui animated fade button" id="reset-cursor-btn">
  62. <div class="visible content">Reset</div>
  63. <div class="hidden content">
  64. <i class="undo icon"></i>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="item">
  69. <div class="ui toggle checkbox">
  70. <input type="checkbox" name="public" id="follow-cursor-checkbox" checked="true">
  71. <label>Follow Cursor</label>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="column" id="zoomControls">
  77. <h3 class="ui header">Zoom controls:</h3>
  78. <div class="ui buttons" id="zoomControlsButtons">
  79. <div class="ui button" id="zoom-in-btn">
  80. <i class="search plus icon"></i>
  81. </div>
  82. <div class="ui button" id="zoom-out-btn">
  83. <i class="search minus icon"></i>
  84. </div>
  85. </div>
  86. <h4 class="ui header" id="zoom-str">???</h4>
  87. </div>
  88. <div class="column">
  89. <h3 class="ui header">Show bounding box for:</h3>
  90. <select class="ui selection dropdown" id="selectBounding" style="visibility: hidden;">
  91. <option value="none">None</option>
  92. <option value="all">All</option>
  93. <option value="VexFlowMeasure">Measures</option>
  94. <option value="VexFlowGraphicalNote">GraphicalNotes</option>
  95. <option value="VexFlowVoiceEntry">VoiceEntries</option>
  96. <option value="VexFlowStaffEntry">StaffEntries</option>
  97. <option value="GraphicalLabel">Labels</option>
  98. <option value="VexFlowStaffLine">StaffLines</option>
  99. <option value="SystemLine">SystemLines</option>
  100. <option value="StaffLineActivitySymbol">ActivitySymbols</option>
  101. <option value="VexFlowContinuousDynamicExpression">DynamicExpressions</option>
  102. </select>
  103. </div>
  104. <div class="column">
  105. <h3 class="ui header">Show debug information:</h3>
  106. <div class="ui relaxed list">
  107. <div class="item">
  108. <div class="ui toggle checkbox">
  109. <input type="checkbox" name="public" id="skylineDebug">
  110. <label>Skyline</label>
  111. </div>
  112. </div>
  113. <div class="item">
  114. <div class="ui toggle checkbox">
  115. <input type="checkbox" name="public" id="bottomlineDebug">
  116. <label>Bottomline</label>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. <div class="column">
  122. <h3 class="ui header">Debug controls:</h3>
  123. <div>
  124. <div class="ui vertical buttons">
  125. <div class="ui button" id="debug-re-render-btn">Re-render</div>
  126. </div>
  127. <div class="ui vertical buttons">
  128. <div class="ui button" id="debug-clear-btn">Clear</div>
  129. </div>
  130. </div>
  131. </div>
  132. <div class="column">
  133. <h3 class="ui header">Page size:</h3>
  134. <select class="ui selection dropdown" id="selectPageSize" style="visibility: hidden;">
  135. <option value="endless">endless</option>
  136. <option value="A3 P">A3 Portrait</option>
  137. <option value="A3 L">A3 Landscape</option>
  138. <option value="A4 P">A4 Portrait</option>
  139. <option value="A4 L">A4 Landscape</option>
  140. <option value="A5 P">A5 Portrait</option>
  141. <option value="A5 L">A5 Landscape</option>
  142. <option value="Letter P">Letter Portrait</option>
  143. <option value="Letter L">Letter Landscape</option>
  144. </select>
  145. <div class="ui button" id="print-pdf-btn">Create PDF</div>
  146. </div>
  147. <div class="column">
  148. <h3 class="ui header">Transpose by Semitone(s):</h3>
  149. <div class="ui action input">
  150. <input type="number" id="transpose" value="0"/>
  151. <button class="ui button" id="transpose-btn">Transpose</button>
  152. </div>
  153. </div>
  154. <div class="column">
  155. <h3 class="ui header">Performance Mode:</h3>
  156. <div class="ui toggle checkbox">
  157. <input type="checkbox" name="public" id="performanceMode">
  158. <label>Performance Mode</label>
  159. </div>
  160. </div>
  161. </div>
  162. <div id="optionalControls" style="opacity: 0.0; width: 95%; display: block">
  163. <div class="ui three column grid container" style="padding: 10px; margin-right: auto; margin-left: auto" id="optionalControlsColumnContainer">
  164. <div class="column" id="zoomControlsButtons-optional-column" style="min-width: 30%; opacity: 0.0">
  165. <div class="ui buttons" id="zoomControlsButtons-optional">
  166. <div class="ui button" id="zoom-in-btn-optional">
  167. <i class="search plus icon"></i>
  168. </div>
  169. <div class="ui button" id="zoom-out-btn-optional">
  170. <i class="search minus icon"></i>
  171. </div>
  172. </div>
  173. <h4 id="zoom-str-optional">???</h4>
  174. </div>
  175. <div class="column" id="print-pdf-btn-optional-column" style="opacity: 0.0; max-width: 25%;">
  176. <div class="ui button" id="print-pdf-btn-optional">Create PDF</div>
  177. </div>
  178. <div class="column" id="selectPageSize-optional-column" style="opacity: 0.0; min-width: 35%">
  179. <div class="ui two column grid container">
  180. <div class="column" style="margin-top: 8px">
  181. <h3>Format:</h3>
  182. </div>
  183. <div class="column">
  184. <select class="ui selection dropdown" id="selectPageSize-optional">
  185. <option value="endless">endless</option>
  186. <option value="A3 P">A3 Portrait</option>
  187. <option value="A3 L">A3 Landscape</option>
  188. <option value="A4 P">A4 Portrait</option>
  189. <option value="A4 L">A4 Landscape</option>
  190. <option value="A5 P">A5 Portrait</option>
  191. <option value="A5 L">A5 Landscape</option>
  192. <option value="Letter P">Letter Portrait</option>
  193. <option value="Letter L">Letter Landscape</option>
  194. </select>
  195. </div>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. <div>
  201. <table cellspacing="0" style="max-width:700px;">
  202. <tr id="error-tr">
  203. <td></td>
  204. <td id="error-td"></td>
  205. </tr>
  206. </table>
  207. </div>
  208. <div class="settings-button-container">
  209. <button class="mdc-fab mdc-fab--mini playback-settings-button" id="playback-settings-button" aria-label="Playback Settings">
  210. <div class="mdc-fab__ripple"></div>
  211. <span class="mdc-fab__icon material-icons">settings</span>
  212. </button>
  213. </div>
  214. </body>
  215. </html>