From 60c6129c671b2e36b5bd981a3e7a3dca58430925 Mon Sep 17 00:00:00 2001
From: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
Date: Mon, 31 Aug 2026 17:19:47 +0100
Subject: [PATCH 1/7] Update attendee count display in index.html
Fix attendee count display logic in countdown timer.
Signed-off-by: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
---
ball/2025/index.html | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/ball/2025/index.html b/ball/2025/index.html
index 9d6d5d26..1ab10b41 100644
--- a/ball/2025/index.html
+++ b/ball/2025/index.html
@@ -112,8 +112,13 @@
{{ qanda.question }}
document.getElementById("count").innerHTML = days + " days " + hours + " hours "
+ minutes + " minutes " + seconds + " seconds";
+ attendees = ball.attendees
if (distance < 0) {
+ if (attendees > 0 {
+ document.getElementById("count").innerHTML = "Attendees: {{ ball.attendees }}";
+ } else {
document.getElementById("count").innerHTML = "cssbham.com/join";
+ }
} else {
setTimeout(updateTimer, 1000)
}
From dd807b35d9739bb924492cbdf5a35184adebeba3 Mon Sep 17 00:00:00 2001
From: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
Date: Mon, 31 Aug 2026 17:23:42 +0100
Subject: [PATCH 2/7] Fix syntax error in attendee count display
Signed-off-by: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
---
ball/2025/index.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ball/2025/index.html b/ball/2025/index.html
index 1ab10b41..edceaae8 100644
--- a/ball/2025/index.html
+++ b/ball/2025/index.html
@@ -114,8 +114,8 @@ {{ qanda.question }}
attendees = ball.attendees
if (distance < 0) {
- if (attendees > 0 {
- document.getElementById("count").innerHTML = "Attendees: {{ ball.attendees }}";
+ if (attendees > 0) {
+ document.getElementById("count").innerHTML = "Attendees: ${attendees}";
} else {
document.getElementById("count").innerHTML = "cssbham.com/join";
}
From 6017629180253e88ec2d07c06968e2868ec442cb Mon Sep 17 00:00:00 2001
From: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
Date: Mon, 31 Aug 2026 17:26:55 +0100
Subject: [PATCH 3/7] Change attendees variable declaration to let
Signed-off-by: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
---
ball/2025/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ball/2025/index.html b/ball/2025/index.html
index edceaae8..d5efc146 100644
--- a/ball/2025/index.html
+++ b/ball/2025/index.html
@@ -112,7 +112,7 @@ {{ qanda.question }}
document.getElementById("count").innerHTML = days + " days " + hours + " hours "
+ minutes + " minutes " + seconds + " seconds";
- attendees = ball.attendees
+ let attendees = ball.attendees
if (distance < 0) {
if (attendees > 0) {
document.getElementById("count").innerHTML = "Attendees: ${attendees}";
From 0456baf60bffdbf39e33491825c65656e30d5b76 Mon Sep 17 00:00:00 2001
From: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
Date: Mon, 31 Aug 2026 17:29:50 +0100
Subject: [PATCH 4/7] Update attendee count display syntax in index.html
Signed-off-by: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
---
ball/2025/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ball/2025/index.html b/ball/2025/index.html
index d5efc146..00e2bfa3 100644
--- a/ball/2025/index.html
+++ b/ball/2025/index.html
@@ -115,7 +115,7 @@ {{ qanda.question }}
let attendees = ball.attendees
if (distance < 0) {
if (attendees > 0) {
- document.getElementById("count").innerHTML = "Attendees: ${attendees}";
+ document.getElementById("count").innerHTML = "Attendees: {{ attendees }}";
} else {
document.getElementById("count").innerHTML = "cssbham.com/join";
}
From ce3556258b9a06f9f89a59ed224007ddbea28879 Mon Sep 17 00:00:00 2001
From: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
Date: Mon, 31 Aug 2026 17:32:25 +0100
Subject: [PATCH 5/7] Update attendees variable to use template syntax
Signed-off-by: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
---
ball/2025/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ball/2025/index.html b/ball/2025/index.html
index 00e2bfa3..985ec3b1 100644
--- a/ball/2025/index.html
+++ b/ball/2025/index.html
@@ -112,7 +112,7 @@ {{ qanda.question }}
document.getElementById("count").innerHTML = days + " days " + hours + " hours "
+ minutes + " minutes " + seconds + " seconds";
- let attendees = ball.attendees
+ let attendees = {{ ball.attendees }}
if (distance < 0) {
if (attendees > 0) {
document.getElementById("count").innerHTML = "Attendees: {{ attendees }}";
From 5d0e01172d68aa3c446930c46047df95f466dd08 Mon Sep 17 00:00:00 2001
From: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
Date: Mon, 31 Aug 2026 17:36:14 +0100
Subject: [PATCH 6/7] Fix attendees variable declaration in index.html
Signed-off-by: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
---
ball/2025/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ball/2025/index.html b/ball/2025/index.html
index 985ec3b1..99fe1100 100644
--- a/ball/2025/index.html
+++ b/ball/2025/index.html
@@ -112,7 +112,7 @@ {{ qanda.question }}
document.getElementById("count").innerHTML = days + " days " + hours + " hours "
+ minutes + " minutes " + seconds + " seconds";
- let attendees = {{ ball.attendees }}
+ const attendees = parseInt('{{ ball.attendees }}') || 0
if (distance < 0) {
if (attendees > 0) {
document.getElementById("count").innerHTML = "Attendees: {{ attendees }}";
From 48aa2d1f5576ede5f36f3eac34363a56230bda69 Mon Sep 17 00:00:00 2001
From: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
Date: Mon, 31 Aug 2026 16:48:57 +0000
Subject: [PATCH 7/7] Fix errors
---
ball/2025/index.html | 27 ++++++++++++++-------------
ball/2026/index.html | 22 ++++++++++++++--------
2 files changed, 28 insertions(+), 21 deletions(-)
diff --git a/ball/2025/index.html b/ball/2025/index.html
index 99fe1100..b44b2a0a 100644
--- a/ball/2025/index.html
+++ b/ball/2025/index.html
@@ -104,22 +104,23 @@ {{ qanda.question }}
(function updateTimer() {
let now = new Date().getTime();
let distance = countDownDate - now;
- let days = Math.floor(distance / (1000 * 60 * 60 * 24));
- let hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
- let minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
- let seconds = Math.floor((distance % (1000 * 60)) / 1000);
- document.getElementById("count").innerHTML = days + " days " + hours + " hours "
- + minutes + " minutes " + seconds + " seconds";
-
- const attendees = parseInt('{{ ball.attendees }}') || 0
if (distance < 0) {
- if (attendees > 0) {
- document.getElementById("count").innerHTML = "Attendees: {{ attendees }}";
- } else {
- document.getElementById("count").innerHTML = "cssbham.com/join";
- }
+ let attendees = parseInt('{{ ball.attendees }}') || 0
+ if (attendees > 0) {
+ document.getElementById("count").innerHTML = `Attendees: ${attendees}`;
+ } else {
+ document.getElementById("count").innerHTML = "cssbham.com/join";
+ }
} else {
+ let days = Math.floor(distance / (1000 * 60 * 60 * 24));
+ let hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
+ let minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
+ let seconds = Math.floor((distance % (1000 * 60)) / 1000);
+
+ document.getElementById("count").innerHTML = days + " days " + hours + " hours "
+ + minutes + " minutes " + seconds + " seconds";
+
setTimeout(updateTimer, 1000)
}
})();
diff --git a/ball/2026/index.html b/ball/2026/index.html
index 6b0b9882..b358888a 100644
--- a/ball/2026/index.html
+++ b/ball/2026/index.html
@@ -104,17 +104,23 @@ {{ qanda.question }}
(function updateTimer() {
let now = new Date().getTime();
let distance = countDownDate - now;
- let days = Math.floor(distance / (1000 * 60 * 60 * 24));
- let hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
- let minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
- let seconds = Math.floor((distance % (1000 * 60)) / 1000);
-
- document.getElementById("count").innerHTML = days + " days " + hours + " hours "
- + minutes + " minutes " + seconds + " seconds";
if (distance < 0) {
- document.getElementById("count").innerHTML = "cssbham.com/join";
+ let attendees = parseInt('{{ ball.attendees }}') || 0
+ if (attendees > 0) {
+ document.getElementById("count").innerHTML = `Attendees: ${attendees}`;
+ } else {
+ document.getElementById("count").innerHTML = "cssbham.com/join";
+ }
} else {
+ let days = Math.floor(distance / (1000 * 60 * 60 * 24));
+ let hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
+ let minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
+ let seconds = Math.floor((distance % (1000 * 60)) / 1000);
+
+ document.getElementById("count").innerHTML = days + " days " + hours + " hours "
+ + minutes + " minutes " + seconds + " seconds";
+
setTimeout(updateTimer, 1000)
}
})();