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

    var _GxbIde = window.GxbIde;

    GxbIde = function(){
        this.init.apply(this, arguments);
    }


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

            Dir.initIdePage(_el, _langid);
            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)