/
index.html
231 lines (201 loc) · 6.81 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
.container {
width: 1000px;
margin: auto;
}
.content {
text-align: center;
/* border:2px solid red; */
}
header {
background-color: #6c5ce7;
}
.header p {
color: whitesmoke;
line-height: 50px;
font-size: 30px;
font-family: 'Courier New', Courier, monospace;
}
p {
text-align: center;
line-height: 1.5;
}
.box-area {
/* margin: auto; */
width: 100%;
padding: 1.5%;
column-count: 3;
column-gap: 50px;
/* border:2px solid black; */
}
.info-box {
width: 310px;
height: 500px;
border: 1px solid rgb(185, 170, 170);
border-radius: 10px;
text-align: center;
display: flex;
break-inside: avoid;
flex-flow: wrap row;
justify-content: center;
margin-bottom: 20px;
/* background-color: #ae0; */
overflow: hidden;
}
.info-box h3,
.info-box p {
text-align: center;
}
.info-box__img-wrap {
height: 15rem;
overflow: hidden;
}
.info-box img {
height: 100%;
}
.info-box button {
margin: auto;
background-color: #6c5ce7;
color: azure;
font-size: 14px;
/* font-family: 微軟正黑體; */
padding: 8px 40px;
margin-top: 20px;
/* justify-content: center; */
/* align-content: center; */
/* line-height: 100px; */
}
.content__select {
font-family: 微軟正黑體;
font-weight: 100;
color: #6c5ce7;
width: 250px;
text-align-last: center;
height: 50px;
font-size: 24px;
border: solid 1px #dbe0df;
border-top: none;
background-color: rgba(255, 255, 255, 0);
margin: 30px;
}
.paging__pages {
margin: 20px 0px;
display: inline-block;
width: 40px;
height: 40px;
cursor: pointer;
line-height: 40px;
color: #6c5ce7;
}
.paging__pages--active {
border-radius: 100%;
color: #fff;
background-color: #6c5ce7;
}
.modal {
/* z-index: 3; */
display: none;
padding: 50px 0px;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.4);
animation: opac 0.8s;
letter-spacing: 2px;
}
.modal__container {
margin: auto;
background-color: #fff;
position: relative;
padding: 0;
outline: 0;
max-width: 600px;
}
.modal__header {
color: #fff;
/* background-color: #42ab9e; */
padding: 10px;
text-align: center;
}
.button { cursor: pointer; }
#map {
height: 400px;
/* The height is 400 pixels */
width: 100%;
/* The width is the width of the web page */
}
@media screen and (max-width: 767px) {}
</style>
</head>
<body>
<header class="container-header">
<div class="header">
<p class="header__title">臺北市-觀光景點</p>
<p class="header__desc">Javascript & CSS 練習</p>
</div>
</header>
<div class="container">
<div class="content">
<select class="content__select" id="select-area"></select>
<div class="box-area"></div>
<div class="paging"></div>
<div class="modal">
<div class="modal__container">
<header class="modal__header">
<span class="button button--close">×</span>
<h2 class="view-title">Modal Header</h2>
</header>
<div class="modal__body">
<!-- <img src="" alt="" class="modal__img view-img"> -->
<div id="map"></div>
<!-- <script>
// function initMap() {
// // The location of Uluru
// var uluru = { lat: -25.344, lng: 131.036 };
// // The map, centered at Uluru
// var map = new google.maps.Map(
// document.getElementById('map'), { zoom: 4, center: uluru });
// // The marker, positioned at Uluru
// var marker = new google.maps.Marker({ position: uluru, map: map });
// }
</script> -->
<!-- <p><b>景點介紹:</b><p> -->
<p class="view-content"></p>
<p><b>地址:</b><span class="view-add"></span><p>
<!-- <p><b>電話:</b><span class="view-tel"></span><p> -->
<!-- <p><b>開放時間:</b><span class="view-time"></span><p> -->
<p><b>鄰近捷運站:</b><span class="view-MRT"></span>
<p>
<!-- <p><b>交通資訊:</b><p> -->
<p class="view-info"></p>
</div>
<footer class="modal__footer"></footer>
</div>
</div>
</div>
<footer class="footer">
<p class="copyright">資料來源:政府資料開放平臺</p>
<!-- <p class="copyright">Designed by GuaStudio.com 2017</p> -->
</footer>
</div>
<script src="js/loaddata.js"></script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=API_KEY&callback=initMap">
</script>
</body>
</html>