DeskTop.js 440 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602
  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": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  518. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  519. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  520. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  521. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  522. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  523. ];
  524. //龍華中心小學教師桌面圖標的全局變量
  525. U.MD.D.I.longhuateacherDeskIcon = [
  526. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  527. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  528. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  529. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  530. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  531. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  532. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  533. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  534. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  535. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  536. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  537. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  538. ];
  539. //教科院實小教師桌面圖標的全局變量
  540. U.MD.D.I.siesteacherDeskIcon = [
  541. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  542. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  543. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  544. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  545. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  546. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  547. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  548. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  549. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  550. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  551. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  552. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  553. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  554. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  555. ];
  556. //教科院實小教師桌面圖標的全局變量
  557. U.MD.D.I.siesStudentDeskIcon = [
  558. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  559. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  560. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  561. ];
  562. //福田
  563. U.MD.D.I.gdjgTeacherDeskIcon = [
  564. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  565. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  566. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  567. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  568. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  569. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  570. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  571. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  572. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  573. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  574. ];
  575. //gdjg
  576. U.MD.D.I.gdjgAdminDeskIcon = [
  577. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  578. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  579. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  580. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  581. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  582. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  583. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  584. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  585. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  586. ];
  587. //hk
  588. U.MD.D.I.hkteacherDeskIcon = [
  589. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  590. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  591. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  592. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  593. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  594. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  595. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  596. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  597. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  598. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  599. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  600. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  601. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  602. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  603. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  604. ];
  605. //hk
  606. U.MD.D.I.hkStudentDeskIcon = [
  607. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  608. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  609. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  610. ];
  611. //香海正覺蓮社佛教正覺中學
  612. U.MD.D.I.hkZJLSteacherDeskIcon = [
  613. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  614. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  615. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  616. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  617. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  618. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  619. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  620. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  621. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  622. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  623. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  624. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  625. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  626. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  627. ];
  628. //香海正覺蓮社佛教正覺中學
  629. U.MD.D.I.hkZJLSStudentDeskIcon = [
  630. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  631. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  632. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  633. ];
  634. //雲海
  635. U.MD.D.I.yunhaiTeacherDeskIcon = [
  636. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  637. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  638. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  639. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  640. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  641. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  642. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  643. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  644. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  645. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  646. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  647. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  648. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  649. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  650. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  651. ];
  652. //福田
  653. U.MD.D.I.heyuanTeacherDeskIcon = [
  654. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  655. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  656. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  657. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  658. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  659. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  660. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  661. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  662. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  663. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  664. ];
  665. //福田
  666. U.MD.D.I.heyuanAdminDeskIcon = [
  667. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  668. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  669. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  670. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  671. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  672. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  673. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  674. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  675. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  676. ];
  677. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  678. U.MD.D.I.szherTeacherDeskIcon = [
  679. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  680. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  681. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  682. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  683. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  684. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  685. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  686. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  687. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  688. ];
  689. //dsei
  690. U.MD.D.I.dseiTeacherDeskIcon = [
  691. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  692. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  693. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  694. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  695. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  696. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  697. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  698. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  699. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  700. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  701. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  702. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  703. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  704. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  705. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  706. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  707. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  708. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  709. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  710. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  711. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  712. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  713. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  714. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  715. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  716. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  717. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  718. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  719. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  720. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  721. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  722. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  723. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  724. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  725. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  726. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  727. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  728. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  729. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  730. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  731. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  732. ];
  733. //dsei
  734. U.MD.D.I.dseiAdminDeskIcon = [
  735. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  736. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  737. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  738. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  739. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  740. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  741. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  742. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  743. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  744. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  745. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  746. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  747. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  748. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  749. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  750. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  751. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  752. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  753. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  754. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  755. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  756. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  757. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  758. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  759. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  760. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  761. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  762. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  763. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  764. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  765. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  766. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  767. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  768. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  769. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  770. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  771. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  772. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  773. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  774. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  775. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  776. ];
  777. //dsei
  778. U.MD.D.I.dseiStudentDeskIcon = [
  779. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  780. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  781. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  782. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  783. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  784. ];
  785. //未來教育基地
  786. U.MD.D.I.szjkyTeacherDeskIcon = [
  787. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  788. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  789. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  790. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  791. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  792. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  793. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  794. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  795. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  796. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  797. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  798. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  799. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  800. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  801. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  802. ];
  803. //未來教育基地
  804. U.MD.D.I.szjkyAdminDeskIcon = [
  805. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  806. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  807. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  808. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  809. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  810. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  811. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  812. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  813. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  814. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  815. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  816. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  817. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  818. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  819. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  820. ];
  821. //未來教育基地
  822. U.MD.D.I.szjkyStudentDeskIcon = [
  823. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  824. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  825. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  826. ];
  827. //成華教育局
  828. U.MD.D.I.chjyjTeacherDeskIcon = [
  829. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  830. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  831. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  832. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  833. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  834. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  835. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  836. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  837. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  838. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  839. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  840. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  841. ];
  842. //成華教育局chjyj
  843. U.MD.D.I.chjyjAdminDeskIcon = [
  844. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  845. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  846. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  847. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  848. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  849. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  850. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  851. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  852. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  853. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  854. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  855. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  856. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  857. ];
  858. //成華教育局chjyj
  859. U.MD.D.I.chjyjStudentDeskIcon = [
  860. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  861. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  862. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  863. ];
  864. //#region 桌面初始化a
  865. /**
  866. * 初始化桌面的起始函數
  867. *
  868. */
  869. U.MD.D.I.init = function() {
  870. if ($("#U_MD_D_K")[0]) {
  871. //初始化桌面圖標
  872. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  873. // var clickUrl = ':12588/requestIp.php';
  874. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  875. // U.MD.D.I.Ip = data;
  876. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  877. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  878. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  879. // })
  880. // //初始化任務欄,因為是靜態的,所以直接改變樣式即可.
  881. // })
  882. }
  883. }
  884. /**
  885. * 模式切換
  886. *
  887. */
  888. U.MD.D.I.ModeCheck = function(type) {
  889. if (US.Config.type == type) {
  890. return
  891. }
  892. US.Config.type = type
  893. $('.U_PBL_Check .active')[0].className = ''
  894. if (type == 1) {
  895. $('.U_PBL_Check div')[0].className = 'active'
  896. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  897. } else {
  898. $('.U_PBL_Check div')[1].className = 'active'
  899. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  900. }
  901. //初始化桌面圖標
  902. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  903. if (type == 2) {
  904. U.MD.D.I.openApplication("project")
  905. }
  906. }
  907. /**
  908. * 隱藏任務欄
  909. *
  910. * @param {element} 桌面元素
  911. */
  912. U.MD.D.I.hiddenTaskbar = function(el) {
  913. //任務欄位置變小
  914. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  915. //桌面的位置變大
  916. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  917. }
  918. /**
  919. * 隱藏任務欄
  920. *
  921. * @param {element} 桌面元素
  922. */
  923. U.MD.D.I.hiddenTaskbarout = function(el) {
  924. //任務欄位置變小
  925. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  926. //任務欄位置變化
  927. U.selectEl(el).css({ "bottom": "-60px" });
  928. //桌面的位置變大
  929. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  930. }
  931. }
  932. /**
  933. * 初始化打印桌面圖標
  934. *
  935. * @param {element} 桌面元素
  936. */
  937. U.MD.D.I.initDesktopIcons = function(el, type) {
  938. var i, //用於循環
  939. _content, //桌面圖標元素
  940. _iconcontent, //桌面圖標元素
  941. _frag = $$("frag"), //定義一個碎片元素
  942. _type = US.userInfo.type,
  943. _org = US.userInfo.org,
  944. _oid = US.userInfo.organizeid,
  945. _role = US.userInfo.role,
  946. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //獲取教師端桌面圖標
  947. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //極簡模式桌面圖標
  948. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //獲取教師端桌面圖標
  949. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //獲取學生端桌面圖標
  950. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //獲取學生端桌面圖標
  951. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //獲取學生端桌面圖標
  952. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //獲取組織桌面圖標
  953. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  954. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  955. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  956. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //獲取測試學校桌面圖標
  957. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon, //獲取北師大
  958. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon, //獲取周佳名工作室
  959. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon, //獲取松山湖
  960. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon, //獲取萬科雙語
  961. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon, //獲取萬科雙語
  962. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon, //獲取萬科雙語
  963. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon, //獲取未來小學
  964. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon, //獲取未來小學
  965. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //獲取光明學校桌面圖標
  966. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //獲取光明學校桌面圖標
  967. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon, //騰訊學生
  968. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon, //騰訊學生
  969. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon, //福田
  970. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon, //福田
  971. _szjkyTeacherDeskIconInfo = U.MD.D.I.szjkyTeacherDeskIcon, //未來教育基地
  972. _szjkyAdminDeskIconInfo = U.MD.D.I.szjkyAdminDeskIcon, //未來教育基地
  973. _szjkyStudentDeskIconInfo = U.MD.D.I.szjkyStudentDeskIcon, //未來教育基地
  974. _chjyjTeacherDeskIconInfo = U.MD.D.I.chjyjTeacherDeskIcon, //成華教育局
  975. _chjyjAdminDeskIconInfo = U.MD.D.I.chjyjAdminDeskIcon, //成華教育局
  976. _chjyjStudentDeskIconInfo = U.MD.D.I.chjyjStudentDeskIcon, //成華教育局
  977. _dseiTeacherDeskIconInfo = U.MD.D.I.dseiTeacherDeskIcon, //dsei
  978. _dseiAdminDeskIconInfo = U.MD.D.I.dseiAdminDeskIcon, //dsei
  979. _dseiStudentDeskIconInfo = U.MD.D.I.dseiStudentDeskIcon, //dsei
  980. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon, //福田
  981. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon, //福田
  982. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon, //szher
  983. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon, //
  984. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon, //
  985. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon, //lotech
  986. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon, //龍華中心
  987. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon, //sies
  988. _siesStudentDeskIconInfo = U.MD.D.I.siesStudentDeskIcon, //sies
  989. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon, //騰訊學生
  990. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon, //hk
  991. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon, //hk
  992. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon, //hk
  993. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon, //hk
  994. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon, //雲海
  995. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon, //網絡夏令營
  996. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon, //網絡夏令營
  997. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon; //網絡夏令營
  998. 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'];
  999. 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'];
  1000. //清楚桌面圖標
  1001. el.innerHTML = "";
  1002. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  1003. _teacherDesktopIconInfo.push(
  1004. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1005. { "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)" } },
  1006. )
  1007. _easyDesktopIconInfo.push({ "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } })
  1008. }
  1009. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  1010. _teacherDesktopIconInfo.push(
  1011. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1012. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  1013. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1014. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1015. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  1016. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  1017. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1018. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1019. )
  1020. }
  1021. if (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
  1022. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  1023. if (el.Name == '項目管理') {
  1024. el.Name = 'PBL項目'
  1025. }
  1026. return el
  1027. })
  1028. }
  1029. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  1030. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  1031. return el.Name != '魔盒識字' && el.Name != '24點'
  1032. })
  1033. }
  1034. 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) {
  1035. _studentDesktopIconInfo.push({ "Name": "我的評價", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } }, )
  1036. }
  1037. //循環創建桌面圖標
  1038. if (type == 1) {
  1039. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  1040. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1041. _content = $$("div", {
  1042. className: "U_MD_D_KO",
  1043. "onmousedown": U.UF.C.closure(function(obj) {
  1044. //防止拖動圖標即打開了桌面應用
  1045. U.MD.D.click(this, obj);
  1046. }, [_studentDesktopIconInfo[i]]),
  1047. "onclick": U.UF.C.closure(function(obj) {
  1048. //防止拖動圖標即打開了桌面應用
  1049. U.MD.D.click(this, obj);
  1050. }, [_studentDesktopIconInfo[i]])
  1051. }, _frag); //
  1052. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1053. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1054. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1055. }
  1056. } else if (_type == 2 && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1057. for (i = 0; i < _hkZJLSStudentDeskIconInfo.length; i++) {
  1058. _content = $$("div", {
  1059. className: "U_MD_D_KO",
  1060. "onmousedown": U.UF.C.closure(function(obj) {
  1061. //防止拖動圖標即打開了桌面應用
  1062. U.MD.D.click(this, obj);
  1063. }, [_hkZJLSStudentDeskIconInfo[i]]),
  1064. "onclick": U.UF.C.closure(function(obj) {
  1065. //防止拖動圖標即打開了桌面應用
  1066. U.MD.D.click(this, obj);
  1067. }, [_hkZJLSStudentDeskIconInfo[i]])
  1068. }, _frag); //
  1069. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1070. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  1071. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  1072. } //
  1073. } else if (_type == 2 && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5")) {
  1074. for (i = 0; i < _chjyjStudentDeskIconInfo.length; i++) {
  1075. _content = $$("div", {
  1076. className: "U_MD_D_KO",
  1077. "onmousedown": U.UF.C.closure(function(obj) {
  1078. //防止拖動圖標即打開了桌面應用
  1079. U.MD.D.click(this, obj);
  1080. }, [_chjyjStudentDeskIconInfo[i]]),
  1081. "onclick": U.UF.C.closure(function(obj) {
  1082. //防止拖動圖標即打開了桌面應用
  1083. U.MD.D.click(this, obj);
  1084. }, [_chjyjStudentDeskIconInfo[i]])
  1085. }, _frag); //
  1086. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1087. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjStudentDeskIconInfo[i].style }, _iconcontent);
  1088. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjStudentDeskIconInfo[i].Name }, _iconcontent);
  1089. }
  1090. } else if (_type == 2 && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5")) {
  1091. for (i = 0; i < _szjkyStudentDeskIconInfo.length; i++) {
  1092. _content = $$("div", {
  1093. className: "U_MD_D_KO",
  1094. "onmousedown": U.UF.C.closure(function(obj) {
  1095. //防止拖動圖標即打開了桌面應用
  1096. U.MD.D.click(this, obj);
  1097. }, [_szjkyStudentDeskIconInfo[i]]),
  1098. "onclick": U.UF.C.closure(function(obj) {
  1099. //防止拖動圖標即打開了桌面應用
  1100. U.MD.D.click(this, obj);
  1101. }, [_szjkyStudentDeskIconInfo[i]])
  1102. }, _frag); //
  1103. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1104. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyStudentDeskIconInfo[i].style }, _iconcontent);
  1105. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyStudentDeskIconInfo[i].Name }, _iconcontent);
  1106. }
  1107. } else if (_type == 2 && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5")) {
  1108. for (i = 0; i < _dseiStudentDeskIconInfo.length; i++) {
  1109. _content = $$("div", {
  1110. className: "U_MD_D_KO",
  1111. "onmousedown": U.UF.C.closure(function(obj) {
  1112. //防止拖動圖標即打開了桌面應用
  1113. U.MD.D.click(this, obj);
  1114. }, [_dseiStudentDeskIconInfo[i]]),
  1115. "onclick": U.UF.C.closure(function(obj) {
  1116. //防止拖動圖標即打開了桌面應用
  1117. U.MD.D.click(this, obj);
  1118. }, [_dseiStudentDeskIconInfo[i]])
  1119. }, _frag); //
  1120. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1121. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiStudentDeskIconInfo[i].style }, _iconcontent);
  1122. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiStudentDeskIconInfo[i].Name }, _iconcontent);
  1123. }
  1124. } else if (_type == 2 && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1125. for (i = 0; i < _siesStudentDeskIconInfo.length; i++) {
  1126. _content = $$("div", {
  1127. className: "U_MD_D_KO",
  1128. "onmousedown": U.UF.C.closure(function(obj) {
  1129. //防止拖動圖標即打開了桌面應用
  1130. U.MD.D.click(this, obj);
  1131. }, [_siesStudentDeskIconInfo[i]]),
  1132. "onclick": U.UF.C.closure(function(obj) {
  1133. //防止拖動圖標即打開了桌面應用
  1134. U.MD.D.click(this, obj);
  1135. }, [_siesStudentDeskIconInfo[i]])
  1136. }, _frag); //
  1137. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1138. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesStudentDeskIconInfo[i].style }, _iconcontent);
  1139. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesStudentDeskIconInfo[i].Name }, _iconcontent);
  1140. }
  1141. } else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1142. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  1143. _content = $$("div", {
  1144. className: "U_MD_D_KO",
  1145. "onmousedown": U.UF.C.closure(function(obj) {
  1146. //防止拖動圖標即打開了桌面應用
  1147. U.MD.D.click(this, obj);
  1148. }, [_hkStudentDeskIconInfo[i]]),
  1149. "onclick": U.UF.C.closure(function(obj) {
  1150. //防止拖動圖標即打開了桌面應用
  1151. U.MD.D.click(this, obj);
  1152. }, [_hkStudentDeskIconInfo[i]])
  1153. }, _frag); //
  1154. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1155. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  1156. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  1157. }
  1158. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  1159. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1160. _content = $$("div", {
  1161. className: "U_MD_D_KO",
  1162. "onmousedown": U.UF.C.closure(function(obj) {
  1163. //防止拖動圖標即打開了桌面應用
  1164. U.MD.D.click(this, obj);
  1165. }, [_studentDesktopIconInfo[i]]),
  1166. "onclick": U.UF.C.closure(function(obj) {
  1167. //防止拖動圖標即打開了桌面應用
  1168. U.MD.D.click(this, obj);
  1169. }, [_studentDesktopIconInfo[i]])
  1170. }, _frag); //
  1171. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1172. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1173. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1174. }
  1175. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  1176. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  1177. _content = $$("div", {
  1178. className: "U_MD_D_KO",
  1179. "onmousedown": U.UF.C.closure(function(obj) {
  1180. //防止拖動圖標即打開了桌面應用
  1181. U.MD.D.click(this, obj);
  1182. }, [_tcStudentDeskIconInfo[i]]),
  1183. "onclick": U.UF.C.closure(function(obj) {
  1184. //防止拖動圖標即打開了桌面應用
  1185. U.MD.D.click(this, obj);
  1186. }, [_tcStudentDeskIconInfo[i]])
  1187. }, _frag); //
  1188. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1189. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  1190. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  1191. }
  1192. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  1193. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  1194. _content = $$("div", {
  1195. className: "U_MD_D_KO",
  1196. "onmousedown": U.UF.C.closure(function(obj) {
  1197. //防止拖動圖標即打開了桌面應用
  1198. U.MD.D.click(this, obj);
  1199. }, [_szscStudentDeskIconInfo[i]]),
  1200. "onclick": U.UF.C.closure(function(obj) {
  1201. //防止拖動圖標即打開了桌面應用
  1202. U.MD.D.click(this, obj);
  1203. }, [_szscStudentDeskIconInfo[i]])
  1204. }, _frag); //
  1205. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1206. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  1207. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  1208. }
  1209. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  1210. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  1211. _content = $$("div", {
  1212. className: "U_MD_D_KO",
  1213. "onmousedown": U.UF.C.closure(function(obj) {
  1214. //防止拖動圖標即打開了桌面應用
  1215. U.MD.D.click(this, obj);
  1216. }, [_studentDesktopIconInfo3[i]]),
  1217. "onclick": U.UF.C.closure(function(obj) {
  1218. //防止拖動圖標即打開了桌面應用
  1219. U.MD.D.click(this, obj);
  1220. }, [_studentDesktopIconInfo3[i]])
  1221. }, _frag); //
  1222. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1223. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  1224. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  1225. }
  1226. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  1227. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  1228. _content = $$("div", {
  1229. className: "U_MD_D_KO",
  1230. "onmousedown": U.UF.C.closure(function(obj) {
  1231. //防止拖動圖標即打開了桌面應用
  1232. U.MD.D.click(this, obj);
  1233. }, [_studentDesktopIconInfo2[i]]),
  1234. "onclick": U.UF.C.closure(function(obj) {
  1235. //防止拖動圖標即打開了桌面應用
  1236. U.MD.D.click(this, obj);
  1237. }, [_studentDesktopIconInfo2[i]])
  1238. }, _frag); //
  1239. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1240. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  1241. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  1242. }
  1243. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  1244. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  1245. _content = $$("div", {
  1246. className: "U_MD_D_KO",
  1247. "onmousedown": U.UF.C.closure(function(obj) {
  1248. //防止拖動圖標即打開了桌面應用
  1249. U.MD.D.click(this, obj);
  1250. }, [_wanketeacherDesktopIconInfo[i]]),
  1251. "onclick": U.UF.C.closure(function(obj) {
  1252. //防止拖動圖標即打開了桌面應用
  1253. U.MD.D.click(this, obj);
  1254. }, [_wanketeacherDesktopIconInfo[i]])
  1255. }, _frag); //
  1256. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1257. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  1258. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  1259. }
  1260. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1261. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  1262. _content = $$("div", {
  1263. className: "U_MD_D_KO",
  1264. "onmousedown": U.UF.C.closure(function(obj) {
  1265. //防止拖動圖標即打開了桌面應用
  1266. U.MD.D.click(this, obj);
  1267. }, [_wankeAdminDesktopIconInfo[i]]),
  1268. "onclick": U.UF.C.closure(function(obj) {
  1269. //防止拖動圖標即打開了桌面應用
  1270. U.MD.D.click(this, obj);
  1271. }, [_wankeAdminDesktopIconInfo[i]])
  1272. }, _frag); //
  1273. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1274. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1275. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1276. }
  1277. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1278. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  1279. _content = $$("div", {
  1280. className: "U_MD_D_KO",
  1281. "onmousedown": U.UF.C.closure(function(obj) {
  1282. //防止拖動圖標即打開了桌面應用
  1283. U.MD.D.click(this, obj);
  1284. }, [_teacherDesktopIconInfo2[i]]),
  1285. "onclick": U.UF.C.closure(function(obj) {
  1286. //防止拖動圖標即打開了桌面應用
  1287. U.MD.D.click(this, obj);
  1288. }, [_teacherDesktopIconInfo2[i]])
  1289. }, _frag); //
  1290. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1291. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1292. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1293. }
  1294. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1295. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  1296. _content = $$("div", {
  1297. className: "U_MD_D_KO",
  1298. "onmousedown": U.UF.C.closure(function(obj) {
  1299. //防止拖動圖標即打開了桌面應用
  1300. U.MD.D.click(this, obj);
  1301. }, [_lotechTeacherDeskIconInfo[i]]),
  1302. "onclick": U.UF.C.closure(function(obj) {
  1303. //防止拖動圖標即打開了桌面應用
  1304. U.MD.D.click(this, obj);
  1305. }, [_lotechTeacherDeskIconInfo[i]])
  1306. }, _frag); //
  1307. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1308. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1309. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1310. }//
  1311. } else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1312. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1313. _content = $$("div", {
  1314. className: "U_MD_D_KO",
  1315. "onmousedown": U.UF.C.closure(function(obj) {
  1316. //防止拖動圖標即打開了桌面應用
  1317. U.MD.D.click(this, obj);
  1318. }, [_siesTeacherDeskIconInfo[i]]),
  1319. "onclick": U.UF.C.closure(function(obj) {
  1320. //防止拖動圖標即打開了桌面應用
  1321. U.MD.D.click(this, obj);
  1322. }, [_siesTeacherDeskIconInfo[i]])
  1323. }, _frag); //
  1324. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1325. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1326. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1327. }
  1328. } else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1329. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1330. _content = $$("div", {
  1331. className: "U_MD_D_KO",
  1332. "onmousedown": U.UF.C.closure(function(obj) {
  1333. //防止拖動圖標即打開了桌面應用
  1334. U.MD.D.click(this, obj);
  1335. }, [_longhuaTeacherDeskIconInfo[i]]),
  1336. "onclick": U.UF.C.closure(function(obj) {
  1337. //防止拖動圖標即打開了桌面應用
  1338. U.MD.D.click(this, obj);
  1339. }, [_longhuaTeacherDeskIconInfo[i]])
  1340. }, _frag); //
  1341. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1342. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1343. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1344. }
  1345. } else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1346. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1347. _content = $$("div", {
  1348. className: "U_MD_D_KO",
  1349. "onmousedown": U.UF.C.closure(function(obj) {
  1350. //防止拖動圖標即打開了桌面應用
  1351. U.MD.D.click(this, obj);
  1352. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1353. "onclick": U.UF.C.closure(function(obj) {
  1354. //防止拖動圖標即打開了桌面應用
  1355. U.MD.D.click(this, obj);
  1356. }, [_yunhaiTeacherDeskIconInfo[i]])
  1357. }, _frag); //
  1358. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1359. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1360. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1361. } //_hkStudentDeskIconInfo
  1362. } else if ((_type == 1 || _type == 4) && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1363. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.length; i++) {
  1364. _content = $$("div", {
  1365. className: "U_MD_D_KO",
  1366. "onmousedown": U.UF.C.closure(function(obj) {
  1367. //防止拖動圖標即打開了桌面應用
  1368. U.MD.D.click(this, obj);
  1369. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1370. "onclick": U.UF.C.closure(function(obj) {
  1371. //防止拖動圖標即打開了桌面應用
  1372. U.MD.D.click(this, obj);
  1373. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1374. }, _frag); //
  1375. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1376. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1377. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1378. }
  1379. } else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1380. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1381. _content = $$("div", {
  1382. className: "U_MD_D_KO",
  1383. "onmousedown": U.UF.C.closure(function(obj) {
  1384. //防止拖動圖標即打開了桌面應用
  1385. U.MD.D.click(this, obj);
  1386. }, [_hkTeacherDeskIconInfo[i]]),
  1387. "onclick": U.UF.C.closure(function(obj) {
  1388. //防止拖動圖標即打開了桌面應用
  1389. U.MD.D.click(this, obj);
  1390. }, [_hkTeacherDeskIconInfo[i]])
  1391. }, _frag); //
  1392. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1393. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1394. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1395. }
  1396. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1397. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1398. _content = $$("div", {
  1399. className: "U_MD_D_KO",
  1400. "onmousedown": U.UF.C.closure(function(obj) {
  1401. //防止拖動圖標即打開了桌面應用
  1402. U.MD.D.click(this, obj);
  1403. }, [_gdjgAdminDeskIconInfo[i]]),
  1404. "onclick": U.UF.C.closure(function(obj) {
  1405. //防止拖動圖標即打開了桌面應用
  1406. U.MD.D.click(this, obj);
  1407. }, [_gdjgAdminDeskIconInfo[i]])
  1408. }, _frag); //
  1409. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1410. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1411. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1412. }
  1413. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1414. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1415. _content = $$("div", {
  1416. className: "U_MD_D_KO",
  1417. "onmousedown": U.UF.C.closure(function(obj) {
  1418. //防止拖動圖標即打開了桌面應用
  1419. U.MD.D.click(this, obj);
  1420. }, [_gdjgTeacherDeskIconInfo[i]]),
  1421. "onclick": U.UF.C.closure(function(obj) {
  1422. //防止拖動圖標即打開了桌面應用
  1423. U.MD.D.click(this, obj);
  1424. }, [_gdjgTeacherDeskIconInfo[i]])
  1425. }, _frag); //
  1426. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1427. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1428. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1429. }
  1430. } else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1431. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1432. _content = $$("div", {
  1433. className: "U_MD_D_KO",
  1434. "onmousedown": U.UF.C.closure(function(obj) {
  1435. //防止拖動圖標即打開了桌面應用
  1436. U.MD.D.click(this, obj);
  1437. }, [_szherTeacherDeskIconInfo[i]]),
  1438. "onclick": U.UF.C.closure(function(obj) {
  1439. //防止拖動圖標即打開了桌面應用
  1440. U.MD.D.click(this, obj);
  1441. }, [_szherTeacherDeskIconInfo[i]])
  1442. }, _frag); //
  1443. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1444. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1445. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1446. }
  1447. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1448. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1449. _content = $$("div", {
  1450. className: "U_MD_D_KO",
  1451. "onmousedown": U.UF.C.closure(function(obj) {
  1452. //防止拖動圖標即打開了桌面應用
  1453. U.MD.D.click(this, obj);
  1454. }, [_heyuannAdminDeskIconInfo[i]]),
  1455. "onclick": U.UF.C.closure(function(obj) {
  1456. //防止拖動圖標即打開了桌面應用
  1457. U.MD.D.click(this, obj);
  1458. }, [_heyuannAdminDeskIconInfo[i]])
  1459. }, _frag); //
  1460. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1461. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1462. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1463. }
  1464. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1465. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1466. _content = $$("div", {
  1467. className: "U_MD_D_KO",
  1468. "onmousedown": U.UF.C.closure(function(obj) {
  1469. //防止拖動圖標即打開了桌面應用
  1470. U.MD.D.click(this, obj);
  1471. }, [_heyuanTeacherDeskIconInfo[i]]),
  1472. "onclick": U.UF.C.closure(function(obj) {
  1473. //防止拖動圖標即打開了桌面應用
  1474. U.MD.D.click(this, obj);
  1475. }, [_heyuanTeacherDeskIconInfo[i]])
  1476. }, _frag); //
  1477. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1478. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1479. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1480. } //
  1481. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 1) {
  1482. for (i = 0; i < _dseiAdminDeskIconInfo.length; i++) {
  1483. _content = $$("div", {
  1484. className: "U_MD_D_KO",
  1485. "onmousedown": U.UF.C.closure(function(obj) {
  1486. //防止拖動圖標即打開了桌面應用
  1487. U.MD.D.click(this, obj);
  1488. }, [_dseiAdminDeskIconInfo[i]]),
  1489. "onclick": U.UF.C.closure(function(obj) {
  1490. //防止拖動圖標即打開了桌面應用
  1491. U.MD.D.click(this, obj);
  1492. }, [_dseiAdminDeskIconInfo[i]])
  1493. }, _frag); //
  1494. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1495. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiAdminDeskIconInfo[i].style }, _iconcontent);
  1496. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiAdminDeskIconInfo[i].Name }, _iconcontent);
  1497. }
  1498. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 0) {
  1499. for (i = 0; i < _dseiTeacherDeskIconInfo.length; i++) {
  1500. _content = $$("div", {
  1501. className: "U_MD_D_KO",
  1502. "onmousedown": U.UF.C.closure(function(obj) {
  1503. //防止拖動圖標即打開了桌面應用
  1504. U.MD.D.click(this, obj);
  1505. }, [_dseiTeacherDeskIconInfo[i]]),
  1506. "onclick": U.UF.C.closure(function(obj) {
  1507. //防止拖動圖標即打開了桌面應用
  1508. U.MD.D.click(this, obj);
  1509. }, [_dseiTeacherDeskIconInfo[i]])
  1510. }, _frag); //
  1511. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1512. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiTeacherDeskIconInfo[i].style }, _iconcontent);
  1513. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1514. } //
  1515. }else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 1) {
  1516. for (i = 0; i < _chjyjAdminDeskIconInfo.length; i++) {
  1517. _content = $$("div", {
  1518. className: "U_MD_D_KO",
  1519. "onmousedown": U.UF.C.closure(function(obj) {
  1520. //防止拖動圖標即打開了桌面應用
  1521. U.MD.D.click(this, obj);
  1522. }, [_chjyjAdminDeskIconInfo[i]]),
  1523. "onclick": U.UF.C.closure(function(obj) {
  1524. //防止拖動圖標即打開了桌面應用
  1525. U.MD.D.click(this, obj);
  1526. }, [_chjyjAdminDeskIconInfo[i]])
  1527. }, _frag); //
  1528. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1529. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjAdminDeskIconInfo[i].style }, _iconcontent);
  1530. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjAdminDeskIconInfo[i].Name }, _iconcontent);
  1531. }//
  1532. } else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 0) {
  1533. for (i = 0; i < _chjyjTeacherDeskIconInfo.length; i++) {
  1534. _content = $$("div", {
  1535. className: "U_MD_D_KO",
  1536. "onmousedown": U.UF.C.closure(function(obj) {
  1537. //防止拖動圖標即打開了桌面應用
  1538. U.MD.D.click(this, obj);
  1539. }, [_chjyjTeacherDeskIconInfo[i]]),
  1540. "onclick": U.UF.C.closure(function(obj) {
  1541. //防止拖動圖標即打開了桌面應用
  1542. U.MD.D.click(this, obj);
  1543. }, [_chjyjTeacherDeskIconInfo[i]])
  1544. }, _frag); //
  1545. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1546. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjTeacherDeskIconInfo[i].style }, _iconcontent);
  1547. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjTeacherDeskIconInfo[i].Name }, _iconcontent);
  1548. }
  1549. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 1) {
  1550. for (i = 0; i < _szjkyAdminDeskIconInfo.length; i++) {
  1551. _content = $$("div", {
  1552. className: "U_MD_D_KO",
  1553. "onmousedown": U.UF.C.closure(function(obj) {
  1554. //防止拖動圖標即打開了桌面應用
  1555. U.MD.D.click(this, obj);
  1556. }, [_szjkyAdminDeskIconInfo[i]]),
  1557. "onclick": U.UF.C.closure(function(obj) {
  1558. //防止拖動圖標即打開了桌面應用
  1559. U.MD.D.click(this, obj);
  1560. }, [_szjkyAdminDeskIconInfo[i]])
  1561. }, _frag); //
  1562. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1563. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyAdminDeskIconInfo[i].style }, _iconcontent);
  1564. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyAdminDeskIconInfo[i].Name }, _iconcontent);
  1565. }//
  1566. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 0) {
  1567. for (i = 0; i < _szjkyTeacherDeskIconInfo.length; i++) {
  1568. _content = $$("div", {
  1569. className: "U_MD_D_KO",
  1570. "onmousedown": U.UF.C.closure(function(obj) {
  1571. //防止拖動圖標即打開了桌面應用
  1572. U.MD.D.click(this, obj);
  1573. }, [_szjkyTeacherDeskIconInfo[i]]),
  1574. "onclick": U.UF.C.closure(function(obj) {
  1575. //防止拖動圖標即打開了桌面應用
  1576. U.MD.D.click(this, obj);
  1577. }, [_szjkyTeacherDeskIconInfo[i]])
  1578. }, _frag); //
  1579. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1580. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyTeacherDeskIconInfo[i].style }, _iconcontent);
  1581. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyTeacherDeskIconInfo[i].Name }, _iconcontent);
  1582. }
  1583. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1584. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1585. _content = $$("div", {
  1586. className: "U_MD_D_KO",
  1587. "onmousedown": U.UF.C.closure(function(obj) {
  1588. //防止拖動圖標即打開了桌面應用
  1589. U.MD.D.click(this, obj);
  1590. }, [_futianAdminDeskIconInfo[i]]),
  1591. "onclick": U.UF.C.closure(function(obj) {
  1592. //防止拖動圖標即打開了桌面應用
  1593. U.MD.D.click(this, obj);
  1594. }, [_futianAdminDeskIconInfo[i]])
  1595. }, _frag); //
  1596. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1597. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1598. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1599. }
  1600. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1601. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1602. _content = $$("div", {
  1603. className: "U_MD_D_KO",
  1604. "onmousedown": U.UF.C.closure(function(obj) {
  1605. //防止拖動圖標即打開了桌面應用
  1606. U.MD.D.click(this, obj);
  1607. }, [_futianTeacherDeskIconInfo[i]]),
  1608. "onclick": U.UF.C.closure(function(obj) {
  1609. //防止拖動圖標即打開了桌面應用
  1610. U.MD.D.click(this, obj);
  1611. }, [_futianTeacherDeskIconInfo[i]])
  1612. }, _frag); //
  1613. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1614. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1615. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1616. }
  1617. } else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1618. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1619. _content = $$("div", {
  1620. className: "U_MD_D_KO",
  1621. "onmousedown": U.UF.C.closure(function(obj) {
  1622. //防止拖動圖標即打開了桌面應用
  1623. U.MD.D.click(this, obj);
  1624. }, [_MingdeTeacherDeskIcon[i]]),
  1625. "onclick": U.UF.C.closure(function(obj) {
  1626. //防止拖動圖標即打開了桌面應用
  1627. U.MD.D.click(this, obj);
  1628. }, [_MingdeTeacherDeskIcon[i]])
  1629. }, _frag); //
  1630. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1631. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1632. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1633. }
  1634. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1635. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1636. _content = $$("div", {
  1637. className: "U_MD_D_KO",
  1638. "onmousedown": U.UF.C.closure(function(obj) {
  1639. //防止拖動圖標即打開了桌面應用
  1640. U.MD.D.click(this, obj);
  1641. }, [_lhsAdminDesktopIconInfo[i]]),
  1642. "onclick": U.UF.C.closure(function(obj) {
  1643. //防止拖動圖標即打開了桌面應用
  1644. U.MD.D.click(this, obj);
  1645. }, [_lhsAdminDesktopIconInfo[i]])
  1646. }, _frag); //
  1647. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1648. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1649. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1650. }
  1651. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1652. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1653. _content = $$("div", {
  1654. className: "U_MD_D_KO",
  1655. "onmousedown": U.UF.C.closure(function(obj) {
  1656. //防止拖動圖標即打開了桌面應用
  1657. U.MD.D.click(this, obj);
  1658. }, [_lhsteacherDesktopIconInfo[i]]),
  1659. "onclick": U.UF.C.closure(function(obj) {
  1660. //防止拖動圖標即打開了桌面應用
  1661. U.MD.D.click(this, obj);
  1662. }, [_lhsteacherDesktopIconInfo[i]])
  1663. }, _frag); //
  1664. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1665. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1666. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1667. }
  1668. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1669. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1670. _content = $$("div", {
  1671. className: "U_MD_D_KO",
  1672. "onmousedown": U.UF.C.closure(function(obj) {
  1673. //防止拖動圖標即打開了桌面應用
  1674. U.MD.D.click(this, obj);
  1675. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1676. "onclick": U.UF.C.closure(function(obj) {
  1677. //防止拖動圖標即打開了桌面應用
  1678. U.MD.D.click(this, obj);
  1679. }, [_zhoujiateacherDesktopIconInfo[i]])
  1680. }, _frag); //
  1681. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1682. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1683. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1684. }
  1685. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1686. for (i = 0; i < _hanDeskIcon.length; i++) {
  1687. _content = $$("div", {
  1688. className: "U_MD_D_KO",
  1689. "onmousedown": U.UF.C.closure(function(obj) {
  1690. //防止拖動圖標即打開了桌面應用
  1691. U.MD.D.click(this, obj);
  1692. }, [_hanDeskIcon[i]]),
  1693. "onclick": U.UF.C.closure(function(obj) {
  1694. //防止拖動圖標即打開了桌面應用
  1695. U.MD.D.click(this, obj);
  1696. }, [_hanDeskIcon[i]])
  1697. }, _frag); //
  1698. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1699. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1700. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1701. }
  1702. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1703. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1704. _content = $$("div", {
  1705. className: "U_MD_D_KO",
  1706. "onmousedown": U.UF.C.closure(function(obj) {
  1707. //防止拖動圖標即打開了桌面應用
  1708. U.MD.D.click(this, obj);
  1709. }, [_orgStemDeskIcon[i]]),
  1710. "onclick": U.UF.C.closure(function(obj) {
  1711. //防止拖動圖標即打開了桌面應用
  1712. U.MD.D.click(this, obj);
  1713. }, [_orgStemDeskIcon[i]])
  1714. }, _frag); //
  1715. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1716. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1717. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1718. }
  1719. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1720. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1721. _content = $$("div", {
  1722. className: "U_MD_D_KO",
  1723. "onmousedown": U.UF.C.closure(function(obj) {
  1724. //防止拖動圖標即打開了桌面應用
  1725. U.MD.D.click(this, obj);
  1726. }, [_szulsDeskIcon[i]]),
  1727. "onclick": U.UF.C.closure(function(obj) {
  1728. //防止拖動圖標即打開了桌面應用
  1729. U.MD.D.click(this, obj);
  1730. }, [_szulsDeskIcon[i]])
  1731. }, _frag); //
  1732. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1733. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1734. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1735. }
  1736. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1737. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1738. _content = $$("div", {
  1739. className: "U_MD_D_KO",
  1740. "onmousedown": U.UF.C.closure(function(obj) {
  1741. //防止拖動圖標即打開了桌面應用
  1742. U.MD.D.click(this, obj);
  1743. }, [_orgDesktopIconInfo[i]]),
  1744. "onclick": U.UF.C.closure(function(obj) {
  1745. //防止拖動圖標即打開了桌面應用
  1746. U.MD.D.click(this, obj);
  1747. }, [_orgDesktopIconInfo[i]])
  1748. }, _frag); //
  1749. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1750. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1751. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1752. }
  1753. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1754. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1755. _content = $$("div", {
  1756. className: "U_MD_D_KO",
  1757. "onmousedown": U.UF.C.closure(function(obj) {
  1758. //防止拖動圖標即打開了桌面應用
  1759. U.MD.D.click(this, obj);
  1760. }, [_schoolDesktopIconInfo[i]]),
  1761. "onclick": U.UF.C.closure(function(obj) {
  1762. //防止拖動圖標即打開了桌面應用
  1763. U.MD.D.click(this, obj);
  1764. }, [_schoolDesktopIconInfo[i]])
  1765. }, _frag); //
  1766. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1767. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1768. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1769. }
  1770. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1771. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1772. _content = $$("div", {
  1773. className: "U_MD_D_KO",
  1774. "onmousedown": U.UF.C.closure(function(obj) {
  1775. //防止拖動圖標即打開了桌面應用
  1776. U.MD.D.click(this, obj);
  1777. }, [_GMteacherDesktopIconInfo[i]]),
  1778. "onclick": U.UF.C.closure(function(obj) {
  1779. //防止拖動圖標即打開了桌面應用
  1780. U.MD.D.click(this, obj);
  1781. }, [_GMteacherDesktopIconInfo[i]])
  1782. }, _frag); //
  1783. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1784. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1785. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1786. }
  1787. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1788. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1789. _content = $$("div", {
  1790. className: "U_MD_D_KO",
  1791. "onmousedown": U.UF.C.closure(function(obj) {
  1792. //防止拖動圖標即打開了桌面應用
  1793. U.MD.D.click(this, obj);
  1794. }, [_SONGteacherDesktopIconInfo[i]]),
  1795. "onclick": U.UF.C.closure(function(obj) {
  1796. //防止拖動圖標即打開了桌面應用
  1797. U.MD.D.click(this, obj);
  1798. }, [_SONGteacherDesktopIconInfo[i]])
  1799. }, _frag); //
  1800. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1801. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1802. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1803. }
  1804. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1805. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1806. _content = $$("div", {
  1807. className: "U_MD_D_KO",
  1808. "onmousedown": U.UF.C.closure(function(obj) {
  1809. //防止拖動圖標即打開了桌面應用
  1810. U.MD.D.click(this, obj);
  1811. }, [_GMstudentDesktopIconInfo[i]]),
  1812. "onclick": U.UF.C.closure(function(obj) {
  1813. //防止拖動圖標即打開了桌面應用
  1814. U.MD.D.click(this, obj);
  1815. }, [_GMstudentDesktopIconInfo[i]])
  1816. }, _frag); //
  1817. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1818. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1819. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1820. }
  1821. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1822. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1823. _content = $$("div", {
  1824. className: "U_MD_D_KO",
  1825. "onmousedown": U.UF.C.closure(function(obj) {
  1826. //防止拖動圖標即打開了桌面應用
  1827. U.MD.D.click(this, obj);
  1828. }, [_tcTeacherDeskIconInfo[i]]),
  1829. "onclick": U.UF.C.closure(function(obj) {
  1830. //防止拖動圖標即打開了桌面應用
  1831. U.MD.D.click(this, obj);
  1832. }, [_tcTeacherDeskIconInfo[i]])
  1833. }, _frag); //
  1834. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1835. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1836. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1837. }
  1838. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1839. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1840. _content = $$("div", {
  1841. className: "U_MD_D_KO",
  1842. "onmousedown": U.UF.C.closure(function(obj) {
  1843. //防止拖動圖標即打開了桌面應用
  1844. U.MD.D.click(this, obj);
  1845. }, [_tcOrganizerDeskIconInfo[i]]),
  1846. "onclick": U.UF.C.closure(function(obj) {
  1847. //防止拖動圖標即打開了桌面應用
  1848. U.MD.D.click(this, obj);
  1849. }, [_tcOrganizerDeskIconInfo[i]])
  1850. }, _frag); //
  1851. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1852. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1853. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1854. }
  1855. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1856. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1857. _content = $$("div", {
  1858. className: "U_MD_D_KO",
  1859. "onmousedown": U.UF.C.closure(function(obj) {
  1860. //防止拖動圖標即打開了桌面應用
  1861. U.MD.D.click(this, obj);
  1862. }, [_szscTeacherDeskIconInfo[i]]),
  1863. "onclick": U.UF.C.closure(function(obj) {
  1864. //防止拖動圖標即打開了桌面應用
  1865. U.MD.D.click(this, obj);
  1866. }, [_szscTeacherDeskIconInfo[i]])
  1867. }, _frag); //
  1868. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1869. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1870. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1871. }
  1872. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1873. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1874. _content = $$("div", {
  1875. className: "U_MD_D_KO",
  1876. "onmousedown": U.UF.C.closure(function(obj) {
  1877. //防止拖動圖標即打開了桌面應用
  1878. U.MD.D.click(this, obj);
  1879. }, [_szscOrganizerDeskIconInfo[i]]),
  1880. "onclick": U.UF.C.closure(function(obj) {
  1881. //防止拖動圖標即打開了桌面應用
  1882. U.MD.D.click(this, obj);
  1883. }, [_szscOrganizerDeskIconInfo[i]])
  1884. }, _frag); //
  1885. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1886. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1887. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1888. }
  1889. } else {
  1890. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1891. _content = $$("div", {
  1892. className: "U_MD_D_KO",
  1893. "onmousedown": U.UF.C.closure(function(obj) {
  1894. //防止拖動圖標即打開了桌面應用
  1895. U.MD.D.click(this, obj);
  1896. }, [_teacherDesktopIconInfo[i]]),
  1897. "onclick": U.UF.C.closure(function(obj) {
  1898. //防止拖動圖標即打開了桌面應用
  1899. U.MD.D.click(this, obj);
  1900. }, [_teacherDesktopIconInfo[i]])
  1901. }, _frag); //
  1902. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1903. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1904. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1905. }
  1906. }
  1907. } else {
  1908. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1909. _content = $$("div", {
  1910. className: "U_MD_D_KO",
  1911. style: { 'width': '124px', 'height': '145px' },
  1912. "onmousedown": U.UF.C.closure(function(obj) {
  1913. //防止拖動圖標即打開了桌面應用
  1914. U.MD.D.click(this, obj);
  1915. }, [_easyDesktopIconInfo[i]]),
  1916. "onclick": U.UF.C.closure(function(obj) {
  1917. //防止拖動圖標即打開了桌面應用
  1918. U.MD.D.click(this, obj);
  1919. }, [_easyDesktopIconInfo[i]])
  1920. }, _frag); //
  1921. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1922. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1923. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1924. }
  1925. }
  1926. if (type == 1) {
  1927. //加載好後給圖標定位
  1928. U.MD.D.iconPostion($(_frag).Child());
  1929. } else {
  1930. //加載好後給圖標定位
  1931. U.MD.D.iconPostion2($(_frag).Child());
  1932. }
  1933. //把圖標加載到頁面
  1934. el.appendChild(_frag);
  1935. }
  1936. /**
  1937. * 顯示任務欄
  1938. *
  1939. * @param {element} 桌面元素
  1940. */
  1941. U.MD.D.I.displayTaskbar = function(el) {
  1942. //判斷是否需要形式任務欄,由於用了mouseover事件會冒泡響應多次,這裏做了過濾
  1943. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1944. //任務欄位置變化
  1945. U.selectEl(el).css({ "bottom": "0px" });
  1946. //桌面位置變話
  1947. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1948. }
  1949. }
  1950. //#region 桌面圖標拖動邏輯
  1951. /**
  1952. * 桌面排列圖標
  1953. *
  1954. * @param {element} 桌面元素
  1955. * @param {object} 上下相距的距離
  1956. * @param {object} 左右相距的距離
  1957. * @return {object} 命名空間
  1958. */
  1959. U.MD.D.iconPostion = function(childs, top, left) {
  1960. var i; //用於循環處理
  1961. top = top || 15; //如果沒有設置元素的間距處理默認上間距為15
  1962. left = left || 20; //如果沒有設置元素的間距處理默認左間距為15
  1963. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  1964. for (i = 0; i < childs.length; i++) {
  1965. //如果豎排top超過了範圍處理
  1966. if (top + 95 > US.height - 10) {
  1967. //left超過了頁面範圍處理,則向上重疊打印處理
  1968. if ((left + 180) > US.width) {
  1969. top -= 110;
  1970. left -= 90;
  1971. }
  1972. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  1973. else {
  1974. left += 90;
  1975. top = 15;
  1976. };
  1977. }
  1978. //給圖標的位置賦值
  1979. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1980. if (i < childs.length - 1) {
  1981. //頁面圖標每次向下加95
  1982. top += 95;
  1983. }
  1984. }
  1985. //返回最後調用的圖標的位置
  1986. return [top, left];
  1987. }
  1988. /**
  1989. * 桌面排列圖標
  1990. *
  1991. * @param {element} 桌面元素
  1992. * @param {object} 上下相距的距離
  1993. * @param {object} 左右相距的距離
  1994. * @return {object} 命名空間
  1995. */
  1996. U.MD.D.iconPostion2 = function(childs, top, left) {
  1997. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用於循環處理
  1998. top = top || 70; //如果沒有設置元素的間距處理默認上間距為15
  1999. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果沒有設置元素的間距處理默認左間距為15
  2000. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  2001. for (i = 0; i < childs.length; i++) {
  2002. //如果豎排top超過了範圍處理
  2003. if (left + 150 > US.width - 10) {
  2004. //left超過了頁面範圍處理,則向上重疊打印處理
  2005. if ((top + 180) > US.Height) {
  2006. top -= 150;
  2007. left -= 150;
  2008. }
  2009. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  2010. else {
  2011. top += 150;
  2012. left = ol;
  2013. };
  2014. }
  2015. //給圖標的位置賦值
  2016. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  2017. if (i < childs.length - 1) {
  2018. //頁面圖標每次向下加95
  2019. left += 150;
  2020. }
  2021. }
  2022. //返回最後調用的圖標的位置
  2023. return [top, left];
  2024. }
  2025. /**
  2026. * 桌面點擊事件邏輯
  2027. *
  2028. * @param {element} 桌面元素
  2029. * @param {object} 上下相距的距離
  2030. * @param {object} 左右相距的距離
  2031. * @return {object} 命名空間
  2032. */
  2033. U.MD.D.click = function(el, obj) {
  2034. var _buttonnumber = event.button; //點擊的按鈕的事件值
  2035. var _userinfo = US.userInfo;
  2036. U.UF.EV.stopBubble(); //阻止向上冒泡
  2037. //onmousedown 包含了左鍵和右鍵 這裏大於2是為了兼容 所有瀏覽器的右鍵處理
  2038. if (_buttonnumber < 2) {
  2039. //如果是click事件的處理
  2040. if (event.type == "click") {
  2041. //如果元素在mousemove事件中沒有移動則出發click事件
  2042. if (!U.MD.D.I.IsDrag) {
  2043. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2044. U.alert("請先登錄您的賬號!");
  2045. setTimeout(() => {
  2046. U.MD.U.L.login();
  2047. }, 2000);
  2048. } else {
  2049. //打開應用處理
  2050. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  2051. }
  2052. }
  2053. }
  2054. //如果是mouse事件的處理
  2055. else {
  2056. if (US.Config.type == '1') {
  2057. //拖動處理,添加拖動和拖動結束事件
  2058. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  2059. }
  2060. }
  2061. U.MD.D.I.IsDrag = false;
  2062. }
  2063. }
  2064. /**
  2065. * 拖動的處理
  2066. *
  2067. */
  2068. U.MD.D.iconMove = function() {
  2069. //如果當前位置點擊初始化的位置出現了變化,則設置是否拖動的屬性 U.MD.D.I.IsDrag為true
  2070. U.MD.D.I.IsDrag = true;
  2071. }
  2072. /**
  2073. * 拖動結束後,這裏是定位處理,以網狀的形式定位
  2074. *
  2075. * @param {element} 拖動的元素
  2076. * @return {object} 命名空間
  2077. */
  2078. U.MD.D.iconUp = function(el) {
  2079. var _top = 15,
  2080. _left = 20,
  2081. _margin,
  2082. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的圖標
  2083. _positioninfo = U.UF.EL.getElementInfo(el); //獲取拖動結束的元素的位置
  2084. if (_positioninfo["OT"] > 15) {
  2085. //網狀的形式定位,如果差超過了55,那麼向下定位,否則向上定位
  2086. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  2087. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  2088. }
  2089. if (_positioninfo["OL"] > 20) {
  2090. //網狀的形式定位,如果差超過了90,那麼向右定位,否則向左定位
  2091. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  2092. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  2093. }
  2094. //while循環判斷麼一個重疊的元素
  2095. do {
  2096. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //給重疊的元素向下定位
  2097. _top = _positioninfo[0] + 95; //得到定位後的top
  2098. _left = _positioninfo[1]; //得到定位後的left
  2099. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  2100. }
  2101. /**
  2102. * 判斷拖動後圖標是否重疊
  2103. *
  2104. * @param {element} 拖動的元素
  2105. * @param {element} 桌面所有的元素
  2106. * @param {array} 拖動元素的位置
  2107. ----------[0] 上 top
  2108. ----------[1] 左 left
  2109. * @return {object} 命名空間
  2110. */
  2111. U.MD.D.isOverlap = function(el, childs, postionarray) {
  2112. //循環所有的圖標
  2113. for (var i = 0; i < childs.length; i++) {
  2114. //判斷有沒有和該圖標誒子重疊的元素
  2115. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  2116. return childs[i]; //如果有返回
  2117. }
  2118. }
  2119. }
  2120. //#endregion
  2121. //#endregion
  2122. //#region 桌面應用
  2123. /**
  2124. * 打開應用
  2125. *
  2126. * @param {string} 類型
  2127. -----------------Disk 網盤系統
  2128. -----------------PDisk 學習系統網盤
  2129. -----------------Poto 圖片
  2130. -----------------Video 視頻
  2131. -----------------Music 音樂
  2132. -----------------Word word
  2133. -----------------Excel excel
  2134. -----------------Txt 記事本
  2135. -----------------PB 學習系統
  2136. -----------------Blog 朋友圈系統
  2137. -----------------FTP ftp系統
  2138. -----------------Group 好友群
  2139. -----------------SY 首頁系統
  2140. -----------------Set 個人設置
  2141. -----------------XSet 系統設置
  2142. -----------------App 我們所有的app
  2143. -----------------BC c.1473.cn 平臺
  2144. -----------------CWeb d.1473.cn 變成平臺
  2145. -----------------其他的外聯系統 我們統一用iframe打開
  2146. * @param {array} 類型
  2147. 如果第一個參數為"disk",則第二個參數為object,裏面包含了用戶id和目錄id{userid:"",directoryid:""}
  2148. 如果第一個參數為"word"或者"excel","txt",則第二個參數為文件信息fileinfo。
  2149. 如果第一個參數為"blog"或者"PDisk"。建議刪除。
  2150. 如果第一個參數為其他,則無第二個參數
  2151. * @returns {array}
  2152. */
  2153. window.addEventListener('message', function(e) { // 監聽 message 事件
  2154. // alert(e.data.type);
  2155. if (e.data.screenType && e.data.screenType == "2") { //課程管理傳入
  2156. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  2157. //3是展示全部階段 2學生 1老師 4專家
  2158. } else if (e.data.screenType && e.data.screenType == "2s") { //課程管理傳入
  2159. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  2160. //3是展示全部階段 2學生 1老師 4專家
  2161. } else if (e.data.screenType && e.data.screenType == "2studio") { //課程管理傳入
  2162. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  2163. //3是展示全部階段 2學生 1老師 4專家
  2164. } else if (e.data.screenType && e.data.screenType == "3") { //課程管理傳入
  2165. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  2166. } else if (e.data.screenType && e.data.screenType == "3NT") { //課程管理傳入
  2167. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  2168. } else if (e.data.screenType && e.data.screenType == "3s") { //課程管理傳入
  2169. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  2170. } else if (e.data.screenType && e.data.screenType == "3studio") { //課程管理傳入
  2171. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  2172. } else if (e.data.screenType && e.data.screenType == "3s2") { //課程管理傳入
  2173. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  2174. } else if (e.data.screenType && e.data.screenType == "2gm") { //課程管理傳入
  2175. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  2176. //3是展示全部階段 2學生 1老師 4專家
  2177. } else if (e.data.screenType && e.data.screenType == "3gm") { //課程管理傳入
  2178. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  2179. } else if (e.data.close && e.data.close == "1") { //更新用戶信息
  2180. U.MD.D.I.selectUser();
  2181. } else if (e.data.allScreen && e.data.allScreen == "1") {
  2182. var _formel = document.getElementById("study");
  2183. U.UF.F.windowZooming(_formel);
  2184. } else if (e.data.allScreen && e.data.allScreen == "2") {
  2185. var _formel = document.getElementById("studyDetail");
  2186. U.UF.F.windowZooming(_formel);
  2187. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  2188. var _formel = document.getElementById("studyDetail");
  2189. U.UF.F.windowZooming(_formel);
  2190. } else if (e.data.allScreen && e.data.allScreen == "3") {
  2191. var _formel = document.getElementById("studentStudy");
  2192. U.UF.F.windowZooming(_formel);
  2193. } else if (e.data.allScreen && e.data.allScreen == "6") {
  2194. // var _formel = document.getElementById("study");
  2195. //如果最大化了,那麼就把他縮小
  2196. // if (_formel.ismaximize) {
  2197. // return;
  2198. // }
  2199. // U.UF.F.windowZooming(_formel);
  2200. // U.UF.F.topWindow(_formel);
  2201. } else if (e.data.allScreen && e.data.allScreen == "4") {
  2202. // var _formel = document.getElementById("studyDetail");
  2203. //如果最大化了,那麼就把他縮小
  2204. // if (_formel.ismaximize) {
  2205. // return;
  2206. // }
  2207. // U.UF.F.windowZooming(_formel);
  2208. // U.UF.F.topWindow(_formel);
  2209. } else if (e.data.allScreen && e.data.allScreen == "5") {
  2210. // var _formel = document.getElementById("studentStudy");
  2211. // if (_formel.ismaximize) {
  2212. // return;
  2213. // }
  2214. // U.UF.F.windowZooming(_formel);
  2215. // U.UF.F.topWindow(_formel);
  2216. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  2217. var _formel = document.getElementById("study");
  2218. // if (_formel.ismaximize) {
  2219. // return;
  2220. // }
  2221. // U.UF.F.windowZooming(_formel);
  2222. U.UF.F.topWindow(_formel);
  2223. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  2224. var _formel = document.getElementById("studentIndex");
  2225. U.UF.F.windowZooming(_formel);
  2226. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  2227. var _formel = document.getElementById("studyDetailS");
  2228. U.UF.F.windowZooming(_formel);
  2229. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  2230. var _formel = document.getElementById("studioIndex");
  2231. U.UF.F.windowZooming(_formel);
  2232. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  2233. var _formel = document.getElementById("studyDetailStudio");
  2234. U.UF.F.windowZooming(_formel);
  2235. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  2236. var _formel = document.getElementById("studyDetailStudio");
  2237. U.UF.F.windowZooming(_formel);
  2238. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  2239. var _formel = document.getElementById("studyDetailNT");
  2240. U.UF.F.windowZooming(_formel);
  2241. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  2242. var _formel = document.getElementById("studyDetailS");
  2243. U.UF.F.windowZooming(_formel);
  2244. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  2245. var _formel = document.getElementById("studyDetailS");
  2246. U.UF.F.topWindow(_formel);
  2247. } else if (e.data.tools && e.data.tools == "1") {
  2248. // U.MD.D.I.openApplication("whiteboard")
  2249. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2250. } else if (e.data.tools && e.data.tools == "2") {
  2251. U.MD.D.I.openApplication("note")
  2252. } else if (e.data.tools && e.data.tools == "3") {
  2253. // U.MD.D.I.openApplication("mind")
  2254. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2255. } else if (e.data.tools && e.data.tools == "4") {
  2256. U.MD.D.I.openApplication("investigation")
  2257. } else if (e.data.tools && e.data.tools == "6") {
  2258. // U.MD.D.I.openApplication("doc")
  2259. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2260. } else if (e.data.tools && e.data.tools == "7") {
  2261. // U.MD.D.I.openApplication("mindNetwork")
  2262. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2263. } else if (e.data.tools && e.data.tools == "8") {
  2264. U.MD.D.I.openApplication("library")
  2265. } else if (e.data.tools && e.data.tools == "17") {
  2266. U.MD.D.I.openApplication("stuLibrary")
  2267. } else if (e.data.tools && e.data.tools == "18") {
  2268. U.MD.D.I.openApplication("train")
  2269. } else if (e.data.tools && e.data.tools == "21") {
  2270. U.MD.D.I.openApplication("program")
  2271. } else if (e.data.tools && e.data.tools == "22") {
  2272. U.MD.D.I.openApplication("AIprogram2")
  2273. } else if (e.data.tools && e.data.tools == "23") {
  2274. U.MD.D.I.openApplication("Pythonprogram")
  2275. } else if (e.data.tools && e.data.tools == "24") {
  2276. U.MD.D.I.openApplication("AIprogram")
  2277. } else if (e.data.tools && e.data.tools == "25") {
  2278. U.MD.D.I.openApplication("sys")
  2279. } else if (e.data.tools && e.data.tools == "26") {
  2280. // U.MD.D.I.openApplication("courseDesign")
  2281. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2282. } else if (e.data.tools && e.data.tools == "31") {
  2283. U.MD.D.I.openApplication("netWorkPanel")
  2284. } else if (e.data.tools && e.data.tools == "32") {
  2285. U.MD.D.I.openApplication("codeEdit")
  2286. } else if (e.data.tools && e.data.tools == "57") {
  2287. U.MD.D.I.openApplication("CocoPi")
  2288. } else if (e.data.tools && e.data.tools == "63") {
  2289. U.MD.D.I.openApplication("Wood")
  2290. } else if (e.data.tools && e.data.tools == "58") {
  2291. U.MD.D.I.openApplication("car")
  2292. } else if (e.data.tools && e.data.tools == "59") {
  2293. U.MD.D.I.openApplication("lineSearch")
  2294. } else if (e.data.tools && e.data.tools == "60") {
  2295. U.MD.D.I.openApplication("deepLearning")
  2296. } else if (e.data.tools && e.data.tools == "61") {
  2297. U.MD.D.I.openApplication("allHistory")
  2298. } else if (e.data.tools && e.data.tools == "28") {
  2299. U.MD.D.I.openApplication("translation")
  2300. } else if (e.data.tools && e.data.tools == "37") {
  2301. U.MD.D.I.openApplication("mohe")
  2302. } else if (e.data.tools && e.data.tools == "38") {
  2303. U.MD.D.I.openApplication("24game")
  2304. } else if (e.data.tools && e.data.tools == "39") {
  2305. U.MD.D.I.openApplication("GeoGebra")
  2306. } else if (e.data.tools && e.data.tools == "43") {
  2307. U.MD.D.I.openApplication("studentEvaluate")
  2308. } else if (e.data.tools && e.data.tools == "44") {
  2309. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  2310. } else if (e.data.tools && e.data.tools == "46") {
  2311. U.MD.D.I.openApplication("project")
  2312. } else if (e.data.tools && e.data.tools == "1s") {
  2313. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2314. } else if (e.data.tools && e.data.tools == "3s") {
  2315. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2316. } else if (e.data.tools && e.data.tools == "6s") {
  2317. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2318. } else if (e.data.tools && e.data.tools == "1studio") {
  2319. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2320. } else if (e.data.tools && e.data.tools == "3studio") {
  2321. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2322. } else if (e.data.tools && e.data.tools == "6studio") {
  2323. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2324. } else if (e.data.tools && e.data.tools == "3y") {
  2325. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2326. } else if (e.data.tools && e.data.tools == "1y") {
  2327. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2328. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  2329. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  2330. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  2331. U.MD.D.I.openApplication("AIAnalyse")
  2332. } else if (e.data.tools && e.data.tools == "1teacher") {
  2333. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2334. } else if (e.data.tools && e.data.tools == "3teacher") {
  2335. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2336. } else if (e.data.tools && e.data.tools == "7teacher") {
  2337. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2338. } else if (e.data.tools && e.data.tools == "1teacherE") {
  2339. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2340. } else if (e.data.tools && e.data.tools == "3teacherE") {
  2341. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2342. } else if (e.data.tools && e.data.tools == "1E") {
  2343. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2344. } else if (e.data.tools && e.data.tools == "3E") {
  2345. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2346. } else if (e.data.tools && e.data.tools == "57y") {
  2347. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2348. } else if (e.data.tools && e.data.tools == "57u") {
  2349. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2350. } else if (e.data.tools && e.data.tools == "57teacher") {
  2351. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2352. } else if (e.data.tools && e.data.tools == "64") {
  2353. U.MD.D.I.openApplication("AIChat")
  2354. } else if (e.data.tools && e.data.tools == "66") {
  2355. U.MD.D.I.openApplication("formulaEdi")
  2356. } else if (e.data.tools && e.data.tools == "67") {
  2357. U.MD.D.I.openApplication("molStr")
  2358. } else if (e.data.tools && e.data.tools == "68") {
  2359. U.MD.D.I.openApplication("timeAxis")
  2360. } else if (e.data.tools && e.data.tools == "openCourse") {
  2361. let _data = {
  2362. typea:e.data.typea || '',
  2363. typeb:e.data.typeb || '',
  2364. typed:e.data.typed || '',
  2365. }
  2366. U.MD.D.I.openInApplication("index", _data)
  2367. }
  2368. });
  2369. U.MD.D.I.selectUser = function() {
  2370. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function(res) { //US.userInfo.userid
  2371. if (res.value[0].length > 0) {
  2372. US.userInfo = res.value[0][0];
  2373. $(".userName")[0].innerHTML = US.userInfo.username;
  2374. }
  2375. }, [], { "type": "GET", "withCredentials": true });
  2376. }
  2377. U.MD.D.I.openInApplication = function(str, data, screenType, tType) {
  2378. var _userinfo = US.userInfo, //登錄用戶信息
  2379. _userid = US.userInfo.userid, //登錄用戶id
  2380. _oid = _userinfo.organizeid,
  2381. _type = US.userInfo.type,
  2382. _org = US.userInfo.org,
  2383. _role = US.userInfo.role,
  2384. _classId = US.userInfo.classid;
  2385. if (_type == 4) {
  2386. tType = 4
  2387. }
  2388. switch (str) {
  2389. case "studyDetailNT": //無終端模式
  2390. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2391. setTimeout(() => {
  2392. U.MD.U.L.login();
  2393. }, 2000);
  2394. } else {
  2395. _formdiv = new U.UF.UI.form(
  2396. "課程詳情",
  2397. $$("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 }), {
  2398. "id": "studyDetailNT",
  2399. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2400. "onresize": function() {}
  2401. }, {
  2402. closecallback: function() {}
  2403. }, { "style": { "height": "36px" } }).form; //創建窗體
  2404. _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); } }
  2405. break;
  2406. }
  2407. case "studyDetail":
  2408. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2409. setTimeout(() => {
  2410. U.MD.U.L.login();
  2411. }, 2000);
  2412. } else {
  2413. _formdiv = new U.UF.UI.form(
  2414. "課程詳情",
  2415. $$("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 }), {
  2416. "id": "studyDetail",
  2417. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2418. "onresize": function() {}
  2419. }, {
  2420. closecallback: function() {}
  2421. }, { "style": { "height": "36px" } }).form; //創建窗體
  2422. _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); } }
  2423. break;
  2424. }
  2425. case "studyDetailS":
  2426. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2427. setTimeout(() => {
  2428. U.MD.U.L.login();
  2429. }, 2000);
  2430. } else {
  2431. _formdiv = new U.UF.UI.form(
  2432. "項目詳情",
  2433. $$("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 }), {
  2434. "id": "studyDetailS",
  2435. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2436. "onresize": function() {}
  2437. }, {
  2438. closecallback: function() {}
  2439. }, { "style": { "height": "36px" } }).form; //創建窗體
  2440. _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); } }
  2441. break;
  2442. }
  2443. case "studyDetailStudio":
  2444. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2445. setTimeout(() => {
  2446. U.MD.U.L.login();
  2447. }, 2000);
  2448. } else {
  2449. _formdiv = new U.UF.UI.form(
  2450. "工作詳情",
  2451. $$("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 }), {
  2452. "id": "studyDetailStudio",
  2453. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2454. "onresize": function() {}
  2455. }, {
  2456. closecallback: function() {}
  2457. }, { "style": { "height": "36px" } }).form; //創建窗體
  2458. _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); } }
  2459. break;
  2460. }
  2461. case "studyDetailS5":
  2462. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2463. setTimeout(() => {
  2464. U.MD.U.L.login();
  2465. }, 2000);
  2466. } else {
  2467. _formdiv = new U.UF.UI.form(
  2468. "項目詳情",
  2469. $$("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 }), {
  2470. "id": "studyDetailS",
  2471. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2472. "onresize": function() {}
  2473. }, {
  2474. closecallback: function() {}
  2475. }, { "style": { "height": "36px" } }).form; //創建窗體
  2476. _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); } }
  2477. break;
  2478. }
  2479. case "studyDetailGM":
  2480. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2481. setTimeout(() => {
  2482. U.MD.U.L.login();
  2483. }, 2000);
  2484. } else {
  2485. _formdiv = new U.UF.UI.form(
  2486. "課程詳情",
  2487. $$("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 }), {
  2488. "id": "studyDetail",
  2489. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2490. "onresize": function() {}
  2491. }, {
  2492. closecallback: function() {}
  2493. }, { "style": { "height": "36px" } }).form; //創建窗體
  2494. _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); } }
  2495. break;
  2496. }
  2497. case "hanUrl":
  2498. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2499. setTimeout(() => {
  2500. U.MD.U.L.login();
  2501. }, 2000);
  2502. } else {
  2503. _formdiv = new U.UF.UI.form(
  2504. "漢字宮",
  2505. $$("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" }), {
  2506. "id": "hanUrl",
  2507. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2508. "onresize": function() {}
  2509. }, {
  2510. closecallback: function() {}
  2511. }, { "style": { "height": "36px" } }).form; //創建窗體
  2512. _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); } }
  2513. break;
  2514. }
  2515. case "index":
  2516. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2517. setTimeout(() => {
  2518. U.MD.U.L.login();
  2519. }, 2000);
  2520. } else {
  2521. _formdiv = new U.UF.UI.form(
  2522. "課程中心",
  2523. $$("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 }), {
  2524. "id": "study",
  2525. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2526. "onresize": function() {}
  2527. }, {
  2528. closecallback: function() {}
  2529. }, { "style": { "height": "36px" } }).form; //創建窗體
  2530. _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); } }
  2531. break;
  2532. }
  2533. }
  2534. }
  2535. U.MD.D.I.openApplication = function(str, obj, info) {
  2536. obj = obj || {};
  2537. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  2538. _formdiv, //創建任務欄時同時彈出的窗體元素。
  2539. _userinfo = US.userInfo, //登錄用戶信息
  2540. _userid = obj.userid || US.userInfo.userid, //登錄用戶id
  2541. _oid = obj.organizeid || _userinfo.organizeid,
  2542. _type = US.userInfo.type,
  2543. _org = US.userInfo.org,
  2544. _role = US.userInfo.role,
  2545. _classId = US.userInfo.classid,
  2546. _TscreenType = 1
  2547. _screenType = 2,
  2548. _SscreenType = 3;
  2549. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2550. return;
  2551. }
  2552. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2553. switch (str) {
  2554. case "studnetProject": //好友打開
  2555. _formdiv = new U.UF.UI.form(
  2556. "我的項目",
  2557. $$("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 }), {
  2558. "id": "studnetProject",
  2559. "style": { "width": "70%", "height": "90%", "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/project.png)" }, "name": "我的項目", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2565. break;
  2566. case "studentEvaluate": //好友打開
  2567. _formdiv = new U.UF.UI.form(
  2568. "我的評價",
  2569. $$("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 }), {
  2570. "id": "studentEvaluate",
  2571. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2572. "onresize": function() {}
  2573. }, {
  2574. closecallback: function() {}
  2575. }, { "style": { "height": "36px" } }).form; //創建窗體
  2576. _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); } }
  2577. break;
  2578. case "my":
  2579. _formdiv = new U.UF.UI.form(
  2580. "我的資料",
  2581. $$("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 }), {
  2582. "id": "my",
  2583. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2584. "onresize": function() {}
  2585. }, {
  2586. closecallback: function() {}
  2587. }, { "style": { "height": "36px" } }).form; //創建窗體
  2588. _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); } }
  2589. break;
  2590. case "program":
  2591. _formdiv = new U.UF.UI.form(
  2592. "編程平臺",
  2593. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2594. "id": "program",
  2595. "style": { "width": "70%", "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/myMessage.png)" }, "name": "編程平臺", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2601. break;
  2602. case "library":
  2603. _formdiv = new U.UF.UI.form(
  2604. "素材庫",
  2605. $$("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 }), {
  2606. "id": "library",
  2607. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2608. "onresize": function() {}
  2609. }, {
  2610. closecallback: function() {}
  2611. }, { "style": { "height": "36px" } }).form; //創建窗體
  2612. _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); } }
  2613. break;
  2614. case "whiteboard":
  2615. _formdiv = new U.UF.UI.form(
  2616. "電子白板",
  2617. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2618. "id": "whiteboard",
  2619. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2620. "onresize": function() {}
  2621. }, {
  2622. closecallback: function() {}
  2623. }, { "style": { "height": "36px" } }).form; //創建窗體
  2624. _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); } }
  2625. break;
  2626. case "investigation":
  2627. _formdiv = new U.UF.UI.form(
  2628. "問卷調查",
  2629. $$("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 }), {
  2630. "id": "investigation",
  2631. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2632. "onresize": function() {}
  2633. }, {
  2634. closecallback: function() {}
  2635. }, { "style": { "height": "36px" } }).form; //創建窗體
  2636. _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); } }
  2637. break;
  2638. case "note":
  2639. _formdiv = new U.UF.UI.form(
  2640. "便簽分類",
  2641. $$("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 }), {
  2642. "id": "note",
  2643. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2644. "onresize": function() {}
  2645. }, {
  2646. closecallback: function() {}
  2647. }, { "style": { "height": "36px" } }).form; //創建窗體
  2648. _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); } }
  2649. break;
  2650. // case "score":
  2651. // _formdiv = new U.UF.UI.form(
  2652. // "量規評分",
  2653. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2654. // "id": "score",
  2655. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2656. // "onresize": function() {}
  2657. // }, {
  2658. // closecallback: function() {}
  2659. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2660. // _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); } }
  2661. // break;
  2662. case "mind":
  2663. _formdiv = new U.UF.UI.form(
  2664. "思維導圖",
  2665. $$("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"
  2666. "id": "mind",
  2667. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2668. "onresize": function() {}
  2669. }, {
  2670. closecallback: function() {}
  2671. }, { "style": { "height": "36px" } }).form; //創建窗體
  2672. _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); } }
  2673. break;
  2674. case "doc":
  2675. // U.MD.D.I.isRoom();
  2676. _formdiv = new U.UF.UI.form(
  2677. "協同文檔",
  2678. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2679. "id": "doc",
  2680. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2681. "onresize": function() {}
  2682. }, {
  2683. closecallback: function() {}
  2684. }, { "style": { "height": "36px" } }).form; //創建窗體
  2685. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2686. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2687. // })
  2688. _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); } }
  2689. break;
  2690. case "studentStudy":
  2691. _formdiv = new U.UF.UI.form(
  2692. "課程中心",
  2693. $$("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
  2694. "id": "studentStudy",
  2695. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2696. "onresize": function() {}
  2697. }, {
  2698. closecallback: function() {}
  2699. }, { "style": { "height": "36px" } }).form; //創建窗體
  2700. _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); } }
  2701. break;
  2702. case "train": //好友打開
  2703. _formdiv = new U.UF.UI.form(
  2704. "訓練平臺",
  2705. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2706. "id": "train",
  2707. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2708. "onresize": function() {}
  2709. }, {
  2710. closecallback: function() {}
  2711. }, { "style": { "height": "36px" } }).form; //創建窗體
  2712. _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); } }
  2713. break;
  2714. case "mindNetwork": //好友打開
  2715. _formdiv = new U.UF.UI.form(
  2716. "思維網格",
  2717. $$("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 }), {
  2718. "id": "mindNetwork",
  2719. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2720. "onresize": function() {}
  2721. }, {
  2722. closecallback: function() {}
  2723. }, { "style": { "height": "36px" } }).form; //創建窗體
  2724. _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); } }
  2725. break;
  2726. case "studentClassRoom": //好友打開
  2727. _formdiv = new U.UF.UI.form(
  2728. "實時課堂",
  2729. $$("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 }), {
  2730. "id": "studentClassRoom",
  2731. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2732. "onresize": function() {}
  2733. }, {
  2734. closecallback: function() {}
  2735. }, { "style": { "height": "36px" } }).form; //創建窗體
  2736. _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); } }
  2737. setTimeout(() => {
  2738. U.UF.F.windowZooming(_formdiv)
  2739. }, 0);
  2740. break;
  2741. }
  2742. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2743. switch (str) {
  2744. case "studnetProject": //好友打開
  2745. _formdiv = new U.UF.UI.form(
  2746. "我的項目",
  2747. $$("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 }), {
  2748. "id": "studnetProject",
  2749. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2750. "onresize": function() {}
  2751. }, {
  2752. closecallback: function() {}
  2753. }, { "style": { "height": "36px" } }).form; //創建窗體
  2754. _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); } }
  2755. break;
  2756. case "studentEvaluate": //好友打開
  2757. _formdiv = new U.UF.UI.form(
  2758. "我的評價",
  2759. $$("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 }), {
  2760. "id": "studentEvaluate",
  2761. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2762. "onresize": function() {}
  2763. }, {
  2764. closecallback: function() {}
  2765. }, { "style": { "height": "36px" } }).form; //創建窗體
  2766. _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); } }
  2767. break;
  2768. case "my":
  2769. _formdiv = new U.UF.UI.form(
  2770. "我的資料",
  2771. $$("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 }), {
  2772. "id": "my",
  2773. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2774. "onresize": function() {}
  2775. }, {
  2776. closecallback: function() {}
  2777. }, { "style": { "height": "36px" } }).form; //創建窗體
  2778. _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); } }
  2779. break;
  2780. case "program":
  2781. _formdiv = new U.UF.UI.form(
  2782. "編程平臺",
  2783. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2784. "id": "program",
  2785. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2786. "onresize": function() {}
  2787. }, {
  2788. closecallback: function() {}
  2789. }, { "style": { "height": "36px" } }).form; //創建窗體
  2790. _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); } }
  2791. break;
  2792. case "library":
  2793. _formdiv = new U.UF.UI.form(
  2794. "素材庫",
  2795. $$("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 }), {
  2796. "id": "library",
  2797. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2798. "onresize": function() {}
  2799. }, {
  2800. closecallback: function() {}
  2801. }, { "style": { "height": "36px" } }).form; //創建窗體
  2802. _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); } }
  2803. break;
  2804. case "whiteboard":
  2805. _formdiv = new U.UF.UI.form(
  2806. "電子白板",
  2807. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2808. "id": "whiteboard",
  2809. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2810. "onresize": function() {}
  2811. }, {
  2812. closecallback: function() {}
  2813. }, { "style": { "height": "36px" } }).form; //創建窗體
  2814. _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); } }
  2815. break;
  2816. case "investigation":
  2817. _formdiv = new U.UF.UI.form(
  2818. "問卷調查",
  2819. $$("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 }), {
  2820. "id": "investigation",
  2821. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2822. "onresize": function() {}
  2823. }, {
  2824. closecallback: function() {}
  2825. }, { "style": { "height": "36px" } }).form; //創建窗體
  2826. _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); } }
  2827. break;
  2828. case "note":
  2829. _formdiv = new U.UF.UI.form(
  2830. "便簽分類",
  2831. $$("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 }), {
  2832. "id": "note",
  2833. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2834. "onresize": function() {}
  2835. }, {
  2836. closecallback: function() {}
  2837. }, { "style": { "height": "36px" } }).form; //創建窗體
  2838. _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); } }
  2839. break;
  2840. // case "score":
  2841. // _formdiv = new U.UF.UI.form(
  2842. // "量規評分",
  2843. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2844. // "id": "score",
  2845. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2846. // "onresize": function() {}
  2847. // }, {
  2848. // closecallback: function() {}
  2849. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2850. // _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); } }
  2851. // break;
  2852. case "mind":
  2853. _formdiv = new U.UF.UI.form(
  2854. "思維導圖",
  2855. $$("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"
  2856. "id": "mind",
  2857. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2858. "onresize": function() {}
  2859. }, {
  2860. closecallback: function() {}
  2861. }, { "style": { "height": "36px" } }).form; //創建窗體
  2862. _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); } }
  2863. break;
  2864. case "doc":
  2865. // U.MD.D.I.isRoom();
  2866. _formdiv = new U.UF.UI.form(
  2867. "協同文檔",
  2868. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2869. "id": "doc",
  2870. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2871. "onresize": function() {}
  2872. }, {
  2873. closecallback: function() {}
  2874. }, { "style": { "height": "36px" } }).form; //創建窗體
  2875. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  2876. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2877. })
  2878. _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); } }
  2879. break;
  2880. case "train": //好友打開
  2881. _formdiv = new U.UF.UI.form(
  2882. "訓練平臺",
  2883. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2884. "id": "train",
  2885. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2886. "onresize": function() {}
  2887. }, {
  2888. closecallback: function() {}
  2889. }, { "style": { "height": "36px" } }).form; //創建窗體
  2890. _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); } }
  2891. break;
  2892. case "studentStudy":
  2893. _formdiv = new U.UF.UI.form(
  2894. "課程中心",
  2895. $$("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
  2896. "id": "studentStudy",
  2897. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2898. "onresize": function() {}
  2899. }, {
  2900. closecallback: function() {}
  2901. }, { "style": { "height": "36px" } }).form; //創建窗體
  2902. _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); } }
  2903. break;
  2904. case "mindNetwork": //好友打開
  2905. _formdiv = new U.UF.UI.form(
  2906. "思維網格",
  2907. $$("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 }), {
  2908. "id": "mindNetwork",
  2909. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2910. "onresize": function() {}
  2911. }, {
  2912. closecallback: function() {}
  2913. }, { "style": { "height": "36px" } }).form; //創建窗體
  2914. _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); } }
  2915. break;
  2916. case "studentClassRoom": //好友打開
  2917. _formdiv = new U.UF.UI.form(
  2918. "實時課堂",
  2919. $$("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 }), {
  2920. "id": "studentClassRoom",
  2921. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2922. "onresize": function() {}
  2923. }, {
  2924. closecallback: function() {}
  2925. }, { "style": { "height": "36px" } }).form; //創建窗體
  2926. _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); } }
  2927. setTimeout(() => {
  2928. U.UF.F.windowZooming(_formdiv)
  2929. }, 0);
  2930. break;
  2931. }
  2932. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2933. //選擇應用處理
  2934. switch (str) {
  2935. case "project": //好友打開
  2936. _formdiv = new U.UF.UI.form(
  2937. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目' : "課程管理",
  2938. $$("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 }), {
  2939. "id": "project",
  2940. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2941. "onresize": function() {}
  2942. }, {
  2943. closecallback: function() {}
  2944. }, { "style": { "height": "36px" } }).form; //創建窗體
  2945. _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); } }
  2946. break;
  2947. case "student":
  2948. _formdiv = new U.UF.UI.form(
  2949. "學生管理",
  2950. $$("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 }), {
  2951. "id": "student",
  2952. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2953. "onresize": function() {}
  2954. }, {
  2955. closecallback: function() {}
  2956. }, { "style": { "height": "36px" } }).form; //創建窗體
  2957. _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); } }
  2958. break;
  2959. case "evaluate":
  2960. _formdiv = new U.UF.UI.form(
  2961. "學生評價",
  2962. $$("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 }), {
  2963. "id": "evaluate",
  2964. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2965. "onresize": function() {}
  2966. }, {
  2967. closecallback: function() {}
  2968. }, { "style": { "height": "36px" } }).form; //創建窗體
  2969. _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); } }
  2970. break;
  2971. case "sys":
  2972. _formdiv = new U.UF.UI.form(
  2973. "目標管理",
  2974. $$("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 }), {
  2975. "id": "sys",
  2976. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2977. "onresize": function() {}
  2978. }, {
  2979. closecallback: function() {}
  2980. }, { "style": { "height": "36px" } }).form; //創建窗體
  2981. _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); } }
  2982. break;
  2983. case "courseDesign":
  2984. _formdiv = new U.UF.UI.form(
  2985. "項目設計",
  2986. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2987. "id": "courseDesign",
  2988. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2989. "onresize": function() {}
  2990. }, {
  2991. closecallback: function() {}
  2992. }, { "style": { "height": "36px" } }).form; //創建窗體
  2993. _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); } }
  2994. break;
  2995. case "program":
  2996. _formdiv = new U.UF.UI.form(
  2997. "編程平臺",
  2998. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2999. "id": "program",
  3000. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3001. "onresize": function() {}
  3002. }, {
  3003. closecallback: function() {}
  3004. }, { "style": { "height": "36px" } }).form; //創建窗體
  3005. _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); } }
  3006. break;
  3007. case "class":
  3008. _formdiv = new U.UF.UI.form(
  3009. "班級管理",
  3010. $$("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 }), {
  3011. "id": "class",
  3012. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3013. "onresize": function() {}
  3014. }, {
  3015. closecallback: function() {}
  3016. }, { "style": { "height": "36px" } }).form; //創建窗體
  3017. _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); } }
  3018. break;
  3019. case "Grade":
  3020. _formdiv = new U.UF.UI.form(
  3021. "年級管理",
  3022. $$("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 }), {
  3023. "id": "Grade",
  3024. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3025. "onresize": function() {}
  3026. }, {
  3027. closecallback: function() {}
  3028. }, { "style": { "height": "36px" } }).form; //創建窗體
  3029. _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); } }
  3030. break;
  3031. case "teacherOffice":
  3032. _formdiv = new U.UF.UI.form(
  3033. "教研室",
  3034. $$("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 }), {
  3035. "id": "teacherOffice",
  3036. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3037. "onresize": function() {}
  3038. }, {
  3039. closecallback: function() {}
  3040. }, { "style": { "height": "36px" } }).form; //創建窗體
  3041. _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); } }
  3042. break;
  3043. case "my":
  3044. _formdiv = new U.UF.UI.form(
  3045. "我的資料",
  3046. $$("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 }), {
  3047. "id": "my",
  3048. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3049. "onresize": function() {}
  3050. }, {
  3051. closecallback: function() {}
  3052. }, { "style": { "height": "36px" } }).form; //創建窗體
  3053. _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); } }
  3054. break;
  3055. case "notice":
  3056. _formdiv = new U.UF.UI.form(
  3057. "通知公告",
  3058. $$("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 }), {
  3059. "id": "notice",
  3060. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3061. "onresize": function() {}
  3062. }, {
  3063. closecallback: function() {}
  3064. }, { "style": { "height": "36px" } }).form; //創建窗體
  3065. _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); } }
  3066. break;
  3067. case "library":
  3068. _formdiv = new U.UF.UI.form(
  3069. "素材庫",
  3070. $$("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 }), {
  3071. "id": "library",
  3072. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3073. "onresize": function() {}
  3074. }, {
  3075. closecallback: function() {}
  3076. }, { "style": { "height": "36px" } }).form; //創建窗體
  3077. _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); } }
  3078. break;
  3079. case "whiteboard":
  3080. _formdiv = new U.UF.UI.form(
  3081. "電子白板",
  3082. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3083. "id": "whiteboard",
  3084. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3085. "onresize": function() {}
  3086. }, {
  3087. closecallback: function() {}
  3088. }, { "style": { "height": "36px" } }).form; //創建窗體
  3089. _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); } }
  3090. break;
  3091. case "investigation":
  3092. _formdiv = new U.UF.UI.form(
  3093. "問卷調查",
  3094. $$("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 }), {
  3095. "id": "investigation",
  3096. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3097. "onresize": function() {}
  3098. }, {
  3099. closecallback: function() {}
  3100. }, { "style": { "height": "36px" } }).form; //創建窗體
  3101. _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); } }
  3102. break;
  3103. case "note":
  3104. _formdiv = new U.UF.UI.form(
  3105. "便簽分類",
  3106. $$("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 }), {
  3107. "id": "note",
  3108. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  3109. "onresize": function() {}
  3110. }, {
  3111. closecallback: function() {}
  3112. }, { "style": { "height": "36px" } }).form; //創建窗體
  3113. _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); } }
  3114. break;
  3115. // case "score":
  3116. // _formdiv = new U.UF.UI.form(
  3117. // "量規評分",
  3118. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  3119. // "id": "score",
  3120. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3121. // "onresize": function() {}
  3122. // }, {
  3123. // closecallback: function() {}
  3124. // }, { "style": { "height": "36px" } }).form; //創建窗體
  3125. // _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); } }
  3126. // break;
  3127. case "mind":
  3128. _formdiv = new U.UF.UI.form(
  3129. "思維導圖",
  3130. $$("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"
  3131. "id": "mind",
  3132. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3133. "onresize": function() {}
  3134. }, {
  3135. closecallback: function() {}
  3136. }, { "style": { "height": "36px" } }).form; //創建窗體
  3137. _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); } }
  3138. break;
  3139. case "doc":
  3140. // U.MD.D.I.isRoom();
  3141. _formdiv = new U.UF.UI.form(
  3142. "協同文檔",
  3143. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3144. "id": "doc",
  3145. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3146. "onresize": function() {}
  3147. }, {
  3148. closecallback: function() {}
  3149. }, { "style": { "height": "36px" } }).form; //創建窗體
  3150. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  3151. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3152. })
  3153. _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); } }
  3154. break;
  3155. case "study":
  3156. _formdiv = new U.UF.UI.form(
  3157. "課程中心",
  3158. $$("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
  3159. "id": "study",
  3160. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3161. "onresize": function() {}
  3162. }, {
  3163. closecallback: function() {}
  3164. }, { "style": { "height": "36px" } }).form; //創建窗體
  3165. _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); } }
  3166. break;
  3167. case "mindNetwork": //好友打開
  3168. _formdiv = new U.UF.UI.form(
  3169. "思維網格",
  3170. $$("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 }), {
  3171. "id": "mindNetwork",
  3172. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3173. "onresize": function() {}
  3174. }, {
  3175. closecallback: function() {}
  3176. }, { "style": { "height": "36px" } }).form; //創建窗體
  3177. _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); } }
  3178. break;
  3179. case "train": //好友打開
  3180. _formdiv = new U.UF.UI.form(
  3181. "訓練平臺",
  3182. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3183. "id": "mindNetwork",
  3184. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3185. "onresize": function() {}
  3186. }, {
  3187. closecallback: function() {}
  3188. }, { "style": { "height": "36px" } }).form; //創建窗體
  3189. _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); } }
  3190. break;
  3191. case "teacherClassRoom": //好友打開
  3192. _formdiv = new U.UF.UI.form(
  3193. "實時課堂",
  3194. $$("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 }), {
  3195. "id": "teacherClassRoom",
  3196. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3197. "onresize": function() {}
  3198. }, {
  3199. closecallback: function() {}
  3200. }, { "style": { "height": "36px" } }).form; //創建窗體
  3201. _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); } }
  3202. setTimeout(() => {
  3203. U.UF.F.windowZooming(_formdiv)
  3204. }, 0);
  3205. break;
  3206. }
  3207. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  3208. switch (str) {
  3209. case "project": //好友打開
  3210. _formdiv = new U.UF.UI.form(
  3211. "課程管理",
  3212. $$("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 }), {
  3213. "id": "project",
  3214. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3215. "onresize": function() {}
  3216. }, {
  3217. closecallback: function() {}
  3218. }, { "style": { "height": "36px" } }).form; //創建窗體
  3219. _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); } }
  3220. break;
  3221. case "evaluate":
  3222. _formdiv = new U.UF.UI.form(
  3223. "學生評價",
  3224. $$("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 }), {
  3225. "id": "evaluate",
  3226. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3227. "onresize": function() {}
  3228. }, {
  3229. closecallback: function() {}
  3230. }, { "style": { "height": "36px" } }).form; //創建窗體
  3231. _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); } }
  3232. break;
  3233. case "notice":
  3234. _formdiv = new U.UF.UI.form(
  3235. "通知公告",
  3236. $$("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 }), {
  3237. "id": "notice",
  3238. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3239. "onresize": function() {}
  3240. }, {
  3241. closecallback: function() {}
  3242. }, { "style": { "height": "36px" } }).form; //創建窗體
  3243. _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); } }
  3244. break;
  3245. case "stuLibrary":
  3246. _formdiv = new U.UF.UI.form(
  3247. "學習資料",
  3248. $$("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 }), {
  3249. "id": "stuLibrary",
  3250. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3251. "onresize": function() {}
  3252. }, {
  3253. closecallback: function() {}
  3254. }, { "style": { "height": "36px" } }).form; //創建窗體
  3255. _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); } }
  3256. break;
  3257. case "program":
  3258. _formdiv = new U.UF.UI.form(
  3259. "編程平臺",
  3260. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3261. "id": "program",
  3262. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3263. "onresize": function() {}
  3264. }, {
  3265. closecallback: function() {}
  3266. }, { "style": { "height": "36px" } }).form; //創建窗體
  3267. _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); } }
  3268. break;
  3269. case "whiteboard":
  3270. _formdiv = new U.UF.UI.form(
  3271. "電子白板",
  3272. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3273. "id": "whiteboard",
  3274. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3275. "onresize": function() {}
  3276. }, {
  3277. closecallback: function() {}
  3278. }, { "style": { "height": "36px" } }).form; //創建窗體
  3279. _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); } }
  3280. break;
  3281. case "investigation":
  3282. _formdiv = new U.UF.UI.form(
  3283. "問卷調查",
  3284. $$("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 }), {
  3285. "id": "investigation",
  3286. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3287. "onresize": function() {}
  3288. }, {
  3289. closecallback: function() {}
  3290. }, { "style": { "height": "36px" } }).form; //創建窗體
  3291. _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); } }
  3292. break;
  3293. case "mind":
  3294. _formdiv = new U.UF.UI.form(
  3295. "思維導圖",
  3296. $$("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"
  3297. "id": "mind",
  3298. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3299. "onresize": function() {}
  3300. }, {
  3301. closecallback: function() {}
  3302. }, { "style": { "height": "36px" } }).form; //創建窗體
  3303. _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); } }
  3304. break;
  3305. case "doc":
  3306. // U.MD.D.I.isRoom();
  3307. _formdiv = new U.UF.UI.form(
  3308. "協同文檔",
  3309. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3310. "id": "doc",
  3311. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3312. "onresize": function() {}
  3313. }, {
  3314. closecallback: function() {}
  3315. }, { "style": { "height": "36px" } }).form; //創建窗體
  3316. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  3317. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3318. })
  3319. _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); } }
  3320. break;
  3321. case "study":
  3322. _formdiv = new U.UF.UI.form(
  3323. "課程中心",
  3324. $$("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
  3325. "id": "study",
  3326. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3327. "onresize": function() {}
  3328. }, {
  3329. closecallback: function() {}
  3330. }, { "style": { "height": "36px" } }).form; //創建窗體
  3331. _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); } }
  3332. break;
  3333. case "mindNetwork": //好友打開
  3334. _formdiv = new U.UF.UI.form(
  3335. "思維網格",
  3336. $$("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 }), {
  3337. "id": "mindNetwork",
  3338. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3339. "onresize": function() {}
  3340. }, {
  3341. closecallback: function() {}
  3342. }, { "style": { "height": "36px" } }).form; //創建窗體
  3343. _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); } }
  3344. break;
  3345. case "train": //好友打開
  3346. _formdiv = new U.UF.UI.form(
  3347. "訓練平臺",
  3348. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3349. "id": "train",
  3350. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3351. "onresize": function() {}
  3352. }, {
  3353. closecallback: function() {}
  3354. }, { "style": { "height": "36px" } }).form; //創建窗體
  3355. _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); } }
  3356. break;
  3357. case "sys":
  3358. _formdiv = new U.UF.UI.form(
  3359. "目標管理",
  3360. $$("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 }), {
  3361. "id": "sys",
  3362. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3363. "onresize": function() {}
  3364. }, {
  3365. closecallback: function() {}
  3366. }, { "style": { "height": "36px" } }).form; //創建窗體
  3367. _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); } }
  3368. break;
  3369. case "courseDesign":
  3370. _formdiv = new U.UF.UI.form(
  3371. "項目設計",
  3372. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3373. "id": "courseDesign",
  3374. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3375. "onresize": function() {}
  3376. }, {
  3377. closecallback: function() {}
  3378. }, { "style": { "height": "36px" } }).form; //創建窗體
  3379. _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); } }
  3380. break;
  3381. }
  3382. } else if (!_type) {
  3383. switch (str) {
  3384. case "my":
  3385. _formdiv = new U.UF.UI.form(
  3386. "我的資料",
  3387. $$("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 }), {
  3388. "id": "my",
  3389. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3390. "onresize": function() {}
  3391. }, {
  3392. closecallback: function() {}
  3393. }, { "style": { "height": "36px" } }).form; //創建窗體
  3394. _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); } }
  3395. break;
  3396. }
  3397. }
  3398. switch (str) {
  3399. // AIprogram2 AI體驗 aihub.cocorobo.cn
  3400. // Pythonprogram Python編程 python-blockly.cocorobo.cn
  3401. // AIprogram AI編程 ai-blockly.cocorobo.cn
  3402. case "formulaEdi": //公式編輯
  3403. _formdiv = new U.UF.UI.form(
  3404. "公式編輯",
  3405. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.latexlive.com/" }), {
  3406. "id": "formulaEdi",
  3407. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3408. "onresize": function() {}
  3409. }, {
  3410. closecallback: function() {}
  3411. }, { "style": { "height": "36px" } }).form; //創建窗體
  3412. _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); } }
  3413. break;
  3414. case "molStr": //分子結構
  3415. _formdiv = new U.UF.UI.form(
  3416. "分子結構",
  3417. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://molview.org/" }), {
  3418. "id": "molStr",
  3419. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3420. "onresize": function() {}
  3421. }, {
  3422. closecallback: function() {}
  3423. }, { "style": { "height": "36px" } }).form; //創建窗體
  3424. _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); } }
  3425. break;
  3426. case "timeAxis": //時間軸
  3427. _formdiv = new U.UF.UI.form(
  3428. "時間軸",
  3429. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://time.graphics/editor" }), {
  3430. "id": "timeAxis",
  3431. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3432. "onresize": function() {}
  3433. }, {
  3434. closecallback: function() {}
  3435. }, { "style": { "height": "36px" } }).form; //創建窗體
  3436. _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); } }
  3437. break;
  3438. case "AIprogram2": //AI體驗
  3439. _formdiv = new U.UF.UI.form(
  3440. "AI體驗",
  3441. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3442. "id": "AIprogram2",
  3443. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3444. "onresize": function() {}
  3445. }, {
  3446. closecallback: function() {}
  3447. }, { "style": { "height": "36px" } }).form; //創建窗體
  3448. _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); } }
  3449. break;
  3450. case "Pythonprogram": //python編程
  3451. _formdiv = new U.UF.UI.form(
  3452. "Python編程",
  3453. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3454. "id": "Pythonprogram",
  3455. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3456. "onresize": function() {}
  3457. }, {
  3458. closecallback: function() {}
  3459. }, { "style": { "height": "36px" } }).form; //創建窗體
  3460. _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); } }
  3461. break;
  3462. case "AIprogram": //ai編程
  3463. _formdiv = new U.UF.UI.form(
  3464. "AI編程平臺",
  3465. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3466. "id": "AIprogram",
  3467. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3468. "onresize": function() {}
  3469. }, {
  3470. closecallback: function() {}
  3471. }, { "style": { "height": "36px" } }).form; //創建窗體
  3472. _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); } }
  3473. break;
  3474. case "CocoPi": //CocoPi
  3475. _formdiv = new U.UF.UI.form(
  3476. "CocoPi",
  3477. $$("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" }), {
  3478. "id": "CocoPi",
  3479. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3480. "onresize": function() {}
  3481. }, {
  3482. closecallback: function() {}
  3483. }, { "style": { "height": "36px" } }).form; //創建窗體
  3484. _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); } }
  3485. break;
  3486. case "Wood": //Wood
  3487. _formdiv = new U.UF.UI.form(
  3488. "海龜編程",
  3489. $$("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/" }), {
  3490. "id": "Wood",
  3491. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3492. "onresize": function() {}
  3493. }, {
  3494. closecallback: function() {}
  3495. }, { "style": { "height": "36px" } }).form; //創建窗體
  3496. _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); } }
  3497. break;
  3498. case "car": //模擬駕駛
  3499. _formdiv = new U.UF.UI.form(
  3500. "模擬駕駛",
  3501. $$("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/" }), {
  3502. "id": "car",
  3503. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3504. "onresize": function() {}
  3505. }, {
  3506. closecallback: function() {}
  3507. }, { "style": { "height": "36px" } }).form; //創建窗體
  3508. _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); } }
  3509. break;
  3510. case "lineSearch": //路徑搜索
  3511. _formdiv = new U.UF.UI.form(
  3512. "路徑搜索",
  3513. $$("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/" }), {
  3514. "id": "lineSearch",
  3515. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3516. "onresize": function() {}
  3517. }, {
  3518. closecallback: function() {}
  3519. }, { "style": { "height": "36px" } }).form; //創建窗體
  3520. _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); } }
  3521. break;
  3522. case "deepLearning": //深度學習
  3523. _formdiv = new U.UF.UI.form(
  3524. "深度學習",
  3525. $$("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/#" }), {
  3526. "id": "deepLearning",
  3527. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3528. "onresize": function() {}
  3529. }, {
  3530. closecallback: function() {}
  3531. }, { "style": { "height": "36px" } }).form; //創建窗體
  3532. _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); } }
  3533. break;
  3534. case "allHistory": //深度學習
  3535. _formdiv = new U.UF.UI.form(
  3536. "全歷史",
  3537. $$("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/" }), {
  3538. "id": "allHistory",
  3539. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3540. "onresize": function() {}
  3541. }, {
  3542. closecallback: function() {}
  3543. }, { "style": { "height": "36px" } }).form; //創建窗體
  3544. _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); } }
  3545. break;
  3546. case "chatPDF": //ai編程
  3547. _formdiv = new U.UF.UI.form(
  3548. "chatPDF",
  3549. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3550. "id": "chatPDF",
  3551. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3552. "onresize": function() {}
  3553. }, {
  3554. closecallback: function() {}
  3555. }, { "style": { "height": "36px" } }).form; //創建窗體
  3556. _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); } }
  3557. break;
  3558. case "resources": //國家教育
  3559. _formdiv = new U.UF.UI.form(
  3560. "國家教育",
  3561. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3562. "id": "resources",
  3563. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3564. "onresize": function() {}
  3565. }, {
  3566. closecallback: function() {}
  3567. }, { "style": { "height": "36px" } }).form; //創建窗體
  3568. _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); } }
  3569. break;
  3570. case "codeEdit": //源碼編輯
  3571. _formdiv = new U.UF.UI.form(
  3572. "源碼編輯",
  3573. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3574. "id": "codeEdit",
  3575. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3576. "onresize": function() {}
  3577. }, {
  3578. closecallback: function() {}
  3579. }, { "style": { "height": "36px" } }).form; //創建窗體
  3580. _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); } }
  3581. break; //
  3582. case "MindMap": //MindMap
  3583. _formdiv = new U.UF.UI.form(
  3584. "MindMap",
  3585. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3586. "id": "MindMap",
  3587. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3588. "onresize": function() {}
  3589. }, {
  3590. closecallback: function() {}
  3591. }, { "style": { "height": "36px" } }).form; //創建窗體
  3592. _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); } }
  3593. break;
  3594. case "netWorkPanel": //netWorkPanel
  3595. _formdiv = new U.UF.UI.form(
  3596. "netWorkPanel",
  3597. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3598. "id": "netWorkPanel",
  3599. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3600. "onresize": function() {}
  3601. }, {
  3602. closecallback: function() {}
  3603. }, { "style": { "height": "36px" } }).form; //創建窗體
  3604. _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); } }
  3605. break;
  3606. case "GeoGebra": //GeoGebra
  3607. _formdiv = new U.UF.UI.form(
  3608. "GeoGebra",
  3609. $$("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" }), {
  3610. "id": "GeoGebra",
  3611. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3612. "onresize": function() {}
  3613. }, {
  3614. closecallback: function() {}
  3615. }, { "style": { "height": "36px" } }).form; //創建窗體
  3616. _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); } }
  3617. break;
  3618. case "translation": //翻譯
  3619. _formdiv = new U.UF.UI.form(
  3620. "翻譯",
  3621. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3622. "id": "translation",
  3623. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3624. "onresize": function() {}
  3625. }, {
  3626. closecallback: function() {}
  3627. }, { "style": { "height": "36px" } }).form; //創建窗體
  3628. _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); } }
  3629. break;
  3630. case "mohe": //魔盒
  3631. _formdiv = new U.UF.UI.form(
  3632. "魔盒識字",
  3633. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3634. "id": "mohe",
  3635. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3636. "onresize": function() {}
  3637. }, {
  3638. closecallback: function() {}
  3639. }, { "style": { "height": "36px" } }).form; //創建窗體
  3640. _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); } }
  3641. break;
  3642. case "24game": //24點
  3643. _formdiv = new U.UF.UI.form(
  3644. "24點",
  3645. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3646. "id": "24game",
  3647. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3648. "onresize": function() {}
  3649. }, {
  3650. closecallback: function() {}
  3651. }, { "style": { "height": "36px" } }).form; //創建窗體
  3652. _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); } }
  3653. break;
  3654. case "case":
  3655. _formdiv = new U.UF.UI.form(
  3656. "課程進展",
  3657. $$("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 }), {
  3658. "id": "case",
  3659. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3660. "onresize": function() {}
  3661. }, {
  3662. closecallback: function() {}
  3663. }, { "style": { "height": "36px" } }).form; //創建窗體
  3664. _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); } }
  3665. break;
  3666. case "snf":
  3667. _formdiv = new U.UF.UI.form(
  3668. "賽諾梵",
  3669. $$("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" }), {
  3670. "id": "snf",
  3671. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3672. "onresize": function() {}
  3673. }, {
  3674. closecallback: function() {}
  3675. }, { "style": { "height": "36px" } }).form; //創建窗體
  3676. _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); } }
  3677. break;
  3678. case "hanFamily":
  3679. _formdiv = new U.UF.UI.form(
  3680. "漢字家族",
  3681. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3682. "id": "hanFamily",
  3683. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3684. "onresize": function() {}
  3685. }, {
  3686. closecallback: function() {}
  3687. }, { "style": { "height": "36px" } }).form; //創建窗體
  3688. _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); } }
  3689. break;
  3690. case "hanClassics":
  3691. _formdiv = new U.UF.UI.form(
  3692. "國學經典",
  3693. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3694. "id": "hanClassics",
  3695. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3696. "onresize": function() {}
  3697. }, {
  3698. closecallback: function() {}
  3699. }, { "style": { "height": "36px" } }).form; //創建窗體
  3700. _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); } }
  3701. break;
  3702. case "hanTraining":
  3703. _formdiv = new U.UF.UI.form(
  3704. "筆畫訓練",
  3705. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3706. "id": "hanTraining",
  3707. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3708. "onresize": function() {}
  3709. }, {
  3710. closecallback: function() {}
  3711. }, { "style": { "height": "36px" } }).form; //創建窗體
  3712. _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); } }
  3713. break;
  3714. case "hanClass":
  3715. _formdiv = new U.UF.UI.form(
  3716. "書法課堂",
  3717. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3718. "id": "hanClass",
  3719. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3720. "onresize": function() {}
  3721. }, {
  3722. closecallback: function() {}
  3723. }, { "style": { "height": "36px" } }).form; //創建窗體
  3724. _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); } }
  3725. break;
  3726. case "han":
  3727. _formdiv = new U.UF.UI.form(
  3728. "漢字宮",
  3729. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3730. "id": "han",
  3731. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3732. "onresize": function() {}
  3733. }, {
  3734. closecallback: function() {}
  3735. }, { "style": { "height": "36px" } }).form; //創建窗體
  3736. _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); } }
  3737. break;
  3738. case "projectGM": //課程管理
  3739. _formdiv = new U.UF.UI.form(
  3740. "課程管理",
  3741. $$("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 }), {
  3742. "id": "projectGM",
  3743. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3744. "onresize": function() {}
  3745. }, {
  3746. closecallback: function() {}
  3747. }, { "style": { "height": "36px" } }).form; //創建窗體
  3748. _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); } }
  3749. break;
  3750. case "studyGM": //課程中心
  3751. _formdiv = new U.UF.UI.form(
  3752. "課程中心",
  3753. $$("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
  3754. "id": "study",
  3755. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3756. "onresize": function() {}
  3757. }, {
  3758. closecallback: function() {}
  3759. }, { "style": { "height": "36px" } }).form; //創建窗體
  3760. _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); } }
  3761. break;
  3762. // studentGM
  3763. case "studentGM": //學生管理
  3764. _formdiv = new U.UF.UI.form(
  3765. "學生管理",
  3766. $$("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 }), {
  3767. "id": "studentGM",
  3768. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3769. "onresize": function() {}
  3770. }, {
  3771. closecallback: function() {}
  3772. }, { "style": { "height": "36px" } }).form; //創建窗體
  3773. _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); } }
  3774. break;
  3775. case "evaluateGM": //學生評價
  3776. _formdiv = new U.UF.UI.form(
  3777. "學生評價",
  3778. $$("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 }), {
  3779. "id": "evaluateGM",
  3780. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3781. "onresize": function() {}
  3782. }, {
  3783. closecallback: function() {}
  3784. }, { "style": { "height": "36px" } }).form; //創建窗體
  3785. _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); } }
  3786. break;
  3787. // classGM
  3788. case "classGM": //班級管理
  3789. _formdiv = new U.UF.UI.form(
  3790. "班級管理",
  3791. $$("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 }), {
  3792. "id": "classGM",
  3793. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3794. "onresize": function() {}
  3795. }, {
  3796. closecallback: function() {}
  3797. }, { "style": { "height": "36px" } }).form; //創建窗體
  3798. _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); } }
  3799. break;
  3800. // dataGM
  3801. case "dataGM":
  3802. _formdiv = new U.UF.UI.form(
  3803. "我的資料",
  3804. $$("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 }), {
  3805. "id": "dataGM",
  3806. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3807. "onresize": function() {}
  3808. }, {
  3809. closecallback: function() {}
  3810. }, { "style": { "height": "36px" } }).form; //創建窗體
  3811. _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); } }
  3812. break;
  3813. // caseGM
  3814. case "caseGM": //課程進展
  3815. _formdiv = new U.UF.UI.form(
  3816. "課程進展",
  3817. $$("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 }), {
  3818. "id": "caseGM",
  3819. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3820. "onresize": function() {}
  3821. }, {
  3822. closecallback: function() {}
  3823. }, { "style": { "height": "36px" } }).form; //創建窗體
  3824. _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); } }
  3825. break;
  3826. // meterialGM
  3827. case "meterialGM": //素材庫
  3828. _formdiv = new U.UF.UI.form(
  3829. "素材庫",
  3830. $$("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 }), {
  3831. "id": "meterialGM",
  3832. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3833. "onresize": function() {}
  3834. }, {
  3835. closecallback: function() {}
  3836. }, { "style": { "height": "36px" } }).form; //創建窗體
  3837. _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); } }
  3838. break;
  3839. // evaluateSGM
  3840. case "evaluateSGM": //我的評價
  3841. _formdiv = new U.UF.UI.form(
  3842. "我的評價",
  3843. $$("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 }), {
  3844. "id": "evaluateSGM",
  3845. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3846. "onresize": function() {}
  3847. }, {
  3848. closecallback: function() {}
  3849. }, { "style": { "height": "36px" } }).form; //創建窗體
  3850. _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); } }
  3851. break;
  3852. case "jupyter": //jupyter
  3853. _formdiv = new U.UF.UI.form(
  3854. "jupyter",
  3855. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3856. "id": "jupyter",
  3857. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3858. "onresize": function() {}
  3859. }, {
  3860. closecallback: function() {}
  3861. }, { "style": { "height": "36px" } }).form; //創建窗體
  3862. _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); } }
  3863. break;
  3864. case "number": //數字實驗室
  3865. _formdiv = new U.UF.UI.form(
  3866. "數字實驗室",
  3867. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3868. "id": "number",
  3869. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3870. "onresize": function() {}
  3871. }, {
  3872. closecallback: function() {}
  3873. }, { "style": { "height": "36px" } }).form; //創建窗體
  3874. _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); } }
  3875. break;
  3876. case "studentCourse": //項目管理 學生
  3877. _formdiv = new U.UF.UI.form(
  3878. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  3879. $$("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 }), {
  3880. "id": "studentCourse",
  3881. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3882. "onresize": function() {}
  3883. }, {
  3884. closecallback: function() {}
  3885. }, { "style": { "height": "36px" } }).form; //創建窗體
  3886. _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); } }
  3887. break;
  3888. case "studentCourseS": //項目管理 老師
  3889. _formdiv = new U.UF.UI.form(
  3890. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  3891. $$("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 }), {
  3892. "id": "studentCourseS",
  3893. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3894. "onresize": function() {}
  3895. }, {
  3896. closecallback: function() {}
  3897. }, { "style": { "height": "36px" } }).form; //創建窗體
  3898. _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); } }
  3899. break;
  3900. case "studentIndex": //項目中心
  3901. _formdiv = new U.UF.UI.form(
  3902. "項目中心",
  3903. $$("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 }), {
  3904. "id": "studentIndex",
  3905. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3906. "onresize": function() {}
  3907. }, {
  3908. closecallback: function() {}
  3909. }, { "style": { "height": "36px" } }).form; //創建窗體
  3910. _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); } }
  3911. break;
  3912. case "CaseDesignS":
  3913. _formdiv = new U.UF.UI.form(
  3914. "項目進展",
  3915. $$("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 }), {
  3916. "id": "case",
  3917. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3918. "onresize": function() {}
  3919. }, {
  3920. closecallback: function() {}
  3921. }, { "style": { "height": "36px" } }).form; //創建窗體
  3922. _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); } }
  3923. break;
  3924. case "tcStudent": //騰訊學生管理
  3925. _formdiv = new U.UF.UI.form(
  3926. "學生管理",
  3927. $$("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 }), {
  3928. "id": "tcStudent",
  3929. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3930. "onresize": function() {}
  3931. }, {
  3932. closecallback: function() {}
  3933. }, { "style": { "height": "36px" } }).form; //創建窗體
  3934. _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); } }
  3935. break;
  3936. case "tcSchool": //騰訊學校管理
  3937. _formdiv = new U.UF.UI.form(
  3938. "學校管理",
  3939. $$("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 }), {
  3940. "id": "tcSchool",
  3941. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3942. "onresize": function() {}
  3943. }, {
  3944. closecallback: function() {}
  3945. }, { "style": { "height": "36px" } }).form; //創建窗體
  3946. _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); } }
  3947. break;
  3948. case "tcTeacher": //騰訊學校管理
  3949. _formdiv = new U.UF.UI.form(
  3950. "教師管理",
  3951. $$("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 }), {
  3952. "id": "tcTeacher",
  3953. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3954. "onresize": function() {}
  3955. }, {
  3956. closecallback: function() {}
  3957. }, { "style": { "height": "36px" } }).form; //創建窗體
  3958. _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); } }
  3959. break;
  3960. case "tcData": //騰訊我的資料
  3961. _formdiv = new U.UF.UI.form(
  3962. "我的資料",
  3963. $$("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 }), {
  3964. "id": "tcData",
  3965. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3966. "onresize": function() {}
  3967. }, {
  3968. closecallback: function() {}
  3969. }, { "style": { "height": "36px" } }).form; //創建窗體
  3970. _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); } }
  3971. break;
  3972. case "tcNotice": //騰訊消息通知
  3973. _formdiv = new U.UF.UI.form(
  3974. "消息通知",
  3975. $$("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 }), {
  3976. "id": "tcNotice",
  3977. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3978. "onresize": function() {}
  3979. }, {
  3980. closecallback: function() {}
  3981. }, { "style": { "height": "36px" } }).form; //創建窗體
  3982. _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); } }
  3983. break;
  3984. case "myReport": //好友打開
  3985. _formdiv = new U.UF.UI.form(
  3986. "我的評價",
  3987. $$("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 }), {
  3988. "id": "myReport",
  3989. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3990. "onresize": function() {}
  3991. }, {
  3992. closecallback: function() {}
  3993. }, { "style": { "height": "36px" } }).form; //創建窗體
  3994. _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); } }
  3995. break;
  3996. case "learnAna": //好友打開
  3997. _formdiv = new U.UF.UI.form(
  3998. "學習分析",
  3999. $$("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 }), {
  4000. "id": "learnAna",
  4001. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4002. "onresize": function() {}
  4003. }, {
  4004. closecallback: function() {}
  4005. }, { "style": { "height": "36px" } }).form; //創建窗體
  4006. _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); } }
  4007. break;
  4008. case "AIChat": //AI共創
  4009. _formdiv = new U.UF.UI.form(
  4010. "AI共創",
  4011. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/aichat/" }), {
  4012. "id": "AIChat",
  4013. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  4014. "onresize": function () { }
  4015. }, {
  4016. istop: true,
  4017. closecallback: function () { $("#aichat_icon").remove(); },
  4018. narrowcallback: function () {
  4019. if (!$("#aichat_icon")[0]) {
  4020. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  4021. }
  4022. },
  4023. }, { "style": { "height": "36px" } }).form; //創建窗體
  4024. _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); } }
  4025. break;
  4026. case "ainew": //AI共創
  4027. _formdiv = new U.UF.UI.form(
  4028. "AI協同",
  4029. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ainew/" }), {
  4030. "id": "ainew",
  4031. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4032. "onresize": function () { }
  4033. }, {
  4034. closecallback: function () { }
  4035. }, { "style": { "height": "36px" } }).form; //創建窗體
  4036. _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); } }
  4037. break;
  4038. case "AIAnalyse": //AI共創
  4039. _formdiv = new U.UF.UI.form(
  4040. "AI分析",
  4041. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ai/" }), {
  4042. "id": "AIAnalyse",
  4043. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4044. "onresize": function () { }
  4045. }, {
  4046. closecallback: function () { }
  4047. }, { "style": { "height": "36px" } }).form; //創建窗體
  4048. _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); } }
  4049. break;
  4050. case "studioCourse": //AI共創
  4051. _formdiv = new U.UF.UI.form(
  4052. "工作管理",
  4053. $$("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 }), {
  4054. "id": "studioCourse",
  4055. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4056. "onresize": function() {}
  4057. }, {
  4058. closecallback: function() {}
  4059. }, { "style": { "height": "36px" } }).form; //創建窗體
  4060. _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); } }
  4061. break;
  4062. case "studioIndex": //AI共創
  4063. _formdiv = new U.UF.UI.form(
  4064. "工作中心",
  4065. $$("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 }), {
  4066. "id": "studioIndex",
  4067. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4068. "onresize": function() {}
  4069. }, {
  4070. closecallback: function() {}
  4071. }, { "style": { "height": "36px" } }).form; //創建窗體
  4072. _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); } }
  4073. break;
  4074. case "source":
  4075. _formdiv = new U.UF.UI.form(
  4076. "教學資源",
  4077. $$("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 }), {
  4078. "id": "source",
  4079. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4080. "onresize": function () { }
  4081. }, {
  4082. closecallback: function () { }
  4083. }, { "style": { "height": "36px" } }).form; //創建窗體
  4084. _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); } }
  4085. break;
  4086. }
  4087. //U.MD.D.I.openClick(str);
  4088. //如果有任務欄信息
  4089. if (_taskbar) {
  4090. U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4091. }
  4092. }
  4093. // U.MD.D.I.openClick = function(str){
  4094. // var click = '';
  4095. // switch(str){
  4096. // case 'friend':
  4097. // click = '我的好友';
  4098. // break;
  4099. // case 'domain':
  4100. // click = '域名管理';
  4101. // break;
  4102. // case 'disk':
  4103. // click = '我的雲盤';
  4104. // break;
  4105. // case 'word':
  4106. // click = 'Word';
  4107. // break;
  4108. // case 'excel':
  4109. // click = 'Execl';
  4110. // break;
  4111. // case 'txt':
  4112. // click = '文本文件';
  4113. // break;
  4114. // case 'lookupFriend':
  4115. // click = '查找好友';
  4116. // break;
  4117. // case 'ftp':
  4118. // click = 'FTP';
  4119. // break;
  4120. // case 'group':
  4121. // click = '群組';
  4122. // break;
  4123. // case 'set':
  4124. // click = '我的設置';
  4125. // break;
  4126. // case 'systemSet':
  4127. // click = '系統設置';
  4128. // break;
  4129. // case 'boomYun':
  4130. // click = '互聯辦公';
  4131. // break;
  4132. // case 'xz':
  4133. // click = '雲端下載';
  4134. // break;
  4135. // case 'client':
  4136. // click = '有思瀏覽器';
  4137. // break;
  4138. // case 'backEndProgramming':
  4139. // click = '在線後臺編程';
  4140. // break;
  4141. // case 'frontEndProgramming':
  4142. // click = '在線前端編程';
  4143. // break;
  4144. // default: break;
  4145. // }
  4146. // if(U.MD.D.I.Ip && click){
  4147. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  4148. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  4149. // })
  4150. // }
  4151. // }
  4152. /**
  4153. *函數作用:ajax簡易函數,使用post格式
  4154. *@param url {data} 後臺地址
  4155. *@param data {data} 參數json
  4156. *@param fn {data} 回調函數
  4157. *
  4158. */
  4159. // U.MD.D.I.Mysqlrequest = function(url,fn){
  4160. // var xhr = new XMLHttpRequest();
  4161. // xhr.open("GET",url,true);
  4162. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  4163. // xhr.onreadystatechange = function(){
  4164. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  4165. // fn.call(this,xhr.responseText);
  4166. // }
  4167. // };
  4168. // xhr.send();
  4169. // }
  4170. /*判斷是否是內網IP*/
  4171. // U.MD.D.I.isInnerIPFn = function(str){
  4172. // var curPageUrl = str;
  4173. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前綴
  4174. // curPageUrl =curPageUrl.replace(reg1,'');
  4175. // // console.log('curPageUrl-1 '+curPageUrl);
  4176. // var reg2 = /\:+/g;//替換冒號為一點
  4177. // curPageUrl =curPageUrl.replace(reg2,'.');
  4178. // // console.log('curPageUrl-2 '+curPageUrl);
  4179. // curPageUrl = curPageUrl.split('.');//通過一點來劃分數組
  4180. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  4181. // if(curPageUrl[2] != '16'){
  4182. // return ipAddress;
  4183. // }else{
  4184. // return false;
  4185. // }
  4186. // }
  4187. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  4188. // //compatibility for firefox and chrome
  4189. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  4190. // var pc = new myPeerConnection({
  4191. // iceServers: []
  4192. // }),
  4193. // noop = function() {},
  4194. // localIPs = {},
  4195. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  4196. // key;
  4197. // function iterateIP(ip) {
  4198. // if (!localIPs[ip]) onNewIP(ip);
  4199. // localIPs[ip] = true;
  4200. // }
  4201. // //create a bogus data channel
  4202. // pc.createDataChannel("");
  4203. // // create offer and set local description
  4204. // pc.createOffer().then(function(sdp) {
  4205. // sdp.sdp.split('\n').forEach(function(line) {
  4206. // if (line.indexOf('candidate') < 0) return;
  4207. // line.match(ipRegex).forEach(iterateIP);
  4208. // });
  4209. // pc.setLocalDescription(sdp, noop, noop);
  4210. // }).catch(function(reason) {
  4211. // // An error occurred, so handle the failure to connect
  4212. // });
  4213. // //sten for candidate events
  4214. // pc.onicecandidate = function(ice) {
  4215. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  4216. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  4217. // };
  4218. // }
  4219. // U.MD.D.I.getUserIpBool = function(callback){
  4220. // U.MD.D.I.getUserIP(function(ip){
  4221. // alert("Got IP! :" + ip);
  4222. // });
  4223. //}
  4224. //#endregion
  4225. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  4226. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4227. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4228. _userinfo = US.userInfo, //登錄用戶信息
  4229. _userid = US.userInfo.userid //登錄用戶id
  4230. let _iframe;
  4231. let _cid = cid,
  4232. _stage = stage,
  4233. _task = task,
  4234. _tool = tool;
  4235. var _jie = $$("div", {
  4236. "style": {
  4237. "position": "absolute",
  4238. "bottom": "50px",
  4239. "right": "50px",
  4240. "zIndex": "9999",
  4241. "backgroundColor": "#2268bc",
  4242. "color": "#fff",
  4243. "padding": "12px 20px",
  4244. "cursor": "pointer",
  4245. "borderRadius": "4px",
  4246. },
  4247. "innerHTML": "提交作業"
  4248. })
  4249. let aTool = ''
  4250. let _loading = document.createElement('div')
  4251. _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;"
  4252. // _loading.id = "";
  4253. let _lchild = document.createElement('div')
  4254. let _limg = document.createElement('img')
  4255. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4256. _limg.style = "width: 26px;margin-right: 10px;"
  4257. _lchild.appendChild(_limg)
  4258. let _lspan = document.createElement('span')
  4259. _lspan.innerHTML = "上傳中..."
  4260. _lchild.appendChild(_lspan)
  4261. _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%);"
  4262. _loading.appendChild(_lchild)
  4263. var _box = $$('div', {
  4264. "style": {
  4265. "position": "relative",
  4266. "width": "100%",
  4267. "height": "100%",
  4268. },
  4269. })
  4270. _box.appendChild(_loading)
  4271. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool + _userid
  4272. switch (str) {
  4273. case "whiteboard":
  4274. aTool = 1;
  4275. _iframe = $$("iframe", {
  4276. "frameborder": "no",
  4277. "border": "0",
  4278. "scrolling ": "no",
  4279. "style": {
  4280. "cssText": "border:0;width:100%;height:100%"
  4281. },
  4282. "src": "https://iwb.cocorobo.hk/"
  4283. })
  4284. _box.appendChild(_iframe);
  4285. _box.appendChild(_jie);
  4286. _formdiv = new U.UF.UI.form(
  4287. "電子白板",
  4288. _box, {
  4289. "id": "whiteboard" + cid + stage + task + tool,
  4290. "style": {
  4291. "width": "90%",
  4292. "height": "90%",
  4293. "overflow": 'hidden'
  4294. },
  4295. "onresize": function () { }
  4296. }, {
  4297. closecallback: function () { }
  4298. }, {
  4299. "style": {
  4300. "height": "36px"
  4301. }
  4302. }).form; //創建窗體
  4303. _taskbar = {
  4304. "id": str + _formdiv.id,
  4305. "style": {
  4306. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4307. },
  4308. "name": "電子白板",
  4309. "forms": _formdiv,
  4310. "click": function() {
  4311. U.MD.D.I.openApplication(str, obj, info);
  4312. }
  4313. }
  4314. break;
  4315. case "mind":
  4316. aTool = 3;
  4317. _iframe = $$("iframe", {
  4318. "frameborder": "no",
  4319. "border": "0",
  4320. "scrolling ": "no",
  4321. "style": {
  4322. "cssText": "border:0;width:100%;height:100%"
  4323. },
  4324. "src": "/kityminder-editor/dist/index.html"
  4325. })
  4326. _box.appendChild(_iframe);
  4327. _box.appendChild(_jie);
  4328. _formdiv = new U.UF.UI.form(
  4329. "思維導圖",
  4330. _box, { //"/jsmind/example/demo.html"
  4331. "id": "mind" + cid + stage + task + tool,
  4332. "style": {
  4333. "width": "90%",
  4334. "height": "90%",
  4335. "overflow": 'hidden'
  4336. },
  4337. "onresize": function () { }
  4338. }, {
  4339. closecallback: function () { }
  4340. }, {
  4341. "style": {
  4342. "height": "36px"
  4343. }
  4344. }).form; //創建窗體
  4345. _taskbar = {
  4346. "id": str + _formdiv.id,
  4347. "style": {
  4348. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4349. },
  4350. "name": "思維導圖",
  4351. "forms": _formdiv,
  4352. "click": function() {
  4353. U.MD.D.I.openApplication(str, obj, info);
  4354. }
  4355. }
  4356. break;
  4357. case "MindMap":
  4358. aTool = 3;
  4359. _iframe = $$("iframe", {
  4360. "frameborder": "no",
  4361. "border": "0",
  4362. "scrolling ": "no",
  4363. "style": {
  4364. "cssText": "border:0;width:100%;height:100%"
  4365. },
  4366. "src": "//cloud.cocorobo.hk/mind/"
  4367. })
  4368. _box.appendChild(_iframe);
  4369. _box.appendChild(_jie);
  4370. _formdiv = new U.UF.UI.form(
  4371. "思維導圖",
  4372. _box, { //"/jsmind/example/demo.html"
  4373. "id": "mind" + cid + stage + task + tool,
  4374. "style": {
  4375. "width": "90%",
  4376. "height": "90%",
  4377. "overflow": 'hidden'
  4378. },
  4379. "onresize": function () { }
  4380. }, {
  4381. closecallback: function () { }
  4382. }, {
  4383. "style": {
  4384. "height": "36px"
  4385. }
  4386. }).form; //創建窗體
  4387. _taskbar = {
  4388. "id": str + _formdiv.id,
  4389. "style": {
  4390. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4391. },
  4392. "name": "思維導圖",
  4393. "forms": _formdiv,
  4394. "click": function() {
  4395. U.MD.D.I.openApplication(str, obj, info);
  4396. }
  4397. }
  4398. break;
  4399. case "doc":
  4400. aTool = 6;
  4401. _iframe = $$("iframe", {
  4402. "frameborder": "no",
  4403. "border": "0",
  4404. "scrolling ": "no",
  4405. "style": {
  4406. "cssText": "border:0;width:100%;height:100%"
  4407. },
  4408. "src": "/Office/Word/WordEditArea.htm"
  4409. })
  4410. _box.appendChild(_iframe);
  4411. _box.appendChild(_jie);
  4412. _formdiv = new U.UF.UI.form(
  4413. "協同文檔",
  4414. _box, {
  4415. "id": "doc" + cid + stage + task + tool,
  4416. "style": {
  4417. "width": "90%",
  4418. "height": "90%",
  4419. "overflow": 'hidden'
  4420. },
  4421. "onresize": function () { }
  4422. }, {
  4423. closecallback: function () { }
  4424. }, {
  4425. "style": {
  4426. "height": "36px"
  4427. }
  4428. }).form; //創建窗體
  4429. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  4430. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4431. })
  4432. _taskbar = {
  4433. "id": str + _formdiv.id,
  4434. "style": {
  4435. "backgroundImage": "url(/img/icon/doc.png)"
  4436. },
  4437. "name": "協同文檔",
  4438. "forms": _formdiv,
  4439. "click": function() {
  4440. U.MD.D.I.openApplication(str, obj, info);
  4441. }
  4442. }
  4443. break;
  4444. case "mindNetwork": //好友打開
  4445. aTool = 7;
  4446. _iframe = $$("iframe", {
  4447. "webkitallowfullscreen": "",
  4448. "mozallowfullscreen": "",
  4449. "allowfullscreen": "",
  4450. "frameborder": "no",
  4451. "border": "0",
  4452. "scrolling ": "no",
  4453. "style": {
  4454. "cssText": "border:0; width:100%; height:100%;"
  4455. },
  4456. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4457. })
  4458. _box.appendChild(_iframe);
  4459. _box.appendChild(_jie);
  4460. _formdiv = new U.UF.UI.form(
  4461. "思維網格",
  4462. _box, {
  4463. "id": "mindNetwork" + cid + stage + task + tool,
  4464. "style": {
  4465. "width": "90%",
  4466. "height": "90%",
  4467. "overflow": 'hidden'
  4468. },
  4469. "onresize": function () { }
  4470. }, {
  4471. closecallback: function () { }
  4472. }, {
  4473. "style": {
  4474. "height": "36px"
  4475. }
  4476. }).form; //創建窗體
  4477. _taskbar = {
  4478. "id": str + _formdiv.id,
  4479. "style": {
  4480. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4481. },
  4482. "name": "思維網格",
  4483. "forms": _formdiv,
  4484. "click": function() {
  4485. U.MD.D.I.openApplication(str, obj, info);
  4486. }
  4487. }
  4488. break;
  4489. case "courseDesign":
  4490. _iframe = $$("iframe", {
  4491. "webkitallowfullscreen": "",
  4492. "mozallowfullscreen": "",
  4493. "allowfullscreen": "",
  4494. "frameborder": "no",
  4495. "border": "0",
  4496. "scrolling ": "no",
  4497. "style": {
  4498. "cssText": "border:0; width:100%; height:100%;"
  4499. },
  4500. "src": "/course-design-vue"
  4501. })
  4502. _box.appendChild(_iframe);
  4503. _box.appendChild(_jie);
  4504. _formdiv = new U.UF.UI.form(
  4505. "項目設計",
  4506. _box, {
  4507. "id": "courseDesign" + cid + stage + task + tool,
  4508. "style": {
  4509. "width": "90%",
  4510. "height": "90%",
  4511. "overflow": 'hidden'
  4512. },
  4513. "onresize": function () { }
  4514. }, {
  4515. closecallback: function () { }
  4516. }, {
  4517. "style": {
  4518. "height": "36px"
  4519. }
  4520. }).form; //創建窗體
  4521. _taskbar = {
  4522. "id": str + _formdiv.id,
  4523. "style": {
  4524. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4525. },
  4526. "name": "項目設計",
  4527. "forms": _formdiv,
  4528. "click": function() {
  4529. U.MD.D.I.openApplication(str, obj, info);
  4530. }
  4531. }
  4532. break;
  4533. }
  4534. const script1 = document.createElement("script");
  4535. script1.type = "text/javascript";
  4536. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4537. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  4538. const script2 = document.createElement("script");
  4539. script2.type = "text/javascript";
  4540. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4541. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  4542. const script3 = document.createElement("script");
  4543. script3.type = "text/javascript";
  4544. script3.charset = "UTF-8";
  4545. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  4546. const script4 = document.createElement("script");
  4547. script4.type = "text/javascript";
  4548. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4549. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  4550. if (_iframe) {
  4551. if (str == 'doc') {
  4552. _iframe = _formdiv.querySelector('iframe')
  4553. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4554. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4555. _iframe.contentWindow.document.body.appendChild(script1);
  4556. _iframe.contentWindow.document.body.appendChild(script2);
  4557. // _iframe.contentWindow.document.body.appendChild(script3);
  4558. _iframe.contentWindow.document.body.appendChild(script4);
  4559. })
  4560. if (onloadListener) {
  4561. _iframe.contentDocument.location.reload()
  4562. } else {
  4563. _iframe.contentDocument.location.reload()
  4564. }
  4565. } else if (str == 'courseDesign') {
  4566. U.UF.DL.iframeLoad(_iframe, function() {
  4567. // _iframe.contentWindow.U.MD.O.W.load();
  4568. // _iframe.contentWindow.document.body.appendChild(script1);
  4569. _iframe.contentWindow.document.body.appendChild(script2);
  4570. _iframe.contentWindow.document.body.appendChild(script4);
  4571. })
  4572. } else if (str == 'mind') {
  4573. _iframe = _formdiv.querySelector('iframe')
  4574. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4575. //
  4576. _iframe.contentWindow.document.body.appendChild(script1);
  4577. _iframe.contentWindow.document.body.appendChild(script2);
  4578. _iframe.contentWindow.document.body.appendChild(script4);
  4579. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4580. })
  4581. if (onloadListener) {
  4582. _iframe.contentDocument.location.reload()
  4583. } else {
  4584. _iframe.contentDocument.location.reload()
  4585. }
  4586. } else if (str == 'whiteboard') {
  4587. _iframe = _formdiv.querySelector('iframe')
  4588. let onloadListener = _iframe.onload = () => {
  4589. _iframe.contentWindow.document.body.appendChild(script1);
  4590. _iframe.contentWindow.document.body.appendChild(script2);
  4591. _iframe.contentWindow.document.body.appendChild(script4);
  4592. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4593. };
  4594. if (onloadListener) {
  4595. _iframe.contentDocument.location.reload()
  4596. } else {
  4597. _iframe.contentDocument.location.reload()
  4598. }
  4599. } else {
  4600. _iframe.onload = () => {
  4601. _iframe.contentWindow.document.body.appendChild(script1);
  4602. _iframe.contentWindow.document.body.appendChild(script2);
  4603. // _iframe.contentWindow.document.body.appendChild(script3);
  4604. _iframe.contentWindow.document.body.appendChild(script4);
  4605. };
  4606. }
  4607. _jie.onclick = async() => {
  4608. let text = ''
  4609. if (aTool == 1) {
  4610. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4611. } else if (aTool == 6) {
  4612. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4613. } else if (aTool == 3) {
  4614. text = await U.MD.D.I.getEditorContent(_iframe);
  4615. }
  4616. _loading.style.display = 'flex'
  4617. console.log(_loading);
  4618. var _ajs = _iframe.contentWindow.document.createElement("script");
  4619. _ajs.type = "text/javascript";
  4620. _ajs.innerHTML =
  4621. // 'console.log(' + _loading + ');\n' +
  4622. 'var _js = document.createElement("script");\n' +
  4623. '_js.type="text/javascript";\n' +
  4624. '_js.charset="UTF-8";\n' +
  4625. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  4626. "_js.onload = function(){\n" +
  4627. ' var a = document.getElementsByTagName("img")\n' +
  4628. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4629. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4630. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4631. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4632. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  4633. "beforeUpload_shishi(file," +
  4634. "'" +
  4635. _userid +
  4636. "'" +
  4637. ", " +
  4638. "'" +
  4639. _cid +
  4640. "'" +
  4641. ", " +
  4642. "'" +
  4643. _stage +
  4644. "'" +
  4645. ", " +
  4646. "'" +
  4647. _task +
  4648. "'" +
  4649. ", " +
  4650. "'" +
  4651. _tool +
  4652. "'" +
  4653. ", " +
  4654. "'" +
  4655. (str + '_loadLi_Jie' + cid + stage + task + tool + _userid) +
  4656. "'" +
  4657. ", " +
  4658. "'" +
  4659. aTool +
  4660. "'" +
  4661. ", " +
  4662. "`" +
  4663. text +
  4664. "`" +
  4665. ")\n" +
  4666. " });\n" +
  4667. "}\n" +
  4668. "document.head.appendChild(_js);\n";
  4669. _iframe.contentWindow.document.head.appendChild(_ajs);
  4670. }
  4671. }
  4672. //U.MD.D.I.openClick(str);
  4673. //如果有任務欄信息
  4674. // if (_taskbar) {
  4675. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4676. // }
  4677. }
  4678. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4679. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4680. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4681. _userinfo = US.userInfo, //登錄用戶信息
  4682. _userid = US.userInfo.userid //登錄用戶id
  4683. let _iframe;
  4684. let _cid = cid,
  4685. _stage = stage,
  4686. _task = task,
  4687. _tool = tool;
  4688. var _jie = $$("div", {
  4689. "style": {
  4690. "position": "absolute",
  4691. "bottom": "50px",
  4692. "right": "50px",
  4693. "zIndex": "9999",
  4694. "backgroundColor": "#2268bc",
  4695. "color": "#fff",
  4696. "padding": "12px 20px",
  4697. "cursor": "pointer",
  4698. "borderRadius": "4px",
  4699. },
  4700. "innerHTML": "提交作業"
  4701. })
  4702. let aTool = ''
  4703. let _loading = document.createElement('div')
  4704. _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;"
  4705. // _loading.id = "";
  4706. let _lchild = document.createElement('div')
  4707. let _limg = document.createElement('img')
  4708. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4709. _limg.style = "width: 26px;margin-right: 10px;"
  4710. _lchild.appendChild(_limg)
  4711. let _lspan = document.createElement('span')
  4712. _lspan.innerHTML = "上傳中..."
  4713. _lchild.appendChild(_lspan)
  4714. _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%);"
  4715. _loading.appendChild(_lchild)
  4716. var _box = $$('div', {
  4717. "style": {
  4718. "position": "relative",
  4719. "width": "100%",
  4720. "height": "100%",
  4721. },
  4722. })
  4723. _box.appendChild(_loading)
  4724. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool + _userid
  4725. switch (str) {
  4726. case "whiteboard":
  4727. aTool = 1;
  4728. _iframe = $$("iframe", {
  4729. "frameborder": "no",
  4730. "border": "0",
  4731. "scrolling ": "no",
  4732. "style": {
  4733. "cssText": "border:0;width:100%;height:100%"
  4734. },
  4735. "src": "https://iwb.cocorobo.hk/"
  4736. })
  4737. _box.appendChild(_iframe);
  4738. _box.appendChild(_jie);
  4739. _formdiv = new U.UF.UI.form(
  4740. "電子白板",
  4741. _box, {
  4742. "id": "whiteboard" + cid + stage + task + tool,
  4743. "style": {
  4744. "width": "90%",
  4745. "height": "90%",
  4746. "overflow": 'hidden'
  4747. },
  4748. "onresize": function () { }
  4749. }, {
  4750. closecallback: function () { }
  4751. }, {
  4752. "style": {
  4753. "height": "36px"
  4754. }
  4755. }).form; //創建窗體
  4756. _taskbar = {
  4757. "id": str + _formdiv.id,
  4758. "style": {
  4759. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4760. },
  4761. "name": "電子白板",
  4762. "forms": _formdiv,
  4763. "click": function() {
  4764. U.MD.D.I.openApplication(str, obj, info);
  4765. }
  4766. }
  4767. break;
  4768. case "mind":
  4769. aTool = 3;
  4770. _iframe = $$("iframe", {
  4771. "frameborder": "no",
  4772. "border": "0",
  4773. "scrolling ": "no",
  4774. "style": {
  4775. "cssText": "border:0;width:100%;height:100%"
  4776. },
  4777. "src": "/kityminder-editor/dist/index.html"
  4778. })
  4779. _box.appendChild(_iframe);
  4780. _box.appendChild(_jie);
  4781. _formdiv = new U.UF.UI.form(
  4782. "思維導圖",
  4783. _box, { //"/jsmind/example/demo.html"
  4784. "id": "mind" + cid + stage + task + tool,
  4785. "style": {
  4786. "width": "90%",
  4787. "height": "90%",
  4788. "overflow": 'hidden'
  4789. },
  4790. "onresize": function () { }
  4791. }, {
  4792. closecallback: function () { }
  4793. }, {
  4794. "style": {
  4795. "height": "36px"
  4796. }
  4797. }).form; //創建窗體
  4798. _taskbar = {
  4799. "id": str + _formdiv.id,
  4800. "style": {
  4801. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4802. },
  4803. "name": "思維導圖",
  4804. "forms": _formdiv,
  4805. "click": function() {
  4806. U.MD.D.I.openApplication(str, obj, info);
  4807. }
  4808. }
  4809. break;
  4810. case "MindMap":
  4811. aTool = 3;
  4812. _iframe = $$("iframe", {
  4813. "frameborder": "no",
  4814. "border": "0",
  4815. "scrolling ": "no",
  4816. "style": {
  4817. "cssText": "border:0;width:100%;height:100%"
  4818. },
  4819. "src": "//cloud.cocorobo.hk/mind/"
  4820. })
  4821. _box.appendChild(_iframe);
  4822. _box.appendChild(_jie);
  4823. _formdiv = new U.UF.UI.form(
  4824. "思維導圖",
  4825. _box, { //"/jsmind/example/demo.html"
  4826. "id": "mind" + cid + stage + task + tool,
  4827. "style": {
  4828. "width": "90%",
  4829. "height": "90%",
  4830. "overflow": 'hidden'
  4831. },
  4832. "onresize": function () { }
  4833. }, {
  4834. closecallback: function () { }
  4835. }, {
  4836. "style": {
  4837. "height": "36px"
  4838. }
  4839. }).form; //創建窗體
  4840. _taskbar = {
  4841. "id": str + _formdiv.id,
  4842. "style": {
  4843. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4844. },
  4845. "name": "思維導圖",
  4846. "forms": _formdiv,
  4847. "click": function() {
  4848. U.MD.D.I.openApplication(str, obj, info);
  4849. }
  4850. }
  4851. break;
  4852. case "doc":
  4853. aTool = 6;
  4854. _iframe = $$("iframe", {
  4855. "frameborder": "no",
  4856. "border": "0",
  4857. "scrolling ": "no",
  4858. "style": {
  4859. "cssText": "border:0;width:100%;height:100%"
  4860. },
  4861. "src": "/Office/Word/WordEditArea.htm"
  4862. })
  4863. _box.appendChild(_iframe);
  4864. _box.appendChild(_jie);
  4865. _formdiv = new U.UF.UI.form(
  4866. "協同文檔",
  4867. _box, {
  4868. "id": "doc" + cid + stage + task + tool,
  4869. "style": {
  4870. "width": "90%",
  4871. "height": "90%",
  4872. "overflow": 'hidden'
  4873. },
  4874. "onresize": function () { }
  4875. }, {
  4876. closecallback: function () { }
  4877. }, {
  4878. "style": {
  4879. "height": "36px"
  4880. }
  4881. }).form; //創建窗體
  4882. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  4883. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4884. })
  4885. _taskbar = {
  4886. "id": str + _formdiv.id,
  4887. "style": {
  4888. "backgroundImage": "url(/img/icon/doc.png)"
  4889. },
  4890. "name": "協同文檔",
  4891. "forms": _formdiv,
  4892. "click": function() {
  4893. U.MD.D.I.openApplication(str, obj, info);
  4894. }
  4895. }
  4896. break;
  4897. case "mindNetwork": //好友打開
  4898. aTool = 7;
  4899. _iframe = $$("iframe", {
  4900. "webkitallowfullscreen": "",
  4901. "mozallowfullscreen": "",
  4902. "allowfullscreen": "",
  4903. "frameborder": "no",
  4904. "border": "0",
  4905. "scrolling ": "no",
  4906. "style": {
  4907. "cssText": "border:0; width:100%; height:100%;"
  4908. },
  4909. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4910. })
  4911. _box.appendChild(_iframe);
  4912. _box.appendChild(_jie);
  4913. _formdiv = new U.UF.UI.form(
  4914. "思維網格",
  4915. _box, {
  4916. "id": "mindNetwork" + cid + stage + task + tool,
  4917. "style": {
  4918. "width": "90%",
  4919. "height": "90%",
  4920. "overflow": 'hidden'
  4921. },
  4922. "onresize": function () { }
  4923. }, {
  4924. closecallback: function () { }
  4925. }, {
  4926. "style": {
  4927. "height": "36px"
  4928. }
  4929. }).form; //創建窗體
  4930. _taskbar = {
  4931. "id": str + _formdiv.id,
  4932. "style": {
  4933. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4934. },
  4935. "name": "思維網格",
  4936. "forms": _formdiv,
  4937. "click": function() {
  4938. U.MD.D.I.openApplication(str, obj, info);
  4939. }
  4940. }
  4941. break;
  4942. case "courseDesign":
  4943. _iframe = $$("iframe", {
  4944. "webkitallowfullscreen": "",
  4945. "mozallowfullscreen": "",
  4946. "allowfullscreen": "",
  4947. "frameborder": "no",
  4948. "border": "0",
  4949. "scrolling ": "no",
  4950. "style": {
  4951. "cssText": "border:0; width:100%; height:100%;"
  4952. },
  4953. "src": "/course-design-vue"
  4954. })
  4955. _box.appendChild(_iframe);
  4956. _box.appendChild(_jie);
  4957. _formdiv = new U.UF.UI.form(
  4958. "項目設計",
  4959. _box, {
  4960. "id": "courseDesign" + cid + stage + task + tool,
  4961. "style": {
  4962. "width": "90%",
  4963. "height": "90%",
  4964. "overflow": 'hidden'
  4965. },
  4966. "onresize": function () { }
  4967. }, {
  4968. closecallback: function () { }
  4969. }, {
  4970. "style": {
  4971. "height": "36px"
  4972. }
  4973. }).form; //創建窗體
  4974. _taskbar = {
  4975. "id": str + _formdiv.id,
  4976. "style": {
  4977. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4978. },
  4979. "name": "項目設計",
  4980. "forms": _formdiv,
  4981. "click": function() {
  4982. U.MD.D.I.openApplication(str, obj, info);
  4983. }
  4984. }
  4985. break;
  4986. }
  4987. const script1 = document.createElement("script");
  4988. script1.type = "text/javascript";
  4989. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4990. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  4991. const script2 = document.createElement("script");
  4992. script2.type = "text/javascript";
  4993. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4994. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  4995. const script3 = document.createElement("script");
  4996. script3.type = "text/javascript";
  4997. script3.charset = "UTF-8";
  4998. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  4999. const script4 = document.createElement("script");
  5000. script4.type = "text/javascript";
  5001. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5002. script4.src = window.origin + "/js/Common/jietu2E.js";
  5003. if (_iframe) {
  5004. if (str == 'doc') {
  5005. _iframe = _formdiv.querySelector('iframe')
  5006. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5007. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5008. _iframe.contentWindow.document.body.appendChild(script1);
  5009. _iframe.contentWindow.document.body.appendChild(script2);
  5010. // _iframe.contentWindow.document.body.appendChild(script3);
  5011. _iframe.contentWindow.document.body.appendChild(script4);
  5012. })
  5013. if (onloadListener) {
  5014. _iframe.contentDocument.location.reload()
  5015. } else {
  5016. _iframe.contentDocument.location.reload()
  5017. }
  5018. } else if (str == 'courseDesign') {
  5019. U.UF.DL.iframeLoad(_iframe, function() {
  5020. // _iframe.contentWindow.U.MD.O.W.load();
  5021. // _iframe.contentWindow.document.body.appendChild(script1);
  5022. _iframe.contentWindow.document.body.appendChild(script2);
  5023. _iframe.contentWindow.document.body.appendChild(script4);
  5024. })
  5025. } else if (str == 'mind') {
  5026. _iframe = _formdiv.querySelector('iframe')
  5027. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5028. //
  5029. _iframe.contentWindow.document.body.appendChild(script1);
  5030. _iframe.contentWindow.document.body.appendChild(script2);
  5031. _iframe.contentWindow.document.body.appendChild(script4);
  5032. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5033. })
  5034. if (onloadListener) {
  5035. _iframe.contentDocument.location.reload()
  5036. } else {
  5037. _iframe.contentDocument.location.reload()
  5038. }
  5039. } else if (str == 'whiteboard') {
  5040. _iframe = _formdiv.querySelector('iframe')
  5041. let onloadListener = _iframe.onload = () => {
  5042. _iframe.contentWindow.document.body.appendChild(script1);
  5043. _iframe.contentWindow.document.body.appendChild(script2);
  5044. _iframe.contentWindow.document.body.appendChild(script4);
  5045. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5046. };
  5047. if (onloadListener) {
  5048. _iframe.contentDocument.location.reload()
  5049. } else {
  5050. _iframe.contentDocument.location.reload()
  5051. }
  5052. } else {
  5053. _iframe.onload = () => {
  5054. _iframe.contentWindow.document.body.appendChild(script1);
  5055. _iframe.contentWindow.document.body.appendChild(script2);
  5056. // _iframe.contentWindow.document.body.appendChild(script3);
  5057. _iframe.contentWindow.document.body.appendChild(script4);
  5058. };
  5059. }
  5060. _jie.onclick = async() => {
  5061. let text = ''
  5062. if (aTool == 1) {
  5063. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5064. } else if (aTool == 6) {
  5065. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5066. } else if (aTool == 3) {
  5067. text = await U.MD.D.I.getEditorContent(_iframe);
  5068. }
  5069. _loading.style.display = 'flex'
  5070. console.log(_loading);
  5071. var _ajs = _iframe.contentWindow.document.createElement("script");
  5072. _ajs.type = "text/javascript";
  5073. _ajs.innerHTML =
  5074. // 'console.log(' + _loading + ');\n' +
  5075. 'var _js = document.createElement("script");\n' +
  5076. '_js.type="text/javascript";\n' +
  5077. '_js.charset="UTF-8";\n' +
  5078. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5079. "_js.onload = function(){\n" +
  5080. ' var a = document.getElementsByTagName("img")\n' +
  5081. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5082. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5083. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5084. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5085. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5086. "beforeUpload_shishi(file," +
  5087. "'" +
  5088. _userid +
  5089. "'" +
  5090. ", " +
  5091. "'" +
  5092. _cid +
  5093. "'" +
  5094. ", " +
  5095. "'" +
  5096. _stage +
  5097. "'" +
  5098. ", " +
  5099. "'" +
  5100. _task +
  5101. "'" +
  5102. ", " +
  5103. "'" +
  5104. _tool +
  5105. "'" +
  5106. ", " +
  5107. "'" +
  5108. (str + '_loadLi_JieE' + cid + stage + task + tool + _userid) +
  5109. "'" +
  5110. ", " +
  5111. "'" +
  5112. aTool +
  5113. "'" +
  5114. ", " +
  5115. "`" +
  5116. text +
  5117. "`" +
  5118. ")\n" +
  5119. " });\n" +
  5120. "}\n" +
  5121. "document.head.appendChild(_js);\n";
  5122. _iframe.contentWindow.document.head.appendChild(_ajs);
  5123. }
  5124. }
  5125. //U.MD.D.I.openClick(str);
  5126. //如果有任務欄信息
  5127. // if (_taskbar) {
  5128. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  5129. // }
  5130. }
  5131. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  5132. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5133. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5134. _userid = student.userid, //登錄用戶id
  5135. _username = student.student //用戶名字
  5136. let _iframe;
  5137. let _cid = cid,
  5138. _stage = stage,
  5139. _task = task,
  5140. _tool = tool;
  5141. var _jie = $$("div", {
  5142. "style": {
  5143. "position": "absolute",
  5144. "bottom": "50px",
  5145. "right": "50px",
  5146. "zIndex": "9999",
  5147. "backgroundColor": "#2268bc",
  5148. "color": "#fff",
  5149. "padding": "12px 20px",
  5150. "cursor": "pointer",
  5151. "borderRadius": "4px",
  5152. },
  5153. "innerHTML": "提交作業"
  5154. })
  5155. let aTool = ''
  5156. let _loading = document.createElement('div')
  5157. _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;"
  5158. // _loading.id = "";
  5159. let _lchild = document.createElement('div')
  5160. let _limg = document.createElement('img')
  5161. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5162. _limg.style = "width: 26px;margin-right: 10px;"
  5163. _lchild.appendChild(_limg)
  5164. let _lspan = document.createElement('span')
  5165. _lspan.innerHTML = "上傳中..."
  5166. _lchild.appendChild(_lspan)
  5167. _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%);"
  5168. _loading.appendChild(_lchild)
  5169. var _box = $$('div', {
  5170. "style": {
  5171. "position": "relative",
  5172. "width": "100%",
  5173. "height": "100%",
  5174. },
  5175. })
  5176. _box.appendChild(_loading)
  5177. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid
  5178. switch (str) {
  5179. case "whiteboard":
  5180. aTool = 1;
  5181. _iframe = $$("iframe", {
  5182. "frameborder": "no",
  5183. "border": "0",
  5184. "scrolling ": "no",
  5185. "style": {
  5186. "cssText": "border:0;width:100%;height:100%"
  5187. },
  5188. "src": "https://iwb.cocorobo.hk/"
  5189. })
  5190. _box.appendChild(_iframe);
  5191. _box.appendChild(_jie);
  5192. _formdiv = new U.UF.UI.form(
  5193. "電子白板-" + _username,
  5194. _box, {
  5195. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5196. "style": {
  5197. "width": "90%",
  5198. "height": "90%",
  5199. "overflow": 'hidden'
  5200. },
  5201. "onresize": function () { }
  5202. }, {
  5203. closecallback: function () { }
  5204. }, {
  5205. "style": {
  5206. "height": "36px"
  5207. }
  5208. }).form; //創建窗體
  5209. _taskbar = {
  5210. "id": str + _formdiv.id,
  5211. "style": {
  5212. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5213. },
  5214. "name": "電子白板",
  5215. "forms": _formdiv,
  5216. "click": function() {
  5217. U.MD.D.I.openApplication(str, obj, info);
  5218. }
  5219. }
  5220. break;
  5221. case "mind":
  5222. aTool = 3;
  5223. _iframe = $$("iframe", {
  5224. "frameborder": "no",
  5225. "border": "0",
  5226. "scrolling ": "no",
  5227. "style": {
  5228. "cssText": "border:0;width:100%;height:100%"
  5229. },
  5230. "src": "/kityminder-editor/dist/index.html"
  5231. })
  5232. _box.appendChild(_iframe);
  5233. _box.appendChild(_jie);
  5234. _formdiv = new U.UF.UI.form(
  5235. "思維導圖-" + _username,
  5236. _box, { //"/jsmind/example/demo.html"
  5237. "id": "mind" + cid + stage + task + tool + _userid,
  5238. "style": {
  5239. "width": "90%",
  5240. "height": "90%",
  5241. "overflow": 'hidden'
  5242. },
  5243. "onresize": function () { }
  5244. }, {
  5245. closecallback: function () { }
  5246. }, {
  5247. "style": {
  5248. "height": "36px"
  5249. }
  5250. }).form; //創建窗體
  5251. _taskbar = {
  5252. "id": str + _formdiv.id,
  5253. "style": {
  5254. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5255. },
  5256. "name": "思維導圖",
  5257. "forms": _formdiv,
  5258. "click": function() {
  5259. U.MD.D.I.openApplication(str, obj, info);
  5260. }
  5261. }
  5262. break;
  5263. case "MindMap":
  5264. aTool = 3;
  5265. _iframe = $$("iframe", {
  5266. "frameborder": "no",
  5267. "border": "0",
  5268. "scrolling ": "no",
  5269. "style": {
  5270. "cssText": "border:0;width:100%;height:100%"
  5271. },
  5272. "src": "//cloud.cocorobo.hk/mind/"
  5273. })
  5274. _box.appendChild(_iframe);
  5275. _box.appendChild(_jie);
  5276. _formdiv = new U.UF.UI.form(
  5277. "思維導圖-" + _username,
  5278. _box, { //"/jsmind/example/demo.html"
  5279. "id": "mind" + cid + stage + task + tool + _userid,
  5280. "style": {
  5281. "width": "90%",
  5282. "height": "90%",
  5283. "overflow": 'hidden'
  5284. },
  5285. "onresize": function () { }
  5286. }, {
  5287. closecallback: function () { }
  5288. }, {
  5289. "style": {
  5290. "height": "36px"
  5291. }
  5292. }).form; //創建窗體
  5293. _taskbar = {
  5294. "id": str + _formdiv.id,
  5295. "style": {
  5296. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5297. },
  5298. "name": "思維導圖",
  5299. "forms": _formdiv,
  5300. "click": function() {
  5301. U.MD.D.I.openApplication(str, obj, info);
  5302. }
  5303. }
  5304. break;
  5305. case "doc":
  5306. aTool = 6;
  5307. _iframe = $$("iframe", {
  5308. "frameborder": "no",
  5309. "border": "0",
  5310. "scrolling ": "no",
  5311. "style": {
  5312. "cssText": "border:0;width:100%;height:100%"
  5313. },
  5314. "src": "/Office/Word/WordEditArea.htm"
  5315. })
  5316. _box.appendChild(_iframe);
  5317. _box.appendChild(_jie);
  5318. _formdiv = new U.UF.UI.form(
  5319. "協同文檔-" + _username,
  5320. _box, {
  5321. "id": "doc" + cid + stage + task + tool + _userid,
  5322. "style": {
  5323. "width": "90%",
  5324. "height": "90%",
  5325. "overflow": 'hidden'
  5326. },
  5327. "onresize": function () { }
  5328. }, {
  5329. closecallback: function () { }
  5330. }, {
  5331. "style": {
  5332. "height": "36px"
  5333. }
  5334. }).form; //創建窗體
  5335. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  5336. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5337. })
  5338. _taskbar = {
  5339. "id": str + _formdiv.id,
  5340. "style": {
  5341. "backgroundImage": "url(/img/icon/doc.png)"
  5342. },
  5343. "name": "協同文檔",
  5344. "forms": _formdiv,
  5345. "click": function() {
  5346. U.MD.D.I.openApplication(str, obj, info);
  5347. }
  5348. }
  5349. break;
  5350. case "mindNetwork": //好友打開
  5351. aTool = 7;
  5352. _iframe = $$("iframe", {
  5353. "webkitallowfullscreen": "",
  5354. "mozallowfullscreen": "",
  5355. "allowfullscreen": "",
  5356. "frameborder": "no",
  5357. "border": "0",
  5358. "scrolling ": "no",
  5359. "style": {
  5360. "cssText": "border:0; width:100%; height:100%;"
  5361. },
  5362. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5363. })
  5364. _box.appendChild(_iframe);
  5365. _box.appendChild(_jie);
  5366. _formdiv = new U.UF.UI.form(
  5367. "思維網格-" + _username,
  5368. _box, {
  5369. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5370. "style": {
  5371. "width": "90%",
  5372. "height": "90%",
  5373. "overflow": 'hidden'
  5374. },
  5375. "onresize": function () { }
  5376. }, {
  5377. closecallback: function () { }
  5378. }, {
  5379. "style": {
  5380. "height": "36px"
  5381. }
  5382. }).form; //創建窗體
  5383. _taskbar = {
  5384. "id": str + _formdiv.id,
  5385. "style": {
  5386. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5387. },
  5388. "name": "思維網格",
  5389. "forms": _formdiv,
  5390. "click": function() {
  5391. U.MD.D.I.openApplication(str, obj, info);
  5392. }
  5393. }
  5394. break;
  5395. case "courseDesign":
  5396. _iframe = $$("iframe", {
  5397. "webkitallowfullscreen": "",
  5398. "mozallowfullscreen": "",
  5399. "allowfullscreen": "",
  5400. "frameborder": "no",
  5401. "border": "0",
  5402. "scrolling ": "no",
  5403. "style": {
  5404. "cssText": "border:0; width:100%; height:100%;"
  5405. },
  5406. "src": "/course-design-vue"
  5407. })
  5408. _box.appendChild(_iframe);
  5409. _box.appendChild(_jie);
  5410. _formdiv = new U.UF.UI.form(
  5411. "項目設計-" + _username,
  5412. _box, {
  5413. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5414. "style": {
  5415. "width": "90%",
  5416. "height": "90%",
  5417. "overflow": 'hidden'
  5418. },
  5419. "onresize": function () { }
  5420. }, {
  5421. closecallback: function () { }
  5422. }, {
  5423. "style": {
  5424. "height": "36px"
  5425. }
  5426. }).form; //創建窗體
  5427. _taskbar = {
  5428. "id": str + _formdiv.id,
  5429. "style": {
  5430. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5431. },
  5432. "name": "項目設計",
  5433. "forms": _formdiv,
  5434. "click": function() {
  5435. U.MD.D.I.openApplication(str, obj, info);
  5436. }
  5437. }
  5438. break;
  5439. }
  5440. const script1 = document.createElement("script");
  5441. script1.type = "text/javascript";
  5442. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5443. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5444. const script2 = document.createElement("script");
  5445. script2.type = "text/javascript";
  5446. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5447. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5448. const script3 = document.createElement("script");
  5449. script3.type = "text/javascript";
  5450. script3.charset = "UTF-8";
  5451. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5452. const script4 = document.createElement("script");
  5453. script4.type = "text/javascript";
  5454. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5455. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  5456. if (_iframe) {
  5457. if (str == 'doc') {
  5458. _iframe = _formdiv.querySelector('iframe')
  5459. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5460. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5461. _iframe.contentWindow.document.body.appendChild(script1);
  5462. _iframe.contentWindow.document.body.appendChild(script2);
  5463. // _iframe.contentWindow.document.body.appendChild(script3);
  5464. _iframe.contentWindow.document.body.appendChild(script4);
  5465. })
  5466. if (onloadListener) {
  5467. _iframe.contentDocument.location.reload()
  5468. } else {
  5469. _iframe.contentDocument.location.reload()
  5470. }
  5471. } else if (str == 'courseDesign') {
  5472. U.UF.DL.iframeLoad(_iframe, function() {
  5473. // _iframe.contentWindow.U.MD.O.W.load();
  5474. // _iframe.contentWindow.document.body.appendChild(script1);
  5475. _iframe.contentWindow.document.body.appendChild(script2);
  5476. _iframe.contentWindow.document.body.appendChild(script4);
  5477. })
  5478. } else if (str == 'mind') {
  5479. _iframe = _formdiv.querySelector('iframe')
  5480. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5481. //
  5482. _iframe.contentWindow.document.body.appendChild(script1);
  5483. _iframe.contentWindow.document.body.appendChild(script2);
  5484. _iframe.contentWindow.document.body.appendChild(script4);
  5485. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5486. })
  5487. if (onloadListener) {
  5488. _iframe.contentDocument.location.reload()
  5489. } else {
  5490. _iframe.contentDocument.location.reload()
  5491. }
  5492. } else if (str == 'whiteboard') {
  5493. _iframe = _formdiv.querySelector('iframe')
  5494. let onloadListener = _iframe.onload = () => {
  5495. _iframe.contentWindow.document.body.appendChild(script1);
  5496. _iframe.contentWindow.document.body.appendChild(script2);
  5497. _iframe.contentWindow.document.body.appendChild(script4);
  5498. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5499. };
  5500. if (onloadListener) {
  5501. _iframe.contentDocument.location.reload()
  5502. } else {
  5503. _iframe.contentDocument.location.reload()
  5504. }
  5505. } else {
  5506. _iframe.onload = () => {
  5507. _iframe.contentWindow.document.body.appendChild(script1);
  5508. _iframe.contentWindow.document.body.appendChild(script2);
  5509. // _iframe.contentWindow.document.body.appendChild(script3);
  5510. _iframe.contentWindow.document.body.appendChild(script4);
  5511. };
  5512. }
  5513. _jie.onclick = async() => {
  5514. let text = ''
  5515. if (aTool == 1) {
  5516. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5517. } else if (aTool == 6) {
  5518. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5519. } else if (aTool == 3) {
  5520. text = await U.MD.D.I.getEditorContent(_iframe);
  5521. }
  5522. _loading.style.display = 'flex'
  5523. console.log(_loading);
  5524. var _ajs = _iframe.contentWindow.document.createElement("script");
  5525. _ajs.type = "text/javascript";
  5526. _ajs.innerHTML =
  5527. // 'console.log(' + _loading + ');\n' +
  5528. 'var _js = document.createElement("script");\n' +
  5529. '_js.type="text/javascript";\n' +
  5530. '_js.charset="UTF-8";\n' +
  5531. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5532. "_js.onload = function(){\n" +
  5533. ' var a = document.getElementsByTagName("img")\n' +
  5534. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5535. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5536. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5537. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5538. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5539. "beforeUpload_shishi(file," +
  5540. "'" +
  5541. _userid +
  5542. "'" +
  5543. ", " +
  5544. "'" +
  5545. _cid +
  5546. "'" +
  5547. ", " +
  5548. "'" +
  5549. _stage +
  5550. "'" +
  5551. ", " +
  5552. "'" +
  5553. _task +
  5554. "'" +
  5555. ", " +
  5556. "'" +
  5557. _tool +
  5558. "'" +
  5559. ", " +
  5560. "'" +
  5561. (str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid) +
  5562. "'" +
  5563. ", " +
  5564. "'" +
  5565. aTool +
  5566. "'" +
  5567. ", " +
  5568. "`" +
  5569. text +
  5570. "`" +
  5571. ")\n" +
  5572. " });\n" +
  5573. "}\n" +
  5574. "document.head.appendChild(_js);\n";
  5575. _iframe.contentWindow.document.head.appendChild(_ajs);
  5576. }
  5577. }
  5578. }
  5579. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5580. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5581. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5582. _userid = student.userid, //登錄用戶id
  5583. _username = student.student //用戶名字
  5584. let _iframe;
  5585. let _cid = cid,
  5586. _stage = stage,
  5587. _task = task,
  5588. _tool = tool;
  5589. var _jie = $$("div", {
  5590. "style": {
  5591. "position": "absolute",
  5592. "bottom": "50px",
  5593. "right": "50px",
  5594. "zIndex": "9999",
  5595. "backgroundColor": "#2268bc",
  5596. "color": "#fff",
  5597. "padding": "12px 20px",
  5598. "cursor": "pointer",
  5599. "borderRadius": "4px",
  5600. },
  5601. "innerHTML": "提交作業"
  5602. })
  5603. let aTool = ''
  5604. let _loading = document.createElement('div')
  5605. _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;"
  5606. // _loading.id = "";
  5607. let _lchild = document.createElement('div')
  5608. let _limg = document.createElement('img')
  5609. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5610. _limg.style = "width: 26px;margin-right: 10px;"
  5611. _lchild.appendChild(_limg)
  5612. let _lspan = document.createElement('span')
  5613. _lspan.innerHTML = "上傳中..."
  5614. _lchild.appendChild(_lspan)
  5615. _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%);"
  5616. _loading.appendChild(_lchild)
  5617. var _box = $$('div', {
  5618. "style": {
  5619. "position": "relative",
  5620. "width": "100%",
  5621. "height": "100%",
  5622. },
  5623. })
  5624. _box.appendChild(_loading)
  5625. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5626. switch (str) {
  5627. case "whiteboard":
  5628. aTool = 1;
  5629. _iframe = $$("iframe", {
  5630. "frameborder": "no",
  5631. "border": "0",
  5632. "scrolling ": "no",
  5633. "style": {
  5634. "cssText": "border:0;width:100%;height:100%"
  5635. },
  5636. "src": "https://iwb.cocorobo.hk/"
  5637. })
  5638. _box.appendChild(_iframe);
  5639. _box.appendChild(_jie);
  5640. _formdiv = new U.UF.UI.form(
  5641. "電子白板-" + _username,
  5642. _box, {
  5643. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5644. "style": {
  5645. "width": "90%",
  5646. "height": "90%",
  5647. "overflow": 'hidden'
  5648. },
  5649. "onresize": function () { }
  5650. }, {
  5651. closecallback: function () { }
  5652. }, {
  5653. "style": {
  5654. "height": "36px"
  5655. }
  5656. }).form; //創建窗體
  5657. _taskbar = {
  5658. "id": str + _formdiv.id,
  5659. "style": {
  5660. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5661. },
  5662. "name": "電子白板",
  5663. "forms": _formdiv,
  5664. "click": function() {
  5665. U.MD.D.I.openApplication(str, obj, info);
  5666. }
  5667. }
  5668. break;
  5669. case "mind":
  5670. aTool = 3;
  5671. _iframe = $$("iframe", {
  5672. "frameborder": "no",
  5673. "border": "0",
  5674. "scrolling ": "no",
  5675. "style": {
  5676. "cssText": "border:0;width:100%;height:100%"
  5677. },
  5678. "src": "/kityminder-editor/dist/index.html"
  5679. })
  5680. _box.appendChild(_iframe);
  5681. _box.appendChild(_jie);
  5682. _formdiv = new U.UF.UI.form(
  5683. "思維導圖-" + _username,
  5684. _box, { //"/jsmind/example/demo.html"
  5685. "id": "mind" + cid + stage + task + tool + _userid,
  5686. "style": {
  5687. "width": "90%",
  5688. "height": "90%",
  5689. "overflow": 'hidden'
  5690. },
  5691. "onresize": function () { }
  5692. }, {
  5693. closecallback: function () { }
  5694. }, {
  5695. "style": {
  5696. "height": "36px"
  5697. }
  5698. }).form; //創建窗體
  5699. _taskbar = {
  5700. "id": str + _formdiv.id,
  5701. "style": {
  5702. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5703. },
  5704. "name": "思維導圖",
  5705. "forms": _formdiv,
  5706. "click": function() {
  5707. U.MD.D.I.openApplication(str, obj, info);
  5708. }
  5709. }
  5710. break;
  5711. case "MindMap":
  5712. aTool = 3;
  5713. _iframe = $$("iframe", {
  5714. "frameborder": "no",
  5715. "border": "0",
  5716. "scrolling ": "no",
  5717. "style": {
  5718. "cssText": "border:0;width:100%;height:100%"
  5719. },
  5720. "src": "//cloud.cocorobo.hk/mind/"
  5721. })
  5722. _box.appendChild(_iframe);
  5723. _box.appendChild(_jie);
  5724. _formdiv = new U.UF.UI.form(
  5725. "思維導圖-" + _username,
  5726. _box, { //"/jsmind/example/demo.html"
  5727. "id": "mind" + cid + stage + task + tool + _userid,
  5728. "style": {
  5729. "width": "90%",
  5730. "height": "90%",
  5731. "overflow": 'hidden'
  5732. },
  5733. "onresize": function () { }
  5734. }, {
  5735. closecallback: function () { }
  5736. }, {
  5737. "style": {
  5738. "height": "36px"
  5739. }
  5740. }).form; //創建窗體
  5741. _taskbar = {
  5742. "id": str + _formdiv.id,
  5743. "style": {
  5744. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5745. },
  5746. "name": "思維導圖",
  5747. "forms": _formdiv,
  5748. "click": function() {
  5749. U.MD.D.I.openApplication(str, obj, info);
  5750. }
  5751. }
  5752. break;
  5753. case "doc":
  5754. aTool = 6;
  5755. _iframe = $$("iframe", {
  5756. "frameborder": "no",
  5757. "border": "0",
  5758. "scrolling ": "no",
  5759. "style": {
  5760. "cssText": "border:0;width:100%;height:100%"
  5761. },
  5762. "src": "/Office/Word/WordEditArea.htm"
  5763. })
  5764. _box.appendChild(_iframe);
  5765. _box.appendChild(_jie);
  5766. _formdiv = new U.UF.UI.form(
  5767. "協同文檔-" + _username,
  5768. _box, {
  5769. "id": "doc" + cid + stage + task + tool + _userid,
  5770. "style": {
  5771. "width": "90%",
  5772. "height": "90%",
  5773. "overflow": 'hidden'
  5774. },
  5775. "onresize": function () { }
  5776. }, {
  5777. closecallback: function () { }
  5778. }, {
  5779. "style": {
  5780. "height": "36px"
  5781. }
  5782. }).form; //創建窗體
  5783. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  5784. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5785. })
  5786. _taskbar = {
  5787. "id": str + _formdiv.id,
  5788. "style": {
  5789. "backgroundImage": "url(/img/icon/doc.png)"
  5790. },
  5791. "name": "協同文檔",
  5792. "forms": _formdiv,
  5793. "click": function() {
  5794. U.MD.D.I.openApplication(str, obj, info);
  5795. }
  5796. }
  5797. break;
  5798. case "mindNetwork": //好友打開
  5799. aTool = 7;
  5800. _iframe = $$("iframe", {
  5801. "webkitallowfullscreen": "",
  5802. "mozallowfullscreen": "",
  5803. "allowfullscreen": "",
  5804. "frameborder": "no",
  5805. "border": "0",
  5806. "scrolling ": "no",
  5807. "style": {
  5808. "cssText": "border:0; width:100%; height:100%;"
  5809. },
  5810. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5811. })
  5812. _box.appendChild(_iframe);
  5813. _box.appendChild(_jie);
  5814. _formdiv = new U.UF.UI.form(
  5815. "思維網格-" + _username,
  5816. _box, {
  5817. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5818. "style": {
  5819. "width": "90%",
  5820. "height": "90%",
  5821. "overflow": 'hidden'
  5822. },
  5823. "onresize": function () { }
  5824. }, {
  5825. closecallback: function () { }
  5826. }, {
  5827. "style": {
  5828. "height": "36px"
  5829. }
  5830. }).form; //創建窗體
  5831. _taskbar = {
  5832. "id": str + _formdiv.id,
  5833. "style": {
  5834. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5835. },
  5836. "name": "思維網格",
  5837. "forms": _formdiv,
  5838. "click": function() {
  5839. U.MD.D.I.openApplication(str, obj, info);
  5840. }
  5841. }
  5842. break;
  5843. case "courseDesign":
  5844. _iframe = $$("iframe", {
  5845. "webkitallowfullscreen": "",
  5846. "mozallowfullscreen": "",
  5847. "allowfullscreen": "",
  5848. "frameborder": "no",
  5849. "border": "0",
  5850. "scrolling ": "no",
  5851. "style": {
  5852. "cssText": "border:0; width:100%; height:100%;"
  5853. },
  5854. "src": "/course-design-vue"
  5855. })
  5856. _box.appendChild(_iframe);
  5857. _box.appendChild(_jie);
  5858. _formdiv = new U.UF.UI.form(
  5859. "項目設計-" + _username,
  5860. _box, {
  5861. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5862. "style": {
  5863. "width": "90%",
  5864. "height": "90%",
  5865. "overflow": 'hidden'
  5866. },
  5867. "onresize": function () { }
  5868. }, {
  5869. closecallback: function () { }
  5870. }, {
  5871. "style": {
  5872. "height": "36px"
  5873. }
  5874. }).form; //創建窗體
  5875. _taskbar = {
  5876. "id": str + _formdiv.id,
  5877. "style": {
  5878. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5879. },
  5880. "name": "項目設計",
  5881. "forms": _formdiv,
  5882. "click": function() {
  5883. U.MD.D.I.openApplication(str, obj, info);
  5884. }
  5885. }
  5886. break;
  5887. }
  5888. const script1 = document.createElement("script");
  5889. script1.type = "text/javascript";
  5890. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5891. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5892. const script2 = document.createElement("script");
  5893. script2.type = "text/javascript";
  5894. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5895. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5896. const script3 = document.createElement("script");
  5897. script3.type = "text/javascript";
  5898. script3.charset = "UTF-8";
  5899. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5900. const script4 = document.createElement("script");
  5901. script4.type = "text/javascript";
  5902. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5903. script4.src = window.origin + "/js/Common/jietu2E.js";
  5904. if (_iframe) {
  5905. if (str == 'doc') {
  5906. _iframe = _formdiv.querySelector('iframe')
  5907. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5908. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5909. _iframe.contentWindow.document.body.appendChild(script1);
  5910. _iframe.contentWindow.document.body.appendChild(script2);
  5911. // _iframe.contentWindow.document.body.appendChild(script3);
  5912. _iframe.contentWindow.document.body.appendChild(script4);
  5913. })
  5914. if (onloadListener) {
  5915. _iframe.contentDocument.location.reload()
  5916. } else {
  5917. _iframe.contentDocument.location.reload()
  5918. }
  5919. } else if (str == 'courseDesign') {
  5920. U.UF.DL.iframeLoad(_iframe, function() {
  5921. // _iframe.contentWindow.U.MD.O.W.load();
  5922. // _iframe.contentWindow.document.body.appendChild(script1);
  5923. _iframe.contentWindow.document.body.appendChild(script2);
  5924. _iframe.contentWindow.document.body.appendChild(script4);
  5925. })
  5926. } else if (str == 'mind') {
  5927. _iframe = _formdiv.querySelector('iframe')
  5928. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5929. //
  5930. _iframe.contentWindow.document.body.appendChild(script1);
  5931. _iframe.contentWindow.document.body.appendChild(script2);
  5932. _iframe.contentWindow.document.body.appendChild(script4);
  5933. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5934. })
  5935. if (onloadListener) {
  5936. _iframe.contentDocument.location.reload()
  5937. } else {
  5938. _iframe.contentDocument.location.reload()
  5939. }
  5940. } else if (str == 'whiteboard') {
  5941. _iframe = _formdiv.querySelector('iframe')
  5942. let onloadListener = _iframe.onload = () => {
  5943. _iframe.contentWindow.document.body.appendChild(script1);
  5944. _iframe.contentWindow.document.body.appendChild(script2);
  5945. _iframe.contentWindow.document.body.appendChild(script4);
  5946. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5947. };
  5948. if (onloadListener) {
  5949. _iframe.contentDocument.location.reload()
  5950. } else {
  5951. _iframe.contentDocument.location.reload()
  5952. }
  5953. } else {
  5954. _iframe.onload = () => {
  5955. _iframe.contentWindow.document.body.appendChild(script1);
  5956. _iframe.contentWindow.document.body.appendChild(script2);
  5957. // _iframe.contentWindow.document.body.appendChild(script3);
  5958. _iframe.contentWindow.document.body.appendChild(script4);
  5959. };
  5960. }
  5961. _jie.onclick = async() => {
  5962. let text = ''
  5963. if (aTool == 1) {
  5964. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5965. } else if (aTool == 6) {
  5966. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5967. } else if (aTool == 3) {
  5968. text = await U.MD.D.I.getEditorContent(_iframe);
  5969. }
  5970. _loading.style.display = 'flex'
  5971. console.log(_loading);
  5972. var _ajs = _iframe.contentWindow.document.createElement("script");
  5973. _ajs.type = "text/javascript";
  5974. _ajs.innerHTML =
  5975. // 'console.log(' + _loading + ');\n' +
  5976. 'var _js = document.createElement("script");\n' +
  5977. '_js.type="text/javascript";\n' +
  5978. '_js.charset="UTF-8";\n' +
  5979. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5980. "_js.onload = function(){\n" +
  5981. ' var a = document.getElementsByTagName("img")\n' +
  5982. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5983. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5984. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5985. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5986. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5987. "beforeUpload_shishi(file," +
  5988. "'" +
  5989. _userid +
  5990. "'" +
  5991. ", " +
  5992. "'" +
  5993. _cid +
  5994. "'" +
  5995. ", " +
  5996. "'" +
  5997. _stage +
  5998. "'" +
  5999. ", " +
  6000. "'" +
  6001. _task +
  6002. "'" +
  6003. ", " +
  6004. "'" +
  6005. _tool +
  6006. "'" +
  6007. ", " +
  6008. "'" +
  6009. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid) +
  6010. "'" +
  6011. ", " +
  6012. "'" +
  6013. aTool +
  6014. "'" +
  6015. ", " +
  6016. "`" +
  6017. text +
  6018. "`" +
  6019. ")\n" +
  6020. " });\n" +
  6021. "}\n" +
  6022. "document.head.appendChild(_js);\n";
  6023. _iframe.contentWindow.document.head.appendChild(_ajs);
  6024. }
  6025. }
  6026. }
  6027. U.MD.D.I.getEditorContent = function(iframe) {
  6028. return new Promise((resolve, reject) => {
  6029. iframe.contentWindow.editor.minder.exportData('json').then(function(content) {
  6030. console.log(content);
  6031. resolve(content)
  6032. });
  6033. });
  6034. }
  6035. U.MD.D.I.getContent = function(cid, s, task, t, uid, type, iframe) {
  6036. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  6037. // if (res.value[0].length > 0) {
  6038. // // resolve(res.value[0][0].text);
  6039. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  6040. // $(fileInput).val('');
  6041. // });
  6042. // }
  6043. // }, [], { "type": "GET", "withCredentials": true });
  6044. var xmlhttp;
  6045. var Mac, Sn, DeviceId
  6046. if (window.XMLHttpRequest) {
  6047. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6048. xmlhttp = new XMLHttpRequest();
  6049. }
  6050. else {
  6051. // IE6, IE5 瀏覽器執行代碼
  6052. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6053. }
  6054. xmlhttp.onreadystatechange = function() {
  6055. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6056. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6057. // resolve(res.value[0][0].text);
  6058. if (type == '2') {
  6059. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6060. } else if (type == '3') {
  6061. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6062. }
  6063. } else {
  6064. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  6065. }
  6066. }
  6067. }
  6068. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6069. xmlhttp.send();
  6070. }
  6071. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  6072. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6073. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6074. _userinfo = US.userInfo, //登錄用戶信息
  6075. _userid = US.userInfo.userid //登錄用戶id
  6076. let _iframe;
  6077. let _cid = cid,
  6078. _stage = stage,
  6079. _task = task,
  6080. _tool = tool;
  6081. var _jie = $$("div", {
  6082. "style": {
  6083. "position": "absolute",
  6084. "bottom": "50px",
  6085. "right": "50px",
  6086. "zIndex": "9999",
  6087. "backgroundColor": "#2268bc",
  6088. "color": "#fff",
  6089. "padding": "12px 20px",
  6090. "cursor": "pointer",
  6091. "borderRadius": "4px",
  6092. },
  6093. "innerHTML": "確認並提交"
  6094. })
  6095. let aTool = ''
  6096. let _loading = document.createElement('div')
  6097. _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;"
  6098. // _loading.id = "";
  6099. let _lchild = document.createElement('div')
  6100. let _limg = document.createElement('img')
  6101. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6102. _limg.style = "width: 26px;margin-right: 10px;"
  6103. _lchild.appendChild(_limg)
  6104. let _lspan = document.createElement('span')
  6105. _lspan.innerHTML = "上傳中..."
  6106. _lchild.appendChild(_lspan)
  6107. _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%);"
  6108. _loading.appendChild(_lchild)
  6109. var _box = $$('div', {
  6110. "style": {
  6111. "position": "relative",
  6112. "width": "100%",
  6113. "height": "100%",
  6114. },
  6115. })
  6116. _box.appendChild(_loading)
  6117. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool + _userid
  6118. switch (str) {
  6119. case "whiteboard":
  6120. aTool = 1;
  6121. _iframe = $$("iframe", {
  6122. "frameborder": "no",
  6123. "border": "0",
  6124. "scrolling ": "no",
  6125. "style": {
  6126. "cssText": "border:0;width:100%;height:100%"
  6127. },
  6128. "src": "https://iwb.cocorobo.hk/"
  6129. })
  6130. _box.appendChild(_iframe);
  6131. _box.appendChild(_jie);
  6132. _formdiv = new U.UF.UI.form(
  6133. "電子白板",
  6134. _box, {
  6135. "id": "whiteboards" + cid + stage + task + tool,
  6136. "style": {
  6137. "width": "90%",
  6138. "height": "90%",
  6139. "overflow": 'hidden'
  6140. },
  6141. "onresize": function () { }
  6142. }, {
  6143. closecallback: function () { }
  6144. }, {
  6145. "style": {
  6146. "height": "36px"
  6147. }
  6148. }).form; //創建窗體
  6149. _taskbar = {
  6150. "id": str + _formdiv.id,
  6151. "style": {
  6152. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6153. },
  6154. "name": "電子白板",
  6155. "forms": _formdiv,
  6156. "click": function() {
  6157. U.MD.D.I.openApplication(str, obj, info);
  6158. }
  6159. }
  6160. break;
  6161. case "mind":
  6162. aTool = 3;
  6163. _iframe = $$("iframe", {
  6164. "frameborder": "no",
  6165. "border": "0",
  6166. "scrolling ": "no",
  6167. "style": {
  6168. "cssText": "border:0;width:100%;height:100%"
  6169. },
  6170. "src": "/kityminder-editor/dist/index.html"
  6171. });
  6172. _box.appendChild(_iframe);
  6173. _box.appendChild(_jie);
  6174. _formdiv = new U.UF.UI.form(
  6175. "思維導圖",
  6176. _box, { //"/jsmind/example/demo.html"
  6177. "id": "minds" + cid + stage + task + tool,
  6178. "style": {
  6179. "width": "90%",
  6180. "height": "90%",
  6181. "overflow": 'hidden'
  6182. },
  6183. "onresize": function () { }
  6184. }, {
  6185. closecallback: function () { }
  6186. }, {
  6187. "style": {
  6188. "height": "36px"
  6189. }
  6190. }).form; //創建窗體
  6191. _taskbar = {
  6192. "id": str + _formdiv.id,
  6193. "style": {
  6194. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6195. },
  6196. "name": "思維導圖",
  6197. "forms": _formdiv,
  6198. "click": function() {
  6199. U.MD.D.I.openApplication(str, obj, info);
  6200. }
  6201. }
  6202. break;
  6203. case "doc":
  6204. aTool = 6;
  6205. _iframe = $$("iframe", {
  6206. "frameborder": "no",
  6207. "border": "0",
  6208. "scrolling ": "no",
  6209. "style": {
  6210. "cssText": "border:0;width:100%;height:100%"
  6211. },
  6212. "src": "/Office/Word/WordEditArea.htm"
  6213. })
  6214. _box.appendChild(_iframe);
  6215. _box.appendChild(_jie);
  6216. _formdiv = new U.UF.UI.form(
  6217. "協同文檔",
  6218. _box, {
  6219. "id": "docs" + cid + stage + task + tool,
  6220. "style": {
  6221. "width": "90%",
  6222. "height": "90%",
  6223. "overflow": 'hidden'
  6224. },
  6225. "onresize": function () { }
  6226. }, {
  6227. closecallback: function () { }
  6228. }, {
  6229. "style": {
  6230. "height": "36px"
  6231. }
  6232. }).form; //創建窗體
  6233. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6234. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6235. })
  6236. _taskbar = {
  6237. "id": str + _formdiv.id,
  6238. "style": {
  6239. "backgroundImage": "url(/img/icon/doc.png)"
  6240. },
  6241. "name": "協同文檔",
  6242. "forms": _formdiv,
  6243. "click": function() {
  6244. U.MD.D.I.openApplication(str, obj, info);
  6245. }
  6246. }
  6247. break;
  6248. }
  6249. const script1 = document.createElement("script");
  6250. script1.type = "text/javascript";
  6251. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6252. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6253. const script2 = document.createElement("script");
  6254. script2.type = "text/javascript";
  6255. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6256. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6257. const script3 = document.createElement("script");
  6258. script3.type = "text/javascript";
  6259. script3.charset = "UTF-8";
  6260. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6261. const script4 = document.createElement("script");
  6262. script4.type = "text/javascript";
  6263. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6264. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu4.js";
  6265. if (_iframe) {
  6266. if (str == 'doc') {
  6267. _iframe = _formdiv.querySelector('iframe')
  6268. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6269. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6270. _iframe.contentWindow.document.body.appendChild(script1);
  6271. _iframe.contentWindow.document.body.appendChild(script2);
  6272. // _iframe.contentWindow.document.body.appendChild(script3);
  6273. _iframe.contentWindow.document.body.appendChild(script4);
  6274. })
  6275. if (onloadListener) {
  6276. _iframe.contentDocument.location.reload()
  6277. } else {
  6278. _iframe.contentDocument.location.reload()
  6279. }
  6280. } else if (str == 'mind') {
  6281. _iframe = _formdiv.querySelector('iframe')
  6282. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6283. _iframe.contentWindow.document.body.appendChild(script1);
  6284. _iframe.contentWindow.document.body.appendChild(script2);
  6285. _iframe.contentWindow.document.body.appendChild(script4);
  6286. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6287. })
  6288. if (onloadListener) {
  6289. _iframe.contentDocument.location.reload()
  6290. } else {
  6291. _iframe.contentDocument.location.reload()
  6292. }
  6293. } else {
  6294. _iframe.onload = () => {
  6295. _iframe.contentWindow.document.body.appendChild(script1);
  6296. _iframe.contentWindow.document.body.appendChild(script2);
  6297. // _iframe.contentWindow.document.body.appendChild(script3);
  6298. _iframe.contentWindow.document.body.appendChild(script4);
  6299. };
  6300. }
  6301. _jie.onclick = async() => {
  6302. let text = ''
  6303. if (aTool == 6) {
  6304. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6305. } else if (aTool == 3) {
  6306. text = await U.MD.D.I.getEditorContent(_iframe);
  6307. }
  6308. _loading.style.display = 'flex'
  6309. console.log(_loading);
  6310. var _ajs = _iframe.contentWindow.document.createElement("script");
  6311. _ajs.type = "text/javascript";
  6312. _ajs.innerHTML =
  6313. // 'console.log(' + _loading + ');\n' +
  6314. 'var _js = document.createElement("script");\n' +
  6315. '_js.type="text/javascript";\n' +
  6316. '_js.charset="UTF-8";\n' +
  6317. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6318. "_js.onload = function(){\n" +
  6319. ' var a = document.getElementsByTagName("img")\n' +
  6320. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6321. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6322. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6323. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6324. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6325. "beforeUpload_shishi(file," +
  6326. "'" +
  6327. _userid +
  6328. "'" +
  6329. ", " +
  6330. "'" +
  6331. _cid +
  6332. "'" +
  6333. ", " +
  6334. "'" +
  6335. _stage +
  6336. "'" +
  6337. ", " +
  6338. "'" +
  6339. _task +
  6340. "'" +
  6341. ", " +
  6342. "'" +
  6343. _tool +
  6344. "'" +
  6345. ", " +
  6346. "'" +
  6347. (str + '_loadLi_JieS' + cid + stage + task + tool + _userid) +
  6348. "'" +
  6349. ", " +
  6350. "'" +
  6351. aTool +
  6352. "'" +
  6353. ", " +
  6354. "`" +
  6355. text +
  6356. "`" +
  6357. ")\n" +
  6358. " });\n" +
  6359. "}\n" +
  6360. "document.head.appendChild(_js);\n";
  6361. _iframe.contentWindow.document.head.appendChild(_ajs);
  6362. }
  6363. }
  6364. //U.MD.D.I.openClick(str);
  6365. //如果有任務欄信息
  6366. // if (_taskbar) {
  6367. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6368. // }
  6369. }
  6370. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  6371. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6372. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6373. _userinfo = US.userInfo, //登錄用戶信息
  6374. _userid = US.userInfo.userid //登錄用戶id
  6375. let _iframe;
  6376. let _cid = cid,
  6377. _stage = stage,
  6378. _task = task,
  6379. _tool = tool;
  6380. var _jie = $$("div", {
  6381. "style": {
  6382. "position": "absolute",
  6383. "bottom": "50px",
  6384. "right": "50px",
  6385. "zIndex": "9999",
  6386. "backgroundColor": "#2268bc",
  6387. "color": "#fff",
  6388. "padding": "12px 20px",
  6389. "cursor": "pointer",
  6390. "borderRadius": "4px",
  6391. },
  6392. "innerHTML": "確認並提交"
  6393. })
  6394. let aTool = ''
  6395. let _loading = document.createElement('div')
  6396. _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;"
  6397. // _loading.id = "";
  6398. let _lchild = document.createElement('div')
  6399. let _limg = document.createElement('img')
  6400. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6401. _limg.style = "width: 26px;margin-right: 10px;"
  6402. _lchild.appendChild(_limg)
  6403. let _lspan = document.createElement('span')
  6404. _lspan.innerHTML = "上傳中..."
  6405. _lchild.appendChild(_lspan)
  6406. _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%);"
  6407. _loading.appendChild(_lchild)
  6408. var _box = $$('div', {
  6409. "style": {
  6410. "position": "relative",
  6411. "width": "100%",
  6412. "height": "100%",
  6413. },
  6414. })
  6415. _box.appendChild(_loading)
  6416. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid
  6417. switch (str) {
  6418. case "whiteboard":
  6419. aTool = 1;
  6420. _iframe = $$("iframe", {
  6421. "frameborder": "no",
  6422. "border": "0",
  6423. "scrolling ": "no",
  6424. "style": {
  6425. "cssText": "border:0;width:100%;height:100%"
  6426. },
  6427. "src": "https://iwb.cocorobo.hk/"
  6428. })
  6429. _box.appendChild(_iframe);
  6430. _box.appendChild(_jie);
  6431. _formdiv = new U.UF.UI.form(
  6432. "電子白板",
  6433. _box, {
  6434. "id": "whiteboards" + cid + stage + task + tool,
  6435. "style": {
  6436. "width": "90%",
  6437. "height": "90%",
  6438. "overflow": 'hidden'
  6439. },
  6440. "onresize": function () { }
  6441. }, {
  6442. closecallback: function () { }
  6443. }, {
  6444. "style": {
  6445. "height": "36px"
  6446. }
  6447. }).form; //創建窗體
  6448. _taskbar = {
  6449. "id": str + _formdiv.id,
  6450. "style": {
  6451. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6452. },
  6453. "name": "電子白板",
  6454. "forms": _formdiv,
  6455. "click": function() {
  6456. U.MD.D.I.openApplication(str, obj, info);
  6457. }
  6458. }
  6459. break;
  6460. case "mind":
  6461. aTool = 3;
  6462. _iframe = $$("iframe", {
  6463. "frameborder": "no",
  6464. "border": "0",
  6465. "scrolling ": "no",
  6466. "style": {
  6467. "cssText": "border:0;width:100%;height:100%"
  6468. },
  6469. "src": "/kityminder-editor/dist/index.html"
  6470. });
  6471. _box.appendChild(_iframe);
  6472. _box.appendChild(_jie);
  6473. _formdiv = new U.UF.UI.form(
  6474. "思維導圖",
  6475. _box, { //"/jsmind/example/demo.html"
  6476. "id": "minds" + cid + stage + task + tool,
  6477. "style": {
  6478. "width": "90%",
  6479. "height": "90%",
  6480. "overflow": 'hidden'
  6481. },
  6482. "onresize": function () { }
  6483. }, {
  6484. closecallback: function () { }
  6485. }, {
  6486. "style": {
  6487. "height": "36px"
  6488. }
  6489. }).form; //創建窗體
  6490. _taskbar = {
  6491. "id": str + _formdiv.id,
  6492. "style": {
  6493. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6494. },
  6495. "name": "思維導圖",
  6496. "forms": _formdiv,
  6497. "click": function() {
  6498. U.MD.D.I.openApplication(str, obj, info);
  6499. }
  6500. }
  6501. break;
  6502. case "doc":
  6503. aTool = 6;
  6504. _iframe = $$("iframe", {
  6505. "frameborder": "no",
  6506. "border": "0",
  6507. "scrolling ": "no",
  6508. "style": {
  6509. "cssText": "border:0;width:100%;height:100%"
  6510. },
  6511. "src": "/Office/Word/WordEditArea.htm"
  6512. })
  6513. _box.appendChild(_iframe);
  6514. _box.appendChild(_jie);
  6515. _formdiv = new U.UF.UI.form(
  6516. "協同文檔",
  6517. _box, {
  6518. "id": "docs" + cid + stage + task + tool,
  6519. "style": {
  6520. "width": "90%",
  6521. "height": "90%",
  6522. "overflow": 'hidden'
  6523. },
  6524. "onresize": function () { }
  6525. }, {
  6526. closecallback: function () { }
  6527. }, {
  6528. "style": {
  6529. "height": "36px"
  6530. }
  6531. }).form; //創建窗體
  6532. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6533. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6534. })
  6535. _taskbar = {
  6536. "id": str + _formdiv.id,
  6537. "style": {
  6538. "backgroundImage": "url(/img/icon/doc.png)"
  6539. },
  6540. "name": "協同文檔",
  6541. "forms": _formdiv,
  6542. "click": function() {
  6543. U.MD.D.I.openApplication(str, obj, info);
  6544. }
  6545. }
  6546. break;
  6547. }
  6548. const script1 = document.createElement("script");
  6549. script1.type = "text/javascript";
  6550. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6551. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6552. const script2 = document.createElement("script");
  6553. script2.type = "text/javascript";
  6554. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6555. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6556. const script3 = document.createElement("script");
  6557. script3.type = "text/javascript";
  6558. script3.charset = "UTF-8";
  6559. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6560. const script4 = document.createElement("script");
  6561. script4.type = "text/javascript";
  6562. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6563. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu5.js";
  6564. if (_iframe) {
  6565. if (str == 'doc') {
  6566. _iframe = _formdiv.querySelector('iframe')
  6567. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6568. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6569. _iframe.contentWindow.document.body.appendChild(script1);
  6570. _iframe.contentWindow.document.body.appendChild(script2);
  6571. // _iframe.contentWindow.document.body.appendChild(script3);
  6572. _iframe.contentWindow.document.body.appendChild(script4);
  6573. })
  6574. if (onloadListener) {
  6575. _iframe.contentDocument.location.reload()
  6576. } else {
  6577. _iframe.contentDocument.location.reload()
  6578. }
  6579. } else if (str == 'mind') {
  6580. _iframe = _formdiv.querySelector('iframe')
  6581. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6582. _iframe.contentWindow.document.body.appendChild(script1);
  6583. _iframe.contentWindow.document.body.appendChild(script2);
  6584. _iframe.contentWindow.document.body.appendChild(script4);
  6585. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6586. })
  6587. if (onloadListener) {
  6588. _iframe.contentDocument.location.reload()
  6589. } else {
  6590. _iframe.contentDocument.location.reload()
  6591. }
  6592. } else {
  6593. _iframe.onload = () => {
  6594. _iframe.contentWindow.document.body.appendChild(script1);
  6595. _iframe.contentWindow.document.body.appendChild(script2);
  6596. // _iframe.contentWindow.document.body.appendChild(script3);
  6597. _iframe.contentWindow.document.body.appendChild(script4);
  6598. };
  6599. }
  6600. _jie.onclick = async() => {
  6601. let text = ''
  6602. if (aTool == 6) {
  6603. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6604. } else if (aTool == 3) {
  6605. text = await U.MD.D.I.getEditorContent(_iframe);
  6606. }
  6607. _loading.style.display = 'flex'
  6608. console.log(_loading);
  6609. var _ajs = _iframe.contentWindow.document.createElement("script");
  6610. _ajs.type = "text/javascript";
  6611. _ajs.innerHTML =
  6612. // 'console.log(' + _loading + ');\n' +
  6613. 'var _js = document.createElement("script");\n' +
  6614. '_js.type="text/javascript";\n' +
  6615. '_js.charset="UTF-8";\n' +
  6616. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6617. "_js.onload = function(){\n" +
  6618. ' var a = document.getElementsByTagName("img")\n' +
  6619. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6620. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6621. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6622. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6623. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6624. "beforeUpload_shishi(file," +
  6625. "'" +
  6626. _userid +
  6627. "'" +
  6628. ", " +
  6629. "'" +
  6630. _cid +
  6631. "'" +
  6632. ", " +
  6633. "'" +
  6634. _stage +
  6635. "'" +
  6636. ", " +
  6637. "'" +
  6638. _task +
  6639. "'" +
  6640. ", " +
  6641. "'" +
  6642. _tool +
  6643. "'" +
  6644. ", " +
  6645. "'" +
  6646. (str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid) +
  6647. "'" +
  6648. ", " +
  6649. "'" +
  6650. aTool +
  6651. "'" +
  6652. ", " +
  6653. "`" +
  6654. text +
  6655. "`" +
  6656. ")\n" +
  6657. " });\n" +
  6658. "}\n" +
  6659. "document.head.appendChild(_js);\n";
  6660. _iframe.contentWindow.document.head.appendChild(_ajs);
  6661. }
  6662. }
  6663. //U.MD.D.I.openClick(str);
  6664. //如果有任務欄信息
  6665. // if (_taskbar) {
  6666. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6667. // }
  6668. }
  6669. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6670. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6671. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6672. _userinfo = US.userInfo, //登錄用戶信息
  6673. _userid = US.userInfo.userid //登錄用戶id
  6674. let _iframe;
  6675. let _cid = cid,
  6676. _stage = stage,
  6677. _task = task,
  6678. _tool = tool;
  6679. var _jie = $$("div", {
  6680. "style": {
  6681. "position": "absolute",
  6682. "bottom": "50px",
  6683. "right": "50px",
  6684. "zIndex": "9999",
  6685. "backgroundColor": "#2268bc",
  6686. "color": "#fff",
  6687. "padding": "12px 20px",
  6688. "cursor": "pointer",
  6689. "borderRadius": "4px",
  6690. },
  6691. "innerHTML": "上傳模板"
  6692. })
  6693. let aTool = ''
  6694. let _loading = document.createElement('div')
  6695. _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;"
  6696. // _loading.id = "";
  6697. let _lchild = document.createElement('div')
  6698. let _limg = document.createElement('img')
  6699. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6700. _limg.style = "width: 26px;margin-right: 10px;"
  6701. _lchild.appendChild(_limg)
  6702. let _lspan = document.createElement('span')
  6703. _lspan.innerHTML = "上傳中..."
  6704. _lchild.appendChild(_lspan)
  6705. _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%);"
  6706. _loading.appendChild(_lchild)
  6707. var _box = $$('div', {
  6708. "style": {
  6709. "position": "relative",
  6710. "width": "100%",
  6711. "height": "100%",
  6712. },
  6713. })
  6714. _box.appendChild(_loading)
  6715. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool + _userid
  6716. switch (str) {
  6717. case "whiteboard":
  6718. aTool = 1;
  6719. _iframe = $$("iframe", {
  6720. "frameborder": "no",
  6721. "border": "0",
  6722. "scrolling ": "no",
  6723. "style": {
  6724. "cssText": "border:0;width:100%;height:100%"
  6725. },
  6726. "src": "https://iwb.cocorobo.hk/"
  6727. })
  6728. _box.appendChild(_iframe);
  6729. _box.appendChild(_jie);
  6730. _formdiv = new U.UF.UI.form(
  6731. "電子白板",
  6732. _box, {
  6733. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6734. "style": {
  6735. "width": "90%",
  6736. "height": "90%",
  6737. "overflow": 'hidden'
  6738. },
  6739. "onresize": function () { }
  6740. }, {
  6741. closecallback: function () { }
  6742. }, {
  6743. "style": {
  6744. "height": "36px"
  6745. }
  6746. }).form; //創建窗體
  6747. _taskbar = {
  6748. "id": str + _formdiv.id,
  6749. "style": {
  6750. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6751. },
  6752. "name": "電子白板",
  6753. "forms": _formdiv,
  6754. "click": function() {
  6755. U.MD.D.I.openApplication(str, obj, info);
  6756. }
  6757. }
  6758. break;
  6759. case "mind":
  6760. aTool = 3;
  6761. _iframe = $$("iframe", {
  6762. "frameborder": "no",
  6763. "border": "0",
  6764. "scrolling ": "no",
  6765. "style": {
  6766. "cssText": "border:0;width:100%;height:100%"
  6767. },
  6768. "src": "/kityminder-editor/dist/index.html"
  6769. });
  6770. _box.appendChild(_iframe);
  6771. _box.appendChild(_jie);
  6772. _formdiv = new U.UF.UI.form(
  6773. "思維導圖",
  6774. _box, { //"/jsmind/example/demo.html"
  6775. "id": "minds_Yu" + cid + stage + task + tool,
  6776. "style": {
  6777. "width": "90%",
  6778. "height": "90%",
  6779. "overflow": 'hidden'
  6780. },
  6781. "onresize": function () { }
  6782. }, {
  6783. closecallback: function () { }
  6784. }, {
  6785. "style": {
  6786. "height": "36px"
  6787. }
  6788. }).form; //創建窗體
  6789. _taskbar = {
  6790. "id": str + _formdiv.id,
  6791. "style": {
  6792. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6793. },
  6794. "name": "思維導圖",
  6795. "forms": _formdiv,
  6796. "click": function() {
  6797. U.MD.D.I.openApplication(str, obj, info);
  6798. }
  6799. }
  6800. break;
  6801. case "doc":
  6802. aTool = 6;
  6803. _iframe = $$("iframe", {
  6804. "frameborder": "no",
  6805. "border": "0",
  6806. "scrolling ": "no",
  6807. "style": {
  6808. "cssText": "border:0;width:100%;height:100%"
  6809. },
  6810. "src": "/Office/Word/WordEditArea.htm"
  6811. })
  6812. _box.appendChild(_iframe);
  6813. _box.appendChild(_jie);
  6814. _formdiv = new U.UF.UI.form(
  6815. "協同文檔",
  6816. _box, {
  6817. "id": "docs_Yu" + cid + stage + task + tool,
  6818. "style": {
  6819. "width": "90%",
  6820. "height": "90%",
  6821. "overflow": 'hidden'
  6822. },
  6823. "onresize": function () { }
  6824. }, {
  6825. closecallback: function () { }
  6826. }, {
  6827. "style": {
  6828. "height": "36px"
  6829. }
  6830. }).form; //創建窗體
  6831. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6832. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6833. })
  6834. _taskbar = {
  6835. "id": str + _formdiv.id,
  6836. "style": {
  6837. "backgroundImage": "url(/img/icon/doc.png)"
  6838. },
  6839. "name": "協同文檔",
  6840. "forms": _formdiv,
  6841. "click": function() {
  6842. U.MD.D.I.openApplication(str, obj, info);
  6843. }
  6844. }
  6845. break;
  6846. case "CocoPi":
  6847. aTool = 57;
  6848. _iframe = $$("iframe", {
  6849. "allowpaymentrequest":"allowpaymentrequest",
  6850. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6851. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6852. "frameborder": "no",
  6853. "border": "0",
  6854. "scrolling ": "no",
  6855. "style": {
  6856. "cssText": "border:0;width:100%;height:100%"
  6857. },
  6858. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  6859. })
  6860. _box.appendChild(_iframe);
  6861. _box.appendChild(_jie);
  6862. _formdiv = new U.UF.UI.form(
  6863. "CocoPi",
  6864. _box, {
  6865. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6866. "style": {
  6867. "width": "90%",
  6868. "height": "90%",
  6869. "overflow": 'hidden'
  6870. },
  6871. "onresize": function() {}
  6872. }, {
  6873. closecallback: function() {}
  6874. }, {
  6875. "style": {
  6876. "height": "36px"
  6877. }
  6878. }).form; //創建窗體
  6879. _taskbar = {
  6880. "id": str + _formdiv.id,
  6881. "style": {
  6882. "backgroundImage": "url(/img/icon/cocopi.png)"
  6883. },
  6884. "name": "CocoPi",
  6885. "forms": _formdiv,
  6886. "click": function () {
  6887. U.MD.D.I.openApplication(str, obj, info);
  6888. }
  6889. }
  6890. break;
  6891. }
  6892. if (_iframe) {
  6893. if (str == 'doc') {
  6894. _iframe = _formdiv.querySelector('iframe')
  6895. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6896. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6897. })
  6898. if (onloadListener) {
  6899. _iframe.contentDocument.location.reload()
  6900. } else {
  6901. _iframe.contentDocument.location.reload()
  6902. }
  6903. } else if (str == 'mind') {
  6904. _iframe = _formdiv.querySelector('iframe')
  6905. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6906. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6907. })
  6908. if (onloadListener) {
  6909. _iframe.contentDocument.location.reload()
  6910. } else {
  6911. _iframe.contentDocument.location.reload()
  6912. }
  6913. } else if (str == 'whiteboard') {
  6914. _iframe = _formdiv.querySelector('iframe')
  6915. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6916. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6917. })
  6918. if (onloadListener) {
  6919. _iframe.contentDocument.location.reload()
  6920. } else {
  6921. _iframe.contentDocument.location.reload()
  6922. }
  6923. } else if (str == 'CocoPi') {
  6924. _iframe = _formdiv.querySelector('iframe')
  6925. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6926. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6927. })
  6928. if (onloadListener) {
  6929. _iframe.contentDocument.location.reload()
  6930. } else {
  6931. _iframe.contentDocument.location.reload()
  6932. }
  6933. } else {
  6934. _iframe.onload = () => {};
  6935. }
  6936. _jie.onclick = async() => {
  6937. let text = ''
  6938. let type = '2'
  6939. if (aTool == 1) {
  6940. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6941. type = '3'
  6942. } else if (aTool == 6) {
  6943. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6944. type = '1'
  6945. } else if (aTool == 3) {
  6946. text = await U.MD.D.I.getEditorContent(_iframe);
  6947. type = '2'
  6948. } else if (aTool == 57) {
  6949. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6950. type = '4'
  6951. }
  6952. _loading.style.display = 'flex'
  6953. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6954. }
  6955. }
  6956. //U.MD.D.I.openClick(str);
  6957. //如果有任務欄信息
  6958. // if (_taskbar) {
  6959. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6960. // }
  6961. }
  6962. U.MD.D.I.getContents = function(cid, s, task, t, uid, type, iframe) {
  6963. var xmlhttp;
  6964. var Mac, Sn, DeviceId
  6965. if (window.XMLHttpRequest) {
  6966. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6967. xmlhttp = new XMLHttpRequest();
  6968. }
  6969. else {
  6970. // IE6, IE5 瀏覽器執行代碼
  6971. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6972. }
  6973. xmlhttp.onreadystatechange = function() {
  6974. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6975. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6976. // resolve(res.value[0][0].text);
  6977. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6978. }
  6979. }
  6980. }
  6981. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6982. xmlhttp.send();
  6983. }
  6984. U.MD.D.I.getContents2 = function(cid, s, task, t, uid, type, iframe) {
  6985. var xmlhttp;
  6986. var Mac, Sn, DeviceId
  6987. if (window.XMLHttpRequest) {
  6988. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6989. xmlhttp = new XMLHttpRequest();
  6990. }
  6991. else {
  6992. // IE6, IE5 瀏覽器執行代碼
  6993. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6994. }
  6995. xmlhttp.onreadystatechange = function() {
  6996. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6997. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6998. // resolve(res.value[0][0].text);
  6999. if (type == '2') {
  7000. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7001. } else if (type == '3') {
  7002. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  7003. } else if (type == '4') {
  7004. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  7005. }
  7006. } else {
  7007. if (type == '2') {
  7008. iframe.contentWindow.editor.minder.importData('json', '')
  7009. } else if (type == '3') {
  7010. iframe.contentWindow.h.app.updateScene({ elements: [] })
  7011. } else if (type == '4') {
  7012. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7013. }
  7014. }
  7015. }
  7016. }
  7017. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7018. xmlhttp.send();
  7019. }
  7020. U.MD.D.I.setContents = function(cid, s, task, t, uid, type, text, loading, span) {
  7021. var xmlhttp;
  7022. var Mac, Sn, DeviceId
  7023. if (window.XMLHttpRequest) {
  7024. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7025. xmlhttp = new XMLHttpRequest();
  7026. }
  7027. else {
  7028. // IE6, IE5 瀏覽器執行代碼
  7029. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7030. }
  7031. xmlhttp.onreadystatechange = function () {
  7032. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7033. if (xmlhttp.response) {
  7034. // resolve(res.value[0][0].text);
  7035. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  7036. // $(fileInput).val('');
  7037. // });
  7038. span.innerHTML = '上傳成功'
  7039. setTimeout(() => {
  7040. loading.style.display = 'none'
  7041. }, 1000);
  7042. }
  7043. }
  7044. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  7045. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  7046. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  7047. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  7048. // 設置請求頭,表示請求體的編碼格式
  7049. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  7050. // 設置請求體,使用url-encoded格式的數據
  7051. }
  7052. }
  7053. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  7054. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7055. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7056. _userinfo = US.userInfo, //登錄用戶信息
  7057. _userid = US.userInfo.userid //登錄用戶id
  7058. let _iframe;
  7059. let _cid = cid,
  7060. _stage = stage,
  7061. _task = task,
  7062. _tool = tool;
  7063. var _jie = $$("div", {
  7064. "style": {
  7065. "position": "absolute",
  7066. "bottom": "50px",
  7067. "right": "50px",
  7068. "zIndex": "9999",
  7069. "backgroundColor": "#2268bc",
  7070. "color": "#fff",
  7071. "padding": "12px 20px",
  7072. "cursor": "pointer",
  7073. "borderRadius": "4px",
  7074. },
  7075. "innerHTML": "提交作業"
  7076. })
  7077. let aTool = ''
  7078. let _loading = document.createElement('div')
  7079. _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;"
  7080. // _loading.id = "";
  7081. let _lchild = document.createElement('div')
  7082. let _limg = document.createElement('img')
  7083. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7084. _limg.style = "width: 26px;margin-right: 10px;"
  7085. _lchild.appendChild(_limg)
  7086. let _lspan = document.createElement('span')
  7087. _lspan.innerHTML = "上傳中..."
  7088. _lchild.appendChild(_lspan)
  7089. _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%);"
  7090. _loading.appendChild(_lchild)
  7091. var _box = $$('div', {
  7092. "style": {
  7093. "position": "relative",
  7094. "width": "100%",
  7095. "height": "100%",
  7096. },
  7097. })
  7098. _box.appendChild(_loading)
  7099. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool + _userid
  7100. switch (str) {
  7101. case "CocoPi":
  7102. aTool = 57;
  7103. _iframe = $$("iframe", {
  7104. "allowpaymentrequest": "allowpaymentrequest",
  7105. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7106. "webkitallowfullscreen": "",
  7107. "mozallowfullscreen": "",
  7108. "frameborder": "no",
  7109. "border": "0",
  7110. "scrolling ": "no",
  7111. "style": {
  7112. "cssText": "border:0;width:100%;height:100%"
  7113. },
  7114. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7115. })
  7116. _box.appendChild(_iframe);
  7117. _box.appendChild(_jie);
  7118. _formdiv = new U.UF.UI.form(
  7119. "CocoPi",
  7120. _box, {
  7121. "id": "CocoPi_Upload" + cid + stage + task + tool,
  7122. "style": {
  7123. "width": "90%",
  7124. "height": "90%",
  7125. "overflow": 'hidden'
  7126. },
  7127. "onresize": function () { }
  7128. }, {
  7129. closecallback: function () { }
  7130. }, {
  7131. "style": {
  7132. "height": "36px"
  7133. }
  7134. }).form; //創建窗體
  7135. _taskbar = {
  7136. "id": str + _formdiv.id,
  7137. "style": {
  7138. "backgroundImage": "url(/img/icon/cocopi.png)"
  7139. },
  7140. "name": "CocoPi",
  7141. "forms": _formdiv,
  7142. "click": function() {
  7143. U.MD.D.I.openApplication(str, obj, info);
  7144. }
  7145. }
  7146. break;
  7147. }
  7148. if (_iframe) {
  7149. if (str == 'CocoPi') {
  7150. _iframe = _formdiv.querySelector('iframe')
  7151. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7152. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7153. })
  7154. if (onloadListener) {
  7155. _iframe.contentDocument.location.reload()
  7156. } else {
  7157. _iframe.contentDocument.location.reload()
  7158. }
  7159. }
  7160. _jie.onclick = async() => {
  7161. let text = ''
  7162. if (aTool == 57) {
  7163. text = _iframe.contentWindow.getLoadXmlStr()
  7164. }
  7165. _loading.style.display = 'flex'
  7166. console.log(_loading);
  7167. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function(res) {
  7168. _loading.style.display = 'none'
  7169. let _div = document.createElement('div')
  7170. _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;"
  7171. let _inner = document.createElement('div')
  7172. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7173. _inner.innerHTML = "上傳成功"
  7174. _div.appendChild(_inner)
  7175. _iframe.contentWindow.window.document.body.appendChild(_div)
  7176. _div.onclick = () => {
  7177. _iframe.contentWindow.window.document.body.removeChild(_div)
  7178. }
  7179. setTimeout(() => {
  7180. _iframe.contentWindow.window.document.body.removeChild(_div)
  7181. }, 1000);
  7182. }, [], { "type": "POST", "withCredentials": true });
  7183. }
  7184. }
  7185. }
  7186. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  7187. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7188. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7189. _userid = student.userid, //登錄用戶id
  7190. _username = student.student //用戶名字
  7191. let _iframe;
  7192. let _cid = cid,
  7193. _stage = stage,
  7194. _task = task,
  7195. _tool = tool;
  7196. var _jie = $$("div", {
  7197. "style": {
  7198. "position": "absolute",
  7199. "bottom": "50px",
  7200. "right": "50px",
  7201. "zIndex": "9999",
  7202. "backgroundColor": "#2268bc",
  7203. "color": "#fff",
  7204. "padding": "12px 20px",
  7205. "cursor": "pointer",
  7206. "borderRadius": "4px",
  7207. },
  7208. "innerHTML": "提交作業"
  7209. })
  7210. let aTool = ''
  7211. let _loading = document.createElement('div')
  7212. _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;"
  7213. // _loading.id = "";
  7214. let _lchild = document.createElement('div')
  7215. let _limg = document.createElement('img')
  7216. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7217. _limg.style = "width: 26px;margin-right: 10px;"
  7218. _lchild.appendChild(_limg)
  7219. let _lspan = document.createElement('span')
  7220. _lspan.innerHTML = "上傳中..."
  7221. _lchild.appendChild(_lspan)
  7222. _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%);"
  7223. _loading.appendChild(_lchild)
  7224. var _box = $$('div', {
  7225. "style": {
  7226. "position": "relative",
  7227. "width": "100%",
  7228. "height": "100%",
  7229. },
  7230. })
  7231. _box.appendChild(_loading)
  7232. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool + _userid
  7233. switch (str) {
  7234. case "CocoPi":
  7235. aTool = 57;
  7236. _iframe = $$("iframe", {
  7237. "allowpaymentrequest": "allowpaymentrequest",
  7238. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7239. "webkitallowfullscreen": "",
  7240. "mozallowfullscreen": "",
  7241. "frameborder": "no",
  7242. "border": "0",
  7243. "scrolling ": "no",
  7244. "style": {
  7245. "cssText": "border:0;width:100%;height:100%"
  7246. },
  7247. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7248. })
  7249. _box.appendChild(_iframe);
  7250. _box.appendChild(_jie);
  7251. _formdiv = new U.UF.UI.form(
  7252. "CocoPi-" + _username,
  7253. _box, {
  7254. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  7255. "style": {
  7256. "width": "90%",
  7257. "height": "90%",
  7258. "overflow": 'hidden'
  7259. },
  7260. "onresize": function () { }
  7261. }, {
  7262. closecallback: function () { }
  7263. }, {
  7264. "style": {
  7265. "height": "36px"
  7266. }
  7267. }).form; //創建窗體
  7268. _taskbar = {
  7269. "id": str + _formdiv.id,
  7270. "style": {
  7271. "backgroundImage": "url(/img/icon/cocopi.png)"
  7272. },
  7273. "name": "CocoPi",
  7274. "forms": _formdiv,
  7275. "click": function() {
  7276. U.MD.D.I.openApplication(str, obj, info);
  7277. }
  7278. }
  7279. break;
  7280. }
  7281. if (_iframe) {
  7282. if (str == 'CocoPi') {
  7283. _iframe = _formdiv.querySelector('iframe')
  7284. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7285. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7286. })
  7287. if (onloadListener) {
  7288. _iframe.contentDocument.location.reload()
  7289. } else {
  7290. _iframe.contentDocument.location.reload()
  7291. }
  7292. }
  7293. _jie.onclick = async() => {
  7294. let text = ''
  7295. if (aTool == 57) {
  7296. text = _iframe.contentWindow.getLoadXmlStr()
  7297. }
  7298. _loading.style.display = 'flex'
  7299. console.log(_loading);
  7300. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function(res) {
  7301. _loading.style.display = 'none'
  7302. let _div = document.createElement('div')
  7303. _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;"
  7304. let _inner = document.createElement('div')
  7305. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7306. _inner.innerHTML = "上傳成功"
  7307. _div.appendChild(_inner)
  7308. _iframe.contentWindow.window.document.body.appendChild(_div)
  7309. _div.onclick = () => {
  7310. _iframe.contentWindow.window.document.body.removeChild(_div)
  7311. }
  7312. setTimeout(() => {
  7313. _iframe.contentWindow.window.document.body.removeChild(_div)
  7314. }, 1000);
  7315. }, [], { "type": "POST", "withCredentials": true });
  7316. }
  7317. }
  7318. }
  7319. U.MD.D.I.getUploadContent = function(cid, s, task, t, uid, atool, type, iframe) {
  7320. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function(res) {
  7321. if (res.value[0].length > 0) {
  7322. if (atool == 57) {
  7323. iframe.contentWindow.loadingXml(res.value[0][0].content)
  7324. }
  7325. } else {
  7326. if (atool == 57) {
  7327. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  7328. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7329. }
  7330. }
  7331. }, [], { "type": "POST", "withCredentials": true });
  7332. }