JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "support.js"

Full Path: /var/www/html/ctctaxi/public/assets/vendor_components/jquery-wizard-master/src/support.js
File size: 1.55 KB
MIME-type: text/plain
Charset: utf-8

var Support = (function() {
    var style = $('<support>').get(0).style,
        prefixes = ['webkit', 'Moz', 'O', 'ms'],
        events = {
            transition: {
                end: {
                    WebkitTransition: 'webkitTransitionEnd',
                    MozTransition: 'transitionend',
                    OTransition: 'oTransitionEnd',
                    transition: 'transitionend'
                }
            }
        },
        tests = {
            csstransitions: function() {
                return !!test('transition');
            }
        };

    function test(property, prefixed) {
        var result = false,
            upper = property.charAt(0).toUpperCase() + property.slice(1);

        if (style[property] !== undefined) {
            result = property;
        }
        if (!result) {
            $.each(prefixes, function(i, prefix) {
                if (style[prefix + upper] !== undefined) {
                    result = '-' + prefix.toLowerCase() + '-' + upper;
                    return false;
                }
            });
        }

        if (prefixed) {
            return result;
        }
        if (result) {
            return true;
        } else {
            return false;
        }
    }

    function prefixed(property) {
        return test(property, true);
    }
    var support = {};
    if (tests.csstransitions()) {
        /* jshint -W053 */
        support.transition = new String(prefixed('transition'))
        support.transition.end = events.transition.end[support.transition];
    }

    return support;
})();