|
@@ -28,7 +28,8 @@ U.MD.D.I.teacherDeskIcon = [
|
|
|
{ "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
|
|
|
{ "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
|
|
|
{ "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/sys.png)" } },
|
|
|
- { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } }
|
|
|
+ { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
|
|
|
+ { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
|
|
|
];
|
|
|
|
|
|
U.MD.D.I.studentDeskIcon = [
|
|
@@ -45,7 +46,8 @@ U.MD.D.I.studentDeskIcon = [
|
|
|
{ "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
|
|
|
{ "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
|
|
|
{ "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
|
|
|
- { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } }
|
|
|
+ { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
|
|
|
+ { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
|
|
|
];
|
|
|
|
|
|
U.MD.D.I.schoolDeskIcon = [
|
|
@@ -61,7 +63,8 @@ U.MD.D.I.schoolDeskIcon = [
|
|
|
{ "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
|
|
|
{ "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
|
|
|
{ "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/sys.png)" } },
|
|
|
- { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } }
|
|
|
+ { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
|
|
|
+ { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
|
|
|
];
|
|
|
|
|
|
//#region 桌面初始化a
|
|
@@ -533,6 +536,19 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
}, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
_taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
+ case "program":
|
|
|
+
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "编程平台",
|
|
|
+ $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
|
|
|
+ "id": "program",
|
|
|
+ "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
|
|
|
+ "onresize": function() {}
|
|
|
+ }, {
|
|
|
+ closecallback: function() {}
|
|
|
+ }, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
+ _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ break;
|
|
|
case "library":
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"素材库",
|
|
@@ -721,6 +737,19 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
}, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
_taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
+ case "program":
|
|
|
+
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "编程平台",
|
|
|
+ $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
|
|
|
+ "id": "program",
|
|
|
+ "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
|
|
|
+ "onresize": function() {}
|
|
|
+ }, {
|
|
|
+ closecallback: function() {}
|
|
|
+ }, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
+ _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ break;
|
|
|
case "library":
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"素材库",
|
|
@@ -937,6 +966,19 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
}, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
_taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "课程设计", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
+ case "program":
|
|
|
+
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "编程平台",
|
|
|
+ $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
|
|
|
+ "id": "program",
|
|
|
+ "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
|
|
|
+ "onresize": function() {}
|
|
|
+ }, {
|
|
|
+ closecallback: function() {}
|
|
|
+ }, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
+ _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ break;
|
|
|
case "class":
|
|
|
|
|
|
_formdiv = new U.UF.UI.form(
|
|
@@ -1186,6 +1228,19 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
}, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
_taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/stuLibrary.png)" }, "name": "学习资料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
+ case "program":
|
|
|
+
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "编程平台",
|
|
|
+ $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
|
|
|
+ "id": "program",
|
|
|
+ "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
|
|
|
+ "onresize": function() {}
|
|
|
+ }, {
|
|
|
+ closecallback: function() {}
|
|
|
+ }, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
+ _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ break;
|
|
|
case "whiteboard":
|
|
|
|
|
|
_formdiv = new U.UF.UI.form(
|
|
@@ -1503,19 +1558,19 @@ U.MD.D.I.openApplicationJie = function(str, cid, stage, task, tool) {
|
|
|
"innerHTML": "提交作业"
|
|
|
})
|
|
|
|
|
|
- let _loading = document.createElement('div')
|
|
|
- _loading.style = "width:100%;height:100%;background:#0000008f;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
|
|
|
- // _loading.id = "";
|
|
|
- let _lchild = document.createElement('div')
|
|
|
- let _limg = document.createElement('img')
|
|
|
- _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
|
|
|
- _limg.style = "width: 26px;margin-right: 10px;"
|
|
|
- _lchild.appendChild(_limg)
|
|
|
- let _lspan = document.createElement('span')
|
|
|
- _lspan.innerHTML = "上传中..."
|
|
|
- _lchild.appendChild(_lspan)
|
|
|
- _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
|
|
|
- _loading.appendChild(_lchild)
|
|
|
+ let _loading = document.createElement('div')
|
|
|
+ _loading.style = "width:100%;height:100%;background:#0000008f;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
|
|
|
+ // _loading.id = "";
|
|
|
+ let _lchild = document.createElement('div')
|
|
|
+ let _limg = document.createElement('img')
|
|
|
+ _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
|
|
|
+ _limg.style = "width: 26px;margin-right: 10px;"
|
|
|
+ _lchild.appendChild(_limg)
|
|
|
+ let _lspan = document.createElement('span')
|
|
|
+ _lspan.innerHTML = "上传中..."
|
|
|
+ _lchild.appendChild(_lspan)
|
|
|
+ _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
|
|
|
+ _loading.appendChild(_lchild)
|
|
|
|
|
|
var _box = $$('div', {
|
|
|
"style": {
|
|
@@ -1525,7 +1580,7 @@ U.MD.D.I.openApplicationJie = function(str, cid, stage, task, tool) {
|
|
|
},
|
|
|
})
|
|
|
_box.appendChild(_loading)
|
|
|
- _box.id = str + '_loadLi'
|
|
|
+ _box.id = str + '_loadLi'
|
|
|
switch (str) {
|
|
|
case "whiteboard":
|
|
|
_iframe = $$("iframe", {
|
|
@@ -1716,7 +1771,7 @@ U.MD.D.I.openApplicationJie = function(str, cid, stage, task, tool) {
|
|
|
|
|
|
if (_iframe) {
|
|
|
if (str == 'doc') {
|
|
|
- U.UF.DL.iframeLoad(_iframe, function () {
|
|
|
+ U.UF.DL.iframeLoad(_iframe, function() {
|
|
|
_iframe.contentWindow.U.MD.O.W.load();
|
|
|
_iframe.contentWindow.document.body.appendChild(script1);
|
|
|
_iframe.contentWindow.document.body.appendChild(script2);
|
|
@@ -1768,7 +1823,7 @@ U.MD.D.I.openApplicationJie = function(str, cid, stage, task, tool) {
|
|
|
"'" +
|
|
|
", " +
|
|
|
"'" +
|
|
|
- str+'_loadLi' +
|
|
|
+ str + '_loadLi' +
|
|
|
"'" +
|
|
|
")\n" +
|
|
|
" });\n" +
|