You are browsing as a guest. Sign up (or log in) to start making projects!

4h 29m 56s logged

Devlog 38: Multi-Timer Logic & Bug Fixes

JS

  • Managed multi-timer state using plain object arrays.
  • Implemented saveTimers() and loadTimers() for LocalStorage persistence.
  • Linked input fields with setupArrowBtns() to handle unit value increment and decrement bounds.
  • Cloned <template> elements to dynamically generate sidebar list items and main cards via renderAll().
  • Added item deletion logic via handleDelete() to update state and UI.
  • Established a startGlobalTick() loop running every 200ms using endTime offsets to prevent background tab drift.
  • Calculated SVG circle strokeDashoffset dynamically based on remaining time ratios.

Debugging & UI Patching

  • Placing <template> tags inside slot="template-content".
  • Adding missing id="timer-container".
  • .textContent.textContent to .textContent
  • Data.now() to Date.now().
  • timers.status to timer.status.

finally got multi-timer state and progress rings syncing properly… bugs fixed and back to smooth sailing…

0
53

Comments 0

No comments yet. Be the first!