Skip to content

Commit

Permalink
Update site.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lymanjre authored Nov 15, 2024
1 parent 5e77340 commit 42af11f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/assets/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@ document.addEventListener("DOMContentLoaded", function () {

SVGInject(document.querySelectorAll("img"));

document.getElementById('show-protocols-app').addEventListener('click', function(event) {
event.preventDefault(); // Prevent page jump
const hiddenFeatures = document.querySelector('#show-protocols-app + .hidden-features');
hiddenFeatures.style.display = hiddenFeatures.style.display === 'none' ? 'inline' : 'none';
});

document.getElementById('show-protocols-manager').addEventListener('click', function(event) {
event.preventDefault(); // Prevent page jump
const hiddenFeatures = document.querySelector('#show-protocols-manager + .hidden-features');
hiddenFeatures.style.display = hiddenFeatures.style.display === 'none' ? 'inline' : 'none';
});




if (document.getElementById('show-protocols')){
document.getElementById('show-protocols').addEventListener('click', function(e) {
e.preventDefault();
Expand Down

0 comments on commit 42af11f

Please sign in to comment.