Added first few things to Options.
This commit is contained in:
parent
5707488818
commit
bb031c6b28
@ -140,6 +140,18 @@ function updateEvent() {
|
|||||||
});
|
});
|
||||||
}, "add_button", "li");
|
}, "add_button", "li");
|
||||||
}
|
}
|
||||||
|
if (window.UI.menu.options.button.checked) {
|
||||||
|
elementPlace("#display","options",null,"div");
|
||||||
|
buttonAdd("#options", null, "Invite", function () {
|
||||||
|
var invite = window.location.href;
|
||||||
|
navigator.clipboard.writeText(invite).then(function () {
|
||||||
|
window.alert("Invite link copied")});
|
||||||
|
}, null, "div");
|
||||||
|
buttonAdd("#options", null, "Leave Game", function () {
|
||||||
|
window.gameSession.close(4001,"User is leaving");
|
||||||
|
window.location.search = "";
|
||||||
|
}, null, "div");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function startGameSession() {
|
function startGameSession() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user