(6 intermediate revisions by the same user not shown) | |||
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">\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/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/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/Contribution">\n' + | ||
+ | ' <span>\n' + | ||
+ | ' Contribution\n' + | ||
+ | ' </span>\n' + | ||
+ | ' </a>\n' + | ||
+ | ' </li>\n' + | ||
+ | ' <li id="menu_Other_work">\n' + | ||
+ | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Applied_Design">\n' + | ||
+ | ' <span>\n' + | ||
+ | ' Product Design\n' + | ||
+ | ' </span>\n' + | ||
+ | ' </a>\n' + | ||
+ | ' </li>\n' + | ||
+ | ' <li id="menu_Other_work">\n' + | ||
+ | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Entrepreneurship">\n' + | ||
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Entrepreneurship\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
Line 52: | Line 76: | ||
' <ul>\n' + | ' <ul>\n' + | ||
' <li id="menu_Human_practice">\n' + | ' <li id="menu_Human_practice">\n' + | ||
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Human_Practices">\n' + |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Overview\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + | ||
' </li>\n' + | ' </li>\n' + | ||
' <li id="menu_Human_practice">\n' + | ' <li id="menu_Human_practice">\n' + | ||
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Silver">\n' + |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Silver\n' + |
+ | ' </span>\n' + | ||
+ | ' </a>\n' + | ||
+ | ' </li>\n' + | ||
+ | ' <li id="menu_Human_practice">\n' + | ||
+ | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Gold_Integrated">\n' + | ||
+ | ' <span>\n' + | ||
+ | ' Gold\n' + | ||
+ | ' </span>\n' + | ||
+ | ' </a>\n' + | ||
+ | ' </li>\n' + | ||
+ | ' <li id="menu_Human_practice">\n' + | ||
+ | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Collaborations">\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' + | ||
− | ' | + | ' EXPERIMENTS\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">\n' + |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Notebook\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/Experiments">\n' + |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Experiments\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/Protocol">\n' + |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
' <span>\n' + | ' <span>\n' + | ||
' Protocol\n' + | ' Protocol\n' + | ||
Line 129: | Line 146: | ||
' </ul>\n' + | ' </ul>\n' + | ||
' </li>\n' + | ' </li>\n' + | ||
− | // | + | // project |
− | ' <li id=" | + | ' <li id="menu_Project" class="has-sub">\n' + |
' <div>\n' + | ' <div>\n' + | ||
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' PROJECT\n' + |
' </span>\n' + | ' </span>\n' + | ||
' </div>\n' + | ' </div>\n' + | ||
' <ul>\n' + | ' <ul>\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/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/Design">\n' + |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Design\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/Results">\n' + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | ' <li id=" | + | |
− | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/ | + | |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Results\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/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/Model">\n' + |
' <span>\n' + | ' <span>\n' + | ||
− | ' | + | ' Model\n' + |
+ | ' </span>\n' + | ||
+ | ' </a>\n' + | ||
+ | ' </li>\n' + | ||
+ | ' <li id="menu_Project">\n' + | ||
+ | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Parts">\n' + | ||
+ | ' <span>\n' + | ||
+ | ' Parts\n' + | ||
' </span>\n' + | ' </span>\n' + | ||
' </a>\n' + | ' </a>\n' + |
Latest revision as of 01:33, 18 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
});