Style sliders (fixes #41)

This commit is contained in:
daudix
2024-08-12 02:26:40 +03:00
parent 225d98e11e
commit d0407506f0
2 changed files with 51 additions and 0 deletions

View File

@ -325,6 +325,23 @@ With `color` type:
<label for="color">Disabled:</label>
<input id="color" type="color" value="#b57edc" disabled />
With `range` type:
<input type="range" min="1" max="100" value="33" id="range">
<!-- For the demo purposes only -->
<small id="range-value"></small>
<script type="text/javascript">
var slider = document.getElementById("range");
var output = document.getElementById("range-value");
output.innerHTML = slider.value;
slider.oninput = function() {
output.innerHTML = this.value;
}
</script>
<!-- End -->
### Figure Captions (`<figcaption>`)
```markdown