-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
33 lines (28 loc) · 1.02 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
function start() {
window.location.href = "../index.html";
let speech = new SpeechSynthesisUtterance();
speech.lang = "en-US";
speech.text = "Starting current see";
speech.volume = 1;
speech.rate = 1;
speech.pitch = 1;
window.speechSynthesis.speak(speech);
}
function help() {
let speech = new SpeechSynthesisUtterance();
speech.lang = "en-US";
speech.text = "This application aims to help you check your currency. All you have to do is put your dollar note in front of the camera. You can show either the front or back of the note and we will let you know its value. Click anywhere on the left side of the current screen to start.";
speech.volume = 1;
speech.rate = 1;
speech.pitch = 1;
window.speechSynthesis.speak(speech);
}
const greeting = document.getElementById("welcome");
function welcome() {
greeting.play();
}
greeting.addEventListener("ended", () => {
console.log("ended");
let window = document.getElementById("window");
window.style.display = "none";
})