Simple monitor for displaying MIDI status for digital pianos.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

110 lignes
3.2 KiB

  1. <!DOCTYPE html>
  2. <html
  3. lang="en-PH"
  4. style="
  5. --size-close-button: 2rem;
  6. ">
  7. <head>
  8. <meta charset="utf-8" />
  9. <link rel="icon" href="%PUBLIC_URL%/favicon.png" />
  10. <meta name="viewport" content="width=device-width, initial-scale=1" />
  11. <meta name="theme-color" content="#000000" />
  12. <meta
  13. name="description"
  14. content="Web site created using create-react-app"
  15. />
  16. <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
  17. <!--
  18. manifest.json provides metadata used when your web app is installed on a
  19. user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
  20. -->
  21. <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
  22. <!--
  23. Notice the use of %PUBLIC_URL% in the tags above.
  24. It will be replaced with the URL of the `public` folder during the build.
  25. Only files inside the `public` folder can be referenced from the HTML.
  26. Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
  27. work correctly both with client-side routing and a non-root public URL.
  28. Learn how to configure a non-root public URL by running `npm run build`.
  29. -->
  30. <link rel="stylesheet" href="%PUBLIC_URL%/style.css" />
  31. <title>Piano MIDI Monitor</title>
  32. </head>
  33. <body>
  34. <button
  35. id="close"
  36. class="theme button"
  37. style="
  38. display: block;
  39. position: fixed;
  40. line-height: 0;
  41. top: 0;
  42. right: 0;
  43. padding: 0;
  44. border: 0;
  45. height: var(--size-close-button, 2rem);
  46. width: var(--size-close-button, 2rem);
  47. text-align: center;
  48. outline: 0;
  49. "
  50. >
  51. <span
  52. style="
  53. display: block;
  54. background-color: currentColor;
  55. width: 50%;
  56. height: 0.125rem;
  57. margin: 0 auto;
  58. transform: rotate(45deg);
  59. "
  60. ></span>
  61. <span
  62. style="
  63. display: block;
  64. background-color: currentColor;
  65. width: 50%;
  66. height: 0.125rem;
  67. margin: 0 auto;
  68. margin-top: -0.125rem;
  69. transform: rotate(-45deg);
  70. "
  71. ></span>
  72. </button>
  73. <noscript>You need to enable JavaScript to run this app.</noscript>
  74. <!--
  75. This HTML file is a template.
  76. If you open it directly in the browser, you will see an empty page.
  77. You can add webfonts, meta tags, or analytics to this file.
  78. The build step will place the bundled scripts into the <body> tag.
  79. To begin the development, run `npm start` or `yarn start`.
  80. To create a production bundle, use `npm run build` or `yarn build`.
  81. -->
  82. <script>
  83. ((window, electron) => {
  84. const { ipcRenderer, } = electron
  85. const EVENTS = [
  86. 'note',
  87. 'pedal',
  88. 'spanchange',
  89. ]
  90. EVENTS.forEach(event => {
  91. ipcRenderer.on(event, (_, message) => {
  92. window.postMessage({
  93. event,
  94. message
  95. })
  96. })
  97. })
  98. window.document.getElementById('close').addEventListener('click', () => {
  99. ipcRenderer.send('quit')
  100. })
  101. })(window, require('electron'))
  102. </script>
  103. </body>
  104. </html>