Spaces:
Paused
Paused
Update templates/index_new.html
Browse files- templates/index_new.html +6 -6
templates/index_new.html
CHANGED
|
@@ -41,7 +41,7 @@
|
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
-
<div class="w-full max-w-2xl" id="hlavniform">
|
| 45 |
<div class="rounded-xl border bg-card text-card-foreground shadow-xl">
|
| 46 |
<div class="p-6 flex flex-row items-center justify-between space-y-0 pb-7">
|
| 47 |
<div class="flex items-center gap-3">
|
|
@@ -872,14 +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 |
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("--------------------");
|
| 884 |
console.log(videoPath);
|
| 885 |
console.log(cleanedPath);
|
|
@@ -1757,7 +1755,7 @@ console.log("SRT Path:", titulkysPath);
|
|
| 1757 |
}
|
| 1758 |
|
| 1759 |
// Event listener pro tlačítko "Vytvořit dabing"
|
| 1760 |
-
|
| 1761 |
showProgressBar();
|
| 1762 |
|
| 1763 |
// Simulace průběhu (později nahradit skutečným průběhem)
|
|
@@ -2029,7 +2027,9 @@ console.log("SRT Path:", titulkysPath);
|
|
| 2029 |
document.getElementById('submitBtn2').addEventListener('click', function() {
|
| 2030 |
// Skryjeme tlačítko
|
| 2031 |
this.style.display = 'none';
|
| 2032 |
-
|
|
|
|
|
|
|
| 2033 |
// Nebo pokud chcete animaci fade-out
|
| 2034 |
this.style.opacity = '0';
|
| 2035 |
this.style.transition = 'opacity 0.5s';
|
|
|
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
+
<div class="w-full max-w-2xl" id="hlavniform" style="z-index: 99;">
|
| 45 |
<div class="rounded-xl border bg-card text-card-foreground shadow-xl">
|
| 46 |
<div class="p-6 flex flex-row items-center justify-between space-y-0 pb-7">
|
| 47 |
<div class="flex items-center gap-3">
|
|
|
|
| 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 |
console.log("--------------------");
|
| 882 |
console.log(videoPath);
|
| 883 |
console.log(cleanedPath);
|
|
|
|
| 1755 |
}
|
| 1756 |
|
| 1757 |
// Event listener pro tlačítko "Vytvořit dabing"
|
| 1758 |
+
/*document.getElementById('createDubbingBtn').addEventListener('click', function () {
|
| 1759 |
showProgressBar();
|
| 1760 |
|
| 1761 |
// Simulace průběhu (později nahradit skutečným průběhem)
|
|
|
|
| 2027 |
document.getElementById('submitBtn2').addEventListener('click', function() {
|
| 2028 |
// Skryjeme tlačítko
|
| 2029 |
this.style.display = 'none';
|
| 2030 |
+
//document.querySelector('.editortit').style.display = 'none';
|
| 2031 |
+
|
| 2032 |
+
const subtitlesEditor = document.getElementById('subtitlesEditor');
|
| 2033 |
// Nebo pokud chcete animaci fade-out
|
| 2034 |
this.style.opacity = '0';
|
| 2035 |
this.style.transition = 'opacity 0.5s';
|