2,274 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
2
answers
89
views
countback from date is negative, how to make numbers positive? [closed]
i am trying to use a countback from a certain date, and want it to read something like (100d, 10hrs, 10sec). the countback does this fine, except it reads as (-100d, -10hrs, -10sec). is there a way to ...
1
vote
1
answer
108
views
How to change colors of countdown timers in a Quarto Revealjs presentation?
How do you change colors for other timers subsequent to the first timer using the countdown package in Quarto revealjs presentations? The user manual for the countdown package indicates that it's ...
2
votes
3
answers
58
views
How to use useState, Dispatch input?
Consider this code:
const [seconds, setSeconds] = useState<number>(START_VALUE);
useEffect(() => {
const intervalId = setInterval(() => {
setSeconds((previousSeconds) => ...
0
votes
2
answers
193
views
How do I make a countdown timer using JavaScript in CodeHS?
I'm trying to make a game using a website called CodeHS, and it needs a time limit. I'm trying to achieve this through graphic text on a canvas that counts down from 2 minutes, but it isn't working. I'...
0
votes
1
answer
141
views
How to prevent a Countdown timer to be jumpy/ pushing the number next to it using (HTML, CSS, JS only) [closed]
I am working on a project where countdown is the main focus. But when the count down starts as the numbers count down certain numbers push and pull other numbers like when eg. 22:00 changes it pulls ...
1
vote
0
answers
32
views
Time fluctuating
// Determine next month and year
$nextMonthDate = new DateTime('first day of next month');
$nextMonthName = $nextMonthDate->format('F');
$nextYear = $nextMonthDate->format('Y');
// ...
$...
2
votes
2
answers
285
views
How is this animated PNG image aware of the current time and date?
I received an email from a company which has a countdown like this in it:
(This is not the "live" one, it's a copy - as a GIF, not PNG - of how it looked at one point, since the countdown ...
0
votes
1
answer
79
views
How to set a weekday as the starter and ender of a countdown instead of using an specific/static date in javascript
So, I have this personal project that I'm trying to do more for studying purposes. It would be two timers to monitor two different events in a week, in which one would countdown the remain time of a ...
0
votes
1
answer
313
views
Implement countdown timer in Glance widget
I need to implement a countdown timer in a Glance widget, that should be updated every second. At the bare minimum, every minute.
What would be the best approach for this using Jetpack Compose Glance ...
0
votes
1
answer
69
views
Python typing game - Countdown timer that exits program after given time
I am trying to build a rough typing game for a school project. I tried using the threading method(which I only know a tiny bit of) to make the timer run simultaneously with input. The idea is to stop ...
1
vote
2
answers
309
views
How do i edit the codepen FlipDown.js Countdown?
I found this countdown clock in CodePen, but I need to edit it, I need to set the final date to May 30, 2024. ¿Does anybody know how to set up the final date?
document.addEventListener('...
1
vote
1
answer
84
views
how to update a label in countdown with customtkinter
I was creating a sound recorder and when i wanted to create a countdown i face problems
here's my code
from customtkinter import *
import sounddevice
from scipy.io.wavfile import write
import time
...
0
votes
1
answer
62
views
Countdown to varying payday in Javascript
This is the first time I've written a code in Javascript, and I'm no better in other coding languages, but I managed to get the code to work (kinda).
I think this code could be way shorter but theres ...
-1
votes
1
answer
725
views
Angular 17 does not update view using setInterval with NG0500 error in console
I am building a countdown timer component and trying to display updated 'seconds' value within every second, but I do not see any update on UI
When I do not use outside zone attitude, then page is ...
0
votes
0
answers
93
views
setTimeout only called once time in useEffect with Jest unit test
I have countdown function in useEffect and i want to write unit-test for it:
[countDown,setCountDown] = useEffect(60)
useEffect(() => {
if (countDown !== 0) {
countdownTimeout = ...