Updated slider value visuals to use their own ID, styles.css updated to make sliders bigger and more user friendly.
This commit is contained in:
@ -20,13 +20,15 @@
|
|||||||
<h2>LucalEncoded?</h2>
|
<h2>LucalEncoded?</h2>
|
||||||
<input type="checkbox" id="lucalEncodedInput">
|
<input type="checkbox" id="lucalEncodedInput">
|
||||||
<h2>Shock</h2>
|
<h2>Shock</h2>
|
||||||
<input type="range" min="0" max="99" id="shockIntensity" oninput="this.nextElementSibling.value = this.value">
|
<input type="range" min="0" max="99" id="shockIntensity" oninput="document.getElementById('sliderValueFirst').value = this.value" class="sliderInput">
|
||||||
<output>0</output>
|
<br>
|
||||||
|
<output id="sliderValueFirst">0</output>
|
||||||
<br>
|
<br>
|
||||||
<button onclick="shock();">Shock!</button>
|
<button onclick="shock();">Shock!</button>
|
||||||
<h2>Vibrate</h2>
|
<h2>Vibrate</h2>
|
||||||
<input type="range" min="0" max="99" id="vibrateIntensity" oninput="this.nextElementSibling.value = this.value">
|
<input type="range" min="0" max="99" id="vibrateIntensity" oninput="document.getElementById('sliderValueSecond').value = this.value" class="sliderInput">
|
||||||
<output>0</output>
|
<br>
|
||||||
|
<output id="sliderValueSecond">0</output>
|
||||||
<br>
|
<br>
|
||||||
<button onclick="vibrate();">Vibrate!</button>
|
<button onclick="vibrate();">Vibrate!</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -12,6 +12,7 @@ body {
|
|||||||
margin-bottom: 1%;
|
margin-bottom: 1%;
|
||||||
padding: 1%;
|
padding: 1%;
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
|
max-width: 100vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.contentBox{
|
.contentBox{
|
||||||
@ -24,3 +25,7 @@ body {
|
|||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
max-width: 80%;
|
max-width: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sliderInput{
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user