You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
806 B

8 months ago
8 months ago
  1. <html>
  2. <head>
  3. <meta charset="utf-8" />
  4. <title>COSI Random</title>
  5. </head>
  6. <body class="content">
  7. <h2>
  8. Hello, welcome to COSI Random! Have a complementary bit:
  9. <h3>
  10. <div id="free_bit" style="height: 1em;"></div>
  11. </h3>
  12. </h2>
  13. <h3>Add a bit to the entropy pool:</h3>
  14. <button onClick="send(true)">One</button>
  15. <button onClick="send(false)">Zero</button>
  16. <h3>
  17. Need a bit? Get some here:
  18. <div id="bits" style="min-height: 1em;"></div>
  19. </h3>
  20. <button onClick="get_bit(1)">Get bit</button>
  21. <button onClick="get_bits(10)">Get bit x10</button>
  22. <button onClick="get_bits(100)">Get bit x100</button>
  23. <button onClick="get_bits(1000)">Get bit x1000</button>
  24. <script src="/index.js"></script>
  25. </body>
  26. </html>