Question: In a beats.html file: Add Add an input > tag with the following properties: o type: range o id: volumelnput o min: 1 o max:
In a beats.html file:
Add
Add an input tag with the following properties:
o type: range o id: volumelnput
o min:
o max:
value:
In the script tag:
Create a new variable named currentvolume with the value
Create a new function named setvolume
Inside the setVolume function:
Get the value of the #volumelnput tag.
Divide the value of the volume by and save it in a variable called currentvolume
Call the setVolume function when the #volume Input changes.
Inside the play function, set the volume of the audio to the currentVolume
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
