Line 5: | Line 5: | ||
// Menu is ordered right to left | // Menu is ordered right to left | ||
' <ul>\n' + | ' <ul>\n' + | ||
− | // | + | // Team |
− | ' <li id=" | + | ' <li id="menu_Team" class="has-sub">\n' + |
' <div>\n' + | ' <div>\n' + | ||
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' TEAM\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </div>\n' + | ' </div>\n' + | ||
' <ul>\n' + | ' <ul>\n' + | ||
− | ' <li id=" | + | ' <li id="menu_Members">\n' + |
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Team/Members">\n' + |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Members\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
' </li>\n' + | ' </li>\n' + | ||
− | ' <li id=" | + | ' <li id="menu_Attributions">\n' + |
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Team/Attributions">\n' + |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Attributions\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
' </li>\n' + | ' </li>\n' + | ||
' <li id="menu_Judging">\n' + | ' <li id="menu_Judging">\n' + | ||
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Team/Judging">\n' + |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Judging\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
' </li>\n' + | ' </li>\n' + | ||
− | ' <li id=" | + | ' </ul>\n' + |
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | ' </li>\n' + |
+ | // Other work | ||
+ | ' <li id="menu_Other_work" class="has-sub">\n' + | ||
+ | ' <div>\n' + | ||
+ | ' <span>\n' + | ||
+ | ' OTHER WORK\n' + | ||
+ | ' </span>\n' + | ||
+ | ' </div>\n' + | ||
+ | ' <ul>\n' + | ||
+ | ' <li id="menu_Other_work">\n' + | ||
+ | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Other_work/Interlab">\n' + | ||
' <span>\n' + | ' <span>\n' + | ||
' Interlab\n' + | ' Interlab\n' + | ||
+ | ' </span>\n' + | ||
+ | ' </a>\n' + | ||
+ | ' </li>\n' + | ||
+ | ' <li id="menu_Other_work">\n' + | ||
+ | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Other_work/Contribution">\n' + | ||
+ | ' <span>\n' + | ||
+ | ' Contribution\n' + | ||
+ | ' </span>\n' + | ||
+ | ' </a>\n' + | ||
+ | ' </li>\n' + | ||
+ | ' <li id="menu_Improve">\n' + | ||
+ | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Other_work/Improve">\n' + | ||
+ | ' <span>\n' + | ||
+ | ' Improve\n' + | ||
+ | ' </span>\n' + | ||
+ | ' </a>\n' + | ||
+ | ' </li>\n' + | ||
+ | ' <li id="menu_Other_Safety">\n' + | ||
+ | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Other_work/Safety">\n' + | ||
+ | ' <span>\n' + | ||
+ | ' Safety\n' + | ||
+ | ' </span>\n' + | ||
+ | ' </a>\n' + | ||
+ | ' </li>\n' + | ||
+ | ' <li id="menu_Other_work">\n' + | ||
+ | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Other_work/Measurement">\n' + | ||
+ | ' <span>\n' + | ||
+ | ' Measurement\n' + | ||
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
Line 54: | Line 92: | ||
' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Human_practice/Investigation">\n' + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Human_practice/Investigation">\n' + | ||
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Overview\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
Line 61: | Line 99: | ||
' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Human_practice/Publicity">\n' + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Human_practice/Publicity">\n' + | ||
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Collaborations\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
Line 77: | Line 115: | ||
' </a>\n' + | ' </a>\n' + | ||
' </li>\n' + | ' </li>\n' + | ||
− | // | + | // notebook |
− | ' <li id=" | + | ' <li id="menu_Notebook" class="has-sub">\n' + |
' <div>\n' + | ' <div>\n' + | ||
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' NOTEBOOK\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </div>\n' + | ' </div>\n' + | ||
' <ul>\n' + | ' <ul>\n' + | ||
− | ' <li id=" | + | ' <li id="menu_Notebook">\n' + |
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Notebook/Notebook">\n' + |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Background\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
' </li>\n' + | ' </li>\n' + | ||
− | ' <li id=" | + | ' <li id="menu_Notebook">\n' + |
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Description/Project_overview">\n' + |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Experiments\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
' </li>\n' + | ' </li>\n' + | ||
− | ' <li id=" | + | ' </ul>\n' + |
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | ' </li>\n' + |
+ | // project | ||
+ | ' <li id="menu_Project" class="has-sub">\n' + | ||
+ | ' <div>\n' + | ||
+ | ' <span>\n' + | ||
+ | ' PROJECT\n' + | ||
+ | ' </span>\n' + | ||
+ | ' </div>\n' + | ||
+ | ' <ul>\n' + | ||
+ | ' <li id="menu_Project">\n' + | ||
+ | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Project/Description">\n' + | ||
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Description\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
' </li>\n' + | ' </li>\n' + | ||
− | ' <li id=" | + | ' <li id="menu_Project">\n' + |
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Project/Design">\n' + |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Design\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
' </li>\n' + | ' </li>\n' + | ||
− | ' <li id=" | + | ' <li id="menu_Project">\n' + |
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Project/Demonstrate">\n' + |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Demonstrate\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
' </li>\n' + | ' </li>\n' + | ||
− | ' <li id=" | + | ' <li id="menu_Project">\n' + |
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Project/Results">\n' + |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Results\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
' </li>\n' + | ' </li>\n' + | ||
− | + | ' <li id="menu_Project">\n' + | |
− | + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Project/Model">\n' + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | ' <li id=" | + | |
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Model\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
' </li>\n' + | ' </li>\n' + | ||
− | ' <li id=" | + | ' <li id="menu_Project">\n' + |
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Project/result">\n' + |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Overview\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
' </li>\n' + | ' </li>\n' + | ||
− | + | ' <li id="menu_Project">\n' + | |
− | + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Project/result">\n' + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | ' <li id=" | + | |
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Parts\n' + |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + |
Revision as of 22:37, 13 October 2018
$(function () {
var menu = $("#menu"); // Dynamically append the menu to the menu id on document readymenu.append(' '
); menu.find("#menu_" + menu.attr("attribute")).addClass("active"); // Adds the active class to the correct element
});