1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Spin buttons</title>
- </head>
- <body>
- <h1>Spin buttons</h1>
- <div id="wrapper-colors">
- <h2>Colors</h2>
- <div id="color-window"></div>
- <br>
- <div>
- <label for="" style="color: red;">Red<div class="spin" id='red'></div></label>
- <label for="" style="color: rgba(172, 255, 47, 0.774);"> Green<div class="spin" id='green'></div></label>
- <label for="" style="color: rgb(0, 110, 255);"> Blue<div class="spin" id='blue'></div></label>
- </div>
- </div>
- <div id="wrapper-audio">
- <h2>Audio</h2>
- <audio id="track" src="./track.mp3" controls></audio>
- <label for="">Vol.<div class="spin" id="audio-spin"></div></label>
- </div>
- <script src="./scripts.js"></script>
- </body>
- <style>
- #wrapper-colors {
- width: fit-content;
- }
- #color-window {
- border: 1px solid black;
- width: 100%;
- height: 100px;
- }
- .spin {
- width: 80px;
- height: 80px;
- display: inline-block;
- }
- label {
- font-family: 'Courier New', Courier, monospace;
- background-color: black;
- color: white;
- border-radius: 0 0 60px 0;
- }
- </style>
- </html>
|