'use strict';

/**
 * Created by liaili on 16/8/16.
 */
//判断IE浏览器
(function () {
    var ua = window.navigator.userAgent;

    function setClientWidth() {
        var sw = $(window).width();
        if (ua.indexOf('MSIE') >= 0) {
            if (sw >= 1441) {
                $('html').removeClass('container-width container-width-small').addClass('container-width-large');
            } else if (sw >= 1281) {
                $('html').removeClass('container-width-large container-width-small').addClass('container-width');
            } else if (sw >= 769) {
                $('html').removeClass('container-width-large container-width').addClass('container-width-small');
            }
        }
    }

    //初始化
    setClientWidth();

    var sid = void 0;
    $(window).resize(function () {
        clearTimeout(sid);
        sid = setTimeout(setClientWidth, 50);
    });
})();

//# sourceMappingURL=layout-ie8.js.map