Template:Team:Edinburgh/Code

From 2013.igem.org

(Difference between revisions)
Line 225: Line 225:
<script type="text/javascript">
<script type="text/javascript">
 +
//Javascript name: My Date Time Picker
//Javascript name: My Date Time Picker
Line 307: Line 308:
vFirstDay=CalDate.getDay();
vFirstDay=CalDate.getDay();
vCalData="<tr>";
vCalData="<tr>";
-
+
if (vFirstDay==0) vFirstDay = 7;
if (vFirstDay==0) vFirstDay = 7;
 +
var strCell;
for (i=0;i<vFirstDay-1;i++)
for (i=0;i<vFirstDay-1;i++)
{
{
 +
if (vDayCount%7==6)
 +
strCell=GenCell(null,false,SaturdayColor);
 +
else if (vDayCount%7==0)
 +
strCell=GenCell(null,false,SundayColor);
 +
else
 +
strCell=GenCell(null,null,WeekDayColor);
vCalData=vCalData+GenCell();
vCalData=vCalData+GenCell();
vDayCount=vDayCount+1;
vDayCount=vDayCount+1;
Line 316: Line 324:
for (j=1;j<=Cal.GetMonDays();j++)
for (j=1;j<=Cal.GetMonDays();j++)
{
{
-
var strCell;
+
 
vDayCount=vDayCount+1;
vDayCount=vDayCount+1;

Revision as of 10:00, 29 September 2013