Team:Heidelberg/Key

From 2010.igem.org

(Difference between revisions)
Line 241: Line 241:
}
}
window.onload=startList;
window.onload=startList;
 +
</script>
 +
 +
 +
<script type="text/javascript">
 +
removesqBracket = function() {
 +
 +
var arr = document.getElementsByTagName("span");
 +
var count = arr.length;
 +
 +
for (var i=0;i<count;i++) {
 +
var arri = arr[i];
 +
 +
if(arri.className== "editsection") {
 +
var arritext = arri.innerHTML
 +
arritext = arritext.replace(/^\[/, "");
 +
document.getElementsByTagName("span")[i].innerHTML = arritext.replace(/\]$/, "");
 +
}
 +
}}
 +
window.onload = removesqBracket;
</script>
</script>

Revision as of 03:48, 27 October 2010