Get rid of final piece of inline JS
This commit is contained in:
@ -1,3 +1,13 @@
|
||||
// Slider
|
||||
var slider = document.getElementById("range");
|
||||
var output = document.getElementById("range-value");
|
||||
output.innerHTML = slider.value;
|
||||
|
||||
slider.oninput = function() {
|
||||
output.innerHTML = this.value;
|
||||
}
|
||||
|
||||
// Spaceship control center
|
||||
const colorPickerLight = document.querySelector("#color-picker-light");
|
||||
const colorPickerDark = document.querySelector("#color-picker-dark");
|
||||
const contrastCheckboxLight = document.querySelector("#contrast-color-light");
|
||||
|
@ -483,16 +483,6 @@ With `range` type:
|
||||
<input type="range" 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>`)
|
||||
|
Reference in New Issue
Block a user