Team:KAIST-Korea/Test Count
From 2011.igem.org
(Difference between revisions)
Line 35: | Line 35: | ||
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 + "초 | + | else oTimeCnt.innerHTML = sDate + d_day + "일" + d_hour + "시" + d_min + "분" + d_sec + "초 남았습니다."; |
setTimeout("Dday_countdown()", 10); | setTimeout("Dday_countdown()", 10); | ||
Line 43: | Line 43: | ||
</head> | </head> | ||
<body> | <body> | ||
- | <div style=width:400px; text-align:center; font-size:15px; font-family:@맑은 고딕" id="Timecount"></div> | + | <div style="width:400px; text-align:center; font-size:15px; font-family:@맑은 고딕" id="Timecount"></div> |
</body> | </body> | ||
</html> | </html> |
Revision as of 09:56, 8 July 2011