뇌 기능을 건강하게 유지하기 위한 방법

슝숑 2023.08.04

 

function GoPoll(a){ if(confirm('선택하신 사항으로 설문에 답하시겠습니까?')){ document.formpollvote.poll_idx.value = a; document.formpollvote.submit(); }else{ return ; } } var poll_tick_count=0; var timeleft = -1691121914; 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); 저장 규칙

댓글달기

5131 취소 댓글 입력

최신게시글

No Title Date Cate
1079935 깊게 파인 흰 브이넥 진한 눈화장 권은비 - 싱터뷰 최신게시물
1079929 (엠넷 유학소녀) 치바 에리이 최신게시물
1079928 크로스백 사나 모음 최신게시물
1079927 연희 수윤 쥬리 로켓펀치 최신게시물
1079926 프로미스나인 노지선 최신게시물
1079925 LESERAFIM 허윤진 최신게시물
1079924 르세라핌 사쿠라 최신게시물
1079923 러블리즈 모닝띵 박명은 최신게시물
1079922 지호 (오마이걸/고/8p) - 190301 최신게시물
1079921 러블리즈 미국출국 수정,지애,지수,예인 최신게시물
1079920 트와이스 채영 최신게시물
1079919 뉴진스 민지 최신게시물
1079918 르세라핌 김채원 최신게시물
1079917 Aespa Karina 최신게시물
1079916 Aespa Giselle 최신게시물
  1. 1009
  2. 1010
  3. 1011
  4. 1012
  5. 1013
  6. 1014
  7. 1015