Template:UCSF/Header
From 2010.igem.org
(Difference between revisions)
Line 85: | Line 85: | ||
var MW = temp.getElementsByClassName('mw-headline'); | var MW = temp.getElementsByClassName('mw-headline'); | ||
var B = MW.getElementsByClassName('b'); | var B = MW.getElementsByClassName('b'); | ||
+ | var result; | ||
if(B.length==0){ | if(B.length==0){ | ||
- | + | result = MW[0].innerHTML; | |
} | } | ||
- | else{ | + | else{result = B[0].innerHTML;} |
//alert(result); | //alert(result); | ||
tmp.innerHTML = result; | tmp.innerHTML = result; |
Revision as of 08:04, 10 October 2010