Template:Team:Edinburgh/Code
From 2013.igem.org
(Difference between revisions)
Hristianita (Talk | contribs) |
Hristianita (Talk | contribs) |
||
Line 254: | Line 254: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | |||
//Javascript name: My Date Time Picker | //Javascript name: My Date Time Picker | ||
Line 327: | Line 326: | ||
{ | { | ||
if (vDayCount%7==6) | if (vDayCount%7==6) | ||
- | vCalData += GenCell( | + | vCalData += GenCell("","saturday"); |
else if (vDayCount%7==0) | else if (vDayCount%7==0) | ||
- | vCalData += GenCell( | + | vCalData += GenCell("","sunday"); |
else | else | ||
- | vCalData += GenCell( | + | vCalData += GenCell("","weekday"); |
vDayCount=vDayCount+1; | vDayCount=vDayCount+1; | ||
} | } | ||
Line 366: | Line 365: | ||
function GenCell(pValue, css_class)//Generate table cell with value | function GenCell(pValue, css_class)//Generate table cell with value | ||
{ | { | ||
- | return "<td class='" + css_class + "'><a href=\"javascript:if(" + | + | return "<td class='" + css_class + "'><a href=\"javascript:if(" + pValue + "!="")Cal.Date="+pValue+"; RenderCal();\">"+pValue +"</a></td>"; |
} | } | ||
Revision as of 10:33, 29 September 2013