forked from dkoons1/ProjectCharlie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
185 lines (166 loc) · 4.75 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>lift.it</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<!-- fonts link -->
<link
href="https://fonts.googleapis.com/css?family=Alfa+Slab+One|Amatic+SC|Audiowide|Black+Ops+One|Orbitron&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="Style.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js"></script>
<!-- Firebase Links! -->
<script src="https://www.gstatic.com/firebasejs/7.5.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.5.0/firebase-database.js"></script>
</head>
<body>
<!-- Jumbotron -->
<div class="container">
<div
class="jumbotron"
id="head"
style="background-color: #86C232; color: white"
>
<h1 class="text-center">Lift.it</h1>
</div>
<!-- Random Quote API Display# -->
<div id="randomQuote" type="text-center" class="getPumped text-center">
Get Pumped!
</div>
<div class="row">
<div class="col-md-12">
<br />
<!-- Button trigger modal -->
<wrapper>
<button
id="modButton"
type="button"
class="btn btn-secondary btn-lg"
data-toggle="modal"
data-target="#exampleModal"
>
Add Workout
</button>
</wrapper>
<br />
<!-- Modal -->
<div
class="modal fade"
id="exampleModal"
tabindex="-1"
role="dialog"
aria-labelledby="exampleModalLabel"
aria-hidden="true"
>
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div id="muscleGroups">
</div>
<br />
<div id="test">
<div id="first">
</div>
<div id="second">
</div>
<div id="third">
</div>
</div>
<div id="submitTest">
<label for="thirdInput"
>How much time for this exercise? (min)</label
>
<input type="number" id="submitInput" />
<input id="addThird" type="submit" class="submitButton" />
</div>
</div>
<div class="modal-footer">
<button
id="closeButton"
type="button"
class="btn btn-secondary"
data-dismiss="modal"
>
Close
</button>
<button
id="saveChanges"
type="button"
class="btn btn-primary"
data-dismiss="modal"
>
Save changes
</button>
</div>
</div>
</div>
</div>
<!-- Workout Table -->
<h3 style="color: white;">
<span id="watchers"></span> people are lifting it too!</span>
</h3>
<div>
<table style="background-color:#474b4f" class="table table table-striped text-center">
<thead style="color:#86C232"; >
<tr>
<th>Muscle Group</th>
<th>1st Movement</th>
<th>2nd Movement</th>
<th>3rd Movement</th>
<th>Total Time</th>
</tr>
</thead>
<tbody class="table table-bordered table-striped table-light text-left" id="resultTable">
<tr>
<th scope="row">Abs</th>
<td>Crunches</td>
<td>Sit-ups</td>
<td>Negative Crunches</td>
<td>30</td>
</tr>
</tbody>
</table>
<canvas id="myChart" width="1600" height="900"></canvas>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js"></script>
<script src="script.js"></script>
<script src="quotes.js"></script>
</body>
</html>