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=\"https://2009.igem.org/Team:HKU-HKBU/" + pageName + "\">" + majorTabNames[i].toUpperCase() + "</a>\ | + | <a href=\"" + ((pageName == "parts") ? "http://partsregistry.org/cgi/partsdb/pgroup.cgi?pgroup=iGEM2009&group=HKU-HKBU" : ("https://2009.igem.org/Team:HKU-HKBU/" + pageName)) + "\">" + majorTabNames[i].toUpperCase() + "</a>\ |
</div>"); | </div>"); | ||
} | } |
Revision as of 03:52, 13 October 2009