You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
opt: boot hash window ui
This commit is contained in:
@@ -5,6 +5,11 @@ const card = document.getElementById('boot-hash-card');
|
||||
const inputBox = document.getElementById('boot-hash-input');
|
||||
const saveButton = document.getElementById('boot-hash-save-button');
|
||||
|
||||
// Remove empty spaces from input
|
||||
window.trimInput = (input) => {
|
||||
input.value = input.value.replace(/\s+/g, '');
|
||||
};
|
||||
|
||||
// Function to handle Verified Boot Hash
|
||||
document.getElementById("boot-hash").addEventListener("click", async () => {
|
||||
const showCard = () => {
|
||||
@@ -51,4 +56,11 @@ document.getElementById("boot-hash").addEventListener("click", async () => {
|
||||
bootHashOverlay.addEventListener("click", (event) => {
|
||||
if (event.target === bootHashOverlay) closeCard();
|
||||
});
|
||||
|
||||
// Enter to save
|
||||
inputBox.addEventListener('keydown', (e) => {
|
||||
if (e.key === 'Enter') {
|
||||
saveButton.click();
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user