diff --git a/script.js b/script.js index 7defa20..f09500f 100644 --- a/script.js +++ b/script.js @@ -14,12 +14,11 @@ updateBackground(); function updateBackground() { isWarranty.nextElementSibling.style.backgroundColor = isWarranty.checked ? "red" - : "transparent"; - isWarranty.nextElementSibling.style.color = isWarranty.checked + : "transparent"; + isWarranty.nextElementSibling.style.color = isWarranty.checked ? "white" : "black"; } -} // Notification system // https://portal.trgrepair.com/task_manager.asp?rnd=0.9996227368620352