![달팽이게임분석기](http://image.chanceball.com/data/editor/2308/thumb-wG1TKzvrlqI2XFAOetfRiWYSb8da6Z39EVDUknJMsc5oPuHCj4xygpLm0hBNQ7_1051e2f5f4bad1923fdbc01d5df68e75_800x1052.jpg)
var poll_tick_count=0;
var timeleft = -1691109217;
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 = seconds + "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);