Skip to content

Instantly share code, notes, and snippets.

@krazylegz
Forked from nicksatkovich/gist:4595864
Last active December 11, 2015 11:48
Show Gist options
  • Select an option

  • Save krazylegz/4596014 to your computer and use it in GitHub Desktop.

Select an option

Save krazylegz/4596014 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
$(function () {
var eventDate = new Date(2013, 2-1, 1);
if (eventDate - (new Date()) <= 0) {
$('.countdown-<?php the_id(); ?>').countdown({until: eventDate});
}else{
$('.countdown-<?php the_id(); ?>').html('Married on ' + eventDate.getMonth() + '/' + eventDate.getDay() + '/' + eventDate.getFullYear())
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment