Template:Team:HKU-HKBU/script.js

From 2009.igem.org

(Difference between revisions)
Line 27: Line 27:
       <div class=\"seper\" style=\"width:" + seperWidth + "px\"></div>\
       <div class=\"seper\" style=\"width:" + seperWidth + "px\"></div>\
       <div class=\"tab" + ((document.URL.indexOf(pageName) != -1) ? "sel" : "") + "\" style=\"width:" + tabWidths[i] + "px\">\
       <div class=\"tab" + ((document.URL.indexOf(pageName) != -1) ? "sel" : "") + "\" style=\"width:" + tabWidths[i] + "px\">\
-
         <a href=\"https://2009.igem.org/Team:HKU-HKBU/" + pageName + ".html\">" + tabNames[i] + "</a>\
+
         <a href=\"https://2009.igem.org/Team:HKU-HKBU/" + pageName + "\">" + tabNames[i] + "</a>\
       </div>");
       </div>");
   }
   }
Line 75: Line 75:
           <div class=\"seper\" style=\"height:" + minorSeperHeight + "px\"></div>\
           <div class=\"seper\" style=\"height:" + minorSeperHeight + "px\"></div>\
           <div class=\"linktab" + ((document.URL.indexOf(pageName) != -1) ? "sel" : "") + "\">\
           <div class=\"linktab" + ((document.URL.indexOf(pageName) != -1) ? "sel" : "") + "\">\
-
             <a href=\"https://2009.igem.org/Team:HKU-HKBU/" + pageName + ".html\">" + minorTabNames[j] + "</a>\
+
             <a href=\"https://2009.igem.org/Team:HKU-HKBU/" + pageName + "\">" + minorTabNames[j] + "</a>\
           </div>");
           </div>");
         ++j;
         ++j;
Line 83: Line 83:
       document.write("\
       document.write("\
         <div class=\"linktab" + ((document.URL.indexOf(pageName) != -1) ? "sel" : "") + "\">\
         <div class=\"linktab" + ((document.URL.indexOf(pageName) != -1) ? "sel" : "") + "\">\
-
           <a href=\"https://2009.igem.org/Team:HKU-HKBU/" + pageName + ".html\">" + majorTabNames[i].toUpperCase() + "</a>\
+
           <a href=\"https://2009.igem.org/Team:HKU-HKBU/" + pageName + "\">" + majorTabNames[i].toUpperCase() + "</a>\
         </div>");
         </div>");
     }
     }

Revision as of 12:59, 8 October 2009