Team:Kyoto/TimeLimit
From 2013.igem.org
(Difference between revisions)
m |
m |
||
Line 19: | Line 19: | ||
var time = freeze.getTime() - utc.getTime(); | var time = freeze.getTime() - utc.getTime(); | ||
time = Math.floor(time / 1000); | time = Math.floor(time / 1000); | ||
- | if (time <= 1 * 3600) { | + | if (time < 0) { |
+ | var wrapper = document.getElementById("limit_wrapper"); | ||
+ | wrapper.style.color = "#f00"; | ||
+ | wrapper.innerHTML = "Time Up!"; | ||
+ | return; | ||
+ | } else if (time <= 1 * 3600) { | ||
var wrapper = document.getElementById("limit_wrapper"); | var wrapper = document.getElementById("limit_wrapper"); | ||
wrapper.style.color = "#f00"; | wrapper.style.color = "#f00"; | ||
Line 55: | Line 60: | ||
margin-left: -500px; | margin-left: -500px; | ||
margin-top: -100px; | margin-top: -100px; | ||
+ | font-size: 200px; | ||
+ | line-height: 200px; | ||
+ | text-align: center; | ||
color: #ddd; | color: #ddd; | ||
} | } | ||
Line 60: | Line 68: | ||
height : 200px; | height : 200px; | ||
width: 300px; | width: 300px; | ||
- | |||
- | |||
float:left; | float:left; | ||
text-align: right; | text-align: right; |
Revision as of 07:17, 26 September 2013
:
: