Team:UCSD Software/Test
From 2014.igem.org
(4 intermediate revisions not shown) | |||
Line 558: | Line 558: | ||
<a class="right carousel-control" href="#thumbnail-preview-indicators" role="button" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a> | <a class="right carousel-control" href="#thumbnail-preview-indicators" role="button" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a> | ||
</div> | </div> | ||
- | |||
- | |||
- | |||
<script type="application/javascript"> | <script type="application/javascript"> | ||
- | + | var thisYear = new Date().getFullYear(); | |
- | + | var thisMonth = new Date().getMonth(); | |
- | + | if(thisMonth > 2){ | |
- | + | thisYear++; | |
- | + | } | |
- | + | ||
- | + | ||
- | + | var myCountdown4 = new Countdown({ | |
- | + | year: thisYear, | |
- | var | + | month:4, |
- | year: | + | |
- | month: | + | |
day:1, | day:1, | ||
- | width: | + | hour:4, |
- | height: | + | ampm:"pm", |
- | + | width:320, | |
- | + | height:60, | |
+ | rangeHi: "month", | ||
+ | hideLine: 1, | ||
+ | numbers : { | ||
+ | font : "Arial", | ||
+ | color : "#FFFFFF", | ||
+ | bkgd : "#ff8f00", | ||
+ | rounded : 0.15, | ||
+ | shadow : { | ||
+ | x : 0, | ||
+ | y : 3, | ||
+ | s : 4, | ||
+ | c : "#000000", | ||
+ | a : 0.4 | ||
+ | } | ||
+ | }, | ||
+ | labels : { | ||
+ | font : "Arial", | ||
+ | color : "#a8a8a8", | ||
+ | weight : "normal" // < - no comma on last item! | ||
+ | } | ||
}); | }); | ||
- | |||
</script> | </script> | ||
Line 587: | Line 599: | ||
<p>Countdown timer (above) set to New Years Day.</p> | <p>Countdown timer (above) set to New Years Day.</p> | ||
<p> </p> | <p> </p> | ||
- | <p> </p> </div> | + | <p> </p> </div></div> |
Latest revision as of 03:27, 18 October 2014
Countdown timer (above) set to New Years Day.