forked from Mciocca/Round-Timer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
165 lines (153 loc) · 7.26 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
<!DOCTYPE html>
<html>
<head>
<title>Versatimer</title>
<meta name="viewport" content="width=device-width">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/round.css">
<link rel="icon" type="image/icp" href="favicon.png">
<meta name="description" content="A generic timer for recurring rounds for your web browser (javascript) with acoustic alarms. Based on Round-Timer.">
</head>
<body>
<header class="navbar navbar-inverse">
<div class="navbar-brand">Versatimer</div>
</header>
<div id ="wrapper" class="container">
<p id="instructions" class="row">Triangles change minutes, chevrons change seconds!</p>
<div id="round-counter" class="row jumbotron">
<h1 class="text-center"><span id="ptimer" class="text"></span><span id="time"><span id="tminutes">00</span><span>:</span><span id="tseconds">00</span></span></h1>
<div class="progress">
<div id="total-elapsed-progress" aria-valuenow="0" style="width: 0%" aria-valuemax="100" aria-valuemin="0" role="progressbar" class="progress-bar"><span class="duration">00:00</span> elapsed</div>
<div id="total-left-progress" aria-valuenow="100" class="progress-bar progress-bar-info" style="width: 100%" aria-valuemax="100" aria-valuemin="0"><span class="duration">00:00</span> left</div>
</div>
</div>
<!-- BEGIN mobile controls. Used to simplify input on smaller devices -->
<ul id="labels" class="row list-group hidden-md hidden-lg">
<li id="number-label" class="col-md-4 list-group-item list-group-item-success">
<h4 class="list-group-item-heading">Number of Rounds:</h4>
<div class="mobile-select list-group-item-text">
<select class="mobile-round-count">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</div>
</li>
<li id="length-label" class="col-md-4 list-group-item">
<h4 class="list-group-item-heading">Round Length:</h4>
<div class="mobile-select list-group-item-text">
<select class="mobile-round-minutes">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
<span>:</span>
<select class="mobile-round-seconds" >
<option value="0">00</option>
<option value="15">15</option>
<option value="30">30</option>
<option value="45">45</option>
</select>
</div>
</li>
<li id="rest-label" class="col-md-4 list-group-item list-group-item-warning">
<h4 class="list-group-item-heading">Rest:</h4>
<div class="mobile-select list-group-item-text">
<select class="mobile-rest-minutes">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
<span>:</span>
<select class="mobile-rest-seconds">
<option value="0">00</option>
<option value="15">15</option>
<option value="30">30</option>
<option value="45">45</option>
</select>
</div>
</li>
</ul>
<!-- END mobile input -->
<!-- BEGIN desktop input -->
<div class="counter-items row hidden-xs hidden-sm">
<div id="rounds" class="col-md-4"><div class="panel panel-success">
<div class="panel-heading">Rounds</div>
<div class="panel-body">
<span class="text" id="remaining-rounds">0</span>
<span class="text" id="total-rounds">0</span>
<div class="btn-group">
<a href="#" class="plus glyphicon glyphicon-triangle-top" title="+1"></a>
<a href="#" class="minus glyphicon glyphicon-triangle-bottom" title="-1"></a>
</div>
</div>
</div></div>
<div id="round-time" class="col-md-4"><div class="panel panel-default">
<div class="panel-heading">Round time</div>
<div class="panel-body">
<span id="r-minutes">00</span>:<span id="r-seconds">00</span>
<div class="btn-group">
<a href="#round-time" class="plus-minutes glyphicon glyphicon-triangle-top" title="+1 min"></a>
<a href="#round-time" class="minus-minutes glyphicon glyphicon-triangle-bottom" title="-1 min"></a>
<a href="#round-time" class="plus glyphicon glyphicon-chevron-up" title="+1 sec"></a>
<a href="#round-time" class="minus glyphicon glyphicon-chevron-down" title="-1 sec"></a>
</div>
</div>
</div></div>
<div id="rest" class="col-md-4"><div class="panel panel-warning">
<div class="panel-heading">Rest time</div>
<div class="panel-body">
<span id="rt-minutes">00</span>:<span id="rt-seconds">00</span>
<div class="btn-group">
<a href="#rest" class="plus-minutes glyphicon glyphicon-triangle-top" title="+1 min"></a>
<a href="#rest" class="minus-minutes glyphicon glyphicon-triangle-bottom" title="-1 min"></a>
<a href="#rest" class="plus glyphicon glyphicon-chevron-up" title="+1 sec"></a>
<a href="#rest" class="minus glyphicon glyphicon-chevron-down" title="-1 sec"></a>
</div>
</div>
</div></div>
</div>
<!-- END desktop input -->
<div id="controls" class="row btn-group">
<a href="#controls" class="control-button btn btn-primary" id="start">Start</a>
<a href="#controls" class="control-button btn btn-danger" id="stop">Stop</a>
<label class="btn btn-default"><input type="checkbox" checked="" id="prepare-toggle" />Preparation time</label>
</div>
</div>
<audio id="bell" autostart="false" src="sounds/bell.mp3" preload="auto" hidden="true">Your browser does not support HTML5 sounds. You will not hear any sounds! Please use <a href="http://outdatedbrowser.com/">a modern browser</a></audio>
<audio id="gong" autostart="false" src="sounds/gong.mp3" preload="auto" hidden="true"></audio>
<audio id="ten" autostart="false" src="sounds/alert.mp3" preload="auto" hidden="true"></audio>
<footer class="navbar navbar-default navbar-fixed-bottom">
<p class="navbar-text">
<b><a href="https://github.com/yuwash/Versatimer">Versatimer</a></b>
maintained by <a href="https://github.com/yuwash">Yushin Washio</a> (fork and contribute at <a href="https://github.com/yuwash/Versatimer">github</a>!)
</p>
</footer>
<script type="text/javascript" src="js/round.js"></script>
</body>
</html>