From 5d5dc5719a2a3870a98900bf376b13841fc65720 Mon Sep 17 00:00:00 2001 From: Isaac Mills Date: Wed, 9 Jul 2025 18:51:59 -0600 Subject: [PATCH] Fix javascript --- src/partials/projects.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/partials/projects.html b/src/partials/projects.html index f389e26..3f17415 100644 --- a/src/partials/projects.html +++ b/src/partials/projects.html @@ -78,8 +78,11 @@ var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); var seconds = Math.floor((distance % (1000 * 60)) / 1000); - document.getElementById("c0re-countup").innerHTML = days + "d " + hours + "h " - + minutes + "m " + seconds + "s "; + var countup = document.getElementById("c0re-countup") + if (countup != null) { + countup.innerHTML = days + "d " + hours + "h " + + minutes + "m " + seconds + "s "; + } }