Questions tagged [countdown]

This tag refers to the process of counting down. In other words, the act of taking an initial value and then consistently subtracting a smaller value from it until the original value reaches a specified amount (usually 0).

Use this tag for questions that deal with counting down or countdown timers (a device that performs the countdown).

2279 questions
0
votes
1 answer

how can activate my countdown timer with button?

I have a countdown timer function writed in javascript.Its working but it starts when i start the page.I want it should be start when the button clicked. function startTimer(duration, display) { var timer = duration, minutes, seconds; …
Cem Ezgin
  • 37
  • 8
0
votes
2 answers

need connecting a datepicker on the second page to the main layout with the count down display

This is what my DatePicker looks like in my MainActivity2 public class MainActivity2 extends ActionBarActivity { Button btn; int year_x, month_x, day_x; static final int DIALOG_ID = 0; @Override protected void onCreate(Bundle…
0
votes
0 answers

How can I update tkinter window

I made this code. I need an update every second, but I can't use .after(1000,func) like.after(1000, func) like a clock. I can't use time.sleep(1). I don't know what else to do. Please help me solve this. import tkinter from datetime import…
0
votes
2 answers

Count down from same number to zero in different time intervals

I'm trying to write a function which should decrease a certain number (let's say 1000) to zero, in a given time. For example, decrease 1000 to 0 in 17 seconds. I'm stuck at this basic countdown... how could I make it decrease the number, taking into…
binoculars
  • 2,226
  • 5
  • 33
  • 61
0
votes
2 answers

Simple jQuery countdown

I have a very simple problem, but the official documentation and online help wasn't enough to help me with this. I have this template countdown that counts days remaining until the new year. I just want to change it so it counts to October 1st of…
0
votes
2 answers

SAS reverse count within ID group

I am used to creating count variables within a group where the count goes upwards +1 at each time using : data objective ; set eg ; count + 1 ; by id age ; if first.age then count = 1 ; run ; However I would like to do the reverse, i.e. where…
user2568648
  • 3,001
  • 8
  • 35
  • 52
0
votes
2 answers

CountDown Timer not stopping

I have gotten the progress bar filling, and once the StartTime has been reached both the progress bar and label telling the % work. I am unable to make another button say "STOP" the Dim Timer isn't allowing me to call to it at all from outside the…
0
votes
1 answer

Special jQuery Character Count

I really hope that you can help me. I have a simple jQuery character count script, that counts down when a user enters a character into a text field. However now I need to customize it in two ways: 1.) I need to add a checkbox. When this checkbox is…
alex141097
  • 19
  • 3
0
votes
3 answers

JavaScript countdown to MySQL datetime format

I have a date that comes from a MySQL database in the datetime format, something like 2010-09-24 11:30:12. And I need a way to show a countdown of hours:mins to that date. I'm not very familiar with dates in JavaScript so any help would be…
JoaoPedro
  • 511
  • 1
  • 6
  • 20
0
votes
0 answers

get date from database and countdown not work

i am really stucked with this problem. First i have tried many times and it work well. But suddenly, this countdown not work anymore, i have tried to alert error but there is no error. i don't know whats wrong with my code. Maybe someone can help me…
Rei
  • 143
  • 1
  • 11
0
votes
1 answer

JavaScript counter that continue from where left

I'm trying to create a countdown counter that should countdown for 24 hours, displaying the days, the hours, the minutes and the seconds. The question is that I want to make it somehow save the progress. For example, I put the countdown to start…
tsvetko.krastev
  • 69
  • 1
  • 12
0
votes
1 answer

Continue countdown

i want that my countdown continue when i completely close the app but i dont know how to do it. Someone can explain it to me or pass me some link where explain it? Thank The code for the countdown public class MainActivity extends Activity { Button…
Agustin Val
  • 187
  • 7
0
votes
1 answer

jQuery countdown (minute:seconds) from seconds

In a script I use AJAX to request data from a script. The returned data is returned in JSON format. The script returns seconds and I'm searching for an easy way to generate a countdown showing minutes and seconds generated by the returned value. For…
peke_peke
  • 441
  • 7
  • 21
0
votes
1 answer

how to make divs appear at the location where user clicks?

I want to have a div filled with a background color and fixed dimensions ( width and height) appear on the screen wherever I click. However, if there are 10 div's on the screen, I want to stop being able to create a div when I click on the page and…
0
votes
0 answers

Countdown clock does not work if i set date before 2017

I found a jQuery plugin to countdown to a date which uses jquery.downCount.js library to start the countdown till a date set up in this script. $(document).ready(function() { $('.countdown').downCount({ date: '01/01/2017 09:00:00' …