-
Notifications
You must be signed in to change notification settings - Fork 0
/
Weightlifting.html
162 lines (149 loc) · 5.21 KB
/
Weightlifting.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="Inputs.css">
<link rel="stylesheet" href="Header.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Weight-Lifting</title>
</head>
<body>
<header id="header">
<span style="position:absolute; right: 5px; top: 0px;">
<div class="topnav">
<a href="./WelcomePage.html" class="active">
<i class="fa fa-home"></i>
</a>
</div>
</span>
Fitness Tracker
<span style="position:absolute; left: 5px; top: 30px;">
<div class="topnav">
<text class="myGreeting"> Hi Sarah! </text>
</div>
</span>
</header>
<div id="welcomeMsg">
<p><h1 style="color:white">Weight-Lifting</h1></p>
</div>
<h4 style="color:white; text-align: center; width: 50%; margin: auto; line-height: 40px; background-color: rgba(99, 98, 98, 0.8);
border-color: black; border-radius: 5px; border-width:.5px; border-style:solid;">
Select Date:
<input type="date" id="DateInput">
</h4>
<br><br>
<div class="headContainer">
Bicep Curls
</div>
<br>
<div class="slideContainer">
<div class="slideTitle">
<text style="color:white;font-size: 24px; line-height: 20px;"> Weight </text>
</div>
<input type="range" id="mySlide1" name="mySlide1" min="0" max="1000" value="0" class="slider">
<output id="amount1" name="amount1" for="mySlide1" class="slideAmt">
<span id="myValue1"></span>
</output>
<br /><br />
<div class="slideTitle">
<text style="color:white;font-size: 24px; line-height: 20px;"> Sets </text>
</div>
<input type="range" id="mySlide2" name="mySlide2" min="0" max="1000" value="0" class="slider">
<output id="amount2" name="amount2" for="mySlide2" class="slideAmt">
<span id="myValue2"></span>
</output>
<br /><br />
<div class="slideTitle">
<text style="color:white;font-size: 24px; line-height: 20px;"> Heart Rate </text>
</div>
<input type="range" id="mySlide3" name="mySlide3" min="0" max="300" value="0" class="slider">
<output id="amount3" name="amount3" for="mySlide3" class="slideAmt">
<span id="myValue3"></span>
</output>
</div>
<br><br><br />
<div class="headContainer">
Tricep Curls
</div>
<br />
<div class="slideContainer">
<div class="slideTitle">
<text style="color:white;font-size: 24px; line-height: 20px;"> Weight </text>
</div>
<input type="range" id="mySlide1a" name="mySlide1a" min="0" max="1000" value="0" class="slider">
<output id="amount1a" name="amount1a" for="mySlide1a" class="slideAmt">
<span id="myValue1a"></span>
</output>
<br /><br />
<div class="slideTitle">
<text style="color:white;font-size: 24px; line-height: 20px;"> Sets </text>
</div>
<input type="range" id="mySlide2a" name="mySlide2a" min="0" max="1000" value="0" class="slider">
<output id="amount2a" name="amount2a" for="mySlide2a" class="slideAmt">
<span id="myValue2a"></span>
</output>
<br /><br />
<div class="slideTitle">
<text style="color:white;font-size: 24px; line-height: 20px;"> Heart Rate </text>
</div>
<input type="range" id="mySlide3a" name="mySlide3a" min="0" max="300" value="0" class="slider">
<output id="amount3a" name="amount3a" for="mySlide3a" class="slideAmt">
<span id="myValue3a"></span>
</output>
</div>
<br>
<div class="btnContainer">
<a href="./ExerciseLog.html">
<button class="mainBtn">Submit</button>
</a>
</div>
<script>
var mySlider1 = document.getElementById("mySlide1");
var myOutput1 = document.getElementById("myValue1");
myOutput1.innerHTML = mySlider1.value;
mySlider1.oninput = function () {
myOutput1.innerHTML = this.value;
}
var mySlider2 = document.getElementById("mySlide2");
var myOutput2 = document.getElementById("myValue2");
myOutput2.innerHTML = mySlider2.value;
mySlider2.oninput = function () {
myOutput2.innerHTML = this.value;
}
var mySlider3 = document.getElementById("mySlide3");
var myOutput3 = document.getElementById("myValue3");
myOutput3.innerHTML = mySlider3.value;
mySlider3.oninput = function () {
myOutput3.innerHTML = this.value;
}
var mySlider1a = document.getElementById("mySlide1a");
var myOutput1a = document.getElementById("myValue1a");
myOutput1a.innerHTML = mySlider1a.value;
mySlider1a.oninput = function () {
myOutput1a.innerHTML = this.value;
}
var mySlider2a = document.getElementById("mySlide2a");
var myOutput2a = document.getElementById("myValue2a");
myOutput2a.innerHTML = mySlider2a.value;
mySlider2a.oninput = function () {
myOutput2a.innerHTML = this.value;
}
var mySlider3a = document.getElementById("mySlide3a");
var myOutput3a = document.getElementById("myValue3a");
myOutput3a.innerHTML = mySlider3a.value;
mySlider3a.oninput = function () {
myOutput3a.innerHTML = this.value;
}
function navBar() {
var x = document.getElementById("myNavBar");
if (x.style.display === "block") {
x.style.display = "none";
} else {
x.style.display = "block";
}
}
</script>
<script src="Redirect.js"></script>
</body>
</html>