mirror of
https://github.com/0dayCTF/reverse-shell-generator.git
synced 2024-12-18 10:56:10 +00:00
Merge pull request #152 from 0dayCTF/0dayCTF-patch-11
Added Search Functionality
This commit is contained in:
commit
190888a16a
@ -556,3 +556,12 @@ document.getElementById('searchBox').addEventListener('keyup', function() {
|
||||
|
||||
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