From 3212cdeb50b1a6f10ad3901809a44ca54a0bb6c8 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 16 Jul 2022 17:57:58 +0200 Subject: [PATCH] frontend: Make advanced options details/summary --- app.js | 8 -------- index.html | 7 +++---- style.css | 8 -------- 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/app.js b/app.js index 9c14b1d..961ce94 100644 --- a/app.js +++ b/app.js @@ -42,14 +42,6 @@ function getHasher(hashType) { (async () => { await init() - document.getElementById("advanced-options").addEventListener("change", e => { - if (e.target.checked) { - document.body.classList.add("advanced") - } else { - document.body.classList.remove("advanced") - } - }) - document.getElementById("generate").addEventListener("click", e => { e.target.disabled = true const buttonText = e.target.innerText diff --git a/index.html b/index.html index 2bd67e6..a2bb27b 100644 --- a/index.html +++ b/index.html @@ -18,14 +18,13 @@ bcrypt SHA512-crypt
- Advanced options
- -
+
+ Advanced options

-
+ diff --git a/style.css b/style.css index 4656e46..78309ab 100644 --- a/style.css +++ b/style.css @@ -18,11 +18,3 @@ font-family: monospace; line-break: anywhere; } - -body .advanced { - display: none; -} - -body.advanced .advanced { - display: initial; -}