Skip to content

Commit

Permalink
about menu
Browse files Browse the repository at this point in the history
  • Loading branch information
acharneski committed Nov 27, 2023
1 parent 19278c8 commit 9ba153f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
8 changes: 7 additions & 1 deletion webui/src/main/resources/application/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
<div id="toolbar">
<a href="/">Home</a>
<a id="history">Session List</a>
<!-- Session Details -->
<div class="dropdown">
<a class="dropbtn">Session Details</a>
<div class="dropdown-content">
Expand All @@ -36,6 +35,13 @@
<a id="verbose">Show Verbose</a>
</div>
</div>
<div class="dropdown">
<a class="dropbtn">About</a>
<div class="dropdown-content">
<a id="privacy">Privacy Policy</a>
<a id="tos">Terms of Service</a>
</div>
</div>
</div>

<div id="namebar">
Expand Down
17 changes: 16 additions & 1 deletion webui/src/main/resources/application/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,21 @@ document.addEventListener('DOMContentLoaded', () => {
.catch(error => {
console.error('There was a problem with the fetch operation:', error);
});

/*
<a id="privacy">Privacy Policy</a>
<a id="tos">Terms of Service</a>
*/
// 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));
}
});

0 comments on commit 9ba153f

Please sign in to comment.