Ide.js
1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
;(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",
userId: null,
languageid: null
},
init: function(options){
console.log(this);
var _this = this;
_this.options = $.extend(_this.options, options);
_el = _this.options.el;
_langid = _this.options.languageid;
console.log(this.options)
console.log(_el);
_this.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)