Project refactor #20
@ -5,7 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<title>Jednoduchý Prekladač</title>
|
<title>Jednoduchý Prekladač</title>
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="styles/style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
@ -41,9 +41,9 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Pripojenie skriptov -->
|
<!-- Pripojenie skriptov -->
|
||||||
<script type="module" src="videoplayer.js"></script>
|
<script type="module" src="scripts/videoplayer.js"></script>
|
||||||
<script src="kontrola_api.js"></script>
|
<script src="scripts/kontrola_api.js"></script>
|
||||||
<script src="speech_recognition.js"></script>
|
<script src="scripts/speech_recognition.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
// Skontroluj podporu Web Speech API
|
// Skontroluj podporu Web Speech API
|
||||||
window.SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
|
window.SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
|
||||||
|
|
||||||
if (!window.SpeechRecognition) {
|
if (!window.SpeechRecognition) {
|
||||||
console.error('Tento prehliadač nepodporuje Web Speech API');
|
console.error('Tento prehliadač nepodporuje Web Speech API');
|
||||||
} else {
|
} else {
|
||||||
console.log('Web Speech API je podporované');
|
console.log('Web Speech API je podporované');
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user