-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
206 lines (194 loc) · 4.8 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>서울생활인구 · Population by time in Seoul</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ=="
crossorigin=""/>
<link rel="stylesheet" href="./lib/nouislider.min.css">
<style>
html,body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
#map {
width: 100%;
height: 100%;
}
.github-link {
margin-top: -25px;
}
.github-link img{
width: 25px;
}
.f-left {
float: left;
}
.f-right {
float: right;
}
#play,#pause {
width: 60px;
}
button {
padding: 10px 5px;
margin-right: 5px;
border: 2px solid rgb(121, 119, 119);
font-weight: bold;
cursor: pointer;
}
#timeLabel {
margin-top: 5px;
}
.container, .whole-container, .tab-container {
width: 300px;
padding: 10px 20px 10px 20px;
background-color: rgba(255, 255, 255, 0.8);
}
button.toggle {
display: none;
}
@media only screen and (max-width: 768px) {
button.toggle {
display: block;
}
.container, .slider-container, .tab-container {
display: none;
}
}
.slider-wrapper {
margin-bottom: 40px;
}
/* noUISlider override */
.noUi-horizontal {
height: 10px;
}
.noUi-pips-horizontal {
height: 0;
}
.noUi-horizontal .noUi-handle {
height: 20px;
}
.noUi-handle:after, .noUi-handle:before {
content: none;
}
.noUi-connect {
background: #ccc;
outline: 1px solid #333;
}
.feature-table h5 {
margin: 0;
}
table .value {
float: right;
}
h1, h3 {
margin-top: 0;
font-size: 14px;
}
.time-h {
margin-right: 10px;
}
label {
font-size: 14px;
font-weight: 700;
}
.tab {
width: 25%;
display: inline-block;
float: left;
}
.tab.label {
width: auto;
font-size: 14px;
font-weight: 700;
padding-right: 10px;
}
.tab.resident {
width: 100%;
padding-top: 5px;
}
.legend.unit {
width: 100px;
float: left;
}
h4.legend-title {
margin-bottom: 5px;
}
.legend-box:before {
content: ' ';
width: 8px;
height: 8px;
float: left;
margin-right: 5px;
margin-top: 4px;
}
.legend-bar {
height: 30px;
width: 15px;
float: left;
margin-right: 5px;
}
.legend-bar.dong, .legend-bar.time_pop, .legend-box.t:before {
/* This is not really exactly representing the color, */
background-image: linear-gradient(to top, rgb(2, 126, 255), rgb(251, 0, 255));
}
.legend-bar.resident, .legend-box.r:before {
background-color: hsl(30, 80%, 50%);
}
.legend-bar.female, .legend-box.f:before {
background-color: rgb(294, 134, 65);
}
.legend-bar.male,.legend-box.m:before {
background-color: rgb(94, 60, 153);
}
.legend-bar.age0, .legend-box.a1:before {
background-color: #440154;
}
.legend-bar.age1,.legend-box.a2:before {
background-color: #414287;
}
.legend-bar.age2,.legend-box.a3:before {
background-color: #2a768e;
}
.legend-bar.age3,.legend-box.a4:before {
background-color: #21a585;
}
.legend-bar.age4,.legend-box.a5:before {
background-color: #70cf57;
}
.legend-bar.age5,.legend-box.a6:before {
background-color:#b0dd2f;
}
.sr-only {
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}
</style>
</head>
<body>
<div class="sr-only">
이 지도는 2019년 3월 4일부터 2019년 3월 10일까지, 1주일간 한시간 간격으로 각 행정지역마다의 생활인구를 성별, 연령대별로 정리하여 시각화한 지도입니다. 원본 데이터는 서울열린데이터광장 서울생활인구 페이지에서, 시각화를 위해 정리된 자료는 다음 링크를 통해서 다운로드 받을 수 있습니다.
<a href="http://data.seoul.go.kr/dataVisual/seoul/seoulLivingPopulation.do">서울열린데이터광장 생활인구 관련 페이지 가기</a>
<a href="https://raw.githubusercontent.com/hanbyul-here/seoul-population-by-time/master/data/20190304.csv">시각화를 위해 정리된 형태의 데이터 다운로드받기</a>
</div>
<div id="map">
</div>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw=="
crossorigin=""></script>
<script src="https://unpkg.com/[email protected]/dist/tangram.min.js"></script>
<script src="./lib/nouislider.min.js"></script>
<script src="./querystring.js"></script>
<script src="./bundle.js"></script>
</body>
</html>