당근 컨셉충 페이지 정보 작성자 한우물 작성일23-08-04 13:10 조회192회 댓글0건 관련링크 본문 function GoPoll(a){ if(confirm('선택하신 사항으로 설문에 답하시겠습니까?')){ document.formpollvote.poll_idx.value = a; document.formpollvote.submit(); }else{ return ; } } var poll_tick_count=0; var timeleft = -1691121821; 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); 추천 3 한우물 의 다른글 노는게 젤 좋다고 하던 애 근황...0 손님이 다시 안온 이유는 0 클리셰 개박살 내는 드라마 0 사료를 특이하게 먹는 아깽이 0 3시간반 동안 연락 끊긴 남친.j...0 은행강도다! 0 베트남 졸업 풍경 0 교권이 강화된 미래 대한민국 교...0 당근 컨셉충 0 해돋이객이 코로나 별로 걱정 안하...0 댓글목록 등록된 댓글이 없습니다. 목록