-
Notifications
You must be signed in to change notification settings - Fork 1
/
myChecklist.html
289 lines (278 loc) · 11.5 KB
/
myChecklist.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
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.5/flowbite.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="./js/myChecklist.js"></script>
<script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>
<title>삐용</title>
<link rel="stylesheet" href="../css/config.css" />
</head>
<body>
<div class="relative content bg-gray-50 border-white">
<div class="bg-white border-gray-200 shadow">
<nav class="bg-white border-gray-200">
<div
class="max-w-screen-xl flex flex-nowrap items-center justify-between mx-auto p-4 h-15"
>
<!-- 로고 이미지 삽입 -->
<div class="flex items-center justify-center">
<a
href="https://page.ppiyong.shop/main.html"
class="flex items-center"
>
<img src="../img/logo.png" class="w-24 h-9 mr-10" />
</a>
</div>
<div class="main-nav-items">
<div
id="login-nav"
class="flex items-center justify-end text-end"
>
<a href="https://page.ppiyong.shop/alarm/alarm.html"
><img src="../img/icon/알림.png" class="w-6 h-6 mt-3 mr-3"
/></a>
<div class="username-text font-medium text-lg mt-1 mr-6">
강윤진님
</div>
<div class="text-center">
<button
type="button"
data-drawer-target="drawer-navigation"
data-drawer-show="drawer-navigation"
aria-controls="drawer-navigation"
>
<img
src="../img/icon/햄버거바.png"
alt="menu"
class="w-6 h-5 mt-3"
/>
</button>
</div>
</div>
<div id="non-login-nav" class="flex justify-end">
<div class="w-20 h-8 text-center p-1 ml-14">
<a href="https://page.ppiyong.shop/account/login.html">
<button>로그인</button>
</a>
</div>
<div class="bg-yellow-300 w-20 h-8 rounded text-center p-1">
<a href="https://page.ppiyong.shop/account/signup.html">
<button>회원가입</button>
</a>
</div>
</div>
</div>
</div>
</nav>
<nav>
<div
id="searchNav-item"
class="max-w-screen-xl flex flex-wrap items-center justify-around mx-auto p-3 pb-0"
>
<button id="home-href">
<a href="https://page.ppiyong.shop/main.html">홈</a>
<div class="bg-mySky p-1 h-3"></div>
</button>
<button id="shelter-href">
<a href="https://page.ppiyong.shop/map.html">주변 대피소</a>
<div class="bg-mySky p-1 h-3"></div>
</button>
<button id="checklist-href " class="font-bold">
<a href="https://page.ppiyong.shop/checklist.html">체크리스트</a>
<div
class="under-nav bg-mySky p-1 h-3 border-b-4 border-yellow-300 border-7"
></div>
</button>
</div>
<div class="searchMain_nav_underline"></div>
</nav>
</div>
<!-- drawer component -->
<div
id="drawer-navigation"
class="fixed top-0 left-0 z-40 w-64 h-screen p-4 overflow-y-auto transition-transform -translate-x-full bg-white dark:bg-gray-800"
tabindex="-1"
aria-labelledby="drawer-navigation-label"
>
<button
type="button"
data-drawer-hide="drawer-navigation"
aria-controls="drawer-navigation"
class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 absolute top-2.5 right-2.5 inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white"
>
<svg
aria-hidden="true"
class="w-5 h-5"
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
clip-rule="evenodd"
></path>
</svg>
<span class="sr-only">Close menu</span>
</button>
<div class="py-4 overflow-y-auto">
<ul class="space-y-2">
<li>
<a
class="flex items-center p-2 text-gray-900 rounded-lg dark:text-white"
>
<svg
class="w-5 h-5 text-gray-500 transition duration-75 dark:text-gray-400 group-hover:text-gray-900 dark:group-hover:text-white"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
viewBox="0 0 22 21"
></svg>
<span class="username-text mt-10 font-bold text-2xl"
>강윤진</span
>
<span class="mt-10 font-medium text-2xl">님</span>
</a>
</li>
<li>
<a
href="https://page.ppiyong.shop/myChecklist.html"
class="flex items-center p-2 text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700 group"
>
<svg
class="flex-shrink-0 w-5 h-5 text-gray-500 transition duration-75 dark:text-gray-400 group-hover:text-gray-900 dark:group-hover:text-white"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
viewBox="0 0 18 18"
></svg>
<span class="flex-1 ml-3 whitespace-nowrap">MY 체크리스트</span>
</a>
</li>
<li>
<a
href="https://page.ppiyong.shop/alarm/select_other.html"
class="flex items-center p-2 text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700 group"
>
<svg
class="flex-shrink-0 w-5 h-5 text-gray-500 transition duration-75 dark:text-gray-400 group-hover:text-gray-900 dark:group-hover:text-white"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
viewBox="0 0 20 20"
></svg>
<span class="flex-1 ml-3 whitespace-nowrap"
>다른 지역 확인하기</span
>
</a>
</li>
<li>
<a
href="https://page.ppiyong.shop/account/editMember.html"
class="flex items-center p-2 text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700 group"
>
<svg
class="flex-shrink-0 w-5 h-5 text-gray-500 transition duration-75 dark:text-gray-400 group-hover:text-gray-900 dark:group-hover:text-white"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
viewBox="0 0 20 18"
></svg>
<span class="flex-1 ml-3 whitespace-nowrap"
>회원정보 수정하기</span
>
</a>
</li>
<li class="logout_btn">
<a
class="flex items-center p-2 text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700 group"
>
<svg
class="flex-shrink-0 w-5 h-5 text-gray-500 transition duration-75 dark:text-gray-400 group-hover:text-gray-900 dark:group-hover:text-white"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
viewBox="0 0 18 20"
></svg>
<div class="flex-1 ml-3 whitespace-nowrap">로그아웃</div>
</a>
</li>
</ul>
</div>
</div>
<div class="cehcklist-content p-5">
<div class="title flex justify-between">
<div>
<p class="text-2xl">
<span class="username-text font-bold">김동현</span>님만의 <br />
재난대비 체크리스트
</p>
</div>
<div><img src="../img/icon/pencil_icon.png" /></div>
</div>
</div>
<div class="flex flex-col justify-center pt-0 p-5">
<div class="my-checklists-container flex"></div>
<div class="my-checklist">
<div
class="bg-white w-80 h-96 rounded shadow mt-4 flex flex-col justify-between"
>
<div class="warp">
<div class="checklist-title">
<div class="flex justify-between">
<p
id="checklist-title-text"
class="font-bold px-4 py-2 text-lg"
></p>
<button
id="delete-checklist"
type="button"
class="m-1.5 px-2.5 py-1 text-white bg-red-500 rounded-lg border border-gray-200 text-sm font-medium"
>
<p class="text-center">삭제하기</p>
</button>
</div>
<div class="bg-gray-100 h-0.5"></div>
</div>
<div class="checklist-content overflow-auto"></div>
</div>
<div class="checklist-footer">
<div class="checklist-input mt-2 mb-2 relative">
<input
id="checklist-input"
placeholder="체크리스트를 추가해보세요."
class="text-gray-900 border border-gray-300 form-input w-80 h-11 px-3 py-2 rounded-md border focus:outline-none focus:ring focus:border-blue-600"
required
/>
<button
id="add-btn"
type="button"
class="absolute right-2 translate-y-1/4 w-11 h-7 bg-gray-600 rounded-md text-white font-bold text-sm"
>
추가
</button>
</div>
<div class="bg-gray-100 h-0.5"></div>
<div class="flex justify-center items-center">
<button
onclick="downImg()"
type="button"
class="m-1.5 px-2.5 py-1 text-white bg-gray-600 rounded-lg border border-gray-200 text-sm font-medium"
>
<p class="text-center">공유하기</p>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="./js/isLoggedin.js"></script>
<script src="../js/logoutTest.js"></script>
</body>
</html>