soiz1 commited on
Commit
28bc4a8
·
verified ·
1 Parent(s): 7b7ab7c

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +4 -1
index.html CHANGED
@@ -714,14 +714,17 @@
714
  let normalVideoWidth = videoContainer.clientWidth;
715
  let audioOnlyMode = false;
716
 
 
717
  const previewVideo = document.getElementById("previewVideo");
 
 
 
718
  previewVideo.src = video.src;
719
  previewVideo.preload = "auto";
720
 
721
  // プログレスバーのイベントリスナーを更新
722
  progressContainer.addEventListener("mousemove", (e) => {
723
  if (!video.duration) return;
724
- const previewVideo = document.getElementById("previewVideo");
725
  const rect = progressContainer.getBoundingClientRect();
726
  const pos = (e.clientX - rect.left) / rect.width;
727
  const time = pos * video.duration;
 
714
  let normalVideoWidth = videoContainer.clientWidth;
715
  let audioOnlyMode = false;
716
 
717
+ document.addEventListener("DOMContentLoaded", function () {
718
  const previewVideo = document.getElementById("previewVideo");
719
+
720
+ });
721
+
722
  previewVideo.src = video.src;
723
  previewVideo.preload = "auto";
724
 
725
  // プログレスバーのイベントリスナーを更新
726
  progressContainer.addEventListener("mousemove", (e) => {
727
  if (!video.duration) return;
 
728
  const rect = progressContainer.getBoundingClientRect();
729
  const pos = (e.clientX - rect.left) / rect.width;
730
  const time = pos * video.duration;