From 3e9f7333f4aa0bc4818cbccc4fd3f322264e631b Mon Sep 17 00:00:00 2001 From: lucashemi Date: Tue, 17 Jan 2023 20:47:00 -0300 Subject: colors and modules --- app/check.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/check.js') 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)); -- cgit v1.2.3-18-g5258