-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
225 lines (225 loc) · 10.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!doctype html>
<!--
This page is shown when the extension button is clicked, because the
"browser_action" field in manifest.json contains the "default_popup" key with
value "popup.html".
-->
<html>
<head>
<title>Stella by Launchpad</title>
<link type="text/css" href="public/css/fonts.css" rel="stylesheet">
<link type="text/css" href="public/css/index.css" rel="stylesheet">
<link type="text/css" href="public/css/theme.css" rel="stylesheet">
<link type="text/css" href="public/css/recording.css" rel="stylesheet">
<link type="text/css" href="public/css/switch.css" rel="stylesheet">
<link type="text/css" href="public/css/chat.css" rel="stylesheet">
<link type="text/css" href="public/css/demo.css" rel="stylesheet">
<link type="text/css" href="public/css/docs.css" rel="stylesheet">
</head>
<body>
<div class="table-container">
<table class="table" cellspacing="0">
<colgroup>
<col span="1" style="width: 40%;">
<col span="1" style="width: 60%;">
</colgroup>
<tbody>
<tr>
<td class="command">"Hello Stella"</td>
<td class="action">Returns to Stella's tab. Do not say "Stella" before this command</td>
</tr>
<tr>
<td class="command">Open / Close help menu</td>
<td class="action">Opens / closes the table of commands</td>
</tr>
<tr>
<td class="command"><i>Question</i></td>
<td class="action">Searches Google for the answer to your <i>question</i>. If the question or answer is simple, Stella may verbally respond.</td>
</tr>
<tr>
<td class="command">Go to <i>url</i></td>
<td class="action">Opens the website at <i>url</i> in a new tab</td>
</tr>
<tr>
<td class="command">Look up <i>query</i></td>
<td class="action">Searches google for the requested query</td>
</tr>
<tr>
<td class="command">Play <i>song</i></td>
<td class="action">Plays the first YouTube video that matches <i>song</i></td>
</tr>
<tr>
<td class="command">Search YouTube for <i>query</i></td>
<td class="action">Searches YouTube for the requested query</td>
</tr>
<tr>
<td class="command">Click on the link that says <i>text</i></td>
<td class="action">Clicks on the first visible link on screen that contains the specified <i>text</i></td>
</tr>
<tr>
<td class="command">Type <i>phrase</i> in box <i>label</i></td>
<td class="action">Types the phrase in a labeled text box.</td>
</tr>
<tr>
<td class="command">Scroll up / down a little</td>
<td class="action">Scrolls any webpage up / down 200 pixels</td>
</tr>
<tr>
<td class="command">Scroll up / down (more)</td>
<td class="action">Scrolls any webpage up / down 500 pixels</td>
</tr>
<tr>
<td class="command">Scroll up / down alot</td>
<td class="action">Scrolls any webpage up / down 1000 pixels</td>
</tr>
<tr>
<td class="command">Go back / forward</td>
<td class="action">Toggles the back / forward button of the browser on the active tab</td>
</tr>
<tr>
<td class="command">Refresh the page</td>
<td class="action">Refreshes the currently visible tab</td>
</tr>
<tr>
<td class="command">Open a new tab</td>
<td class="action">Creates a new empty tab in the current window</td>
</tr>
<tr>
<td class="command">Close this tab</td>
<td class="action">Closes the tab that is visible</td>
</tr>
<tr>
<td class="command">Go to the <i>n</i>-th tab</td>
<td class="action">Makes the <i>n</i>-th tab of the current window active</td>
</tr>
<tr>
<td class="command">Close the previous tab</td>
<td class="action">Closes the tab directly to the left of the currently visible one</td>
</tr>
<tr>
<td class="command">Close the previous <i>n</i> tabs</td>
<td class="action">Closes the <i>n</i> tabs directly to the left of the currently visible one from closest to farthest</td>
</tr>
<tr>
<td class="command">Close the next tab</td>
<td class="action">Closes the tab directly to the right of the currently visible one</td>
</tr>
<tr>
<td class="command">Close the next <i>n</i> tabs</td>
<td class="action">Closes the <i>n</i> tabs directly to the right of the currently visible one from closest to farthest</td>
</tr>
<tr>
<td class="command">Close the first <i>n</i> tabs</td>
<td class="action">Closes the first <i>n</i> tabs in the window from left to right (Skips Stella tab)</td>
</tr>
<tr>
<td class="command">Close the last <i>n</i> tabs</td>
<td class="action">Closes the last <i>n</i> tabs in the window from right to left (Skips Stella tab)</td>
</tr>
<tr>
<td class="command">Close the first tab</td>
<td class="action">Closes the first tab in the window</td>
</tr>
<tr>
<td class="command">Close the last tab</td>
<td class="action">Closes the last tab in the window</td>
</tr>
<tr>
<td class="command">Close the <i>n</i>-th tab</td>
<td class="action">Closes the <i>n</i>-th tab in the current window (1-indexed from left to right and skips Stella)</td>
</tr>
<tr>
<td class="command">Close the <i>n</i>-th to <i>m</i>-th tabs</td>
<td class="action">Closes the <i>n</i>-th tab to <i>m</i>-th tab in the current window (1-indexed from left to right and skips Stella)</td>
</tr>
<tr>
<td class="command">Mute all audible tabs</td>
<td class="action">Disables all tabs making sound (Click them to reload)</td>
</tr>
<tr>
<td class="command">Enter memory save mode</td>
<td class="action">Unloads all inactive tabs to save computer memory (Click tabs to reload them)</td>
</tr>
<tr>
<td class="command">Reset</td>
<td class="action">Resets Stella</td>
</tr>
</tbody>
</table>
</div>
<div class="chat-container">
<div class="container">
<div class="chat">
<div class="chat-title">
<h1>STELLA</h1>
<h2>by Launchpad</h2>
<figure class="avatar">
<img src="public/img/stella.png" />
</figure>
<div class="right">
<button id="start_button" class="rec-container">
<div id="rec_dot" class="dot"></div>
<div id="rec_pulse" class="pulse"></div>
</button>
</div>
</div>
<div class="messages">
<div class="messages-content"></div>
</div>
<div class="message-box">
<textarea type="text" id="message_input" class="message-input" placeholder="Begin speaking..."></textarea>
</div>
</div>
<br>
<div id="info">
<p id="info_start">Click on the gray circle and begin speaking.</p>
<p id="info_speak_now">Analyzing audio... Begin command with "Stella"</p>
<p id="info_no_speech">No speech detected: You may need to adjust your
<a href="//support.google.com/chrome/bin/answer.py?hl=en&answer=1407892"> mic settings</a>.</p>
<p id="info_no_microphone" style="display:none">
No microphone was found. Ensure that a microphone is installed and that
<a href="//support.google.com/chrome/bin/answer.py?hl=en&answer=1407892"> microphone settings</a> are configured correctly.</p>
<p id="info_allow">Click the "Allow" button above to enable your microphone.</p>
<p id="info_denied">Permission to use microphone was denied.</p>
<p id="info_blocked">Permission to use microphone is blocked. To change, go to chrome://settings/contentExceptions#media-stream</p>
<p id="info_upgrade">Web Speech API is not supported by this browser. Upgrade to <a href="//www.google.com/chrome">Chrome</a> version 25 or later.</p>
</div>
<br>
<div class="switch-container">
<label class="switch">
<input id="continuous_check" type="checkbox" checked="true">
<div class="slider round"></div>
</label>
<p>Continuous Analysis: Accept commands until "Stella go to sleep" or "Stella turn off continuous analysis"</p>
</div>
<div class="center">
<div id="div_language">
<select id="select_language"></select>
<select id="select_dialect"></select>
</div>
</div>
<br>
<p id="status"></p>
</div>
</div>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/chat.js"></script>
<script src="api/index.js"></script>
<script src="background/tts.js"></script>
<script src="background/notifications.js"></script>
<script src="client/recognition.js"></script>
<script src="api/debug.js"></script>
<script src="api/tabs.js"></script>
<script src="api/dom/window.js"></script>
<script src="api/dom/interaction.js"></script>
<script src="api/api.browser.js"></script>
<script src="api/api.core.js"></script>
<script src="api/api.interact.js"></script>
<script src="api/api.search.js"></script>
<script src="api/api.tabs.js"></script>
<script src="npm/bundle.js"></script>
<script src="api/analysis.js"></script>
<script src="client/speech.js"></script>
</body>
</html>