soiz1 commited on
Commit
c8c6179
·
1 Parent(s): 5c26fe6

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +4 -4
index.html CHANGED
@@ -927,7 +927,7 @@ document.getElementById('sw-register-btn').addEventListener('click', async () =>
927
  </div>
928
  <div class="speed-control">
929
  <span class="speed-value" id="speed-value">1.00x</span>
930
- <input type="range" class="speed-slider" id="speed-slider" min="0.5" max="2" step="0.01" value="1" disabled>
931
  </div>
932
  <button class="control-button fullscreen-button" id="fullscreen-btn" disabled>⛶</button>
933
  </div>
@@ -966,13 +966,13 @@ document.getElementById('sw-register-btn').addEventListener('click', async () =>
966
  </div>
967
  <div class="setting-item">
968
  <label for="tempo">テンポ (BPM):</label>
969
- <input type="number" id="tempo" min="40" max="200" value="92" step="1">
970
  <span id="tempo-speed-value">1.00x</span>
971
  </div>
972
  <div class="setting-item">
973
  <div class="playback-speed-container">
974
  <label>再生速度:</label>
975
- <input type="range" class="playback-speed-slider" id="playback-speed" min="0.01" max="5" step="0.01" value="1" disabled>
976
  <span class="slider-value" id="playback-speed-value">1.00x</span>
977
  </div>
978
  </div>
@@ -1862,7 +1862,7 @@ document.addEventListener('visibilitychange', async () => {
1862
  const baseTempo = isTMode ? 66 : 92;
1863
  const speed = tempo / baseTempo;
1864
 
1865
- const clampedSpeed = Math.max(0.01, Math.min(5.0, speed));
1866
 
1867
  playbackSpeedSlider.value = clampedSpeed;
1868
  playbackSpeedValue.textContent = clampedSpeed.toFixed(2) + 'x';
 
927
  </div>
928
  <div class="speed-control">
929
  <span class="speed-value" id="speed-value">1.00x</span>
930
+ <input type="range" class="speed-slider" id="speed-slider" min="0.01" max="5" step="0.01" value="1" disabled>
931
  </div>
932
  <button class="control-button fullscreen-button" id="fullscreen-btn" disabled>⛶</button>
933
  </div>
 
966
  </div>
967
  <div class="setting-item">
968
  <label for="tempo">テンポ (BPM):</label>
969
+ <input type="number" id="tempo" min="40" max="200" value="92" step="0.1">
970
  <span id="tempo-speed-value">1.00x</span>
971
  </div>
972
  <div class="setting-item">
973
  <div class="playback-speed-container">
974
  <label>再生速度:</label>
975
+ <input type="range" class="playback-speed-slider" id="playback-speed" min="0.01" max="5" step="0.001" value="1" disabled>
976
  <span class="slider-value" id="playback-speed-value">1.00x</span>
977
  </div>
978
  </div>
 
1862
  const baseTempo = isTMode ? 66 : 92;
1863
  const speed = tempo / baseTempo;
1864
 
1865
+ const clampedSpeed = Math.max(0.001, Math.min(5.0, speed));
1866
 
1867
  playbackSpeedSlider.value = clampedSpeed;
1868
  playbackSpeedValue.textContent = clampedSpeed.toFixed(2) + 'x';