194 |
195 |
196 |
197 | reactElement*/}
199 | inputText={this.state.inputText}
200 | speed={this.state.speed || this.getDefaultState ().speed}
201 | isPlaying={this.state.isPlaying}
202 | setProgress={this.state.setProgress}
203 | hasEndedCallback={this.pause}
204 | progressCallback={this.progress}
205 | chunk={this.state.chunk}
206 | reset={this.state.resetTs}
207 | trim={{ "regex": /\.|,|\?|!/ }}
208 | offset={{ "regex": /\.|,|\?|!/, "duration": 0.5 }}
209 | blank={{ "regex": /\.|\?|!/, "duration": 0.5 }}
210 | />
211 |
212 |
213 |
214 |
215 |
216 | {progressBar.bar}
217 | {progressBar.percent}
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 | words per flash: {this.state.chunk}
228 |
229 |
230 |
231 |
232 |
238 | WPM
239 |
240 |
241 |
247 |
248 |
249 |
[Space] : play / pause [Ctrl + Left] : reset
250 |
[Left / Right] : skip backward / forward 3 words
251 |
[Up / Down] : increase / decrease speed for 10 WPM
252 |
253 |
254 |
255 | )
256 | }
257 | }
258 |
259 | export default SpeedReaderViewer
260 |
--------------------------------------------------------------------------------
/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |