Team:Heidelberg/Templates/StartPage
From 2013.igem.org
(Difference between revisions)
JuliaS1992 (Talk | contribs) m |
JuliaS1992 (Talk | contribs) m |
||
Line 48: | Line 48: | ||
} | } | ||
function expand_left_navi(drop_list) { | function expand_left_navi(drop_list) { | ||
- | var | + | var list = drop_list; |
- | while ( | + | while (list.tagName !== "UL") { |
- | var | + | var list = drop_list.nextSibling; |
} | } | ||
- | var visible = | + | var visible = list.style.display; |
var drop_lists = document.getElementsByClassName("drop-navi-left"); | var drop_lists = document.getElementsByClassName("drop-navi-left"); | ||
for (var i = 0; i < drop_lists.length; i++) { | for (var i = 0; i < drop_lists.length; i++) { | ||
Line 62: | Line 62: | ||
} | } | ||
if (visible == "none") { | if (visible == "none") { | ||
- | + | list.style.display = "block"; | |
} else { | } else { | ||
- | + | list.style.display = "none"; | |
} | } | ||
} | } |
Revision as of 15:22, 16 August 2013