cyber-circle-creator/js/slider.js

14 lines
420 B
JavaScript
Raw Permalink Normal View History

2024-11-15 21:57:02 +00:00
function initializeSlider() {
const slider = document.getElementById("countSlider");
const display = document.getElementById("sliderValueDisplay");
display.innerText = slider.value;
slider.addEventListener("input", function () {
display.innerText = this.value;
});
}
function getSliderValue() {
const slider = document.getElementById("countSlider");
return parseInt(slider.value);
}