index.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Spin buttons</title>
  8. </head>
  9. <body>
  10. <h1>Spin buttons</h1>
  11. <div id="wrapper-colors">
  12. <h2>Colors</h2>
  13. <div id="color-window"></div>
  14. <br>
  15. <div>
  16. <label for="" style="color: red;">Red<div class="spin" id='red'></div></label>
  17. <label for="" style="color: rgba(172, 255, 47, 0.774);"> Green<div class="spin" id='green'></div></label>
  18. <label for="" style="color: rgb(0, 110, 255);"> Blue<div class="spin" id='blue'></div></label>
  19. </div>
  20. </div>
  21. <div id="wrapper-audio">
  22. <h2>Audio</h2>
  23. <audio id="track" src="./track.mp3" controls></audio>
  24. <label for="">Vol.<div class="spin" id="audio-spin"></div></label>
  25. </div>
  26. <script src="./scripts.js"></script>
  27. </body>
  28. <style>
  29. #wrapper-colors {
  30. width: fit-content;
  31. }
  32. #color-window {
  33. border: 1px solid black;
  34. width: 100%;
  35. height: 100px;
  36. }
  37. .spin {
  38. width: 80px;
  39. height: 80px;
  40. display: inline-block;
  41. }
  42. label {
  43. font-family: 'Courier New', Courier, monospace;
  44. background-color: black;
  45. color: white;
  46. border-radius: 0 0 60px 0;
  47. }
  48. </style>
  49. </html>