Update index.html
Browse files- index.html +2 -2
index.html
CHANGED
|
@@ -1177,7 +1177,7 @@
|
|
| 1177 |
volumeValues[index].textContent = value.toFixed(2);
|
| 1178 |
|
| 1179 |
if (audioElements[this.dataset.audio]) {
|
| 1180 |
-
const globalVolume = parseFloat(globalVolumeSlider.value/10
|
| 1181 |
audioElements[this.dataset.audio].volume = value * globalVolume;
|
| 1182 |
}
|
| 1183 |
} catch (error) {
|
|
@@ -1195,7 +1195,7 @@
|
|
| 1195 |
audioFiles.forEach(file => {
|
| 1196 |
if (audioElements[file]) {
|
| 1197 |
const volumeSlider = document.querySelector(`.audio-slider[data-audio="${file}"]`);
|
| 1198 |
-
const volume = parseFloat(volumeSlider.value) * (value);
|
| 1199 |
audioElements[file].volume = volume;
|
| 1200 |
}
|
| 1201 |
});
|
|
|
|
| 1177 |
volumeValues[index].textContent = value.toFixed(2);
|
| 1178 |
|
| 1179 |
if (audioElements[this.dataset.audio]) {
|
| 1180 |
+
const globalVolume = parseFloat(globalVolumeSlider.value) /10;
|
| 1181 |
audioElements[this.dataset.audio].volume = value * globalVolume;
|
| 1182 |
}
|
| 1183 |
} catch (error) {
|
|
|
|
| 1195 |
audioFiles.forEach(file => {
|
| 1196 |
if (audioElements[file]) {
|
| 1197 |
const volumeSlider = document.querySelector(`.audio-slider[data-audio="${file}"]`);
|
| 1198 |
+
const volume = parseFloat(volumeSlider.value) * (value /10);
|
| 1199 |
audioElements[file].volume = volume;
|
| 1200 |
}
|
| 1201 |
});
|