The script presented in this page is a JavaScript Countdown Timer that uses for starting time the data added in form fields. How to add the input of the reference date via JS? The button that starts the Countdown Timer it is changed in Pause /Resume after the user adds data for minutes /seconds in form fields, and clicks on START. In the code snippet below, difference will be set equal to the difference between New Year’s Day in 2021 and the current date: new Date creates a date object. You may notice that the time doesn’t update. I have the code but it's for 2 minutes timer and i need it to modify to 1 minutes 30 seconds timer. This plugin can be used to display a simple digital clock or to display a countdown timer. That's what we are going to do now. */ function calculateChristmasCountdown(){ //Get today's date. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy, Hi...Really nice timer. All Rights Reserved. This code is responsible for changing the STOP button to the PLAY button and vice versa. Hey folks, my name is Aravind, and I am the man behind this website. A countdown timer is a virtual clock running on a landing page. So I am not going to explain it. Each unit of time should follow this format: “X days.” part matches the unit of time. Your