-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.htm
246 lines (204 loc) · 11.4 KB
/
index.htm
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<!DOCTYPE html>
<html lang="en">
<head>
<!-- favicon -->
<link rel="shortcut icon" href="favicon.ico">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Come again?</title>
<meta name="viewport" content="width=device-width">
<meta name="description" content="">
<!-- social media stuff -->
<link rel="image_src" href="http://sebpearce.com/come-again/headphones.jpg">
<meta property="og:title" content="Come again? A foreign language listening tool">
<meta property="og:image" content="http://sebpearce.com/come-again/headphones.jpg">
<meta property="og:url" content="http://sebpearce.com/come-again/">
<meta property="og:site_name" content="sebpearce.com">
<meta property="og:description" content="Learning a new language? Make your listening practice sessions less frustrating with this.">
<!-- normalize -->
<link rel="stylesheet" href="normalize.css">
<!-- font-awesome CSS -->
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,400italic&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<!-- my stylesheets -->
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="mobile.css">
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div id="page-wrapper">
<h1>Come again?</h1>
<div id="links">
<div class="fb-like" data-href="http://sebpearce.com/come-again/" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true" style="margin-bottom: 5px"></div><br />
<a href="http://sebpearce.com">sebpearce.com</a>
<ul>
<li><a href="http://github.com/sebpearce/come-again"><i class="fa fa-github fa"></i></a></li>
<li><a href="mailto:[email protected]"><i class="fa fa-envelope-o fa"></i></a></li>
<li><a href="http://twitter.com/_sebu_"><i class="fa fa-twitter fa"></i></a></li>
</ul>
</div>
<p id="big-message">This is a tool to practice intensive listening in a foreign language.<br>To start, choose (or drag and drop) a file you’d like to listen to.</p>
<!-- <p id="refresh">Refresh the page to load a new file.</p> -->
<div id="help">
<a id="help-link">Help!</a>
</div>
<div id="help-dialog">
<p><em>Come again?</em> is a tool for developing listening skills in a foreign language.</p>
<p>To practice listening effectively, it’s important to repeat small sections of a text until you can understand and say them without effort. Since most apps do not offer a convenient way to rewind quickly, I designed <em>Come again?</em> with this in mind.</p>
<p>It works entirely in your browser, so you’re not uploading anything when you use it.</p>
<p>You can use <strong>the keys in the home row</strong> (<strong>A</strong> to <strong>;</strong>) to control playback by rewinding/skipping at 1-to-4-second intervals.</p>
<p>You can also use the numbers <strong>1</strong> to <strong>4</strong> or <strong>the left and right arrow keys</strong> to rewind.</p>
<p>Use <strong>the spacebar</strong> to play or pause the audio.</p>
<p>You can loop a section of audio. Use <strong>G</strong> to set the starting point and then <strong>H</strong> to set the end point. You can make the loop shorter by pressing <strong>G</strong> or <strong>H</strong> while the loop is playing. To cancel the loop, press <strong>escape</strong>.
<p>Use <strong>the up and down arrow keys</strong> to control the volume.</p>
<p>To slow the audio down, press the <strong>period (.)</strong> key. To reset to the original speed, press the <strong>comma (,)</strong> key.</p>
<p>Transcription is an excellent way to practice your listening and writing skills. The link at the bottom of the page will give you a box to write in while listening. The original controls still work if you hold <strong>control</strong>; for example, <strong>control + space</strong> will play/pause the audio. If you go back to the original screen, your writing won’t be lost. Just make sure to copy and paste it somewhere before closing or refreshing <em>Come again?</em>.</p>
<p>Press <strong>control + =</strong> and <strong>control + -</strong> to increase/decrease the font size in the transcription box.</p>
<p>If you want to load a new audio file, just refresh the page.</p>
<p><em>Come again?</em> works best in <a href="http://www.google.com/chrome/">Chrome</a>.</p>
<p>Comments? Suggestions? <a href="mailto:[email protected]">Email me!</a></p>
</div>
<div id="not-supported">
<p>Sorry, this app is not for smartphones.</p>
<p>If you use a computer with <a href="http://www.google.com/chrome/">Google Chrome</a>, it will work well.</p>
</div>
<input id="chooser" type="file" class="custom-file-input" />
<div id="drag-n-drop">
Drag and drop an audio file here.
</div>
<label for="player" id="player-label">asdf</label>
<audio controls id="player" src="">
Audio tag is not supported.
</audio>
<div id="guide">
<table id="hotkey-guide">
<tr>
<td class="key"> A </td>
<td class="key"> S </td>
<td class="key"> D </td>
<td class="key"> F </td>
<td class="key" id="g-label"> G </td>
<td class="key blank" id="h-label"> H </td>
<td class="key"> J </td>
<td class="key"> K </td>
<td class="key"> L </td>
<td class="key"> ; </td>
</tr>
<tr>
<td class="symbol" id="back-4">
<i class="fa fa-backward fa-2x"></i><br />
<span class="interval">4 sec</span>
</td>
<td class="symbol" id="back-3">
<i class="fa fa-backward fa-2x"></i><br />
<span class="interval">3 sec</span>
</td>
<td class="symbol" id="back-2">
<i class="fa fa-backward fa-2x"></i><br />
<span class="interval">2 sec</span>
</td>
<td class="symbol" id="back-1">
<i class="fa fa-backward fa-2x"></i><br />
<span class="interval">1 sec</span>
</td>
<td class="symbol blank" id="loop-start-button">
<i class="fa fa-level-down fa-rotate-180 fa-2x"></i>
<!-- <span class="big-icon">{</span> -->
<br />
<span class="interval" id="loop-text">loop</span>
</td>
<td class="symbol blank" id="loop-end-button">
<i class="fa fa-level-down fa-2x"></i>
<!-- <span class="big-icon">}</span> -->
<br />
<span class="interval">end</span>
</td>
<td class="symbol" id="forward-1">
<i class="fa fa-forward fa-2x"></i><br />
<span class="interval">1 sec</span>
</td>
<td class="symbol" id="forward-2">
<i class="fa fa-forward fa-2x"></i><br />
<span class="interval">2 sec</span>
</td>
<td class="symbol" id="forward-3">
<i class="fa fa-forward fa-2x"></i><br />
<span class="interval">3 sec</span>
</td>
<td class="symbol" id="forward-4">
<i class="fa fa-forward fa-2x"></i><br />
<span class="interval">4 sec</span>
</td>
</tr>
<tr>
<td class="key"></td>
<td class="key"></td>
<td class="key">
<i class="fa fa-long-arrow-left fa-2x"></i><br />
</td>
<td class="key"> </td>
<td class="key blank" id="bottom-loop-label" colspan="2">
<i class="fa fa-retweet fa-2x"></i><br />
</td>
<!-- <td class="key blank"></td> -->
<td class="key"></td>
<td class="key">
<i class="fa fa-long-arrow-right fa-2x"></i><br />
</td>
<td class="key"></td>
<td class="key"></td>
</tr>
<!-- <tr>
<td class="key">4</td>
<td class="key">3</td>
<td class="key">2</td>
<td class="key">1</td>
<td class="key blank"></td>
<td class="key blank"></td>
<td class="key"></td>
<td class="key"></td>
<td class="key"></td>
<td class="key"></td>
</tr> -->
</table>
<div id="slow">
<span id="slow-label">slow</span>
<div id="slow-bar-1"></div>
<div id="slow-bar-2"></div>
<div id="slow-bar-3"></div>
</div>
<div id="spacebar">
<i id="spacebar-icon" class="fa fa-play fa-2x"></i><br />
</div>
<p id="transcribe-button">Click here if you want to write.</p>
</div> <!-- end of guide -->
<div id="transcription-section">
<p id="transcription-tip">You can still control playback: hold <strong>control</strong> while pressing the keys.</p>
<textarea id="transcription-box"></textarea>
<p id="stop-transcribe-button">Click here to go back.</p>
</div>
<!-- <div id="transcription-tab">Transcribe</div> -->
</div> <!-- end of page-wrapper -->
<script src="jquery-1.11.0.js"></script>
<script src="jquery.hotkeys.js"></script>
<script src="jquery.bpopup.min.js"></script>
<script src="keybindings.js"></script>
<script src="main.js"></script>
<script src="jquery.cookie.js"></script>
<script>
(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-48318340-1', 'sebpearce.com');
ga('send', 'pageview');
</script>
</body>
</html>