Category : countdown

I want to do some countdown exercise https://www.youtube.com/watch?v=AbmVRYZ_AwE I did a different work by watching this video I want the countdown to stop at zero but I couldn’t. maybe you can help? var countDate = new Date(‘02,05,2021 00:00:00:00’).getTime(); function newcampaign() { var now = new Date().getTime(); gap = countDate – now; var saniye = 1000; ..

Read more

How can I change the leftTime dynamically? Changing it dynamically does not change the left time. leftTime: number = 0; moreThan24Hours: CountdownConfig = { leftTime: this.leftTime, demand: true, formatDate: ({ date, formatStr }) => { let duration = Number(date || 0); return this.CountdownTimeUnits.reduce((current, [name, unit]) => { if (current.indexOf(name) !== -1) { const v = ..

Read more