diff --git a/frame.js b/frame.js index 3eb75e5..772c9bd 100644 --- a/frame.js +++ b/frame.js @@ -21,7 +21,7 @@ // ==UserScript== // @name Moodle/Elearning/KMOOC test help -// @version 1.6.2.5 +// @version 1.6.2.6 // @description Online Moodle/Elearning/KMOOC test help // @author YourFriendlyNeighborhoodDealer // @match https://elearning.uni-obuda.hu/main/* diff --git a/main.js b/main.js index 7b1753a..852baf5 100644 --- a/main.js +++ b/main.js @@ -1044,7 +1044,7 @@ function HandleUI(url, count, subjCount) { if (!newVersion && !loaded) // -------------------------------------------------------------------------------------------------------------- { greetMsg = - "Hiba a @resource tagnál, vagy a fileval van gond! (Lehet át lett helyezve, vagy üres.) Vagy válaszd a netes adatok használatát menüben. Ellenőrizd az elérési utat, vagy hogy a Tampermonkey bővítmény eléri-e a fájlokat. Ha netes forrást használsz, akkor nem elérhető a szerver! Segítségért kattints!"; + "Hiba a @resource tagnál, vagy a fileval van gond! (Lehet át lett helyezve, vagy üres, vagy nincs tárgy kiválasztva) Vagy válaszd a netes adatok használatát menüben. Ellenőrizd az elérési utat, vagy hogy a Tampermonkey bővítmény eléri-e a fájlokat. Ha netes forrást használsz, akkor nem elérhető a szerver! Segítségért kattints!"; } var showSplash = (GM_getValue("showSplash") == undefined) || GM_getValue("showSplash"); // getting value, if splash screen should be shown. Its true, if its undefined, or true // no new version, everything loaded, and show splash is enabled. otherwise something happened, so showing it @@ -1760,7 +1760,6 @@ function ShowMenu() { // mainDiv.style.left = (window.innerWidth - width) / 2 + 'px'; var menuButtonDiv = document.createElement("div"); - menuButtonDiv.setAttribute("id", "HelperMenuButton"); menuButtonDiv.style.width = buttonWidth + 'px'; menuButtonDiv.style.height = buttonHeight + 'px'; menuButtonDiv.style.top = (window.innerHeight - buttonHeight * 1.5) + 'px'; @@ -1785,6 +1784,7 @@ function ShowMenu() { menuButton.style.height = buttonHeight - 20 + 'px'; menuButton.style.background = "#222d32"; // background color menuButton.style.color = "#ffffff"; // background color + menuButton.setAttribute("id", "HelperMenuButton");