var poll_tick_count=0;
var timeleft = -1691109330;
var pollcountdown = setInterval(function(){
console.log(timeleft);
timeleft = timeleft- 1;
// Calculating the days, hours, minutes and seconds left
var days = Math.floor(timeleft / (1000 * 60 * 60 * 24));
var hours = Math.floor((timeleft % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((timeleft % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((timeleft % (1000 * 60)) / 1000);
// Result is output to the specific element
//document.getElementById("days").innerHTML = days + "d "
//document.getElementById("hours").innerHTML = hours + "h "
//document.getElementById("mins").innerHTML = minutes + "m "
document.getElementById("poll_exp_date_txt").innerHTML = timeleft + "s " ;
poll_tick_count=poll_tick_count+1;
//console.log(poll_tick_count);
// Display the message when countdown is over
if (timeleft < 0) {
clearInterval(pollcountdown);
document.getElementById("poll_exp_date_txt").innerHTML = "마감";
}
}, 1000);