(function($) { "use strict"; jQuery(document).on('ready',function(){ /*------------------------------- GOAL AMOUNT ANIMATION --------------------------------*/ $("[data-progress-animation]").each(function () { var $this = $(this); $this.appear(function () { var delay = ($this.attr("data-appear-animation-delay") ? $this.attr("data-appear-animation-delay") : 1); if (delay > 1) $this.css("animation-delay", delay + "ms"); setTimeout(function () { $this.animate({ width: $this.attr("data-progress-animation") }, 800); }, delay); }, { accX: 0, accY: -50 }); }); /*------------------------------ EVENT COUNTDOWN TIMER -------------------------------*/ if($('.event_lounch_time').length){ $('.event_lounch_time').each(function() { var $this = $(this), finalDate = $(this).data('countdown'); $this.countdown(finalDate, function(event) { var $this = $(this).html(event.strftime('' + '