Template:Team:HKU-HKBU/script.js

From 2009.igem.org

(Difference between revisions)
Line 83: Line 83:
       var pageName = majorTabNames[i].replace(/ /g, "_").toLowerCase();
       var pageName = majorTabNames[i].replace(/ /g, "_").toLowerCase();
       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 == "https://2009.igem.org/Team:HKU-HKBU") ? "sel" : "") + "\">\
           <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>\
           <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 02:52, 16 October 2009