diff options
author | lucashemi <lucasxberger@gmail.com> | 2023-01-17 20:47:00 -0300 |
---|---|---|
committer | lucashemi <lucasxberger@gmail.com> | 2023-01-17 20:47:00 -0300 |
commit | 3e9f7333f4aa0bc4818cbccc4fd3f322264e631b (patch) | |
tree | 597ce7206d6e7133b9436782e3c60dddecbc284c /app/check.js | |
parent | 602878b7dfa2af958d3a8684d189a51e34cc2963 (diff) |
colors and modules
Diffstat (limited to 'app/check.js')
-rw-r--r-- | app/check.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/check.js b/app/check.js index 294e02a..528471f 100644 --- a/app/check.js +++ b/app/check.js @@ -1,4 +1,6 @@ -function checkboxButton(id) { +import { jsList } from "./list.js"; + +export function checkboxButton(id) { const checkboxElement = document.createElement('i'); checkboxElement.classList.add('fa-regular'); @@ -18,7 +20,7 @@ function checkElement(element, id) { element.classList.remove('fa-square'); element.classList.add('fa-square-check'); element.parentNode.style.textDecoration = 'line-through'; - element.parentNode.style.opacity = '0.7'; + element.parentNode.style.opacity = '0.6'; id = jsList.findIndex(el => el.id == id) jsList[id].done = true; localStorage.setItem('jsList', JSON.stringify(jsList)); |