Skip to content

Commit bdf39f7

Browse files
restore slider initially
1 parent 5e8f302 commit bdf39f7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

seshat/apps/core/templates/core/world_map.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ <h3>Base Map</h3>
191191
</div>
192192
<div style="position: relative; height: 85vh; width: 80%">
193193
<div id="map" style="height: 100%; width: 100%; z-index: 0;"></div>
194-
<div id="sliderdiv" style="display: block; position: absolute; bottom: 4.5vh; width: 100%; z-index: 2; display: none;">
194+
<div id="sliderdiv" style="display: block; position: absolute; bottom: 4.5vh; width: 100%; z-index: 2">
195195
<fieldset>
196196
<div class="slider-container" style="position: relative;">
197197
<datalist id="yearTickmarks"></datalist>
@@ -325,14 +325,13 @@ <h3>Base Map</h3>
325325
document.getElementById('dateSlide').max = data.latest_year;
326326
allPolitiesLoaded = true;
327327
tick_years = JSON.parse(data.tick_years);
328+
setSliderTicks(tick_years);
329+
document.getElementById('loadingIndicator').style.display = 'none';
328330

329331
return fetch('/core/provinces_and_countries');
330332
})
331333
.then(response => response.json())
332334
.then(data => {
333-
setSliderTicks(tick_years);
334-
document.getElementById('sliderdiv').style.display = 'block';
335-
document.getElementById('loadingIndicator').style.display = 'none';
336335
provinceShapeData = data.provinces.map(function (shape) {
337336
return {
338337
geometry: JSON.parse(shape.aggregated_geometry),

0 commit comments

Comments
 (0)