Team:Freiburg/Templates/html/inlinejs.html
From 2014.igem.org
(Difference between revisions)
Line 5: | Line 5: | ||
// grab navigation links | // grab navigation links | ||
var navLinks = document.getElementsByTagName('nav'); | var navLinks = document.getElementsByTagName('nav'); | ||
- | + | if (navLinks.length > 0) navLinks = navLinks[0]; | |
- | + | ||
- | + | ||
- | + | ||
- | if (navLinks.length > 0) navLinks = navLinks | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
navLinks = navLinks.getElementsByTagName('a'); | navLinks = navLinks.getElementsByTagName('a'); | ||
- | |||
- | |||
- | |||
- | |||
// check all links' href attributes for equality with url | // check all links' href attributes for equality with url |
Revision as of 17:47, 7 October 2014