Template:Team:HKU-HKBU/script.js
From 2009.igem.org
(Difference between revisions)
YinanZhang (Talk | contribs) |
YinanZhang (Talk | contribs) |
||
Line 84: | Line 84: | ||
document.write("\ | document.write("\ | ||
<div class=\"linktab" + ((document.URL.indexOf("/" + pageName) != -1 || document.URL + pageName == "https://2009.igem.org/Team:HKU-HKBU" + "home") ? "sel" : "") + "\">\ | <div class=\"linktab" + ((document.URL.indexOf("/" + pageName) != -1 || document.URL + pageName == "https://2009.igem.org/Team:HKU-HKBU" + "home") ? "sel" : "") + "\">\ | ||
- | <a href= | + | <a href=" + ((pageName == "parts") ? ("\"http://partsregistry.org/cgi/partsdb/pgroup.cgi?pgroup=iGEM2009&group=HKU-HKBU\" target=\"_blank\"") : ("\"https://2009.igem.org/Team:HKU-HKBU/" + pageName + "\"")) + ">" + majorTabNames[i].toUpperCase() + "</a>\ |
</div>"); | </div>"); | ||
} | } |
Revision as of 12:46, 14 October 2009