/* * Document : op_coming_soon.js * Author : pixelcave * Description: Custom JS code used in Coming Soon Page */ var OpComingSoon = function() { // Init Countdown.js, for more examples you can check out https://github.com/hilios/jQuery.countdown var initCounter = function(){ jQuery('.js-countdown').countdown((new Date().getFullYear() + 1) + '/02/01', function(event) { jQuery(this).html(event.strftime('
' + '
%-D
DAYS
' + '
%H
HOURS
' + '
%M
MINUTES
' + '
%S
SECONDS
' + '
' )); }); }; return { init: function () { // Init Countdown initCounter(); } }; }(); // Initialize when page loads jQuery(function(){ OpComingSoon.init(); });