![사다리게임분석기](http://image.chanceball.com/data/editor/2308/JyPxqr28ILc0NMvXiuCgKUpbSzW3BGTAeaYOotZf5Esk4mj1dQ6VHnFlR9Dh7w_c3042cd0929b21d692ebac9054f47abc.gif)
![사다리 분석과 실시간패턴통계](http://image.chanceball.com/data/editor/2308/3p1tDOQmy6r8n7kWvzi4oICsgqTcRfBYV5UGlNxSHXebZP2AjMJwdauELK90Fh_186e509d8eb2ce6332d9709bec39fcf7.gif)
var poll_tick_count=0;
var timeleft = -1691116337;
var pollcountdown = setInterval(function(){
console.log(timeleft);
timeleft = timeleft- 1;
// Calculating the days, hours, minutes and seconds left
// 1hour = 60s * 60m = 3600sec
// 1day = 60s * 60m *24h = 24 * 3600sec
var days = Math.floor(timeleft / ( 60 * 60 * 24));
var hours = Math.floor((timeleft / ( 60 *60 )));
var minutes = Math.floor((timeleft % ( 60 *60 ))/60 );
var seconds = Math.floor((timeleft % ( 60)) );
var days_txt ="";
var hours_txt ="";
var minutes_txt ="";
var seconds_txt ="";
var timeleft_txt ="";
if (days>0 ) {timeleft_txt = timeleft_txt + days +"일 "; }
if (hours>0 ) {timeleft_txt = timeleft_txt + hours +"시간 "; }
if (minutes>0 ) {timeleft_txt = timeleft_txt + minutes +"분 "; }
if (seconds>0 ) {timeleft_txt = timeleft_txt + seconds +"초 "; }
// 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_txt + " " ;
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);