From 9ba153f2255544dda71ebf92cc48ded91dc5f0f1 Mon Sep 17 00:00:00 2001 From: Andrew Charneski Date: Sun, 26 Nov 2023 22:33:54 -0500 Subject: [PATCH] about menu --- webui/src/main/resources/application/index.html | 8 +++++++- webui/src/main/resources/application/main.js | 17 ++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/webui/src/main/resources/application/index.html b/webui/src/main/resources/application/index.html index e0a05220..eec4f41f 100644 --- a/webui/src/main/resources/application/index.html +++ b/webui/src/main/resources/application/index.html @@ -25,7 +25,6 @@
Home Session List - +
diff --git a/webui/src/main/resources/application/main.js b/webui/src/main/resources/application/main.js index 773eb608..890c0cea 100644 --- a/webui/src/main/resources/application/main.js +++ b/webui/src/main/resources/application/main.js @@ -259,6 +259,21 @@ document.addEventListener('DOMContentLoaded', () => { .catch(error => { console.error('There was a problem with the fetch operation:', error); }); - +/* + + Privacy Policy + Terms of Service + */ + // Get the privacy and terms links + const privacyLink = document.getElementById('privacy'); + const tosLink = document.getElementById('tos'); + if (privacyLink) { + // Update the privacy link with the user's name and make it visible + privacyLink.addEventListener('click', () => showModal('/privacy.html', false)); + } + if (tosLink) { + // Update the terms link with the user's name and make it visible + tosLink.addEventListener('click', () => showModal('/tos.html', false)); + } });