-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
156 lines (145 loc) · 7.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="./assets/css/stopwatch.css">
<link rel="stylesheet" type="text/css" href="./assets/css/navbar.css">
<link rel="stylesheet" type="text/css" href="./assets/css/footer.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="icon" href="./assets/images/favicon.png">
<title>Weightlifting Stopwatch</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">
<img src="/assets/images/favicon.png" width="30" height="30" class="d-inline-block align-top" alt="">
Weightlifting Stopwatch
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<a class="nav-link" href="#about">About</a>
</li>
</ul>
</div>
</nav>
<div class="container">
<div class="row justify-content-center align-items-center">
<div class="col-12 col-md-5">
<div class="stopwatch" id="stopwatch"></div>
<div class="restTimer" id="restTimer"></div>
</div>
<div class="col-12 col-md-3">
<p>
</p>
<p>
<form class="form" onsubmit="$('#rest').trigger('click'); return false;">
<div class="form-group row align-items-left">
<button type="button" id="start" class="btn btn-primary btn-lg btn-block">Start</button>
<button type="button" id="stop" class="btn btn-danger btn-lg btn-block">Stop</button>
<button type="button" id="rest" class="btn btn-success btn-lg btn-block">Rest</button>
</div>
<div class="form-group row">
<label for="restTimer">Rest Time (seconds)</label>
<input type="number" class="form-control" id="restInput" placeholder="Rest Time in Seconds" value="60">
<small id="restTimerHelp" class="form-text text-muted">Press Spacebar to begin the rest timer.</small>
</div>
<div class="form-check row">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" id="playSounds" checked="checked"> Play Sounds
</label>
</div>
</form>
</p>
</div>
</div>
<hr />
<div class="row justify-content-center align-items-center">
<div class="col">
<h2 id="about">
About<br />
<small class="text-muted">What's this stopwatch for?</small>
</h2>
<p>
Weightlifting Stopwatch was developed to help:
<ul>
<li>Track overall workout time</li>
<li>Give a visual / audible queue for your rest periods</li>
</ul>
</p>
<p>
My biggest issue with using a regular stopwatch was that when I finished my set, I had
to remember what time it was so that I knew when I needed to start up my next set.
It got annoying to remember and keep watching the clock so I decided to make this simple app.
</p>
<p>
This is actually inspired by <a href="https://www.muscleforlife.com/about-me/" target="_blank">Michael Matthew's</a>
<a href="http://amzn.to/2fGxMwg" target="_blank">Bigger Leaner Stronger</a> workouts since the rest
periods are longer than what I'm used to. So far this stopwatch / rest timer combo has been a great help.
</p>
<p>
If you're curious about the workout program, click the book image.
</p>
<p>
<small>
Pleas note, I'm not affiliated with Michael Matthews or any of his businesses;
I'm just a fan who made an app based on one of his products.
</small>
</p>
</div>
<div class="col-md-auto">
<a href="http://amzn.to/2fGxMwg" target="_blank"><img src="/assets/images/bigger_leaner_stronger.jpg" width="200px"></a>
<br />
<small class="text-muted">(Weightlifting Stopwatch inspired by BLS)</small>
</div>
</div>
</div>
<footer class="mt-5">
<div class="container-fluid bg-primary py-3">
<div class="container">
<div class="row py-3">
<div class="col-md-12">
<p>© 2017 Weightlifting Stopwatch</p>
<p><a href="#">Back to Top</a></p>
</div>
</div>
</div>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
<!-- P5 -->
<script src="./assets/js/p5.js"></script>
<script src="./assets/js/p5.dom.js"></script>
<script src="./assets/js/p5.sound.js"></script>
<script src="./assets/js/timerSound.js"></script>
<script src="./assets/js/stopwatch.js"></script>
<script src="./assets/js/restTimer.js"></script>
<!-- End P5 -->
<!-- Other -->
<script src="./assets/js/keyboardOverride.js"></script>
<!-- End Other -->
<!-- Analytics -->
<!-- Global Site Tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-106960012-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments)
};
gtag('js', new Date());
gtag('config', 'UA-106960012-1');
</script>
<!-- End Analytics -->
</body>
</html>