Team:Shenzhen SFLS/comm/javascripts
From 2013hs.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
$(document).ready(function () { | $(document).ready(function () { | ||
- | |||
var $menu_sub = $('<ul></ul>'); | var $menu_sub = $('<ul></ul>'); | ||
- | var _menuItem = [{ 'txt': 'Home', 'link': 'https://2013hs.igem.org/Team:Shenzhen_SFLS | + | var _menuItem = [{ 'txt': 'Home', 'link': 'https://2013hs.igem.org/Team:Shenzhen_SFLS' }, |
- | + | { 'txt': 'Team', 'link': 'https://2013hs.igem.org/Team:Shenzhen_SFLS/Team' }, | |
+ | { 'txt': 'Project', 'link': 'https://2013hs.igem.org/Team:Shenzhen_SFLS/Project' }, | ||
+ | { 'txt': 'Notebook', 'link': 'https://2013hs.igem.org/Team:Shenzhen_SFLS/Notebook' }, | ||
+ | { 'txt': 'Protocols', 'link': 'https://2013hs.igem.org/Team:Shenzhen_SFLS/Protocols' }, | ||
+ | { 'txt': 'Human practices', 'link': 'https://2013hs.igem.org/Team:Shenzhen_SFLS/Human' }]; | ||
for (var i = 0; i < _menuItem.length; i++) { | for (var i = 0; i < _menuItem.length; i++) { | ||
$menu_sub.append('<li><a href=' + _menuItem[i].link + '>' + _menuItem[i].txt + '</a></li>'); | $menu_sub.append('<li><a href=' + _menuItem[i].link + '>' + _menuItem[i].txt + '</a></li>'); | ||
} | } | ||
- | + | //alert($menu_sub); | |
$('.nav').append($menu_sub); | $('.nav').append($menu_sub); | ||
$('.nav li').hover( | $('.nav li').hover( |
Revision as of 11:52, 13 June 2013
$(document).ready(function () {
var $menu_sub = $('var _menuItem = [{ 'txt': 'Home', 'link': 'https://2013hs.igem.org/Team:Shenzhen_SFLS' }, { 'txt': 'Team', 'link': 'https://2013hs.igem.org/Team:Shenzhen_SFLS/Team' }, { 'txt': 'Project', 'link': 'https://2013hs.igem.org/Team:Shenzhen_SFLS/Project' }, { 'txt': 'Notebook', 'link': 'https://2013hs.igem.org/Team:Shenzhen_SFLS/Notebook' }, { 'txt': 'Protocols', 'link': 'https://2013hs.igem.org/Team:Shenzhen_SFLS/Protocols' }, { 'txt': 'Human practices', 'link': 'https://2013hs.igem.org/Team:Shenzhen_SFLS/Human' }];
for (var i = 0; i < _menuItem.length; i++) {$menu_sub.append('