Team:BYU Provo
From 2014.igem.org
(Difference between revisions)
Line 6: | Line 6: | ||
<!--main content --> | <!--main content --> | ||
<table width="70%" align="center"> | <table width="70%" align="center"> | ||
+ | |||
+ | |||
Line 160: | Line 162: | ||
</tr> | </tr> | ||
</table> | </table> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | function countdown(timestamp, format, id) | ||
+ | { | ||
+ | var newDate = new Date( ); | ||
+ | newDate.setTime(timestamp*1000); | ||
+ | |||
+ | Today = new Date(); | ||
+ | Todays_Year = Today.getFullYear(); | ||
+ | Todays_Month = Today.getMonth(); | ||
+ | //Convert both today's date and the target date into miliseconds. | ||
+ | Todays_Date = (new Date(Todays_Year, Todays_Month, Today.getDate(), Today.getHours(), Today.getMinutes(), Today.getSeconds())).getTime(); | ||
+ | Target_Date = newDate; | ||
+ | |||
+ | //Find their difference, and convert that into seconds. | ||
+ | Time_Left = Math.round((Target_Date - Todays_Date) / 1000); | ||
+ | |||
+ | if(Time_Left < 0) | ||
+ | Time_Left = 0; | ||
+ | // alert(Time_Left); | ||
+ | switch(format) | ||
+ | { | ||
+ | case 0: | ||
+ | //The simplest way to display the time left. | ||
+ | document.getElementById('countdown').innerHTML = Time_Left + ' seconds'; | ||
+ | break; | ||
+ | case 1: | ||
+ | //More datailed. | ||
+ | days = Math.floor(Time_Left / (60 * 60 * 24)); | ||
+ | Time_Left %= (60 * 60 * 24); | ||
+ | hours = Math.floor(Time_Left / (60 * 60)); | ||
+ | Time_Left %= (60 * 60); | ||
+ | minutes = Math.floor(Time_Left / 60); | ||
+ | Time_Left %= 60; | ||
+ | seconds = Time_Left; | ||
+ | if(days < 10) | ||
+ | days = '0' + days; | ||
+ | if(hours < 10) | ||
+ | hours = '0' + hours; | ||
+ | if(minutes < 10) | ||
+ | minutes = '0' + minutes; | ||
+ | if(seconds < 10) | ||
+ | seconds = '0' + seconds; | ||
+ | |||
+ | document.getElementById('kickoff_d'+id).innerHTML = days; | ||
+ | document.getElementById('kickoff_h'+id).innerHTML = hours; | ||
+ | document.getElementById('kickoff_m'+id).innerHTML = minutes; | ||
+ | document.getElementById('kickoff_s'+id).innerHTML = seconds; | ||
+ | break; | ||
+ | default: | ||
+ | document.getElementById('countdown').innerHTML = Time_Left + ' seconds'; | ||
+ | } | ||
+ | |||
+ | //Recursive call, keeps the clock ticking. | ||
+ | setTimeout('countdown(' + timestamp + ',' + format + ','+ id + ');', 1000); | ||
+ | } | ||
+ | </script> | ||
+ | |||
+ | <div class="headlineQueueHeadcol3" style="font-size: 20px;padding-top: 0px; margin-top: 0px;"> | ||
+ | <img src="http://www.ksl.com/images/team_logo/ncaa/byu.png" align="absmiddle" width="25px;" /> BYU <span style="font-size: 10px;">at</span> <img src="http://www.ksl.com/images/team_logo/ncaa/connecticut.png" align="absmiddle" width="25px;" /> Connecticut <div style="margin-top: 2px; font-size: 10px;"><table width="300px;"><tr><td width="70%">Rentschler Field, East Hartford</td><td width="30%" align="right">8/29 5:00 pm</td></table></div> | ||
+ | </div> | ||
+ | |||
+ | <div class="sdi-so"> | ||
+ | <table class="sdi-data-wide" style="width: 300px;" bgcolor="#999999" border="0" cellpadding="2" cellspacing="1"> | ||
+ | <tbody> | ||
+ | <tr><td colspan="3" class="sdi-datacell" style="background-color: #EEEEEE;"> | ||
+ | <div style="color: black; font-size: 14px; width: 300px;"> | ||
+ | <div class="kickoffvals1" style="float: left;">Days:</div> | ||
+ | <div id="kickoff_d84" class="kickoffvals" style="float: left;"></div> | ||
+ | <div class="kickoffvals1" style="float: left;">Hours:</div> | ||
+ | <div id="kickoff_h84" class="kickoffvals" style="float: left;"></div> | ||
+ | <div class="kickoffvals1" style="float: left;">Mins:</div> | ||
+ | <div id="kickoff_m84" class="kickoffvals" style="float: left;"></div> | ||
+ | <div class="kickoffvals1" style="float: left;">Sec:</div> | ||
+ | <div id="kickoff_s84" class="kickoffvals" style="float: left;"></div> | ||
+ | </div> | ||
+ | </tr> | ||
+ | </tbody></table> | ||
+ | <div style="margin-top: 3px;"><a href="http://www.ksl.com/index.php?nid=925&page=_sport_football_competition:42816/sport/ncaaf"> Game Center</a> | <a href="http://www.ksl.com/index.php?nid=918&page=_sport_football_team:33">BYU Football Schedule</a></div> | ||
+ | <div class="sdi-spacerquarter"></div></div> | ||
+ | <script type="text/javascript">countdown(1409353200, 1, 84);</script> |
Revision as of 13:27, 13 August 2014
WELCOME TO The BYU iGEM Team 2014!Wastewater Treatment Optimization Team |
||||||||||||
| ||||||||||||
Requirements | ||||||||||||
Please be sure to keep these links, your audience will want to find your: |
There are a few wiki requirements teams must follow:
Visit the Wiki How To page for a complete list of requirements, tips and other useful information. |
|||||||||||
Tips | ||||||||||||
We are currently working on providing teams with some easy to use design templates.
For a full wiki list, you can visit iGEM 2013 web sites and iGEM 2012 web sites lists. |
This wiki will be your team’s first interaction with the rest of the world, so here are a few tips to help you get started:
|
BYU at Connecticut
Rentschler Field, East Hartford | 8/29 5:00 pm |
Days:
Hours:
Mins:
Sec:
|