Update Script_Speech_recognition/stranka.html

This commit is contained in:
Mário Panenko 2024-11-20 22:44:39 +00:00
parent cc992add60
commit 37b0402741

View File

@ -4,52 +4,57 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Jednoduchý Prekladač</title>
<title>Prekladač do SPJ</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="progress_bar.css">
</head>
<body>
<header>
<h1>Prekladač slovenčiny do slovenského posunkového jazyka</h1>
</header>
<!-- Theme toggle icon button -->
<button id="themeToggleBtn" title="Switch Theme">🌞</button>
<h1>Prekladač slovenčiny do slovenského posunkového jazyka</h1>
<div class="container">
<!-- Textové pole na zadanie textu -->
<div class="textarea-container">
<!-- Tlačidlá pre preklad -->
<div class="translation-buttons">
<button id="translateWordsBtn" class="active">Preložiť po slovách</button>
<button id="translateLettersBtn">Preložiť po písmenách</button>
</div>
<textarea id="inputText" placeholder="Enter text"></textarea>
<button id="startBtn">🎤</button>
<button id="translateBtn">Prelož</button>
<div id="timerDisplay"></div>
</div>
<!-- Video na preklad -->
<div class="video">
<h2 id="currentLetter" style="text-align: center;"></h2>
<video id="translationVideo" controls style="border-radius: 4px;">
<source src="" type="video/mp4">
Your browser does not support the video tag.
</video>
<button id="prevBtn"></button>
<button id="nextBtn"></button>
</div>
</div>
<p id="statusText"></p>
<!-- Pripojenie skriptov -->
<script type="module" src="videoplayer.js"></script>
<script src="kontrola_api.js"></script>
<script src="speech_recognition.js"></script>
<main class="main-container">
<div class="text-section">
<!-- Tab navigation -->
<div class="tabs">
<button class="tab active" id="letterTab">Po písmenách</button>
<button class="tab" id="wordTab">Po slovách</button>
</div>
<!-- Text input area -->
<div class="textarea-container">
<textarea id="inputText" placeholder="Zadajte text na preklad..."></textarea>
<button id="startBtn" class="mic-btn" title="Spustiť rozpoznávanie reči">🎤</button>
</div>
<!-- Translate button -->
<button id="translateBtn" class="translate-btn">Prelož</button>
<!-- Notification message -->
<div id="notification" class="notification" style="display: none;">
<span>⚠️ Zvýraznené slová sa nenachádzajú v databáze prekladov.</span>
</div>
</div>
<!-- Video display section -->
<div class="video-section">
<!-- Current letter or word display -->
<h2 id="currentDisplay" class="current-display"></h2>
<video id="translationVideo" controls>
<source src="video/sample.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<!-- Navigation buttons -->
<div class="video-controls">
<button id="prevBtn" class="nav-btn"></button>
<button id="nextBtn" class="nav-btn"></button>
</div>
</div>
</main>
<footer>
<p class="footer-note">* Beta version PMT 2024 *</p>
</footer>
<script src="videoplayer.js"></script>
</body>
</html>