Loading ui/js/MaxTEI.js +2 −2 Original line number Diff line number Diff line Loading @@ -122,11 +122,11 @@ class MaxTEI extends AbstractMax { //local function : find next or previous nav link let nextOrPrevious = function (step) { let current = document.getElementById("navigation-tool").querySelector('button').getAttribute("data-target").replace("selected-", "");//remove 'selected' prefix let newCurrent = current.replaceAll(".", "\\.") let links = document.getElementById('dropdown-navigation').querySelectorAll('li'); let position = -1; console.log(links); links.forEach((link, index) => { if(link.dataset.target === newCurrent){ if(link.dataset.target === current){ position = index; } }) Loading Loading
ui/js/MaxTEI.js +2 −2 Original line number Diff line number Diff line Loading @@ -122,11 +122,11 @@ class MaxTEI extends AbstractMax { //local function : find next or previous nav link let nextOrPrevious = function (step) { let current = document.getElementById("navigation-tool").querySelector('button').getAttribute("data-target").replace("selected-", "");//remove 'selected' prefix let newCurrent = current.replaceAll(".", "\\.") let links = document.getElementById('dropdown-navigation').querySelectorAll('li'); let position = -1; console.log(links); links.forEach((link, index) => { if(link.dataset.target === newCurrent){ if(link.dataset.target === current){ position = index; } }) Loading