서준혁

Add district, festival selector

This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 <script> 1 <script>
2 - import Menu from './Menu.svelte' 2 + import Menu from './Menu.svelte';
3 - import Backtotop from './Side/Backtotop.svelte' 3 + import Backtotop from './SideItems/Backtotop.svelte';
4 - import Map from './Map.svelte' 4 + import Map from './Map.svelte';
5 - import Article from './Articles.svelte' 5 + import Article from './Articles.svelte';
6 - import Festalist from './Side/Festalist.svelte'; 6 + import { AllFestas } from './Stores/AllFestas';
7 - import Areaset from './Side/Areaset.svelte'; 7 + import jQuery from 'jquery';
8 + import { DisplayedFestas } from './Stores/DisplayedFestas';
9 +
10 + function LoadFestas() {
11 + let url = "http://api.visitkorea.or.kr/openapi/service/rest/KorService/areaBasedList?ServiceKey=2lFkvQJYgzOOhwUKiUt8aZVNpd1PpBOf%2FfMNW17cl25DE0GUEDddeR9iGnuSUpggjUoIUgamfhcvnKQ3eH1dAw%3D%3D&contentTypeId=15&areaCode=&sigunguCode=&cat1=&cat2=&cat3=&listYN=Y&MobileOS=ETC&MobileApp=TourAPI3.0_Guide&arrange=A&numOfRows=12&pageNo=1&_type=json";
12 + jQuery.getJSON(url, (json) => {
13 + AllFestas.set(json.response.body.items.item);
14 + });
15 + }
8 </script> 16 </script>
9 17
10 <style> 18 <style>
...@@ -29,10 +37,9 @@ ...@@ -29,10 +37,9 @@
29 37
30 </style> 38 </style>
31 39
40 +<svelte:window on:load|once={LoadFestas}></svelte:window>
32 <div> 41 <div>
33 <Menu/> 42 <Menu/>
34 - <Festalist/>
35 - <Areaset/>
36 <Map/> 43 <Map/>
37 <Backtotop/> 44 <Backtotop/>
38 <Article/> 45 <Article/>
......
1 +export let COORDINATES = {
2 + "미선택" : {
3 + "미선택" : [ 127.46862435619565, 36.003837243591676, 13 ]
4 + },
5 + "서울특별시" : {
6 + "미선택" : [ 126.95401910605827, 37.53467856968404, 9],
7 + "종로구" : [ 126.9773171, 37.59492045, 7],
8 + "중구" : [ 126.9959683, 37.56014287, 7],
9 + "용산구" : [ 126.9799076, 37.53138556, 7],
10 + "성동구" : [ 127.0410588, 37.55103004, 7],
11 + "광진구" : [ 127.0857458, 37.54672166, 7],
12 + "동대문구" : [ 127.0548482, 37.58195725, 7],
13 + "중랑구" : [ 127.0928839, 37.59781902, 7],
14 + "성북구" : [ 127.0175783, 37.60570143, 7],
15 + "강북구" : [ 127.0111848, 37.64347732, 7],
16 + "도봉구" : [ 127.032367, 37.66910528, 7],
17 + "노원구" : [ 127.0750336, 37.65251633, 7],
18 + "은평구" : [ 126.9270283, 37.61921535, 7],
19 + "서대문구" : [ 126.9390632, 37.57778646, 7],
20 + "마포구" : [ 126.908264, 37.55931222, 7],
21 + "양천구" : [ 126.8554792, 37.52478964, 7],
22 + "강서구" : [ 126.8228036, 37.56123594, 7],
23 + "구로구" : [ 126.8563021, 37.49440412, 7],
24 + "금천구" : [ 126.9008177, 37.46056912, 7],
25 + "영등포구" : [ 126.9101694, 37.52230985, 7],
26 + "동작구" : [ 126.9516402, 37.49887636, 7],
27 + "관악구" : [ 126.9453355, 37.46737656, 7],
28 + "서초구" : [ 127.0312084, 37.47329793, 7],
29 + "강남구" : [ 127.0629749, 37.49664584, 7],
30 + "송파구" : [ 127.1152911, 37.50562076, 7],
31 + "강동구" : [ 127.1470146, 37.55045136, 7]
32 + },
33 + "부산광역시" : {
34 + "미선택" : [ 129.0315402, 35.10547796 , 9],
35 + "중구" : [ 129.0315402, 35.10547796, 7],
36 + "서구" : [ 129.0149128, 35.10296452, 7],
37 + "동구" : [ 129.0445861, 35.1291866, 7],
38 + "영도구" : [ 129.0648202, 35.07865091, 7],
39 + "부산진구" : [ 129.0430601, 35.16524533, 7],
40 + "동래구" : [ 129.0792188, 35.20621201, 7],
41 + "남구" : [ 129.0940042, 35.12613858, 7],
42 + "북구" : [ 129.0234651, 35.22925311, 7],
43 + "해운대구" : [ 129.1535891, 35.19385742, 7],
44 + "사하구" : [ 128.9743481, 35.0893528, 7],
45 + "금정구" : [ 129.09153, 35.25889463, 7],
46 + "강서구" : [ 128.8924423, 35.13837168, 7],
47 + "연제구" : [ 129.0829344, 35.18241804, 7],
48 + "수영구" : [ 129.1111625, 35.16133249, 7],
49 + "사상구" : [ 128.9865939, 35.15803505, 7],
50 + "기장군" : [ 129.224475, 35.24135 , 7],
51 + },
52 + "대구광역시" : {
53 + "미선택" : [ 128.5936057, 35.86653525 , 9],
54 + "중구" : [ 128.5936057, 35.86653525, 7],
55 + "동구" : [ 128.6856499, 35.93444401, 7],
56 + "서구" : [ 128.5496976, 35.87500168, 7],
57 + "남구" : [ 128.5853297, 35.83517828, 7],
58 + "북구" : [ 128.5772056, 35.92892764, 7],
59 + "수성구" : [ 128.6612732, 35.83384974, 7],
60 + "달서구" : [ 128.529204, 35.82748641, 7],
61 + "달성군" : [ 128.4982969, 35.7596109, 7],
62 + },
63 + "인천광역시" : {
64 + "미선택" : [ 126.66832787491965, 37.45983498861199, 10],
65 + "중구" : [ 126.4828638, 37.46909379, 7],
66 + "동구" : [ 126.6395434, 37.48319411, 7],
67 + "미추홀구" : [ 126.6646576, 37.45259376, 7],
68 + "연수구" : [ 126.6494242, 37.39619493, 7],
69 + "남동구" : [ 126.7264666, 37.43135604, 7],
70 + "부평구" : [ 126.7212083, 37.49666082, 7],
71 + "계양구" : [ 126.7347032, 37.55729939, 7],
72 + "서구" : [ 126.6563686, 37.55783907, 7],
73 + "남구" : [ 126.6502972, 37.46369169, 7],
74 + "강화군" : [ 126.45730005738866, 37.68192191125021, 9],
75 + "옹진군" : [ 126.6388889, 37.443725 , 7],
76 + },
77 + "광주광역시" : {
78 + "미선택" : [ 126.9494622, 35.11738405, 9],
79 + "동구" : [ 126.9494622, 35.11738405, 7],
80 + "서구" : [ 126.8507245, 35.13569669, 7],
81 + "남구" : [ 126.8567385, 35.09405737, 7],
82 + "북구" : [ 126.9254668, 35.19324913, 7],
83 + "광산구" : [ 126.752903, 35.16504314, 7],
84 + },
85 + "대전광역시" : {
86 + "미선택" : [ 127.4750627, 36.32396534, 9],
87 + "동구" : [ 127.4750627, 36.32396534, 7],
88 + "중구" : [ 127.4110567, 36.28087229, 7],
89 + "서구" : [ 127.3451254, 36.28026323, 7],
90 + "유성구" : [ 127.333298, 36.37682167, 7],
91 + "대덕구" : [ 127.4401591, 36.41219042, 7],
92 + },
93 + "울산광역시" : {
94 + "미선택" : [ 129.3082427, 35.5710483, 9],
95 + "중구" : [ 129.3082427, 35.5710483, 7],
96 + "남구" : [ 129.3281901, 35.51605166, 7],
97 + "동구" : [ 129.4260695, 35.52558, 7],
98 + "북구" : [ 129.3798015, 35.6100624, 7],
99 + "울주군" : [ 129.1868265, 35.54669692, 7],
100 + },
101 + "세종특별자치시" : {
102 + "세종특별자치시" : [ 127.258722, 36.56072897, 9]
103 + },
104 + "경기도" : {
105 + "미선택" : [ 127.39154661008746, 37.427936253223265, 11],
106 + "수원시" : [ 127.0122222, 37.30101111, 9 ],
107 + "성남시" : [ 127.1477194, 37.44749167, 9 ],
108 + "의정부시" : [ 127.0684277, 37.73619293, 9 ],
109 + "안양시" : [ 126.9533556, 37.3897, 9 ],
110 + "부천시" : [ 126.7887094, 37.5042629, 9 ],
111 + "광명시" : [ 126.8646995, 37.44516419, 9 ],
112 + "평택시" : [ 126.9877522, 37.0118376 ],
113 + "동두천시" : [ 127.0779034, 37.91654298, 9 ],
114 + "안산시" : [ 126.8468194, 37.29851944, 9 ],
115 + "고양시" : [ 126.7770556, 37.65590833, 9 ],
116 + "과천시" : [ 127.0026802, 37.43384612, 9 ],
117 + "구리시" : [ 127.1312301, 37.59922784, 9 ],
118 + "남양주시" : [ 127.2436444, 37.66255685, 9 ],
119 + "오산시" : [ 127.0513236, 37.16329326, 9 ],
120 + "시흥시" : [ 126.7884122, 37.38940556, 9 ],
121 + "군포시" : [ 126.9211378, 37.34348472, 9 ],
122 + "의왕시" : [ 126.9896417, 37.36239655, 9 ],
123 + "하남시" : [ 127.205944, 37.5228201 ],
124 + "용인시" : [ 127.2038444, 37.23147778, 9 ],
125 + "파주시" : [ 126.8108037, 37.85624554, 9 ],
126 + "이천시" : [ 127.4809313, 37.2098301 ],
127 + "안성시" : [ 127.3027607, 37.03502502, 9 ],
128 + "김포시" : [ 126.6263868, 37.68179015, 9 ],
129 + "화성시" : [ 126.8748706, 37.16523209, 9 ],
130 + "광주시" : [ 127.3011721, 37.40312001, 9 ],
131 + "양주시" : [ 127.0011552, 37.80869566, 9 ],
132 + "포천시" : [ 127.2504236, 37.96989231, 9 ],
133 + "여주시" : [ 127.6156731, 37.30250497, 9 ],
134 + "가평군" : [ 127.450192, 37.81856681, 9 ],
135 + "양평군" : [ 127.5791946, 37.51803657, 9 ],
136 + "연천군" : [ 127.0770667, 38.09336389, 9 ],
137 + },
138 + "강원도" : {
139 + "미선택" : [ 127.12317975612937, 36.016711825127636, 11],
140 + "춘천시" : [ 127.7399546, 37.88984997, 9 ],
141 + "원주시" : [ 127.9295396, 37.30825853, 9 ],
142 + "강릉시" : [ 128.8322214, 37.70920125, 9 ],
143 + "동해시" : [ 129.055639, 37.50672984, 9 ],
144 + "태백시" : [ 128.9800625, 37.17236519, 9 ],
145 + "속초시" : [ 128.5195498, 38.1760275, 9 ],
146 + "삼척시" : [ 129.1674889, 37.44708611, 9 ],
147 + "홍천군" : [ 128.074507, 37.74486679, 9 ],
148 + "횡성군" : [ 128.0770646, 37.5091607, 9 ],
149 + "영월군" : [ 128.4999342, 37.20404507, 9 ],
150 + "평창군" : [ 128.4827677, 37.55699072, 9 ],
151 + "정선군" : [ 128.7390663, 37.37878577, 9 ],
152 + "철원군" : [ 127.398991, 38.23902719, 9 ],
153 + "화천군" : [ 127.6852023, 38.13843323, 9 ],
154 + "양구군" : [ 128.000222, 38.17567667, 9 ],
155 + "인제군" : [ 128.2647172, 38.06477754, 9 ],
156 + "고성군" : [ 128.4110731, 38.36284879, 9 ],
157 + "양양군" : [ 128.5949493, 38.00453158, 9 ],
158 + },
159 + "충청북도" : {
160 + "미선택" : [ 127.79255408173366, 36.77775337994217, 11],
161 + "청주시" : [ 127.5117306, 36.58399722, 9 ],
162 + "충주시" : [ 127.8955587, 37.01523811, 9 ],
163 + "제천시" : [ 128.1409071, 37.06007228, 9 ],
164 + "보은군" : [ 127.7293296, 36.48995371, 9 ],
165 + "옥천군" : [ 127.6565891, 36.32045893, 9 ],
166 + "영동군" : [ 127.8142658, 36.15967356, 9 ],
167 + "증평군" : [ 127.6046043, 36.78649107, 9 ],
168 + "진천군" : [ 127.4404342, 36.87102031, 9 ],
169 + "괴산군" : [ 127.8295825, 36.76968609, 9 ],
170 + "음성군" : [ 127.6141838, 36.97625907, 9 ],
171 + "단양군" : [ 128.3878861, 36.99451168, 9 ],
172 + },
173 + "충청남도" : {
174 + "미선택" : [ 127.35233920735703, 36.45690483533581, 11],
175 + "천안시" : [ 127.1524667, 36.804125, 9 ],
176 + "공주시" : [ 127.0751478, 36.47990652, 9 ],
177 + "보령시" : [ 126.5942136, 36.34031922, 9 ],
178 + "아산시" : [ 126.980082, 36.80735134, 9 ],
179 + "서산시" : [ 126.463562, 36.78409691, 9 ],
180 + "당진시" : [ 126.6302528, 36.89075 , 9 ],
181 + "논산시" : [ 127.1577061, 36.19090514, 9 ],
182 + "계룡시" : [ 127.2344204, 36.29160368, 9 ],
183 + "금산군" : [ 127.4782928, 36.11903032, 9 ],
184 + "서천군" : [ 126.7049244, 36.10661218, 9 ],
185 + "청양군" : [ 126.853086, 36.43059194, 9 ],
186 + "홍성군" : [ 126.6258234, 36.57009036, 9 ],
187 + "예산군" : [ 126.7842651, 36.67064001, 9 ],
188 + "태안군" : [ 126.2808032, 36.70386085, 9 ],
189 + "부여군" : [ 126.9118639, 36.27282222, 9 ],
190 + },
191 + "전라북도" : {
192 + "미선택" : [ 127.07737136324491, 35.63605805905352, 11],
193 + "전주시" : [ 127.1219194, 35.80918889, 9 ],
194 + "익산시" : [ 126.989503, 36.02314348, 9 ],
195 + "정읍시" : [ 126.9058697, 35.6026358, 9 ],
196 + "남원시" : [ 127.4419364, 35.42253429, 9 ],
197 + "군산시" : [ 126.7388444, 35.96464167, 9 ],
198 + "김제시" : [ 126.8948294, 35.80671465, 9 ],
199 + "완주군" : [ 127.2152214, 35.91876217, 9 ],
200 + "진안군" : [ 127.4300802, 35.82889325, 9 ],
201 + "무주군" : [ 127.7129494, 35.93937729, 9 ],
202 + "장수군" : [ 127.5443403, 35.65753552, 9 ],
203 + "임실군" : [ 127.2366564, 35.5982329, 9 ],
204 + "순창군" : [ 127.0900463, 35.43362681, 9 ],
205 + "고창군" : [ 126.6160791, 35.44819175, 9 ],
206 + "부안군" : [ 126.6444614, 35.67792233, 9 ],
207 + },
208 + "전라남도" : {
209 + "미선택" : [ 126.9842629432299, 34.805397241331605, 11],
210 + "목포시" : [ 126.3918464, 34.80376301, 9 ],
211 + "여수시" : [ 127.6535295, 34.69839004, 9 ],
212 + "순천시" : [ 127.3891379, 34.99477437, 9 ],
213 + "나주시" : [ 126.7204163, 34.98859351, 9 ],
214 + "광양시" : [ 127.6551052, 35.02193047, 9 ],
215 + "담양군" : [ 126.9952608, 35.29155078, 9 ],
216 + "곡성군" : [ 127.2635431, 35.21663483, 9 ],
217 + "구례군" : [ 127.5030878, 35.23679742, 9 ],
218 + "고흥군" : [ 127.3146561, 34.59855727, 9 ],
219 + "보성군" : [ 127.1621881, 34.81440563, 9 ],
220 + "화순군" : [ 127.0335393, 35.00825383, 9 ],
221 + "장흥군" : [ 126.9215255, 34.67668231, 9 ],
222 + "강진군" : [ 126.7721471, 34.62048424, 9 ],
223 + "영암군" : [ 126.6307699, 34.79957499, 9 ],
224 + "무안군" : [ 126.4257885, 34.95327665, 9 ],
225 + "함평군" : [ 126.5356108, 35.11269517, 9 ],
226 + "영광군" : [ 126.4531334, 35.27849439, 9 ],
227 + "장성군" : [ 126.7685691, 35.32960098, 9 ],
228 + "완도군" : [ 126.7769747, 34.29559715, 9 ],
229 + "진도군" : [ 126.2151837, 34.43942431, 9 ],
230 + "신안군" : [ 126.0495583, 34.81262298, 9 ],
231 + "해남군" : [ 126.6012889, 34.57043611, 9 ],
232 + },
233 + "경상북도" : {
234 + "미선택" : [ 128.81204394329464, 36.353709379365114, 11],
235 + "포항시" : [ 129.3616667, 36.00568611, 9 ],
236 + "경주시" : [ 129.235873, 35.826691, 9 ],
237 + "김천시" : [ 128.0778448, 36.06051569, 9 ],
238 + "안동시" : [ 128.7800407, 36.58030946, 9 ],
239 + "구미시" : [ 128.3554644, 36.20734109, 9 ],
240 + "영주시" : [ 128.5976539, 36.87055896, 9 ],
241 + "영천시" : [ 128.9426073, 36.01581613, 9 ],
242 + "상주시" : [ 128.0669903, 36.42955021, 9 ],
243 + "문경시" : [ 128.1486973, 36.69080984, 9 ],
244 + "경산시" : [ 128.809053, 35.83410302, 9 ],
245 + "군위군" : [ 128.6481186, 36.17011731, 9 ],
246 + "의성군" : [ 128.6149052, 36.36201086, 9 ],
247 + "청송군" : [ 129.0574327, 36.35707112, 9 ],
248 + "영양군" : [ 129.145057, 36.69647487, 9 ],
249 + "영덕군" : [ 129.3173817, 36.48249776, 9 ],
250 + "청도군" : [ 128.7865755, 35.67292328, 9 ],
251 + "고령군" : [ 128.3067568, 35.73721147, 9 ],
252 + "성주군" : [ 128.233394, 35.90724515, 9 ],
253 + "칠곡군" : [ 128.4625866, 36.01551093, 9 ],
254 + "예천군" : [ 128.4224645, 36.65391037, 9 ],
255 + "봉화군" : [ 128.9129168, 36.93415717, 9 ],
256 + "울진군" : [ 129.312205, 36.90408324, 9 ],
257 + "울릉군" : [ 130.8641677, 37.50196388, 9 ],
258 + },
259 + "경상남도" : {
260 + "미선택" : [ 128.53769042792499, 35.44400982880079, 11],
261 + "창원시" : [ 128.6401544, 35.2540033 , 9 ],
262 + "진주시" : [ 128.1297644, 35.20514752 , 9 ],
263 + "통영시" : [ 128.3741039, 34.8294728 , 9 ],
264 + "사천시" : [ 128.0376567, 35.04971902 , 9 ],
265 + "김해시" : [ 128.8452254, 35.27216917 , 9 ],
266 + "밀양시" : [ 128.7896424, 35.49850039 , 9 ],
267 + "거제시" : [ 128.6231604, 34.8704778 , 9 ],
268 + "양산시" : [ 129.0410367, 35.40190499 , 9 ],
269 + "의령군" : [ 128.2771012, 35.39245631 , 9 ],
270 + "함안군" : [ 128.430905, 35.29101218 , 9 ],
271 + "창녕군" : [ 128.4930122, 35.50827649 , 9 ],
272 + "고성군" : [ 128.2906976, 35.01630929 , 9 ],
273 + "남해군" : [ 127.9411169, 34.81831061 , 9 ],
274 + "하동군" : [ 127.7789218, 35.13838231 , 9 ],
275 + "산청군" : [ 127.8843644, 35.36863784 , 9 ],
276 + "함양군" : [ 127.7220744, 35.55172723 , 9 ],
277 + "거창군" : [ 127.9041319, 35.73261316 , 9 ],
278 + "합천군" : [ 128.1415535, 35.57666246 , 9 ],
279 + },
280 + "제주특별자치도" : {
281 + "미선택" : [ 126.5808984756216, 33.357067644200384, 10],
282 + "제주시" : [ 126.5294524, 33.44212371, 9 ],
283 + "서귀포시" : [ 126.5812981, 33.32493064, 9 ],
284 + }
285 +}
...\ No newline at end of file ...\ No newline at end of file
1 +export let DISTRICTS = {
2 + "name": "korea-administrative-district",
3 + "version": "20160125",
4 + "url": "https://github.com/cosmosfarm/korea-administrative-district",
5 + "data":[
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 +}
...\ No newline at end of file ...\ No newline at end of file
...@@ -21,15 +21,21 @@ ...@@ -21,15 +21,21 @@
21 </style> 21 </style>
22 22
23 <script> 23 <script>
24 - import jQuery from 'jquery'; 24 + import Info from './SideItems/Info.svelte';
25 - import Info from './Side/Info.svelte'; 25 + import Festalist from './SideItems/Festalist.svelte';
26 + import Arealist from './SideItems/Arealist.svelte';
27 + import { COORDINATES } from "./Data/coordinates";
28 + import { DisplayedFestas } from "./Stores/DisplayedFestas";
26 29
27 var {kakao} = window; 30 var {kakao} = window;
28 - var url = "http://api.visitkorea.or.kr/openapi/service/rest/KorService/areaBasedList?ServiceKey=2lFkvQJYgzOOhwUKiUt8aZVNpd1PpBOf%2FfMNW17cl25DE0GUEDddeR9iGnuSUpggjUoIUgamfhcvnKQ3eH1dAw%3D%3D&contentTypeId=15&areaCode=&sigunguCode=&cat1=&cat2=&cat3=&listYN=Y&MobileOS=ETC&MobileApp=TourAPI3.0_Guide&arrange=A&numOfRows=12&pageNo=1&_type=json";
29 31
30 - let ShowInfo = false; 32 + var ShowArea = false;
31 - let Festa = {}; 33 + var ShowFesta = false;
32 - var markers= []; 34 + var ShowInfo = false;
35 +
36 + var Festa = {};
37 + var markers = [];
38 + var infowindows = [];
33 var map; 39 var map;
34 40
35 function createMap() { 41 function createMap() {
...@@ -42,15 +48,21 @@ ...@@ -42,15 +48,21 @@
42 48
43 markers= []; 49 markers= [];
44 map = new kakao.maps.Map(mapContainer, mapOption); // 카카오 지도 50 map = new kakao.maps.Map(mapContainer, mapOption); // 카카오 지도
45 -
46 - // 임시로 관광공사에서 JSON 직접 불러와서 하는 중
47 - jQuery.getJSON(url, (json) => {drawMarkers( json.response.body.items.item )});
48 } 51 }
49 52
53 + $: drawMarkers($DisplayedFestas);
50 54
51 function drawMarkers (data) { 55 function drawMarkers (data) {
52 let len = data.length >= 9 ? 9 : data.length; 56 let len = data.length >= 9 ? 9 : data.length;
53 57
58 + markers.forEach( mk => {
59 + mk.setMap(null);
60 + });
61 + infowindows.forEach( iw => {
62 + iw.close();
63 + });
64 + markers, infowindows = [], [];
65 +
54 for(var i = 0; i < len; i++){ 66 for(var i = 0; i < len; i++){
55 // 지도에 마커를 생성하고 표시한다 67 // 지도에 마커를 생성하고 표시한다
56 let marker = new kakao.maps.Marker({ 68 let marker = new kakao.maps.Marker({
...@@ -58,7 +70,10 @@ ...@@ -58,7 +70,10 @@
58 map: map // 마커를 표시할 지도 객체 70 map: map // 마커를 표시할 지도 객체
59 }); 71 });
60 72
61 - markers.push(marker); 73 + let infowindow = new kakao.maps.InfoWindow({
74 + content : '<div style="padding:5px;white-space:nowrap;">' + data[i].title + '</div>' // 인포윈도우에 표시할 내용
75 + });
76 + infowindow.open(map, marker);
62 77
63 // 마커 클릭 시 이벤트 78 // 마커 클릭 시 이벤트
64 let showInfo = function(festa) { 79 let showInfo = function(festa) {
...@@ -68,22 +83,31 @@ ...@@ -68,22 +83,31 @@
68 console.log(Festa); 83 console.log(Festa);
69 } 84 }
70 }; 85 };
86 + kakao.maps.event.addListener(marker, 'click', showInfo(data[i]));
87 + infowindows.push(infowindow);
88 + markers.push(marker);
71 89
72 - kakao.maps.event.addListener(markers[i], 'click', showInfo(data[i]));
73 }; 90 };
74 -
75 - // 마커 위에 표시할 인포윈도우를 생성한다
76 - for(var i = 0; i<9;i++) { // 왜 9까지 밖에 안되누 ㅠㅠ
77 - let infowindow = new kakao.maps.InfoWindow({
78 - content : '<div style="padding:5px;">' + data[i].title + '</div>' // 인포윈도우에 표시할 내용
79 - });
80 - infowindow.open(map, markers[i]);
81 - }
82 } 91 }
92 +
93 + function moveTo(district, city) {
94 + let [x, y, level] = COORDINATES[district][city];
95 + var moveLatLon = new kakao.maps.LatLng(y, x);
96 + map.setLevel(level);
97 + map.panTo(moveLatLon);
98 + }
99 +
100 + function closeBars() {
101 + ShowArea = false;
102 + ShowFesta = false;
103 + ShowInfo = false;
104 + }
105 +
83 </script> 106 </script>
84 107
85 <svelte:window on:load={createMap}></svelte:window> 108 <svelte:window on:load={createMap}></svelte:window>
86 - 109 +<Festalist bind:sidebar_show={ShowFesta}/>
110 +<Arealist bind:sidebar_show={ShowArea} {moveTo}/>
87 <Info bind:sidebar_show={ShowInfo} bind:festa={Festa}/> 111 <Info bind:sidebar_show={ShowInfo} bind:festa={Festa}/>
88 <div id="map_bg"> 112 <div id="map_bg">
89 <div id="map"></div> 113 <div id="map"></div>
......
1 -<script>
2 - import { fly } from 'svelte/transition'
3 - import SideBar from './SideBar.svelte';
4 - let show = true;
5 - let sidebar_show = false;
6 -
7 - function showBar() {
8 - sidebar_show = !sidebar_show;
9 - }
10 -
11 - function hide() {
12 - if (window.scrollY < 400) {
13 - show = true
14 - } else {
15 - show = false
16 - }
17 - }
18 -
19 -</script>
20 -
21 -<style>
22 - .sidebtn {
23 - border-radius: 5px;
24 - border: 0px;
25 - width: 70px;
26 - height: 70px;
27 - position: fixed;
28 - left: -20px;
29 - top: 18.5%;
30 - padding-right: 10px;
31 - text-align: right;
32 - background-color: #b71c1c;
33 - color: #ffffff;
34 - }
35 -
36 - .sidebtn:focus {
37 - background-color: #ef5350;
38 - }
39 -
40 - .sidebtn:hover {
41 - background-color: #d32f2f;
42 - }
43 -
44 -</style>
45 -
46 -<svelte:window on:scroll={hide}></svelte:window>
47 -
48 -{#if (show)}
49 - <button class="sidebtn"
50 - transition:fly="{{ x : -50, duration : 400}}"
51 - on:click={showBar}>
52 - 지역<br>선택
53 - </button>
54 - <SideBar bind:show={sidebar_show}>
55 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
56 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
57 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
58 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
59 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
60 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
61 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
62 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
63 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
64 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
65 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
66 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
67 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
68 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
69 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
70 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
71 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
72 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
73 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
74 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
75 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
76 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
77 - 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br> 지역선택!<br>
78 - </SideBar>
79 -{/if}
...\ No newline at end of file ...\ No newline at end of file
1 -<script>
2 - import { fly } from 'svelte/transition'
3 - import SideBar from './SideBar.svelte';
4 - let show = true;
5 - let sidebar_show = false;
6 -
7 - function showBar() {
8 - sidebar_show = !sidebar_show;
9 - }
10 -
11 - function hide() {
12 - if (window.scrollY < 400) {
13 - show = true
14 - } else {
15 - show = false
16 - }
17 - }
18 -
19 -</script>
20 -
21 -<style>
22 - .sidebtn {
23 - border-radius: 5px;
24 - border: 0px;
25 - width: 70px;
26 - height: 70px;
27 - position: fixed;
28 - left: -20px;
29 - top: 10%;
30 - padding-right: 10px;
31 - text-align: right;
32 - background-color: #e65100;
33 - color: #ffffff;
34 - }
35 -
36 - .sidebtn:focus {
37 - background-color: #f57c00;
38 - }
39 -
40 - .sidebtn:hover {
41 - background-color: #ef6c00;
42 - }
43 -
44 -</style>
45 -
46 -<svelte:window on:scroll={hide}></svelte:window>
47 -
48 -{#if (show)}
49 - <button class="sidebtn"
50 - transition:fly="{{ x : -50, duration : 400}}"
51 - on:click={showBar}>
52 - 행사<br>목록
53 - </button>
54 - <SideBar bind:show={sidebar_show}>행사목록!</SideBar>
55 -{/if}
...\ No newline at end of file ...\ No newline at end of file
1 +<script>
2 + import { fly } from 'svelte/transition'
3 + import SideBar from './SideBar.svelte';
4 + var icon_show = true;
5 + var sidebar_show = false;
6 +
7 + function showBar() {
8 + sidebar_show = true;
9 + }
10 +
11 + function hide() {
12 + if (window.scrollY < 400) {
13 + icon_show = true;
14 + } else {
15 + icon_show = false;
16 + sidebar_show = false;
17 + }
18 + }
19 +
20 + import { DISTRICTS } from '../Data/district'
21 + import { District, City, Changed } from '../Stores/DistrictStore'
22 +
23 + export var moveTo;
24 +
25 + let curDisrict = {"미선택" : ["미선택"]};
26 + let curCity = "미선택";
27 +
28 + $: if(Object.keys(curDisrict)[0] != "미선택") {
29 + District.set(Object.keys(curDisrict)[0]);
30 + } else {
31 + District.set("");
32 + };
33 +
34 + $: if(curCity != "미선택") {
35 + City.set(curCity);
36 + } else {
37 + City.set("");
38 + }
39 +
40 + function setDistrict(district) {
41 + curDisrict = district;
42 + if(Object.keys(curDisrict)[0] == "세종특별자치시")
43 + curCity = "세종특별자치시";
44 + else
45 + curCity = "미선택";
46 + moveTo(Object.keys(curDisrict)[0], curCity);
47 + Changed.set(true);
48 + }
49 +
50 + function setCity(city) {
51 + curCity = city;
52 + moveTo(Object.keys(curDisrict)[0], curCity);
53 + Changed.set(true);
54 + }
55 +
56 +</script>
57 +
58 +<style>
59 + .sidebtn {
60 + border-radius: 5px;
61 + border: 0px;
62 + width: 70px;
63 + height: 70px;
64 + position: fixed;
65 + left: -20px;
66 + top: 120px;
67 + padding-right: 10px;
68 + text-align: right;
69 + background-color: #b71c1c;
70 + color: #ffffff;
71 + box-shadow: 0 10px 20px rgb(0 0 0 / 15%);
72 + }
73 +
74 + .sidebtn:focus {
75 + background-color: #ef5350;
76 + }
77 +
78 + .sidebtn:hover {
79 + background-color: #d32f2f;
80 + }
81 +
82 + .areas {
83 + display: flex;
84 + border-bottom: #999999 solid 1px;
85 + width: 100%;
86 + flex-wrap: wrap;
87 + justify-content: space-evenly;
88 + }
89 +
90 + .areatitle {
91 + display: inline-block;
92 + text-align:center;
93 + width: 200px;
94 + }
95 +
96 + .district {
97 + display: inline-block;
98 + text-align:center;
99 + width: 125px;
100 + margin: 5px;
101 + border: 1px solid black;
102 + border-radius: 5px;
103 + padding-top: 5px;
104 + padding-bottom: 5px;
105 + }
106 +
107 + .district:hover {
108 + background-color: #ffebee;
109 + }
110 +
111 + .district:focus {
112 + background-color: #ffcdd2;
113 + }
114 +
115 + .district.selected{
116 + background-color: #ffcdd2;
117 + }
118 +
119 + .city {
120 + display: inline-block;
121 + text-align:center;
122 + width: 125px;
123 + margin: 5px;
124 + border: 1px solid black;
125 + border-radius: 5px;
126 + padding-top: 5px;
127 + padding-bottom: 5px;
128 + }
129 +
130 + .city:hover {
131 + background-color: #ffebee;
132 + }
133 +
134 + .city:focus {
135 + background-color: #ffcdd2;
136 + }
137 +
138 + .city.selected{
139 + background-color: #ffcdd2;
140 + }
141 +
142 +</style>
143 +
144 +<svelte:window on:scroll={hide}></svelte:window>
145 +
146 +{#if (icon_show)}
147 + <button class="sidebtn"
148 + transition:fly="{{ x : -50, duration : 400}}"
149 + on:click={showBar}>
150 + 지역<br>선택
151 + </button>
152 +{/if}
153 +<SideBar bind:show={sidebar_show}>
154 + <div class="areas">
155 + <div class="areatitle">광역시/도</div>
156 + {#each DISTRICTS.data as d}
157 + <div class="{Object.keys(curDisrict)[0] == Object.keys(d)[0] ? 'district selected' : 'district'}"
158 + on:click={() => {setDistrict(d)}}>
159 + {Object.keys(d)[0]}
160 + </div><br>
161 + {/each}
162 + </div><br>
163 + <div class="areas">
164 + <div class="areatitle">시/군/구</div>
165 + {#each curDisrict[Object.keys(curDisrict)[0]] as c}
166 + <div class="{curCity == c ? 'city selected' : 'city'}"
167 + on:click={() => {setCity(c)}}>
168 + {c}
169 + </div><br>
170 + {/each}
171 + </div>
172 +</SideBar>
...\ No newline at end of file ...\ No newline at end of file
1 +<script>
2 + import { fly } from 'svelte/transition'
3 + import SideBar from './SideBar.svelte';
4 + let icon_show = true;
5 + let sidebar_show = false;
6 +
7 + function showBar() {
8 + sidebar_show = true;
9 + }
10 +
11 + function hide() {
12 + if (window.scrollY < 400) {
13 + icon_show = true;
14 + } else {
15 + icon_show = false;
16 + sidebar_show = false;
17 + }
18 + }
19 +
20 + import { District, City, Changed } from '../Stores/DistrictStore';
21 + import { AllFestas } from "../Stores/AllFestas";
22 + import { DisplayedFestas } from "../Stores/DisplayedFestas";
23 +
24 + let festaChecked = [];
25 + $: festaList = $AllFestas.filter( v => {
26 + if(v.addr1) {
27 + let district = v.addr1.split(" ")[0];
28 + let city = v.addr1.split(" ")[1];
29 + return ($District === "" || district === $District) &&
30 + ($City === "" || city === $City);
31 + } else {
32 + return false;
33 + }
34 + });
35 + $: festaParsed = festaList.map( (v, i) => {
36 + return { "id" : i, "title" : v.title, "addr1" : v.addr1, "contentid" : v.contentid, "checked" : false }
37 + });
38 + $: if ($Changed) {
39 + let len = festaList.length >= 9 ? 9 : festaList.length;
40 + festaChecked = [];
41 + for(let i = 0; i < len; i++)
42 + check(i);
43 + }
44 + $: DisplayedFestas.set(festaChecked);
45 +
46 + function check(idx) {
47 + if (!festaParsed[idx].checked) {
48 + if(festaChecked.length <= 8) {
49 + festaParsed[idx].checked = true;
50 + festaChecked = festaChecked.concat(festaList[idx]);
51 + } else {
52 + alert("9개 이상 선택하실 수 없습니다.");
53 + }
54 + } else {
55 + festaParsed[idx].checked = false;
56 + festaChecked = festaChecked.filter( v => {
57 + return v.contentid !== festaParsed[idx].contentid;
58 + });
59 + }
60 + }
61 +</script>
62 +
63 +<style>
64 + .sidebtn {
65 + border-radius: 5px;
66 + border: 0px;
67 + width: 70px;
68 + height: 70px;
69 + position: fixed;
70 + left: -20px;
71 + top: 200px;
72 + padding-right: 10px;
73 + text-align: right;
74 + background-color: #e65100;
75 + color: #ffffff;
76 + box-shadow: 0 10px 20px rgb(0 0 0 / 15%);
77 + }
78 +
79 + .sidebtn:focus {
80 + background-color: #f57c00;
81 + }
82 +
83 + .sidebtn:hover {
84 + background-color: #ef6c00;
85 + }
86 +
87 + .festa {
88 + border: 1px solid #aaa;
89 + border-radius: 2px;
90 + box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
91 + padding: 2px;
92 + margin-bottom: 5px;
93 + }
94 +
95 + .festa:hover {
96 + background-color: #fff3e0;
97 + }
98 +
99 + .festa:focus {
100 + background-color: #ffe0b2;
101 + }
102 +
103 + .selected {
104 + background-color: #ffe0b2;
105 + border: 1px solid #aaa;
106 + border-radius: 2px;
107 + box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
108 + padding: 2px;
109 + margin-bottom: 5px;
110 + }
111 +
112 + .title {
113 + font-weight: bold;
114 + border-bottom: 2px solid #ff3e00;
115 + }
116 +
117 + .addr {
118 + display: flex;
119 + align-items: center;
120 + }
121 +
122 + .addr img {
123 + width: 20px;
124 + height: 20px;
125 + }
126 +
127 +</style>
128 +
129 +<svelte:window on:scroll={hide}></svelte:window>
130 +
131 +{#if (icon_show)}
132 + <button class="sidebtn"
133 + transition:fly="{{ x : -50, duration : 400}}"
134 + on:click={showBar}>
135 + 행사<br>목록
136 + </button>
137 +{/if}
138 +<SideBar bind:show={sidebar_show}>
139 +
140 + {#if festaParsed.length > 0}
141 + {#each festaParsed as festa}
142 + <div class="{festa.checked ? "selected" : "festa"}"
143 + on:click={() => {check(festa.id)}}>
144 + <div class="title">{festa.title}</div>
145 + <div class="addr"><img alt="pin" src="/public/map-pin.png"><div>{festa.addr1}</div></div>
146 + </div>
147 + {/each}
148 + {:else}
149 + 개최되는 축제가 없습니다.
150 + {/if}
151 +
152 +</SideBar>
...\ No newline at end of file ...\ No newline at end of file
...@@ -6,10 +6,8 @@ ...@@ -6,10 +6,8 @@
6 let side = "right"; 6 let side = "right";
7 7
8 function hide() { 8 function hide() {
9 - if (window.scrollY < 400) { 9 + if (window.scrollY > 400) {
10 - sidebar_show = true 10 + sidebar_show = false;
11 - } else {
12 - sidebar_show = false
13 } 11 }
14 } 12 }
15 </script> 13 </script>
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
8 <style> 8 <style>
9 .nav { 9 .nav {
10 overflow-y: auto; 10 overflow-y: auto;
11 + overflow-x: hidden;
11 } 12 }
12 13
13 .left { 14 .left {
...@@ -15,13 +16,12 @@ ...@@ -15,13 +16,12 @@
15 top: 0; 16 top: 0;
16 left: 0; 17 left: 0;
17 height: 100%; 18 height: 100%;
18 - /* padding: 2rem 1rem 0.6rem; */
19 border-right: 1px solid #aaa; 19 border-right: 1px solid #aaa;
20 background: #fff; 20 background: #fff;
21 overflow-y: auto; 21 overflow-y: auto;
22 - padding: 2rem 1rem 0.6rem;
23 width: 330px; 22 width: 330px;
24 z-index: 900; 23 z-index: 900;
24 + white-space: pre-line;
25 } 25 }
26 26
27 .right { 27 .right {
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
29 top: 0; 29 top: 0;
30 right: 0; 30 right: 0;
31 height: 100%; 31 height: 100%;
32 - padding: 2rem 1rem 0.6rem;
33 border-left: 1px solid #aaa; 32 border-left: 1px solid #aaa;
34 background: #fff; 33 background: #fff;
35 overflow-y: auto; 34 overflow-y: auto;
...@@ -37,21 +36,36 @@ ...@@ -37,21 +36,36 @@
37 z-index: 900; 36 z-index: 900;
38 } 37 }
39 38
40 - .background { 39 + .navtop {
41 - position: fixed; 40 + display: flex;
42 - top: 0;
43 - left: 0;
44 width: 100%; 41 width: 100%;
45 - height: 100%; 42 + height: 60px;
46 - z-index: 700; 43 + background-color: white;
47 - } 44 + font-size: 30pt;
45 + color: #AAAAAA;
46 + justify-content: right;
47 + padding: 5px 5px 5px;
48 + border-bottom: #999999 solid 1px;
49 + }
50 +
51 + .navitems {
52 + display: flex;
53 + padding: 2rem 1rem 0.6rem;
54 + flex-direction: column
55 + }
48 56
49 </style> 57 </style>
50 58
51 {#if show} 59 {#if show}
52 - <div class="background" on:click={() => {show = false;}}></div>
53 <nav class={"nav " + side} transition:fly={{x: (side == "left" ? -400 : 400), opacity: 1, duration: 800}}> 60 <nav class={"nav " + side} transition:fly={{x: (side == "left" ? -400 : 400), opacity: 1, duration: 800}}>
54 - <slot> 61 + <div class="navtop" on:click={() => {show = false;}}
55 - </slot> 62 + style="justify-content:{side == "left" ? "right" : "left"}; cursor:pointer;">
63 + { side == "left" ? "<" : ">" }
64 + </div>
65 + <div class="navitems">
66 + <slot>
67 +
68 + </slot>
69 + </div>
56 </nav> 70 </nav>
57 {/if} 71 {/if}
...\ No newline at end of file ...\ No newline at end of file
......
1 +import { writable } from 'svelte/store';
2 +
3 +function create() {
4 + const { subscribe, set } = writable([]);
5 +
6 + return {
7 + subscribe,
8 + set: (e) => set(e),
9 + }
10 +}
11 +
12 +export const AllFestas = create();
...\ No newline at end of file ...\ No newline at end of file
1 +import { writable } from 'svelte/store';
2 +
3 +function create() {
4 + const { subscribe, set} = writable([]);
5 +
6 + return {
7 + subscribe,
8 + set: (e) => set(e),
9 + }
10 +}
11 +
12 +export const DisplayedFestas = create();
...\ No newline at end of file ...\ No newline at end of file
1 +import { writable } from 'svelte/store';
2 +
3 +export const District = writable("미선택");
4 +export const City = writable("미선택");
5 +export const Changed = writable("true");
...\ No newline at end of file ...\ No newline at end of file
1 -export let district = {
2 - "name": "korea-administrative-district",
3 - "version": "20160125",
4 - "url": "https://github.com/cosmosfarm/korea-administrative-district",
5 - "data":[
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 -}
...\ No newline at end of file ...\ No newline at end of file