-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
113 lines (94 loc) · 4.1 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Navigate in Google Maps using voice (or keyboard, ok). Experiment using voice-elements (Web Component for Web Speech API)">
<!-- Facebook Metatags -->
<meta property="og:title" content="Voice Navigation">
<meta property="og:description" content="Navigate in Google Maps using voice (or keyboard, ok). Experiment using voice-elements (Web Component for Web Speech API)">
<meta property="og:url" content="http://vagnervjs.github.io/voice-navigation/">
<meta property="og:image" content="http://f.cl.ly/items/2G2E031j2P1e3o3g3U0X/Screen%20Shot%202014-06-27%20at%2000.55.18.png">
<title>Voice Navigation</title>
<!-- Style -->
<link rel="stylesheet" href="src/css/main.css">
<link href='http://fonts.googleapis.com/css?family=Roboto:300' rel='stylesheet' type='text/css'>
<!-- Importing Web Component's Polyfill -->
<script src="src/bower_components/platform/platform.js"></script>
<!-- Importing Custom Elements -->
<link rel="import" href="src/bower_components/voice-elements/dist/voice-recognition.html">
</head>
<body>
<div class="loading">
<div class="loader"></div>
</div>
<!-- Support Warning -->
<div class="brower-support">
<p>Sorry, your browser <a href="http://caniuse.com/#feat=web-speech">do not support</a> the Web Speech API :(</p>
</div>
<!-- Voice Element -->
<voice-recognition id="recognition-element"></voice-recognition>
<!-- Maps -->
<div id="map" class="card"></div>
<div id="street-view"></div>
<!-- Search -->
<input type="text" id="search" placeholder="Search">
<!-- Help -->
<div id="help" class="card">
<h2>Instructions</h2>
<div>
<p>Keyboard ShortCuts</p>
<ul>
<li>S: Start voice recognation</li>
<li>E: End voice recognation</li>
<li>↑: Up</li>
<li>←: Rotate Left</li>
<li>→: Rotate Right</li>
<li>↓: Down</li>
<li>H: Left</li>
<li>J: Right</li>
<li>N: Heading Up</li>
<li>M: Heading Down</li>
</ul>
</div>
<div>
<p>Voice Commands</p>
<ul>
<li>GO</li>
<li>Back</li>
<li>Left</li>
<li>Right</li>
<li>Rotate</li>
<li>UP</li>
<li>Down</li>
</ul>
</div>
<iframe class="gh-btn" id="gh-star" src="http://ghbtns.com/github-btn.html?user=vagnervjs&repo=voice-navigation&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0"></iframe>
<iframe class="gh-btn" id="gh-fork" src="http://ghbtns.com/github-btn.html?user=vagnervjs&repo=voice-navigation&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0"></iframe>
</div>
<!-- Log -->
<div id="log" class="card">
<h3>Voice Log</h3>
</div>
<!-- Google Maps API -->
<script src="//maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<!-- App Modules -->
<script src="src/js/voice.js"></script>
<script src="src/js/maps.js"></script>
<!-- App Scripts -->
<script src="src/js/location.js"></script>
<script src="src/js/search.js"></script>
<script src="src/js/main.js"></script>
<!-- Support -->
<script src="src/bower_components/voice-elements/demo/support.js"></script>
<!-- GA -->
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-32909284-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>