Team:Uppsala/synbioday
From 2013.igem.org
(Difference between revisions)
Line 67: | Line 67: | ||
var minutes = Math.floor((distance % h) / min); | var minutes = Math.floor((distance % h) / min); | ||
var seconds = Math.floor((distance % min) / sec); | var seconds = Math.floor((distance % min) / sec); | ||
- | + | var output = '<table class="timer"><td class="time">' + days + '</br>day</td><td class="space">:</td><td class="time">' + hours + '</br>hour</td><td class="space">:</td><td class="time">' + minutes +'</br>min</td><td class="space">:</td><td class="time">' + seconds +'</br>sec</td></table>'; | |
document.getElementById('countdown').innerHTML = output; | document.getElementById('countdown').innerHTML = output; | ||
Line 147: | Line 147: | ||
<div id="main_content"> | <div id="main_content"> | ||
- | <div id="countdown"></div> | + | <div id="countdown"></div> |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</div> | </div> | ||
Revision as of 14:01, 17 August 2013