diff options
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)); |