From 784e687cd7ebd63e60392633f6b41a4c92f0abe8 Mon Sep 17 00:00:00 2001
From: Malte Neugebauer <malte.neugebauer@hs-bochum.de>
Date: Tue, 22 Nov 2022 18:00:00 +0100
Subject: [PATCH] Removed irrelevant console output from last function
 optimization.

---
 script/alquiz.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/script/alquiz.js b/script/alquiz.js
index 967bc9c..fa9a200 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);
-- 
GitLab