Team:NCTU Formosa
From 2013.igem.org
(Difference between revisions)
(Prototype team page) |
|||
Line 1: | Line 1: | ||
- | < | + | <html> |
+ | <head> | ||
+ | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
+ | <link href="https://2013.igem.org/wiki/index.php?title=Team:NCTU_Formosa-css-style?action=raw&ctype=text/css" rel="stylesheet" type="text/css" /> | ||
+ | <link href='http://fonts.googleapis.com/css?family=Pathway+Gothic+One|Lily+Script+One' rel='stylesheet' type='text/css'> | ||
+ | </head> | ||
+ | <body onload="clock();return true"> | ||
+ | <div id="main"> | ||
+ | <div id="title">NCTU_Formosa</div> | ||
+ | <div id="content"><p>we thrilled at new challenges.</p><p>wiki freeze time remaining: <span id="day"></span> days <span id="ho"></span> hours <span id="min"></span> minutes <span id="sec"></span>seconds.</div> | ||
+ | <script language="JavaScript"> | ||
+ | var DifferenceHour = -1 | ||
+ | var DifferenceMinute = -1 | ||
+ | var DifferenceSecond = -1 | ||
+ | var Tday = new Date("SEP 27, 2013 00:00:00") | ||
+ | var daysms = 24 * 60 * 60 * 1000 | ||
+ | var hoursms = 60 * 60 * 1000 | ||
+ | var Secondms = 60 * 1000 | ||
+ | var microsecond = 1000 | ||
- | + | function clock() | |
- | + | { | |
- | < | + | var time = new Date() |
- | + | var hour = time.getHours() | |
- | + | var minute = time.getMinutes() | |
- | + | var second = time.getSeconds() | |
- | + | var timevalue = ""+((hour > 12) ? hour-12:hour) | |
- | </ | + | |
- | <div id=" | + | timevalue +=((minute < 10) ? ":0":":")+minute |
- | + | timevalue +=((second < 10) ? ":0":":")+second | |
- | </div> | + | timevalue +=((hour >12 ) ? " PM":" AM") |
+ | |||
+ | var convertHour = DifferenceHour | ||
+ | var convertMinute = DifferenceMinute | ||
+ | var convertSecond = DifferenceSecond | ||
+ | |||
+ | var Diffms = Tday.getTime() - time.getTime() | ||
+ | |||
+ | DifferenceHour = Math.floor(Diffms / daysms) | ||
+ | Diffms -= DifferenceHour * daysms | ||
+ | DifferenceMinute = Math.floor(Diffms / hoursms) | ||
+ | Diffms -= DifferenceMinute * hoursms | ||
+ | DifferenceSecond = Math.floor(Diffms / Secondms) | ||
+ | Diffms -= DifferenceSecond * Secondms | ||
+ | |||
+ | if(convertHour != DifferenceHour){ | ||
+ | //document.formnow.dd.value=DifferenceHour | ||
+ | day.innerHTML = DifferenceHour; | ||
+ | } | ||
+ | |||
+ | if(convertMinute != DifferenceMinute) { | ||
+ | //document.formnow.hh.value=DifferenceMinute | ||
+ | ho.innerHTML = DifferenceMinute | ||
+ | } | ||
+ | |||
+ | if(convertSecond != DifferenceSecond) { | ||
+ | //document.formnow.mm.value=DifferenceSecond | ||
+ | min.innerHTML = DifferenceSecond | ||
+ | } | ||
+ | |||
+ | var dSecs = Math.floor(Diffms / microsecond) | ||
+ | //document.formnow.ss.value=dSecs | ||
+ | sec.innerHTML = dSecs | ||
+ | setTimeout("clock()",1000) | ||
+ | } | ||
+ | </script> | ||
+ | <div id="copyright">© 2013 <a title="NCTU_Formosa" href="https://2013.igem.org/wiki/index.php?title=Team:NCTU_Formosa">NCTU_Formosa</a></div> | ||
</div> | </div> | ||
+ | </body> | ||
</html> | </html> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- |
Revision as of 03:32, 23 August 2013
NCTU_Formosa
we thrilled at new challenges.
wiki freeze time remaining: days hours minutes seconds.
© 2013 NCTU_Formosa