soiz1 commited on
Commit
0d65887
·
1 Parent(s): b37f884

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -952,7 +952,7 @@
952
 
953
  // ボリューム設定
954
  const volumeSlider = document.querySelector(`.audio-slider[data-audio="${file}"]`);
955
- const volume = parseFloat(volumeSlider.value) * parseFloat(globalVolumeSlider.value);
956
  audio.volume = volume;
957
 
958
  // 再生速度設定
@@ -1045,7 +1045,7 @@
1045
  volumeValues[index].textContent = value.toFixed(2);
1046
 
1047
  if (audioElements[this.dataset.audio]) {
1048
- const globalVolume = parseFloat(globalVolumeSlider.value);
1049
  audioElements[this.dataset.audio].volume = value * globalVolume;
1050
  }
1051
  } catch (error) {
 
952
 
953
  // ボリューム設定
954
  const volumeSlider = document.querySelector(`.audio-slider[data-audio="${file}"]`);
955
+ const volume = parseFloat(volumeSlider.value) * parseFloat(globalVolumeSlider.value/10);
956
  audio.volume = volume;
957
 
958
  // 再生速度設定
 
1045
  volumeValues[index].textContent = value.toFixed(2);
1046
 
1047
  if (audioElements[this.dataset.audio]) {
1048
+ const globalVolume = parseFloat(globalVolumeSlider.value/10);
1049
  audioElements[this.dataset.audio].volume = value * globalVolume;
1050
  }
1051
  } catch (error) {