/* Minification failed. Returning unminified contents.
(1,1): run-time error CSS1019: Unexpected token, found '$'
(1,2): run-time error CSS1019: Unexpected token, found '('
(1,11): run-time error CSS1031: Expected selector, found ')'
(1,11): run-time error CSS1025: Expected comma or open brace, found ')'
(7,2): run-time error CSS1019: Unexpected token, found ')'
(9,10): run-time error CSS1031: Expected selector, found 'checkDisplay('
(9,10): run-time error CSS1025: Expected comma or open brace, found 'checkDisplay('
(30,1): run-time error CSS1019: Unexpected token, found '!'
(30,11): run-time error CSS1031: Expected selector, found '('
(30,11): run-time error CSS1025: Expected comma or open brace, found '('
(30,541): run-time error CSS1019: Unexpected token, found '('
(30,548): run-time error CSS1031: Expected selector, found ')'
(30,548): run-time error CSS1025: Expected comma or open brace, found ')'
 */
$(document).ready(function () {
    checkDisplay();

    $(window).on('resize scroll', function () {
        checkDisplay();
    });
});

function checkDisplay() {
    $('.counter-value').each(function () {
        var $this = $(this);
        if ($this.isOnScreen()) {
            var countTo = $this.attr('data-count');
            $({ countNum: $this.text() }).animate({
                countNum: countTo
            }, {
                duration: 2000,
                easing: 'linear',
                step: function () {
                    $this.text(Math.floor(this.countNum));
                },
                complete: function () {
                    $this.text(this.countNum);
                }
            });
        }
    });
}

!function (a) { a.fn.isOnScreen = function (b) { var c = this.outerHeight(), d = this.outerWidth(); if (!d || !c) return !1; var e = a(window), f = { top: e.scrollTop(), left: e.scrollLeft() }; f.right = f.left + e.width(), f.bottom = f.top + e.height(); var g = this.offset(); g.right = g.left + d, g.bottom = g.top + c; var h = { top: f.bottom - g.top, left: f.right - g.left, bottom: g.bottom - f.top, right: g.right - f.left }; return "function" == typeof b ? b.call(this, h) : h.top > 0 && h.left > 0 && h.right > 0 && h.bottom > 0 } }(jQuery);
