+ 1
Whats is wrong in this code?
6 Réponses
+ 4
Set the input tag to
<input type="range" max="1" min="0" step="0.1" id="in" oninput="valume()">
https://code.sololearn.com/W2f8kB4x47Mt/?ref=app
+ 2
What is inpitDom??
+ 2
👍👍
+ 1
Sina Allowed values for Audio.volume are double numbers in [0.0, 1.0] range (0 is mute and 1.0 is max volume)... Then you have to normalize your value to fit in this range at example:
x.volume= inputDom.value / inputDom.max
where inputDom is a reference to input range for set volume
+ 1
Oh thank you so kuch😂😂😂😂😂😂😂😂😂😂
0
Calviղ Yes its more simple than mine solution 😄😄😄... Anyway i hope that you have understanded because your code was wrong