2024-10-21 09:51:56 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="sk">
|
|
|
|
<head>
|
|
|
|
<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>
|
2024-10-21 10:03:59 +00:00
|
|
|
<link rel="stylesheet" href="style.css">
|
2024-10-21 09:51:56 +00:00
|
|
|
<link rel="stylesheet" href="progress_bar.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2024-10-21 10:03:59 +00:00
|
|
|
<!-- Theme toggle icon button -->
|
|
|
|
<button id="themeToggleBtn" title="Switch Theme">🌞</button>
|
|
|
|
|
2024-10-21 09:51:56 +00:00
|
|
|
<h1>Jednoduchý Prekladač s Rozpoznávaním Reči</h1>
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<!-- Textové pole na zadanie textu -->
|
|
|
|
<textarea id="inputText" placeholder="Enter text"></textarea>
|
|
|
|
|
2024-11-02 19:13:20 +00:00
|
|
|
<!-- Pole pre preklad -->
|
|
|
|
<div class = "video" >
|
|
|
|
<video id="translationVideo" controls style="border: 2px solid #ccc; border-radius: 4px;">
|
|
|
|
<source src="" type="video/mp4">
|
|
|
|
Your browser does not support the video tag.
|
|
|
|
</video>
|
|
|
|
<!-- Navigation arrows -->
|
|
|
|
<button id="prevBtn" style="position: absolute; top: 50%; left: -40px; transform: translateY(-50%); font-size: 24px; background-color: #4285f4; color: white; border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer;">←</button>
|
|
|
|
<button id="nextBtn" style="position: absolute; top: 50%; right: -40px; transform: translateY(-50%); font-size: 24px; background-color: #4285f4; color: white; border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer;">→</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2024-10-21 09:51:56 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Tlačidlo pre mikrofón -->
|
|
|
|
<br>
|
|
|
|
<button id="startBtn">🎤</button>
|
|
|
|
<div id="timerDisplay"></div>
|
|
|
|
<p id="statusText"></p>
|
|
|
|
|
2024-11-02 19:13:20 +00:00
|
|
|
<button id="translateWordsBtn">Preložiť po slovách</button>
|
|
|
|
<button id="translateLettersBtn">Preložiť po písmenách</button>
|
|
|
|
|
2024-10-21 09:51:56 +00:00
|
|
|
<!-- Pripojenie skriptov -->
|
|
|
|
<script src="kontrola_api.js"></script>
|
|
|
|
<script src="speech_recognition.js"></script>
|
2024-11-02 19:13:20 +00:00
|
|
|
<script src="videoplayer.js"></script>
|
2024-10-21 09:51:56 +00:00
|
|
|
|
|
|
|
</body>
|
2024-10-21 08:16:30 +00:00
|
|
|
</html>
|