-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWorkout.html
127 lines (114 loc) · 4.78 KB
/
Workout.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="author" content="Jacob Davis">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>5-3-1 Lift Generator</title>
<!-- META bullshit - The top 4 are mandatory. -->
<meta property="og:title" content="5-3-1 Lift Generator">
<meta property="og:type" content="website">
<meta property="og:image" content="/resources/image.jpg">
<meta property="og:url" content="https://531.com">
<meta property="og:description" content="A website that calculates lift charts based on the 5-3-1 plan by Jim Wendler">
<meta property="og:locale" content="en_US">
<meta property="og:site_name" content="5-3-1 Calculator">
<!-- Stylesheet -->
<link rel="stylesheet" href="styles/styles.css">
<style>
html {
background: url(resources/image.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
</style>
</head>
<body>
<h1>5-3-1 Lift Generator</h1>
<nav>
<!-- If needed, navigation links will go here... -->
</nav>
<input type="file" id="fileInput" onchange="loadFile(event)" style="display: none;" />
<div class="jsonButton">
<button id="selectFileButton" onclick="document.getElementById('fileInput').click()">Upload a JSON File...</button>
</div>
<div class="pageContainer">
<p id="timer">0:00</p>
<button class="start" onclick="startTimer(180)">3 minutes</button>
<button class="start" onclick="startTimer(150)">2.5 minutes</button>
<button class="start" onclick="startTimer(120)">2 minutes</button>
<button class="start" onclick="startTimer(90)">1.5 minutes</button>
<button class="stop" onclick="stopTimer()">Stop</button>
<audio id="alarm" src="resources/alarm.wav"></audio>
</div>
<div class = "pageContainer">
<table id="benchPressTable">
<caption>Bench Press</caption>
<tr>
<th>Week</th>
<th>Set 1</th>
<th>Set 2</th>
<th>Set 3</th>
<th>Set 4</th>
<th>Set 5</th>
<th>Set 6</th>
<th>Set 7-12</th>
</tr>
</table>
<table id="squatTable">
<caption>Squat</caption>
<tr>
<th>Week</th>
<th>Set 1</th>
<th>Set 2</th>
<th>Set 3</th>
<th>Set 4</th>
<th>Set 5</th>
<th>Set 6</th>
<th>Set 7-12</th>
</tr>
</table>
<table id="deadliftTable">
<caption>Deadlift</caption>
<tr>
<th>Week</th>
<th>Set 1</th>
<th>Set 2</th>
<th>Set 3</th>
<th>Set 4</th>
<th>Set 5</th>
<th>Set 6</th>
<th>Set 7-12</th>
</tr>
</table>
<table id="overheadPressTable">
<caption>Overhead Press</caption>
<tr>
<th>Week</th>
<th>Set 1</th>
<th>Set 2</th>
<th>Set 3</th>
<th>Set 4</th>
<th>Set 5</th>
<th>Set 6</th>
<th>Set 7-12</th>
</tr>
</table>
</div>
<form class="pageContainer">
<!-- The 'required' and 'maxlength' properties would be applied to a form. -->
<input type="number" placeholder="Weight Lifted" id="weight" required maxlength="3"><br><br>
<input type="number" placeholder= "Reps Performed" id="reps" required maxlength="2"><br><br>
<label>1RM:</label>
<label id="oneRepMaxFinal"></label><br><br>
<button type="button" id="oneRepMaxButton" onclick="onCalculateButtonClick()">Calculate 1RM</button><br>
</form>
</br>
<footer id = "copyright">
<small>© Copyright Jacob Davis (2023) - Based on<a href=https://www.jimwendler.com/blogs/jimwendler-com/101065094-5-3-1-for-a-beginner>Jim Wendler's 5-3-1 Beginner Template.</a></small>
</footer>
<!-- JavaScript Src... -->
<script src="scripts/scripts.js"></script>
</body>
</html>