-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhospital.html
342 lines (302 loc) · 16.9 KB
/
hospital.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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<!DOCTYPE html>
<html lang="en">
<head>
<title>AWAY COVID 19 </title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Prompt:300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style_hospital.css">
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@turf/turf@5/turf.min.js"></script>
<script src="https://momentjs.com/downloads/moment.js"></script>
<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<link rel="stylesheet" href="https://leaflet.github.io/Leaflet.markercluster/dist/MarkerCluster.css" />
<link rel="stylesheet" href="https://leaflet.github.io/Leaflet.markercluster/dist/MarkerCluster.Default.css" />
<script src="https://leaflet.github.io/Leaflet.markercluster/dist/leaflet.markercluster-src.js"></script>
<style>
.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
padding: 8px;
line-height: 1.42857143;
vertical-align: top;
border-top: 0px solid #ddd;
}
caption {
padding-top: 8px;
padding-bottom: 8px;
color: #000;
text-align: left;
font-size: 16px;
}
.custom-popup .leaflet-popup-content-wrapper a {
color:rgba(255,255,255,0.5);
}
.custom-popup .leaflet-popup-tip-container {
width:30px;
height:15px;
}
.custom-popup .leaflet-popup-tip {
border-left:15px solid transparent;
border-right:15px solid transparent;
border-top:15px solid #2c3e50;
}
</style> -->
</head>
<body>
<!-- <div class="alert alert-success alert_show"> <button type="button" class="close" data-dismiss="alert">x</button>
<strong>AWAY COVID 19 !</strong> ขอยืนยันว่า พวกเราไม่ได้ดักเก็บ ข้อมูลหรือหลอกแปลงข้อมูลใด ๆ ทั้งสิ้น
ข้อมูลทุกอย่างภายในแอปเราทำด้วยใจ สามารถเข้าไปดูข้อมูลเพิ่มเติมได้ที่ <a
href="http://mapedia.co.th/">MAPEDIA</a>
</div> -->
<div id="loading"></div>
<div class="card">
<div id="map"></div>
<div class="footer btn-group special" role="group" aria-label="..." id="app_vue">
<!--<button type="button" class="btn btn-default" onclick="get_loca()">
<i class="fa fa-compass" aria-hidden="true"></i> <br> ตำแหน่ง
</button>-->
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#search">
<i class="fa fa-search" aria-hidden="true"></i> <br> ค้นหาโรงพยาบาลที่ใกล้คุณ
</button>
<!-- <button type="button" id="case_btn" class="btn btn-default" data-toggle="modal" data-target="#list">
<i class="fa fa-exclamation-triangle" aria-hidden="true"></i><br> จุดระบาด/พื้นที่เสี่ยง
</button> -->
<button type="button" id="case_btn" class="btn btn-default" data-toggle="modal" data-target="#list">
<i class="fa fa-hospital-o" aria-hidden="true"></i><br> รายชื่อสถานพยาบาลที่ใกล้คุณ
</button>
<!-- <button type="button" class="btn btn-default" data-toggle="modal" data-target="#setting">
<i class="fa fa-cogs" aria-hidden="true"></i> <br> ตั้งค่าแผนที่
</button> -->
</div>
</div>
<!-- search -->
<div id="search" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"> <i class="fa fa-search" aria-hidden="true"></i> ค้นหาโรงพยาบาลที่ใกล้คุณ
</h4>
</div>
<div class="modal-body">
<form id="form_query">
<label for="">ค้นหาชื่อโรงพยาบาลที่ใกล้คุณ</label>
<fieldset>
<div class="form-group">
<select name="place" class="form-control" id="select_place">
</select>
</div>
<button type="submit" class="btn btn-warning btn-block">ค้นหา</button>
</fieldset>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">ปิด</button>
</div>
</div>
</div>
</div>
<!-- list -->
<div id="list" class="modal fade" role="dialog">
<div class="modal-dialog modal-dialog-scrollable" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"> <i class="fa fa-list-alt" aria-hidden="true"></i>
สถานพยาบาลที่ใกล้คุณในรัศมี 20 กิโลเมตร
</h4>
</div>
<div class="modal-body">
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#home">โรงพยาบาล</a></li>
<li><a data-toggle="tab" href="#menu4">สถานรับตรวจโรค Covid-19</a></li>
<li><a data-toggle="tab" href="#menu1">รพ.สต.</a></li>
<li><a data-toggle="tab" href="#menu2">คลีนิค</a></li>
<li><a data-toggle="tab" href="#menu3">ร้านยา</a></li>
</ul>
<div class="tab-content">
<div id="home" class="tab-pane fade in active table_view">
<table class="table table-striped ">
<thead>
<tr>
<th width="40%">ชื่อโรงพยาบาล</th>
<th>ระยะทาง</th>
<th>เส้นทาง</th>
<th>ข้อมูลเพิ่มเติม</th>
<th></th>
</tr>
</thead>
<tbody id="tabel_data">
</tbody>
</table>
</div>
<div id="menu1" class="tab-pane fade table_view">
<div class="scrollit">
<table class="table table-striped ">
<thead>
<tr>
<th width="40%">ชื่อรพ.สต.</th>
<th>ระยะทาง</th>
<th>เส้นทาง</th>
<th>ข้อมูลเพิ่มเติม</th>
<th></th>
</tr>
</thead>
<tbody id="tabel_rpst">
</tbody>
</table>
</div>
</div>
<div id="menu2" class="tab-pane fade table_view">
<div class="scrollit">
<table class="table table-striped ">
<thead>
<tr>
<th width="40%">ชื่อคลีนิค</th>
<th>ระยะทาง</th>
<th>เส้นทาง</th>
<th>ข้อมูลเพิ่มเติม</th>
<th></th>
</tr>
</thead>
<tbody id="tabel_clinic">
</tbody>
</table>
</div>
</div>
<div id="menu3" class="tab-pane fade table_view">
<div class="scrollit">
<table class="table table-striped ">
<thead>
<tr>
<th width="40%">ชื่อร้านยา</th>
<th>ระยะทาง</th>
<th>เส้นทาง</th>
<th>ข้อมูลเพิ่มเติม</th>
<th></th>
</tr>
</thead>
<tbody id="tabel_medicine">
</tbody>
</table>
</div>
</div>
<div id="menu4" class="tab-pane fade table_view">
<div class="scrollit">
<table class="table table-striped ">
<thead>
<tr>
<th width="40%">ชื่อร้านยา</th>
<th>ระยะทาง</th>
<th>เส้นทาง</th>
<th>ข้อมูลเพิ่มเติม</th>
<th></th>
</tr>
</thead>
<tbody id="tabel_medicine">
</tbody>
</table>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">ปิด</button>
</div>
</div>
</div>
</div>
</div>
<!-- setting -->
<div id="setting" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"><i class="fa fa-cogs" aria-hidden="true"></i> ตั้งค่าแผนที่</h4>
</div>
<div class="modal-body ">
<form id="form_setting">
<fieldset>
<div class="form-group">
<label for="exampleSelect1">กำหนดรัศมี (km)</label>
<select class="form-control" id="exampleSelect1" name="radius">
<option value="1">1 km</option>
<option value="3">3 km</option>
<option value="5">5 km</option>
<option value="10" selected>10 km</option>
<option value="15">15 km</option>
<option value="30">30 km</option>
<option value="60">60 km</option>
<option value="90">90 km</option>
</select>
</div>
</fieldset>
<!-- <fieldset>
<label for="exampleSelect1">การแสดงชั้นข้อมูล</label>
<div class="form-group">
<input type="checkbox" data-size="mini" data-onstyle="warning" name="toggle_2" checked
data-toggle="toggle" id="toggle-1">
<img src="img/ico_flagblue.png" width="30px"> <small class="prompt">
ตำแหน่งร้านค้าธงฟ้า</small>
<div class="form-group">
<input type="checkbox" data-size="mini" data-onstyle="warning" name="toggle_1" checked
data-toggle="toggle" id="toggle-2">
<img src="img/ico_shopping.png" width="30px"> <small class="prompt">
ตำแหน่งห้างสรรพสินค้า</small>
</div>
</div>
</fieldset> -->
<fieldset>
<div class="form-group">
<div class="col-xs-12">
<label for="exampleSelect1">เลือก Basemap</label>
</div>
<div class="col-xs-4 text-center">
<label>
<input type="radio" name="basemap" value="base1" checked>
<img src="img/base1.png" width="100%">
</label>
</div>
<div class="col-xs-4 text-center">
<label>
<input type="radio" name="basemap" value="base2">
<img src="img/base2.png" width="100%">
</label>
</div>
<div class="col-xs-4 text-center">
<label>
<input type="radio" name="basemap" value="base4">
<img src="img/base4.png" width="100%">
</label>
</div>
</div>
</fieldset>
<button type="submit" class="btn btn-warning btn-block">บันทึกการตั้งค่า</button>
<hr>
<small> อัพเดตข้อมูลล่าสุดวันที่ : 2020-04-08</small>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">ปิด</button>
</div>
</div>
</div>
</div>
<script src="js/geojson_clinic.js"></script>
<script src="js/geojson_medicine.js"></script>
<script src="js/geojson_rpst.js"></script>
<script src="js/geojson_health.js"></script>
<script src="js/labcovid.js"></script>
<script src="https://static.line-scdn.net/liff/edge/2.1/sdk.js"></script>
<script src="js/app_hospital.js"></script>
</body>
</html>