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