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() {