1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098 |
- /*
- 此处为桌面系统启动应用区域
- */
- Namespace.register("U.MD.D.I"); //桌面应用处理
- //判断图片是否在拖拽,如果是拖拽图标的过程是不会打开图片的
- U.MD.D.I.IsDrag;
- U.MD.D.I.Ip;
- //教师桌面图标的全局变量
- U.MD.D.I.teacherDeskIcon = [
- { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
- { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
- { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
- { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
- { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
- { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
- { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
- { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
- { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
- { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
- { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
- // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
- { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
- { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
- { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
- { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
- { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
- { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
- { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
- { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
- { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
- { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
- { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
- { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
- { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
- { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
- { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
- { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
- // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
- ];
- U.MD.D.I.studentDeskIcon = [
- { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
- { "Name": "学习中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
- { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
- { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
- { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
- { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
- { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
- { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
- // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
- { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
- { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.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": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
- { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
- { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
- { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
- { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
- { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
- { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
- { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
- { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
- { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
- // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
- ];
- U.MD.D.I.schoolDeskIcon = [
- { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
- { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
- { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
- { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
- { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
- { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
- { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
- { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
- { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
- { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
- { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
- { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
- { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
- { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
- { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
- { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
- { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
- { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
- { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
- // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
- ];
- //#region 桌面初始化a
- /**
- * 初始化桌面的起始函数
- *
- */
- U.MD.D.I.init = function () {
- if ($("#U_MD_D_K")[0]) {
- //初始化桌面图标
- U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0]);
- // var clickUrl = ':12588/requestIp.php';
- // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
- // U.MD.D.I.Ip = data;
- // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
- // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
- // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
- // })
- // //初始化任务栏,因为是静态的,所以直接改变样式即可.
- // })
- }
- }
- /**
- * 隐藏任务栏
- *
- * @param {element} 桌面元素
- */
- U.MD.D.I.hiddenTaskbar = function (el) {
- //任务栏位置变小
- U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
- //桌面的位置变大
- // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
- }
- /**
- * 隐藏任务栏
- *
- * @param {element} 桌面元素
- */
- U.MD.D.I.hiddenTaskbarout = function (el) {
- //任务栏位置变小
- if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
- //任务栏位置变化
- U.selectEl(el).css({ "bottom": "-60px" });
- //桌面的位置变大
- // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
- }
- }
- /**
- * 初始化打印桌面图标
- *
- * @param {element} 桌面元素
- */
- U.MD.D.I.initDesktopIcons = function (el) {
- var i, //用于循环
- _content, //桌面图标元素
- _iconcontent, //桌面图标元素
- _frag = $$("frag"), //定义一个碎片元素
- _type = US.userInfo.type,
- _oid = US.userInfo.organizeid;
- _teacherDesktopIconInfo = U.MD.D.I.teacherDeskIcon, //获取教师端桌面图标
- _studentDesktopIconInfo = U.MD.D.I.studentDeskIcon, //获取学生端桌面图标
- _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon; //获取测试学校桌面图标
- //清楚桌面图标
- el.innerHTML = "";
- //循环创建桌面图标
- if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
- for (i = 0; i < _studentDesktopIconInfo.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_studentDesktopIconInfo[i]]),
- "onclick": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_studentDesktopIconInfo[i]])
- }, _frag); //
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
- }
- } else if (_type == 1 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
- for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_teacherDesktopIconInfo[i]]),
- "onclick": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_teacherDesktopIconInfo[i]])
- }, _frag); //
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
- }
- } else if (_type == 1 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
- for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_schoolDesktopIconInfo[i]]),
- "onclick": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_schoolDesktopIconInfo[i]])
- }, _frag); //
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
- }
- } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
- for (i = 0; i < _studentDesktopIconInfo.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_studentDesktopIconInfo[i]]),
- "onclick": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_studentDesktopIconInfo[i]])
- }, _frag); //
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
- }
- } else {
- for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_teacherDesktopIconInfo[i]]),
- "onclick": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_teacherDesktopIconInfo[i]])
- }, _frag); //
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
- }
- }
- //加载好后给图标定位
- U.MD.D.iconPostion($(_frag).Child());
- //把图标加载到页面
- el.appendChild(_frag);
- }
- /**
- * 显示任务栏
- *
- * @param {element} 桌面元素
- */
- U.MD.D.I.displayTaskbar = function (el) {
- //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
- if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
- //任务栏位置变化
- U.selectEl(el).css({ "bottom": "0px" });
- //桌面位置变话
- // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
- }
- }
- //#region 桌面图标拖动逻辑
- /**
- * 桌面排列图标
- *
- * @param {element} 桌面元素
- * @param {object} 上下相距的距离
- * @param {object} 左右相距的距离
- * @return {object} 命名空间
- */
- U.MD.D.iconPostion = function (childs, top, left) {
- var i; //用于循环处理
- top = top || 15; //如果没有设置元素的间距处理默认上间距为15
- left = left || 20; //如果没有设置元素的间距处理默认左间距为15
- //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
- for (i = 0; i < childs.length; i++) {
- //如果竖排top超过了范围处理
- if (top + 95 > US.height - 10) {
- //left超过了页面范围处理,则向上重叠打印处理
- if ((left + 180) > US.width) {
- top -= 115;
- left -= 90;
- }
- //没有超过范围,那么left+90添加到下一个竖排打印
- else {
- left += 90;
- top = 15;
- };
- }
- //给图标的位置赋值
- U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
- if (i < childs.length - 1) {
- //页面图标每次向下加115
- top += 115;
- }
- }
- //返回最后调用的图标的位置
- return [top, left];
- }
- /**
- * 桌面点击事件逻辑
- *
- * @param {element} 桌面元素
- * @param {object} 上下相距的距离
- * @param {object} 左右相距的距离
- * @return {object} 命名空间
- */
- U.MD.D.click = function (el, obj) {
- var _buttonnumber = event.button; //点击的按钮的事件值
- var _userinfo = US.userInfo;
- U.UF.EV.stopBubble(); //阻止向上冒泡
- //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
- if (_buttonnumber < 2) {
- //如果是click事件的处理
- if (event.type == "click") {
- //如果元素在mousemove事件中没有移动则出发click事件
- if (!U.MD.D.I.IsDrag) {
- if (!_userinfo || Object.keys(_userinfo).length === 0) {
- U.alert("请先登录您的账号!");
- setTimeout(() => {
- U.MD.U.L.login();
- }, 2000);
- } else {
- //打开应用处理
- U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
- }
- }
- }
- //如果是mouse事件的处理
- else {
- //拖动处理,添加拖动和拖动结束事件
- U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
- }
- U.MD.D.I.IsDrag = false;
- }
- }
- /**
- * 拖动的处理
- *
- */
- U.MD.D.iconMove = function () {
- //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
- U.MD.D.I.IsDrag = true;
- }
- /**
- * 拖动结束后,这里是定位处理,以网状的形式定位
- *
- * @param {element} 拖动的元素
- * @return {object} 命名空间
- */
- U.MD.D.iconUp = function (el) {
- var _top = 15,
- _left = 20,
- _margin,
- _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
- _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
- if (_positioninfo["OT"] > 15) {
- //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
- _margin = ((_positioninfo["OT"] - 15) % 115 > 55 && _positioninfo["OT"] + 115 < US.height) ? 1 : 0;
- _top = (Math.floor((_positioninfo["OT"] - 15) / 115) + _margin) * 115 + 15;
- }
- if (_positioninfo["OL"] > 20) {
- //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
- _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
- _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
- }
- //while循环判断么一个重叠的元素
- do {
- _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
- _top = _positioninfo[0] + 115; //得到定位后的top
- _left = _positioninfo[1]; //得到定位后的left
- } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
- }
- /**
- * 判断拖动后图标是否重叠
- *
- * @param {element} 拖动的元素
- * @param {element} 桌面所有的元素
- * @param {array} 拖动元素的位置
- ----------[0] 上 top
- ----------[1] 左 left
- * @return {object} 命名空间
- */
- U.MD.D.isOverlap = function (el, childs, postionarray) {
- //循环所有的图标
- for (var i = 0; i < childs.length; i++) {
- //判断有没有和该图标诶子重叠的元素
- if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
- return childs[i]; //如果有返回
- }
- }
- }
- //#endregion
- //#endregion
- //#region 桌面应用
- /**
- * 打开应用
- *
- * @param {string} 类型
- -----------------Disk 网盘系统
- -----------------PDisk 学习系统网盘
- -----------------Poto 图片
- -----------------Video 视频
- -----------------Music 音乐
- -----------------Word word
- -----------------Excel excel
- -----------------Txt 记事本
- -----------------PB 学习系统
- -----------------Blog 朋友圈系统
- -----------------FTP ftp系统
- -----------------Group 好友群
- -----------------SY 首页系统
- -----------------Set 个人设置
- -----------------XSet 系统设置
- -----------------App 我们所有的app
- -----------------BC c.1473.cn 平台
- -----------------CWeb d.1473.cn 变成平台
- -----------------其他的外联系统 我们统一用iframe打开
- * @param {array} 类型
- 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
- 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
- 如果第一个参数为"blog"或者"PDisk"。建议删除。
- 如果第一个参数为其他,则无第二个参数
- * @returns {array}
- */
- window.addEventListener('message', function (e) { // 监听 message 事件
- // alert(e.data.type);
- if (e.data.screenType && e.data.screenType == "2") { //项目管理传入
- U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType)
- } else if (e.data.close && e.data.close == "1") { //更新用户信息
- U.MD.D.I.selectUser();
- } else if (e.data.allScreen && e.data.allScreen == "1") {
- var _formel = document.getElementById("study");
- U.UF.F.windowZooming(_formel);
- } else if (e.data.allScreen && e.data.allScreen == "2") {
- var _formel = document.getElementById("studyDetail");
- U.UF.F.windowZooming(_formel);
- } else if (e.data.allScreen && e.data.allScreen == "3") {
- var _formel = document.getElementById("studentStudy");
- U.UF.F.windowZooming(_formel);
- } else if (e.data.tools && e.data.tools == "1") {
- // U.MD.D.I.openApplication("whiteboard")
- U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
- } else if (e.data.tools && e.data.tools == "2") {
- U.MD.D.I.openApplication("note")
- } else if (e.data.tools && e.data.tools == "3") {
- // U.MD.D.I.openApplication("mind")
- U.MD.D.I.openApplicationJie("MindMap", e.data.cid, e.data.stage, e.data.task, e.data.tool)
- } else if (e.data.tools && e.data.tools == "4") {
- U.MD.D.I.openApplication("investigation")
- } else if (e.data.tools && e.data.tools == "6") {
- U.MD.D.I.openApplication("doc")
- // U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
- } else if (e.data.tools && e.data.tools == "7") {
- // U.MD.D.I.openApplication("mindNetwork")
- U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
- } else if (e.data.tools && e.data.tools == "8") {
- U.MD.D.I.openApplication("library")
- } else if (e.data.tools && e.data.tools == "17") {
- U.MD.D.I.openApplication("stuLibrary")
- } else if (e.data.tools && e.data.tools == "18") {
- U.MD.D.I.openApplication("train")
- } else if (e.data.tools && e.data.tools == "21") {
- U.MD.D.I.openApplication("program")
- } else if (e.data.tools && e.data.tools == "22") {
- U.MD.D.I.openApplication("AIprogram2")
- } else if (e.data.tools && e.data.tools == "23") {
- U.MD.D.I.openApplication("Pythonprogram")
- } else if (e.data.tools && e.data.tools == "24") {
- U.MD.D.I.openApplication("AIprogram")
- } else if (e.data.tools && e.data.tools == "25") {
- U.MD.D.I.openApplication("sys")
- }else if (e.data.tools && e.data.tools == "26") {
- // U.MD.D.I.openApplication("courseDesign")
- U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
- }
- });
- U.MD.D.I.selectUser = function () {
- U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
- if (res.value[0].length > 0) {
- US.userInfo = res.value[0][0];
- $(".userName")[0].innerHTML = US.userInfo.username;
- }
- }, [], { "type": "GET", "withCredentials": true });
- }
- U.MD.D.I.openInApplication = function (str, data, screenType) {
- var _userinfo = US.userInfo, //登录用户信息
- _userid = US.userInfo.userid, //登录用户id
- _oid = _userinfo.organizeid,
- _type = US.userInfo.type,
- _classId = US.userInfo.classid;
- switch (str) {
- case "studyDetail":
- if (!_userinfo || Object.keys(_userinfo).length === 0) {
- setTimeout(() => {
- U.MD.U.L.login();
- }, 2000);
- } else {
- _formdiv = new U.UF.UI.form(
- "项目详情",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&courseId=" + data + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + screenType }), {
- "id": "studyDetail",
- "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- }
- }
- }
- U.MD.D.I.openApplication = function (str, obj, info) {
- obj = obj || {};
- var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
- _formdiv, //创建任务栏时同时弹出的窗体元素。
- _userinfo = US.userInfo, //登录用户信息
- _userid = obj.userid || US.userInfo.userid, //登录用户id
- _oid = obj.organizeid || _userinfo.organizeid,
- _type = US.userInfo.type,
- _classId = US.userInfo.classid,
- _TscreenType = 1
- _screenType = 2,
- _SscreenType = 3;
- if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
- switch (str) {
- case "studnetProject": //好友打开
- _formdiv = new U.UF.UI.form(
- "我的项目",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid }), {
- "id": "studnetProject",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "studentEvaluate": //好友打开
- _formdiv = new U.UF.UI.form(
- "我的评价",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
- "id": "studentEvaluate",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "my":
- _formdiv = new U.UF.UI.form(
- "我的资料",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
- "id": "my",
- "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 "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": "70%", "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(
- "素材库",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid }), {
- "id": "library",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "whiteboard":
- _formdiv = new U.UF.UI.form(
- "电子白板",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
- "id": "whiteboard",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "investigation":
- _formdiv = new U.UF.UI.form(
- "问卷调查",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
- "id": "investigation",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "note":
- _formdiv = new U.UF.UI.form(
- "便签分类",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid }), {
- "id": "note",
- "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- // case "score":
- // _formdiv = new U.UF.UI.form(
- // "量规评分",
- // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
- // "id": "score",
- // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- // "onresize": function() {}
- // }, {
- // closecallback: function() {}
- // }, { "style": { "height": "36px" } }).form; //创建窗体
- // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- // break;
- case "mind":
- _formdiv = new U.UF.UI.form(
- "思维导图",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
- "id": "mind",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "doc":
- // U.MD.D.I.isRoom();
- _formdiv = new U.UF.UI.form(
- "协同文档",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
- "id": "doc",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
- // })
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "studentStudy":
- _formdiv = new U.UF.UI.form(
- "学习中心",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
- "id": "studentStudy",
- "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "train": //好友打开
- _formdiv = new U.UF.UI.form(
- "训练平台",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
- "id": "train",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "mindNetwork": //好友打开
- _formdiv = new U.UF.UI.form(
- "思维网格",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
- "id": "mindNetwork",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "studentClassRoom": //好友打开
- _formdiv = new U.UF.UI.form(
- "实时课堂",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "","frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid }), {
- "id": "studentClassRoom",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- setTimeout(() => {
- U.UF.F.windowZooming(_formdiv)
- }, 0);
- break;
- }
- } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
- switch (str) {
- case "studnetProject": //好友打开
- _formdiv = new U.UF.UI.form(
- "我的项目",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid }), {
- "id": "studnetProject",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "studentEvaluate": //好友打开
- _formdiv = new U.UF.UI.form(
- "我的评价",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
- "id": "studentEvaluate",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "my":
- _formdiv = new U.UF.UI.form(
- "我的资料",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
- "id": "my",
- "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 "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": "70%", "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(
- "素材库",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid }), {
- "id": "library",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "whiteboard":
- _formdiv = new U.UF.UI.form(
- "电子白板",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
- "id": "whiteboard",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "investigation":
- _formdiv = new U.UF.UI.form(
- "问卷调查",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
- "id": "investigation",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "note":
- _formdiv = new U.UF.UI.form(
- "便签分类",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid }), {
- "id": "note",
- "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- // case "score":
- // _formdiv = new U.UF.UI.form(
- // "量规评分",
- // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
- // "id": "score",
- // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- // "onresize": function() {}
- // }, {
- // closecallback: function() {}
- // }, { "style": { "height": "36px" } }).form; //创建窗体
- // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- // break;
- case "mind":
- _formdiv = new U.UF.UI.form(
- "思维导图",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
- "id": "mind",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "doc":
- // U.MD.D.I.isRoom();
- _formdiv = new U.UF.UI.form(
- "协同文档",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
- "id": "doc",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
- })
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "train": //好友打开
- _formdiv = new U.UF.UI.form(
- "训练平台",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
- "id": "train",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "studentStudy":
- _formdiv = new U.UF.UI.form(
- "学习中心",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
- "id": "studentStudy",
- "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "mindNetwork": //好友打开
- _formdiv = new U.UF.UI.form(
- "思维网格",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
- "id": "mindNetwork",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "studentClassRoom": //好友打开
- _formdiv = new U.UF.UI.form(
- "实时课堂",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "","frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid }), {
- "id": "studentClassRoom",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- setTimeout(() => {
- U.UF.F.windowZooming(_formdiv)
- }, 0);
- break;
- }
- } else if (_type == 1 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
- //选择应用处理
- switch (str) {
- case "project": //好友打开
- _formdiv = new U.UF.UI.form(
- "项目管理",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid }), {
- "id": "project",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "student":
- _formdiv = new U.UF.UI.form(
- "学生管理",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId }), {
- "id": "student",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "evaluate":
- _formdiv = new U.UF.UI.form(
- "学生评价",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
- "id": "evaluate",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "sys":
- _formdiv = new U.UF.UI.form(
- "目标管理",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid }), {
- "id": "sys",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "courseDesign":
- _formdiv = new U.UF.UI.form(
- "课程设计",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design/index.html" }), {
- "id": "courseDesign",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "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": "70%", "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(
- "班级管理",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid }), {
- "id": "class",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "my":
- _formdiv = new U.UF.UI.form(
- "我的资料",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
- "id": "my",
- "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 "notice":
- _formdiv = new U.UF.UI.form(
- "通知公告",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/notice?userid=" + _userid }), {
- "id": "notice",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "library":
- _formdiv = new U.UF.UI.form(
- "素材库",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid }), {
- "id": "library",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "whiteboard":
- _formdiv = new U.UF.UI.form(
- "电子白板",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
- "id": "whiteboard",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "investigation":
- _formdiv = new U.UF.UI.form(
- "问卷调查",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
- "id": "investigation",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "note":
- _formdiv = new U.UF.UI.form(
- "便签分类",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid }), {
- "id": "note",
- "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- // case "score":
- // _formdiv = new U.UF.UI.form(
- // "量规评分",
- // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
- // "id": "score",
- // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- // "onresize": function() {}
- // }, {
- // closecallback: function() {}
- // }, { "style": { "height": "36px" } }).form; //创建窗体
- // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
- // break;
- case "mind":
- _formdiv = new U.UF.UI.form(
- "思维导图",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
- "id": "mind",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "doc":
- // U.MD.D.I.isRoom();
- _formdiv = new U.UF.UI.form(
- "协同文档",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
- "id": "doc",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
- })
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "study":
- _formdiv = new U.UF.UI.form(
- "学习中心",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
- "id": "study",
- "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "mindNetwork": //好友打开
- _formdiv = new U.UF.UI.form(
- "思维网格",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
- "id": "mindNetwork",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "train": //好友打开
- _formdiv = new U.UF.UI.form(
- "训练平台",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
- "id": "mindNetwork",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "teacherClassRoom": //好友打开
- _formdiv = new U.UF.UI.form(
- "实时课堂",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "","frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/classRoom?userid=" + _userid + "&oid=" + _oid }), {
- "id": "teacherClassRoom",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- setTimeout(() => {
- U.UF.F.windowZooming(_formdiv)
- }, 0);
- break;
- }
- } else if (_type == 1 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
- switch (str) {
- case "project": //好友打开
- _formdiv = new U.UF.UI.form(
- "项目管理",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid }), {
- "id": "project",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "evaluate":
- _formdiv = new U.UF.UI.form(
- "学生评价",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
- "id": "evaluate",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "notice":
- _formdiv = new U.UF.UI.form(
- "通知公告",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/notice?userid=" + _userid }), {
- "id": "notice",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "stuLibrary":
- _formdiv = new U.UF.UI.form(
- "学习资料",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studyLibrary?userid=" + _userid }), {
- "id": "stuLibrary",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "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": "70%", "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(
- "电子白板",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
- "id": "whiteboard",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "investigation":
- _formdiv = new U.UF.UI.form(
- "问卷调查",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
- "id": "investigation",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "mind":
- _formdiv = new U.UF.UI.form(
- "思维导图",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
- "id": "mind",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "doc":
- // U.MD.D.I.isRoom();
- _formdiv = new U.UF.UI.form(
- "协同文档",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
- "id": "doc",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
- })
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "study":
- _formdiv = new U.UF.UI.form(
- "学习中心",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
- "id": "study",
- "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "mindNetwork": //好友打开
- _formdiv = new U.UF.UI.form(
- "思维网格",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
- "id": "mindNetwork",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "train": //好友打开
- _formdiv = new U.UF.UI.form(
- "训练平台",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
- "id": "train",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "sys":
- _formdiv = new U.UF.UI.form(
- "目标管理",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid }), {
- "id": "sys",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "courseDesign":
- _formdiv = new U.UF.UI.form(
- "课程设计",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design/index.html" }), {
- "id": "courseDesign",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "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;
- }
- }
- switch (str) {
- // AIprogram2 AI体验 aihub.cocorobo.cn
- // Pythonprogram Python编程 python-blockly.cocorobo.cn
- // AIprogram AI编程 ai-blockly.cocorobo.cn
- case "AIprogram2": //AI体验
- _formdiv = new U.UF.UI.form(
- "AI体验",
- $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
- "id": "AIprogram2",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram2.png)" }, "name": "AI体验", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "Pythonprogram": //python编程
- _formdiv = new U.UF.UI.form(
- "Python编程",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
- "id": "Pythonprogram",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Pythonprogram.png)" }, "name": "Python编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "AIprogram": //ai编程
- _formdiv = new U.UF.UI.form(
- "AI编程平台",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
- "id": "AIprogram",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/program.png)" }, "name": "AI编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "resources": //国家教育
- _formdiv = new U.UF.UI.form(
- "国家教育",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
- "id": "resources",
- "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/resources.png)" }, "name": "国家教育", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "codeEdit": //源码编辑
- _formdiv = new U.UF.UI.form(
- "源码编辑",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
- "id": "codeEdit",
- "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/code.png)" }, "name": "源码编辑", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break; //
- case "MindMap": //MindMap
- _formdiv = new U.UF.UI.form(
- "MindMap",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
- "id": "MindMap",
- "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/MIndMap.png)" }, "name": "MindMap", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "translation": //翻译
- _formdiv = new U.UF.UI.form(
- "翻译",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
- "id": "translation",
- "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/translation.png)" }, "name": "翻译", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "mohe": //魔盒
- _formdiv = new U.UF.UI.form(
- "魔盒识字",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
- "id": "mohe",
- "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mohe.png)" }, "name": "魔盒识字", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- case "24game": //24点
- _formdiv = new U.UF.UI.form(
- "24点",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
- "id": "24game",
- "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/24game.png)" }, "name": "24点", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- break;
- }
- //U.MD.D.I.openClick(str);
- //如果有任务栏信息
- if (_taskbar) {
- U.MD.D.T.taskbar(_taskbar); //创建任务处理
- }
- }
- // U.MD.D.I.openClick = function(str){
- // var click = '';
- // switch(str){
- // case 'friend':
- // click = '我的好友';
- // break;
- // case 'domain':
- // click = '域名管理';
- // break;
- // case 'disk':
- // click = '我的云盘';
- // break;
- // case 'word':
- // click = 'Word';
- // break;
- // case 'excel':
- // click = 'Execl';
- // break;
- // case 'txt':
- // click = '文本文件';
- // break;
- // case 'lookupFriend':
- // click = '查找好友';
- // break;
- // case 'ftp':
- // click = 'FTP';
- // break;
- // case 'group':
- // click = '群组';
- // break;
- // case 'set':
- // click = '我的设置';
- // break;
- // case 'systemSet':
- // click = '系统设置';
- // break;
- // case 'boomYun':
- // click = '互联办公';
- // break;
- // case 'xz':
- // click = '云端下载';
- // break;
- // case 'client':
- // click = '有思浏览器';
- // break;
- // case 'backEndProgramming':
- // click = '在线后台编程';
- // break;
- // case 'frontEndProgramming':
- // click = '在线前端编程';
- // break;
- // default: break;
- // }
- // if(U.MD.D.I.Ip && click){
- // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
- // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
- // })
- // }
- // }
- /**
- *函数作用:ajax简易函数,使用post格式
- *@param url {data} 后台地址
- *@param data {data} 参数json
- *@param fn {data} 回调函数
- *
- */
- // U.MD.D.I.Mysqlrequest = function(url,fn){
- // var xhr = new XMLHttpRequest();
- // xhr.open("GET",url,true);
- // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
- // xhr.onreadystatechange = function(){
- // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
- // fn.call(this,xhr.responseText);
- // }
- // };
- // xhr.send();
- // }
- /*判断是否是内网IP*/
- // U.MD.D.I.isInnerIPFn = function(str){
- // var curPageUrl = str;
- // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
- // curPageUrl =curPageUrl.replace(reg1,'');
- // // console.log('curPageUrl-1 '+curPageUrl);
- // var reg2 = /\:+/g;//替换冒号为一点
- // curPageUrl =curPageUrl.replace(reg2,'.');
- // // console.log('curPageUrl-2 '+curPageUrl);
- // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
- // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
- // if(curPageUrl[2] != '16'){
- // return ipAddress;
- // }else{
- // return false;
- // }
- // }
- // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
- // //compatibility for firefox and chrome
- // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
- // var pc = new myPeerConnection({
- // iceServers: []
- // }),
- // noop = function() {},
- // localIPs = {},
- // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
- // key;
- // function iterateIP(ip) {
- // if (!localIPs[ip]) onNewIP(ip);
- // localIPs[ip] = true;
- // }
- // //create a bogus data channel
- // pc.createDataChannel("");
- // // create offer and set local description
- // pc.createOffer().then(function(sdp) {
- // sdp.sdp.split('\n').forEach(function(line) {
- // if (line.indexOf('candidate') < 0) return;
- // line.match(ipRegex).forEach(iterateIP);
- // });
- // pc.setLocalDescription(sdp, noop, noop);
- // }).catch(function(reason) {
- // // An error occurred, so handle the failure to connect
- // });
- // //sten for candidate events
- // pc.onicecandidate = function(ice) {
- // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
- // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
- // };
- // }
- // U.MD.D.I.getUserIpBool = function(callback){
- // U.MD.D.I.getUserIP(function(ip){
- // alert("Got IP! :" + ip);
- // });
- //}
- //#endregion
- U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
- var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
- _formdiv, //创建任务栏时同时弹出的窗体元素。
- _userinfo = US.userInfo, //登录用户信息
- _userid = US.userInfo.userid //登录用户id
- let _iframe;
- var _jie = $$("div", {
- "style": {
- "position": "absolute",
- "bottom": "50px",
- "right": "50px",
- "zIndex": "9999",
- "backgroundColor": "#2268bc",
- "color": "#fff",
- "padding": "12px 20px",
- "cursor": "pointer",
- "borderRadius": "4px",
- },
- "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)
- var _box = $$('div', {
- "style": {
- "position": "relative",
- "width": "100%",
- "height": "100%",
- },
- })
- _box.appendChild(_loading)
- _box.id = str + '_loadLi'
- switch (str) {
- case "whiteboard":
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "https://iwb.cocorobo.cn/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "电子白板",
- _box, {
- "id": "whiteboard",
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _taskbar = {
- "id": str + _formdiv.id,
- "style": {
- "backgroundImage": "url(/img/icon/whiteBoard.png)"
- },
- "name": "电子白板",
- "forms": _formdiv,
- "click": function () {
- U.MD.D.I.openApplication(str, obj, info);
- }
- }
- break;
- case "mind":
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/kityminder-editor/dist/index.html"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维导图",
- _box, { //"/jsmind/example/demo.html"
- "id": "mind",
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _taskbar = {
- "id": str + _formdiv.id,
- "style": {
- "backgroundImage": "url(/img/icon/mindMapping.png)"
- },
- "name": "思维导图",
- "forms": _formdiv,
- "click": function () {
- U.MD.D.I.openApplication(str, obj, info);
- }
- }
- break;
- case "MindMap":
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "//cloud.cocorobo.cn/mind/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维导图",
- _box, { //"/jsmind/example/demo.html"
- "id": "mind",
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _taskbar = {
- "id": str + _formdiv.id,
- "style": {
- "backgroundImage": "url(/img/icon/mindMapping.png)"
- },
- "name": "思维导图",
- "forms": _formdiv,
- "click": function () {
- U.MD.D.I.openApplication(str, obj, info);
- }
- }
- break;
- case "doc":
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/Office/Word/WordEditArea.htm"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "协同文档",
- _box, {
- "id": "doc",
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
- })
- _taskbar = {
- "id": str + _formdiv.id,
- "style": {
- "backgroundImage": "url(/img/icon/doc.png)"
- },
- "name": "协同文档",
- "forms": _formdiv,
- "click": function () {
- U.MD.D.I.openApplication(str, obj, info);
- }
- }
- break;
- case "mindNetwork": //好友打开
- _iframe = $$("iframe", {
- "webkitallowfullscreen": "",
- "mozallowfullscreen": "",
- "allowfullscreen": "",
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0; width:100%; height:100%;"
- },
- "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维网格",
- _box, {
- "id": "mindNetwork",
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _taskbar = {
- "id": str + _formdiv.id,
- "style": {
- "backgroundImage": "url(/img/icon/mindNetwork.png)"
- },
- "name": "思维网格",
- "forms": _formdiv,
- "click": function () {
- U.MD.D.I.openApplication(str, obj, info);
- }
- }
- break;
- case "courseDesign":
- _iframe = $$("iframe", {
- "webkitallowfullscreen": "",
- "mozallowfullscreen": "",
- "allowfullscreen": "",
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0; width:100%; height:100%;"
- },
- "src": "/course-design/index.html"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "课程设计",
- _box, {
- "id": "courseDesign",
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () {}
- }, {
- closecallback: function () {}
- }, {
- "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;
- }
- const script1 = document.createElement("script");
- script1.type = "text/javascript";
- script1.src =
- "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
- const script2 = document.createElement("script");
- script2.type = "text/javascript";
- script2.src =
- "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
- const script3 = document.createElement("script");
- script3.type = "text/javascript";
- script3.src = "https://html2canvas.hertzen.com/dist/js/html2canvas.min.js";
- const script4 = document.createElement("script");
- script4.type = "text/javascript";
- script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
- if (_iframe) {
- if (str == 'doc') {
- 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);
- // _iframe.contentWindow.document.body.appendChild(script3);
- _iframe.contentWindow.document.body.appendChild(script4);
- })
- } else if (str == 'courseDesign') {
- 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);
- _iframe.contentWindow.document.body.appendChild(script4);
- })
- } else {
- _iframe.onload = () => {
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- // _iframe.contentWindow.document.body.appendChild(script3);
- _iframe.contentWindow.document.body.appendChild(script4);
- };
- }
- _jie.onclick = () => {
- _loading.style.display = 'flex'
- console.log(_loading);
- var _ajs = _iframe.contentWindow.document.createElement("script");
- _ajs.type = "text/javascript";
- _ajs.innerHTML =
- // 'console.log(' + _loading + ');\n' +
- 'var _js = document.createElement("script");\n' +
- '_js.type="text/javascript";\n' +
- '_js.src="https://html2canvas.hertzen.com/dist/html2canvas.min.js";\n' +
- "_js.onload = function(){\n" +
- ' var a = document.getElementsByTagName("img")\n' +
- ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
- " html2canvas(document.body,{allowTaint: true,useCORS: true}).then(canvas => {\n" +
- ' var base64Url = canvas.toDataURL("image/png");\n' +
- 'var base64 = "<img src=" + base64Url + " />"\n' +
- 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
- "beforeUpload_shishi(file," +
- "'" +
- _userid +
- "'" +
- ", " +
- "'" +
- cid +
- "'" +
- ", " +
- "'" +
- stage +
- "'" +
- ", " +
- "'" +
- task +
- "'" +
- ", " +
- "'" +
- tool +
- "'" +
- ", " +
- "'" +
- str + '_loadLi' +
- "'" +
- ")\n" +
- " });\n" +
- "}\n" +
- "document.head.appendChild(_js);\n";
- _iframe.contentWindow.document.head.appendChild(_ajs);
- }
- }
- //U.MD.D.I.openClick(str);
- //如果有任务栏信息
- if (_taskbar) {
- U.MD.D.T.taskbar(_taskbar); //创建任务处理
- }
- }
|