mirror of
https://github.com/0dayCTF/reverse-shell-generator.git
synced 2024-12-18 19:06:09 +00:00
Added Search Functionality
A bit buggy but works for now!
This commit is contained in:
parent
f64539ffbb
commit
a7a2052e6f
@ -556,3 +556,12 @@ document.getElementById('searchBox').addEventListener('keyup', function() {
|
|||||||
|
|
||||||
document.getElementById('noResults').style.display = count === 0 ? '' : 'none';
|
document.getElementById('noResults').style.display = count === 0 ? '' : 'none';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Event listener for search results
|
||||||
|
document.querySelectorAll('#reverse-shell-selection .list-group-item').forEach(function(item) {
|
||||||
|
item.addEventListener('click', function(event) {
|
||||||
|
event.preventDefault();
|
||||||
|
console.log(item.textContent);
|
||||||
|
document.getElementById('searchBox').dispatchEvent(new Event('keyup'));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user