DeskTop.js 447 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699
  1. /*
  2. 此處為桌面系統啟動應用區域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面應用處理
  5. //判斷圖片是否在拖拽,如果是拖拽圖標的過程是不會打開圖片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教師桌面圖標的全局變量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  17. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  18. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  19. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  20. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  21. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  22. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  23. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  24. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  25. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  26. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  27. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  28. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  29. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  30. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  31. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  32. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  33. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  34. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  35. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  36. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  37. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  38. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  39. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  40. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  41. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  42. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  43. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  44. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  45. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  46. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  47. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  48. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  49. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  50. ];
  51. //極簡模式
  52. U.MD.D.I.easyDeskIcon = [
  53. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  55. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  56. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  57. // { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  58. ];
  59. //教師桌面圖標的全局變量
  60. U.MD.D.I.teacherDeskIcon2 = [
  61. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  62. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  63. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  64. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  65. // { "Name": "項目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  66. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  67. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  68. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  69. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  70. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  71. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  72. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  73. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  74. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  75. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  76. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  77. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  78. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  79. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  80. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  81. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  82. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  83. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  84. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  85. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  86. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  87. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  88. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  89. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  90. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  91. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  92. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  93. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  94. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  95. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  96. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  97. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  98. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  99. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  100. ];
  101. U.MD.D.I.studentDeskIcon = [
  102. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  103. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  104. // { "Name": "我的項目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  105. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  106. // { "Name": "我的評價", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  107. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  108. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  109. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  110. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  111. // { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  112. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  113. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  114. // { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  115. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  116. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  117. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  118. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  119. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  120. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  121. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  122. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  123. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  124. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  125. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  126. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  127. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  128. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  129. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  130. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  131. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  132. ];
  133. U.MD.D.I.studentDeskIcon2 = [
  134. // { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  135. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  136. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  137. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  138. ]
  139. U.MD.D.I.studentDeskIcon3 = [
  140. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  141. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  142. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. ]
  144. U.MD.D.I.schoolDeskIcon = [
  145. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  146. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  147. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  148. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  149. { "Name": "學習資料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  150. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  151. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  152. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  153. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  154. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  155. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  156. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  157. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  158. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  159. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  160. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  161. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  162. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  163. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  164. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  165. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  166. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  167. ];
  168. U.MD.D.I.orgDeskIcon = [
  169. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  170. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  171. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  172. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  173. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  174. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  175. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  176. ];
  177. U.MD.D.I.orgStemDeskIcon = [
  178. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  179. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  180. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  181. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  182. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  183. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  184. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  185. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  186. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  187. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  188. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  189. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  190. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  191. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  192. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  193. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  194. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  195. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  196. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  197. ];
  198. U.MD.D.I.szulsDeskIcon = [
  199. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  200. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  201. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  202. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  204. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  205. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  206. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  207. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  209. ];
  210. U.MD.D.I.hanDeskIcon = [
  211. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  212. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  213. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  214. { "Name": "漢字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  215. { "Name": "國學經典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  216. { "Name": "筆畫訓練", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  217. { "Name": "書法課堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  218. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  219. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  220. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  221. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  222. ];
  223. U.MD.D.I.GMteacherDeskIcon = [
  224. { "Name": "課程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  225. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "學生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  227. { "Name": "學生評價", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  228. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  229. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  230. { "Name": "班級管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  231. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  232. { "Name": "課程進展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  233. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  234. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  235. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  236. ];
  237. U.MD.D.I.GMstudentDeskIcon = [
  238. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  239. { "Name": "我的評價", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  240. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  241. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  242. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  243. ];
  244. //北師大
  245. U.MD.D.I.BSDNSteacherDeskIcon = [
  246. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  247. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  248. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  249. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  250. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  251. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  252. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  253. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  254. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  255. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  256. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  257. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  258. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  259. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  260. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  261. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  262. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  263. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  264. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  265. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  266. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  267. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  268. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  269. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  270. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  271. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  272. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  273. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  274. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  275. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  276. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  277. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  278. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  279. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  280. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  281. { "Name": "數字實驗室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  282. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  283. ];
  284. //松山湖
  285. U.MD.D.I.SONGteacherDeskIcon = [
  286. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  287. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  288. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  289. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  290. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  291. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  292. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  293. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  294. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  295. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  296. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  297. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  298. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  299. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  300. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  301. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  302. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  303. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  304. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  305. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  306. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  307. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  308. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  309. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  310. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  311. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  312. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  313. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  314. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  315. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  316. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  317. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  318. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  319. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  320. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  321. ];
  322. U.MD.D.I.tcStudentDeskIcon = [
  323. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  324. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  325. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  326. ];
  327. U.MD.D.I.tcTeacherDeskIcon = [
  328. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  329. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  330. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  331. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  332. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  333. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  334. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  335. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. ];
  338. U.MD.D.I.tcOrganizerDeskIcon = [
  339. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  340. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  341. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  342. { "Name": "師生項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  343. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  344. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  345. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  346. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  347. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  348. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  349. ];
  350. U.MD.D.I.szscStudentDeskIcon = [
  351. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  352. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  353. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  354. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  355. ];
  356. U.MD.D.I.szscTeacherDeskIcon = [
  357. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  358. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  359. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  360. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  361. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  362. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  363. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  364. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  365. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  366. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  367. ];
  368. U.MD.D.I.szscOrganizerDeskIcon = [
  369. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  370. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  371. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  372. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  373. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  374. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  375. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  376. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  377. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  378. ];
  379. U.MD.D.I.wankeTeacherDeskIcon = [ //1c3b9def-8fbe-11ed-b13d-005056b86db5
  380. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  381. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  382. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  383. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  384. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  385. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  386. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  387. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  388. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  389. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  390. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  391. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  392. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  393. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  394. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  395. ];
  396. U.MD.D.I.wankeAdminDeskIcon = [
  397. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  398. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  399. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  400. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  401. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  402. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  403. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  404. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  405. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  406. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  407. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  408. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  409. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  410. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  411. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  412. ];
  413. U.MD.D.I.lhsTeacherDeskIcon = [ //未來小學
  414. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  415. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  416. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  417. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  418. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  419. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  420. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  421. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  422. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  423. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  424. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  425. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  426. ];
  427. U.MD.D.I.lhsAdminDeskIcon = [ //未來小學admin
  428. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  429. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  430. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  431. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  432. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  433. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  434. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  435. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  436. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  437. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  438. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  439. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  440. ];
  441. //明德教師桌面圖標的全局變量
  442. U.MD.D.I.MingdeTeacherDeskIcon = [
  443. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  444. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  445. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  446. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  447. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  448. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  449. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  450. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  451. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  452. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  453. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  454. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  455. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  456. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  457. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  458. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  459. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  460. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  461. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  462. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  463. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  464. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  465. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  466. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  467. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  468. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  469. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  470. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  471. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  472. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  473. ];
  474. //97c4ee8b-d010-4042-986d-e9d3c217264f
  475. //教師桌面圖標的全局變量
  476. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  477. { "Name": "工作項目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  478. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  479. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  480. // { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  481. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  482. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  483. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  484. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  485. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  486. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  487. ];
  488. //福田
  489. U.MD.D.I.futianTeacherDeskIcon = [
  490. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  491. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  492. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  493. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  494. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  495. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  496. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  497. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  498. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  499. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  500. ];
  501. //福田
  502. U.MD.D.I.futianAdminDeskIcon = [
  503. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  504. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  505. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  506. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  507. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  508. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  509. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  510. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  511. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  512. ];
  513. //lotech
  514. U.MD.D.I.lotechTeacherDeskIcon = [
  515. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  516. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  517. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  518. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  519. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  520. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  521. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  522. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  523. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  524. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  525. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  526. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  527. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  528. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  529. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  530. ];
  531. //龍華中心小學教師桌面圖標的全局變量
  532. U.MD.D.I.longhuateacherDeskIcon = [
  533. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  534. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  535. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  536. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  537. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  538. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  539. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  540. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  541. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  542. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  543. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  544. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  545. ];
  546. //教科院實小教師桌面圖標的全局變量
  547. U.MD.D.I.siesteacherDeskIcon = [
  548. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  549. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  550. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  551. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  552. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  553. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  554. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  555. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  556. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  557. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  558. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  559. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  560. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  561. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  562. ];
  563. //教科院實小教師桌面圖標的全局變量
  564. U.MD.D.I.siesStudentDeskIcon = [
  565. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  566. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  567. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  568. ];
  569. //福田
  570. U.MD.D.I.gdjgTeacherDeskIcon = [
  571. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  572. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  573. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  574. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  575. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  576. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  577. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  578. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  579. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  580. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  581. ];
  582. //gdjg
  583. U.MD.D.I.gdjgAdminDeskIcon = [
  584. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  585. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  586. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  587. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  588. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  589. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  590. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  591. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  592. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  593. ];
  594. //hk
  595. U.MD.D.I.hkteacherDeskIcon = [
  596. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  597. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  598. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  599. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  600. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  601. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  602. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  603. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  604. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  605. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  606. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  607. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  608. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  609. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  610. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  611. ];
  612. //hk
  613. U.MD.D.I.hkStudentDeskIcon = [
  614. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  615. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  616. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  617. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  618. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  619. ];
  620. //香海正覺蓮社佛教正覺中學
  621. U.MD.D.I.hkZJLSteacherDeskIcon = [
  622. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  623. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  624. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  625. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  626. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  627. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  628. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  629. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  630. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  631. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  632. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  633. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  634. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  635. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  636. ];
  637. //香海正覺蓮社佛教正覺中學
  638. U.MD.D.I.hkZJLSStudentDeskIcon = [
  639. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  640. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  641. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  642. ];
  643. //雲海
  644. U.MD.D.I.yunhaiTeacherDeskIcon = [
  645. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  646. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  647. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  648. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  649. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  650. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  651. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  652. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  653. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  654. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  655. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  656. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  657. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  658. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  659. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  660. ];
  661. //福田
  662. U.MD.D.I.heyuanTeacherDeskIcon = [
  663. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  664. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  665. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  666. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  667. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  668. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  669. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  670. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  671. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  672. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  673. ];
  674. //福田
  675. U.MD.D.I.heyuanAdminDeskIcon = [
  676. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  677. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  678. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  679. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  680. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  681. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  682. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  683. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  684. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  685. ];
  686. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  687. U.MD.D.I.szherTeacherDeskIcon = [
  688. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  689. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  690. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  691. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  692. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  693. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  694. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  695. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  696. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  697. ];
  698. //dsei
  699. U.MD.D.I.dseiTeacherDeskIcon = [
  700. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  701. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  702. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  703. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  704. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  705. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  706. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  707. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  708. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  709. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  710. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  711. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  712. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  713. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  714. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  715. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  716. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  717. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  718. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  719. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  720. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  721. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  722. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  723. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  724. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  725. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  726. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  727. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  728. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  729. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  730. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  731. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  732. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  733. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  734. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  735. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  736. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  737. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  738. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  739. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  740. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  741. ];
  742. //dsei
  743. U.MD.D.I.dseiAdminDeskIcon = [
  744. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  745. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  746. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  747. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  748. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  749. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  750. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  751. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  752. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  753. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  754. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  755. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  756. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  757. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  758. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  759. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  760. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  761. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  762. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  763. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  764. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  765. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  766. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  767. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  768. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  769. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  770. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  771. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  772. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  773. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  774. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  775. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  776. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  777. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  778. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  779. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  780. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  781. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  782. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  783. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  784. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  785. ];
  786. //dsei
  787. U.MD.D.I.dseiStudentDeskIcon = [
  788. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  789. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  790. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  791. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  792. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  793. ];
  794. //未來教育基地
  795. U.MD.D.I.szjkyTeacherDeskIcon = [
  796. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  797. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  798. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  799. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  800. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  801. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  802. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  803. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  804. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  805. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  806. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  807. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  808. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  809. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  810. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  811. ];
  812. //未來教育基地
  813. U.MD.D.I.szjkyAdminDeskIcon = [
  814. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  815. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  816. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  817. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  818. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  819. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  820. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  821. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  822. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  823. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  824. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  825. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  826. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  827. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  828. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  829. ];
  830. //未來教育基地
  831. U.MD.D.I.szjkyStudentDeskIcon = [
  832. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  833. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  834. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  835. ];
  836. //成華教育局
  837. U.MD.D.I.chjyjTeacherDeskIcon = [
  838. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  839. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  840. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  841. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  842. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  843. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  844. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  845. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  846. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  847. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  848. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  849. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  850. ];
  851. //成華教育局chjyj
  852. U.MD.D.I.chjyjAdminDeskIcon = [
  853. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  854. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  855. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  856. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  857. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  858. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  859. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  860. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  861. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  862. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  863. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  864. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  865. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  866. ];
  867. //成華教育局chjyj
  868. U.MD.D.I.chjyjStudentDeskIcon = [
  869. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  870. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  871. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  872. ];
  873. //#region 桌面初始化a
  874. /**
  875. * 初始化桌面的起始函數
  876. *
  877. */
  878. U.MD.D.I.init = function() {
  879. if ($("#U_MD_D_K")[0]) {
  880. //初始化桌面圖標
  881. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  882. // var clickUrl = ':12588/requestIp.php';
  883. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  884. // U.MD.D.I.Ip = data;
  885. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  886. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  887. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  888. // })
  889. // //初始化任務欄,因為是靜態的,所以直接改變樣式即可.
  890. // })
  891. }
  892. }
  893. /**
  894. * 模式切換
  895. *
  896. */
  897. U.MD.D.I.ModeCheck = function(type) {
  898. if (US.Config.type == type) {
  899. return
  900. }
  901. US.Config.type = type
  902. $('.U_PBL_Check .active')[0].className = ''
  903. if (type == 1) {
  904. $('.U_PBL_Check div')[0].className = 'active'
  905. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  906. } else {
  907. $('.U_PBL_Check div')[1].className = 'active'
  908. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  909. }
  910. //初始化桌面圖標
  911. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  912. if (type == 2) {
  913. U.MD.D.I.openApplication("project")
  914. }
  915. }
  916. /**
  917. * 隱藏任務欄
  918. *
  919. * @param {element} 桌面元素
  920. */
  921. U.MD.D.I.hiddenTaskbar = function(el) {
  922. //任務欄位置變小
  923. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  924. //桌面的位置變大
  925. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  926. }
  927. /**
  928. * 隱藏任務欄
  929. *
  930. * @param {element} 桌面元素
  931. */
  932. U.MD.D.I.hiddenTaskbarout = function(el) {
  933. //任務欄位置變小
  934. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  935. //任務欄位置變化
  936. U.selectEl(el).css({ "bottom": "-60px" });
  937. //桌面的位置變大
  938. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  939. }
  940. }
  941. /**
  942. * 初始化打印桌面圖標
  943. *
  944. * @param {element} 桌面元素
  945. */
  946. U.MD.D.I.initDesktopIcons = function(el, type) {
  947. var i, //用於循環
  948. _content, //桌面圖標元素
  949. _iconcontent, //桌面圖標元素
  950. _frag = $$("frag"), //定義一個碎片元素
  951. _type = US.userInfo.type,
  952. _org = US.userInfo.org,
  953. _oid = US.userInfo.organizeid,
  954. _role = US.userInfo.role,
  955. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //獲取教師端桌面圖標
  956. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //極簡模式桌面圖標
  957. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //獲取教師端桌面圖標
  958. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //獲取學生端桌面圖標
  959. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //獲取學生端桌面圖標
  960. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //獲取學生端桌面圖標
  961. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //獲取組織桌面圖標
  962. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  963. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  964. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  965. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //獲取測試學校桌面圖標
  966. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon, //獲取北師大
  967. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon, //獲取周佳名工作室
  968. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon, //獲取松山湖
  969. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon, //獲取萬科雙語
  970. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon, //獲取萬科雙語
  971. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon, //獲取萬科雙語
  972. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon, //獲取未來小學
  973. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon, //獲取未來小學
  974. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //獲取光明學校桌面圖標
  975. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //獲取光明學校桌面圖標
  976. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon, //騰訊學生
  977. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon, //騰訊學生
  978. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon, //福田
  979. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon, //福田
  980. _szjkyTeacherDeskIconInfo = U.MD.D.I.szjkyTeacherDeskIcon, //未來教育基地
  981. _szjkyAdminDeskIconInfo = U.MD.D.I.szjkyAdminDeskIcon, //未來教育基地
  982. _szjkyStudentDeskIconInfo = U.MD.D.I.szjkyStudentDeskIcon, //未來教育基地
  983. _chjyjTeacherDeskIconInfo = U.MD.D.I.chjyjTeacherDeskIcon, //成華教育局
  984. _chjyjAdminDeskIconInfo = U.MD.D.I.chjyjAdminDeskIcon, //成華教育局
  985. _chjyjStudentDeskIconInfo = U.MD.D.I.chjyjStudentDeskIcon, //成華教育局
  986. _dseiTeacherDeskIconInfo = U.MD.D.I.dseiTeacherDeskIcon, //dsei
  987. _dseiAdminDeskIconInfo = U.MD.D.I.dseiAdminDeskIcon, //dsei
  988. _dseiStudentDeskIconInfo = U.MD.D.I.dseiStudentDeskIcon, //dsei
  989. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon, //福田
  990. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon, //福田
  991. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon, //szher
  992. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon, //
  993. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon, //
  994. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon, //lotech
  995. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon, //龍華中心
  996. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon, //sies
  997. _siesStudentDeskIconInfo = U.MD.D.I.siesStudentDeskIcon, //sies
  998. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon, //騰訊學生
  999. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon, //hk
  1000. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon, //hk
  1001. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon, //hk
  1002. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon, //hk
  1003. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon, //雲海
  1004. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon, //網絡夏令營
  1005. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon, //網絡夏令營
  1006. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon; //網絡夏令營
  1007. var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5", "05b62310-8cda-11ed-b13d-005056b86db5", '1c3b9def-8fbe-11ed-b13d-005056b86db5', '91305d49-01ba-11ed-8c78-005056b86db4', 'ea2a8c65-f38c-11ed-91d8-005056b86db5', '4c686762-1d0a-11ed-8c78-005056b86db5', 'b1095a3c-1d06-4ac8-854f-7c0d97f4ab41', '206c38d2-0cbe-11ee-91d8-005056b86db5'];
  1008. var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d", "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b", "150e3120-9195-11ed-b13d-005056b86db5", "ee40e8e3-e36c-4872-8105-cf395481012s", '97c4ee8b-d010-4042-986d-e9d3c217264f', 'ec0af97a-7c10-4259-a7eb-db9cc8174cdc', '4df1b570-f6ac-48fc-8d50-d0b157dae776', 'e632b86c-f89d-11ed-91d8-005056b86db5', 'b50cf65a-001c-11ee-91d8-005056b86db5', '578de748-05d2-11ee-91d8-005056b86db5', '54f09f1e-09f0-11ee-91d8-005056b86db5', '7b016f69-0f4f-11ee-91d8-005056b86db5', '1973f6c7-1561-11ee-91d8-005056b86db5','2fa75e51-189a-11ee-91d8-005056b86db5'];
  1009. //清楚桌面圖標
  1010. el.innerHTML = "";
  1011. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  1012. _teacherDesktopIconInfo.push(
  1013. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1014. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } }, { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } }, { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } }, { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  1015. )
  1016. _easyDesktopIconInfo.push({ "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } })
  1017. }
  1018. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  1019. _teacherDesktopIconInfo.push(
  1020. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1021. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  1022. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1023. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1024. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  1025. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  1026. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1027. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1028. )
  1029. }
  1030. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5') {
  1031. _teacherDesktopIconInfo.push(
  1032. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1033. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1034. )
  1035. _studentDesktopIconInfo.push(
  1036. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1037. )
  1038. }
  1039. if (_oid == 'cf8841e8-c7c0-11ed-9546-005056b86db5') {
  1040. _teacherDesktopIconInfo.push(
  1041. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1042. )
  1043. }
  1044. if (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
  1045. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  1046. if (el.Name == '項目管理') {
  1047. el.Name = 'PBL項目'
  1048. }
  1049. return el
  1050. })
  1051. }
  1052. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  1053. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  1054. return el.Name != '魔盒識字' && el.Name != '24點'
  1055. })
  1056. }
  1057. if ((_oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") && _type == 2) {
  1058. _studentDesktopIconInfo.push({ "Name": "我的評價", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } }, )
  1059. }
  1060. //循環創建桌面圖標
  1061. if (type == 1) {
  1062. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  1063. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1064. _content = $$("div", {
  1065. className: "U_MD_D_KO",
  1066. "onmousedown": U.UF.C.closure(function(obj) {
  1067. //防止拖動圖標即打開了桌面應用
  1068. U.MD.D.click(this, obj);
  1069. }, [_studentDesktopIconInfo[i]]),
  1070. "onclick": U.UF.C.closure(function(obj) {
  1071. //防止拖動圖標即打開了桌面應用
  1072. U.MD.D.click(this, obj);
  1073. }, [_studentDesktopIconInfo[i]])
  1074. }, _frag); //
  1075. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1076. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1077. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1078. }
  1079. } else if (_type == 2 && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1080. for (i = 0; i < _hkZJLSStudentDeskIconInfo.length; i++) {
  1081. _content = $$("div", {
  1082. className: "U_MD_D_KO",
  1083. "onmousedown": U.UF.C.closure(function(obj) {
  1084. //防止拖動圖標即打開了桌面應用
  1085. U.MD.D.click(this, obj);
  1086. }, [_hkZJLSStudentDeskIconInfo[i]]),
  1087. "onclick": U.UF.C.closure(function(obj) {
  1088. //防止拖動圖標即打開了桌面應用
  1089. U.MD.D.click(this, obj);
  1090. }, [_hkZJLSStudentDeskIconInfo[i]])
  1091. }, _frag); //
  1092. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1093. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  1094. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  1095. } //
  1096. } else if (_type == 2 && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5")) {
  1097. for (i = 0; i < _chjyjStudentDeskIconInfo.length; i++) {
  1098. _content = $$("div", {
  1099. className: "U_MD_D_KO",
  1100. "onmousedown": U.UF.C.closure(function(obj) {
  1101. //防止拖動圖標即打開了桌面應用
  1102. U.MD.D.click(this, obj);
  1103. }, [_chjyjStudentDeskIconInfo[i]]),
  1104. "onclick": U.UF.C.closure(function(obj) {
  1105. //防止拖動圖標即打開了桌面應用
  1106. U.MD.D.click(this, obj);
  1107. }, [_chjyjStudentDeskIconInfo[i]])
  1108. }, _frag); //
  1109. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1110. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjStudentDeskIconInfo[i].style }, _iconcontent);
  1111. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjStudentDeskIconInfo[i].Name }, _iconcontent);
  1112. }
  1113. } else if (_type == 2 && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5")) {
  1114. for (i = 0; i < _szjkyStudentDeskIconInfo.length; i++) {
  1115. _content = $$("div", {
  1116. className: "U_MD_D_KO",
  1117. "onmousedown": U.UF.C.closure(function(obj) {
  1118. //防止拖動圖標即打開了桌面應用
  1119. U.MD.D.click(this, obj);
  1120. }, [_szjkyStudentDeskIconInfo[i]]),
  1121. "onclick": U.UF.C.closure(function(obj) {
  1122. //防止拖動圖標即打開了桌面應用
  1123. U.MD.D.click(this, obj);
  1124. }, [_szjkyStudentDeskIconInfo[i]])
  1125. }, _frag); //
  1126. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1127. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyStudentDeskIconInfo[i].style }, _iconcontent);
  1128. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyStudentDeskIconInfo[i].Name }, _iconcontent);
  1129. }
  1130. } else if (_type == 2 && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5")) {
  1131. for (i = 0; i < _dseiStudentDeskIconInfo.length; i++) {
  1132. _content = $$("div", {
  1133. className: "U_MD_D_KO",
  1134. "onmousedown": U.UF.C.closure(function(obj) {
  1135. //防止拖動圖標即打開了桌面應用
  1136. U.MD.D.click(this, obj);
  1137. }, [_dseiStudentDeskIconInfo[i]]),
  1138. "onclick": U.UF.C.closure(function(obj) {
  1139. //防止拖動圖標即打開了桌面應用
  1140. U.MD.D.click(this, obj);
  1141. }, [_dseiStudentDeskIconInfo[i]])
  1142. }, _frag); //
  1143. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1144. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiStudentDeskIconInfo[i].style }, _iconcontent);
  1145. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiStudentDeskIconInfo[i].Name }, _iconcontent);
  1146. }
  1147. } else if (_type == 2 && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1148. for (i = 0; i < _siesStudentDeskIconInfo.length; i++) {
  1149. _content = $$("div", {
  1150. className: "U_MD_D_KO",
  1151. "onmousedown": U.UF.C.closure(function(obj) {
  1152. //防止拖動圖標即打開了桌面應用
  1153. U.MD.D.click(this, obj);
  1154. }, [_siesStudentDeskIconInfo[i]]),
  1155. "onclick": U.UF.C.closure(function(obj) {
  1156. //防止拖動圖標即打開了桌面應用
  1157. U.MD.D.click(this, obj);
  1158. }, [_siesStudentDeskIconInfo[i]])
  1159. }, _frag); //
  1160. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1161. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesStudentDeskIconInfo[i].style }, _iconcontent);
  1162. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesStudentDeskIconInfo[i].Name }, _iconcontent);
  1163. }
  1164. } else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1165. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  1166. _content = $$("div", {
  1167. className: "U_MD_D_KO",
  1168. "onmousedown": U.UF.C.closure(function(obj) {
  1169. //防止拖動圖標即打開了桌面應用
  1170. U.MD.D.click(this, obj);
  1171. }, [_hkStudentDeskIconInfo[i]]),
  1172. "onclick": U.UF.C.closure(function(obj) {
  1173. //防止拖動圖標即打開了桌面應用
  1174. U.MD.D.click(this, obj);
  1175. }, [_hkStudentDeskIconInfo[i]])
  1176. }, _frag); //
  1177. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1178. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  1179. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  1180. }
  1181. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  1182. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1183. _content = $$("div", {
  1184. className: "U_MD_D_KO",
  1185. "onmousedown": U.UF.C.closure(function(obj) {
  1186. //防止拖動圖標即打開了桌面應用
  1187. U.MD.D.click(this, obj);
  1188. }, [_studentDesktopIconInfo[i]]),
  1189. "onclick": U.UF.C.closure(function(obj) {
  1190. //防止拖動圖標即打開了桌面應用
  1191. U.MD.D.click(this, obj);
  1192. }, [_studentDesktopIconInfo[i]])
  1193. }, _frag); //
  1194. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1195. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1196. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1197. }
  1198. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  1199. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  1200. _content = $$("div", {
  1201. className: "U_MD_D_KO",
  1202. "onmousedown": U.UF.C.closure(function(obj) {
  1203. //防止拖動圖標即打開了桌面應用
  1204. U.MD.D.click(this, obj);
  1205. }, [_tcStudentDeskIconInfo[i]]),
  1206. "onclick": U.UF.C.closure(function(obj) {
  1207. //防止拖動圖標即打開了桌面應用
  1208. U.MD.D.click(this, obj);
  1209. }, [_tcStudentDeskIconInfo[i]])
  1210. }, _frag); //
  1211. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1212. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  1213. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  1214. }
  1215. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  1216. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  1217. _content = $$("div", {
  1218. className: "U_MD_D_KO",
  1219. "onmousedown": U.UF.C.closure(function(obj) {
  1220. //防止拖動圖標即打開了桌面應用
  1221. U.MD.D.click(this, obj);
  1222. }, [_szscStudentDeskIconInfo[i]]),
  1223. "onclick": U.UF.C.closure(function(obj) {
  1224. //防止拖動圖標即打開了桌面應用
  1225. U.MD.D.click(this, obj);
  1226. }, [_szscStudentDeskIconInfo[i]])
  1227. }, _frag); //
  1228. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1229. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  1230. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  1231. }
  1232. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  1233. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  1234. _content = $$("div", {
  1235. className: "U_MD_D_KO",
  1236. "onmousedown": U.UF.C.closure(function(obj) {
  1237. //防止拖動圖標即打開了桌面應用
  1238. U.MD.D.click(this, obj);
  1239. }, [_studentDesktopIconInfo3[i]]),
  1240. "onclick": U.UF.C.closure(function(obj) {
  1241. //防止拖動圖標即打開了桌面應用
  1242. U.MD.D.click(this, obj);
  1243. }, [_studentDesktopIconInfo3[i]])
  1244. }, _frag); //
  1245. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1246. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  1247. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  1248. }
  1249. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  1250. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  1251. _content = $$("div", {
  1252. className: "U_MD_D_KO",
  1253. "onmousedown": U.UF.C.closure(function(obj) {
  1254. //防止拖動圖標即打開了桌面應用
  1255. U.MD.D.click(this, obj);
  1256. }, [_studentDesktopIconInfo2[i]]),
  1257. "onclick": U.UF.C.closure(function(obj) {
  1258. //防止拖動圖標即打開了桌面應用
  1259. U.MD.D.click(this, obj);
  1260. }, [_studentDesktopIconInfo2[i]])
  1261. }, _frag); //
  1262. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1263. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  1264. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  1265. }
  1266. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  1267. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  1268. _content = $$("div", {
  1269. className: "U_MD_D_KO",
  1270. "onmousedown": U.UF.C.closure(function(obj) {
  1271. //防止拖動圖標即打開了桌面應用
  1272. U.MD.D.click(this, obj);
  1273. }, [_wanketeacherDesktopIconInfo[i]]),
  1274. "onclick": U.UF.C.closure(function(obj) {
  1275. //防止拖動圖標即打開了桌面應用
  1276. U.MD.D.click(this, obj);
  1277. }, [_wanketeacherDesktopIconInfo[i]])
  1278. }, _frag); //
  1279. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1280. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  1281. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  1282. }
  1283. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1284. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  1285. _content = $$("div", {
  1286. className: "U_MD_D_KO",
  1287. "onmousedown": U.UF.C.closure(function(obj) {
  1288. //防止拖動圖標即打開了桌面應用
  1289. U.MD.D.click(this, obj);
  1290. }, [_wankeAdminDesktopIconInfo[i]]),
  1291. "onclick": U.UF.C.closure(function(obj) {
  1292. //防止拖動圖標即打開了桌面應用
  1293. U.MD.D.click(this, obj);
  1294. }, [_wankeAdminDesktopIconInfo[i]])
  1295. }, _frag); //
  1296. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1297. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1298. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1299. }
  1300. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1301. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  1302. _content = $$("div", {
  1303. className: "U_MD_D_KO",
  1304. "onmousedown": U.UF.C.closure(function(obj) {
  1305. //防止拖動圖標即打開了桌面應用
  1306. U.MD.D.click(this, obj);
  1307. }, [_teacherDesktopIconInfo2[i]]),
  1308. "onclick": U.UF.C.closure(function(obj) {
  1309. //防止拖動圖標即打開了桌面應用
  1310. U.MD.D.click(this, obj);
  1311. }, [_teacherDesktopIconInfo2[i]])
  1312. }, _frag); //
  1313. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1314. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1315. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1316. }
  1317. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1318. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  1319. _content = $$("div", {
  1320. className: "U_MD_D_KO",
  1321. "onmousedown": U.UF.C.closure(function(obj) {
  1322. //防止拖動圖標即打開了桌面應用
  1323. U.MD.D.click(this, obj);
  1324. }, [_lotechTeacherDeskIconInfo[i]]),
  1325. "onclick": U.UF.C.closure(function(obj) {
  1326. //防止拖動圖標即打開了桌面應用
  1327. U.MD.D.click(this, obj);
  1328. }, [_lotechTeacherDeskIconInfo[i]])
  1329. }, _frag); //
  1330. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1331. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1332. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1333. }//
  1334. } else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1335. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1336. _content = $$("div", {
  1337. className: "U_MD_D_KO",
  1338. "onmousedown": U.UF.C.closure(function(obj) {
  1339. //防止拖動圖標即打開了桌面應用
  1340. U.MD.D.click(this, obj);
  1341. }, [_siesTeacherDeskIconInfo[i]]),
  1342. "onclick": U.UF.C.closure(function(obj) {
  1343. //防止拖動圖標即打開了桌面應用
  1344. U.MD.D.click(this, obj);
  1345. }, [_siesTeacherDeskIconInfo[i]])
  1346. }, _frag); //
  1347. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1348. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1349. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1350. }
  1351. } else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1352. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1353. _content = $$("div", {
  1354. className: "U_MD_D_KO",
  1355. "onmousedown": U.UF.C.closure(function(obj) {
  1356. //防止拖動圖標即打開了桌面應用
  1357. U.MD.D.click(this, obj);
  1358. }, [_longhuaTeacherDeskIconInfo[i]]),
  1359. "onclick": U.UF.C.closure(function(obj) {
  1360. //防止拖動圖標即打開了桌面應用
  1361. U.MD.D.click(this, obj);
  1362. }, [_longhuaTeacherDeskIconInfo[i]])
  1363. }, _frag); //
  1364. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1365. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1366. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1367. }
  1368. } else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1369. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1370. _content = $$("div", {
  1371. className: "U_MD_D_KO",
  1372. "onmousedown": U.UF.C.closure(function(obj) {
  1373. //防止拖動圖標即打開了桌面應用
  1374. U.MD.D.click(this, obj);
  1375. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1376. "onclick": U.UF.C.closure(function(obj) {
  1377. //防止拖動圖標即打開了桌面應用
  1378. U.MD.D.click(this, obj);
  1379. }, [_yunhaiTeacherDeskIconInfo[i]])
  1380. }, _frag); //
  1381. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1382. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1383. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1384. } //_hkStudentDeskIconInfo
  1385. } else if ((_type == 1 || _type == 4) && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1386. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.length; i++) {
  1387. _content = $$("div", {
  1388. className: "U_MD_D_KO",
  1389. "onmousedown": U.UF.C.closure(function(obj) {
  1390. //防止拖動圖標即打開了桌面應用
  1391. U.MD.D.click(this, obj);
  1392. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1393. "onclick": U.UF.C.closure(function(obj) {
  1394. //防止拖動圖標即打開了桌面應用
  1395. U.MD.D.click(this, obj);
  1396. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1397. }, _frag); //
  1398. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1399. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1400. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1401. }
  1402. } else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1403. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1404. _content = $$("div", {
  1405. className: "U_MD_D_KO",
  1406. "onmousedown": U.UF.C.closure(function(obj) {
  1407. //防止拖動圖標即打開了桌面應用
  1408. U.MD.D.click(this, obj);
  1409. }, [_hkTeacherDeskIconInfo[i]]),
  1410. "onclick": U.UF.C.closure(function(obj) {
  1411. //防止拖動圖標即打開了桌面應用
  1412. U.MD.D.click(this, obj);
  1413. }, [_hkTeacherDeskIconInfo[i]])
  1414. }, _frag); //
  1415. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1416. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1417. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1418. }
  1419. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1420. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1421. _content = $$("div", {
  1422. className: "U_MD_D_KO",
  1423. "onmousedown": U.UF.C.closure(function(obj) {
  1424. //防止拖動圖標即打開了桌面應用
  1425. U.MD.D.click(this, obj);
  1426. }, [_gdjgAdminDeskIconInfo[i]]),
  1427. "onclick": U.UF.C.closure(function(obj) {
  1428. //防止拖動圖標即打開了桌面應用
  1429. U.MD.D.click(this, obj);
  1430. }, [_gdjgAdminDeskIconInfo[i]])
  1431. }, _frag); //
  1432. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1433. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1434. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1435. }
  1436. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1437. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1438. _content = $$("div", {
  1439. className: "U_MD_D_KO",
  1440. "onmousedown": U.UF.C.closure(function(obj) {
  1441. //防止拖動圖標即打開了桌面應用
  1442. U.MD.D.click(this, obj);
  1443. }, [_gdjgTeacherDeskIconInfo[i]]),
  1444. "onclick": U.UF.C.closure(function(obj) {
  1445. //防止拖動圖標即打開了桌面應用
  1446. U.MD.D.click(this, obj);
  1447. }, [_gdjgTeacherDeskIconInfo[i]])
  1448. }, _frag); //
  1449. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1450. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1451. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1452. }
  1453. } else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1454. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1455. _content = $$("div", {
  1456. className: "U_MD_D_KO",
  1457. "onmousedown": U.UF.C.closure(function(obj) {
  1458. //防止拖動圖標即打開了桌面應用
  1459. U.MD.D.click(this, obj);
  1460. }, [_szherTeacherDeskIconInfo[i]]),
  1461. "onclick": U.UF.C.closure(function(obj) {
  1462. //防止拖動圖標即打開了桌面應用
  1463. U.MD.D.click(this, obj);
  1464. }, [_szherTeacherDeskIconInfo[i]])
  1465. }, _frag); //
  1466. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1467. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1468. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1469. }
  1470. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1471. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1472. _content = $$("div", {
  1473. className: "U_MD_D_KO",
  1474. "onmousedown": U.UF.C.closure(function(obj) {
  1475. //防止拖動圖標即打開了桌面應用
  1476. U.MD.D.click(this, obj);
  1477. }, [_heyuannAdminDeskIconInfo[i]]),
  1478. "onclick": U.UF.C.closure(function(obj) {
  1479. //防止拖動圖標即打開了桌面應用
  1480. U.MD.D.click(this, obj);
  1481. }, [_heyuannAdminDeskIconInfo[i]])
  1482. }, _frag); //
  1483. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1484. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1485. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1486. }
  1487. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1488. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1489. _content = $$("div", {
  1490. className: "U_MD_D_KO",
  1491. "onmousedown": U.UF.C.closure(function(obj) {
  1492. //防止拖動圖標即打開了桌面應用
  1493. U.MD.D.click(this, obj);
  1494. }, [_heyuanTeacherDeskIconInfo[i]]),
  1495. "onclick": U.UF.C.closure(function(obj) {
  1496. //防止拖動圖標即打開了桌面應用
  1497. U.MD.D.click(this, obj);
  1498. }, [_heyuanTeacherDeskIconInfo[i]])
  1499. }, _frag); //
  1500. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1501. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1502. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1503. } //
  1504. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 1) {
  1505. for (i = 0; i < _dseiAdminDeskIconInfo.length; i++) {
  1506. _content = $$("div", {
  1507. className: "U_MD_D_KO",
  1508. "onmousedown": U.UF.C.closure(function(obj) {
  1509. //防止拖動圖標即打開了桌面應用
  1510. U.MD.D.click(this, obj);
  1511. }, [_dseiAdminDeskIconInfo[i]]),
  1512. "onclick": U.UF.C.closure(function(obj) {
  1513. //防止拖動圖標即打開了桌面應用
  1514. U.MD.D.click(this, obj);
  1515. }, [_dseiAdminDeskIconInfo[i]])
  1516. }, _frag); //
  1517. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1518. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiAdminDeskIconInfo[i].style }, _iconcontent);
  1519. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiAdminDeskIconInfo[i].Name }, _iconcontent);
  1520. }
  1521. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 0) {
  1522. for (i = 0; i < _dseiTeacherDeskIconInfo.length; i++) {
  1523. _content = $$("div", {
  1524. className: "U_MD_D_KO",
  1525. "onmousedown": U.UF.C.closure(function(obj) {
  1526. //防止拖動圖標即打開了桌面應用
  1527. U.MD.D.click(this, obj);
  1528. }, [_dseiTeacherDeskIconInfo[i]]),
  1529. "onclick": U.UF.C.closure(function(obj) {
  1530. //防止拖動圖標即打開了桌面應用
  1531. U.MD.D.click(this, obj);
  1532. }, [_dseiTeacherDeskIconInfo[i]])
  1533. }, _frag); //
  1534. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1535. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiTeacherDeskIconInfo[i].style }, _iconcontent);
  1536. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1537. } //
  1538. }else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 1) {
  1539. for (i = 0; i < _chjyjAdminDeskIconInfo.length; i++) {
  1540. _content = $$("div", {
  1541. className: "U_MD_D_KO",
  1542. "onmousedown": U.UF.C.closure(function(obj) {
  1543. //防止拖動圖標即打開了桌面應用
  1544. U.MD.D.click(this, obj);
  1545. }, [_chjyjAdminDeskIconInfo[i]]),
  1546. "onclick": U.UF.C.closure(function(obj) {
  1547. //防止拖動圖標即打開了桌面應用
  1548. U.MD.D.click(this, obj);
  1549. }, [_chjyjAdminDeskIconInfo[i]])
  1550. }, _frag); //
  1551. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1552. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjAdminDeskIconInfo[i].style }, _iconcontent);
  1553. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjAdminDeskIconInfo[i].Name }, _iconcontent);
  1554. }//
  1555. } else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 0) {
  1556. for (i = 0; i < _chjyjTeacherDeskIconInfo.length; i++) {
  1557. _content = $$("div", {
  1558. className: "U_MD_D_KO",
  1559. "onmousedown": U.UF.C.closure(function(obj) {
  1560. //防止拖動圖標即打開了桌面應用
  1561. U.MD.D.click(this, obj);
  1562. }, [_chjyjTeacherDeskIconInfo[i]]),
  1563. "onclick": U.UF.C.closure(function(obj) {
  1564. //防止拖動圖標即打開了桌面應用
  1565. U.MD.D.click(this, obj);
  1566. }, [_chjyjTeacherDeskIconInfo[i]])
  1567. }, _frag); //
  1568. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1569. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjTeacherDeskIconInfo[i].style }, _iconcontent);
  1570. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjTeacherDeskIconInfo[i].Name }, _iconcontent);
  1571. }
  1572. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 1) {
  1573. for (i = 0; i < _szjkyAdminDeskIconInfo.length; i++) {
  1574. _content = $$("div", {
  1575. className: "U_MD_D_KO",
  1576. "onmousedown": U.UF.C.closure(function(obj) {
  1577. //防止拖動圖標即打開了桌面應用
  1578. U.MD.D.click(this, obj);
  1579. }, [_szjkyAdminDeskIconInfo[i]]),
  1580. "onclick": U.UF.C.closure(function(obj) {
  1581. //防止拖動圖標即打開了桌面應用
  1582. U.MD.D.click(this, obj);
  1583. }, [_szjkyAdminDeskIconInfo[i]])
  1584. }, _frag); //
  1585. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1586. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyAdminDeskIconInfo[i].style }, _iconcontent);
  1587. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyAdminDeskIconInfo[i].Name }, _iconcontent);
  1588. }//
  1589. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 0) {
  1590. for (i = 0; i < _szjkyTeacherDeskIconInfo.length; i++) {
  1591. _content = $$("div", {
  1592. className: "U_MD_D_KO",
  1593. "onmousedown": U.UF.C.closure(function(obj) {
  1594. //防止拖動圖標即打開了桌面應用
  1595. U.MD.D.click(this, obj);
  1596. }, [_szjkyTeacherDeskIconInfo[i]]),
  1597. "onclick": U.UF.C.closure(function(obj) {
  1598. //防止拖動圖標即打開了桌面應用
  1599. U.MD.D.click(this, obj);
  1600. }, [_szjkyTeacherDeskIconInfo[i]])
  1601. }, _frag); //
  1602. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1603. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyTeacherDeskIconInfo[i].style }, _iconcontent);
  1604. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyTeacherDeskIconInfo[i].Name }, _iconcontent);
  1605. }
  1606. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1607. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1608. _content = $$("div", {
  1609. className: "U_MD_D_KO",
  1610. "onmousedown": U.UF.C.closure(function(obj) {
  1611. //防止拖動圖標即打開了桌面應用
  1612. U.MD.D.click(this, obj);
  1613. }, [_futianAdminDeskIconInfo[i]]),
  1614. "onclick": U.UF.C.closure(function(obj) {
  1615. //防止拖動圖標即打開了桌面應用
  1616. U.MD.D.click(this, obj);
  1617. }, [_futianAdminDeskIconInfo[i]])
  1618. }, _frag); //
  1619. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1620. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1621. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1622. }
  1623. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1624. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1625. _content = $$("div", {
  1626. className: "U_MD_D_KO",
  1627. "onmousedown": U.UF.C.closure(function(obj) {
  1628. //防止拖動圖標即打開了桌面應用
  1629. U.MD.D.click(this, obj);
  1630. }, [_futianTeacherDeskIconInfo[i]]),
  1631. "onclick": U.UF.C.closure(function(obj) {
  1632. //防止拖動圖標即打開了桌面應用
  1633. U.MD.D.click(this, obj);
  1634. }, [_futianTeacherDeskIconInfo[i]])
  1635. }, _frag); //
  1636. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1637. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1638. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1639. }
  1640. } else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1641. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1642. _content = $$("div", {
  1643. className: "U_MD_D_KO",
  1644. "onmousedown": U.UF.C.closure(function(obj) {
  1645. //防止拖動圖標即打開了桌面應用
  1646. U.MD.D.click(this, obj);
  1647. }, [_MingdeTeacherDeskIcon[i]]),
  1648. "onclick": U.UF.C.closure(function(obj) {
  1649. //防止拖動圖標即打開了桌面應用
  1650. U.MD.D.click(this, obj);
  1651. }, [_MingdeTeacherDeskIcon[i]])
  1652. }, _frag); //
  1653. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1654. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1655. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1656. }
  1657. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1658. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1659. _content = $$("div", {
  1660. className: "U_MD_D_KO",
  1661. "onmousedown": U.UF.C.closure(function(obj) {
  1662. //防止拖動圖標即打開了桌面應用
  1663. U.MD.D.click(this, obj);
  1664. }, [_lhsAdminDesktopIconInfo[i]]),
  1665. "onclick": U.UF.C.closure(function(obj) {
  1666. //防止拖動圖標即打開了桌面應用
  1667. U.MD.D.click(this, obj);
  1668. }, [_lhsAdminDesktopIconInfo[i]])
  1669. }, _frag); //
  1670. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1671. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1672. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1673. }
  1674. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1675. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1676. _content = $$("div", {
  1677. className: "U_MD_D_KO",
  1678. "onmousedown": U.UF.C.closure(function(obj) {
  1679. //防止拖動圖標即打開了桌面應用
  1680. U.MD.D.click(this, obj);
  1681. }, [_lhsteacherDesktopIconInfo[i]]),
  1682. "onclick": U.UF.C.closure(function(obj) {
  1683. //防止拖動圖標即打開了桌面應用
  1684. U.MD.D.click(this, obj);
  1685. }, [_lhsteacherDesktopIconInfo[i]])
  1686. }, _frag); //
  1687. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1688. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1689. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1690. }
  1691. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1692. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1693. _content = $$("div", {
  1694. className: "U_MD_D_KO",
  1695. "onmousedown": U.UF.C.closure(function(obj) {
  1696. //防止拖動圖標即打開了桌面應用
  1697. U.MD.D.click(this, obj);
  1698. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1699. "onclick": U.UF.C.closure(function(obj) {
  1700. //防止拖動圖標即打開了桌面應用
  1701. U.MD.D.click(this, obj);
  1702. }, [_zhoujiateacherDesktopIconInfo[i]])
  1703. }, _frag); //
  1704. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1705. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1706. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1707. }
  1708. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1709. for (i = 0; i < _hanDeskIcon.length; i++) {
  1710. _content = $$("div", {
  1711. className: "U_MD_D_KO",
  1712. "onmousedown": U.UF.C.closure(function(obj) {
  1713. //防止拖動圖標即打開了桌面應用
  1714. U.MD.D.click(this, obj);
  1715. }, [_hanDeskIcon[i]]),
  1716. "onclick": U.UF.C.closure(function(obj) {
  1717. //防止拖動圖標即打開了桌面應用
  1718. U.MD.D.click(this, obj);
  1719. }, [_hanDeskIcon[i]])
  1720. }, _frag); //
  1721. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1722. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1723. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1724. }
  1725. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1726. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1727. _content = $$("div", {
  1728. className: "U_MD_D_KO",
  1729. "onmousedown": U.UF.C.closure(function(obj) {
  1730. //防止拖動圖標即打開了桌面應用
  1731. U.MD.D.click(this, obj);
  1732. }, [_orgStemDeskIcon[i]]),
  1733. "onclick": U.UF.C.closure(function(obj) {
  1734. //防止拖動圖標即打開了桌面應用
  1735. U.MD.D.click(this, obj);
  1736. }, [_orgStemDeskIcon[i]])
  1737. }, _frag); //
  1738. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1739. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1740. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1741. }
  1742. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1743. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1744. _content = $$("div", {
  1745. className: "U_MD_D_KO",
  1746. "onmousedown": U.UF.C.closure(function(obj) {
  1747. //防止拖動圖標即打開了桌面應用
  1748. U.MD.D.click(this, obj);
  1749. }, [_szulsDeskIcon[i]]),
  1750. "onclick": U.UF.C.closure(function(obj) {
  1751. //防止拖動圖標即打開了桌面應用
  1752. U.MD.D.click(this, obj);
  1753. }, [_szulsDeskIcon[i]])
  1754. }, _frag); //
  1755. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1756. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1757. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1758. }
  1759. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1760. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1761. _content = $$("div", {
  1762. className: "U_MD_D_KO",
  1763. "onmousedown": U.UF.C.closure(function(obj) {
  1764. //防止拖動圖標即打開了桌面應用
  1765. U.MD.D.click(this, obj);
  1766. }, [_orgDesktopIconInfo[i]]),
  1767. "onclick": U.UF.C.closure(function(obj) {
  1768. //防止拖動圖標即打開了桌面應用
  1769. U.MD.D.click(this, obj);
  1770. }, [_orgDesktopIconInfo[i]])
  1771. }, _frag); //
  1772. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1773. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1774. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1775. }
  1776. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1777. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1778. _content = $$("div", {
  1779. className: "U_MD_D_KO",
  1780. "onmousedown": U.UF.C.closure(function(obj) {
  1781. //防止拖動圖標即打開了桌面應用
  1782. U.MD.D.click(this, obj);
  1783. }, [_schoolDesktopIconInfo[i]]),
  1784. "onclick": U.UF.C.closure(function(obj) {
  1785. //防止拖動圖標即打開了桌面應用
  1786. U.MD.D.click(this, obj);
  1787. }, [_schoolDesktopIconInfo[i]])
  1788. }, _frag); //
  1789. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1790. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1791. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1792. }
  1793. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1794. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1795. _content = $$("div", {
  1796. className: "U_MD_D_KO",
  1797. "onmousedown": U.UF.C.closure(function(obj) {
  1798. //防止拖動圖標即打開了桌面應用
  1799. U.MD.D.click(this, obj);
  1800. }, [_GMteacherDesktopIconInfo[i]]),
  1801. "onclick": U.UF.C.closure(function(obj) {
  1802. //防止拖動圖標即打開了桌面應用
  1803. U.MD.D.click(this, obj);
  1804. }, [_GMteacherDesktopIconInfo[i]])
  1805. }, _frag); //
  1806. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1807. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1808. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1809. }
  1810. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1811. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1812. _content = $$("div", {
  1813. className: "U_MD_D_KO",
  1814. "onmousedown": U.UF.C.closure(function(obj) {
  1815. //防止拖動圖標即打開了桌面應用
  1816. U.MD.D.click(this, obj);
  1817. }, [_SONGteacherDesktopIconInfo[i]]),
  1818. "onclick": U.UF.C.closure(function(obj) {
  1819. //防止拖動圖標即打開了桌面應用
  1820. U.MD.D.click(this, obj);
  1821. }, [_SONGteacherDesktopIconInfo[i]])
  1822. }, _frag); //
  1823. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1824. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1825. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1826. }
  1827. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1828. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1829. _content = $$("div", {
  1830. className: "U_MD_D_KO",
  1831. "onmousedown": U.UF.C.closure(function(obj) {
  1832. //防止拖動圖標即打開了桌面應用
  1833. U.MD.D.click(this, obj);
  1834. }, [_GMstudentDesktopIconInfo[i]]),
  1835. "onclick": U.UF.C.closure(function(obj) {
  1836. //防止拖動圖標即打開了桌面應用
  1837. U.MD.D.click(this, obj);
  1838. }, [_GMstudentDesktopIconInfo[i]])
  1839. }, _frag); //
  1840. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1841. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1842. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1843. }
  1844. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1845. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1846. _content = $$("div", {
  1847. className: "U_MD_D_KO",
  1848. "onmousedown": U.UF.C.closure(function(obj) {
  1849. //防止拖動圖標即打開了桌面應用
  1850. U.MD.D.click(this, obj);
  1851. }, [_tcTeacherDeskIconInfo[i]]),
  1852. "onclick": U.UF.C.closure(function(obj) {
  1853. //防止拖動圖標即打開了桌面應用
  1854. U.MD.D.click(this, obj);
  1855. }, [_tcTeacherDeskIconInfo[i]])
  1856. }, _frag); //
  1857. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1858. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1859. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1860. }
  1861. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1862. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1863. _content = $$("div", {
  1864. className: "U_MD_D_KO",
  1865. "onmousedown": U.UF.C.closure(function(obj) {
  1866. //防止拖動圖標即打開了桌面應用
  1867. U.MD.D.click(this, obj);
  1868. }, [_tcOrganizerDeskIconInfo[i]]),
  1869. "onclick": U.UF.C.closure(function(obj) {
  1870. //防止拖動圖標即打開了桌面應用
  1871. U.MD.D.click(this, obj);
  1872. }, [_tcOrganizerDeskIconInfo[i]])
  1873. }, _frag); //
  1874. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1875. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1876. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1877. }
  1878. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1879. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1880. _content = $$("div", {
  1881. className: "U_MD_D_KO",
  1882. "onmousedown": U.UF.C.closure(function(obj) {
  1883. //防止拖動圖標即打開了桌面應用
  1884. U.MD.D.click(this, obj);
  1885. }, [_szscTeacherDeskIconInfo[i]]),
  1886. "onclick": U.UF.C.closure(function(obj) {
  1887. //防止拖動圖標即打開了桌面應用
  1888. U.MD.D.click(this, obj);
  1889. }, [_szscTeacherDeskIconInfo[i]])
  1890. }, _frag); //
  1891. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1892. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1893. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1894. }
  1895. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1896. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1897. _content = $$("div", {
  1898. className: "U_MD_D_KO",
  1899. "onmousedown": U.UF.C.closure(function(obj) {
  1900. //防止拖動圖標即打開了桌面應用
  1901. U.MD.D.click(this, obj);
  1902. }, [_szscOrganizerDeskIconInfo[i]]),
  1903. "onclick": U.UF.C.closure(function(obj) {
  1904. //防止拖動圖標即打開了桌面應用
  1905. U.MD.D.click(this, obj);
  1906. }, [_szscOrganizerDeskIconInfo[i]])
  1907. }, _frag); //
  1908. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1909. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1910. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1911. }
  1912. } else {
  1913. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1914. _content = $$("div", {
  1915. className: "U_MD_D_KO",
  1916. "onmousedown": U.UF.C.closure(function(obj) {
  1917. //防止拖動圖標即打開了桌面應用
  1918. U.MD.D.click(this, obj);
  1919. }, [_teacherDesktopIconInfo[i]]),
  1920. "onclick": U.UF.C.closure(function(obj) {
  1921. //防止拖動圖標即打開了桌面應用
  1922. U.MD.D.click(this, obj);
  1923. }, [_teacherDesktopIconInfo[i]])
  1924. }, _frag); //
  1925. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1926. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1927. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1928. }
  1929. }
  1930. } else {
  1931. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1932. _content = $$("div", {
  1933. className: "U_MD_D_KO",
  1934. style: { 'width': '124px', 'height': '145px' },
  1935. "onmousedown": U.UF.C.closure(function(obj) {
  1936. //防止拖動圖標即打開了桌面應用
  1937. U.MD.D.click(this, obj);
  1938. }, [_easyDesktopIconInfo[i]]),
  1939. "onclick": U.UF.C.closure(function(obj) {
  1940. //防止拖動圖標即打開了桌面應用
  1941. U.MD.D.click(this, obj);
  1942. }, [_easyDesktopIconInfo[i]])
  1943. }, _frag); //
  1944. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1945. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1946. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1947. }
  1948. }
  1949. if (type == 1) {
  1950. //加載好後給圖標定位
  1951. U.MD.D.iconPostion($(_frag).Child());
  1952. } else {
  1953. //加載好後給圖標定位
  1954. U.MD.D.iconPostion2($(_frag).Child());
  1955. }
  1956. //把圖標加載到頁面
  1957. el.appendChild(_frag);
  1958. }
  1959. /**
  1960. * 顯示任務欄
  1961. *
  1962. * @param {element} 桌面元素
  1963. */
  1964. U.MD.D.I.displayTaskbar = function(el) {
  1965. //判斷是否需要形式任務欄,由於用了mouseover事件會冒泡響應多次,這裏做了過濾
  1966. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1967. //任務欄位置變化
  1968. U.selectEl(el).css({ "bottom": "0px" });
  1969. //桌面位置變話
  1970. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1971. }
  1972. }
  1973. //#region 桌面圖標拖動邏輯
  1974. /**
  1975. * 桌面排列圖標
  1976. *
  1977. * @param {element} 桌面元素
  1978. * @param {object} 上下相距的距離
  1979. * @param {object} 左右相距的距離
  1980. * @return {object} 命名空間
  1981. */
  1982. U.MD.D.iconPostion = function(childs, top, left) {
  1983. var i; //用於循環處理
  1984. top = top || 15; //如果沒有設置元素的間距處理默認上間距為15
  1985. left = left || 20; //如果沒有設置元素的間距處理默認左間距為15
  1986. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  1987. for (i = 0; i < childs.length; i++) {
  1988. //如果豎排top超過了範圍處理
  1989. if (top + 95 > US.height - 10) {
  1990. //left超過了頁面範圍處理,則向上重疊打印處理
  1991. if ((left + 180) > US.width) {
  1992. top -= 110;
  1993. left -= 90;
  1994. }
  1995. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  1996. else {
  1997. left += 90;
  1998. top = 15;
  1999. };
  2000. }
  2001. //給圖標的位置賦值
  2002. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  2003. if (i < childs.length - 1) {
  2004. //頁面圖標每次向下加95
  2005. top += 95;
  2006. }
  2007. }
  2008. //返回最後調用的圖標的位置
  2009. return [top, left];
  2010. }
  2011. /**
  2012. * 桌面排列圖標
  2013. *
  2014. * @param {element} 桌面元素
  2015. * @param {object} 上下相距的距離
  2016. * @param {object} 左右相距的距離
  2017. * @return {object} 命名空間
  2018. */
  2019. U.MD.D.iconPostion2 = function(childs, top, left) {
  2020. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用於循環處理
  2021. top = top || 70; //如果沒有設置元素的間距處理默認上間距為15
  2022. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果沒有設置元素的間距處理默認左間距為15
  2023. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  2024. for (i = 0; i < childs.length; i++) {
  2025. //如果豎排top超過了範圍處理
  2026. if (left + 150 > US.width - 10) {
  2027. //left超過了頁面範圍處理,則向上重疊打印處理
  2028. if ((top + 180) > US.Height) {
  2029. top -= 150;
  2030. left -= 150;
  2031. }
  2032. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  2033. else {
  2034. top += 150;
  2035. left = ol;
  2036. };
  2037. }
  2038. //給圖標的位置賦值
  2039. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  2040. if (i < childs.length - 1) {
  2041. //頁面圖標每次向下加95
  2042. left += 150;
  2043. }
  2044. }
  2045. //返回最後調用的圖標的位置
  2046. return [top, left];
  2047. }
  2048. /**
  2049. * 桌面點擊事件邏輯
  2050. *
  2051. * @param {element} 桌面元素
  2052. * @param {object} 上下相距的距離
  2053. * @param {object} 左右相距的距離
  2054. * @return {object} 命名空間
  2055. */
  2056. U.MD.D.click = function(el, obj) {
  2057. var _buttonnumber = event.button; //點擊的按鈕的事件值
  2058. var _userinfo = US.userInfo;
  2059. U.UF.EV.stopBubble(); //阻止向上冒泡
  2060. //onmousedown 包含了左鍵和右鍵 這裏大於2是為了兼容 所有瀏覽器的右鍵處理
  2061. if (_buttonnumber < 2) {
  2062. //如果是click事件的處理
  2063. if (event.type == "click") {
  2064. //如果元素在mousemove事件中沒有移動則出發click事件
  2065. if (!U.MD.D.I.IsDrag) {
  2066. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2067. U.alert("請先登錄您的賬號!");
  2068. setTimeout(() => {
  2069. U.MD.U.L.login();
  2070. }, 2000);
  2071. } else {
  2072. //打開應用處理
  2073. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  2074. }
  2075. }
  2076. }
  2077. //如果是mouse事件的處理
  2078. else {
  2079. if (US.Config.type == '1') {
  2080. //拖動處理,添加拖動和拖動結束事件
  2081. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  2082. }
  2083. }
  2084. U.MD.D.I.IsDrag = false;
  2085. }
  2086. }
  2087. /**
  2088. * 拖動的處理
  2089. *
  2090. */
  2091. U.MD.D.iconMove = function() {
  2092. //如果當前位置點擊初始化的位置出現了變化,則設置是否拖動的屬性 U.MD.D.I.IsDrag為true
  2093. U.MD.D.I.IsDrag = true;
  2094. }
  2095. /**
  2096. * 拖動結束後,這裏是定位處理,以網狀的形式定位
  2097. *
  2098. * @param {element} 拖動的元素
  2099. * @return {object} 命名空間
  2100. */
  2101. U.MD.D.iconUp = function(el) {
  2102. var _top = 15,
  2103. _left = 20,
  2104. _margin,
  2105. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的圖標
  2106. _positioninfo = U.UF.EL.getElementInfo(el); //獲取拖動結束的元素的位置
  2107. if (_positioninfo["OT"] > 15) {
  2108. //網狀的形式定位,如果差超過了55,那麼向下定位,否則向上定位
  2109. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  2110. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  2111. }
  2112. if (_positioninfo["OL"] > 20) {
  2113. //網狀的形式定位,如果差超過了90,那麼向右定位,否則向左定位
  2114. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  2115. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  2116. }
  2117. //while循環判斷麼一個重疊的元素
  2118. do {
  2119. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //給重疊的元素向下定位
  2120. _top = _positioninfo[0] + 95; //得到定位後的top
  2121. _left = _positioninfo[1]; //得到定位後的left
  2122. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  2123. }
  2124. /**
  2125. * 判斷拖動後圖標是否重疊
  2126. *
  2127. * @param {element} 拖動的元素
  2128. * @param {element} 桌面所有的元素
  2129. * @param {array} 拖動元素的位置
  2130. ----------[0] 上 top
  2131. ----------[1] 左 left
  2132. * @return {object} 命名空間
  2133. */
  2134. U.MD.D.isOverlap = function(el, childs, postionarray) {
  2135. //循環所有的圖標
  2136. for (var i = 0; i < childs.length; i++) {
  2137. //判斷有沒有和該圖標誒子重疊的元素
  2138. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  2139. return childs[i]; //如果有返回
  2140. }
  2141. }
  2142. }
  2143. //#endregion
  2144. //#endregion
  2145. //#region 桌面應用
  2146. /**
  2147. * 打開應用
  2148. *
  2149. * @param {string} 類型
  2150. -----------------Disk 網盤系統
  2151. -----------------PDisk 學習系統網盤
  2152. -----------------Poto 圖片
  2153. -----------------Video 視頻
  2154. -----------------Music 音樂
  2155. -----------------Word word
  2156. -----------------Excel excel
  2157. -----------------Txt 記事本
  2158. -----------------PB 學習系統
  2159. -----------------Blog 朋友圈系統
  2160. -----------------FTP ftp系統
  2161. -----------------Group 好友群
  2162. -----------------SY 首頁系統
  2163. -----------------Set 個人設置
  2164. -----------------XSet 系統設置
  2165. -----------------App 我們所有的app
  2166. -----------------BC c.1473.cn 平臺
  2167. -----------------CWeb d.1473.cn 變成平臺
  2168. -----------------其他的外聯系統 我們統一用iframe打開
  2169. * @param {array} 類型
  2170. 如果第一個參數為"disk",則第二個參數為object,裏面包含了用戶id和目錄id{userid:"",directoryid:""}
  2171. 如果第一個參數為"word"或者"excel","txt",則第二個參數為文件信息fileinfo。
  2172. 如果第一個參數為"blog"或者"PDisk"。建議刪除。
  2173. 如果第一個參數為其他,則無第二個參數
  2174. * @returns {array}
  2175. */
  2176. window.addEventListener('message', function(e) { // 監聽 message 事件
  2177. // alert(e.data.type);
  2178. if (e.data.screenType && e.data.screenType == "2") { //課程管理傳入
  2179. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  2180. //3是展示全部階段 2學生 1老師 4專家
  2181. } else if (e.data.screenType && e.data.screenType == "2s") { //課程管理傳入
  2182. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  2183. //3是展示全部階段 2學生 1老師 4專家
  2184. } else if (e.data.screenType && e.data.screenType == "2studio") { //課程管理傳入
  2185. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  2186. //3是展示全部階段 2學生 1老師 4專家
  2187. } else if (e.data.screenType && e.data.screenType == "3") { //課程管理傳入
  2188. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  2189. } else if (e.data.screenType && e.data.screenType == "3NT") { //課程管理傳入
  2190. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  2191. } else if (e.data.screenType && e.data.screenType == "3s") { //課程管理傳入
  2192. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  2193. } else if (e.data.screenType && e.data.screenType == "3studio") { //課程管理傳入
  2194. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  2195. } else if (e.data.screenType && e.data.screenType == "3s2") { //課程管理傳入
  2196. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  2197. } else if (e.data.screenType && e.data.screenType == "2gm") { //課程管理傳入
  2198. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  2199. //3是展示全部階段 2學生 1老師 4專家
  2200. } else if (e.data.screenType && e.data.screenType == "3gm") { //課程管理傳入
  2201. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  2202. } else if (e.data.close && e.data.close == "1") { //更新用戶信息
  2203. U.MD.D.I.selectUser();
  2204. } else if (e.data.allScreen && e.data.allScreen == "1") {
  2205. var _formel = document.getElementById("study");
  2206. U.UF.F.windowZooming(_formel);
  2207. } else if (e.data.allScreen && e.data.allScreen == "2") {
  2208. var _formel = document.getElementById("studyDetail");
  2209. U.UF.F.windowZooming(_formel);
  2210. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  2211. var _formel = document.getElementById("studyDetail");
  2212. U.UF.F.windowZooming(_formel);
  2213. } else if (e.data.allScreen && e.data.allScreen == "3") {
  2214. var _formel = document.getElementById("studentStudy");
  2215. U.UF.F.windowZooming(_formel);
  2216. } else if (e.data.allScreen && e.data.allScreen == "6") {
  2217. // var _formel = document.getElementById("study");
  2218. //如果最大化了,那麼就把他縮小
  2219. // if (_formel.ismaximize) {
  2220. // return;
  2221. // }
  2222. // U.UF.F.windowZooming(_formel);
  2223. // U.UF.F.topWindow(_formel);
  2224. } else if (e.data.allScreen && e.data.allScreen == "4") {
  2225. // var _formel = document.getElementById("studyDetail");
  2226. //如果最大化了,那麼就把他縮小
  2227. // if (_formel.ismaximize) {
  2228. // return;
  2229. // }
  2230. // U.UF.F.windowZooming(_formel);
  2231. // U.UF.F.topWindow(_formel);
  2232. } else if (e.data.allScreen && e.data.allScreen == "5") {
  2233. // var _formel = document.getElementById("studentStudy");
  2234. // if (_formel.ismaximize) {
  2235. // return;
  2236. // }
  2237. // U.UF.F.windowZooming(_formel);
  2238. // U.UF.F.topWindow(_formel);
  2239. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  2240. var _formel = document.getElementById("study");
  2241. // if (_formel.ismaximize) {
  2242. // return;
  2243. // }
  2244. // U.UF.F.windowZooming(_formel);
  2245. U.UF.F.topWindow(_formel);
  2246. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  2247. var _formel = document.getElementById("studentIndex");
  2248. U.UF.F.windowZooming(_formel);
  2249. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  2250. var _formel = document.getElementById("studyDetailS");
  2251. U.UF.F.windowZooming(_formel);
  2252. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  2253. var _formel = document.getElementById("studioIndex");
  2254. U.UF.F.windowZooming(_formel);
  2255. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  2256. var _formel = document.getElementById("studyDetailStudio");
  2257. U.UF.F.windowZooming(_formel);
  2258. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  2259. var _formel = document.getElementById("studyDetailStudio");
  2260. U.UF.F.windowZooming(_formel);
  2261. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  2262. var _formel = document.getElementById("studyDetailNT");
  2263. U.UF.F.windowZooming(_formel);
  2264. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  2265. var _formel = document.getElementById("studyDetailS");
  2266. U.UF.F.windowZooming(_formel);
  2267. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  2268. var _formel = document.getElementById("studyDetailS");
  2269. U.UF.F.topWindow(_formel);
  2270. } else if (e.data.tools && e.data.tools == "1") {
  2271. // U.MD.D.I.openApplication("whiteboard")
  2272. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2273. } else if (e.data.tools && e.data.tools == "2") {
  2274. U.MD.D.I.openApplication("note")
  2275. } else if (e.data.tools && e.data.tools == "3") {
  2276. // U.MD.D.I.openApplication("mind")
  2277. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2278. } else if (e.data.tools && e.data.tools == "4") {
  2279. U.MD.D.I.openApplication("investigation")
  2280. } else if (e.data.tools && e.data.tools == "6") {
  2281. // U.MD.D.I.openApplication("doc")
  2282. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2283. } else if (e.data.tools && e.data.tools == "7") {
  2284. // U.MD.D.I.openApplication("mindNetwork")
  2285. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2286. } else if (e.data.tools && e.data.tools == "8") {
  2287. U.MD.D.I.openApplication("library")
  2288. } else if (e.data.tools && e.data.tools == "17") {
  2289. U.MD.D.I.openApplication("stuLibrary")
  2290. } else if (e.data.tools && e.data.tools == "18") {
  2291. U.MD.D.I.openApplication("train")
  2292. } else if (e.data.tools && e.data.tools == "21") {
  2293. U.MD.D.I.openApplication("program")
  2294. } else if (e.data.tools && e.data.tools == "22") {
  2295. U.MD.D.I.openApplication("AIprogram2")
  2296. } else if (e.data.tools && e.data.tools == "23") {
  2297. U.MD.D.I.openApplication("Pythonprogram")
  2298. } else if (e.data.tools && e.data.tools == "24") {
  2299. U.MD.D.I.openApplication("AIprogram")
  2300. } else if (e.data.tools && e.data.tools == "25") {
  2301. U.MD.D.I.openApplication("sys")
  2302. } else if (e.data.tools && e.data.tools == "26") {
  2303. // U.MD.D.I.openApplication("courseDesign")
  2304. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2305. } else if (e.data.tools && e.data.tools == "31") {
  2306. U.MD.D.I.openApplication("netWorkPanel")
  2307. } else if (e.data.tools && e.data.tools == "32") {
  2308. U.MD.D.I.openApplication("codeEdit")
  2309. } else if (e.data.tools && e.data.tools == "57") {
  2310. U.MD.D.I.openApplication("CocoPi")
  2311. } else if (e.data.tools && e.data.tools == "63") {
  2312. U.MD.D.I.openApplication("Wood")
  2313. } else if (e.data.tools && e.data.tools == "58") {
  2314. U.MD.D.I.openApplication("car")
  2315. } else if (e.data.tools && e.data.tools == "59") {
  2316. U.MD.D.I.openApplication("lineSearch")
  2317. } else if (e.data.tools && e.data.tools == "60") {
  2318. U.MD.D.I.openApplication("deepLearning")
  2319. } else if (e.data.tools && e.data.tools == "61") {
  2320. U.MD.D.I.openApplication("allHistory")
  2321. } else if (e.data.tools && e.data.tools == "28") {
  2322. U.MD.D.I.openApplication("translation")
  2323. } else if (e.data.tools && e.data.tools == "37") {
  2324. U.MD.D.I.openApplication("mohe")
  2325. } else if (e.data.tools && e.data.tools == "38") {
  2326. U.MD.D.I.openApplication("24game")
  2327. } else if (e.data.tools && e.data.tools == "39") {
  2328. U.MD.D.I.openApplication("GeoGebra")
  2329. } else if (e.data.tools && e.data.tools == "43") {
  2330. U.MD.D.I.openApplication("studentEvaluate")
  2331. } else if (e.data.tools && e.data.tools == "44") {
  2332. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  2333. } else if (e.data.tools && e.data.tools == "46") {
  2334. U.MD.D.I.openApplication("project")
  2335. } else if (e.data.tools && e.data.tools == "1s") {
  2336. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2337. } else if (e.data.tools && e.data.tools == "3s") {
  2338. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2339. } else if (e.data.tools && e.data.tools == "6s") {
  2340. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2341. } else if (e.data.tools && e.data.tools == "1studio") {
  2342. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2343. } else if (e.data.tools && e.data.tools == "3studio") {
  2344. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2345. } else if (e.data.tools && e.data.tools == "6studio") {
  2346. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2347. } else if (e.data.tools && e.data.tools == "3y") {
  2348. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2349. } else if (e.data.tools && e.data.tools == "1y") {
  2350. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2351. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  2352. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  2353. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  2354. U.MD.D.I.openApplication("AIAnalyse")
  2355. } else if (e.data.tools && e.data.tools == "1teacher") {
  2356. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2357. } else if (e.data.tools && e.data.tools == "3teacher") {
  2358. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2359. } else if (e.data.tools && e.data.tools == "7teacher") {
  2360. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2361. } else if (e.data.tools && e.data.tools == "1teacherE") {
  2362. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2363. } else if (e.data.tools && e.data.tools == "3teacherE") {
  2364. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2365. } else if (e.data.tools && e.data.tools == "1E") {
  2366. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2367. } else if (e.data.tools && e.data.tools == "3E") {
  2368. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2369. } else if (e.data.tools && e.data.tools == "57y") {
  2370. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2371. } else if (e.data.tools && e.data.tools == "57u") {
  2372. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2373. } else if (e.data.tools && e.data.tools == "57teacher") {
  2374. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2375. } else if (e.data.tools && e.data.tools == "64") {
  2376. U.MD.D.I.openApplication("AIChat")
  2377. } else if (e.data.tools && e.data.tools == "66") {
  2378. U.MD.D.I.openApplication("formulaEdi")
  2379. } else if (e.data.tools && e.data.tools == "67") {
  2380. U.MD.D.I.openApplication("molStr")
  2381. } else if (e.data.tools && e.data.tools == "68") {
  2382. U.MD.D.I.openApplication("timeAxis")
  2383. } else if (e.data.tools && e.data.tools == "openCourse") {
  2384. let _data = {
  2385. typea:e.data.typea || '',
  2386. typeb:e.data.typeb || '',
  2387. typed:e.data.typed || '',
  2388. }
  2389. U.MD.D.I.openInApplication("index", _data)
  2390. } else if (e.data.tools && e.data.tools == "openDataClass") {
  2391. let _data = {
  2392. classid:e.data.classid || '',
  2393. }
  2394. U.MD.D.I.openInApplication("dataClass", _data)
  2395. } else if (e.data.tools && e.data.tools == "opencCscl") {
  2396. let _data = {
  2397. cid:e.data.cid || '',
  2398. gid:e.data.gid || '',
  2399. }
  2400. U.MD.D.I.openInApplication("opencCscl", _data)
  2401. }
  2402. });
  2403. U.MD.D.I.selectUser = function() {
  2404. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function(res) { //US.userInfo.userid
  2405. if (res.value[0].length > 0) {
  2406. US.userInfo = res.value[0][0];
  2407. $(".userName")[0].innerHTML = US.userInfo.username;
  2408. }
  2409. }, [], { "type": "GET", "withCredentials": true });
  2410. }
  2411. U.MD.D.I.openInApplication = function(str, data, screenType, tType) {
  2412. var _userinfo = US.userInfo, //登錄用戶信息
  2413. _userid = US.userInfo.userid, //登錄用戶id
  2414. _oid = _userinfo.organizeid,
  2415. _type = US.userInfo.type,
  2416. _org = US.userInfo.org,
  2417. _role = US.userInfo.role,
  2418. _classId = US.userInfo.classid;
  2419. if (_type == 4) {
  2420. tType = 4
  2421. }
  2422. switch (str) {
  2423. case "studyDetailNT": //無終端模式
  2424. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2425. setTimeout(() => {
  2426. U.MD.U.L.login();
  2427. }, 2000);
  2428. } else {
  2429. _formdiv = new U.UF.UI.form(
  2430. "課程詳情",
  2431. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailNT?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2432. "id": "studyDetailNT",
  2433. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2434. "onresize": function() {}
  2435. }, {
  2436. closecallback: function() {}
  2437. }, { "style": { "height": "36px" } }).form; //創建窗體
  2438. _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); } }
  2439. break;
  2440. }
  2441. case "studyDetail":
  2442. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2443. setTimeout(() => {
  2444. U.MD.U.L.login();
  2445. }, 2000);
  2446. } else {
  2447. _formdiv = new U.UF.UI.form(
  2448. "課程詳情",
  2449. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2450. "id": "studyDetail",
  2451. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2452. "onresize": function() {}
  2453. }, {
  2454. closecallback: function() {}
  2455. }, { "style": { "height": "36px" } }).form; //創建窗體
  2456. _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); } }
  2457. break;
  2458. }
  2459. case "studyDetailS":
  2460. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2461. setTimeout(() => {
  2462. U.MD.U.L.login();
  2463. }, 2000);
  2464. } else {
  2465. _formdiv = new U.UF.UI.form(
  2466. "項目詳情",
  2467. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2468. "id": "studyDetailS",
  2469. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2470. "onresize": function() {}
  2471. }, {
  2472. closecallback: function() {}
  2473. }, { "style": { "height": "36px" } }).form; //創建窗體
  2474. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "課程中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2475. break;
  2476. }
  2477. case "studyDetailStudio":
  2478. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2479. setTimeout(() => {
  2480. U.MD.U.L.login();
  2481. }, 2000);
  2482. } else {
  2483. _formdiv = new U.UF.UI.form(
  2484. "工作詳情",
  2485. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailStudio?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2486. "id": "studyDetailStudio",
  2487. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2488. "onresize": function() {}
  2489. }, {
  2490. closecallback: function() {}
  2491. }, { "style": { "height": "36px" } }).form; //創建窗體
  2492. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioCourse.png)" }, "name": "工作詳情", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2493. break;
  2494. }
  2495. case "studyDetailS5":
  2496. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2497. setTimeout(() => {
  2498. U.MD.U.L.login();
  2499. }, 2000);
  2500. } else {
  2501. _formdiv = new U.UF.UI.form(
  2502. "項目詳情",
  2503. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studyStudentS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2504. "id": "studyDetailS",
  2505. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2506. "onresize": function() {}
  2507. }, {
  2508. closecallback: function() {}
  2509. }, { "style": { "height": "36px" } }).form; //創建窗體
  2510. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "課程中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2511. break;
  2512. }
  2513. case "studyDetailGM":
  2514. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2515. setTimeout(() => {
  2516. U.MD.U.L.login();
  2517. }, 2000);
  2518. } else {
  2519. _formdiv = new U.UF.UI.form(
  2520. "課程詳情",
  2521. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2522. "id": "studyDetail",
  2523. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2524. "onresize": function() {}
  2525. }, {
  2526. closecallback: function() {}
  2527. }, { "style": { "height": "36px" } }).form; //創建窗體
  2528. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "課程中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2529. break;
  2530. }
  2531. case "hanUrl":
  2532. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2533. setTimeout(() => {
  2534. U.MD.U.L.login();
  2535. }, 2000);
  2536. } else {
  2537. _formdiv = new U.UF.UI.form(
  2538. "漢字宮",
  2539. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//school.hanzigon.cn/?appid=734714090237947#/material/video?grade_id=62&lesson_code=621&id=2432" }), {
  2540. "id": "hanUrl",
  2541. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2542. "onresize": function() {}
  2543. }, {
  2544. closecallback: function() {}
  2545. }, { "style": { "height": "36px" } }).form; //創建窗體
  2546. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "漢字宮", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2547. break;
  2548. }
  2549. case "index":
  2550. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2551. setTimeout(() => {
  2552. U.MD.U.L.login();
  2553. }, 2000);
  2554. } else {
  2555. _formdiv = new U.UF.UI.form(
  2556. "課程中心",
  2557. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=2" + "&typea="+ data.typea+ "&typeb=" + data.typeb + "&typed=" + data.typed }), {
  2558. "id": "study",
  2559. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2560. "onresize": function() {}
  2561. }, {
  2562. closecallback: function() {}
  2563. }, { "style": { "height": "36px" } }).form; //創建窗體
  2564. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "課程中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2565. break;
  2566. }
  2567. case "dataClass":
  2568. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2569. setTimeout(() => {
  2570. U.MD.U.L.login();
  2571. }, 2000);
  2572. } else {
  2573. _formdiv = new U.UF.UI.form(
  2574. "數據報告",
  2575. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/worksReport?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&cid=" + _classId + "&checkid="+ data.classid }), {
  2576. "id": "dataClass",
  2577. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2578. "onresize": function() {}
  2579. }, {
  2580. closecallback: function() {}
  2581. }, { "style": { "height": "36px" } }).form; //創建窗體
  2582. _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); } }
  2583. break;
  2584. }
  2585. case "opencCscl":
  2586. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2587. setTimeout(() => {
  2588. U.MD.U.L.login();
  2589. }, 2000);
  2590. } else {
  2591. _formdiv = new U.UF.UI.form(
  2592. "協同建構",
  2593. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cscl.cocorobo.cn?cid="+ data.cid + "&gid=" + data.gid }), {
  2594. "id": "futureClass",
  2595. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2596. "onresize": function() {}
  2597. }, {
  2598. closecallback: function() {}
  2599. }, { "style": { "height": "36px" } }).form; //創建窗體
  2600. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/futureClass.png)" }, "name": "協同建構", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2601. break;
  2602. }
  2603. }
  2604. }
  2605. U.MD.D.I.openApplication = function(str, obj, info) {
  2606. obj = obj || {};
  2607. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  2608. _formdiv, //創建任務欄時同時彈出的窗體元素。
  2609. _userinfo = US.userInfo, //登錄用戶信息
  2610. _userid = obj.userid || US.userInfo.userid, //登錄用戶id
  2611. _oid = obj.organizeid || _userinfo.organizeid,
  2612. _type = US.userInfo.type,
  2613. _org = US.userInfo.org,
  2614. _role = US.userInfo.role,
  2615. _classId = US.userInfo.classid,
  2616. _TscreenType = 1
  2617. _screenType = 2,
  2618. _SscreenType = 3;
  2619. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2620. return;
  2621. }
  2622. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2623. switch (str) {
  2624. case "studnetProject": //好友打開
  2625. _formdiv = new U.UF.UI.form(
  2626. "我的項目",
  2627. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  2628. "id": "studnetProject",
  2629. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2630. "onresize": function() {}
  2631. }, {
  2632. closecallback: function() {}
  2633. }, { "style": { "height": "36px" } }).form; //創建窗體
  2634. _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); } }
  2635. break;
  2636. case "studentEvaluate": //好友打開
  2637. _formdiv = new U.UF.UI.form(
  2638. "我的評價",
  2639. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2640. "id": "studentEvaluate",
  2641. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2642. "onresize": function() {}
  2643. }, {
  2644. closecallback: function() {}
  2645. }, { "style": { "height": "36px" } }).form; //創建窗體
  2646. _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); } }
  2647. break;
  2648. case "my":
  2649. _formdiv = new U.UF.UI.form(
  2650. "我的資料",
  2651. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  2652. "id": "my",
  2653. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2654. "onresize": function() {}
  2655. }, {
  2656. closecallback: function() {}
  2657. }, { "style": { "height": "36px" } }).form; //創建窗體
  2658. _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); } }
  2659. break;
  2660. case "program":
  2661. _formdiv = new U.UF.UI.form(
  2662. "編程平臺",
  2663. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2664. "id": "program",
  2665. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2666. "onresize": function() {}
  2667. }, {
  2668. closecallback: function() {}
  2669. }, { "style": { "height": "36px" } }).form; //創建窗體
  2670. _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); } }
  2671. break;
  2672. case "library":
  2673. _formdiv = new U.UF.UI.form(
  2674. "素材庫",
  2675. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  2676. "id": "library",
  2677. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2678. "onresize": function() {}
  2679. }, {
  2680. closecallback: function() {}
  2681. }, { "style": { "height": "36px" } }).form; //創建窗體
  2682. _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); } }
  2683. break;
  2684. case "whiteboard":
  2685. _formdiv = new U.UF.UI.form(
  2686. "電子白板",
  2687. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2688. "id": "whiteboard",
  2689. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2690. "onresize": function() {}
  2691. }, {
  2692. closecallback: function() {}
  2693. }, { "style": { "height": "36px" } }).form; //創建窗體
  2694. _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); } }
  2695. break;
  2696. case "investigation":
  2697. _formdiv = new U.UF.UI.form(
  2698. "問卷調查",
  2699. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  2700. "id": "investigation",
  2701. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2702. "onresize": function() {}
  2703. }, {
  2704. closecallback: function() {}
  2705. }, { "style": { "height": "36px" } }).form; //創建窗體
  2706. _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); } }
  2707. break;
  2708. case "note":
  2709. _formdiv = new U.UF.UI.form(
  2710. "便簽分類",
  2711. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  2712. "id": "note",
  2713. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2714. "onresize": function() {}
  2715. }, {
  2716. closecallback: function() {}
  2717. }, { "style": { "height": "36px" } }).form; //創建窗體
  2718. _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); } }
  2719. break;
  2720. // case "score":
  2721. // _formdiv = new U.UF.UI.form(
  2722. // "量規評分",
  2723. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2724. // "id": "score",
  2725. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2726. // "onresize": function() {}
  2727. // }, {
  2728. // closecallback: function() {}
  2729. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2730. // _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); } }
  2731. // break;
  2732. case "mind":
  2733. _formdiv = new U.UF.UI.form(
  2734. "思維導圖",
  2735. $$("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"
  2736. "id": "mind",
  2737. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2738. "onresize": function() {}
  2739. }, {
  2740. closecallback: function() {}
  2741. }, { "style": { "height": "36px" } }).form; //創建窗體
  2742. _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); } }
  2743. break;
  2744. case "doc":
  2745. // U.MD.D.I.isRoom();
  2746. _formdiv = new U.UF.UI.form(
  2747. "協同文檔",
  2748. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2749. "id": "doc",
  2750. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2751. "onresize": function() {}
  2752. }, {
  2753. closecallback: function() {}
  2754. }, { "style": { "height": "36px" } }).form; //創建窗體
  2755. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2756. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2757. // })
  2758. _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); } }
  2759. break;
  2760. case "studentStudy":
  2761. _formdiv = new U.UF.UI.form(
  2762. "課程中心",
  2763. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2764. "id": "studentStudy",
  2765. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2766. "onresize": function() {}
  2767. }, {
  2768. closecallback: function() {}
  2769. }, { "style": { "height": "36px" } }).form; //創建窗體
  2770. _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); } }
  2771. break;
  2772. case "train": //好友打開
  2773. _formdiv = new U.UF.UI.form(
  2774. "訓練平臺",
  2775. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2776. "id": "train",
  2777. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2778. "onresize": function() {}
  2779. }, {
  2780. closecallback: function() {}
  2781. }, { "style": { "height": "36px" } }).form; //創建窗體
  2782. _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); } }
  2783. break;
  2784. case "mindNetwork": //好友打開
  2785. _formdiv = new U.UF.UI.form(
  2786. "思維網格",
  2787. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid + "&org=" + _org }), {
  2788. "id": "mindNetwork",
  2789. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2790. "onresize": function() {}
  2791. }, {
  2792. closecallback: function() {}
  2793. }, { "style": { "height": "36px" } }).form; //創建窗體
  2794. _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); } }
  2795. break;
  2796. case "studentClassRoom": //好友打開
  2797. _formdiv = new U.UF.UI.form(
  2798. "實時課堂",
  2799. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2800. "id": "studentClassRoom",
  2801. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2802. "onresize": function() {}
  2803. }, {
  2804. closecallback: function() {}
  2805. }, { "style": { "height": "36px" } }).form; //創建窗體
  2806. _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); } }
  2807. setTimeout(() => {
  2808. U.UF.F.windowZooming(_formdiv)
  2809. }, 0);
  2810. break;
  2811. }
  2812. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2813. switch (str) {
  2814. case "studnetProject": //好友打開
  2815. _formdiv = new U.UF.UI.form(
  2816. "我的項目",
  2817. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  2818. "id": "studnetProject",
  2819. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2820. "onresize": function() {}
  2821. }, {
  2822. closecallback: function() {}
  2823. }, { "style": { "height": "36px" } }).form; //創建窗體
  2824. _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); } }
  2825. break;
  2826. case "studentEvaluate": //好友打開
  2827. _formdiv = new U.UF.UI.form(
  2828. "我的評價",
  2829. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2830. "id": "studentEvaluate",
  2831. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2832. "onresize": function() {}
  2833. }, {
  2834. closecallback: function() {}
  2835. }, { "style": { "height": "36px" } }).form; //創建窗體
  2836. _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); } }
  2837. break;
  2838. case "my":
  2839. _formdiv = new U.UF.UI.form(
  2840. "我的資料",
  2841. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  2842. "id": "my",
  2843. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2844. "onresize": function() {}
  2845. }, {
  2846. closecallback: function() {}
  2847. }, { "style": { "height": "36px" } }).form; //創建窗體
  2848. _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); } }
  2849. break;
  2850. case "program":
  2851. _formdiv = new U.UF.UI.form(
  2852. "編程平臺",
  2853. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2854. "id": "program",
  2855. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2856. "onresize": function() {}
  2857. }, {
  2858. closecallback: function() {}
  2859. }, { "style": { "height": "36px" } }).form; //創建窗體
  2860. _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); } }
  2861. break;
  2862. case "library":
  2863. _formdiv = new U.UF.UI.form(
  2864. "素材庫",
  2865. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  2866. "id": "library",
  2867. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2868. "onresize": function() {}
  2869. }, {
  2870. closecallback: function() {}
  2871. }, { "style": { "height": "36px" } }).form; //創建窗體
  2872. _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); } }
  2873. break;
  2874. case "whiteboard":
  2875. _formdiv = new U.UF.UI.form(
  2876. "電子白板",
  2877. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2878. "id": "whiteboard",
  2879. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2880. "onresize": function() {}
  2881. }, {
  2882. closecallback: function() {}
  2883. }, { "style": { "height": "36px" } }).form; //創建窗體
  2884. _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); } }
  2885. break;
  2886. case "investigation":
  2887. _formdiv = new U.UF.UI.form(
  2888. "問卷調查",
  2889. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  2890. "id": "investigation",
  2891. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2892. "onresize": function() {}
  2893. }, {
  2894. closecallback: function() {}
  2895. }, { "style": { "height": "36px" } }).form; //創建窗體
  2896. _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); } }
  2897. break;
  2898. case "note":
  2899. _formdiv = new U.UF.UI.form(
  2900. "便簽分類",
  2901. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  2902. "id": "note",
  2903. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2904. "onresize": function() {}
  2905. }, {
  2906. closecallback: function() {}
  2907. }, { "style": { "height": "36px" } }).form; //創建窗體
  2908. _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); } }
  2909. break;
  2910. // case "score":
  2911. // _formdiv = new U.UF.UI.form(
  2912. // "量規評分",
  2913. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2914. // "id": "score",
  2915. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2916. // "onresize": function() {}
  2917. // }, {
  2918. // closecallback: function() {}
  2919. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2920. // _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); } }
  2921. // break;
  2922. case "mind":
  2923. _formdiv = new U.UF.UI.form(
  2924. "思維導圖",
  2925. $$("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"
  2926. "id": "mind",
  2927. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2928. "onresize": function() {}
  2929. }, {
  2930. closecallback: function() {}
  2931. }, { "style": { "height": "36px" } }).form; //創建窗體
  2932. _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); } }
  2933. break;
  2934. case "doc":
  2935. // U.MD.D.I.isRoom();
  2936. _formdiv = new U.UF.UI.form(
  2937. "協同文檔",
  2938. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2939. "id": "doc",
  2940. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2941. "onresize": function() {}
  2942. }, {
  2943. closecallback: function() {}
  2944. }, { "style": { "height": "36px" } }).form; //創建窗體
  2945. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  2946. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2947. })
  2948. _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); } }
  2949. break;
  2950. case "train": //好友打開
  2951. _formdiv = new U.UF.UI.form(
  2952. "訓練平臺",
  2953. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2954. "id": "train",
  2955. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2956. "onresize": function() {}
  2957. }, {
  2958. closecallback: function() {}
  2959. }, { "style": { "height": "36px" } }).form; //創建窗體
  2960. _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); } }
  2961. break;
  2962. case "studentStudy":
  2963. _formdiv = new U.UF.UI.form(
  2964. "課程中心",
  2965. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2966. "id": "studentStudy",
  2967. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2968. "onresize": function() {}
  2969. }, {
  2970. closecallback: function() {}
  2971. }, { "style": { "height": "36px" } }).form; //創建窗體
  2972. _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); } }
  2973. break;
  2974. case "mindNetwork": //好友打開
  2975. _formdiv = new U.UF.UI.form(
  2976. "思維網格",
  2977. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid + "&org=" + _org }), {
  2978. "id": "mindNetwork",
  2979. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2980. "onresize": function() {}
  2981. }, {
  2982. closecallback: function() {}
  2983. }, { "style": { "height": "36px" } }).form; //創建窗體
  2984. _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); } }
  2985. break;
  2986. case "studentClassRoom": //好友打開
  2987. _formdiv = new U.UF.UI.form(
  2988. "實時課堂",
  2989. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2990. "id": "studentClassRoom",
  2991. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2992. "onresize": function() {}
  2993. }, {
  2994. closecallback: function() {}
  2995. }, { "style": { "height": "36px" } }).form; //創建窗體
  2996. _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); } }
  2997. setTimeout(() => {
  2998. U.UF.F.windowZooming(_formdiv)
  2999. }, 0);
  3000. break;
  3001. }
  3002. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  3003. //選擇應用處理
  3004. switch (str) {
  3005. case "project": //好友打開
  3006. _formdiv = new U.UF.UI.form(
  3007. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目' : "課程管理",
  3008. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;clipboard-write;clipboard-read", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3009. "id": "project",
  3010. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3011. "onresize": function() {}
  3012. }, {
  3013. closecallback: function() {}
  3014. }, { "style": { "height": "36px" } }).form; //創建窗體
  3015. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目' : "課程管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3016. break;
  3017. case "student":
  3018. _formdiv = new U.UF.UI.form(
  3019. "學生管理",
  3020. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org + "&role=" + _role }), {
  3021. "id": "student",
  3022. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3023. "onresize": function() {}
  3024. }, {
  3025. closecallback: function() {}
  3026. }, { "style": { "height": "36px" } }).form; //創建窗體
  3027. _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); } }
  3028. break;
  3029. case "evaluate":
  3030. _formdiv = new U.UF.UI.form(
  3031. "學生評價",
  3032. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3033. "id": "evaluate",
  3034. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3035. "onresize": function() {}
  3036. }, {
  3037. closecallback: function() {}
  3038. }, { "style": { "height": "36px" } }).form; //創建窗體
  3039. _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); } }
  3040. break;
  3041. case "sys":
  3042. _formdiv = new U.UF.UI.form(
  3043. "目標管理",
  3044. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3045. "id": "sys",
  3046. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3047. "onresize": function() {}
  3048. }, {
  3049. closecallback: function() {}
  3050. }, { "style": { "height": "36px" } }).form; //創建窗體
  3051. _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); } }
  3052. break;
  3053. case "courseDesign":
  3054. _formdiv = new U.UF.UI.form(
  3055. "項目設計",
  3056. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3057. "id": "courseDesign",
  3058. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3059. "onresize": function() {}
  3060. }, {
  3061. closecallback: function() {}
  3062. }, { "style": { "height": "36px" } }).form; //創建窗體
  3063. _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); } }
  3064. break;
  3065. case "program":
  3066. _formdiv = new U.UF.UI.form(
  3067. "編程平臺",
  3068. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3069. "id": "program",
  3070. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3071. "onresize": function() {}
  3072. }, {
  3073. closecallback: function() {}
  3074. }, { "style": { "height": "36px" } }).form; //創建窗體
  3075. _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); } }
  3076. break;
  3077. case "class":
  3078. _formdiv = new U.UF.UI.form(
  3079. "班級管理",
  3080. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3081. "id": "class",
  3082. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3083. "onresize": function() {}
  3084. }, {
  3085. closecallback: function() {}
  3086. }, { "style": { "height": "36px" } }).form; //創建窗體
  3087. _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); } }
  3088. break;
  3089. case "Grade":
  3090. _formdiv = new U.UF.UI.form(
  3091. "年級管理",
  3092. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/grade?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3093. "id": "Grade",
  3094. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3095. "onresize": function() {}
  3096. }, {
  3097. closecallback: function() {}
  3098. }, { "style": { "height": "36px" } }).form; //創建窗體
  3099. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Grade.png)" }, "name": "年級管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3100. break;
  3101. case "teacherOffice":
  3102. _formdiv = new U.UF.UI.form(
  3103. "教研室",
  3104. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/teacherOffice?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3105. "id": "teacherOffice",
  3106. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3107. "onresize": function() {}
  3108. }, {
  3109. closecallback: function() {}
  3110. }, { "style": { "height": "36px" } }).form; //創建窗體
  3111. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/teacherOffice.png)" }, "name": "教研室", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3112. break;
  3113. case "my":
  3114. _formdiv = new U.UF.UI.form(
  3115. "我的資料",
  3116. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  3117. "id": "my",
  3118. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3119. "onresize": function() {}
  3120. }, {
  3121. closecallback: function() {}
  3122. }, { "style": { "height": "36px" } }).form; //創建窗體
  3123. _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); } }
  3124. break;
  3125. case "notice":
  3126. _formdiv = new U.UF.UI.form(
  3127. "通知公告",
  3128. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  3129. "id": "notice",
  3130. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3131. "onresize": function() {}
  3132. }, {
  3133. closecallback: function() {}
  3134. }, { "style": { "height": "36px" } }).form; //創建窗體
  3135. _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); } }
  3136. break;
  3137. case "library":
  3138. _formdiv = new U.UF.UI.form(
  3139. "素材庫",
  3140. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  3141. "id": "library",
  3142. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3143. "onresize": function() {}
  3144. }, {
  3145. closecallback: function() {}
  3146. }, { "style": { "height": "36px" } }).form; //創建窗體
  3147. _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); } }
  3148. break;
  3149. case "whiteboard":
  3150. _formdiv = new U.UF.UI.form(
  3151. "電子白板",
  3152. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3153. "id": "whiteboard",
  3154. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3155. "onresize": function() {}
  3156. }, {
  3157. closecallback: function() {}
  3158. }, { "style": { "height": "36px" } }).form; //創建窗體
  3159. _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); } }
  3160. break;
  3161. case "investigation":
  3162. _formdiv = new U.UF.UI.form(
  3163. "問卷調查",
  3164. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  3165. "id": "investigation",
  3166. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3167. "onresize": function() {}
  3168. }, {
  3169. closecallback: function() {}
  3170. }, { "style": { "height": "36px" } }).form; //創建窗體
  3171. _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); } }
  3172. break;
  3173. case "note":
  3174. _formdiv = new U.UF.UI.form(
  3175. "便簽分類",
  3176. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  3177. "id": "note",
  3178. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  3179. "onresize": function() {}
  3180. }, {
  3181. closecallback: function() {}
  3182. }, { "style": { "height": "36px" } }).form; //創建窗體
  3183. _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); } }
  3184. break;
  3185. // case "score":
  3186. // _formdiv = new U.UF.UI.form(
  3187. // "量規評分",
  3188. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  3189. // "id": "score",
  3190. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3191. // "onresize": function() {}
  3192. // }, {
  3193. // closecallback: function() {}
  3194. // }, { "style": { "height": "36px" } }).form; //創建窗體
  3195. // _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); } }
  3196. // break;
  3197. case "mind":
  3198. _formdiv = new U.UF.UI.form(
  3199. "思維導圖",
  3200. $$("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"
  3201. "id": "mind",
  3202. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3203. "onresize": function() {}
  3204. }, {
  3205. closecallback: function() {}
  3206. }, { "style": { "height": "36px" } }).form; //創建窗體
  3207. _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); } }
  3208. break;
  3209. case "doc":
  3210. // U.MD.D.I.isRoom();
  3211. _formdiv = new U.UF.UI.form(
  3212. "協同文檔",
  3213. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3214. "id": "doc",
  3215. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3216. "onresize": function() {}
  3217. }, {
  3218. closecallback: function() {}
  3219. }, { "style": { "height": "36px" } }).form; //創建窗體
  3220. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  3221. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3222. })
  3223. _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); } }
  3224. break;
  3225. case "study":
  3226. _formdiv = new U.UF.UI.form(
  3227. "課程中心",
  3228. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  3229. "id": "study",
  3230. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3231. "onresize": function() {}
  3232. }, {
  3233. closecallback: function() {}
  3234. }, { "style": { "height": "36px" } }).form; //創建窗體
  3235. _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); } }
  3236. break;
  3237. case "mindNetwork": //好友打開
  3238. _formdiv = new U.UF.UI.form(
  3239. "思維網格",
  3240. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid + "&org=" + _org }), {
  3241. "id": "mindNetwork",
  3242. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3243. "onresize": function() {}
  3244. }, {
  3245. closecallback: function() {}
  3246. }, { "style": { "height": "36px" } }).form; //創建窗體
  3247. _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); } }
  3248. break;
  3249. case "train": //好友打開
  3250. _formdiv = new U.UF.UI.form(
  3251. "訓練平臺",
  3252. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3253. "id": "mindNetwork",
  3254. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3255. "onresize": function() {}
  3256. }, {
  3257. closecallback: function() {}
  3258. }, { "style": { "height": "36px" } }).form; //創建窗體
  3259. _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); } }
  3260. break;
  3261. case "teacherClassRoom": //好友打開
  3262. _formdiv = new U.UF.UI.form(
  3263. "實時課堂",
  3264. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/classRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3265. "id": "teacherClassRoom",
  3266. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3267. "onresize": function() {}
  3268. }, {
  3269. closecallback: function() {}
  3270. }, { "style": { "height": "36px" } }).form; //創建窗體
  3271. _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); } }
  3272. setTimeout(() => {
  3273. U.UF.F.windowZooming(_formdiv)
  3274. }, 0);
  3275. break;
  3276. }
  3277. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  3278. switch (str) {
  3279. case "project": //好友打開
  3280. _formdiv = new U.UF.UI.form(
  3281. "課程管理",
  3282. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;clipboard-write;clipboard-read", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3283. "id": "project",
  3284. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3285. "onresize": function() {}
  3286. }, {
  3287. closecallback: function() {}
  3288. }, { "style": { "height": "36px" } }).form; //創建窗體
  3289. _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); } }
  3290. break;
  3291. case "evaluate":
  3292. _formdiv = new U.UF.UI.form(
  3293. "學生評價",
  3294. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3295. "id": "evaluate",
  3296. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3297. "onresize": function() {}
  3298. }, {
  3299. closecallback: function() {}
  3300. }, { "style": { "height": "36px" } }).form; //創建窗體
  3301. _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); } }
  3302. break;
  3303. case "notice":
  3304. _formdiv = new U.UF.UI.form(
  3305. "通知公告",
  3306. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  3307. "id": "notice",
  3308. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3309. "onresize": function() {}
  3310. }, {
  3311. closecallback: function() {}
  3312. }, { "style": { "height": "36px" } }).form; //創建窗體
  3313. _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); } }
  3314. break;
  3315. case "stuLibrary":
  3316. _formdiv = new U.UF.UI.form(
  3317. "學習資料",
  3318. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studyLibrary?userid=" + _userid + "&org=" + _org }), {
  3319. "id": "stuLibrary",
  3320. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3321. "onresize": function() {}
  3322. }, {
  3323. closecallback: function() {}
  3324. }, { "style": { "height": "36px" } }).form; //創建窗體
  3325. _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); } }
  3326. break;
  3327. case "program":
  3328. _formdiv = new U.UF.UI.form(
  3329. "編程平臺",
  3330. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3331. "id": "program",
  3332. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3333. "onresize": function() {}
  3334. }, {
  3335. closecallback: function() {}
  3336. }, { "style": { "height": "36px" } }).form; //創建窗體
  3337. _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); } }
  3338. break;
  3339. case "whiteboard":
  3340. _formdiv = new U.UF.UI.form(
  3341. "電子白板",
  3342. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3343. "id": "whiteboard",
  3344. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3345. "onresize": function() {}
  3346. }, {
  3347. closecallback: function() {}
  3348. }, { "style": { "height": "36px" } }).form; //創建窗體
  3349. _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); } }
  3350. break;
  3351. case "investigation":
  3352. _formdiv = new U.UF.UI.form(
  3353. "問卷調查",
  3354. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  3355. "id": "investigation",
  3356. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3357. "onresize": function() {}
  3358. }, {
  3359. closecallback: function() {}
  3360. }, { "style": { "height": "36px" } }).form; //創建窗體
  3361. _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); } }
  3362. break;
  3363. case "mind":
  3364. _formdiv = new U.UF.UI.form(
  3365. "思維導圖",
  3366. $$("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"
  3367. "id": "mind",
  3368. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3369. "onresize": function() {}
  3370. }, {
  3371. closecallback: function() {}
  3372. }, { "style": { "height": "36px" } }).form; //創建窗體
  3373. _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); } }
  3374. break;
  3375. case "doc":
  3376. // U.MD.D.I.isRoom();
  3377. _formdiv = new U.UF.UI.form(
  3378. "協同文檔",
  3379. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3380. "id": "doc",
  3381. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3382. "onresize": function() {}
  3383. }, {
  3384. closecallback: function() {}
  3385. }, { "style": { "height": "36px" } }).form; //創建窗體
  3386. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  3387. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3388. })
  3389. _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); } }
  3390. break;
  3391. case "study":
  3392. _formdiv = new U.UF.UI.form(
  3393. "課程中心",
  3394. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  3395. "id": "study",
  3396. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3397. "onresize": function() {}
  3398. }, {
  3399. closecallback: function() {}
  3400. }, { "style": { "height": "36px" } }).form; //創建窗體
  3401. _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); } }
  3402. break;
  3403. case "mindNetwork": //好友打開
  3404. _formdiv = new U.UF.UI.form(
  3405. "思維網格",
  3406. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid + "&org=" + _org }), {
  3407. "id": "mindNetwork",
  3408. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3409. "onresize": function() {}
  3410. }, {
  3411. closecallback: function() {}
  3412. }, { "style": { "height": "36px" } }).form; //創建窗體
  3413. _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); } }
  3414. break;
  3415. case "train": //好友打開
  3416. _formdiv = new U.UF.UI.form(
  3417. "訓練平臺",
  3418. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3419. "id": "train",
  3420. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3421. "onresize": function() {}
  3422. }, {
  3423. closecallback: function() {}
  3424. }, { "style": { "height": "36px" } }).form; //創建窗體
  3425. _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); } }
  3426. break;
  3427. case "sys":
  3428. _formdiv = new U.UF.UI.form(
  3429. "目標管理",
  3430. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3431. "id": "sys",
  3432. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3433. "onresize": function() {}
  3434. }, {
  3435. closecallback: function() {}
  3436. }, { "style": { "height": "36px" } }).form; //創建窗體
  3437. _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); } }
  3438. break;
  3439. case "courseDesign":
  3440. _formdiv = new U.UF.UI.form(
  3441. "項目設計",
  3442. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3443. "id": "courseDesign",
  3444. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3445. "onresize": function() {}
  3446. }, {
  3447. closecallback: function() {}
  3448. }, { "style": { "height": "36px" } }).form; //創建窗體
  3449. _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); } }
  3450. break;
  3451. }
  3452. } else if (!_type) {
  3453. switch (str) {
  3454. case "my":
  3455. _formdiv = new U.UF.UI.form(
  3456. "我的資料",
  3457. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  3458. "id": "my",
  3459. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3460. "onresize": function() {}
  3461. }, {
  3462. closecallback: function() {}
  3463. }, { "style": { "height": "36px" } }).form; //創建窗體
  3464. _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); } }
  3465. break;
  3466. }
  3467. }
  3468. switch (str) {
  3469. // AIprogram2 AI體驗 aihub.cocorobo.cn
  3470. // Pythonprogram Python編程 python-blockly.cocorobo.cn
  3471. // AIprogram AI編程 ai-blockly.cocorobo.cn
  3472. case "formulaEdi": //公式編輯
  3473. _formdiv = new U.UF.UI.form(
  3474. "公式編輯",
  3475. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.latexlive.com/" }), {
  3476. "id": "formulaEdi",
  3477. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3478. "onresize": function() {}
  3479. }, {
  3480. closecallback: function() {}
  3481. }, { "style": { "height": "36px" } }).form; //創建窗體
  3482. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/formulaEdi.png)" }, "name": "公式編輯", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3483. break;
  3484. case "molStr": //分子結構
  3485. _formdiv = new U.UF.UI.form(
  3486. "分子結構",
  3487. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://molview.org/" }), {
  3488. "id": "molStr",
  3489. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3490. "onresize": function() {}
  3491. }, {
  3492. closecallback: function() {}
  3493. }, { "style": { "height": "36px" } }).form; //創建窗體
  3494. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/molStr.png)" }, "name": "分子結構", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3495. break;
  3496. case "timeAxis": //時間軸
  3497. _formdiv = new U.UF.UI.form(
  3498. "時間軸",
  3499. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://time.graphics/editor" }), {
  3500. "id": "timeAxis",
  3501. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3502. "onresize": function() {}
  3503. }, {
  3504. closecallback: function() {}
  3505. }, { "style": { "height": "36px" } }).form; //創建窗體
  3506. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/timeAxis.png)" }, "name": "時間軸", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3507. break;
  3508. case "AIprogram2": //AI體驗
  3509. _formdiv = new U.UF.UI.form(
  3510. "AI體驗",
  3511. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3512. "id": "AIprogram2",
  3513. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3514. "onresize": function() {}
  3515. }, {
  3516. closecallback: function() {}
  3517. }, { "style": { "height": "36px" } }).form; //創建窗體
  3518. _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); } }
  3519. break;
  3520. case "Pythonprogram": //python編程
  3521. _formdiv = new U.UF.UI.form(
  3522. "Python編程",
  3523. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3524. "id": "Pythonprogram",
  3525. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3526. "onresize": function() {}
  3527. }, {
  3528. closecallback: function() {}
  3529. }, { "style": { "height": "36px" } }).form; //創建窗體
  3530. _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); } }
  3531. break;
  3532. case "AIprogram": //ai編程
  3533. _formdiv = new U.UF.UI.form(
  3534. "AI編程平臺",
  3535. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3536. "id": "AIprogram",
  3537. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3538. "onresize": function() {}
  3539. }, {
  3540. closecallback: function() {}
  3541. }, { "style": { "height": "36px" } }).form; //創建窗體
  3542. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram.png)" }, "name": "AI編程平臺", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3543. break;
  3544. case "CocoPi": //CocoPi
  3545. _formdiv = new U.UF.UI.form(
  3546. "CocoPi",
  3547. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pi.cocorobo.hk/?lang=zh-hant" }), {
  3548. "id": "CocoPi",
  3549. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3550. "onresize": function() {}
  3551. }, {
  3552. closecallback: function() {}
  3553. }, { "style": { "height": "36px" } }).form; //創建窗體
  3554. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/cocopi.png)" }, "name": "CocoPi", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3555. break;
  3556. case "Wood": //Wood
  3557. _formdiv = new U.UF.UI.form(
  3558. "海龜編程",
  3559. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://wood.codemao.cn/" }), {
  3560. "id": "Wood",
  3561. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3562. "onresize": function() {}
  3563. }, {
  3564. closecallback: function() {}
  3565. }, { "style": { "height": "36px" } }).form; //創建窗體
  3566. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Wood.png)" }, "name": "海龜編程", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3567. break;
  3568. case "car": //模擬駕駛
  3569. _formdiv = new U.UF.UI.form(
  3570. "模擬駕駛",
  3571. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://slowroads.io/" }), {
  3572. "id": "car",
  3573. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3574. "onresize": function() {}
  3575. }, {
  3576. closecallback: function() {}
  3577. }, { "style": { "height": "36px" } }).form; //創建窗體
  3578. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/car.png)" }, "name": "模擬駕駛", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3579. break;
  3580. case "lineSearch": //路徑搜索
  3581. _formdiv = new U.UF.UI.form(
  3582. "路徑搜索",
  3583. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://qiao.github.io/PathFinding.js/visual/" }), {
  3584. "id": "lineSearch",
  3585. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3586. "onresize": function() {}
  3587. }, {
  3588. closecallback: function() {}
  3589. }, { "style": { "height": "36px" } }).form; //創建窗體
  3590. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/lineSearch.png)" }, "name": "路徑搜索", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3591. break;
  3592. case "deepLearning": //深度學習
  3593. _formdiv = new U.UF.UI.form(
  3594. "深度學習",
  3595. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-demos.cocorobo.cn/teachable-machine/public/#" }), {
  3596. "id": "deepLearning",
  3597. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3598. "onresize": function() {}
  3599. }, {
  3600. closecallback: function() {}
  3601. }, { "style": { "height": "36px" } }).form; //創建窗體
  3602. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/deepLearning.png)" }, "name": "深度學習", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3603. break;
  3604. case "allHistory": //深度學習
  3605. _formdiv = new U.UF.UI.form(
  3606. "全歷史",
  3607. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.allhistory.com/" }), {
  3608. "id": "allHistory",
  3609. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3610. "onresize": function() {}
  3611. }, {
  3612. closecallback: function() {}
  3613. }, { "style": { "height": "36px" } }).form; //創建窗體
  3614. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/allHistory.png)" }, "name": "全歷史", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3615. break;
  3616. case "chatPDF": //ai編程
  3617. _formdiv = new U.UF.UI.form(
  3618. "chatPDF",
  3619. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3620. "id": "chatPDF",
  3621. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3622. "onresize": function() {}
  3623. }, {
  3624. closecallback: function() {}
  3625. }, { "style": { "height": "36px" } }).form; //創建窗體
  3626. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/chatPDF.png)" }, "name": "chatPDF", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3627. break;
  3628. case "resources": //國家教育
  3629. _formdiv = new U.UF.UI.form(
  3630. "國家教育",
  3631. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3632. "id": "resources",
  3633. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3634. "onresize": function() {}
  3635. }, {
  3636. closecallback: function() {}
  3637. }, { "style": { "height": "36px" } }).form; //創建窗體
  3638. _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); } }
  3639. break;
  3640. case "codeEdit": //源碼編輯
  3641. _formdiv = new U.UF.UI.form(
  3642. "源碼編輯",
  3643. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3644. "id": "codeEdit",
  3645. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3646. "onresize": function() {}
  3647. }, {
  3648. closecallback: function() {}
  3649. }, { "style": { "height": "36px" } }).form; //創建窗體
  3650. _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); } }
  3651. break; //
  3652. case "MindMap": //MindMap
  3653. _formdiv = new U.UF.UI.form(
  3654. "MindMap",
  3655. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3656. "id": "MindMap",
  3657. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3658. "onresize": function() {}
  3659. }, {
  3660. closecallback: function() {}
  3661. }, { "style": { "height": "36px" } }).form; //創建窗體
  3662. _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); } }
  3663. break;
  3664. case "netWorkPanel": //netWorkPanel
  3665. _formdiv = new U.UF.UI.form(
  3666. "netWorkPanel",
  3667. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3668. "id": "netWorkPanel",
  3669. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3670. "onresize": function() {}
  3671. }, {
  3672. closecallback: function() {}
  3673. }, { "style": { "height": "36px" } }).form; //創建窗體
  3674. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/netWorkPanel.png)" }, "name": "netWorkPanel", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3675. break;
  3676. case "GeoGebra": //GeoGebra
  3677. _formdiv = new U.UF.UI.form(
  3678. "GeoGebra",
  3679. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  3680. "id": "GeoGebra",
  3681. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3682. "onresize": function() {}
  3683. }, {
  3684. closecallback: function() {}
  3685. }, { "style": { "height": "36px" } }).form; //創建窗體
  3686. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/GeoGebra.png)" }, "name": "GeoGebra", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3687. break;
  3688. case "translation": //翻譯
  3689. _formdiv = new U.UF.UI.form(
  3690. "翻譯",
  3691. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3692. "id": "translation",
  3693. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3694. "onresize": function() {}
  3695. }, {
  3696. closecallback: function() {}
  3697. }, { "style": { "height": "36px" } }).form; //創建窗體
  3698. _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); } }
  3699. break;
  3700. case "mohe": //魔盒
  3701. _formdiv = new U.UF.UI.form(
  3702. "魔盒識字",
  3703. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3704. "id": "mohe",
  3705. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3706. "onresize": function() {}
  3707. }, {
  3708. closecallback: function() {}
  3709. }, { "style": { "height": "36px" } }).form; //創建窗體
  3710. _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); } }
  3711. break;
  3712. case "24game": //24點
  3713. _formdiv = new U.UF.UI.form(
  3714. "24點",
  3715. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3716. "id": "24game",
  3717. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3718. "onresize": function() {}
  3719. }, {
  3720. closecallback: function() {}
  3721. }, { "style": { "height": "36px" } }).form; //創建窗體
  3722. _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); } }
  3723. break;
  3724. case "case":
  3725. _formdiv = new U.UF.UI.form(
  3726. "課程進展",
  3727. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesign?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3728. "id": "case",
  3729. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3730. "onresize": function() {}
  3731. }, {
  3732. closecallback: function() {}
  3733. }, { "style": { "height": "36px" } }).form; //創建窗體
  3734. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/case.png)" }, "name": "課程進展", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3735. break;
  3736. case "snf":
  3737. _formdiv = new U.UF.UI.form(
  3738. "賽諾梵",
  3739. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//try.cynovan.com/standard/?trial=true&data=%7B%22username%22%3A%22cynovanDemo%22%2C%22password%22%3A%22cynovanDemo%22%7D&redirect_uri=http://janus.cynovan.com/#/app/workflow/menu/1/r/6343ce2ac00fa32609d1f91b" }), {
  3740. "id": "snf",
  3741. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3742. "onresize": function() {}
  3743. }, {
  3744. closecallback: function() {}
  3745. }, { "style": { "height": "36px" } }).form; //創建窗體
  3746. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/snf.png)" }, "name": "賽諾梵", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3747. break;
  3748. case "hanFamily":
  3749. _formdiv = new U.UF.UI.form(
  3750. "漢字家族",
  3751. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3752. "id": "hanFamily",
  3753. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3754. "onresize": function() {}
  3755. }, {
  3756. closecallback: function() {}
  3757. }, { "style": { "height": "36px" } }).form; //創建窗體
  3758. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanFamily.png)" }, "name": "漢字家族", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3759. break;
  3760. case "hanClassics":
  3761. _formdiv = new U.UF.UI.form(
  3762. "國學經典",
  3763. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3764. "id": "hanClassics",
  3765. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3766. "onresize": function() {}
  3767. }, {
  3768. closecallback: function() {}
  3769. }, { "style": { "height": "36px" } }).form; //創建窗體
  3770. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClassics.png)" }, "name": "國學經典", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3771. break;
  3772. case "hanTraining":
  3773. _formdiv = new U.UF.UI.form(
  3774. "筆畫訓練",
  3775. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3776. "id": "hanTraining",
  3777. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3778. "onresize": function() {}
  3779. }, {
  3780. closecallback: function() {}
  3781. }, { "style": { "height": "36px" } }).form; //創建窗體
  3782. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanTraining.png)" }, "name": "筆畫訓練", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3783. break;
  3784. case "hanClass":
  3785. _formdiv = new U.UF.UI.form(
  3786. "書法課堂",
  3787. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3788. "id": "hanClass",
  3789. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3790. "onresize": function() {}
  3791. }, {
  3792. closecallback: function() {}
  3793. }, { "style": { "height": "36px" } }).form; //創建窗體
  3794. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "書法課堂", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3795. break;
  3796. case "han":
  3797. _formdiv = new U.UF.UI.form(
  3798. "漢字宮",
  3799. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3800. "id": "han",
  3801. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3802. "onresize": function() {}
  3803. }, {
  3804. closecallback: function() {}
  3805. }, { "style": { "height": "36px" } }).form; //創建窗體
  3806. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/han.png)" }, "name": "漢字宮", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3807. break;
  3808. case "projectGM": //課程管理
  3809. _formdiv = new U.UF.UI.form(
  3810. "課程管理",
  3811. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/courseGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3812. "id": "projectGM",
  3813. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3814. "onresize": function() {}
  3815. }, {
  3816. closecallback: function() {}
  3817. }, { "style": { "height": "36px" } }).form; //創建窗體
  3818. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/courseMange.png)" }, "name": "課程管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3819. break;
  3820. case "studyGM": //課程中心
  3821. _formdiv = new U.UF.UI.form(
  3822. "課程中心",
  3823. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/indexGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  3824. "id": "study",
  3825. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3826. "onresize": function() {}
  3827. }, {
  3828. closecallback: function() {}
  3829. }, { "style": { "height": "36px" } }).form; //創建窗體
  3830. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "課程中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3831. break;
  3832. // studentGM
  3833. case "studentGM": //學生管理
  3834. _formdiv = new U.UF.UI.form(
  3835. "學生管理",
  3836. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studentGM?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  3837. "id": "studentGM",
  3838. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3839. "onresize": function() {}
  3840. }, {
  3841. closecallback: function() {}
  3842. }, { "style": { "height": "36px" } }).form; //創建窗體
  3843. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/student.png)" }, "name": "學生管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3844. break;
  3845. case "evaluateGM": //學生評價
  3846. _formdiv = new U.UF.UI.form(
  3847. "學生評價",
  3848. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3849. "id": "evaluateGM",
  3850. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3851. "onresize": function() {}
  3852. }, {
  3853. closecallback: function() {}
  3854. }, { "style": { "height": "36px" } }).form; //創建窗體
  3855. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/evaluate.png)" }, "name": "學生評價", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3856. break;
  3857. // classGM
  3858. case "classGM": //班級管理
  3859. _formdiv = new U.UF.UI.form(
  3860. "班級管理",
  3861. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/classGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3862. "id": "classGM",
  3863. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3864. "onresize": function() {}
  3865. }, {
  3866. closecallback: function() {}
  3867. }, { "style": { "height": "36px" } }).form; //創建窗體
  3868. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/class.png)" }, "name": "班級管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3869. break;
  3870. // dataGM
  3871. case "dataGM":
  3872. _formdiv = new U.UF.UI.form(
  3873. "我的資料",
  3874. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataGM?userid=" + _userid + "&org=" + _org }), {
  3875. "id": "dataGM",
  3876. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3877. "onresize": function() {}
  3878. }, {
  3879. closecallback: function() {}
  3880. }, { "style": { "height": "36px" } }).form; //創建窗體
  3881. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/data.png)" }, "name": "我的資料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3882. break;
  3883. // caseGM
  3884. case "caseGM": //課程進展
  3885. _formdiv = new U.UF.UI.form(
  3886. "課程進展",
  3887. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesignGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3888. "id": "caseGM",
  3889. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3890. "onresize": function() {}
  3891. }, {
  3892. closecallback: function() {}
  3893. }, { "style": { "height": "36px" } }).form; //創建窗體
  3894. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/case.png)" }, "name": "課程進展", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3895. break;
  3896. // meterialGM
  3897. case "meterialGM": //素材庫
  3898. _formdiv = new U.UF.UI.form(
  3899. "素材庫",
  3900. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/libraryGM?userid=" + _userid + "&org=" + _org }), {
  3901. "id": "meterialGM",
  3902. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3903. "onresize": function() {}
  3904. }, {
  3905. closecallback: function() {}
  3906. }, { "style": { "height": "36px" } }).form; //創建窗體
  3907. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/material.png)" }, "name": "素材庫", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3908. break;
  3909. // evaluateSGM
  3910. case "evaluateSGM": //我的評價
  3911. _formdiv = new U.UF.UI.form(
  3912. "我的評價",
  3913. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3914. "id": "evaluateSGM",
  3915. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3916. "onresize": function() {}
  3917. }, {
  3918. closecallback: function() {}
  3919. }, { "style": { "height": "36px" } }).form; //創建窗體
  3920. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/evaluate.png)" }, "name": "我的評價", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3921. break;
  3922. case "jupyter": //jupyter
  3923. _formdiv = new U.UF.UI.form(
  3924. "jupyter",
  3925. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3926. "id": "jupyter",
  3927. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3928. "onresize": function() {}
  3929. }, {
  3930. closecallback: function() {}
  3931. }, { "style": { "height": "36px" } }).form; //創建窗體
  3932. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/jupyter.png)" }, "name": "jupyter", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3933. break;
  3934. case "number": //數字實驗室
  3935. _formdiv = new U.UF.UI.form(
  3936. "數字實驗室",
  3937. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3938. "id": "number",
  3939. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3940. "onresize": function() {}
  3941. }, {
  3942. closecallback: function() {}
  3943. }, { "style": { "height": "36px" } }).form; //創建窗體
  3944. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/number.png)" }, "name": "數字實驗室", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3945. break;
  3946. case "studentCourse": //項目管理 學生
  3947. _formdiv = new U.UF.UI.form(
  3948. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  3949. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;clipboard-write;clipboard-read;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studentCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3950. "id": "studentCourse",
  3951. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3952. "onresize": function() {}
  3953. }, {
  3954. closecallback: function() {}
  3955. }, { "style": { "height": "36px" } }).form; //創建窗體
  3956. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "項目管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3957. break;
  3958. case "studentCourseS": //項目管理 老師
  3959. _formdiv = new U.UF.UI.form(
  3960. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  3961. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;clipboard-write;clipboard-read;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/scourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3962. "id": "studentCourseS",
  3963. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3964. "onresize": function() {}
  3965. }, {
  3966. closecallback: function() {}
  3967. }, { "style": { "height": "36px" } }).form; //創建窗體
  3968. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "項目管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3969. break;
  3970. case "studentIndex": //項目中心
  3971. _formdiv = new U.UF.UI.form(
  3972. "項目中心",
  3973. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studentIndex?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType + "&role=" + _role }), {
  3974. "id": "studentIndex",
  3975. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3976. "onresize": function() {}
  3977. }, {
  3978. closecallback: function() {}
  3979. }, { "style": { "height": "36px" } }).form; //創建窗體
  3980. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentIndex.png)" }, "name": "項目管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3981. break;
  3982. case "CaseDesignS":
  3983. _formdiv = new U.UF.UI.form(
  3984. "項目進展",
  3985. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesignS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3986. "id": "case",
  3987. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3988. "onresize": function() {}
  3989. }, {
  3990. closecallback: function() {}
  3991. }, { "style": { "height": "36px" } }).form; //創建窗體
  3992. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/CaseDesignS.png)" }, "name": "項目進展", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3993. break;
  3994. case "tcStudent": //騰訊學生管理
  3995. _formdiv = new U.UF.UI.form(
  3996. "學生管理",
  3997. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcStudent?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3998. "id": "tcStudent",
  3999. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4000. "onresize": function() {}
  4001. }, {
  4002. closecallback: function() {}
  4003. }, { "style": { "height": "36px" } }).form; //創建窗體
  4004. _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); } }
  4005. break;
  4006. case "tcSchool": //騰訊學校管理
  4007. _formdiv = new U.UF.UI.form(
  4008. "學校管理",
  4009. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcSchool?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4010. "id": "tcSchool",
  4011. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4012. "onresize": function() {}
  4013. }, {
  4014. closecallback: function() {}
  4015. }, { "style": { "height": "36px" } }).form; //創建窗體
  4016. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/school.png)" }, "name": "學校管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  4017. break;
  4018. case "tcTeacher": //騰訊學校管理
  4019. _formdiv = new U.UF.UI.form(
  4020. "教師管理",
  4021. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcTeacher?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4022. "id": "tcTeacher",
  4023. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4024. "onresize": function() {}
  4025. }, {
  4026. closecallback: function() {}
  4027. }, { "style": { "height": "36px" } }).form; //創建窗體
  4028. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/teacher.png)" }, "name": "教師管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  4029. break;
  4030. case "tcData": //騰訊我的資料
  4031. _formdiv = new U.UF.UI.form(
  4032. "我的資料",
  4033. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcData?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4034. "id": "tcData",
  4035. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  4036. "onresize": function() {}
  4037. }, {
  4038. closecallback: function() {}
  4039. }, { "style": { "height": "36px" } }).form; //創建窗體
  4040. _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); } }
  4041. break;
  4042. case "tcNotice": //騰訊消息通知
  4043. _formdiv = new U.UF.UI.form(
  4044. "消息通知",
  4045. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcNotice?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4046. "id": "tcNotice",
  4047. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4048. "onresize": function() {}
  4049. }, {
  4050. closecallback: function() {}
  4051. }, { "style": { "height": "36px" } }).form; //創建窗體
  4052. _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); } }
  4053. break;
  4054. case "myReport": //好友打開
  4055. _formdiv = new U.UF.UI.form(
  4056. "我的評價",
  4057. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/myReport?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&classid=" + _classId }), {
  4058. "id": "myReport",
  4059. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4060. "onresize": function() {}
  4061. }, {
  4062. closecallback: function() {}
  4063. }, { "style": { "height": "36px" } }).form; //創建窗體
  4064. _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); } }
  4065. break;
  4066. case "learnAna": //好友打開
  4067. _formdiv = new U.UF.UI.form(
  4068. "學習分析",
  4069. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/learnAna?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  4070. "id": "learnAna",
  4071. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4072. "onresize": function() {}
  4073. }, {
  4074. closecallback: function() {}
  4075. }, { "style": { "height": "36px" } }).form; //創建窗體
  4076. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/learnAna.png)" }, "name": "學習分析", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  4077. break;
  4078. case "AIChat": //AI共創
  4079. _formdiv = new U.UF.UI.form(
  4080. "AI共創",
  4081. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/aichat/" }), {
  4082. "id": "AIChat",
  4083. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  4084. "onresize": function () { }
  4085. }, {
  4086. istop: true,
  4087. closecallback: function () { $("#aichat_icon").remove(); },
  4088. narrowcallback: function () {
  4089. if (!$("#aichat_icon")[0]) {
  4090. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  4091. }
  4092. },
  4093. }, { "style": { "height": "36px" } }).form; //創建窗體
  4094. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI共創", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4095. break;
  4096. case "ainew": //AI共創
  4097. _formdiv = new U.UF.UI.form(
  4098. "AI協同",
  4099. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ainew/" }), {
  4100. "id": "ainew",
  4101. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4102. "onresize": function () { }
  4103. }, {
  4104. closecallback: function () { }
  4105. }, { "style": { "height": "36px" } }).form; //創建窗體
  4106. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI協同", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4107. break;
  4108. case "futureClass": //AI共創
  4109. _formdiv = new U.UF.UI.form(
  4110. "協同建構",
  4111. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/synergyCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {//https://cscl.cocorobo.cn
  4112. "id": "synergyCourse",
  4113. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4114. "onresize": function() {}
  4115. }, {
  4116. closecallback: function() {}
  4117. }, { "style": { "height": "36px" } }).form; //創建窗體
  4118. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/futureClass.png)" }, "name": "協同建構", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  4119. break;
  4120. case "dataBoard": //數據看板
  4121. _formdiv = new U.UF.UI.form(
  4122. "數據看板",
  4123. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataBoard?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4124. "id": "dataBoard",
  4125. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4126. "onresize": function() {}
  4127. }, {
  4128. closecallback: function() {}
  4129. }, { "style": { "height": "36px" } }).form; //創建窗體
  4130. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/dataBoard.png)" }, "name": "數據看板", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  4131. break;
  4132. case "AIAnalyse": //AI共創
  4133. _formdiv = new U.UF.UI.form(
  4134. "AI分析",
  4135. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ai/" }), {
  4136. "id": "AIAnalyse",
  4137. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4138. "onresize": function () { }
  4139. }, {
  4140. closecallback: function () { }
  4141. }, { "style": { "height": "36px" } }).form; //創建窗體
  4142. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4143. break;
  4144. case "studioCourse": //AI共創
  4145. _formdiv = new U.UF.UI.form(
  4146. "工作管理",
  4147. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studioCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4148. "id": "studioCourse",
  4149. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4150. "onresize": function() {}
  4151. }, {
  4152. closecallback: function() {}
  4153. }, { "style": { "height": "36px" } }).form; //創建窗體
  4154. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioCourse.png)" }, "name": "工作管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  4155. break;
  4156. case "studioIndex": //AI共創
  4157. _formdiv = new U.UF.UI.form(
  4158. "工作中心",
  4159. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studioIndex?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType + "&role=" + _role }), {
  4160. "id": "studioIndex",
  4161. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4162. "onresize": function() {}
  4163. }, {
  4164. closecallback: function() {}
  4165. }, { "style": { "height": "36px" } }).form; //創建窗體
  4166. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioIndex.png)" }, "name": "工作中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  4167. break;
  4168. case "source":
  4169. _formdiv = new U.UF.UI.form(
  4170. "教學資源",
  4171. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/teacherSource?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4172. "id": "source",
  4173. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4174. "onresize": function () { }
  4175. }, {
  4176. closecallback: function () { }
  4177. }, { "style": { "height": "36px" } }).form; //創建窗體
  4178. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/source.png)" }, "name": "教學資源", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4179. break;
  4180. }
  4181. //U.MD.D.I.openClick(str);
  4182. //如果有任務欄信息
  4183. if (_taskbar) {
  4184. U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4185. }
  4186. }
  4187. // U.MD.D.I.openClick = function(str){
  4188. // var click = '';
  4189. // switch(str){
  4190. // case 'friend':
  4191. // click = '我的好友';
  4192. // break;
  4193. // case 'domain':
  4194. // click = '域名管理';
  4195. // break;
  4196. // case 'disk':
  4197. // click = '我的雲盤';
  4198. // break;
  4199. // case 'word':
  4200. // click = 'Word';
  4201. // break;
  4202. // case 'excel':
  4203. // click = 'Execl';
  4204. // break;
  4205. // case 'txt':
  4206. // click = '文本文件';
  4207. // break;
  4208. // case 'lookupFriend':
  4209. // click = '查找好友';
  4210. // break;
  4211. // case 'ftp':
  4212. // click = 'FTP';
  4213. // break;
  4214. // case 'group':
  4215. // click = '群組';
  4216. // break;
  4217. // case 'set':
  4218. // click = '我的設置';
  4219. // break;
  4220. // case 'systemSet':
  4221. // click = '系統設置';
  4222. // break;
  4223. // case 'boomYun':
  4224. // click = '互聯辦公';
  4225. // break;
  4226. // case 'xz':
  4227. // click = '雲端下載';
  4228. // break;
  4229. // case 'client':
  4230. // click = '有思瀏覽器';
  4231. // break;
  4232. // case 'backEndProgramming':
  4233. // click = '在線後臺編程';
  4234. // break;
  4235. // case 'frontEndProgramming':
  4236. // click = '在線前端編程';
  4237. // break;
  4238. // default: break;
  4239. // }
  4240. // if(U.MD.D.I.Ip && click){
  4241. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  4242. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  4243. // })
  4244. // }
  4245. // }
  4246. /**
  4247. *函數作用:ajax簡易函數,使用post格式
  4248. *@param url {data} 後臺地址
  4249. *@param data {data} 參數json
  4250. *@param fn {data} 回調函數
  4251. *
  4252. */
  4253. // U.MD.D.I.Mysqlrequest = function(url,fn){
  4254. // var xhr = new XMLHttpRequest();
  4255. // xhr.open("GET",url,true);
  4256. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  4257. // xhr.onreadystatechange = function(){
  4258. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  4259. // fn.call(this,xhr.responseText);
  4260. // }
  4261. // };
  4262. // xhr.send();
  4263. // }
  4264. /*判斷是否是內網IP*/
  4265. // U.MD.D.I.isInnerIPFn = function(str){
  4266. // var curPageUrl = str;
  4267. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前綴
  4268. // curPageUrl =curPageUrl.replace(reg1,'');
  4269. // // console.log('curPageUrl-1 '+curPageUrl);
  4270. // var reg2 = /\:+/g;//替換冒號為一點
  4271. // curPageUrl =curPageUrl.replace(reg2,'.');
  4272. // // console.log('curPageUrl-2 '+curPageUrl);
  4273. // curPageUrl = curPageUrl.split('.');//通過一點來劃分數組
  4274. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  4275. // if(curPageUrl[2] != '16'){
  4276. // return ipAddress;
  4277. // }else{
  4278. // return false;
  4279. // }
  4280. // }
  4281. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  4282. // //compatibility for firefox and chrome
  4283. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  4284. // var pc = new myPeerConnection({
  4285. // iceServers: []
  4286. // }),
  4287. // noop = function() {},
  4288. // localIPs = {},
  4289. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  4290. // key;
  4291. // function iterateIP(ip) {
  4292. // if (!localIPs[ip]) onNewIP(ip);
  4293. // localIPs[ip] = true;
  4294. // }
  4295. // //create a bogus data channel
  4296. // pc.createDataChannel("");
  4297. // // create offer and set local description
  4298. // pc.createOffer().then(function(sdp) {
  4299. // sdp.sdp.split('\n').forEach(function(line) {
  4300. // if (line.indexOf('candidate') < 0) return;
  4301. // line.match(ipRegex).forEach(iterateIP);
  4302. // });
  4303. // pc.setLocalDescription(sdp, noop, noop);
  4304. // }).catch(function(reason) {
  4305. // // An error occurred, so handle the failure to connect
  4306. // });
  4307. // //sten for candidate events
  4308. // pc.onicecandidate = function(ice) {
  4309. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  4310. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  4311. // };
  4312. // }
  4313. // U.MD.D.I.getUserIpBool = function(callback){
  4314. // U.MD.D.I.getUserIP(function(ip){
  4315. // alert("Got IP! :" + ip);
  4316. // });
  4317. //}
  4318. //#endregion
  4319. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  4320. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4321. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4322. _userinfo = US.userInfo, //登錄用戶信息
  4323. _userid = US.userInfo.userid //登錄用戶id
  4324. let _iframe;
  4325. let _cid = cid,
  4326. _stage = stage,
  4327. _task = task,
  4328. _tool = tool;
  4329. var _jie = $$("div", {
  4330. "style": {
  4331. "position": "absolute",
  4332. "bottom": "50px",
  4333. "right": "50px",
  4334. "zIndex": "9999",
  4335. "backgroundColor": "#2268bc",
  4336. "color": "#fff",
  4337. "padding": "12px 20px",
  4338. "cursor": "pointer",
  4339. "borderRadius": "4px",
  4340. },
  4341. "innerHTML": "提交作業"
  4342. })
  4343. let aTool = ''
  4344. let _loading = document.createElement('div')
  4345. _loading.style = "width:100%;height:100%;background:#00000000;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
  4346. // _loading.id = "";
  4347. let _lchild = document.createElement('div')
  4348. let _limg = document.createElement('img')
  4349. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4350. _limg.style = "width: 26px;margin-right: 10px;"
  4351. _lchild.appendChild(_limg)
  4352. let _lspan = document.createElement('span')
  4353. _lspan.innerHTML = "上傳中..."
  4354. _lchild.appendChild(_lspan)
  4355. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  4356. _loading.appendChild(_lchild)
  4357. var _box = $$('div', {
  4358. "style": {
  4359. "position": "relative",
  4360. "width": "100%",
  4361. "height": "100%",
  4362. },
  4363. })
  4364. _box.appendChild(_loading)
  4365. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool + _userid
  4366. switch (str) {
  4367. case "whiteboard":
  4368. aTool = 1;
  4369. _iframe = $$("iframe", {
  4370. "frameborder": "no",
  4371. "border": "0",
  4372. "scrolling ": "no",
  4373. "style": {
  4374. "cssText": "border:0;width:100%;height:100%"
  4375. },
  4376. "src": "https://iwb.cocorobo.hk/"
  4377. })
  4378. _box.appendChild(_iframe);
  4379. _box.appendChild(_jie);
  4380. _formdiv = new U.UF.UI.form(
  4381. "電子白板",
  4382. _box, {
  4383. "id": "whiteboard" + cid + stage + task + tool,
  4384. "style": {
  4385. "width": "90%",
  4386. "height": "90%",
  4387. "overflow": 'hidden'
  4388. },
  4389. "onresize": function () { }
  4390. }, {
  4391. closecallback: function () { }
  4392. }, {
  4393. "style": {
  4394. "height": "36px"
  4395. }
  4396. }).form; //創建窗體
  4397. _taskbar = {
  4398. "id": str + _formdiv.id,
  4399. "style": {
  4400. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4401. },
  4402. "name": "電子白板",
  4403. "forms": _formdiv,
  4404. "click": function() {
  4405. U.MD.D.I.openApplication(str, obj, info);
  4406. }
  4407. }
  4408. break;
  4409. case "mind":
  4410. aTool = 3;
  4411. _iframe = $$("iframe", {
  4412. "frameborder": "no",
  4413. "border": "0",
  4414. "scrolling ": "no",
  4415. "style": {
  4416. "cssText": "border:0;width:100%;height:100%"
  4417. },
  4418. "src": "/kityminder-editor/dist/index.html"
  4419. })
  4420. _box.appendChild(_iframe);
  4421. _box.appendChild(_jie);
  4422. _formdiv = new U.UF.UI.form(
  4423. "思維導圖",
  4424. _box, { //"/jsmind/example/demo.html"
  4425. "id": "mind" + cid + stage + task + tool,
  4426. "style": {
  4427. "width": "90%",
  4428. "height": "90%",
  4429. "overflow": 'hidden'
  4430. },
  4431. "onresize": function () { }
  4432. }, {
  4433. closecallback: function () { }
  4434. }, {
  4435. "style": {
  4436. "height": "36px"
  4437. }
  4438. }).form; //創建窗體
  4439. _taskbar = {
  4440. "id": str + _formdiv.id,
  4441. "style": {
  4442. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4443. },
  4444. "name": "思維導圖",
  4445. "forms": _formdiv,
  4446. "click": function() {
  4447. U.MD.D.I.openApplication(str, obj, info);
  4448. }
  4449. }
  4450. break;
  4451. case "MindMap":
  4452. aTool = 3;
  4453. _iframe = $$("iframe", {
  4454. "frameborder": "no",
  4455. "border": "0",
  4456. "scrolling ": "no",
  4457. "style": {
  4458. "cssText": "border:0;width:100%;height:100%"
  4459. },
  4460. "src": "//cloud.cocorobo.hk/mind/"
  4461. })
  4462. _box.appendChild(_iframe);
  4463. _box.appendChild(_jie);
  4464. _formdiv = new U.UF.UI.form(
  4465. "思維導圖",
  4466. _box, { //"/jsmind/example/demo.html"
  4467. "id": "mind" + cid + stage + task + tool,
  4468. "style": {
  4469. "width": "90%",
  4470. "height": "90%",
  4471. "overflow": 'hidden'
  4472. },
  4473. "onresize": function () { }
  4474. }, {
  4475. closecallback: function () { }
  4476. }, {
  4477. "style": {
  4478. "height": "36px"
  4479. }
  4480. }).form; //創建窗體
  4481. _taskbar = {
  4482. "id": str + _formdiv.id,
  4483. "style": {
  4484. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4485. },
  4486. "name": "思維導圖",
  4487. "forms": _formdiv,
  4488. "click": function() {
  4489. U.MD.D.I.openApplication(str, obj, info);
  4490. }
  4491. }
  4492. break;
  4493. case "doc":
  4494. aTool = 6;
  4495. _iframe = $$("iframe", {
  4496. "frameborder": "no",
  4497. "border": "0",
  4498. "scrolling ": "no",
  4499. "style": {
  4500. "cssText": "border:0;width:100%;height:100%"
  4501. },
  4502. "src": "/Office/Word/WordEditArea.htm"
  4503. })
  4504. _box.appendChild(_iframe);
  4505. _box.appendChild(_jie);
  4506. _formdiv = new U.UF.UI.form(
  4507. "協同文檔",
  4508. _box, {
  4509. "id": "doc" + cid + stage + task + tool,
  4510. "style": {
  4511. "width": "90%",
  4512. "height": "90%",
  4513. "overflow": 'hidden'
  4514. },
  4515. "onresize": function () { }
  4516. }, {
  4517. closecallback: function () { }
  4518. }, {
  4519. "style": {
  4520. "height": "36px"
  4521. }
  4522. }).form; //創建窗體
  4523. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  4524. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4525. })
  4526. _taskbar = {
  4527. "id": str + _formdiv.id,
  4528. "style": {
  4529. "backgroundImage": "url(/img/icon/doc.png)"
  4530. },
  4531. "name": "協同文檔",
  4532. "forms": _formdiv,
  4533. "click": function() {
  4534. U.MD.D.I.openApplication(str, obj, info);
  4535. }
  4536. }
  4537. break;
  4538. case "mindNetwork": //好友打開
  4539. aTool = 7;
  4540. _iframe = $$("iframe", {
  4541. "webkitallowfullscreen": "",
  4542. "mozallowfullscreen": "",
  4543. "allowfullscreen": "",
  4544. "frameborder": "no",
  4545. "border": "0",
  4546. "scrolling ": "no",
  4547. "style": {
  4548. "cssText": "border:0; width:100%; height:100%;"
  4549. },
  4550. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4551. })
  4552. _box.appendChild(_iframe);
  4553. _box.appendChild(_jie);
  4554. _formdiv = new U.UF.UI.form(
  4555. "思維網格",
  4556. _box, {
  4557. "id": "mindNetwork" + cid + stage + task + tool,
  4558. "style": {
  4559. "width": "90%",
  4560. "height": "90%",
  4561. "overflow": 'hidden'
  4562. },
  4563. "onresize": function () { }
  4564. }, {
  4565. closecallback: function () { }
  4566. }, {
  4567. "style": {
  4568. "height": "36px"
  4569. }
  4570. }).form; //創建窗體
  4571. _taskbar = {
  4572. "id": str + _formdiv.id,
  4573. "style": {
  4574. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4575. },
  4576. "name": "思維網格",
  4577. "forms": _formdiv,
  4578. "click": function() {
  4579. U.MD.D.I.openApplication(str, obj, info);
  4580. }
  4581. }
  4582. break;
  4583. case "courseDesign":
  4584. _iframe = $$("iframe", {
  4585. "webkitallowfullscreen": "",
  4586. "mozallowfullscreen": "",
  4587. "allowfullscreen": "",
  4588. "frameborder": "no",
  4589. "border": "0",
  4590. "scrolling ": "no",
  4591. "style": {
  4592. "cssText": "border:0; width:100%; height:100%;"
  4593. },
  4594. "src": "/course-design-vue"
  4595. })
  4596. _box.appendChild(_iframe);
  4597. _box.appendChild(_jie);
  4598. _formdiv = new U.UF.UI.form(
  4599. "項目設計",
  4600. _box, {
  4601. "id": "courseDesign" + cid + stage + task + tool,
  4602. "style": {
  4603. "width": "90%",
  4604. "height": "90%",
  4605. "overflow": 'hidden'
  4606. },
  4607. "onresize": function () { }
  4608. }, {
  4609. closecallback: function () { }
  4610. }, {
  4611. "style": {
  4612. "height": "36px"
  4613. }
  4614. }).form; //創建窗體
  4615. _taskbar = {
  4616. "id": str + _formdiv.id,
  4617. "style": {
  4618. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4619. },
  4620. "name": "項目設計",
  4621. "forms": _formdiv,
  4622. "click": function() {
  4623. U.MD.D.I.openApplication(str, obj, info);
  4624. }
  4625. }
  4626. break;
  4627. }
  4628. const script1 = document.createElement("script");
  4629. script1.type = "text/javascript";
  4630. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4631. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  4632. const script2 = document.createElement("script");
  4633. script2.type = "text/javascript";
  4634. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4635. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  4636. const script3 = document.createElement("script");
  4637. script3.type = "text/javascript";
  4638. script3.charset = "UTF-8";
  4639. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  4640. const script4 = document.createElement("script");
  4641. script4.type = "text/javascript";
  4642. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4643. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  4644. if (_iframe) {
  4645. if (str == 'doc') {
  4646. _iframe = _formdiv.querySelector('iframe')
  4647. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4648. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4649. _iframe.contentWindow.document.body.appendChild(script1);
  4650. _iframe.contentWindow.document.body.appendChild(script2);
  4651. // _iframe.contentWindow.document.body.appendChild(script3);
  4652. _iframe.contentWindow.document.body.appendChild(script4);
  4653. })
  4654. if (onloadListener) {
  4655. _iframe.contentDocument.location.reload()
  4656. } else {
  4657. _iframe.contentDocument.location.reload()
  4658. }
  4659. } else if (str == 'courseDesign') {
  4660. U.UF.DL.iframeLoad(_iframe, function() {
  4661. // _iframe.contentWindow.U.MD.O.W.load();
  4662. // _iframe.contentWindow.document.body.appendChild(script1);
  4663. _iframe.contentWindow.document.body.appendChild(script2);
  4664. _iframe.contentWindow.document.body.appendChild(script4);
  4665. })
  4666. } else if (str == 'mind') {
  4667. _iframe = _formdiv.querySelector('iframe')
  4668. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4669. //
  4670. _iframe.contentWindow.document.body.appendChild(script1);
  4671. _iframe.contentWindow.document.body.appendChild(script2);
  4672. _iframe.contentWindow.document.body.appendChild(script4);
  4673. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4674. })
  4675. if (onloadListener) {
  4676. _iframe.contentDocument.location.reload()
  4677. } else {
  4678. _iframe.contentDocument.location.reload()
  4679. }
  4680. } else if (str == 'whiteboard') {
  4681. _iframe = _formdiv.querySelector('iframe')
  4682. let onloadListener = _iframe.onload = () => {
  4683. _iframe.contentWindow.document.body.appendChild(script1);
  4684. _iframe.contentWindow.document.body.appendChild(script2);
  4685. _iframe.contentWindow.document.body.appendChild(script4);
  4686. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4687. };
  4688. if (onloadListener) {
  4689. _iframe.contentDocument.location.reload()
  4690. } else {
  4691. _iframe.contentDocument.location.reload()
  4692. }
  4693. } else {
  4694. _iframe.onload = () => {
  4695. _iframe.contentWindow.document.body.appendChild(script1);
  4696. _iframe.contentWindow.document.body.appendChild(script2);
  4697. // _iframe.contentWindow.document.body.appendChild(script3);
  4698. _iframe.contentWindow.document.body.appendChild(script4);
  4699. };
  4700. }
  4701. _jie.onclick = async() => {
  4702. let text = ''
  4703. if (aTool == 1) {
  4704. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4705. } else if (aTool == 6) {
  4706. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4707. } else if (aTool == 3) {
  4708. text = await U.MD.D.I.getEditorContent(_iframe);
  4709. }
  4710. _loading.style.display = 'flex'
  4711. console.log(_loading);
  4712. var _ajs = _iframe.contentWindow.document.createElement("script");
  4713. _ajs.type = "text/javascript";
  4714. _ajs.innerHTML =
  4715. // 'console.log(' + _loading + ');\n' +
  4716. 'var _js = document.createElement("script");\n' +
  4717. '_js.type="text/javascript";\n' +
  4718. '_js.charset="UTF-8";\n' +
  4719. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  4720. "_js.onload = function(){\n" +
  4721. ' var a = document.getElementsByTagName("img")\n' +
  4722. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4723. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4724. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4725. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4726. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  4727. "beforeUpload_shishi(file," +
  4728. "'" +
  4729. _userid +
  4730. "'" +
  4731. ", " +
  4732. "'" +
  4733. _cid +
  4734. "'" +
  4735. ", " +
  4736. "'" +
  4737. _stage +
  4738. "'" +
  4739. ", " +
  4740. "'" +
  4741. _task +
  4742. "'" +
  4743. ", " +
  4744. "'" +
  4745. _tool +
  4746. "'" +
  4747. ", " +
  4748. "'" +
  4749. (str + '_loadLi_Jie' + cid + stage + task + tool + _userid) +
  4750. "'" +
  4751. ", " +
  4752. "'" +
  4753. aTool +
  4754. "'" +
  4755. ", " +
  4756. "`" +
  4757. text +
  4758. "`" +
  4759. ")\n" +
  4760. " });\n" +
  4761. "}\n" +
  4762. "document.head.appendChild(_js);\n";
  4763. _iframe.contentWindow.document.head.appendChild(_ajs);
  4764. }
  4765. }
  4766. //U.MD.D.I.openClick(str);
  4767. //如果有任務欄信息
  4768. // if (_taskbar) {
  4769. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4770. // }
  4771. }
  4772. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4773. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4774. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4775. _userinfo = US.userInfo, //登錄用戶信息
  4776. _userid = US.userInfo.userid //登錄用戶id
  4777. let _iframe;
  4778. let _cid = cid,
  4779. _stage = stage,
  4780. _task = task,
  4781. _tool = tool;
  4782. var _jie = $$("div", {
  4783. "style": {
  4784. "position": "absolute",
  4785. "bottom": "50px",
  4786. "right": "50px",
  4787. "zIndex": "9999",
  4788. "backgroundColor": "#2268bc",
  4789. "color": "#fff",
  4790. "padding": "12px 20px",
  4791. "cursor": "pointer",
  4792. "borderRadius": "4px",
  4793. },
  4794. "innerHTML": "提交作業"
  4795. })
  4796. let aTool = ''
  4797. let _loading = document.createElement('div')
  4798. _loading.style = "width:100%;height:100%;background:#00000000;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
  4799. // _loading.id = "";
  4800. let _lchild = document.createElement('div')
  4801. let _limg = document.createElement('img')
  4802. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4803. _limg.style = "width: 26px;margin-right: 10px;"
  4804. _lchild.appendChild(_limg)
  4805. let _lspan = document.createElement('span')
  4806. _lspan.innerHTML = "上傳中..."
  4807. _lchild.appendChild(_lspan)
  4808. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  4809. _loading.appendChild(_lchild)
  4810. var _box = $$('div', {
  4811. "style": {
  4812. "position": "relative",
  4813. "width": "100%",
  4814. "height": "100%",
  4815. },
  4816. })
  4817. _box.appendChild(_loading)
  4818. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool + _userid
  4819. switch (str) {
  4820. case "whiteboard":
  4821. aTool = 1;
  4822. _iframe = $$("iframe", {
  4823. "frameborder": "no",
  4824. "border": "0",
  4825. "scrolling ": "no",
  4826. "style": {
  4827. "cssText": "border:0;width:100%;height:100%"
  4828. },
  4829. "src": "https://iwb.cocorobo.hk/"
  4830. })
  4831. _box.appendChild(_iframe);
  4832. _box.appendChild(_jie);
  4833. _formdiv = new U.UF.UI.form(
  4834. "電子白板",
  4835. _box, {
  4836. "id": "whiteboard" + cid + stage + task + tool,
  4837. "style": {
  4838. "width": "90%",
  4839. "height": "90%",
  4840. "overflow": 'hidden'
  4841. },
  4842. "onresize": function () { }
  4843. }, {
  4844. closecallback: function () { }
  4845. }, {
  4846. "style": {
  4847. "height": "36px"
  4848. }
  4849. }).form; //創建窗體
  4850. _taskbar = {
  4851. "id": str + _formdiv.id,
  4852. "style": {
  4853. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4854. },
  4855. "name": "電子白板",
  4856. "forms": _formdiv,
  4857. "click": function() {
  4858. U.MD.D.I.openApplication(str, obj, info);
  4859. }
  4860. }
  4861. break;
  4862. case "mind":
  4863. aTool = 3;
  4864. _iframe = $$("iframe", {
  4865. "frameborder": "no",
  4866. "border": "0",
  4867. "scrolling ": "no",
  4868. "style": {
  4869. "cssText": "border:0;width:100%;height:100%"
  4870. },
  4871. "src": "/kityminder-editor/dist/index.html"
  4872. })
  4873. _box.appendChild(_iframe);
  4874. _box.appendChild(_jie);
  4875. _formdiv = new U.UF.UI.form(
  4876. "思維導圖",
  4877. _box, { //"/jsmind/example/demo.html"
  4878. "id": "mind" + cid + stage + task + tool,
  4879. "style": {
  4880. "width": "90%",
  4881. "height": "90%",
  4882. "overflow": 'hidden'
  4883. },
  4884. "onresize": function () { }
  4885. }, {
  4886. closecallback: function () { }
  4887. }, {
  4888. "style": {
  4889. "height": "36px"
  4890. }
  4891. }).form; //創建窗體
  4892. _taskbar = {
  4893. "id": str + _formdiv.id,
  4894. "style": {
  4895. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4896. },
  4897. "name": "思維導圖",
  4898. "forms": _formdiv,
  4899. "click": function() {
  4900. U.MD.D.I.openApplication(str, obj, info);
  4901. }
  4902. }
  4903. break;
  4904. case "MindMap":
  4905. aTool = 3;
  4906. _iframe = $$("iframe", {
  4907. "frameborder": "no",
  4908. "border": "0",
  4909. "scrolling ": "no",
  4910. "style": {
  4911. "cssText": "border:0;width:100%;height:100%"
  4912. },
  4913. "src": "//cloud.cocorobo.hk/mind/"
  4914. })
  4915. _box.appendChild(_iframe);
  4916. _box.appendChild(_jie);
  4917. _formdiv = new U.UF.UI.form(
  4918. "思維導圖",
  4919. _box, { //"/jsmind/example/demo.html"
  4920. "id": "mind" + cid + stage + task + tool,
  4921. "style": {
  4922. "width": "90%",
  4923. "height": "90%",
  4924. "overflow": 'hidden'
  4925. },
  4926. "onresize": function () { }
  4927. }, {
  4928. closecallback: function () { }
  4929. }, {
  4930. "style": {
  4931. "height": "36px"
  4932. }
  4933. }).form; //創建窗體
  4934. _taskbar = {
  4935. "id": str + _formdiv.id,
  4936. "style": {
  4937. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4938. },
  4939. "name": "思維導圖",
  4940. "forms": _formdiv,
  4941. "click": function() {
  4942. U.MD.D.I.openApplication(str, obj, info);
  4943. }
  4944. }
  4945. break;
  4946. case "doc":
  4947. aTool = 6;
  4948. _iframe = $$("iframe", {
  4949. "frameborder": "no",
  4950. "border": "0",
  4951. "scrolling ": "no",
  4952. "style": {
  4953. "cssText": "border:0;width:100%;height:100%"
  4954. },
  4955. "src": "/Office/Word/WordEditArea.htm"
  4956. })
  4957. _box.appendChild(_iframe);
  4958. _box.appendChild(_jie);
  4959. _formdiv = new U.UF.UI.form(
  4960. "協同文檔",
  4961. _box, {
  4962. "id": "doc" + cid + stage + task + tool,
  4963. "style": {
  4964. "width": "90%",
  4965. "height": "90%",
  4966. "overflow": 'hidden'
  4967. },
  4968. "onresize": function () { }
  4969. }, {
  4970. closecallback: function () { }
  4971. }, {
  4972. "style": {
  4973. "height": "36px"
  4974. }
  4975. }).form; //創建窗體
  4976. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  4977. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4978. })
  4979. _taskbar = {
  4980. "id": str + _formdiv.id,
  4981. "style": {
  4982. "backgroundImage": "url(/img/icon/doc.png)"
  4983. },
  4984. "name": "協同文檔",
  4985. "forms": _formdiv,
  4986. "click": function() {
  4987. U.MD.D.I.openApplication(str, obj, info);
  4988. }
  4989. }
  4990. break;
  4991. case "mindNetwork": //好友打開
  4992. aTool = 7;
  4993. _iframe = $$("iframe", {
  4994. "webkitallowfullscreen": "",
  4995. "mozallowfullscreen": "",
  4996. "allowfullscreen": "",
  4997. "frameborder": "no",
  4998. "border": "0",
  4999. "scrolling ": "no",
  5000. "style": {
  5001. "cssText": "border:0; width:100%; height:100%;"
  5002. },
  5003. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5004. })
  5005. _box.appendChild(_iframe);
  5006. _box.appendChild(_jie);
  5007. _formdiv = new U.UF.UI.form(
  5008. "思維網格",
  5009. _box, {
  5010. "id": "mindNetwork" + cid + stage + task + tool,
  5011. "style": {
  5012. "width": "90%",
  5013. "height": "90%",
  5014. "overflow": 'hidden'
  5015. },
  5016. "onresize": function () { }
  5017. }, {
  5018. closecallback: function () { }
  5019. }, {
  5020. "style": {
  5021. "height": "36px"
  5022. }
  5023. }).form; //創建窗體
  5024. _taskbar = {
  5025. "id": str + _formdiv.id,
  5026. "style": {
  5027. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5028. },
  5029. "name": "思維網格",
  5030. "forms": _formdiv,
  5031. "click": function() {
  5032. U.MD.D.I.openApplication(str, obj, info);
  5033. }
  5034. }
  5035. break;
  5036. case "courseDesign":
  5037. _iframe = $$("iframe", {
  5038. "webkitallowfullscreen": "",
  5039. "mozallowfullscreen": "",
  5040. "allowfullscreen": "",
  5041. "frameborder": "no",
  5042. "border": "0",
  5043. "scrolling ": "no",
  5044. "style": {
  5045. "cssText": "border:0; width:100%; height:100%;"
  5046. },
  5047. "src": "/course-design-vue"
  5048. })
  5049. _box.appendChild(_iframe);
  5050. _box.appendChild(_jie);
  5051. _formdiv = new U.UF.UI.form(
  5052. "項目設計",
  5053. _box, {
  5054. "id": "courseDesign" + cid + stage + task + tool,
  5055. "style": {
  5056. "width": "90%",
  5057. "height": "90%",
  5058. "overflow": 'hidden'
  5059. },
  5060. "onresize": function () { }
  5061. }, {
  5062. closecallback: function () { }
  5063. }, {
  5064. "style": {
  5065. "height": "36px"
  5066. }
  5067. }).form; //創建窗體
  5068. _taskbar = {
  5069. "id": str + _formdiv.id,
  5070. "style": {
  5071. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5072. },
  5073. "name": "項目設計",
  5074. "forms": _formdiv,
  5075. "click": function() {
  5076. U.MD.D.I.openApplication(str, obj, info);
  5077. }
  5078. }
  5079. break;
  5080. }
  5081. const script1 = document.createElement("script");
  5082. script1.type = "text/javascript";
  5083. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5084. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5085. const script2 = document.createElement("script");
  5086. script2.type = "text/javascript";
  5087. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5088. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5089. const script3 = document.createElement("script");
  5090. script3.type = "text/javascript";
  5091. script3.charset = "UTF-8";
  5092. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5093. const script4 = document.createElement("script");
  5094. script4.type = "text/javascript";
  5095. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5096. script4.src = window.origin + "/js/Common/jietu2E.js";
  5097. if (_iframe) {
  5098. if (str == 'doc') {
  5099. _iframe = _formdiv.querySelector('iframe')
  5100. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5101. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5102. _iframe.contentWindow.document.body.appendChild(script1);
  5103. _iframe.contentWindow.document.body.appendChild(script2);
  5104. // _iframe.contentWindow.document.body.appendChild(script3);
  5105. _iframe.contentWindow.document.body.appendChild(script4);
  5106. })
  5107. if (onloadListener) {
  5108. _iframe.contentDocument.location.reload()
  5109. } else {
  5110. _iframe.contentDocument.location.reload()
  5111. }
  5112. } else if (str == 'courseDesign') {
  5113. U.UF.DL.iframeLoad(_iframe, function() {
  5114. // _iframe.contentWindow.U.MD.O.W.load();
  5115. // _iframe.contentWindow.document.body.appendChild(script1);
  5116. _iframe.contentWindow.document.body.appendChild(script2);
  5117. _iframe.contentWindow.document.body.appendChild(script4);
  5118. })
  5119. } else if (str == 'mind') {
  5120. _iframe = _formdiv.querySelector('iframe')
  5121. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5122. //
  5123. _iframe.contentWindow.document.body.appendChild(script1);
  5124. _iframe.contentWindow.document.body.appendChild(script2);
  5125. _iframe.contentWindow.document.body.appendChild(script4);
  5126. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5127. })
  5128. if (onloadListener) {
  5129. _iframe.contentDocument.location.reload()
  5130. } else {
  5131. _iframe.contentDocument.location.reload()
  5132. }
  5133. } else if (str == 'whiteboard') {
  5134. _iframe = _formdiv.querySelector('iframe')
  5135. let onloadListener = _iframe.onload = () => {
  5136. _iframe.contentWindow.document.body.appendChild(script1);
  5137. _iframe.contentWindow.document.body.appendChild(script2);
  5138. _iframe.contentWindow.document.body.appendChild(script4);
  5139. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5140. };
  5141. if (onloadListener) {
  5142. _iframe.contentDocument.location.reload()
  5143. } else {
  5144. _iframe.contentDocument.location.reload()
  5145. }
  5146. } else {
  5147. _iframe.onload = () => {
  5148. _iframe.contentWindow.document.body.appendChild(script1);
  5149. _iframe.contentWindow.document.body.appendChild(script2);
  5150. // _iframe.contentWindow.document.body.appendChild(script3);
  5151. _iframe.contentWindow.document.body.appendChild(script4);
  5152. };
  5153. }
  5154. _jie.onclick = async() => {
  5155. let text = ''
  5156. if (aTool == 1) {
  5157. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5158. } else if (aTool == 6) {
  5159. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5160. } else if (aTool == 3) {
  5161. text = await U.MD.D.I.getEditorContent(_iframe);
  5162. }
  5163. _loading.style.display = 'flex'
  5164. console.log(_loading);
  5165. var _ajs = _iframe.contentWindow.document.createElement("script");
  5166. _ajs.type = "text/javascript";
  5167. _ajs.innerHTML =
  5168. // 'console.log(' + _loading + ');\n' +
  5169. 'var _js = document.createElement("script");\n' +
  5170. '_js.type="text/javascript";\n' +
  5171. '_js.charset="UTF-8";\n' +
  5172. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5173. "_js.onload = function(){\n" +
  5174. ' var a = document.getElementsByTagName("img")\n' +
  5175. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5176. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5177. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5178. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5179. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5180. "beforeUpload_shishi(file," +
  5181. "'" +
  5182. _userid +
  5183. "'" +
  5184. ", " +
  5185. "'" +
  5186. _cid +
  5187. "'" +
  5188. ", " +
  5189. "'" +
  5190. _stage +
  5191. "'" +
  5192. ", " +
  5193. "'" +
  5194. _task +
  5195. "'" +
  5196. ", " +
  5197. "'" +
  5198. _tool +
  5199. "'" +
  5200. ", " +
  5201. "'" +
  5202. (str + '_loadLi_JieE' + cid + stage + task + tool + _userid) +
  5203. "'" +
  5204. ", " +
  5205. "'" +
  5206. aTool +
  5207. "'" +
  5208. ", " +
  5209. "`" +
  5210. text +
  5211. "`" +
  5212. ")\n" +
  5213. " });\n" +
  5214. "}\n" +
  5215. "document.head.appendChild(_js);\n";
  5216. _iframe.contentWindow.document.head.appendChild(_ajs);
  5217. }
  5218. }
  5219. //U.MD.D.I.openClick(str);
  5220. //如果有任務欄信息
  5221. // if (_taskbar) {
  5222. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  5223. // }
  5224. }
  5225. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  5226. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5227. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5228. _userid = student.userid, //登錄用戶id
  5229. _username = student.student //用戶名字
  5230. let _iframe;
  5231. let _cid = cid,
  5232. _stage = stage,
  5233. _task = task,
  5234. _tool = tool;
  5235. var _jie = $$("div", {
  5236. "style": {
  5237. "position": "absolute",
  5238. "bottom": "50px",
  5239. "right": "50px",
  5240. "zIndex": "9999",
  5241. "backgroundColor": "#2268bc",
  5242. "color": "#fff",
  5243. "padding": "12px 20px",
  5244. "cursor": "pointer",
  5245. "borderRadius": "4px",
  5246. },
  5247. "innerHTML": "提交作業"
  5248. })
  5249. let aTool = ''
  5250. let _loading = document.createElement('div')
  5251. _loading.style = "width:100%;height:100%;background:#00000000;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
  5252. // _loading.id = "";
  5253. let _lchild = document.createElement('div')
  5254. let _limg = document.createElement('img')
  5255. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5256. _limg.style = "width: 26px;margin-right: 10px;"
  5257. _lchild.appendChild(_limg)
  5258. let _lspan = document.createElement('span')
  5259. _lspan.innerHTML = "上傳中..."
  5260. _lchild.appendChild(_lspan)
  5261. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  5262. _loading.appendChild(_lchild)
  5263. var _box = $$('div', {
  5264. "style": {
  5265. "position": "relative",
  5266. "width": "100%",
  5267. "height": "100%",
  5268. },
  5269. })
  5270. _box.appendChild(_loading)
  5271. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid
  5272. switch (str) {
  5273. case "whiteboard":
  5274. aTool = 1;
  5275. _iframe = $$("iframe", {
  5276. "frameborder": "no",
  5277. "border": "0",
  5278. "scrolling ": "no",
  5279. "style": {
  5280. "cssText": "border:0;width:100%;height:100%"
  5281. },
  5282. "src": "https://iwb.cocorobo.hk/"
  5283. })
  5284. _box.appendChild(_iframe);
  5285. _box.appendChild(_jie);
  5286. _formdiv = new U.UF.UI.form(
  5287. "電子白板-" + _username,
  5288. _box, {
  5289. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5290. "style": {
  5291. "width": "90%",
  5292. "height": "90%",
  5293. "overflow": 'hidden'
  5294. },
  5295. "onresize": function () { }
  5296. }, {
  5297. closecallback: function () { }
  5298. }, {
  5299. "style": {
  5300. "height": "36px"
  5301. }
  5302. }).form; //創建窗體
  5303. _taskbar = {
  5304. "id": str + _formdiv.id,
  5305. "style": {
  5306. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5307. },
  5308. "name": "電子白板",
  5309. "forms": _formdiv,
  5310. "click": function() {
  5311. U.MD.D.I.openApplication(str, obj, info);
  5312. }
  5313. }
  5314. break;
  5315. case "mind":
  5316. aTool = 3;
  5317. _iframe = $$("iframe", {
  5318. "frameborder": "no",
  5319. "border": "0",
  5320. "scrolling ": "no",
  5321. "style": {
  5322. "cssText": "border:0;width:100%;height:100%"
  5323. },
  5324. "src": "/kityminder-editor/dist/index.html"
  5325. })
  5326. _box.appendChild(_iframe);
  5327. _box.appendChild(_jie);
  5328. _formdiv = new U.UF.UI.form(
  5329. "思維導圖-" + _username,
  5330. _box, { //"/jsmind/example/demo.html"
  5331. "id": "mind" + cid + stage + task + tool + _userid,
  5332. "style": {
  5333. "width": "90%",
  5334. "height": "90%",
  5335. "overflow": 'hidden'
  5336. },
  5337. "onresize": function () { }
  5338. }, {
  5339. closecallback: function () { }
  5340. }, {
  5341. "style": {
  5342. "height": "36px"
  5343. }
  5344. }).form; //創建窗體
  5345. _taskbar = {
  5346. "id": str + _formdiv.id,
  5347. "style": {
  5348. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5349. },
  5350. "name": "思維導圖",
  5351. "forms": _formdiv,
  5352. "click": function() {
  5353. U.MD.D.I.openApplication(str, obj, info);
  5354. }
  5355. }
  5356. break;
  5357. case "MindMap":
  5358. aTool = 3;
  5359. _iframe = $$("iframe", {
  5360. "frameborder": "no",
  5361. "border": "0",
  5362. "scrolling ": "no",
  5363. "style": {
  5364. "cssText": "border:0;width:100%;height:100%"
  5365. },
  5366. "src": "//cloud.cocorobo.hk/mind/"
  5367. })
  5368. _box.appendChild(_iframe);
  5369. _box.appendChild(_jie);
  5370. _formdiv = new U.UF.UI.form(
  5371. "思維導圖-" + _username,
  5372. _box, { //"/jsmind/example/demo.html"
  5373. "id": "mind" + cid + stage + task + tool + _userid,
  5374. "style": {
  5375. "width": "90%",
  5376. "height": "90%",
  5377. "overflow": 'hidden'
  5378. },
  5379. "onresize": function () { }
  5380. }, {
  5381. closecallback: function () { }
  5382. }, {
  5383. "style": {
  5384. "height": "36px"
  5385. }
  5386. }).form; //創建窗體
  5387. _taskbar = {
  5388. "id": str + _formdiv.id,
  5389. "style": {
  5390. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5391. },
  5392. "name": "思維導圖",
  5393. "forms": _formdiv,
  5394. "click": function() {
  5395. U.MD.D.I.openApplication(str, obj, info);
  5396. }
  5397. }
  5398. break;
  5399. case "doc":
  5400. aTool = 6;
  5401. _iframe = $$("iframe", {
  5402. "frameborder": "no",
  5403. "border": "0",
  5404. "scrolling ": "no",
  5405. "style": {
  5406. "cssText": "border:0;width:100%;height:100%"
  5407. },
  5408. "src": "/Office/Word/WordEditArea.htm"
  5409. })
  5410. _box.appendChild(_iframe);
  5411. _box.appendChild(_jie);
  5412. _formdiv = new U.UF.UI.form(
  5413. "協同文檔-" + _username,
  5414. _box, {
  5415. "id": "doc" + cid + stage + task + tool + _userid,
  5416. "style": {
  5417. "width": "90%",
  5418. "height": "90%",
  5419. "overflow": 'hidden'
  5420. },
  5421. "onresize": function () { }
  5422. }, {
  5423. closecallback: function () { }
  5424. }, {
  5425. "style": {
  5426. "height": "36px"
  5427. }
  5428. }).form; //創建窗體
  5429. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  5430. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5431. })
  5432. _taskbar = {
  5433. "id": str + _formdiv.id,
  5434. "style": {
  5435. "backgroundImage": "url(/img/icon/doc.png)"
  5436. },
  5437. "name": "協同文檔",
  5438. "forms": _formdiv,
  5439. "click": function() {
  5440. U.MD.D.I.openApplication(str, obj, info);
  5441. }
  5442. }
  5443. break;
  5444. case "mindNetwork": //好友打開
  5445. aTool = 7;
  5446. _iframe = $$("iframe", {
  5447. "webkitallowfullscreen": "",
  5448. "mozallowfullscreen": "",
  5449. "allowfullscreen": "",
  5450. "frameborder": "no",
  5451. "border": "0",
  5452. "scrolling ": "no",
  5453. "style": {
  5454. "cssText": "border:0; width:100%; height:100%;"
  5455. },
  5456. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5457. })
  5458. _box.appendChild(_iframe);
  5459. _box.appendChild(_jie);
  5460. _formdiv = new U.UF.UI.form(
  5461. "思維網格-" + _username,
  5462. _box, {
  5463. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5464. "style": {
  5465. "width": "90%",
  5466. "height": "90%",
  5467. "overflow": 'hidden'
  5468. },
  5469. "onresize": function () { }
  5470. }, {
  5471. closecallback: function () { }
  5472. }, {
  5473. "style": {
  5474. "height": "36px"
  5475. }
  5476. }).form; //創建窗體
  5477. _taskbar = {
  5478. "id": str + _formdiv.id,
  5479. "style": {
  5480. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5481. },
  5482. "name": "思維網格",
  5483. "forms": _formdiv,
  5484. "click": function() {
  5485. U.MD.D.I.openApplication(str, obj, info);
  5486. }
  5487. }
  5488. break;
  5489. case "courseDesign":
  5490. _iframe = $$("iframe", {
  5491. "webkitallowfullscreen": "",
  5492. "mozallowfullscreen": "",
  5493. "allowfullscreen": "",
  5494. "frameborder": "no",
  5495. "border": "0",
  5496. "scrolling ": "no",
  5497. "style": {
  5498. "cssText": "border:0; width:100%; height:100%;"
  5499. },
  5500. "src": "/course-design-vue"
  5501. })
  5502. _box.appendChild(_iframe);
  5503. _box.appendChild(_jie);
  5504. _formdiv = new U.UF.UI.form(
  5505. "項目設計-" + _username,
  5506. _box, {
  5507. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5508. "style": {
  5509. "width": "90%",
  5510. "height": "90%",
  5511. "overflow": 'hidden'
  5512. },
  5513. "onresize": function () { }
  5514. }, {
  5515. closecallback: function () { }
  5516. }, {
  5517. "style": {
  5518. "height": "36px"
  5519. }
  5520. }).form; //創建窗體
  5521. _taskbar = {
  5522. "id": str + _formdiv.id,
  5523. "style": {
  5524. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5525. },
  5526. "name": "項目設計",
  5527. "forms": _formdiv,
  5528. "click": function() {
  5529. U.MD.D.I.openApplication(str, obj, info);
  5530. }
  5531. }
  5532. break;
  5533. }
  5534. const script1 = document.createElement("script");
  5535. script1.type = "text/javascript";
  5536. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5537. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5538. const script2 = document.createElement("script");
  5539. script2.type = "text/javascript";
  5540. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5541. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5542. const script3 = document.createElement("script");
  5543. script3.type = "text/javascript";
  5544. script3.charset = "UTF-8";
  5545. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5546. const script4 = document.createElement("script");
  5547. script4.type = "text/javascript";
  5548. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5549. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  5550. if (_iframe) {
  5551. if (str == 'doc') {
  5552. _iframe = _formdiv.querySelector('iframe')
  5553. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5554. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5555. _iframe.contentWindow.document.body.appendChild(script1);
  5556. _iframe.contentWindow.document.body.appendChild(script2);
  5557. // _iframe.contentWindow.document.body.appendChild(script3);
  5558. _iframe.contentWindow.document.body.appendChild(script4);
  5559. })
  5560. if (onloadListener) {
  5561. _iframe.contentDocument.location.reload()
  5562. } else {
  5563. _iframe.contentDocument.location.reload()
  5564. }
  5565. } else if (str == 'courseDesign') {
  5566. U.UF.DL.iframeLoad(_iframe, function() {
  5567. // _iframe.contentWindow.U.MD.O.W.load();
  5568. // _iframe.contentWindow.document.body.appendChild(script1);
  5569. _iframe.contentWindow.document.body.appendChild(script2);
  5570. _iframe.contentWindow.document.body.appendChild(script4);
  5571. })
  5572. } else if (str == 'mind') {
  5573. _iframe = _formdiv.querySelector('iframe')
  5574. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5575. //
  5576. _iframe.contentWindow.document.body.appendChild(script1);
  5577. _iframe.contentWindow.document.body.appendChild(script2);
  5578. _iframe.contentWindow.document.body.appendChild(script4);
  5579. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5580. })
  5581. if (onloadListener) {
  5582. _iframe.contentDocument.location.reload()
  5583. } else {
  5584. _iframe.contentDocument.location.reload()
  5585. }
  5586. } else if (str == 'whiteboard') {
  5587. _iframe = _formdiv.querySelector('iframe')
  5588. let onloadListener = _iframe.onload = () => {
  5589. _iframe.contentWindow.document.body.appendChild(script1);
  5590. _iframe.contentWindow.document.body.appendChild(script2);
  5591. _iframe.contentWindow.document.body.appendChild(script4);
  5592. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5593. };
  5594. if (onloadListener) {
  5595. _iframe.contentDocument.location.reload()
  5596. } else {
  5597. _iframe.contentDocument.location.reload()
  5598. }
  5599. } else {
  5600. _iframe.onload = () => {
  5601. _iframe.contentWindow.document.body.appendChild(script1);
  5602. _iframe.contentWindow.document.body.appendChild(script2);
  5603. // _iframe.contentWindow.document.body.appendChild(script3);
  5604. _iframe.contentWindow.document.body.appendChild(script4);
  5605. };
  5606. }
  5607. _jie.onclick = async() => {
  5608. let text = ''
  5609. if (aTool == 1) {
  5610. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5611. } else if (aTool == 6) {
  5612. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5613. } else if (aTool == 3) {
  5614. text = await U.MD.D.I.getEditorContent(_iframe);
  5615. }
  5616. _loading.style.display = 'flex'
  5617. console.log(_loading);
  5618. var _ajs = _iframe.contentWindow.document.createElement("script");
  5619. _ajs.type = "text/javascript";
  5620. _ajs.innerHTML =
  5621. // 'console.log(' + _loading + ');\n' +
  5622. 'var _js = document.createElement("script");\n' +
  5623. '_js.type="text/javascript";\n' +
  5624. '_js.charset="UTF-8";\n' +
  5625. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5626. "_js.onload = function(){\n" +
  5627. ' var a = document.getElementsByTagName("img")\n' +
  5628. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5629. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5630. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5631. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5632. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5633. "beforeUpload_shishi(file," +
  5634. "'" +
  5635. _userid +
  5636. "'" +
  5637. ", " +
  5638. "'" +
  5639. _cid +
  5640. "'" +
  5641. ", " +
  5642. "'" +
  5643. _stage +
  5644. "'" +
  5645. ", " +
  5646. "'" +
  5647. _task +
  5648. "'" +
  5649. ", " +
  5650. "'" +
  5651. _tool +
  5652. "'" +
  5653. ", " +
  5654. "'" +
  5655. (str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid) +
  5656. "'" +
  5657. ", " +
  5658. "'" +
  5659. aTool +
  5660. "'" +
  5661. ", " +
  5662. "`" +
  5663. text +
  5664. "`" +
  5665. ")\n" +
  5666. " });\n" +
  5667. "}\n" +
  5668. "document.head.appendChild(_js);\n";
  5669. _iframe.contentWindow.document.head.appendChild(_ajs);
  5670. }
  5671. }
  5672. }
  5673. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5674. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5675. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5676. _userid = student.userid, //登錄用戶id
  5677. _username = student.student //用戶名字
  5678. let _iframe;
  5679. let _cid = cid,
  5680. _stage = stage,
  5681. _task = task,
  5682. _tool = tool;
  5683. var _jie = $$("div", {
  5684. "style": {
  5685. "position": "absolute",
  5686. "bottom": "50px",
  5687. "right": "50px",
  5688. "zIndex": "9999",
  5689. "backgroundColor": "#2268bc",
  5690. "color": "#fff",
  5691. "padding": "12px 20px",
  5692. "cursor": "pointer",
  5693. "borderRadius": "4px",
  5694. },
  5695. "innerHTML": "提交作業"
  5696. })
  5697. let aTool = ''
  5698. let _loading = document.createElement('div')
  5699. _loading.style = "width:100%;height:100%;background:#00000000;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
  5700. // _loading.id = "";
  5701. let _lchild = document.createElement('div')
  5702. let _limg = document.createElement('img')
  5703. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5704. _limg.style = "width: 26px;margin-right: 10px;"
  5705. _lchild.appendChild(_limg)
  5706. let _lspan = document.createElement('span')
  5707. _lspan.innerHTML = "上傳中..."
  5708. _lchild.appendChild(_lspan)
  5709. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  5710. _loading.appendChild(_lchild)
  5711. var _box = $$('div', {
  5712. "style": {
  5713. "position": "relative",
  5714. "width": "100%",
  5715. "height": "100%",
  5716. },
  5717. })
  5718. _box.appendChild(_loading)
  5719. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5720. switch (str) {
  5721. case "whiteboard":
  5722. aTool = 1;
  5723. _iframe = $$("iframe", {
  5724. "frameborder": "no",
  5725. "border": "0",
  5726. "scrolling ": "no",
  5727. "style": {
  5728. "cssText": "border:0;width:100%;height:100%"
  5729. },
  5730. "src": "https://iwb.cocorobo.hk/"
  5731. })
  5732. _box.appendChild(_iframe);
  5733. _box.appendChild(_jie);
  5734. _formdiv = new U.UF.UI.form(
  5735. "電子白板-" + _username,
  5736. _box, {
  5737. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5738. "style": {
  5739. "width": "90%",
  5740. "height": "90%",
  5741. "overflow": 'hidden'
  5742. },
  5743. "onresize": function () { }
  5744. }, {
  5745. closecallback: function () { }
  5746. }, {
  5747. "style": {
  5748. "height": "36px"
  5749. }
  5750. }).form; //創建窗體
  5751. _taskbar = {
  5752. "id": str + _formdiv.id,
  5753. "style": {
  5754. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5755. },
  5756. "name": "電子白板",
  5757. "forms": _formdiv,
  5758. "click": function() {
  5759. U.MD.D.I.openApplication(str, obj, info);
  5760. }
  5761. }
  5762. break;
  5763. case "mind":
  5764. aTool = 3;
  5765. _iframe = $$("iframe", {
  5766. "frameborder": "no",
  5767. "border": "0",
  5768. "scrolling ": "no",
  5769. "style": {
  5770. "cssText": "border:0;width:100%;height:100%"
  5771. },
  5772. "src": "/kityminder-editor/dist/index.html"
  5773. })
  5774. _box.appendChild(_iframe);
  5775. _box.appendChild(_jie);
  5776. _formdiv = new U.UF.UI.form(
  5777. "思維導圖-" + _username,
  5778. _box, { //"/jsmind/example/demo.html"
  5779. "id": "mind" + cid + stage + task + tool + _userid,
  5780. "style": {
  5781. "width": "90%",
  5782. "height": "90%",
  5783. "overflow": 'hidden'
  5784. },
  5785. "onresize": function () { }
  5786. }, {
  5787. closecallback: function () { }
  5788. }, {
  5789. "style": {
  5790. "height": "36px"
  5791. }
  5792. }).form; //創建窗體
  5793. _taskbar = {
  5794. "id": str + _formdiv.id,
  5795. "style": {
  5796. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5797. },
  5798. "name": "思維導圖",
  5799. "forms": _formdiv,
  5800. "click": function() {
  5801. U.MD.D.I.openApplication(str, obj, info);
  5802. }
  5803. }
  5804. break;
  5805. case "MindMap":
  5806. aTool = 3;
  5807. _iframe = $$("iframe", {
  5808. "frameborder": "no",
  5809. "border": "0",
  5810. "scrolling ": "no",
  5811. "style": {
  5812. "cssText": "border:0;width:100%;height:100%"
  5813. },
  5814. "src": "//cloud.cocorobo.hk/mind/"
  5815. })
  5816. _box.appendChild(_iframe);
  5817. _box.appendChild(_jie);
  5818. _formdiv = new U.UF.UI.form(
  5819. "思維導圖-" + _username,
  5820. _box, { //"/jsmind/example/demo.html"
  5821. "id": "mind" + cid + stage + task + tool + _userid,
  5822. "style": {
  5823. "width": "90%",
  5824. "height": "90%",
  5825. "overflow": 'hidden'
  5826. },
  5827. "onresize": function () { }
  5828. }, {
  5829. closecallback: function () { }
  5830. }, {
  5831. "style": {
  5832. "height": "36px"
  5833. }
  5834. }).form; //創建窗體
  5835. _taskbar = {
  5836. "id": str + _formdiv.id,
  5837. "style": {
  5838. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5839. },
  5840. "name": "思維導圖",
  5841. "forms": _formdiv,
  5842. "click": function() {
  5843. U.MD.D.I.openApplication(str, obj, info);
  5844. }
  5845. }
  5846. break;
  5847. case "doc":
  5848. aTool = 6;
  5849. _iframe = $$("iframe", {
  5850. "frameborder": "no",
  5851. "border": "0",
  5852. "scrolling ": "no",
  5853. "style": {
  5854. "cssText": "border:0;width:100%;height:100%"
  5855. },
  5856. "src": "/Office/Word/WordEditArea.htm"
  5857. })
  5858. _box.appendChild(_iframe);
  5859. _box.appendChild(_jie);
  5860. _formdiv = new U.UF.UI.form(
  5861. "協同文檔-" + _username,
  5862. _box, {
  5863. "id": "doc" + cid + stage + task + tool + _userid,
  5864. "style": {
  5865. "width": "90%",
  5866. "height": "90%",
  5867. "overflow": 'hidden'
  5868. },
  5869. "onresize": function () { }
  5870. }, {
  5871. closecallback: function () { }
  5872. }, {
  5873. "style": {
  5874. "height": "36px"
  5875. }
  5876. }).form; //創建窗體
  5877. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  5878. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5879. })
  5880. _taskbar = {
  5881. "id": str + _formdiv.id,
  5882. "style": {
  5883. "backgroundImage": "url(/img/icon/doc.png)"
  5884. },
  5885. "name": "協同文檔",
  5886. "forms": _formdiv,
  5887. "click": function() {
  5888. U.MD.D.I.openApplication(str, obj, info);
  5889. }
  5890. }
  5891. break;
  5892. case "mindNetwork": //好友打開
  5893. aTool = 7;
  5894. _iframe = $$("iframe", {
  5895. "webkitallowfullscreen": "",
  5896. "mozallowfullscreen": "",
  5897. "allowfullscreen": "",
  5898. "frameborder": "no",
  5899. "border": "0",
  5900. "scrolling ": "no",
  5901. "style": {
  5902. "cssText": "border:0; width:100%; height:100%;"
  5903. },
  5904. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5905. })
  5906. _box.appendChild(_iframe);
  5907. _box.appendChild(_jie);
  5908. _formdiv = new U.UF.UI.form(
  5909. "思維網格-" + _username,
  5910. _box, {
  5911. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5912. "style": {
  5913. "width": "90%",
  5914. "height": "90%",
  5915. "overflow": 'hidden'
  5916. },
  5917. "onresize": function () { }
  5918. }, {
  5919. closecallback: function () { }
  5920. }, {
  5921. "style": {
  5922. "height": "36px"
  5923. }
  5924. }).form; //創建窗體
  5925. _taskbar = {
  5926. "id": str + _formdiv.id,
  5927. "style": {
  5928. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5929. },
  5930. "name": "思維網格",
  5931. "forms": _formdiv,
  5932. "click": function() {
  5933. U.MD.D.I.openApplication(str, obj, info);
  5934. }
  5935. }
  5936. break;
  5937. case "courseDesign":
  5938. _iframe = $$("iframe", {
  5939. "webkitallowfullscreen": "",
  5940. "mozallowfullscreen": "",
  5941. "allowfullscreen": "",
  5942. "frameborder": "no",
  5943. "border": "0",
  5944. "scrolling ": "no",
  5945. "style": {
  5946. "cssText": "border:0; width:100%; height:100%;"
  5947. },
  5948. "src": "/course-design-vue"
  5949. })
  5950. _box.appendChild(_iframe);
  5951. _box.appendChild(_jie);
  5952. _formdiv = new U.UF.UI.form(
  5953. "項目設計-" + _username,
  5954. _box, {
  5955. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5956. "style": {
  5957. "width": "90%",
  5958. "height": "90%",
  5959. "overflow": 'hidden'
  5960. },
  5961. "onresize": function () { }
  5962. }, {
  5963. closecallback: function () { }
  5964. }, {
  5965. "style": {
  5966. "height": "36px"
  5967. }
  5968. }).form; //創建窗體
  5969. _taskbar = {
  5970. "id": str + _formdiv.id,
  5971. "style": {
  5972. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5973. },
  5974. "name": "項目設計",
  5975. "forms": _formdiv,
  5976. "click": function() {
  5977. U.MD.D.I.openApplication(str, obj, info);
  5978. }
  5979. }
  5980. break;
  5981. }
  5982. const script1 = document.createElement("script");
  5983. script1.type = "text/javascript";
  5984. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5985. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5986. const script2 = document.createElement("script");
  5987. script2.type = "text/javascript";
  5988. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5989. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5990. const script3 = document.createElement("script");
  5991. script3.type = "text/javascript";
  5992. script3.charset = "UTF-8";
  5993. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5994. const script4 = document.createElement("script");
  5995. script4.type = "text/javascript";
  5996. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5997. script4.src = window.origin + "/js/Common/jietu2E.js";
  5998. if (_iframe) {
  5999. if (str == 'doc') {
  6000. _iframe = _formdiv.querySelector('iframe')
  6001. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6002. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  6003. _iframe.contentWindow.document.body.appendChild(script1);
  6004. _iframe.contentWindow.document.body.appendChild(script2);
  6005. // _iframe.contentWindow.document.body.appendChild(script3);
  6006. _iframe.contentWindow.document.body.appendChild(script4);
  6007. })
  6008. if (onloadListener) {
  6009. _iframe.contentDocument.location.reload()
  6010. } else {
  6011. _iframe.contentDocument.location.reload()
  6012. }
  6013. } else if (str == 'courseDesign') {
  6014. U.UF.DL.iframeLoad(_iframe, function() {
  6015. // _iframe.contentWindow.U.MD.O.W.load();
  6016. // _iframe.contentWindow.document.body.appendChild(script1);
  6017. _iframe.contentWindow.document.body.appendChild(script2);
  6018. _iframe.contentWindow.document.body.appendChild(script4);
  6019. })
  6020. } else if (str == 'mind') {
  6021. _iframe = _formdiv.querySelector('iframe')
  6022. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6023. //
  6024. _iframe.contentWindow.document.body.appendChild(script1);
  6025. _iframe.contentWindow.document.body.appendChild(script2);
  6026. _iframe.contentWindow.document.body.appendChild(script4);
  6027. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  6028. })
  6029. if (onloadListener) {
  6030. _iframe.contentDocument.location.reload()
  6031. } else {
  6032. _iframe.contentDocument.location.reload()
  6033. }
  6034. } else if (str == 'whiteboard') {
  6035. _iframe = _formdiv.querySelector('iframe')
  6036. let onloadListener = _iframe.onload = () => {
  6037. _iframe.contentWindow.document.body.appendChild(script1);
  6038. _iframe.contentWindow.document.body.appendChild(script2);
  6039. _iframe.contentWindow.document.body.appendChild(script4);
  6040. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  6041. };
  6042. if (onloadListener) {
  6043. _iframe.contentDocument.location.reload()
  6044. } else {
  6045. _iframe.contentDocument.location.reload()
  6046. }
  6047. } else {
  6048. _iframe.onload = () => {
  6049. _iframe.contentWindow.document.body.appendChild(script1);
  6050. _iframe.contentWindow.document.body.appendChild(script2);
  6051. // _iframe.contentWindow.document.body.appendChild(script3);
  6052. _iframe.contentWindow.document.body.appendChild(script4);
  6053. };
  6054. }
  6055. _jie.onclick = async() => {
  6056. let text = ''
  6057. if (aTool == 1) {
  6058. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6059. } else if (aTool == 6) {
  6060. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6061. } else if (aTool == 3) {
  6062. text = await U.MD.D.I.getEditorContent(_iframe);
  6063. }
  6064. _loading.style.display = 'flex'
  6065. console.log(_loading);
  6066. var _ajs = _iframe.contentWindow.document.createElement("script");
  6067. _ajs.type = "text/javascript";
  6068. _ajs.innerHTML =
  6069. // 'console.log(' + _loading + ');\n' +
  6070. 'var _js = document.createElement("script");\n' +
  6071. '_js.type="text/javascript";\n' +
  6072. '_js.charset="UTF-8";\n' +
  6073. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6074. "_js.onload = function(){\n" +
  6075. ' var a = document.getElementsByTagName("img")\n' +
  6076. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6077. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6078. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6079. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6080. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6081. "beforeUpload_shishi(file," +
  6082. "'" +
  6083. _userid +
  6084. "'" +
  6085. ", " +
  6086. "'" +
  6087. _cid +
  6088. "'" +
  6089. ", " +
  6090. "'" +
  6091. _stage +
  6092. "'" +
  6093. ", " +
  6094. "'" +
  6095. _task +
  6096. "'" +
  6097. ", " +
  6098. "'" +
  6099. _tool +
  6100. "'" +
  6101. ", " +
  6102. "'" +
  6103. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid) +
  6104. "'" +
  6105. ", " +
  6106. "'" +
  6107. aTool +
  6108. "'" +
  6109. ", " +
  6110. "`" +
  6111. text +
  6112. "`" +
  6113. ")\n" +
  6114. " });\n" +
  6115. "}\n" +
  6116. "document.head.appendChild(_js);\n";
  6117. _iframe.contentWindow.document.head.appendChild(_ajs);
  6118. }
  6119. }
  6120. }
  6121. U.MD.D.I.getEditorContent = function(iframe) {
  6122. return new Promise((resolve, reject) => {
  6123. iframe.contentWindow.editor.minder.exportData('json').then(function(content) {
  6124. console.log(content);
  6125. resolve(content)
  6126. });
  6127. });
  6128. }
  6129. U.MD.D.I.getContent = function(cid, s, task, t, uid, type, iframe) {
  6130. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  6131. // if (res.value[0].length > 0) {
  6132. // // resolve(res.value[0][0].text);
  6133. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  6134. // $(fileInput).val('');
  6135. // });
  6136. // }
  6137. // }, [], { "type": "GET", "withCredentials": true });
  6138. var xmlhttp;
  6139. var Mac, Sn, DeviceId
  6140. if (window.XMLHttpRequest) {
  6141. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6142. xmlhttp = new XMLHttpRequest();
  6143. }
  6144. else {
  6145. // IE6, IE5 瀏覽器執行代碼
  6146. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6147. }
  6148. xmlhttp.onreadystatechange = function() {
  6149. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6150. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6151. // resolve(res.value[0][0].text);
  6152. if (type == '2') {
  6153. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6154. } else if (type == '3') {
  6155. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6156. }
  6157. } else {
  6158. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  6159. }
  6160. }
  6161. }
  6162. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6163. xmlhttp.send();
  6164. }
  6165. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  6166. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6167. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6168. _userinfo = US.userInfo, //登錄用戶信息
  6169. _userid = US.userInfo.userid //登錄用戶id
  6170. let _iframe;
  6171. let _cid = cid,
  6172. _stage = stage,
  6173. _task = task,
  6174. _tool = tool;
  6175. var _jie = $$("div", {
  6176. "style": {
  6177. "position": "absolute",
  6178. "bottom": "50px",
  6179. "right": "50px",
  6180. "zIndex": "9999",
  6181. "backgroundColor": "#2268bc",
  6182. "color": "#fff",
  6183. "padding": "12px 20px",
  6184. "cursor": "pointer",
  6185. "borderRadius": "4px",
  6186. },
  6187. "innerHTML": "確認並提交"
  6188. })
  6189. let aTool = ''
  6190. let _loading = document.createElement('div')
  6191. _loading.style = "width:100%;height:100%;background:#00000000;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
  6192. // _loading.id = "";
  6193. let _lchild = document.createElement('div')
  6194. let _limg = document.createElement('img')
  6195. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6196. _limg.style = "width: 26px;margin-right: 10px;"
  6197. _lchild.appendChild(_limg)
  6198. let _lspan = document.createElement('span')
  6199. _lspan.innerHTML = "上傳中..."
  6200. _lchild.appendChild(_lspan)
  6201. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  6202. _loading.appendChild(_lchild)
  6203. var _box = $$('div', {
  6204. "style": {
  6205. "position": "relative",
  6206. "width": "100%",
  6207. "height": "100%",
  6208. },
  6209. })
  6210. _box.appendChild(_loading)
  6211. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool + _userid
  6212. switch (str) {
  6213. case "whiteboard":
  6214. aTool = 1;
  6215. _iframe = $$("iframe", {
  6216. "frameborder": "no",
  6217. "border": "0",
  6218. "scrolling ": "no",
  6219. "style": {
  6220. "cssText": "border:0;width:100%;height:100%"
  6221. },
  6222. "src": "https://iwb.cocorobo.hk/"
  6223. })
  6224. _box.appendChild(_iframe);
  6225. _box.appendChild(_jie);
  6226. _formdiv = new U.UF.UI.form(
  6227. "電子白板",
  6228. _box, {
  6229. "id": "whiteboards" + cid + stage + task + tool,
  6230. "style": {
  6231. "width": "90%",
  6232. "height": "90%",
  6233. "overflow": 'hidden'
  6234. },
  6235. "onresize": function () { }
  6236. }, {
  6237. closecallback: function () { }
  6238. }, {
  6239. "style": {
  6240. "height": "36px"
  6241. }
  6242. }).form; //創建窗體
  6243. _taskbar = {
  6244. "id": str + _formdiv.id,
  6245. "style": {
  6246. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6247. },
  6248. "name": "電子白板",
  6249. "forms": _formdiv,
  6250. "click": function() {
  6251. U.MD.D.I.openApplication(str, obj, info);
  6252. }
  6253. }
  6254. break;
  6255. case "mind":
  6256. aTool = 3;
  6257. _iframe = $$("iframe", {
  6258. "frameborder": "no",
  6259. "border": "0",
  6260. "scrolling ": "no",
  6261. "style": {
  6262. "cssText": "border:0;width:100%;height:100%"
  6263. },
  6264. "src": "/kityminder-editor/dist/index.html"
  6265. });
  6266. _box.appendChild(_iframe);
  6267. _box.appendChild(_jie);
  6268. _formdiv = new U.UF.UI.form(
  6269. "思維導圖",
  6270. _box, { //"/jsmind/example/demo.html"
  6271. "id": "minds" + cid + stage + task + tool,
  6272. "style": {
  6273. "width": "90%",
  6274. "height": "90%",
  6275. "overflow": 'hidden'
  6276. },
  6277. "onresize": function () { }
  6278. }, {
  6279. closecallback: function () { }
  6280. }, {
  6281. "style": {
  6282. "height": "36px"
  6283. }
  6284. }).form; //創建窗體
  6285. _taskbar = {
  6286. "id": str + _formdiv.id,
  6287. "style": {
  6288. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6289. },
  6290. "name": "思維導圖",
  6291. "forms": _formdiv,
  6292. "click": function() {
  6293. U.MD.D.I.openApplication(str, obj, info);
  6294. }
  6295. }
  6296. break;
  6297. case "doc":
  6298. aTool = 6;
  6299. _iframe = $$("iframe", {
  6300. "frameborder": "no",
  6301. "border": "0",
  6302. "scrolling ": "no",
  6303. "style": {
  6304. "cssText": "border:0;width:100%;height:100%"
  6305. },
  6306. "src": "/Office/Word/WordEditArea.htm"
  6307. })
  6308. _box.appendChild(_iframe);
  6309. _box.appendChild(_jie);
  6310. _formdiv = new U.UF.UI.form(
  6311. "協同文檔",
  6312. _box, {
  6313. "id": "docs" + cid + stage + task + tool,
  6314. "style": {
  6315. "width": "90%",
  6316. "height": "90%",
  6317. "overflow": 'hidden'
  6318. },
  6319. "onresize": function () { }
  6320. }, {
  6321. closecallback: function () { }
  6322. }, {
  6323. "style": {
  6324. "height": "36px"
  6325. }
  6326. }).form; //創建窗體
  6327. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6328. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6329. })
  6330. _taskbar = {
  6331. "id": str + _formdiv.id,
  6332. "style": {
  6333. "backgroundImage": "url(/img/icon/doc.png)"
  6334. },
  6335. "name": "協同文檔",
  6336. "forms": _formdiv,
  6337. "click": function() {
  6338. U.MD.D.I.openApplication(str, obj, info);
  6339. }
  6340. }
  6341. break;
  6342. }
  6343. const script1 = document.createElement("script");
  6344. script1.type = "text/javascript";
  6345. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6346. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6347. const script2 = document.createElement("script");
  6348. script2.type = "text/javascript";
  6349. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6350. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6351. const script3 = document.createElement("script");
  6352. script3.type = "text/javascript";
  6353. script3.charset = "UTF-8";
  6354. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6355. const script4 = document.createElement("script");
  6356. script4.type = "text/javascript";
  6357. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6358. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu4.js";
  6359. if (_iframe) {
  6360. if (str == 'doc') {
  6361. _iframe = _formdiv.querySelector('iframe')
  6362. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6363. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6364. _iframe.contentWindow.document.body.appendChild(script1);
  6365. _iframe.contentWindow.document.body.appendChild(script2);
  6366. // _iframe.contentWindow.document.body.appendChild(script3);
  6367. _iframe.contentWindow.document.body.appendChild(script4);
  6368. })
  6369. if (onloadListener) {
  6370. _iframe.contentDocument.location.reload()
  6371. } else {
  6372. _iframe.contentDocument.location.reload()
  6373. }
  6374. } else if (str == 'mind') {
  6375. _iframe = _formdiv.querySelector('iframe')
  6376. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6377. _iframe.contentWindow.document.body.appendChild(script1);
  6378. _iframe.contentWindow.document.body.appendChild(script2);
  6379. _iframe.contentWindow.document.body.appendChild(script4);
  6380. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6381. })
  6382. if (onloadListener) {
  6383. _iframe.contentDocument.location.reload()
  6384. } else {
  6385. _iframe.contentDocument.location.reload()
  6386. }
  6387. } else {
  6388. _iframe.onload = () => {
  6389. _iframe.contentWindow.document.body.appendChild(script1);
  6390. _iframe.contentWindow.document.body.appendChild(script2);
  6391. // _iframe.contentWindow.document.body.appendChild(script3);
  6392. _iframe.contentWindow.document.body.appendChild(script4);
  6393. };
  6394. }
  6395. _jie.onclick = async() => {
  6396. let text = ''
  6397. if (aTool == 6) {
  6398. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6399. } else if (aTool == 3) {
  6400. text = await U.MD.D.I.getEditorContent(_iframe);
  6401. }
  6402. _loading.style.display = 'flex'
  6403. console.log(_loading);
  6404. var _ajs = _iframe.contentWindow.document.createElement("script");
  6405. _ajs.type = "text/javascript";
  6406. _ajs.innerHTML =
  6407. // 'console.log(' + _loading + ');\n' +
  6408. 'var _js = document.createElement("script");\n' +
  6409. '_js.type="text/javascript";\n' +
  6410. '_js.charset="UTF-8";\n' +
  6411. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6412. "_js.onload = function(){\n" +
  6413. ' var a = document.getElementsByTagName("img")\n' +
  6414. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6415. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6416. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6417. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6418. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6419. "beforeUpload_shishi(file," +
  6420. "'" +
  6421. _userid +
  6422. "'" +
  6423. ", " +
  6424. "'" +
  6425. _cid +
  6426. "'" +
  6427. ", " +
  6428. "'" +
  6429. _stage +
  6430. "'" +
  6431. ", " +
  6432. "'" +
  6433. _task +
  6434. "'" +
  6435. ", " +
  6436. "'" +
  6437. _tool +
  6438. "'" +
  6439. ", " +
  6440. "'" +
  6441. (str + '_loadLi_JieS' + cid + stage + task + tool + _userid) +
  6442. "'" +
  6443. ", " +
  6444. "'" +
  6445. aTool +
  6446. "'" +
  6447. ", " +
  6448. "`" +
  6449. text +
  6450. "`" +
  6451. ")\n" +
  6452. " });\n" +
  6453. "}\n" +
  6454. "document.head.appendChild(_js);\n";
  6455. _iframe.contentWindow.document.head.appendChild(_ajs);
  6456. }
  6457. }
  6458. //U.MD.D.I.openClick(str);
  6459. //如果有任務欄信息
  6460. // if (_taskbar) {
  6461. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6462. // }
  6463. }
  6464. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  6465. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6466. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6467. _userinfo = US.userInfo, //登錄用戶信息
  6468. _userid = US.userInfo.userid //登錄用戶id
  6469. let _iframe;
  6470. let _cid = cid,
  6471. _stage = stage,
  6472. _task = task,
  6473. _tool = tool;
  6474. var _jie = $$("div", {
  6475. "style": {
  6476. "position": "absolute",
  6477. "bottom": "50px",
  6478. "right": "50px",
  6479. "zIndex": "9999",
  6480. "backgroundColor": "#2268bc",
  6481. "color": "#fff",
  6482. "padding": "12px 20px",
  6483. "cursor": "pointer",
  6484. "borderRadius": "4px",
  6485. },
  6486. "innerHTML": "確認並提交"
  6487. })
  6488. let aTool = ''
  6489. let _loading = document.createElement('div')
  6490. _loading.style = "width:100%;height:100%;background:#00000000;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
  6491. // _loading.id = "";
  6492. let _lchild = document.createElement('div')
  6493. let _limg = document.createElement('img')
  6494. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6495. _limg.style = "width: 26px;margin-right: 10px;"
  6496. _lchild.appendChild(_limg)
  6497. let _lspan = document.createElement('span')
  6498. _lspan.innerHTML = "上傳中..."
  6499. _lchild.appendChild(_lspan)
  6500. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  6501. _loading.appendChild(_lchild)
  6502. var _box = $$('div', {
  6503. "style": {
  6504. "position": "relative",
  6505. "width": "100%",
  6506. "height": "100%",
  6507. },
  6508. })
  6509. _box.appendChild(_loading)
  6510. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid
  6511. switch (str) {
  6512. case "whiteboard":
  6513. aTool = 1;
  6514. _iframe = $$("iframe", {
  6515. "frameborder": "no",
  6516. "border": "0",
  6517. "scrolling ": "no",
  6518. "style": {
  6519. "cssText": "border:0;width:100%;height:100%"
  6520. },
  6521. "src": "https://iwb.cocorobo.hk/"
  6522. })
  6523. _box.appendChild(_iframe);
  6524. _box.appendChild(_jie);
  6525. _formdiv = new U.UF.UI.form(
  6526. "電子白板",
  6527. _box, {
  6528. "id": "whiteboards" + cid + stage + task + tool,
  6529. "style": {
  6530. "width": "90%",
  6531. "height": "90%",
  6532. "overflow": 'hidden'
  6533. },
  6534. "onresize": function () { }
  6535. }, {
  6536. closecallback: function () { }
  6537. }, {
  6538. "style": {
  6539. "height": "36px"
  6540. }
  6541. }).form; //創建窗體
  6542. _taskbar = {
  6543. "id": str + _formdiv.id,
  6544. "style": {
  6545. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6546. },
  6547. "name": "電子白板",
  6548. "forms": _formdiv,
  6549. "click": function() {
  6550. U.MD.D.I.openApplication(str, obj, info);
  6551. }
  6552. }
  6553. break;
  6554. case "mind":
  6555. aTool = 3;
  6556. _iframe = $$("iframe", {
  6557. "frameborder": "no",
  6558. "border": "0",
  6559. "scrolling ": "no",
  6560. "style": {
  6561. "cssText": "border:0;width:100%;height:100%"
  6562. },
  6563. "src": "/kityminder-editor/dist/index.html"
  6564. });
  6565. _box.appendChild(_iframe);
  6566. _box.appendChild(_jie);
  6567. _formdiv = new U.UF.UI.form(
  6568. "思維導圖",
  6569. _box, { //"/jsmind/example/demo.html"
  6570. "id": "minds" + cid + stage + task + tool,
  6571. "style": {
  6572. "width": "90%",
  6573. "height": "90%",
  6574. "overflow": 'hidden'
  6575. },
  6576. "onresize": function () { }
  6577. }, {
  6578. closecallback: function () { }
  6579. }, {
  6580. "style": {
  6581. "height": "36px"
  6582. }
  6583. }).form; //創建窗體
  6584. _taskbar = {
  6585. "id": str + _formdiv.id,
  6586. "style": {
  6587. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6588. },
  6589. "name": "思維導圖",
  6590. "forms": _formdiv,
  6591. "click": function() {
  6592. U.MD.D.I.openApplication(str, obj, info);
  6593. }
  6594. }
  6595. break;
  6596. case "doc":
  6597. aTool = 6;
  6598. _iframe = $$("iframe", {
  6599. "frameborder": "no",
  6600. "border": "0",
  6601. "scrolling ": "no",
  6602. "style": {
  6603. "cssText": "border:0;width:100%;height:100%"
  6604. },
  6605. "src": "/Office/Word/WordEditArea.htm"
  6606. })
  6607. _box.appendChild(_iframe);
  6608. _box.appendChild(_jie);
  6609. _formdiv = new U.UF.UI.form(
  6610. "協同文檔",
  6611. _box, {
  6612. "id": "docs" + cid + stage + task + tool,
  6613. "style": {
  6614. "width": "90%",
  6615. "height": "90%",
  6616. "overflow": 'hidden'
  6617. },
  6618. "onresize": function () { }
  6619. }, {
  6620. closecallback: function () { }
  6621. }, {
  6622. "style": {
  6623. "height": "36px"
  6624. }
  6625. }).form; //創建窗體
  6626. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6627. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6628. })
  6629. _taskbar = {
  6630. "id": str + _formdiv.id,
  6631. "style": {
  6632. "backgroundImage": "url(/img/icon/doc.png)"
  6633. },
  6634. "name": "協同文檔",
  6635. "forms": _formdiv,
  6636. "click": function() {
  6637. U.MD.D.I.openApplication(str, obj, info);
  6638. }
  6639. }
  6640. break;
  6641. }
  6642. const script1 = document.createElement("script");
  6643. script1.type = "text/javascript";
  6644. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6645. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6646. const script2 = document.createElement("script");
  6647. script2.type = "text/javascript";
  6648. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6649. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6650. const script3 = document.createElement("script");
  6651. script3.type = "text/javascript";
  6652. script3.charset = "UTF-8";
  6653. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6654. const script4 = document.createElement("script");
  6655. script4.type = "text/javascript";
  6656. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6657. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu5.js";
  6658. if (_iframe) {
  6659. if (str == 'doc') {
  6660. _iframe = _formdiv.querySelector('iframe')
  6661. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6662. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6663. _iframe.contentWindow.document.body.appendChild(script1);
  6664. _iframe.contentWindow.document.body.appendChild(script2);
  6665. // _iframe.contentWindow.document.body.appendChild(script3);
  6666. _iframe.contentWindow.document.body.appendChild(script4);
  6667. })
  6668. if (onloadListener) {
  6669. _iframe.contentDocument.location.reload()
  6670. } else {
  6671. _iframe.contentDocument.location.reload()
  6672. }
  6673. } else if (str == 'mind') {
  6674. _iframe = _formdiv.querySelector('iframe')
  6675. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6676. _iframe.contentWindow.document.body.appendChild(script1);
  6677. _iframe.contentWindow.document.body.appendChild(script2);
  6678. _iframe.contentWindow.document.body.appendChild(script4);
  6679. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6680. })
  6681. if (onloadListener) {
  6682. _iframe.contentDocument.location.reload()
  6683. } else {
  6684. _iframe.contentDocument.location.reload()
  6685. }
  6686. } else {
  6687. _iframe.onload = () => {
  6688. _iframe.contentWindow.document.body.appendChild(script1);
  6689. _iframe.contentWindow.document.body.appendChild(script2);
  6690. // _iframe.contentWindow.document.body.appendChild(script3);
  6691. _iframe.contentWindow.document.body.appendChild(script4);
  6692. };
  6693. }
  6694. _jie.onclick = async() => {
  6695. let text = ''
  6696. if (aTool == 6) {
  6697. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6698. } else if (aTool == 3) {
  6699. text = await U.MD.D.I.getEditorContent(_iframe);
  6700. }
  6701. _loading.style.display = 'flex'
  6702. console.log(_loading);
  6703. var _ajs = _iframe.contentWindow.document.createElement("script");
  6704. _ajs.type = "text/javascript";
  6705. _ajs.innerHTML =
  6706. // 'console.log(' + _loading + ');\n' +
  6707. 'var _js = document.createElement("script");\n' +
  6708. '_js.type="text/javascript";\n' +
  6709. '_js.charset="UTF-8";\n' +
  6710. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6711. "_js.onload = function(){\n" +
  6712. ' var a = document.getElementsByTagName("img")\n' +
  6713. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6714. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6715. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6716. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6717. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6718. "beforeUpload_shishi(file," +
  6719. "'" +
  6720. _userid +
  6721. "'" +
  6722. ", " +
  6723. "'" +
  6724. _cid +
  6725. "'" +
  6726. ", " +
  6727. "'" +
  6728. _stage +
  6729. "'" +
  6730. ", " +
  6731. "'" +
  6732. _task +
  6733. "'" +
  6734. ", " +
  6735. "'" +
  6736. _tool +
  6737. "'" +
  6738. ", " +
  6739. "'" +
  6740. (str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid) +
  6741. "'" +
  6742. ", " +
  6743. "'" +
  6744. aTool +
  6745. "'" +
  6746. ", " +
  6747. "`" +
  6748. text +
  6749. "`" +
  6750. ")\n" +
  6751. " });\n" +
  6752. "}\n" +
  6753. "document.head.appendChild(_js);\n";
  6754. _iframe.contentWindow.document.head.appendChild(_ajs);
  6755. }
  6756. }
  6757. //U.MD.D.I.openClick(str);
  6758. //如果有任務欄信息
  6759. // if (_taskbar) {
  6760. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6761. // }
  6762. }
  6763. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6764. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6765. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6766. _userinfo = US.userInfo, //登錄用戶信息
  6767. _userid = US.userInfo.userid //登錄用戶id
  6768. let _iframe;
  6769. let _cid = cid,
  6770. _stage = stage,
  6771. _task = task,
  6772. _tool = tool;
  6773. var _jie = $$("div", {
  6774. "style": {
  6775. "position": "absolute",
  6776. "bottom": "50px",
  6777. "right": "50px",
  6778. "zIndex": "9999",
  6779. "backgroundColor": "#2268bc",
  6780. "color": "#fff",
  6781. "padding": "12px 20px",
  6782. "cursor": "pointer",
  6783. "borderRadius": "4px",
  6784. },
  6785. "innerHTML": "上傳模板"
  6786. })
  6787. let aTool = ''
  6788. let _loading = document.createElement('div')
  6789. _loading.style = "width:100%;height:100%;background:#00000000;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
  6790. // _loading.id = "";
  6791. let _lchild = document.createElement('div')
  6792. let _limg = document.createElement('img')
  6793. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6794. _limg.style = "width: 26px;margin-right: 10px;"
  6795. _lchild.appendChild(_limg)
  6796. let _lspan = document.createElement('span')
  6797. _lspan.innerHTML = "上傳中..."
  6798. _lchild.appendChild(_lspan)
  6799. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  6800. _loading.appendChild(_lchild)
  6801. var _box = $$('div', {
  6802. "style": {
  6803. "position": "relative",
  6804. "width": "100%",
  6805. "height": "100%",
  6806. },
  6807. })
  6808. _box.appendChild(_loading)
  6809. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool + _userid
  6810. switch (str) {
  6811. case "whiteboard":
  6812. aTool = 1;
  6813. _iframe = $$("iframe", {
  6814. "frameborder": "no",
  6815. "border": "0",
  6816. "scrolling ": "no",
  6817. "style": {
  6818. "cssText": "border:0;width:100%;height:100%"
  6819. },
  6820. "src": "https://iwb.cocorobo.hk/"
  6821. })
  6822. _box.appendChild(_iframe);
  6823. _box.appendChild(_jie);
  6824. _formdiv = new U.UF.UI.form(
  6825. "電子白板",
  6826. _box, {
  6827. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6828. "style": {
  6829. "width": "90%",
  6830. "height": "90%",
  6831. "overflow": 'hidden'
  6832. },
  6833. "onresize": function () { }
  6834. }, {
  6835. closecallback: function () { }
  6836. }, {
  6837. "style": {
  6838. "height": "36px"
  6839. }
  6840. }).form; //創建窗體
  6841. _taskbar = {
  6842. "id": str + _formdiv.id,
  6843. "style": {
  6844. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6845. },
  6846. "name": "電子白板",
  6847. "forms": _formdiv,
  6848. "click": function() {
  6849. U.MD.D.I.openApplication(str, obj, info);
  6850. }
  6851. }
  6852. break;
  6853. case "mind":
  6854. aTool = 3;
  6855. _iframe = $$("iframe", {
  6856. "frameborder": "no",
  6857. "border": "0",
  6858. "scrolling ": "no",
  6859. "style": {
  6860. "cssText": "border:0;width:100%;height:100%"
  6861. },
  6862. "src": "/kityminder-editor/dist/index.html"
  6863. });
  6864. _box.appendChild(_iframe);
  6865. _box.appendChild(_jie);
  6866. _formdiv = new U.UF.UI.form(
  6867. "思維導圖",
  6868. _box, { //"/jsmind/example/demo.html"
  6869. "id": "minds_Yu" + cid + stage + task + tool,
  6870. "style": {
  6871. "width": "90%",
  6872. "height": "90%",
  6873. "overflow": 'hidden'
  6874. },
  6875. "onresize": function () { }
  6876. }, {
  6877. closecallback: function () { }
  6878. }, {
  6879. "style": {
  6880. "height": "36px"
  6881. }
  6882. }).form; //創建窗體
  6883. _taskbar = {
  6884. "id": str + _formdiv.id,
  6885. "style": {
  6886. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6887. },
  6888. "name": "思維導圖",
  6889. "forms": _formdiv,
  6890. "click": function() {
  6891. U.MD.D.I.openApplication(str, obj, info);
  6892. }
  6893. }
  6894. break;
  6895. case "doc":
  6896. aTool = 6;
  6897. _iframe = $$("iframe", {
  6898. "frameborder": "no",
  6899. "border": "0",
  6900. "scrolling ": "no",
  6901. "style": {
  6902. "cssText": "border:0;width:100%;height:100%"
  6903. },
  6904. "src": "/Office/Word/WordEditArea.htm"
  6905. })
  6906. _box.appendChild(_iframe);
  6907. _box.appendChild(_jie);
  6908. _formdiv = new U.UF.UI.form(
  6909. "協同文檔",
  6910. _box, {
  6911. "id": "docs_Yu" + cid + stage + task + tool,
  6912. "style": {
  6913. "width": "90%",
  6914. "height": "90%",
  6915. "overflow": 'hidden'
  6916. },
  6917. "onresize": function () { }
  6918. }, {
  6919. closecallback: function () { }
  6920. }, {
  6921. "style": {
  6922. "height": "36px"
  6923. }
  6924. }).form; //創建窗體
  6925. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6926. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6927. })
  6928. _taskbar = {
  6929. "id": str + _formdiv.id,
  6930. "style": {
  6931. "backgroundImage": "url(/img/icon/doc.png)"
  6932. },
  6933. "name": "協同文檔",
  6934. "forms": _formdiv,
  6935. "click": function() {
  6936. U.MD.D.I.openApplication(str, obj, info);
  6937. }
  6938. }
  6939. break;
  6940. case "CocoPi":
  6941. aTool = 57;
  6942. _iframe = $$("iframe", {
  6943. "allowpaymentrequest":"allowpaymentrequest",
  6944. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6945. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6946. "frameborder": "no",
  6947. "border": "0",
  6948. "scrolling ": "no",
  6949. "style": {
  6950. "cssText": "border:0;width:100%;height:100%"
  6951. },
  6952. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  6953. })
  6954. _box.appendChild(_iframe);
  6955. _box.appendChild(_jie);
  6956. _formdiv = new U.UF.UI.form(
  6957. "CocoPi",
  6958. _box, {
  6959. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6960. "style": {
  6961. "width": "90%",
  6962. "height": "90%",
  6963. "overflow": 'hidden'
  6964. },
  6965. "onresize": function() {}
  6966. }, {
  6967. closecallback: function() {}
  6968. }, {
  6969. "style": {
  6970. "height": "36px"
  6971. }
  6972. }).form; //創建窗體
  6973. _taskbar = {
  6974. "id": str + _formdiv.id,
  6975. "style": {
  6976. "backgroundImage": "url(/img/icon/cocopi.png)"
  6977. },
  6978. "name": "CocoPi",
  6979. "forms": _formdiv,
  6980. "click": function () {
  6981. U.MD.D.I.openApplication(str, obj, info);
  6982. }
  6983. }
  6984. break;
  6985. }
  6986. if (_iframe) {
  6987. if (str == 'doc') {
  6988. _iframe = _formdiv.querySelector('iframe')
  6989. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6990. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6991. })
  6992. if (onloadListener) {
  6993. _iframe.contentDocument.location.reload()
  6994. } else {
  6995. _iframe.contentDocument.location.reload()
  6996. }
  6997. } else if (str == 'mind') {
  6998. _iframe = _formdiv.querySelector('iframe')
  6999. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7000. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  7001. })
  7002. if (onloadListener) {
  7003. _iframe.contentDocument.location.reload()
  7004. } else {
  7005. _iframe.contentDocument.location.reload()
  7006. }
  7007. } else if (str == 'whiteboard') {
  7008. _iframe = _formdiv.querySelector('iframe')
  7009. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7010. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  7011. })
  7012. if (onloadListener) {
  7013. _iframe.contentDocument.location.reload()
  7014. } else {
  7015. _iframe.contentDocument.location.reload()
  7016. }
  7017. } else if (str == 'CocoPi') {
  7018. _iframe = _formdiv.querySelector('iframe')
  7019. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7020. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  7021. })
  7022. if (onloadListener) {
  7023. _iframe.contentDocument.location.reload()
  7024. } else {
  7025. _iframe.contentDocument.location.reload()
  7026. }
  7027. } else {
  7028. _iframe.onload = () => {};
  7029. }
  7030. _jie.onclick = async() => {
  7031. let text = ''
  7032. let type = '2'
  7033. if (aTool == 1) {
  7034. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  7035. type = '3'
  7036. } else if (aTool == 6) {
  7037. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  7038. type = '1'
  7039. } else if (aTool == 3) {
  7040. text = await U.MD.D.I.getEditorContent(_iframe);
  7041. type = '2'
  7042. } else if (aTool == 57) {
  7043. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  7044. type = '4'
  7045. }
  7046. _loading.style.display = 'flex'
  7047. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  7048. }
  7049. }
  7050. //U.MD.D.I.openClick(str);
  7051. //如果有任務欄信息
  7052. // if (_taskbar) {
  7053. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  7054. // }
  7055. }
  7056. U.MD.D.I.getContents = function(cid, s, task, t, uid, type, iframe) {
  7057. var xmlhttp;
  7058. var Mac, Sn, DeviceId
  7059. if (window.XMLHttpRequest) {
  7060. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7061. xmlhttp = new XMLHttpRequest();
  7062. }
  7063. else {
  7064. // IE6, IE5 瀏覽器執行代碼
  7065. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7066. }
  7067. xmlhttp.onreadystatechange = function() {
  7068. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7069. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7070. // resolve(res.value[0][0].text);
  7071. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7072. }
  7073. }
  7074. }
  7075. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7076. xmlhttp.send();
  7077. }
  7078. U.MD.D.I.getContents2 = function(cid, s, task, t, uid, type, iframe) {
  7079. var xmlhttp;
  7080. var Mac, Sn, DeviceId
  7081. if (window.XMLHttpRequest) {
  7082. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7083. xmlhttp = new XMLHttpRequest();
  7084. }
  7085. else {
  7086. // IE6, IE5 瀏覽器執行代碼
  7087. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7088. }
  7089. xmlhttp.onreadystatechange = function() {
  7090. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7091. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7092. // resolve(res.value[0][0].text);
  7093. if (type == '2') {
  7094. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7095. } else if (type == '3') {
  7096. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  7097. } else if (type == '4') {
  7098. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  7099. }
  7100. } else {
  7101. if (type == '2') {
  7102. iframe.contentWindow.editor.minder.importData('json', '')
  7103. } else if (type == '3') {
  7104. iframe.contentWindow.h.app.updateScene({ elements: [] })
  7105. } else if (type == '4') {
  7106. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7107. }
  7108. }
  7109. }
  7110. }
  7111. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7112. xmlhttp.send();
  7113. }
  7114. U.MD.D.I.setContents = function(cid, s, task, t, uid, type, text, loading, span) {
  7115. var xmlhttp;
  7116. var Mac, Sn, DeviceId
  7117. if (window.XMLHttpRequest) {
  7118. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7119. xmlhttp = new XMLHttpRequest();
  7120. }
  7121. else {
  7122. // IE6, IE5 瀏覽器執行代碼
  7123. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7124. }
  7125. xmlhttp.onreadystatechange = function () {
  7126. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7127. if (xmlhttp.response) {
  7128. // resolve(res.value[0][0].text);
  7129. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  7130. // $(fileInput).val('');
  7131. // });
  7132. span.innerHTML = '上傳成功'
  7133. setTimeout(() => {
  7134. loading.style.display = 'none'
  7135. }, 1000);
  7136. }
  7137. }
  7138. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  7139. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  7140. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  7141. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  7142. // 設置請求頭,表示請求體的編碼格式
  7143. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  7144. // 設置請求體,使用url-encoded格式的數據
  7145. }
  7146. }
  7147. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  7148. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7149. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7150. _userinfo = US.userInfo, //登錄用戶信息
  7151. _userid = US.userInfo.userid //登錄用戶id
  7152. let _iframe;
  7153. let _cid = cid,
  7154. _stage = stage,
  7155. _task = task,
  7156. _tool = tool;
  7157. var _jie = $$("div", {
  7158. "style": {
  7159. "position": "absolute",
  7160. "bottom": "50px",
  7161. "right": "50px",
  7162. "zIndex": "9999",
  7163. "backgroundColor": "#2268bc",
  7164. "color": "#fff",
  7165. "padding": "12px 20px",
  7166. "cursor": "pointer",
  7167. "borderRadius": "4px",
  7168. },
  7169. "innerHTML": "提交作業"
  7170. })
  7171. let aTool = ''
  7172. let _loading = document.createElement('div')
  7173. _loading.style = "width:100%;height:100%;background:#00000000;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
  7174. // _loading.id = "";
  7175. let _lchild = document.createElement('div')
  7176. let _limg = document.createElement('img')
  7177. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7178. _limg.style = "width: 26px;margin-right: 10px;"
  7179. _lchild.appendChild(_limg)
  7180. let _lspan = document.createElement('span')
  7181. _lspan.innerHTML = "上傳中..."
  7182. _lchild.appendChild(_lspan)
  7183. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  7184. _loading.appendChild(_lchild)
  7185. var _box = $$('div', {
  7186. "style": {
  7187. "position": "relative",
  7188. "width": "100%",
  7189. "height": "100%",
  7190. },
  7191. })
  7192. _box.appendChild(_loading)
  7193. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool + _userid
  7194. switch (str) {
  7195. case "CocoPi":
  7196. aTool = 57;
  7197. _iframe = $$("iframe", {
  7198. "allowpaymentrequest": "allowpaymentrequest",
  7199. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7200. "webkitallowfullscreen": "",
  7201. "mozallowfullscreen": "",
  7202. "frameborder": "no",
  7203. "border": "0",
  7204. "scrolling ": "no",
  7205. "style": {
  7206. "cssText": "border:0;width:100%;height:100%"
  7207. },
  7208. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7209. })
  7210. _box.appendChild(_iframe);
  7211. _box.appendChild(_jie);
  7212. _formdiv = new U.UF.UI.form(
  7213. "CocoPi",
  7214. _box, {
  7215. "id": "CocoPi_Upload" + cid + stage + task + tool,
  7216. "style": {
  7217. "width": "90%",
  7218. "height": "90%",
  7219. "overflow": 'hidden'
  7220. },
  7221. "onresize": function () { }
  7222. }, {
  7223. closecallback: function () { }
  7224. }, {
  7225. "style": {
  7226. "height": "36px"
  7227. }
  7228. }).form; //創建窗體
  7229. _taskbar = {
  7230. "id": str + _formdiv.id,
  7231. "style": {
  7232. "backgroundImage": "url(/img/icon/cocopi.png)"
  7233. },
  7234. "name": "CocoPi",
  7235. "forms": _formdiv,
  7236. "click": function() {
  7237. U.MD.D.I.openApplication(str, obj, info);
  7238. }
  7239. }
  7240. break;
  7241. }
  7242. if (_iframe) {
  7243. if (str == 'CocoPi') {
  7244. _iframe = _formdiv.querySelector('iframe')
  7245. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7246. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7247. })
  7248. if (onloadListener) {
  7249. _iframe.contentDocument.location.reload()
  7250. } else {
  7251. _iframe.contentDocument.location.reload()
  7252. }
  7253. }
  7254. _jie.onclick = async() => {
  7255. let text = ''
  7256. if (aTool == 57) {
  7257. text = _iframe.contentWindow.getLoadXmlStr()
  7258. }
  7259. _loading.style.display = 'flex'
  7260. console.log(_loading);
  7261. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function(res) {
  7262. _loading.style.display = 'none'
  7263. let _div = document.createElement('div')
  7264. _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
  7265. let _inner = document.createElement('div')
  7266. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7267. _inner.innerHTML = "上傳成功"
  7268. _div.appendChild(_inner)
  7269. _iframe.contentWindow.window.document.body.appendChild(_div)
  7270. _div.onclick = () => {
  7271. _iframe.contentWindow.window.document.body.removeChild(_div)
  7272. }
  7273. setTimeout(() => {
  7274. _iframe.contentWindow.window.document.body.removeChild(_div)
  7275. }, 1000);
  7276. }, [], { "type": "POST", "withCredentials": true });
  7277. }
  7278. }
  7279. }
  7280. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  7281. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7282. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7283. _userid = student.userid, //登錄用戶id
  7284. _username = student.student //用戶名字
  7285. let _iframe;
  7286. let _cid = cid,
  7287. _stage = stage,
  7288. _task = task,
  7289. _tool = tool;
  7290. var _jie = $$("div", {
  7291. "style": {
  7292. "position": "absolute",
  7293. "bottom": "50px",
  7294. "right": "50px",
  7295. "zIndex": "9999",
  7296. "backgroundColor": "#2268bc",
  7297. "color": "#fff",
  7298. "padding": "12px 20px",
  7299. "cursor": "pointer",
  7300. "borderRadius": "4px",
  7301. },
  7302. "innerHTML": "提交作業"
  7303. })
  7304. let aTool = ''
  7305. let _loading = document.createElement('div')
  7306. _loading.style = "width:100%;height:100%;background:#00000000;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
  7307. // _loading.id = "";
  7308. let _lchild = document.createElement('div')
  7309. let _limg = document.createElement('img')
  7310. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7311. _limg.style = "width: 26px;margin-right: 10px;"
  7312. _lchild.appendChild(_limg)
  7313. let _lspan = document.createElement('span')
  7314. _lspan.innerHTML = "上傳中..."
  7315. _lchild.appendChild(_lspan)
  7316. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  7317. _loading.appendChild(_lchild)
  7318. var _box = $$('div', {
  7319. "style": {
  7320. "position": "relative",
  7321. "width": "100%",
  7322. "height": "100%",
  7323. },
  7324. })
  7325. _box.appendChild(_loading)
  7326. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool + _userid
  7327. switch (str) {
  7328. case "CocoPi":
  7329. aTool = 57;
  7330. _iframe = $$("iframe", {
  7331. "allowpaymentrequest": "allowpaymentrequest",
  7332. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7333. "webkitallowfullscreen": "",
  7334. "mozallowfullscreen": "",
  7335. "frameborder": "no",
  7336. "border": "0",
  7337. "scrolling ": "no",
  7338. "style": {
  7339. "cssText": "border:0;width:100%;height:100%"
  7340. },
  7341. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7342. })
  7343. _box.appendChild(_iframe);
  7344. _box.appendChild(_jie);
  7345. _formdiv = new U.UF.UI.form(
  7346. "CocoPi-" + _username,
  7347. _box, {
  7348. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  7349. "style": {
  7350. "width": "90%",
  7351. "height": "90%",
  7352. "overflow": 'hidden'
  7353. },
  7354. "onresize": function () { }
  7355. }, {
  7356. closecallback: function () { }
  7357. }, {
  7358. "style": {
  7359. "height": "36px"
  7360. }
  7361. }).form; //創建窗體
  7362. _taskbar = {
  7363. "id": str + _formdiv.id,
  7364. "style": {
  7365. "backgroundImage": "url(/img/icon/cocopi.png)"
  7366. },
  7367. "name": "CocoPi",
  7368. "forms": _formdiv,
  7369. "click": function() {
  7370. U.MD.D.I.openApplication(str, obj, info);
  7371. }
  7372. }
  7373. break;
  7374. }
  7375. if (_iframe) {
  7376. if (str == 'CocoPi') {
  7377. _iframe = _formdiv.querySelector('iframe')
  7378. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7379. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7380. })
  7381. if (onloadListener) {
  7382. _iframe.contentDocument.location.reload()
  7383. } else {
  7384. _iframe.contentDocument.location.reload()
  7385. }
  7386. }
  7387. _jie.onclick = async() => {
  7388. let text = ''
  7389. if (aTool == 57) {
  7390. text = _iframe.contentWindow.getLoadXmlStr()
  7391. }
  7392. _loading.style.display = 'flex'
  7393. console.log(_loading);
  7394. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function(res) {
  7395. _loading.style.display = 'none'
  7396. let _div = document.createElement('div')
  7397. _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
  7398. let _inner = document.createElement('div')
  7399. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7400. _inner.innerHTML = "上傳成功"
  7401. _div.appendChild(_inner)
  7402. _iframe.contentWindow.window.document.body.appendChild(_div)
  7403. _div.onclick = () => {
  7404. _iframe.contentWindow.window.document.body.removeChild(_div)
  7405. }
  7406. setTimeout(() => {
  7407. _iframe.contentWindow.window.document.body.removeChild(_div)
  7408. }, 1000);
  7409. }, [], { "type": "POST", "withCredentials": true });
  7410. }
  7411. }
  7412. }
  7413. U.MD.D.I.getUploadContent = function(cid, s, task, t, uid, atool, type, iframe) {
  7414. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function(res) {
  7415. if (res.value[0].length > 0) {
  7416. if (atool == 57) {
  7417. iframe.contentWindow.loadingXml(res.value[0][0].content)
  7418. }
  7419. } else {
  7420. if (atool == 57) {
  7421. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  7422. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7423. }
  7424. }
  7425. }, [], { "type": "POST", "withCredentials": true });
  7426. }