-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
309 lines (279 loc) · 19.1 KB
/
index.html
File metadata and controls
309 lines (279 loc) · 19.1 KB
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
<!DOCTYPE html>
<html lang="uk">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🌸 Florist Partners</title>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"/>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<style>
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
--bg:#0f1117;--surf:#171923;--surf2:#1e2330;--brd:#2a3040;
--txt:#e8eaf0;--mut:#7a8299;--acc:#4f8ef7;
--grn:#3ecf6a;--yel:#f5c842;--red:#f05a5a;--tag:#252d3e;--r:10px;
}
html,body{height:100%;overflow:hidden;font-family:'DM Sans',sans-serif;background:var(--bg);color:var(--txt)}
body{display:flex}
/* ═══ PANEL ═══ */
#panel{width:340px;min-width:340px;display:flex;flex-direction:column;background:var(--surf);border-right:1px solid var(--brd);overflow:hidden;z-index:100}
#ph{padding:13px 13px 10px;border-bottom:1px solid var(--brd);display:flex;flex-direction:column;gap:9px}
.logo{font-size:11.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--mut)}
/* search */
#sw{position:relative}
#si{width:100%;background:var(--surf2);border:1px solid var(--brd);border-radius:var(--r);padding:9px 36px 9px 12px;font-family:inherit;font-size:13.5px;color:var(--txt);outline:none;transition:border-color .15s}
#si:focus{border-color:var(--acc)}
#si::placeholder{color:var(--mut)}
.sico{position:absolute;right:11px;top:50%;transform:translateY(-50%);color:var(--mut);pointer-events:none}
#acl{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--surf2);border:1px solid var(--brd);border-radius:var(--r);max-height:190px;overflow-y:auto;z-index:9999;display:none}
.aci{padding:8px 12px;font-size:13px;cursor:pointer;border-bottom:1px solid var(--brd);transition:background .1s;line-height:1.4}
.aci:last-child{border-bottom:none}
.aci:hover{background:var(--brd)}
/* filters */
#flt{display:flex;gap:6px;flex-wrap:wrap}
.fb{background:var(--surf2);border:1px solid var(--brd);border-radius:20px;padding:4px 10px;font-size:12px;color:var(--mut);cursor:pointer;transition:all .15s;font-family:inherit}
.fb.on{background:var(--acc);border-color:var(--acc);color:#fff}
/* delivery strip */
#di{display:none;margin:0 10px 0;background:rgba(79,142,247,.09);border:1px solid rgba(79,142,247,.3);border-radius:var(--r);padding:7px 10px;font-size:12.5px;color:var(--acc);align-items:center;gap:8px}
#di.v{display:flex}
#dcl{margin-left:auto;cursor:pointer;color:var(--mut);background:none;border:none;font-size:16px;line-height:1;transition:color .12s}
#dcl:hover{color:var(--txt)}
/* sort */
#sr{display:flex;gap:6px;align-items:center;padding:8px 13px 6px;border-bottom:1px solid var(--brd)}
.sl{font-size:11px;color:var(--mut);text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}
.sb{background:none;border:1px solid var(--brd);border-radius:6px;padding:3px 9px;font-size:12px;color:var(--mut);cursor:pointer;font-family:inherit;transition:all .12s}
.sb.on{border-color:var(--acc);color:var(--acc)}
/* list */
#lst{flex:1;overflow-y:auto;padding:8px;display:flex;flex-direction:column;gap:7px}
#lst::-webkit-scrollbar{width:4px}
#lst::-webkit-scrollbar-thumb{background:var(--brd);border-radius:4px}
.pc{background:var(--surf2);border:1px solid var(--brd);border-radius:var(--r);padding:11px 12px;cursor:pointer;transition:border-color .15s,transform .1s}
.pc:hover{border-color:var(--acc);transform:translateX(2px)}
.pc.sel{border-color:var(--acc);background:#1a2236}
.pc.cmp{border-color:var(--yel)}
.pt{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:5px}
.pn{font-size:13.5px;font-weight:600;line-height:1.3}
.rb{display:flex;align-items:center;gap:3px;font-size:12px;font-weight:600;padding:2px 7px;border-radius:20px;white-space:nowrap}
.rg{background:rgba(62,207,106,.15);color:var(--grn)}
.ry{background:rgba(245,200,66,.15);color:var(--yel)}
.rr{background:rgba(240,90,90,.15);color:var(--red)}
.pm{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:6px}
.mt{font-size:11.5px;color:var(--mut);background:var(--tag);border-radius:5px;padding:2px 6px}
.mt.g{color:var(--grn)}.mt.r2{color:var(--red)}
.pb{display:flex;justify-content:space-between;align-items:center}
.pd{font-size:12px;color:var(--acc);font-weight:500;font-family:'DM Mono',monospace}
.ct{font-size:11px;padding:2px 8px;border-radius:5px;border:1px solid var(--brd);background:none;color:var(--mut);cursor:pointer;font-family:inherit;transition:all .12s}
.ct.on{border-color:var(--yel);color:var(--yel)}
.pp{font-size:11.5px;color:var(--mut);margin-top:4px}
.emp{padding:24px;text-align:center;color:var(--mut);font-size:13px;line-height:1.7}
/* ═══ MAP ═══ */
#mw{flex:1;position:relative;overflow:hidden}
#map{width:100%;height:100%}
#bb{display:none;position:absolute;top:12px;right:12px;background:var(--grn);color:#fff;border:none;border-radius:20px;padding:7px 16px;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;z-index:400;box-shadow:0 4px 12px rgba(62,207,106,.3);transition:opacity .12s}
#bb:hover{opacity:.85}
#rl{display:none;position:absolute;bottom:16px;left:50%;transform:translateX(-50%);background:var(--surf);border:1px solid var(--brd);border-radius:20px;padding:5px 14px;font-size:12px;color:var(--mut);pointer-events:none;z-index:400}
/* ═══ COMPARE ═══ */
#cp{display:none;position:fixed;bottom:0;left:340px;right:0;background:var(--surf);border-top:1px solid var(--brd);z-index:500;padding:13px 16px 15px;animation:su .2s ease}
#cp.v{display:block}
@keyframes su{from{transform:translateY(16px);opacity:0}to{transform:translateY(0);opacity:1}}
#cc{position:absolute;right:14px;top:12px;cursor:pointer;color:var(--mut);background:none;border:none;font-size:18px;font-family:inherit}
#ctit{font-size:11.5px;font-weight:600;color:var(--mut);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}
#cg{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px}
#cg::-webkit-scrollbar{height:4px}
#cg::-webkit-scrollbar-thumb{background:var(--brd);border-radius:4px}
.ccol{min-width:150px;background:var(--surf2);border:1px solid var(--brd);border-radius:var(--r);padding:10px;display:flex;flex-direction:column;gap:6px}
.ccn{font-size:12.5px;font-weight:600;border-bottom:1px solid var(--brd);padding-bottom:6px;line-height:1.3}
.cr{display:flex;justify-content:space-between;font-size:12px;gap:6px}
.crl{color:var(--mut)}.crv{font-weight:500}
/* popup dark */
.leaflet-popup-content-wrapper{background:var(--surf)!important;color:var(--txt)!important;border-radius:var(--r)!important;box-shadow:0 8px 28px rgba(0,0,0,.55)!important;border:1px solid var(--brd)!important;padding:0!important}
.leaflet-popup-tip{background:var(--surf)!important}
.leaflet-popup-content{margin:0!important;padding:0!important}
.leaflet-popup-close-button{color:var(--mut)!important;top:8px!important;right:8px!important;font-size:16px!important}
.iw{padding:14px;min-width:210px;max-width:250px}
.iwn{font-size:14px;font-weight:700;margin-bottom:9px;padding-right:20px}
.iwr{display:flex;justify-content:space-between;font-size:12.5px;margin-bottom:5px;color:var(--mut)}
.iwr b{color:var(--txt);font-weight:500}
.iwbtn{margin-top:10px;width:100%;background:var(--acc);border:none;border-radius:7px;padding:7px;color:#fff;font-family:inherit;font-size:12.5px;font-weight:600;cursor:pointer;transition:opacity .12s}
.iwbtn:hover{opacity:.85}
</style>
</head>
<body>
<!-- PANEL -->
<div id="panel">
<div id="ph">
<div class="logo">🌸 Florist Partners</div>
<div id="sw">
<input id="si" type="text" placeholder="Введіть адресу доставки…" autocomplete="off">
<span class="sico">⌕</span>
<div id="acl"></div>
</div>
<div id="flt">
<button class="fb" data-f="deposit" onclick="toggleF(this)">💳 Депозит</button>
<button class="fb" data-f="discount" onclick="toggleF(this)">🏷 Знижки</button>
<button class="fb" data-f="top" onclick="toggleF(this)">⭐ 4.3+</button>
<button class="fb" data-f="cheap" onclick="toggleF(this)">💰 Дешево</button>
</div>
</div>
<div id="di">
<span>📍</span><span id="dtxt">—</span>
<button id="dcl" onclick="clearDel()">✕</button>
</div>
<div id="sr">
<span class="sl">Сорт.:</span>
<button class="sb on" data-s="dist" onclick="setSort(this)">Відстань</button>
<button class="sb" data-s="rating" onclick="setSort(this)">Рейтинг</button>
<button class="sb" data-s="price" onclick="setSort(this)">Ціна</button>
</div>
<div id="lst"></div>
</div>
<!-- MAP -->
<div id="mw">
<div id="map"></div>
<button id="bb" onclick="showBest()">⭐ Кращий партнер</button>
<div id="rl">Радіус: 5 км</div>
</div>
<!-- COMPARE -->
<div id="cp">
<div id="ctit">Порівняння партнерів</div>
<button id="cc" onclick="closeCompare()">✕</button>
<div id="cg"></div>
</div>
<script>
const P=[
{id:1,name:'Квіткова Майстерня',lat:49.845,lng:24.027,phone:'+38 067 123-45-67',rating:4.8,price:2,deposit:true,discount:true,quality:'Висока'},
{id:2,name:'Flora Studio',lat:49.835,lng:24.015,phone:'+38 050 987-65-43',rating:4.5,price:3,deposit:false,discount:true,quality:'Висока'},
{id:3,name:'Квіти & Ко',lat:49.855,lng:24.042,phone:'+38 063 111-22-33',rating:3.7,price:1,deposit:true,discount:false,quality:'Середня'},
{id:4,name:'Rose Garden',lat:49.825,lng:24.050,phone:'+38 067 444-55-66',rating:4.2,price:2,deposit:true,discount:true,quality:'Хороша'},
{id:5,name:'Лілія Флорист',lat:49.860,lng:24.010,phone:'+38 050 777-88-99',rating:2.9,price:1,deposit:false,discount:false,quality:'Низька'},
{id:6,name:'Bloom & Blossom',lat:49.840,lng:24.060,phone:'+38 063 555-66-77',rating:4.9,price:3,deposit:true,discount:true,quality:'Висока'},
{id:7,name:'Квіткова Феєрія',lat:49.870,lng:24.035,phone:'+38 067 222-33-44',rating:4.1,price:2,deposit:false,discount:true,quality:'Хороша'},
{id:8,name:'Green Floral',lat:49.830,lng:24.005,phone:'+38 050 333-44-55',rating:3.5,price:1,deposit:true,discount:false,quality:'Середня'},
{id:9,name:'Ботанік Студія',lat:49.848,lng:24.048,phone:'+38 063 888-99-00',rating:4.6,price:2,deposit:true,discount:true,quality:'Висока'},
{id:10,name:'Весняний Букет',lat:49.862,lng:24.055,phone:'+38 067 100-200-30',rating:3.2,price:1,deposit:false,discount:false,quality:'Нижче середнього'},
];
let data=P.map(p=>({...p,distKm:null}));
let sortBy='dist',activeF=new Set(),cmpSet=new Set();
let delPt=null,lmap,delMk=null,delCirc=null;
const MK={};
const $=id=>document.getElementById(id);
const pr=n=>'₴'.repeat(n);
const rc=r=>r>=4.3?'rg':r>=3.5?'ry':'rr';
const mc=r=>r>=4.3?'#3ecf6a':r>=3.5?'#f5c842':'#f05a5a';
function hav(a,b,c,d){const R=6371,dl=(c-a)*Math.PI/180,do2=(d-b)*Math.PI/180,x=Math.sin(dl/2)**2+Math.cos(a*Math.PI/180)*Math.cos(c*Math.PI/180)*Math.sin(do2/2)**2;return R*2*Math.atan2(Math.sqrt(x),Math.sqrt(1-x));}
function dstr(km){if(km==null)return'';return km<1?(km*1000).toFixed(0)+' м':km.toFixed(1)+' км';}
window.addEventListener('load',()=>{
lmap=L.map('map',{zoomControl:true}).setView([49.845,24.030],13);
// CartoDB Positron Dark — no referer restriction, free, reliable
L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png',{
attribution:'© <a href="https://carto.com">CARTO</a> © <a href="https://openstreetmap.org">OSM</a>',
subdomains:'abcd',maxZoom:19
}).addTo(lmap);
P.forEach(addMk);
$('bb').style.display='block';
render();
});
function mkIcon(color,rating){
return L.divIcon({
className:'',
html:`<div style="width:28px;height:28px;background:${color};border:3px solid rgba(255,255,255,.9);border-radius:50%;box-shadow:0 3px 10px rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:#fff;font-family:sans-serif">${rating}</div>`,
iconSize:[28,28],iconAnchor:[14,14],popupAnchor:[0,-16]
});
}
function addMk(p){
const m=L.marker([p.lat,p.lng],{icon:mkIcon(mc(p.rating),p.rating)}).addTo(lmap);
m.on('click',()=>{highlightCard(p.id);m.bindPopup(buildPopup(p),{maxWidth:260}).openPopup();});
MK[p.id]=m;
}
function buildPopup(p){
const dp=data.find(x=>x.id===p.id);
const d=dp&&dp.distKm!=null?dstr(dp.distKm):'—';
const el=document.createElement('div');
el.className='iw';
el.innerHTML=`<div class="iwn">${p.name}</div>
<div class="iwr"><span>⭐ Рейтинг</span><b>${p.rating}</b></div>
<div class="iwr"><span>📍 Відстань</span><b>${d}</b></div>
<div class="iwr"><span>📞 Телефон</span><b>${p.phone}</b></div>
<div class="iwr"><span>💰 Ціни</span><b>${pr(p.price)}</b></div>
<div class="iwr"><span>💳 Депозит</span><b>${p.deposit?'✅ Так':'❌ Ні'}</b></div>
<div class="iwr"><span>🏷 Знижки</span><b>${p.discount?'✅ Так':'❌ Ні'}</b></div>
<div class="iwr"><span>🌸 Якість</span><b>${p.quality}</b></div>
<button class="iwbtn" onclick="addCmp(${p.id})">+ Додати до порівняння</button>`;
return el;
}
let acT;
$('si').addEventListener('input',()=>{
clearTimeout(acT);
const q=$('si').value.trim();
if(q.length<3){$('acl').style.display='none';return;}
acT=setTimeout(async()=>{
try{
const r=await fetch(`https://nominatim.openstreetmap.org/search?format=json&q=${encodeURIComponent(q)}&limit=6&accept-language=uk,en`);
const res=await r.json();
const list=$('acl');
if(!res.length){list.style.display='none';return;}
list.innerHTML=res.map(x=>`<div class="aci" data-lat="${x.lat}" data-lon="${x.lon}" data-name="${encodeURIComponent(x.display_name)}">📍 ${x.display_name}</div>`).join('');
list.style.display='block';
list.querySelectorAll('.aci').forEach(el=>el.addEventListener('click',()=>{
const lat=parseFloat(el.dataset.lat),lon=parseFloat(el.dataset.lon),name=decodeURIComponent(el.dataset.name);
$('acl').style.display='none';
$('si').value=name.split(',').slice(0,2).join(',');
setDel(lat,lon,name);
}));
}catch(e){}
},380);
});
document.addEventListener('click',e=>{if(!e.target.closest('#sw'))$('acl').style.display='none';});
function setDel(lat,lng,name){
delPt={lat,lng};
$('dtxt').textContent=name.split(',').slice(0,2).join(',');
$('di').classList.add('v');
$('rl').style.display='block';
data=P.map(p=>({...p,distKm:hav(lat,lng,p.lat,p.lng)}));
if(delMk)lmap.removeLayer(delMk);
if(delCirc)lmap.removeLayer(delCirc);
delMk=L.marker([lat,lng],{icon:L.divIcon({className:'',html:`<div style="width:16px;height:16px;background:#4f8ef7;border:2.5px solid #fff;border-radius:50%;box-shadow:0 2px 8px rgba(79,142,247,.5)"></div>`,iconSize:[16,16],iconAnchor:[8,8]}),zIndexOffset:1000}).addTo(lmap);
delCirc=L.circle([lat,lng],{radius:5000,color:'#4f8ef7',fillOpacity:.06,weight:1.5}).addTo(lmap);
lmap.setView([lat,lng],14,{animate:true});
render();
}
function clearDel(){
delPt=null;data=P.map(p=>({...p,distKm:null}));
$('di').classList.remove('v');$('rl').style.display='none';$('si').value='';
if(delMk){lmap.removeLayer(delMk);delMk=null;}
if(delCirc){lmap.removeLayer(delCirc);delCirc=null;}
render();
}
function toggleF(btn){btn.classList.toggle('on');const f=btn.dataset.f;activeF.has(f)?activeF.delete(f):activeF.add(f);render();}
function setSort(btn){document.querySelectorAll('.sb').forEach(b=>b.classList.remove('on'));btn.classList.add('on');sortBy=btn.dataset.s;render();}
function filtered(){return data.filter(p=>{if(activeF.has('deposit')&&!p.deposit)return false;if(activeF.has('discount')&&!p.discount)return false;if(activeF.has('top')&&p.rating<4.3)return false;if(activeF.has('cheap')&&p.price>1)return false;return true;});}
function sorted(list){return[...list].sort((a,b)=>{if(sortBy==='dist'){if(a.distKm==null&&b.distKm==null)return 0;if(a.distKm==null)return 1;if(b.distKm==null)return -1;return a.distKm-b.distKm;}if(sortBy==='rating')return b.rating-a.rating;if(sortBy==='price')return a.price-b.price;return 0;});}
function render(){
const list=sorted(filtered());
const el=$('lst');
if(!list.length){el.innerHTML='<div class="emp">Партнерів не знайдено.<br>Спробуйте змінити фільтри.</div>';return;}
el.innerHTML=list.map(p=>{const d=dstr(p.distKm);return`<div class="pc${cmpSet.has(p.id)?' cmp':''}" id="c${p.id}" onclick="cardClick(${p.id})"><div class="pt"><div class="pn">${p.name}</div><div class="rb ${rc(p.rating)}">⭐ ${p.rating}</div></div><div class="pm"><span class="mt">💰 ${pr(p.price)}</span><span class="mt ${p.deposit?'g':'r2'}">💳 ${p.deposit?'Депозит':'—'}</span><span class="mt ${p.discount?'g':''}">🏷 ${p.discount?'Знижки':'—'}</span><span class="mt">🌸 ${p.quality}</span></div><div class="pb"><div class="pd">${d?'📍 '+d:''}</div><button class="ct${cmpSet.has(p.id)?' on':''}" onclick="event.stopPropagation();addCmp(${p.id})">${cmpSet.has(p.id)?'✓ Порівн.':'+ Порівн.'}</button></div><div class="pp">📞 ${p.phone}</div></div>`;}).join('');
}
function highlightCard(id){document.querySelectorAll('.pc').forEach(c=>c.classList.remove('sel'));const c=$('c'+id);if(c){c.classList.add('sel');c.scrollIntoView({behavior:'smooth',block:'nearest'});}}
function cardClick(id){highlightCard(id);const p=P.find(x=>x.id===id);if(!p)return;lmap.panTo([p.lat,p.lng],{animate:true});MK[id].fire('click');}
function addCmp(id){if(cmpSet.has(id)){cmpSet.delete(id);}else{if(cmpSet.size>=5){alert('Максимум 5 партнерів');return;}cmpSet.add(id);}render();renderCmp();}
function renderCmp(){
const cpEl=$('cp');
if(cmpSet.size<2){cpEl.classList.remove('v');return;}
cpEl.classList.add('v');
const rows=[['⭐','Рейтинг',p=>p.rating],['💰','Ціни',p=>pr(p.price)],['💳','Депозит',p=>p.deposit?'✅':'❌'],['🏷','Знижки',p=>p.discount?'✅':'❌'],['🌸','Якість',p=>p.quality],['📍','Відстань',p=>dstr(p.distKm)||'—']];
$('cg').innerHTML=[...cmpSet].map(id=>{const p=data.find(x=>x.id===id)||P.find(x=>x.id===id);return`<div class="ccol"><div class="ccn">${p.name}</div>${rows.map(([ico,lbl,fn])=>`<div class="cr"><span class="crl">${ico} ${lbl}</span><span class="crv">${fn(p)}</span></div>`).join('')}</div>`;}).join('');
}
function closeCompare(){cmpSet.clear();$('cp').classList.remove('v');render();}
function showBest(){
let list=sorted(filtered());if(!list.length)return;
list=list.sort((a,b)=>{const sa=a.rating*2-(a.distKm||0)*.3-a.price*.4+(a.deposit?.3:0)+(a.discount?.2:0),sb=b.rating*2-(b.distKm||0)*.3-b.price*.4+(b.deposit?.3:0)+(b.discount?.2:0);return sb-sa;});
const best=list[0];cardClick(best.id);
document.querySelectorAll('.pc').forEach(c=>{c.style.opacity='.3';c.style.transition='opacity .3s';});
const bc=$('c'+best.id);if(bc){bc.style.opacity='1';bc.style.boxShadow='0 0 0 2px #3ecf6a,0 4px 16px rgba(62,207,106,.2)';}
setTimeout(()=>{document.querySelectorAll('.pc').forEach(c=>{c.style.opacity='';c.style.boxShadow='';c.style.transition='';});},3000);
}
</script>
</body>
</html>