Your IP : 216.73.216.224


Current Path : /var/www/html/media/com_osmembership/assets/js/
Upload File :
Current File : /var/www/html/media/com_osmembership/assets/js/query.equalHeights.js

(function ($) {
    function equalHeights(minHeight, maxHeight) {
        tallest = (minHeight) ? minHeight : 0;
        this
            .height('auto')
            .each(function () {
                if ($(this).height() > tallest) {
                    tallest = $(this).height();
                }
            });
        if ((maxHeight) && tallest > maxHeight) tallest = maxHeight;
        return this.each(function () {
            $(this).height(tallest).css("overflow", "auto");
        });
    }

    $.fn.equalHeights = function (minHeight, maxHeight) {

        var $this = this;

        $(window).resize(function () {
            equalHeights.call($this, minHeight, maxHeight);
        });

        equalHeights.call($this, minHeight, maxHeight);
        return this;
    };
})(jQuery);