startHealth.ejs
10.6 KB
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title><%= day %>요일 운동 시작!</title>
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
<!-- Font Awesome icons (free version)-->
<script
src="https://use.fontawesome.com/releases/v5.15.4/js/all.js"
crossorigin="anonymous"
></script>
<!-- Simple line icons-->
<link
href="https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.5.5/css/simple-line-icons.min.css"
rel="stylesheet"
/>
<!-- Google fonts-->
<link
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic"
rel="stylesheet"
type="text/css"
/>
<!-- Core theme CSS (includes Bootstrap)-->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Corinthia:wght@700&family=Jua&family=Anton&family=Fuzzy+Bubbles:wght@700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="/stylesheets/styles.css" />
<style>
.healthLink {
color: black;
font-size: 18px;
}
.healthLink2 {
font-size: 18px;
}
.title-fontA {
font-family: 'Fuzzy Bubbles', cursive;
}
.title-fontB {
font-family: 'Anton', sans-serif;
}
.day-fontB {
font-family: 'Jua';
}
.table-title {
color: pink;
font-size: 20px;
}
.timer {
font-family: 'Jua';
font-size: 140px;
color: darkcyan;
}
.healthname {
font-family: 'Jua';
font-size: 57px;
color: darkgrey;
}
</style>
<script src="/static/timer.js"></script>
</head>
<body>
<div class="navbar navbar-expand-lg navbar-light bgtop">
<div class="container text-center mx-4 my-1">
<a class="navbar-brand title-fontA" href="/daySelect">Health Assistant</a>
</div>
<div class="mx-3">
<a class="otherUser title-fontB" href="/otherUser">OTHER</a>
</div>
<div class="mx-3">
<a class="otherUser title-fontB" href="/myHealth">MY</a>
</div>
<div class="mx-3">
<a class="otherUser title-fontB" href="/auth/logout/kakao">LOGOUT</a>
</div>
</div>
<section class="container">
<div>
<h1 class="mt-5 text-center day-fontB"><%= day%>요일 운동 시작하세요!</h1>
</div>
<div class="mt-5">
<table class="table text-center">
<tr class="table-title">
<th>운동 방법</th>
<th>자극 부위</th>
<th>세트</th>
<th>횟수</th>
<th>쉬는시간(초)</th>
<th></th>
<th></th>
</tr>
<div>
<% for(let i=0; i <arr1.length ;i++) {
%>
<tr>
<% if(arr1[i].way =="프론트 레이즈") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=j2Nvn8nbtXs"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "아놀드 프레스") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=tsSxQ2__DQU"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "래터럴 레이즈") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=geenhiHju-o"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "리버스 펙덱 플라이") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=Ey8KQroKsCk"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "인클라인 벤치프레스") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=11gY7Q5D5wo"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "벤치프레스") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=5rRHgro9Vrg"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "딥스") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=W6I5Tsuu_CE"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "푸쉬업") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=2qzcGwK282Y"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "랫풀다운") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=hVa5dsH3DaA"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "시티드로우") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=jzf_IMgQ1Zc"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "데드리프트") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=6RW8nWzbIS8"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "바벨로우") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=g4X2faTd0DE"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "풀업") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=LY54fY1ThOw"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "덤벨 컬") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=sAq_ocpRh_I"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "오버헤드프레스") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=kDbUNTX-Xts"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "덤벨 킥백") { %>
<td><a class="healthLink" href="https://youtu.be/6SS6K3lAwZ8"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "라잉 트라이셉스 익스텐션") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=MVwknaifUfw"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "레그프레스") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=hYwJrXpzEfs"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "스쿼트") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=IOCOKjTI2Qo"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "런지") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=Nx1_TkD41DE"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "레그 익스텐션") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=amJyUQfDXTs"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "레그컬") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=_UZDE-HH2eA"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "플랭크") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=B--6YfhmBGc"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "크런치") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=pq6aj0yiSrw"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "백 익스텐션") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=Bw9YuQTTc58"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "싸이클") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=y1e3KYo_Pas"><%= arr1[i].way %></a></td>
<% } else if(arr1[i].way == "런닝머신") { %>
<td><a class="healthLink" href="https://www.youtube.com/watch?v=djAJE282AyI"><%= arr1[i].way %></a></td>
<% } else {%>
<td class="healthLink2"><%= arr1[i].way %></td>
<% } %>
<td><%= arr1[i].part %></td>
<td><%= arr1[i].setNumber %></td>
<td><%= arr1[i].number %></td>
<td id="breaktime"><%= arr1[i].breakTime %></td>
<td>
<button class="btn" onclick="onClick(this)" name="<%= arr1[i].way %>" value="<%= arr1[i].breakTime %>">
<i class="far fa-clock"></i>
</button>
</td>
<td>
<button class="btn" onclick="location.href='edit/<%= arr1[i].way %>'"><i class="fas fa-edit"></i></button>
</td>
<td>
<button class="btn" onclick="location.href='remove/<%= arr1[i].Id %>'"><i class="fas fa-trash-alt"></i></button>
</td>
</tr>
<% } %>
</div>
</table>
</div>
</section>
<section class="container">
<div>
<button class="btn btn-lg" onclick="location.href='/setup'" style="float: right;"><i class="fas fa-plus"></i> 추가</button>
</div>
</section>
<section class="container">
<div>
<div>
<div>
</div>
</div>
<div>
</div>
</div>
</section>
<section class="container text-center">
<div class="row">
<div class="healthname mt-5" id="healthname">
</div>
<div class="timer mt-2" id="demo">
</div>
<div class="day-fontB" id="deleteBtn">
</div>
</div>
</section>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>