Team:Heidelberg/Parts

From 2010.igem.org

(Difference between revisions)
Line 12: Line 12:
switch (d.getElementsByTagName("thead")[0]) {
switch (d.getElementsByTagName("thead")[0]) {
-
case undefined:
+
case undefined:
-
setTimeout("start()",200);
+
setTimeout("start()",200);
-
break;
+
break;
-
 
+
-
default:
+
default:
-
formatparts();
+
formatparts();
-
break;
+
break;
}
}
}
}
-
 
-
 
function formatparts() {
function formatparts() {
Line 28: Line 26:
var d = document.getElementById("groupparts");
var d = document.getElementById("groupparts");
var dbodytr = d.getElementsByTagName("tbody")[0].getElementsByTagName("tr");
var dbodytr = d.getElementsByTagName("tbody")[0].getElementsByTagName("tr");
-
 
var lasttd = dbodytr[0].getElementsByTagName("td").length;
var lasttd = dbodytr[0].getElementsByTagName("td").length;
-
 
var designertd = lasttd - 2;
var designertd = lasttd - 2;
-
 
var rowscount = dbodytr.length
var rowscount = dbodytr.length
Line 38: Line 33:
for (var i=0;i<rowscount;i++) {
for (var i=0;i<rowscount;i++) {
-
 
+
dbodytr[i].getElementsByTagName("td")[designertd].style.display ="none"
-
dbodytr[i].getElementsByTagName("td")[designertd].style.display ="none"
+
}
}

Revision as of 15:31, 23 October 2010


Parts

<groupparts>iGEM010 Heidelberg</groupparts>