Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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>
Add Comment
Please, Sign In to add comment