Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

How to write test file for count down timer react component in jest?

I tried to write the test for the countdown file using jest This is my countdown file: import React, { useEffect, useState } from 'react' import _padStart from 'lodash/padStart' import styles from './...
Atul Dwivedi's user avatar
0 votes
2 answers
66 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 ...
Danny Beckett's user avatar
0 votes
1 answer
44 views

Automatic countdown powerpoint

I made an countdown in PowerPoint across multiple Slides using this code : Global time As Date Sub countdown() time = Now() time = DateAdd("n", 10, time) Do Until time < Now() ...
Nathalie Levesque's user avatar
0 votes
1 answer
53 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 ...
saffy's user avatar
  • 3
0 votes
1 answer
106 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 ...
Daniel Beleza's user avatar
0 votes
1 answer
44 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 ...
Shujin Liu's user avatar
0 votes
0 answers
23 views

Hello! I would like to make a quiz for my friends in Powerpoint similar to The Floor

I would like to make a quiz for my friends in Powerpoint similar to The Floor. I would need a VBA code to have 2 45 second countdown timers in the top two corners, and have them count down on separate ...
Rácz Máté's user avatar
1 vote
2 answers
152 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('...
Diego Diaz's user avatar
1 vote
1 answer
49 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 ...
taha farzaneh's user avatar
0 votes
1 answer
44 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 ...
Spryrix's user avatar
0 votes
1 answer
494 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 ...
Miso Drotar's user avatar
0 votes
0 answers
68 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 = ...
Hoàng Đông's user avatar
0 votes
0 answers
32 views

Multiple countdown timer for products

I am working with some products and their discounts. The product creator can set the time and activate it whenever they like. Example of the products and its fields: Products = [ { name: 'P1', ...
Andrews's user avatar
  • 11
0 votes
1 answer
34 views

I did a cutdown with js, but it has a 3 second delay to start

Within the project there is a startCount() function that starts the countdown, the countdown is done, but it is taking 3 seconds to start. Here is the function startCount(): function startCount(...
Pedro Henrique's user avatar
0 votes
1 answer
39 views

Changing the date on a countdown when distance is < 0

I have a timer to countdown to a date and time. What I'd like it to do is that after it hits 0 with the first date, it would then start counting down to the next date. I am not at all good at code so ...
phak's user avatar
  • 1
-1 votes
1 answer
182 views

How do I make a JavaScript countdown using a Unix timestamp?

I am making a website that needs a countdown until a specific time, but I can't find anything that lets me input a Unix timestamp and gives the same countdown for all users, regardless of timezones. I ...
Mesure73L's user avatar
1 vote
0 answers
37 views

Different times from php to javascript for countdown between 5 times -from time to time

I want to export 5 different times from a php script for prayertimes calculation, and import them into Javascript to make a countdown timer between the times. coutdown -> between fajr and dhur time ...
Tips  Tricks's user avatar
0 votes
0 answers
32 views

MP3 is playing only one time after countdown ends

I have the following tool written for myself in .net Framework 4.8. It's a simple countdown and at zero a MP3-file is playing. This is working, but only one time. If I restart the countdown, without ...
TheQuestionmark's user avatar
1 vote
1 answer
2k views

Countdown timer in Angular17

I'm trying to make a countdown timer in my home component. It kind of looks like this. Here is the place I put countdown in html file: <div> {{displayTime}} </div> My Home.ts file: ...
Curt's user avatar
  • 43
-2 votes
1 answer
80 views

Countdown Timer in js, what's wrong?

I'm in the middle of a countdown app project (Pomodoro) The app doesn't work for me, something in the calculation of the Math library may not be written correctly even though I think it is written ...
Aviv Elany's user avatar
0 votes
1 answer
87 views

Progress bar with localstorage (js)

I'm using countdown with progress bar like this https://codepen.io/Rudchyk/pen/qNOEGj but I can't figure out how do I save the progress when I reload the page? <div id="progressBar"> ...
RUS DESIGN's user avatar
0 votes
0 answers
25 views

Tkinter Countdown, doesn't cancel previous countdown when starting a new

I have created a script that will check for and download/install windows updates. Then give the user the possibility to postpone restart up to 3 times. Each time user presses postpone i want my ...
Sihodude's user avatar
0 votes
1 answer
142 views

How to use CountDownLatch in creating threads so that they add messages into the list the order I call?

I am trying to use CountDownLatch, so that the fourth and fifth threads starts running only after the start of first three threads and these threads add messages into the result list while they are ...
priyanka's user avatar
-3 votes
1 answer
72 views

Make a timer for competitions with buttons [closed]

I need help. I need to make a countdown timer, with two buttons (start and stop). However, this timer needs to change, at one point it needs to be a 1 minute timer, at another time it needs to be a 2 ...
Gabriel Sousa's user avatar
0 votes
0 answers
15 views

React <Countdown />: reset time when paused

I'm in trouble with the component react-countdown. Indeed, I need to play or pause it, depending on whether the state commonStore.chronoIsActive is true or false. It works but the time reset when it ...
steph-car's user avatar
0 votes
1 answer
123 views

Creating a 20 second timer doesn't work and I'm trying to understand why

I've been trying to implement the following code into my website: let count = 20; const timer = setInterval(function() { count--; console.log(count); if (count === 0) { clearInterval(timer); ...
Rafaela's user avatar
  • 21
2 votes
2 answers
646 views

Countdown timer Java JavaFX

Can someone please help me make a countdown timer in JavaFX? I need the time to be taken from a label (the time is set by a slider) and I want to see the minutes and seconds remaining every second. ...
MsLaus's user avatar
  • 55
0 votes
0 answers
39 views

Countdown gets stuck at 1sec 'react-native-background-timer'

I am trying to implement a countdown to prevent users to login into my app for 1min after they failed login in 5 times in a row. This countdown starts at 60sec to 00sec and should keep running even if ...
Thomas Augot's user avatar
0 votes
1 answer
95 views

Weird bug in React custom useCountDown hook under strict mode

I wrote a custom React useCountDown hook to count down a number (seconds) until zero. The counting is triggered by start() method attached in a button onClick listener. It works well without <React....
Junlin's user avatar
  • 1
1 vote
2 answers
167 views

How can I make a prolog predicate that recursively counts down to 0. (swi-pl)

Given a number Num the predicate should count down from Num to 0, excluding Num. Trying to do this recursively, but only receiving one answer as output instead of the entire countdown. Tried to ...
turbodynamic's user avatar
-1 votes
3 answers
98 views

Is there a way to put text on screen at the end of a countdown?

Is there a way to put some text on screen at the end of this countdown or a cake? this is a countdown for my B-Day and i really want it to show some text and/or a cake at the end for my b-day but I ...
Adam Hardwick's user avatar
-2 votes
1 answer
306 views

How to make a countdown timer using Time Remaining [closed]

I want to implement a countdown timer, based on the current time and end time. For example: Current time: 20:30:30 End time always is : 23:59:59 -> I will implement a countdown timer as: 03:29:29
Lang Thang's user avatar
0 votes
0 answers
48 views

How can I make multiple countdown timer with one countdown library?

I am trying to create multiple countdown by using one countdown library but when I loop through the elements, only the last countdown works. Other countdown stays still. The interval is only working ...
Nayeem M. Muzahid's user avatar
0 votes
0 answers
352 views

I get an error when I use react-native-countdown-component

I use the react-native-countdown-component package in my project. Everything is okay, but when I call a function on onFinish I get an error. here is my code <CountDown until={exam....
Sazzad's user avatar
  • 59
0 votes
0 answers
51 views

Code countdown timer to countdown till 930 livestream, have 30 min of saying LIVE NOW, and then countdown till 1100?

I would appreciate any help possible with this as I'm learning and don't have a ton of coding knowledge. I've got a countdown timer that counts down to a 1100 live-stream on Sunday, but I want it to ...
johnsoncreativeteam's user avatar
0 votes
0 answers
133 views

Live countdown timer in react

So I am trying to make a countdown timer which will work even if I exit page or refresh tab. I made a timer its works correctly but stops working and it freezes at the time when I refresh tab. How can ...
Irakli Gvelesiani's user avatar
0 votes
3 answers
60 views

Why isn't the number in my countdown timer changing?

So I'm trying to create a function that has a string with a number at the end of it that counts down sequentially. For example: string = "This is a test." number = [*range(0, 10)] This is a ...
Asiah Crutchfield's user avatar
1 vote
1 answer
57 views

Time limit for input with countdown [duplicate]

I'm pretty new to Python and I want to set an input time limit with a countdown timer which I can watch count. I have checked other similar questions, they are mainly explaining how to set a time ...
Kian Farrokhseresht's user avatar
0 votes
0 answers
59 views

Countdown Timer and Animation Not In Sequence

I am messing around with a countdown timer and noticed that the numeric time and svg circle animation are not in sequence at the end of the countdown. And, it gets worse as you add more minutes! I ...
jottin's user avatar
  • 406
-1 votes
1 answer
64 views

I want the number to disappear when the countdown reaches 1 "the 2 being the last number to show". The countdown needs to continue to count until -1

How can I get this countdown to hide the numbers after the countdown reaches 1. The 2 is the last number I want to show. The countdown needs to continue to count all the way to -1, just not show up on ...
trino98's user avatar
0 votes
2 answers
180 views

How do I create a dynamic vacation countdown for my Excel calendar?

So I have this Excel calendar that I've made that I use at work to track various things, and now I would like to add a "vacation countdown", that would display the remaining days until the ...
Overflown Roni's user avatar
1 vote
1 answer
195 views

Pause-resume function on countdown timer (Javascript)

Currently creating a 25 minutes countdown timer with timing incrementing/decrementing buttons. I managed to create the timer and get it to work when pressing "Start" button, but I'm ...
Bob Marin's user avatar
0 votes
2 answers
90 views

Javascript count down to UTC 4am every day & every Sunday

I am building a resource for an MMORPG (game) that has daily and weekly resets. One reset is every Sunday @ 4am UTC and another is every day @ 4am UTC. I am looking to display countdown timers at the ...
DoMx's user avatar
  • 31
0 votes
1 answer
43 views

JS countdown to specific day and time in while loop

I'm trying to make a while loop in javascript, which will countdown to every Wednesday to 17:00 PM CEST. I need to get the output in unixtimestamp. I tried to do this: // seed date, (ANY past ...
ReFresh's user avatar
1 vote
1 answer
50 views

Format seconds for countdown

I'm developing a feature that need to format seconds in this form in countdown (begin from 60s): 60.9, 60.8, 60.7,...,59.9, 59.8 etc. I write this code and is working fine except for 60. When the ...
Wo_0NDeR ᵀᴹ's user avatar
-2 votes
2 answers
383 views

How to create a timer in html which starts from same position each time when website is opened [closed]

I have written html code with a timer, but I need a script for it to countdown. I researched a lot in the internet and couldn't find anything that could help me. Maybe someone has experience with this ...
recingy12's user avatar
1 vote
0 answers
43 views

JavaScript countdown bug fix

Hello thanks for your help, i have made a js count down that was supposed to stop counting once the interval set is elapsed, the count down is working but once the target time reaches, instead it to ...
Onyeka Franklin's user avatar
0 votes
1 answer
87 views

setInterval problems with a countdown timer using Draftbit

enter image description hereI have this set up to start a countdown timer... const initialCountdown = 10; // Initial countdown value (change as needed) let countdown = initialCountdown; const ...
Dave's user avatar
  • 1
0 votes
2 answers
70 views

Show the stock counter in more than one place on the same page

This script works great as a stock countdown, but I couldn't show it in more than 1 place on the same page. For example, on the same page there are 4 or 5 products/plans and each product shows a ...
Virgílio Dornelas's user avatar
1 vote
1 answer
49 views

Prevent countdown reset on page load

I have a stock counter that works fine, but I would like to prevent the countdown from resetting when the page reloads. <span class="qty" id="qty"></span> <script&...
Virgílio Dornelas's user avatar

1
2 3 4 5
46