mirror of
https://github.com/lockfale/OSINT-Framework.git
synced 2026-09-13 21:27:44 +02:00
Add nsfw badge to tool panel (THE-116)
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -341,6 +341,7 @@
|
||||
.badge-api { background: #1e90cc; }
|
||||
.badge-invitation-only { background: #b87800; }
|
||||
.badge-deprecated { background: #8b3030; }
|
||||
.badge-nsfw { background: #9b2b9b; }
|
||||
|
||||
/* OPSEC row layout */
|
||||
.opsec-row {
|
||||
|
||||
@@ -460,6 +460,9 @@ function openPanel(d) {
|
||||
if (d.data.deprecated === true) {
|
||||
badgeHtml += ' <span class="badge-pill badge-deprecated">Deprecated</span>';
|
||||
}
|
||||
if (d.data.nsfw === true) {
|
||||
badgeHtml += ' <span class="badge-pill badge-nsfw">NSFW</span>';
|
||||
}
|
||||
|
||||
badgesEl.innerHTML = badgeHtml;
|
||||
badgesEl.classList.remove("empty");
|
||||
|
||||
Reference in New Issue
Block a user