Template:Team:KULeuven/Notebook/DayNavigator
From 2009.igem.org
(Difference between revisions)
(2 intermediate revisions not shown) | |||
Line 4: | Line 4: | ||
<!-- | <!-- | ||
today = pageDate(); | today = pageDate(); | ||
- | + | dmin3 = dateDaysFrom(today, -3); | |
- | + | dmin2 = dateDaysFrom(today, -2); | |
- | + | dmin1 = dateDaysFrom(today, -1); | |
- | + | dplus1 = dateDaysFrom(today, 1); | |
- | + | dplus2 = dateDaysFrom(today, 2); | |
- | + | dplus3 = dateDaysFrom(today, 3); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
--> | --> | ||
</script> | </script> | ||
Line 20: | Line 17: | ||
<table id='NBNav'> | <table id='NBNav'> | ||
<tr> | <tr> | ||
- | + | <script type="text/javascript"> | |
- | <th> | + | <!-- |
- | + | document.write("<th class='"+dayNames[dmin3.getDay()]+"'>"+dayNames[dmin3.getDay()]+"</th>"); | |
+ | document.write("<th class='"+dayNames[dmin2.getDay()]+"'>"+dayNames[dmin2.getDay()]+"</th>"); | ||
+ | document.write("<th class='"+dayNames[dmin1.getDay()]+"'>"+dayNames[dmin1.getDay()]+"</th>"); | ||
+ | document.write("<th class='"+dayNames[today.getDay()]+"'>"+dayNames[today.getDay()]+"</th>"); | ||
+ | document.write("<th class='"+dayNames[dplus1.getDay()]+"'>"+dayNames[dplus1.getDay()]+"</th>"); | ||
+ | document.write("<th class='"+dayNames[dplus2.getDay()]+"'>"+dayNames[dplus2.getDay()]+"</th>"); | ||
+ | document.write("<th class='"+dayNames[dplus3.getDay()]+"'>"+dayNames[dplus3.getDay()]+"</th>"); | ||
+ | --> | ||
+ | </script> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
- | <script type="text/javascript">printDayCell( | + | <script type="text/javascript">printDayCell(dmin3, dmin3.getDate(), today);</script> |
- | <script type="text/javascript">printDayCell( | + | <script type="text/javascript">printDayCell(dmin2, dmin2.getDate(), today);</script> |
- | <script type="text/javascript">printDayCell( | + | <script type="text/javascript">printDayCell(dmin1, dmin1.getDate(), today);</script> |
- | <script type="text/javascript">printDayCell( | + | <script type="text/javascript">printDayCell(today, today.getDate(), today);</script> |
- | <script type="text/javascript">printDayCell( | + | <script type="text/javascript">printDayCell(dplus1, dplus1.getDate(), today);</script> |
- | <script type="text/javascript">printDayCell( | + | <script type="text/javascript">printDayCell(dplus2, dplus2.getDate(), today);</script> |
- | <script type="text/javascript">printDayCell( | + | <script type="text/javascript">printDayCell(dplus3, dplus3.getDate(), today);</script> |
</tr> | </tr> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
<!-- | <!-- | ||
- | + | m = monthNames[today.getMonth()]; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | document.write('<tr><th class=" | + | document.write('<tr><th class="center" colspan=7>'+m+'</th></tr>'); |
--> | --> | ||
</script> | </script> | ||
Line 50: | Line 49: | ||
</table> | </table> | ||
</center> | </center> | ||
+ | |||
</html> | </html> |
Latest revision as of 09:32, 17 July 2009