From bb031c6b287c9ce50e22e6f23ffc5dd71b6d26ed Mon Sep 17 00:00:00 2001 From: bluesaxman Date: Tue, 29 Sep 2020 22:17:15 +0000 Subject: [PATCH] Added first few things to Options. --- UI/index.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/UI/index.html b/UI/index.html index 69e8c0c..341e909 100644 --- a/UI/index.html +++ b/UI/index.html @@ -140,6 +140,18 @@ function updateEvent() { }); }, "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() {