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 "; + } }