Team:EPF-Lausanne/Template/SubMenu
From 2012.igem.org
(Difference between revisions)
Line 25: | Line 25: | ||
var sub = $(".sub-menu .simple-navi"); | var sub = $(".sub-menu .simple-navi"); | ||
- | sub.append($("<li>").attr("class", "left")); | + | sub.append($("<li>").attr("class", "left").append($("<span>"))); |
- | for(var i = 0; i < menus[menu]; i++){ | + | for(var i = 0; i < menus[menu].length; i++){ |
sub.append($("<li>") | sub.append($("<li>") | ||
.append($("<a>") | .append($("<a>") | ||
Line 34: | Line 34: | ||
} | } | ||
- | sub.append($("<li>").attr("class", " | + | sub.append($("<li>").attr("class", "right").append($("<span>"))); |
} | } | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 16:20, 12 September 2012