I'm using a countdown on my page. After a few searches I found CountdownJS . I followed this tutorial until I realized that even without changing anything in the script code I downloaded from Official Site it displays an error in the console:
Istherereallyawrongcharacterinthecodeorisitsomeconfigurationthatneedstobedoneintheenvironment?
HTML:
<!doctypehtml><htmllang="en">
<head>
<meta charset="UTF-8">
<title>Countdown</title>
</head>
<body>
Countdown until 2050
<h1 id="countdown-holder"></h1>
<script src="countdown.js"></script>
<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>
</body>
</html>
SCRIPT: link