I stumbled upon countdown.js after coming across this helpful resource:
My knowledge in JavaScript is limited, and I'm looking to configure the countdown to start exactly a week from today, which would be on February 24, 2014.
Is there a way to tweak the code to achieve this?
Below is an excerpt of the current setup in my html file:
<head>
<script src="/js/countdown.js"></script>
</head>
<h1 id="countdown-holder"></h1>
<script>
var clock = document.getElementById("countdown-holder")
, targetDate = new Date(2050, 00, 01); // Jan 1, 2050;
clock.innerHTML = countdown(targetDate).toString();
setInterval(function(){
clock.innerHTML = countdown(targetDate).toString();
}, 1000);
</script>