Reset builder when resetting the output
This commit is contained in:
@@ -8,6 +8,7 @@ const light = document.getElementById('light') as HTMLDivElement;
|
|||||||
const keypad = document.getElementById('keypad') as HTMLDivElement;
|
const keypad = document.getElementById('keypad') as HTMLDivElement;
|
||||||
|
|
||||||
function resetCode() {
|
function resetCode() {
|
||||||
|
builder = '';
|
||||||
display.innerText = '_'.repeat(CODE.length);
|
display.innerText = '_'.repeat(CODE.length);
|
||||||
light.classList.remove('is-success', 'is-error');
|
light.classList.remove('is-success', 'is-error');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user