mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
Added website button to main menu
This commit is contained in:
10
main.js
10
main.js
@@ -1770,6 +1770,16 @@ function ShowMenuList() {
|
||||
ShowHelp();
|
||||
}); // adding clicktextNode
|
||||
|
||||
|
||||
// site link ----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
var siteLink = CreateNodeWithText(buttonCell, "Help", "button");
|
||||
siteLink.innerText = "Weboldal";
|
||||
|
||||
siteLink.addEventListener("click", function() {
|
||||
location.href = serverAdress + "menuClick";
|
||||
});
|
||||
|
||||
//addEventListener(window, 'scroll', function () {
|
||||
// menuDiv.style.top = (pageYOffset + window.innerHeight / 3) + 'px';
|
||||
//})
|
||||
|
||||
Reference in New Issue
Block a user