LoloSemper commited on
Commit
93c4eae
·
verified ·
1 Parent(s): 5795292

Upload mapa_iberos_neoibero.html

Browse files
Files changed (1) hide show
  1. mapa_iberos_neoibero.html +304 -0
mapa_iberos_neoibero.html ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="es">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Mapa íbero · Estilo Neoíbero</title>
7
+ <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css">
8
+ <style>
9
+ /* === Paleta y estilo inspirados en app.py (Neoíbero) === */
10
+ @font-face {
11
+ font-family: 'IberiaGeorgeos';
12
+ src: local('IberiaGeorgeos'), local('Georgia');
13
+ font-weight: normal; font-style: normal;
14
+ }
15
+ :root {
16
+ --iberian-clay:#8B4513;
17
+ --iberian-ochre:#CC7722;
18
+ --iberian-stone:#5C5C5C;
19
+ --iberian-sand:#D2B48C;
20
+ --iberian-rust:#A0522D;
21
+ --iberian-bronze:#CD7F32;
22
+ --bg-grad-1:#f4e8d8;
23
+ --bg-grad-2:#e8d5c4;
24
+ --bg-grad-3:#d4c4b0;
25
+ }
26
+ *{box-sizing:border-box}
27
+ body{
28
+ margin:0;
29
+ background:linear-gradient(135deg,var(--bg-grad-1) 0%, var(--bg-grad-2) 50%, var(--bg-grad-3) 100%);
30
+ color:var(--iberian-stone);
31
+ font-family: Georgia, 'Times New Roman', serif;
32
+ }
33
+ .wrap{max-width:1100px;margin:0 auto;padding:24px}
34
+ h1,h2,h3{
35
+ color:var(--iberian-clay);
36
+ text-shadow:2px 2px 4px rgba(139,69,19,.15);
37
+ letter-spacing:.5px;
38
+ }
39
+ h1{
40
+ font-size:clamp(22px,2.6vw,32px);
41
+ margin:0 0 8px;
42
+ border-bottom:3px solid var(--iberian-bronze);
43
+ padding-bottom:.5rem;
44
+ }
45
+ .lead{margin:0 0 16px;color:#5a534c}
46
+ .grid{display:grid;gap:12px;grid-template-columns:1fr}
47
+ @media (min-width: 1024px){ .grid{grid-template-columns:2fr 1fr 1fr} }
48
+ .card{
49
+ background:linear-gradient(to bottom,#f9f6f0,#ede6dc);
50
+ border:2px solid var(--iberian-sand);
51
+ border-radius:10px;
52
+ box-shadow:0 4px 12px rgba(139,69,19,.18), inset 0 1px 0 rgba(255,255,255,.5);
53
+ padding:14px;
54
+ }
55
+ label, input, button{font-size:14px}
56
+ input[type="text"]{
57
+ width:100%;padding:8px 10px;border:2px solid var(--iberian-sand);
58
+ background:linear-gradient(to bottom,#faf8f3,#f5f0e8);
59
+ border-radius:8px;outline:none;color:var(--iberian-stone);
60
+ box-shadow:inset 2px 2px 4px rgba(139,69,19,.1);
61
+ }
62
+ input[type="text"]:focus{border-color:var(--iberian-bronze); box-shadow:inset 2px 2px 4px rgba(139,69,19,.1), 0 0 8px rgba(205,127,50,.3)}
63
+ input[type="range"]{width:100%}
64
+ .hint{font-size:12px;color:#6f655c;margin-top:6px}
65
+ .btn{
66
+ display:inline-block;background:linear-gradient(145deg,var(--iberian-bronze),var(--iberian-rust));
67
+ color:#fff;border:2px solid var(--iberian-clay);border-radius:8px;padding:.6rem 1rem;
68
+ text-decoration:none;font-weight:600;box-shadow:0 4px 8px rgba(139,69,19,.3), inset 0 1px 0 rgba(255,255,255,.2);
69
+ }
70
+ .btn:hover{background:linear-gradient(145deg,var(--iberian-rust),var(--iberian-bronze));transform:translateY(-1px)}
71
+ .ticks{display:flex;justify-content:space-between;font-size:11px;color:#6b7280;user-select:none;margin-top:6px}
72
+ #map{height:560px;width:100%}
73
+ .map-wrap{position:relative}
74
+ .legend{
75
+ position:absolute;right:12px;top:12px;background:rgba(255,255,255,.9);
76
+ border:2px solid var(--iberian-sand);border-radius:10px;padding:8px 10px;font-size:12px;
77
+ box-shadow:2px 2px 6px rgba(0,0,0,.15)
78
+ }
79
+ .dot{display:inline-block;width:9px;height:9px;border-radius:999px;margin-right:6px;vertical-align:middle}
80
+ .dot-oppida{background:var(--iberian-clay)}
81
+ .dot-contact{background:var(--iberian-bronze)}
82
+ .dot-tribe{background:transparent;border:2px solid var(--iberian-rust)}
83
+ .side{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px}
84
+ @media(min-width:768px){ .side{grid-template-columns:1fr 2fr} }
85
+ ul.clean{list-style:none;padding:0;margin:0}
86
+ ul.clean li{display:flex;align-items:center;gap:8px;padding:3px 0;border-bottom:1px dashed #e2d4c4}
87
+ ul.clean li:last-child{border-bottom:0}
88
+ .prose{line-height:1.7}
89
+ .prose h2{margin-top:22px}
90
+ code{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;padding:1px 4px}
91
+ pre{background:#0b1220;color:#e2e8f0;border-radius:10px;padding:12px;overflow:auto}
92
+ </style>
93
+ </head>
94
+ <body>
95
+ <header class="wrap">
96
+ <h1>Mapa interactivo · Pueblos íberos (estilo Neoíbero)</h1>
97
+ <p class="lead">Explora tribus, <em>oppida</em> y contactos mediterráneos (c. 800&nbsp;a. C. – 100&nbsp;d. C.). Paleta y estética adaptadas a la UI del traductor Neoíbero.</p>
98
+ <div class="grid">
99
+ <div class="card">
100
+ <div style="display:flex;align-items:center;justify-content:space-between;gap:12px">
101
+ <label for="year"><strong>Año:</strong> <span id="yearLabel"></span></label>
102
+ <label style="font-size:12px"><input type="checkbox" id="showAllYears"> Mostrar todo</label>
103
+ </div>
104
+ <input id="year" type="range" min="-800" max="100" step="5">
105
+ <div class="ticks" id="ticks"></div>
106
+ </div>
107
+
108
+ <div class="card">
109
+ <div><strong>Capas</strong></div>
110
+ <label><input type="checkbox" id="layerTribes" checked> Áreas tribales</label><br>
111
+ <label><input type="checkbox" id="layerSites" checked> Oppida / santuarios</label><br>
112
+ <label><input type="checkbox" id="layerContacts" checked> Colonias y contactos</label>
113
+ </div>
114
+
115
+ <div class="card">
116
+ <label for="filter"><strong>Filtro por nombre</strong></label>
117
+ <input id="filter" type="text" placeholder="Escribe 'Sagunto', 'Gadir', 'Baza'…">
118
+ <div class="hint">El filtro aplica a todas las capas visibles.</div>
119
+ </div>
120
+ </div>
121
+ </header>
122
+
123
+ <main class="wrap">
124
+ <div class="map-wrap card" aria-label="Mapa de España con capas históricas (paleta Neoíbero)">
125
+ <div id="map"></div>
126
+ <div class="legend">
127
+ <div style="font-weight:600;margin-bottom:4px">Leyenda</div>
128
+ <div><span class="dot dot-oppida"></span>Oppida / santuarios</div>
129
+ <div><span class="dot dot-contact"></span>Colonias / contactos</div>
130
+ <div><span class="dot dot-tribe"></span>Áreas tribales (aprox.)</div>
131
+ </div>
132
+ </div>
133
+
134
+ <div class="side">
135
+ <div class="card">
136
+ <h3 style="margin:0 0 6px">Elementos visibles <span id="visibleScope"></span></h3>
137
+ <ul class="clean" id="visibleList"></ul>
138
+ </div>
139
+ <div class="card">
140
+ <h3 style="margin:0 0 6px">Cronología clave</h3>
141
+ <ol id="timelineList" style="margin:0 0 0 18px"></ol>
142
+ </div>
143
+ </div>
144
+
145
+ <article class="card prose" style="margin-top:12px">
146
+ <h2>Notas y compatibilidad</h2>
147
+ <p>Este archivo sigue la <strong>paleta</strong> y el <strong>estilo</strong> del proyecto Neoíbero: arcilla, ocre, bronce y arena, con tipografía serif y tarjetas con bordes texturizados. Puedes integrarlo como página independiente o incrustarlo en tu sitio.</p>
148
+ <h3>Cómo incrustar</h3>
149
+ <pre>&lt;iframe src="mapa_iberos_neoibero.html" width="100%" height="720" style="border:0"&gt;&lt;/iframe&gt;</pre>
150
+ <p class="hint">Teselas de <em>OpenStreetMap</em> con atribución incluida.</p>
151
+ </article>
152
+ </main>
153
+
154
+ <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
155
+ <script>
156
+ const fmtYear = (y) => (y < 0 ? Math.abs(y) + " a. C." : y + " d. C.");
157
+ const YEAR_MIN = -800, YEAR_MAX = 100;
158
+ function cssVar(name){ return getComputedStyle(document.documentElement).getPropertyValue(name).trim(); }
159
+ const COLORS = {
160
+ oppida: cssVar('--iberian-clay') || '#8B4513',
161
+ contact: cssVar('--iberian-bronze') || '#CD7F32',
162
+ tribe: cssVar('--iberian-rust') || '#A0522D',
163
+ tribeFill: cssVar('--iberian-ochre') || '#CC7722',
164
+ };
165
+
166
+ const TRIBES = [
167
+ { name: "Turdetanos", center: [37.4, -5.9], radius: 120000, start: -500, end: -100, note: "Herederos en parte de Tarteso; Guadalquivir bajo y medio." },
168
+ { name: "Bastetanos", center: [37.5, -2.7], radius: 90000, start: -500, end: -50, note: "Sureste: Basti (Baza), Acci (Guadix)." },
169
+ { name: "Contestanos", center: [38.6, -0.8], radius: 85000, start: -500, end: -50, note: "Sur de Valencia y norte de Alicante." },
170
+ { name: "Edetanos", center: [39.6, -0.5], radius: 70000, start: -500, end: -50, note: "Hinterland de Valencia; Edeta (Llíria)." },
171
+ { name: "Ilergetes", center: [41.6, 0.6], radius: 70000, start: -500, end: -100, note: "Llanos del Segre-Cinca (Lleida)." },
172
+ { name: "Ilercavones", center: [40.8, 0.5], radius: 70000, start: -500, end: -50, note: "Bajo Ebro y norte de Castellón." },
173
+ { name: "Oretanos (ibéricos)", center: [38.5, -3.3], radius: 80000, start: -500, end: -50, note: "Alto Guadalquivir; Cástulo." },
174
+ { name: "Lacetanos", center: [41.8, 1.8], radius: 60000, start: -450, end: -50, note: "Interior de Cataluña central." },
175
+ { name: "Layetanos", center: [41.4, 2.1], radius: 40000, start: -500, end: -50, note: "Costa de Barcelona; contactos griegos y fenicios." },
176
+ { name: "Indiketes", center: [42.1, 3.1], radius: 40000, start: -575, end: -50, note: "Empordà; entorno de Emporion." },
177
+ { name: "Ausetanos", center: [41.9, 2.3], radius: 50000, start: -450, end: -50, note: "Zona de Vic (Osona)." },
178
+ { name: "Cessetanos", center: [41.2, 1.2], radius: 50000, start: -450, end: -50, note: "Penedès y entorno de Tarraco." },
179
+ { name: "Sedetanos (frontera)", center: [41.6, -0.9], radius: 65000, start: -400, end: -50, note: "Valle medio del Ebro (área de Zaragoza)." },
180
+ { name: "Mastienos", center: [37.8, -1.1], radius: 60000, start: -500, end: -200, note: "Entorno de Mastia/Carthago Nova (Murcia-Cartagena)." }
181
+ ];
182
+ const IBERIAN_SITES = [
183
+ { name: "Ullastret (Indika)", coords: [42.0, 3.0], start: -550, end: -200, note: "Oppidum con murallas monumentales." },
184
+ { name: "La Bastida de les Alcusses (Moixent)", coords: [38.85, -0.81], start: -500, end: -350, note: "‘Guerrero de Moixent’." },
185
+ { name: "La Alcudia – Ilici (Elche)", coords: [38.25, -0.72], start: -500, end: 100, note: "Centro ibérico y romano; contexto de la Dama de Elche." },
186
+ { name: "Basti (Baza)", coords: [37.49, -2.77], start: -400, end: -50, note: "Necrópolis con esculturas (Dama de Baza)." },
187
+ { name: "Cástulo (Linares)", coords: [38.11, -3.63], start: -500, end: 50, note: "Nodo minero-comercial del alto Guadalquivir." },
188
+ { name: "Arse / Saguntum (Sagunto)", coords: [39.68, -0.28], start: -500, end: 100, note: "Asedio cartaginés en 219 a. C." },
189
+ { name: "Castellar de Meca (Ayora-Alpera)", coords: [38.96, -1.13], start: -400, end: -50, note: "Oppidum rupestre con cisternas talladas." },
190
+ { name: "Tossal de Sant Miquel – Edeta (Llíria)", coords: [39.63, -0.58], start: -500, end: -50, note: "Capital edetana; epigrafía íbera." },
191
+ { name: "La Serreta (Alcoi)", coords: [38.72, -0.45], start: -375, end: -50, note: "Santuario con exvotos y cerámica pintada." },
192
+ { name: "Puig Castellar (Sta. Coloma de Gramenet)", coords: [41.46, 2.23], start: -350, end: -50, note: "Asentamiento layetano en altura." },
193
+ { name: "Lucentum – Tossal de Manises (Alicante)", coords: [38.37, -0.42], start: -300, end: 100, note: "Centro ibérico romanizado (Lucentum)." },
194
+ { name: "Cabezo Lucero (Guardamar del Segura)", coords: [38.08, -0.61], start: -400, end: -200, note: "Necrópolis; Dama de Guardamar." },
195
+ { name: "El Cigarralejo (Mula)", coords: [38.05, -1.49], start: -350, end: -50, note: "Necrópolis ibérica con rico ajuar." },
196
+ { name: "Cerro de los Santos (Montealegre del Castillo)", coords: [38.73, -1.23], start: -350, end: -50, note: "Santuario con esculturas oferentes." },
197
+ { name: "Porcuna – Cerrillo Blanco (Obulco)", coords: [37.88, -4.19], start: -400, end: -50, note: "Conjunto escultórico ibérico excepcional." },
198
+ { name: "Puente Tablas (Jaén)", coords: [37.81, -3.71], start: -600, end: -300, note: "Oppidum con puerta-santuario y urbanismo planificado." }
199
+ ];
200
+ const CONTACT_SITES = [
201
+ { name: "Emporion (Empúries, griega)", coords: [42.13, 3.12], start: -575, end: 100, note: "Fundación focea; puerta de bienes e ideas griegas." },
202
+ { name: "Gadir (Cádiz, fenicia)", coords: [36.53, -6.29], start: -800, end: 100, note: "Larga tradición fenicia; comercio atlántico." },
203
+ { name: "Qart Hadasht / Carthago Nova (Cartagena)", coords: [37.6, -0.99], start: -228, end: 100, note: "Fundada por Asdrúbal; tomada en 209 a. C." },
204
+ { name: "Malaka (Málaga, fenicia)", coords: [36.72, -4.42], start: -700, end: 100, note: "Factoría fenicia; salazones y comercio." },
205
+ { name: "Sexi (Almuñécar, fenicia)", coords: [36.73, -3.69], start: -700, end: 100, note: "Red fenicia en la costa granadina." },
206
+ { name: "Abdera (Adra, fenicia)", coords: [36.75, -3.02], start: -700, end: 100, note: "Punto nodal del sudeste." }
207
+ ];
208
+ const TIMELINE = [
209
+ { year: -800, label: "Primeras factorías fenicias en el sur (Tiro–Gadir)." },
210
+ { year: -650, label: "Intensificación de intercambios fenicio-púnicos." },
211
+ { year: -575, label: "Fundación de Emporion (Empúries) por foceos." },
212
+ { year: -500, label: "Consolidación de oppida ibéricos y redes regionales." },
213
+ { year: -450, label: "Difusión de escrituras ibéricas (meridional y nororiental)." },
214
+ { year: -350, label: "Apogeo urbano; cerámicas pintadas y santuarios monumentales." },
215
+ { year: -300, label: "Primeras acuñaciones locales y monetización creciente." },
216
+ { year: -219, label: "Asedio de Arse (Sagunto); preludio de la II Guerra Púnica." },
217
+ { year: -209, label: "Escipión toma Qart Hadasht (Cartagena)." },
218
+ { year: -197, label: "Hispania Citerior y Ulterior: organización provincial romana." },
219
+ { year: -154, label: "Inicio de las guerras celtibéricas (contexto peninsular)." },
220
+ { year: -133, label: "Fin de las guerras celtibéricas." },
221
+ { year: -27, label: "Reforma de Augusto y municipalización." },
222
+ { year: -19, label: "Fin de las guerras cántabras; integración peninsular completada." },
223
+ { year: 14, label: "Muerte de Augusto; romanización avanzada." }
224
+ ];
225
+
226
+ const $ = (id) => document.getElementById(id);
227
+ const state = { year:-250, showAllYears:false, layerTribes:true, layerSites:true, layerContacts:true, filter:"" };
228
+ const withinYear = (item) => state.showAllYears ? true : (state.year >= item.start && state.year <= item.end);
229
+ const nameMatches = (item) => item.name.toLowerCase().includes(state.filter.trim().toLowerCase());
230
+
231
+ const map = L.map('map').setView([39.8, -3.7], 6);
232
+ L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '&copy; OpenStreetMap contributors' }).addTo(map);
233
+ const gTribes = L.layerGroup().addTo(map), gSites = L.layerGroup().addTo(map), gContacts = L.layerGroup().addTo(map);
234
+
235
+ function renderLayers(){
236
+ gTribes.clearLayers(); gSites.clearLayers(); gContacts.clearLayers();
237
+ if(state.layerTribes){
238
+ TRIBES.filter(x=>withinYear(x) && nameMatches(x)).forEach(t => {
239
+ L.circle(t.center, {radius:t.radius,color:COLORS.tribe,weight:2,fillOpacity:.08,fillColor:COLORS.tribeFill})
240
+ .bindPopup(`<div style="font-size:13px"><div style="font-weight:600">${t.name}</div><div style="color:#5a534c">${fmtYear(t.start)} – ${fmtYear(t.end)}</div><p style="margin:.3em 0 0">${t.note}</p><p style="margin:.3em 0 0;color:#6b7280;font-size:11px">Área aproximada (fines didácticos).</p></div>`)
241
+ .addTo(gTribes);
242
+ });
243
+ }
244
+ if(state.layerSites){
245
+ IBERIAN_SITES.filter(x=>withinYear(x) && nameMatches(x)).forEach(s => {
246
+ L.circleMarker(s.coords, {radius:6,color:COLORS.oppida,weight:2,fillOpacity:.9,fillColor:COLORS.oppida})
247
+ .bindPopup(`<div style="font-size:13px"><div style="font-weight:600">${s.name}</div><div style="color:#5a534c">${fmtYear(s.start)} – ${fmtYear(s.end)}</div><p style="margin:.3em 0 0">${s.note}</p></div>`)
248
+ .addTo(gSites);
249
+ });
250
+ }
251
+ if(state.layerContacts){
252
+ CONTACT_SITES.filter(x=>withinYear(x) && nameMatches(x)).forEach(c => {
253
+ L.circleMarker(c.coords, {radius:5,color:COLORS.contact,weight:2,fillOpacity:.7,fillColor:COLORS.contact})
254
+ .bindPopup(`<div style="font-size:13px"><div style="font-weight:600">${c.name}</div><div style="color:#5a534c">${fmtYear(c.start)} – ${fmtYear(c.end)}</div><p style="margin:.3em 0 0">${c.note}</p></div>`)
255
+ .addTo(gContacts);
256
+ });
257
+ }
258
+ }
259
+ function updateControlsUI(){
260
+ $('year').disabled = state.showAllYears;
261
+ $('year').value = state.year;
262
+ $('yearLabel').textContent = state.showAllYears ? 'todos los años' : fmtYear(state.year);
263
+ $('visibleScope').textContent = state.showAllYears ? '(todos los años)' : 'en ' + fmtYear(state.year);
264
+ }
265
+ function updateVisibleList(){
266
+ const visible = [];
267
+ if(state.layerTribes) TRIBES.filter(x=>withinYear(x) && nameMatches(x)).forEach(t => visible.push({k:'T', name:t.name}));
268
+ if(state.layerSites) IBERIAN_SITES.filter(x=>withinYear(x) && nameMatches(x)).forEach(s => visible.push({k:'S', name:s.name}));
269
+ if(state.layerContacts) CONTACT_SITES.filter(x=>withinYear(x) && nameMatches(x)).forEach(c => visible.push({k:'C', name:c.name}));
270
+ const ul = $('visibleList'); ul.innerHTML = '';
271
+ if(visible.length === 0){ ul.innerHTML = '<li style="color:#6b7280">No hay elementos con estos filtros.</li>'; return; }
272
+ visible.forEach(v => {
273
+ const li = document.createElement('li');
274
+ const dot = document.createElement('span');
275
+ dot.className = 'dot ' + (v.k==='T' ? 'dot-tribe' : v.k==='S' ? 'dot-oppida' : 'dot-contact');
276
+ li.appendChild(dot);
277
+ li.appendChild(document.createTextNode(v.name));
278
+ ul.appendChild(li);
279
+ });
280
+ }
281
+ function renderTimeline(){
282
+ const ticks = $('ticks'); ticks.innerHTML = '';
283
+ TIMELINE.forEach(t => {
284
+ const span = document.createElement('span');
285
+ span.textContent = t.year; span.title = fmtYear(t.year) + ' · ' + t.label; ticks.appendChild(span);
286
+ });
287
+ const ol = $('timelineList'); ol.innerHTML='';
288
+ TIMELINE.forEach(t => {
289
+ const li = document.createElement('li');
290
+ li.innerHTML = '<strong>'+fmtYear(t.year)+':</strong> '+t.label; ol.appendChild(li);
291
+ });
292
+ }
293
+ function refresh(){ renderLayers(); updateControlsUI(); updateVisibleList(); }
294
+ // Eventos
295
+ $('year').addEventListener('input', e => { state.year = parseInt(e.target.value,10); refresh(); });
296
+ $('showAllYears').addEventListener('change', e => { state.showAllYears = e.target.checked; refresh(); });
297
+ $('layerTribes').addEventListener('change', e => { state.layerTribes = e.target.checked; refresh(); });
298
+ $('layerSites').addEventListener('change', e => { state.layerSites = e.target.checked; refresh(); });
299
+ $('layerContacts').addEventListener('change', e => { state.layerContacts = e.target.checked; refresh(); });
300
+ $('filter').addEventListener('input', e => { state.filter = e.target.value; refresh(); });
301
+ renderTimeline(); refresh();
302
+ </script>
303
+ </body>
304
+ </html>