flipdown icon indicating copy to clipboard operation
flipdown copied to clipboard

Add Countup from a specific date.

Open sw82 opened this issue 5 years ago • 3 comments

sw82 avatar Mar 16 '20 06:03 sw82

So this would be a feature that shows the time elapsed since a specific date?

PButcher avatar Mar 16 '20 14:03 PButcher

Yes.

sw82 avatar Mar 16 '20 16:03 sw82

	document.addEventListener('DOMContentLoaded', function() {
	
	  var getDaysFuture = new Date('2020-07-28T00:00:00').getTime() / 1000;
	
	  // Set up FlipDown
	  var flipdown = new FlipDown(getDaysFuture).start()
	
		// Do something when the countdown ends
		.ifEnded(function() {
		  console.log('The countdown has ended!');
		});
	
	});

ribeiroeder avatar Jul 27 '20 21:07 ribeiroeder