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:
parent
96ea28e208
commit
27e3448a18
3 changed files with 22 additions and 33 deletions
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';
|
||||
//})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue