diff --git a/script/alquiz.js b/script/alquiz.js index 967bc9c1def687e8a5420eb3163252c90ba3e11b..fa9a200d2b0e07b4cfa35702384674fc74244d0c 100644 --- a/script/alquiz.js +++ b/script/alquiz.js @@ -972,7 +972,8 @@ function tutorialFocusElement(elem) { let navbar = document.querySelector("nav"); offset = pageElementWHS.scrollTop - (!navbar ? 0 : navbar.getBoundingClientRect().height); pageHeight = pageElementWHS.scrollHeight; - console.log("we are in WHS-Moodle, offset: "+offset+", pageHeight: "+pageHeight); + console.log("we are probably in WHS-Moodle"); + //console.log("offset: "+offset+", pageHeight: "+pageHeight); bodyNode = pageElementWHS; } @@ -981,7 +982,7 @@ function tutorialFocusElement(elem) { userFocusBottom.style.top = Math.ceil(position.bottom+offset+20)+"px"; userFocusBottom.style.height=Math.ceil(pageHeight-(position.bottom+offset+20))+"px"; - console.log(userFocusTop.style.height,userFocusBottom.style.top,userFocusBottom.style.height); + //console.log(userFocusTop.style.height,userFocusBottom.style.top,userFocusBottom.style.height); bodyNode.appendChild(userFocusTop); bodyNode.appendChild(userFocusBottom);