Team:Freiburg/Templates/html/inlinejs.html

From 2014.igem.org

(Difference between revisions)
Line 10: Line 10:
   }
   }
   if (navLinks.length > 0) navLinks = navLinks[0];
   if (navLinks.length > 0) navLinks = navLinks[0];
 +
  if (DEBUG) {
 +
    console.log('First nav element');
 +
    console.dir(navLinks);
 +
  }
   navLinks = navLinks.getElementsByTagName('a');
   navLinks = navLinks.getElementsByTagName('a');
 +
  if (DEBUG) {
 +
    console.log('Anchor Elements in the first nav element');
 +
    console.dir(navLinks);
 +
  }
   // check all links' href attributes for equality with url
   // check all links' href attributes for equality with url

Revision as of 17:42, 7 October 2014