Team:Heidelberg/Top
From 2010.igem.org
(Difference between revisions)
Line 107: | Line 107: | ||
</style> | </style> | ||
+ | |||
+ | |||
+ | <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> | ||
</head> | </head> |
Revision as of 03:10, 27 October 2010