mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-04-22 05:38:00 +00:00
Keep search in focus (#224)
This commit is contained in:
+6
-6
@@ -78,6 +78,7 @@
|
||||
|
||||
const style = document.createElement('style');
|
||||
const table = document.getElementById('table');
|
||||
const search = document.getElementById('search');
|
||||
|
||||
document.head.appendChild(style);
|
||||
|
||||
@@ -202,6 +203,8 @@
|
||||
} else {
|
||||
fillAddresses();
|
||||
}
|
||||
|
||||
search.focus();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -267,14 +270,11 @@
|
||||
Promise.all(metaJson.map(({ url }) => isUp(`https://${url}`)))
|
||||
]);
|
||||
|
||||
document.getElementById('buttons').style.display = 'block';
|
||||
fillTable('sites');
|
||||
|
||||
const search = document.getElementById('search');
|
||||
|
||||
search.addEventListener('input', onSearch);
|
||||
search.style.display = 'block';
|
||||
search.focus();
|
||||
|
||||
document.getElementById('buttons').style.display = 'block';
|
||||
fillTable('sites');
|
||||
}
|
||||
|
||||
main();
|
||||
|
||||
Reference in New Issue
Block a user