diff --git a/en.htm b/en.htm index 7dd6c35..2ffe541 100755 --- a/en.htm +++ b/en.htm @@ -176,11 +176,11 @@

Inner Navigation

-
    -
  1. This tool is provided
  2. -
  3. Without warranty, guarantee
  4. -
  5. Or much in the way of explanation -
  6. Erase your hard drive.
  7. +
      +
    1. This tool is provided
    2. + +
    @@ -207,4 +207,4 @@ - \ No newline at end of file + diff --git a/scripts/script.js b/scripts/script.js index 159ebca..5cc5967 100755 --- a/scripts/script.js +++ b/scripts/script.js @@ -9,7 +9,7 @@ for (i = 0; i < l; i++) { slideList.push({ id: slides[i].id, - hasInnerNavigation: null !== slides[i].querySelector('.inner') + hasInnerNavigation: null !== slides[i].querySelector('.next') }); } @@ -127,13 +127,13 @@ // Shortcut for slides without inner navigation if (true !== slideList[slideNumber].hasInnerNavigation) { return -1; } - var activeNodes = document.querySelectorAll(getSlideHash(slideNumber) + ' .active'), - // NOTE: we assume there is no other elements in inner navigation - node = activeNodes[activeNodes.length - 1].nextElementSibling; + var nextNodes = document.querySelectorAll(getSlideHash(slideNumber) + ' .next:not(.active)'), + node; - if (null !== node) { + if (0 !== nextNodes.length) { + node = nextNodes[0]; node.classList.add('active'); - return activeNodes.length + 1; + return nextNodes.length - 1; } else { return -1; } diff --git a/themes/ribbon/styles/style.css b/themes/ribbon/styles/style.css index 23b0e6a..7638f7e 100644 --- a/themes/ribbon/styles/style.css +++ b/themes/ribbon/styles/style.css @@ -394,10 +394,10 @@ BODY { } /* Inner Navigation */ -.full .inner > * { +.full .next { opacity:0; } -.full .inner > .active { +.full .next.active { opacity:1; -webkit-transition:opacity 0.5s linear; -moz-transition:opacity 0.5s linear; @@ -428,4 +428,4 @@ BODY { } .full .progress-off { z-index:1; - } \ No newline at end of file + }