Ide.js 1.43 KB
;(function(window){

    var _GxbIde = window.GxbIde;

    GxbIde = function(){
        console.log(this);
        this.dir = Dir;
        this.codingEditer = CodingEditer;
        this.toolBox = ToolBox;
        this.init.apply(this, arguments);
        console.log(this);
    }

    GxbIde.prototype = {
        constructor: GxbIde,
        options: {
            el: "#dir",
            role: 0,
            userId: null,
            languageid: null,
            isPlayPage: 0
        },
        init: function(options){
            console.log(this);
            var _this = this;
            _this.options = $.extend(_this.options, options);
            var _el = _this.options.el;
            var _langid = _this.options.languageid;
            var _isPlayPage = _this.options.isPlayPage;
            var _role = _this.options.role;

            console.log(this.options)
            console.log(_el);

            _this.dir.initIdePage(_el, _langid, _isPlayPage, _role);
            // Dir.init();

            if (_this.options.languageid === 35) {
                console.log('000000000000')
                CodingEditer.isWeb = 1;
                $('.need-compile').hide();
            }else{
                $('.no-compile').hide();
            }
        }
    }

    function getLang(){}

    // 老师录制编辑
    // GxbIde = $.extend(GxbIde, Dir, CodingEditer);


    // console.log(GxbIde.RecordIde.dir());

    window.GxbIde = GxbIde;

})(window)