index.html 588 B

123456789101112131415161718192021
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
  6. <title>WebHID API</title>
  7. </head>
  8. <body>
  9. <h1>WebHID API</h1>
  10. <button id="clickme">Test WebHID</button>
  11. <h3>HID devices automatically granted access via <i>setDevicePermissionHandler</i></h3>
  12. <div id="granted-devices"></div>
  13. <h3>HID devices automatically granted access via <i>select-hid-device</i></h3>
  14. <div id="granted-devices2"></div>
  15. <script src="./renderer.js"></script>
  16. </body>
  17. </html>