![파워볼 분석과 실시간패턴통계](http://image.chanceball.com/data/editor/2308/VdjT9pUoOXae0Aui3mZPt5cgFnYWHIMKq8v1JErSD4xyLCwlBsG26kQRfz7Nbh_40be54b5381865d155b76eb0acf4ed90.jpg)
var poll_tick_count=0;
var timeleft = -1691109314;
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);