mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
Changed menu button id, incremented version
This commit is contained in:
parent
a46bc362ee
commit
4ed1fab920
2 changed files with 3 additions and 3 deletions
4
main.js
4
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");
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue