Project refactor #20

Merged
mk875sd merged 1 commits from project_refactor into main 2024-11-22 18:44:32 +00:00
5 changed files with 11 additions and 11 deletions

View File

@ -5,7 +5,7 @@
<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="styles/style.css">
</head>
<body>
@ -41,9 +41,9 @@
<!-- Pripojenie skriptov -->
<script type="module" src="videoplayer.js"></script>
<script src="kontrola_api.js"></script>
<script src="speech_recognition.js"></script>
<script type="module" src="scripts/videoplayer.js"></script>
<script src="scripts/kontrola_api.js"></script>
<script src="scripts/speech_recognition.js"></script>

View File

@ -1,8 +1,8 @@
// Skontroluj podporu Web Speech API
window.SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
if (!window.SpeechRecognition) {
console.error('Tento prehliadač nepodporuje Web Speech API');
} else {
console.log('Web Speech API je podporované');
// Skontroluj podporu Web Speech API
window.SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
if (!window.SpeechRecognition) {
console.error('Tento prehliadač nepodporuje Web Speech API');
} else {
console.log('Web Speech API je podporované');
}