Devlog 38: Multi-Timer Logic & Bug Fixes
JS
- Managed multi-timer state using plain object arrays.
- Implemented
saveTimers()andloadTimers()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 viarenderAll(). - Added item deletion logic via
handleDelete()to update state and UI. - Established a
startGlobalTick()loop running every 200ms usingendTimeoffsets to prevent background tab drift. - Calculated SVG circle
strokeDashoffsetdynamically based on remaining time ratios.
Debugging & UI Patching
- Placing
<template>tags insideslot="template-content". - Adding missing
id="timer-container". -
.textContent.textContentto.textContent -
Data.now()toDate.now(). -
timers.statustotimer.status.
finally got multi-timer state and progress rings syncing properly… bugs fixed and back to smooth sailing…
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.