Skip to content

Instantly share code, notes, and snippets.

@VincentLoy
Last active April 4, 2017 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VincentLoy/a0cd8a5b3966104eaecabb1dbb458346 to your computer and use it in GitHub Desktop.
Save VincentLoy/a0cd8a5b3966104eaecabb1dbb458346 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>simplyCountdown.js example</title>
<link rel="stylesheet" href="css/simplyCountdown.theme.default.css"/>
</head>
<body>
<section class="examples">
<div class="simply-countdown-example"></div>
</section>
<!-- Load the script here -->
<script src="dev/simplyCountdown.js"></script>
<script>
/**
* initialization example.
* You need to call the simplyCountdown function and give it two parameters:
* 1 - the CSS selector of the countdown container
* 2 - the plugin params as described in documentation here http://vincentloy.github.io/simplyCountdown.js/
* Example: Init countdown until this date : 04/11/2017 at 10am (4th November 2017 10:00)
*/
simplyCountdown('.simply-countdown-example', {
year: 2017,
month: 11,
day: 4,
hour: 10
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment