-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
97 lines (76 loc) · 2.48 KB
/
index.html
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html>
<title>W3.CSS Template</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inconsolata">
<style>
body, html {
height: 100%;
font-family: "Inconsolata", sans-serif;
}
.bgimg {
background-position: center;
background-size: cover;
background-image: url("blind.jpg");
min-height: 60%;
}
.menu {
display: none;
}
#main{
width: 100vw;
height: 100vh;
background-color: black;
color: white;
}
</style>
<body onclick = sun()>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<script src="main.js"></script>
<script src="key.js"></script>
<script type="text/javascript" src="webcam.js"></script>
<script>
/*function hell(){
window.location.href = "main1.php";
console.log("hello");
}*/
function sun(){
var recognition = new (window.SpeechRecognition || window.webkitSpeechRecognition || window.mozSpeechRecognition || window.msSpeechRecognition)();
recognition.lang = 'en-IN';
recognition.interimResults = false;
recognition.maxAlternatives = 5;
recognition.start();
console.log("yeuu ");
recognition.onresult = function(event) {
console.log('You said: ', event.results[0][0].transcript);
if(event.results[0][0].transcript=="hello" || event.results[0][0].transcript=="saloni" ){
window.location.assign("webcam.html")
//video_s();
//console.log("jjjjdd ");
}
/* else if(event.results[0][0].transcript=="change" || event.results[0][0].transcript=="saloni" ){
window.location.assign("sensor.php")
// video_s();
}
else
window.location.assign("sensor.php")*/ // commented the hardware part
};
}
</script>
</script>
<!-- Header with image -->
<header class="bgimg w3-display-container w3-grayscale-min" id="home">
<div class="w3-display-bottomleft w3-center w3-padding-large w3-hide-small">
</header>
<!-- Add a background color and large text to the whole page -->
<div class="w3-sand w3-grayscale w3-large">
<!-- About Container -->
<div class="w3-container" id="about">
<div class="w3-content" style="max-width:700px">
<h5 class="w3-center w3-padding-50"><span class="w3-tag w3-wide">AID FOR BLIND</span></h5>
<p>TAP TO ENTER</p>
</body>
<video autoplay></video>
</html>