arcanus commited on
Commit
8955ed2
·
verified ·
1 Parent(s): 894ba52

Update templates/index_new.html

Browse files
Files changed (1) hide show
  1. templates/index_new.html +7 -4
templates/index_new.html CHANGED
@@ -872,9 +872,12 @@
872
  // Nastavení hodnoty jako src atributu pro iframe s id="ifred"
873
  console.log(projectName);
874
  const videoPath = sessionStorage.getItem('video_path');
875
- const cleanedPath = videoPath.replace(/^exports\\/, "").replace(/\\video\.mp4$/, "");
 
 
 
 
876
 
877
- const titulkysPath = videoPath.replace(/\\video\.mp4$/, "\\titulky.srt");
878
 
879
 
880
  console.log("--------------------");
@@ -1754,7 +1757,7 @@
1754
  }
1755
 
1756
  // Event listener pro tlačítko "Vytvořit dabing"
1757
- document.getElementById('createDubbingBtn').addEventListener('click', function () {
1758
  showProgressBar();
1759
 
1760
  // Simulace průběhu (později nahradit skutečným průběhem)
@@ -1768,7 +1771,7 @@
1768
  setTimeout(hideProgressBar, 1000); // Skrýt progress bar po dokončení
1769
  }
1770
  }, 50);
1771
- });
1772
  </script>
1773
  <script>
1774
  // Funkce pro zobrazení progress baru
 
872
  // Nastavení hodnoty jako src atributu pro iframe s id="ifred"
873
  console.log(projectName);
874
  const videoPath = sessionStorage.getItem('video_path');
875
+ const cleanedPath = videoPath.replace(/^exports[\\/]/, "").replace(/[\\/]+video\.mp4$/, "");
876
+ console.log("Cleaned Path:", cleanedPath);
877
+
878
+ const titulkysPath = videoPath.replace(/[\\/]+video\.mp4$/, "/titulky.srt");
879
+ console.log("SRT Path:", titulkysPath);
880
 
 
881
 
882
 
883
  console.log("--------------------");
 
1757
  }
1758
 
1759
  // Event listener pro tlačítko "Vytvořit dabing"
1760
+ /* document.getElementById('createDubbingBtn').addEventListener('click', function () {
1761
  showProgressBar();
1762
 
1763
  // Simulace průběhu (později nahradit skutečným průběhem)
 
1771
  setTimeout(hideProgressBar, 1000); // Skrýt progress bar po dokončení
1772
  }
1773
  }, 50);
1774
+ });*/
1775
  </script>
1776
  <script>
1777
  // Funkce pro zobrazení progress baru