Added website button to main menu

This commit is contained in:
YourFriendlyNeighborhoodDealer 2018-12-05 15:45:57 +01:00
parent 96ea28e208
commit 27e3448a18
3 changed files with 22 additions and 33 deletions

10
main.js
View file

@ -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';
//})