Team:KAIST-Korea/Test Count

From 2011.igem.org

(Difference between revisions)
Line 38: Line 38:
             if (d_day == 0) oTimeCnt.innerHTML = " D-Day 입니다.";
             if (d_day == 0) oTimeCnt.innerHTML = " D-Day 입니다.";
             else if (d_day <= -1) oTimeCnt.innerHTML = Math.abs(d_day) + ":" + (String(Math.abs(d_hour)).length == 1 ? "0" + Math.abs(d_hour) : Math.abs(d_hour)) + ":" + (String(Math.abs(d_min)).length == 1 ? "0" + Math.abs(d_min) : Math.abs(d_min)) + ":" + (String(Math.abs(d_sec)).length == 1 ? "0" + Math.abs(d_sec) : Math.abs(d_sec)) + ":" + nmSec + "지났습니다.";
             else if (d_day <= -1) oTimeCnt.innerHTML = Math.abs(d_day) + ":" + (String(Math.abs(d_hour)).length == 1 ? "0" + Math.abs(d_hour) : Math.abs(d_hour)) + ":" + (String(Math.abs(d_min)).length == 1 ? "0" + Math.abs(d_min) : Math.abs(d_min)) + ":" + (String(Math.abs(d_sec)).length == 1 ? "0" + Math.abs(d_sec) : Math.abs(d_sec)) + ":" + nmSec + "지났습니다.";
-
             else oTimeCnt.innerHTML = sDate + d_day + "일" + d_hour + "시" + d_min + "분" + d_sec + "초" + nmSec + "남았습니다.";
+
             else oTimeCnt.innerHTML = sDate + d_day + "일" + d_hour + "시" + d_min + "분" + d_sec + "초 남았습니다.";
   
   
             setTimeout("Dday_countdown()", 10);
             setTimeout("Dday_countdown()", 10);

Revision as of 09:50, 8 July 2011