-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
147 lines (132 loc) · 6.56 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
<!doctype html>
<html class="no-js" lang="en" ng-app="readerApp">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Speed Reader</title>
<link rel="stylesheet" href="css/main.css" />
<link rel="stylesheet" href="css/foundation.css" />
<link rel="stylesheet" href="css/foundation-icons.css" />
<link rel="stylesheet" href="css/jquery.nouislider.css" />
<script src="js/vendor/modernizr.js"></script>
</head>
<body ng-controller="ReaderCtrl">
<div class="home-screen" ng-show="navigation.showHomeScreen">
<div class="row">
<div class="large-12 columns large-text-center">
<h1>Welcome to Speed Reader!</h1>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div class="panel">
<h3>Insert your text here! </h3>
<textarea id="textarea" rows="25" ng-model="textController.rawText"></textarea>
<div class="large-3 columns right">
<a href="#" class="medium success button right radius" ng-click="navigation.launchReaderScreen();">Start reading</a>
</div>
<div class="large-3 columns right">
<a href="#" class="medium button right radius" ng-click="textController.resetTextToDefault();">Default text</a>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
<div class="speed-reader-screen" ng-show="navigation.showReaderScreen">
<div class="row">
<div class="large-12 columns large-text-center">
<h1><small>Start reading!</small></h1>
</div>
</div>
<div class="row">
<div class="large-12 columns large-centered">
<div class="panel large-text-center wordwrap" style="min-height: 300px;">
<br/> <br/> <br/> <br/> <br />
<span><h1>{{textController.chunk}}</h1></span>
</div>
</div>
</div>
<div class="row">
<div class="large-12 columns large-text-center">
<p>Reading <strong>{{textController.splitText.length}}</strong> words
at <strong>{{textController.wordsPerMinute}}</strong>wpm
split into chunks of <strong>{{textController.wordsPerChunk}}</strong>
</p>
</div>
<br/>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="large-12 columns ">
<div class="large-2 columns">
<a id="restartButton" href="#" class="small radius button" ng-click="player.restart();"><i class="fi-previous"></i> restart</a>
</div>
<div class="large-2 columns">
<a id="playButton" href="#" class="small success radius button" ng-click="player.play();" ng-hide="player.playing"><i class="fi-play"></i> play</a>
</div>
<div class="large-2 columns">
<a id="pauseButton" href="#" class="small success radius button" ng-click="player.pause();" ng-show="player.playing"><i class="fi-pause"></i> pause</a>
</div>
<div class="large-4 columns" style="vertical-align: middle">
<div id="slider"></div>
</div>
<div class="large-2 columns">
<a id="newButton" href="#" class="small radius button" ng-click="navigation.launchHomeScreen()"><i class="fi-page-add"></i> new</a>
</div>
<div class="large-2 columns">
<a id="configButton" href="#" class="small radius button" data-reveal-id="configModal" ng-click="config.initConfigModal()"><i class="fi-wrench"></i> settings</a>
</div>
</div>
</div>
</div>
<div id="footer" class="large-text-center"><small>This was developed based on <a href="http://www.spreeder.com" target="_blank">spreeder.com</a> <br/> Download sourcecode <a href="http://www.github.com/rodrigopsasaki/speed-reader" target="_blank">here</a></small></div>
<div id="configModal" class="reveal-modal" data-reveal>
<div class="large-text-center">
<h2>Reader Settings</h2>
<p class="lead">Tweak the configurations for your speed reading</p>
<form id="configForm">
<div class="row">
<div class="small-8">
<div class="row">
<div class="small-9 columns">
<label for="wordsPerChunk" class="right inline"># of words per Chunk</label>
</div>
<div class="small-3 columns left">
<select id="wordsPerChunk" ng-class="{'validation-error': !config.validWordsPerChunk}"
ng-model="config.wordsPerChunk" ng-options="value for value in config.wordsPerChunkValues">
</select>
<small class="validation-error" ng-hide="config.validWordsPerChunk">This value must be a positive integer between 1 and 6</small>
</div>
</div>
<div class="row">
<div class="small-9 columns">
<label for="wordsPerMinute" class="right inline">Words per minute</label>
</div>
<div class="small-3 columns left">
<input ng-class="{'validation-error': !config.validWordsPerMinute}" type="text" id="wordsPerMinute" ng-model="config.wordsPerMinute">
<small class="validation-error" ng-hide="config.validWordsPerMinute"> This value must be a positive integer between 200 and 1000</small>
</div>
</div>
</div>
</div>
<div class="row">
<div class="large-12 columns large-text-center">
<br/>
<a href="#" class="medium success radius button" ng-click="config.saveConfiguration();"><i class="fi-check"></i> save</a>
</div>
</div>
</form>
</div>
</div>
<script src="js/vendor/jquery.js"></script>
<script src="js/foundation.min.js"></script>
<script src="js/foundation/foundation.slider.js"></script>
<script src="js/angular/angular.min.js"></script>
<script src="js/nouislider/jquery.nouislider.min.js"></script>
<script src="js/main.js"></script>
<script>
$(document).foundation();
</script>
</body>
</html>