From fb4acf962fa9d3d11c2ae1e77d713798a6a9568e Mon Sep 17 00:00:00 2001 From: Mahesh Asolkar <mahesh@mahesha.com> Date: Sun, 30 Mar 2025 16:07:32 -0700 Subject: [PATCH] Cleaner workout done indication --- Workout.js | 3 ++- style.css | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Workout.js b/Workout.js index c7fb512..46d9483 100644 --- a/Workout.js +++ b/Workout.js @@ -7,6 +7,7 @@ constructor(cont, plan) { cont.appendChild(wo_cont); // Inputs to the class. Workout plan and container to display it in + this.arena = cont; this.container = wo_cont; this.plan = plan; @@ -261,7 +262,7 @@ update_active_item() { const wo_done_txt = this.text_element("div", "Workout done!"); wo_done_txt.classList.add("workout-done-txt"); wo_done.appendChild(wo_done_txt); - this.container.appendChild(wo_done); + this.arena.appendChild(wo_done); } } diff --git a/style.css b/style.css index 9ce2761..c2cf494 100644 --- a/style.css +++ b/style.css @@ -28,8 +28,7 @@ html { width: 90%; } .workout-wrapper.done { - color: #777; - background-color: #eee; + display: none; } .workout-wrapper table {