Skip to content

Instantly share code, notes, and snippets.

@pthrasher
Created September 12, 2011 18:24
Show Gist options
  • Save pthrasher/1211987 to your computer and use it in GitHub Desktop.
Save pthrasher/1211987 to your computer and use it in GitHub Desktop.
the countdown script for victorychurch.ws
<script language="javascript" type="text/javascript">
function counter(el){
var self = $(el),
_el = el;
self.countDown({
targetDate: {
'day': <?=$config['targetDate']['day']?>,
'month': <?=$config['targetDate']['month']?>,
'year': <?=$config['targetDate']['year']?>,
'hour': <?=$config['targetDate']['hour']?>,
'min': <?=$config['targetDate']['minute']?>,
'sec': <?=$config['targetDate']['second']?>
},
// onComplete function
onComplete: function() {
self.stopCountDown();
counter(_el);
}
});
}
jQuery(function() {
counter("#countdown_dashboard");
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment