(function(window, document, $, undefined) { $(function() { $('#counter').countdown('2018/10/15').on("update.countdown", function(event) { $('#day').text(event.strftime('%D')); $('#hour').text(event.strftime('%H')); $('#minute').text(event.strftime('%M')); $('#second').text(event.strftime('%S')); }); }); })(window, document, window.jQuery);