Skip to content

Commit

Permalink
Accesibility for API html
Browse files Browse the repository at this point in the history
  • Loading branch information
didierrc committed Dec 18, 2023
1 parent 7cd452b commit 5955afe
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
12 changes: 10 additions & 2 deletions Escritorio-Virtual/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ <h5>Sección de modificación de audio</h5>

<img src="multimedia/logo.png" alt="Logo del reproductor de musica">
<!-- Ganancia: Puede ser el doble o mutearse -->
<input type="range" min="0" max="2" value="1" step="0.01">
<p>
<label for="volume">Volume</label>
<input id="volume" type="range" min="0" max="2" value="1" step="0.01">
</p>

<section>
<h6>Vol:</h6>
<p>100%</p>
Expand Down Expand Up @@ -106,7 +110,11 @@ <h5>&sharp; Acciones:</h5>
<!-- Stereo -->
<section>
<h5>&diams; Modifica el stereo!!</h5>
<input type="range" min="-1" max="1" value="0" step="0.01">
<p>
<label for="stereo">Stereo</label>
<input id="stereo" type="range" min="-1" max="1" value="0" step="0.01">
</p>

</section>

</section>
Expand Down
3 changes: 2 additions & 1 deletion Escritorio-Virtual/estilo/api.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ main>section {
main>section>h4,
main>section>section:first-of-type>h5,
main>section>section:nth-of-type(2)>section>h6,
audio {
audio,
label {
display: none;
}

Expand Down
4 changes: 2 additions & 2 deletions Escritorio-Virtual/js/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Reproductor {

addVolumeHandler() {

var volumeControl = $("main>section>section:first>input[type='range']");
var volumeControl = $("main>section>section:first input[type='range']");

volumeControl.on("input", () => {
this.gainNode.gain.value = volumeControl.val();
Expand All @@ -56,7 +56,7 @@ class Reproductor {
}

addStereoHandler() {
var stereoControl = $("main>section>section:last>input[type='range']");
var stereoControl = $("main>section>section:last input[type='range']");

stereoControl.on("input", () => {
this.panner.pan.value = stereoControl.val();
Expand Down

0 comments on commit 5955afe

Please sign in to comment.