Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Countup from a specific date. #27

Open
sw82 opened this issue Mar 16, 2020 · 3 comments
Open

Add Countup from a specific date. #27

sw82 opened this issue Mar 16, 2020 · 3 comments

Comments

@sw82
Copy link

sw82 commented Mar 16, 2020

No description provided.

@PButcher
Copy link
Owner

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

@sw82
Copy link
Author

sw82 commented Mar 16, 2020

Yes.

@ribeiroeder
Copy link

ribeiroeder commented Jul 27, 2020

	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!');
		});
	
	});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants