Skip to content

Commit

Permalink
improve nmap advanced options
Browse files Browse the repository at this point in the history
  • Loading branch information
AI-Mozi committed Apr 22, 2024
1 parent b197de2 commit 9d467ab
Show file tree
Hide file tree
Showing 3 changed files with 1,009 additions and 960 deletions.
20 changes: 20 additions & 0 deletions public/javascript/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,24 @@ ready(() => {
}
});
});


const tabs = (document.querySelectorAll('.advanced-content .tabs li') || [])
const tabContentBoxes = document.querySelectorAll('#tab-content .content-tab')

tabs.forEach(tab => {
tab.addEventListener('click', () => {
tabs.forEach(item => item.classList.remove('is-active'));
tab.classList.add('is-active');

const target = tab.querySelector('a').id + "-tab"
tabContentBoxes.forEach(contentBox => {
if (contentBox.id === target) {
contentBox.classList.add('is-active');
} else {
contentBox.classList.remove('is-active');
}
});
});
});
});
13 changes: 13 additions & 0 deletions public/stylesheets/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,16 @@ body.dark-mode main a {
padding-top: 0;
border-top: 0;
}

.advanced-content .tabs ul li a {
text-decoration: none;
}

.advanced-content .tabs ul {
margin-top: 0px !important;
border: none;
}

.advanced-content .tabs ul li {
padding: 4px 0;
}
Loading

0 comments on commit 9d467ab

Please sign in to comment.