From d6a9e6e46f2c2574ec0665e73b64f0d6c700557a Mon Sep 17 00:00:00 2001 From: gabrielgio Date: Fri, 25 Mar 2022 23:14:04 +0100 Subject: feat: Add extended ASCII Add more chars... --- www/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'www/index.js') diff --git a/www/index.js b/www/index.js index a4257c1..d7b2869 100644 --- a/www/index.js +++ b/www/index.js @@ -10,6 +10,7 @@ let upperCaseInput = document.getElementById("upperCase"); let lowerCaseInput = document.getElementById("lowerCase"); let numberInput = document.getElementById("number"); let specialInput = document.getElementById("special"); +let extendedInput = document.getElementById("extended"); function copyToClipboard() { let text = passwordInput.innerText @@ -31,7 +32,8 @@ function generate() { let upper = upperCaseInput.checked; let number = numberInput.checked; let special = specialInput.checked; - passwordInput.innerHTML = wasm.generate(size, lower, upper, number, special); + let extended = extendedInput.checked; + passwordInput.innerHTML = wasm.generate(size, lower, upper, number, special, extended); } // Setting up defaults @@ -40,6 +42,7 @@ upperCaseInput.checked = true; lowerCaseInput.checked = true; numberInput.checked = true; specialInput.checked = true; +extendedInput.checked = true; //this will trigger passwordInput to be filled generate(); @@ -50,5 +53,6 @@ upperCaseInput.onchange = generate; lowerCaseInput.onchange = generate; numberInput.onchange = generate; specialInput.onchange = generate; +extendedInput.onchange = generate; generateButton.onclick = generate; copyButton.onclick = copyToClipboard; \ No newline at end of file -- cgit v1.2.3