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]; | + | console.log('length: '+ navLinks.length); |
+ | if (navLinks.length > 0) { | ||
+ | console.log(navLinks);navLinks = navLinks[0];} | ||
navLinks = navLinks.getElementsByTagName('a'); | navLinks = navLinks.getElementsByTagName('a'); | ||
Revision as of 17:49, 7 October 2014