op_coming_soon.js 1.4 KB

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Document : op_coming_soon.js
  3. * Author : pixelcave
  4. * Description: Custom JS code used in Coming Soon Page
  5. */
  6. var OpComingSoon = function() {
  7. // Init Countdown.js, for more examples you can check out https://github.com/hilios/jQuery.countdown
  8. var initCounter = function(){
  9. jQuery('.js-countdown').countdown((new Date().getFullYear() + 1) + '/02/01', function(event) {
  10. jQuery(this).html(event.strftime('<div class="row items-push text-center">'
  11. + '<div class="col-6 col-sm-3"><div class="font-size-h1 font-w700 text-white">%-D</div><div class="font-size-xs font-w700 text-white-op">DAYS</div></div>'
  12. + '<div class="col-6 col-sm-3"><div class="font-size-h1 font-w700 text-white">%H</div><div class="font-size-xs font-w700 text-white-op">HOURS</div></div>'
  13. + '<div class="col-6 col-sm-3"><div class="font-size-h1 font-w700 text-white">%M</div><div class="font-size-xs font-w700 text-white-op">MINUTES</div></div>'
  14. + '<div class="col-6 col-sm-3"><div class="font-size-h1 font-w700 text-white">%S</div><div class="font-size-xs font-w700 text-white-op">SECONDS</div></div>'
  15. + '</div>'
  16. ));
  17. });
  18. };
  19. return {
  20. init: function () {
  21. // Init Countdown
  22. initCounter();
  23. }
  24. };
  25. }();
  26. // Initialize when page loads
  27. jQuery(function(){ OpComingSoon.init(); });