soiz1 commited on
Commit
0901754
·
1 Parent(s): 668581f

Update index.html

Browse files
Files changed (1) hide show
  1. 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
  });