Skip to content

Commit 04a7829

Browse files
authored
Add attendees to 2023 and 2024 ball (#709)
1 parent 3626b39 commit 04a7829

File tree

4 files changed

+5
-16
lines changed

4 files changed

+5
-16
lines changed

_data/ball/2023.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: CSS BALL
22
year: 2023
33
location: Fazeley Studios
44
date: 26th April
5+
attendees: 124
56
links:
67
- text: Menu
78
url: '/ball/2023/menu'

_data/ball/2024.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: CSS BALL
22
year: 2024
33
location: Banqueting Suite
44
date: 24th April
5+
attendees: 172
56

67
tickets:
78
- type: 3 Course

ball/2023/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ <h3 class="subsubtitle question">{{ qanda.question }}</h3>
9393
+ minutes + " <span>minutes</span> " + seconds + " <span>seconds</span>";
9494

9595
if (distance < 0) {
96-
document.getElementById("count").innerHTML = "<a href='https://cssbham.com/join'>cssbham.com/join</a>";
96+
document.getElementById("count").innerHTML = "Attendees: "+{{ball.attendees}};
9797
} else {
9898
setTimeout(updateTimer, 1000)
9999
}

ball/2024/index.html

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

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

10289
(function updateTimer() {
10390
let now = new Date().getTime();
@@ -111,7 +98,7 @@ <h3 class="subsubtitle question">{{ qanda.question }}</h3>
11198
+ minutes + " <span>minutes</span> " + seconds + " <span>seconds</span>";
11299

113100
if (distance < 0) {
114-
document.getElementById("count").innerHTML = "<a href='https://cssbham.com/join'>cssbham.com/join</a>";
101+
document.getElementById("count").innerHTML = "Attendees: "+{{ball.attendees}};
115102
} else {
116103
setTimeout(updateTimer, 1000)
117104
}

0 commit comments

Comments
 (0)