-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmap.html
304 lines (294 loc) · 11.8 KB
/
map.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
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<!DOCTYPE html>
<html lang="ko">
<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://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.10/clipboard.min.js"></script>
<title>삐용</title>
<!-- <link rel="stylesheet" href="/css/config.css" /> -->
<link rel="stylesheet" href="/css/map.css" />
</head>
<body>
<!--header-->
<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" class="font-bold">
<a href="https://page.ppiyong.shop/map.html">주변 대피소</a>
<div class="under-nav bg-mySky p-1 h-3 border-b-4 border-yellow-300 border-7"></div>
</button>
<button id="checklist-href ">
<a href="https://page.ppiyong.shop/checklist.html">체크리스트</a>
<div
class="bg-mySky p-1 h-3"
></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>
<!--main-->
<div class="bg-gray-50" id="main">
<div class="ml-5 mr-5 mb-5 mt-2">
<div class="address">
<div class="font-bold text-2xl" id="current_city">현재 지역</div>
<div class="text-lg mt-1">주변 대피소를 확인해보세요.</div>
</div>
<div class="choice flex mb-2 mt-2 mb-1">
<button
id="all" onclick="go()"
class="h-8 bg-gray-600 item-center rounded-full text-xs px-4 p-2 text-white font-bold"
>
전체
</button>
<button
id="earth" onclick="earthquake()"
class="h-8 bg-yellow-600 item-center rounded-full text-xs ml-5 px-4 p-2 text-white font-bold"
>
지진/해일
</button>
<button
id="civil" onclick="civil()"
class="h-8 bg-red-400 item-center rounded-full text-xs ml-5 px-4 p-2 text-white font-bold"
>
민방위
</button>
</div>
<div id="map" style="width: 100%; height: 72vh"></div>
</div>
<div id="modal" class="bg-white">
<div class="content_map">
<div class="ml-auto">
<button class="p-2">
<svg
xmlns="http://www.w3.org/2000/svg"
width="14"
height="14"
viewBox="0 0 14 14"
fill="none"
>
<path
d="M1 1L13 13M1 13L13 1L1 13Z"
stroke="#3F3F46"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
</button>
</div>
<div id="name" class="ml-5 text-2xl font-bold mb-2"></div>
<div id="value">
<button id="category_btn" class="h-8 bg-black">
제발 나와줘 ㅜㅜ
</button>
</div>
<div id="address">
<div class="flex ml-5 mb-5">
<div id="textArea" class="mt-1"></div>
<button
id="btn"
data-clipboard-target="#textArea"
class="ml-2 p-1 rounded bg-gray-600 text-white text-sm pl-2 pr-2 pt-1 pb-1"
>
복사
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script
async
defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB12bgQnvBrc0Hwuztjrqpxvv7vEHvcf0U"
></script>
<script
type="text/javascript"
src="//dapi.kakao.com/v2/maps/sdk.js?appkey=122a12ac53dfd9ece5eb472180241e53"
></script>
<script src="../js/isLoggedin.js"></script>
<!-- <script src="../js/ymap.js"></script> -->
<script src="../js/mmap.js"></script>
</body>
</html>