Template:Team:Edinburgh/Code

From 2013.igem.org

(Difference between revisions)
Line 177: Line 177:
.selectedDate {
.selectedDate {
-
  background-color: #FFFF99;
+
  background-color: #FFFF99;
-
    background: none;
+
}
}
Line 412: Line 411:
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='#" + Cal.Date + "-" + Cal.Month + "\'>"+pValue +"</a></td>";
+
return "<td class='" + css_class + "'><a href=\"javascript:if(" + pValue + "!='')Cal.Date="+pValue+";  window.location.hash='#anchor1';\">"+pValue +"</a></td>";
}
}

Revision as of 16:59, 29 September 2013