Team:OUC-China
From 2012.igem.org
(Difference between revisions)
Line 19: | Line 19: | ||
margin-top:330px; | margin-top:330px; | ||
} | } | ||
+ | .center{margin-top:300px;text-align:center;font-family:arial,courier,sans-serif;font-size:2em;} | ||
.right{text-align:right;font-family:arial;font-size:1em;font-weight:bold;} | .right{text-align:right;font-family:arial;font-size:1em;font-weight:bold;} | ||
</style> | </style> | ||
+ | <script language=JavaScript> | ||
+ | var now = new Date(); | ||
+ | function GetServerTime() | ||
+ | { | ||
+ | var urodz = new Date("03/01/2012 23:59:59"); | ||
+ | now.setTime(now.getTime()+250); | ||
+ | days = (urodz - now) / 1000 / 60 / 60 / 24; | ||
+ | daysRound = Math.floor(days); | ||
+ | hours = (urodz - now) / 1000 / 60 / 60 - (24 * daysRound); | ||
+ | hoursRound = Math.floor(hours); | ||
+ | minutes = (urodz - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound); | ||
+ | minutesRound = Math.floor(minutes); | ||
+ | seconds = (urodz - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound); | ||
+ | secondsRound = Math.round(seconds); | ||
+ | document.getElementById("date").innerHTML = daysRound; | ||
+ | document.getElementById("time").innerHTML = hoursRound + ":" + minutesRound + ":" + secondsRound; | ||
+ | } | ||
+ | setInterval("GetServerTime()",250); | ||
+ | </script> | ||
<body> | <body> | ||
<img style="margin-left:400px;margin-top:150px;" src="https://static.igem.org/mediawiki/2012/0/03/OUC-China.ready.png"/> | <img style="margin-left:400px;margin-top:150px;" src="https://static.igem.org/mediawiki/2012/0/03/OUC-China.ready.png"/> | ||
+ | <p class="center">We only have <span id="date"></span> <class="center">days <span id="time"></p> | ||
<hr> | <hr> | ||
<p class="right">Thanks to zhihu</p> | <p class="right">Thanks to zhihu</p> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 04:02, 2 March 2012
We only have
Thanks to zhihu