Simple monitor for displaying MIDI status for digital pianos.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.html 2.2 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />
  7. <meta name="theme-color" content="#000000" />
  8. <meta
  9. name="description"
  10. content="Web site created using create-react-app"
  11. />
  12. <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
  13. <!--
  14. manifest.json provides metadata used when your web app is installed on a
  15. user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
  16. -->
  17. <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
  18. <!--
  19. Notice the use of %PUBLIC_URL% in the tags above.
  20. It will be replaced with the URL of the `public` folder during the build.
  21. Only files inside the `public` folder can be referenced from the HTML.
  22. Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
  23. work correctly both with client-side routing and a non-root public URL.
  24. Learn how to configure a non-root public URL by running `npm run build`.
  25. -->
  26. <link rel="stylesheet" href="%PUBLIC_URL%/style.css" />
  27. <title>Piano MIDI Monitor</title>
  28. </head>
  29. <body>
  30. <noscript>You need to enable JavaScript to run this app.</noscript>
  31. <div id="root"></div>
  32. <!--
  33. This HTML file is a template.
  34. If you open it directly in the browser, you will see an empty page.
  35. You can add webfonts, meta tags, or analytics to this file.
  36. The build step will place the bundled scripts into the <body> tag.
  37. To begin the development, run `npm start` or `yarn start`.
  38. To create a production bundle, use `npm run build` or `yarn build`.
  39. -->
  40. <script>
  41. ((window, electron) => {
  42. const { ipcRenderer, } = electron
  43. const EVENTS = [
  44. 'note',
  45. 'pedal',
  46. 'spanchange',
  47. ]
  48. EVENTS.forEach(event => {
  49. ipcRenderer.on(event, (_, message) => {
  50. window.postMessage({
  51. event,
  52. message
  53. })
  54. })
  55. })
  56. })(window, require('electron'))
  57. </script>
  58. </body>
  59. </html>