<!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>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href="progress_bar.css">
</head>
<body>

<!-- Theme toggle icon button -->
<button id="themeToggleBtn" title="Switch Theme">🌞</button>

<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>
    
    <!-- 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>

    
</div>

<!-- Tlačidlo pre mikrofón -->
<br>
<button id="startBtn">🎤</button>
<div id="timerDisplay"></div>
<p id="statusText"></p>

<button id="translateWordsBtn">Preložiť po slovách</button>
<button id="translateLettersBtn">Preložiť po písmenách</button>

<!-- Pripojenie skriptov -->
<script src="kontrola_api.js"></script>
<script src="speech_recognition.js"></script>
<script src="videoplayer.js"></script>

</body>
</html>