nice clean recipes pear.dunkirk.sh
recipes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: expand up to days in timer

+17 -3
+17 -3
ui/templates/recipe.html
··· 252 252 } 253 253 254 254 function updateTimerDisplay() { 255 - const m = Math.floor(timerRemaining / 60); 255 + const h = Math.floor(timerRemaining / 3600); 256 + const m = Math.floor((timerRemaining % 3600) / 60); 256 257 const s = timerRemaining % 60; 257 - document.getElementById('timer-display').textContent = 258 - String(m).padStart(2, '0') + ':' + String(s).padStart(2, '0'); 258 + const mStr = String(m).padStart(2, '0'); 259 + const sStr = String(s).padStart(2, '0'); 260 + if (h > 0) { 261 + const d = Math.floor(h / 24); 262 + const hRem = h % 24; 263 + if (d > 0) { 264 + document.getElementById('timer-display').textContent = 265 + d + 'd ' + String(hRem).padStart(2, '0') + ':' + mStr + ':' + sStr; 266 + } else { 267 + document.getElementById('timer-display').textContent = 268 + String(h).padStart(2, '0') + ':' + mStr + ':' + sStr; 269 + } 270 + } else { 271 + document.getElementById('timer-display').textContent = mStr + ':' + sStr; 272 + } 259 273 } 260 274 261 275 if ('Notification' in window && Notification.permission === 'default') {