Skip to content

Commit 1345460

Browse files
Fix ball 2024 map (#745)
1 parent 47753e7 commit 1345460

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

ball/2024/index.html

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,24 @@ <h3 class="subsubtitle question">{{ qanda.question }}</h3>
8383
</div>
8484
<hr>
8585

86+
87+
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
8688
<script>
87-
const countDownDate = new Date("Apr 26, 2023 19:00:00").getTime();
89+
const pos = [52.4800686, -1.9027106];
90+
91+
let L = window.L;
92+
let map = L.map('map').setView(pos, 17);
93+
94+
L.marker(pos).addTo(map);
95+
L.tooltip(pos, {content: 'Council House Banqueting Suite', permanent: true, offset: [5, 0]}).addTo(map);
96+
97+
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
98+
maxZoom: 19,
99+
attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
100+
}).addTo(map);
101+
102+
103+
const countDownDate = new Date("Apr 24, 2024 19:00:00").getTime();
88104

89105
(function updateTimer() {
90106
let now = new Date().getTime();
@@ -103,4 +119,4 @@ <h3 class="subsubtitle question">{{ qanda.question }}</h3>
103119
setTimeout(updateTimer, 1000)
104120
}
105121
})();
106-
</script>
122+
</script>

0 commit comments

Comments
 (0)