DeskTop.js 443 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644
  1. /*
  2. 此處為桌面系統啟動應用區域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面應用處理
  5. //判斷圖片是否在拖拽,如果是拖拽圖標的過程是不會打開圖片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教師桌面圖標的全局變量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  17. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  18. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  19. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  20. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  21. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  22. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  23. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  24. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  25. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  26. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  27. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  28. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  29. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  30. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  31. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  32. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  33. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  34. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  35. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  36. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  37. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  38. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  39. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  40. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  41. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  42. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  43. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  44. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  45. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  46. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  47. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  48. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  49. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  50. ];
  51. //極簡模式
  52. U.MD.D.I.easyDeskIcon = [
  53. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  55. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  56. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  57. // { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  58. ];
  59. //教師桌面圖標的全局變量
  60. U.MD.D.I.teacherDeskIcon2 = [
  61. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  62. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  63. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  64. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  65. // { "Name": "項目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  66. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  67. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  68. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  69. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  70. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  71. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  72. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  73. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  74. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  75. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  76. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  77. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  78. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  79. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  80. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  81. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  82. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  83. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  84. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  85. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  86. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  87. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  88. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  89. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  90. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  91. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  92. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  93. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  94. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  95. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  96. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  97. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  98. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  99. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  100. ];
  101. U.MD.D.I.studentDeskIcon = [
  102. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  103. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  104. // { "Name": "我的項目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  105. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  106. // { "Name": "我的評價", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  107. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  108. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  109. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  110. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  111. // { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  112. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  113. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  114. // { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  115. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  116. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  117. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  118. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  119. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  120. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  121. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  122. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  123. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  124. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  125. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  126. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  127. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  128. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  129. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  130. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  131. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  132. ];
  133. U.MD.D.I.studentDeskIcon2 = [
  134. // { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  135. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  136. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  137. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  138. ]
  139. U.MD.D.I.studentDeskIcon3 = [
  140. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  141. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  142. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. ]
  144. U.MD.D.I.schoolDeskIcon = [
  145. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  146. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  147. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  148. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  149. { "Name": "學習資料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  150. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  151. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  152. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  153. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  154. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  155. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  156. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  157. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  158. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  159. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  160. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  161. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  162. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  163. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  164. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  165. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  166. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  167. ];
  168. U.MD.D.I.orgDeskIcon = [
  169. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  170. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  171. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  172. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  173. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  174. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  175. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  176. ];
  177. U.MD.D.I.orgStemDeskIcon = [
  178. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  179. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  180. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  181. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  182. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  183. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  184. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  185. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  186. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  187. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  188. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  189. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  190. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  191. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  192. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  193. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  194. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  195. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  196. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  197. ];
  198. U.MD.D.I.szulsDeskIcon = [
  199. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  200. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  201. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  202. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  204. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  205. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  206. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  207. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  209. ];
  210. U.MD.D.I.hanDeskIcon = [
  211. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  212. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  213. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  214. { "Name": "漢字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  215. { "Name": "國學經典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  216. { "Name": "筆畫訓練", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  217. { "Name": "書法課堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  218. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  219. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  220. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  221. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  222. ];
  223. U.MD.D.I.GMteacherDeskIcon = [
  224. { "Name": "課程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  225. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "學生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  227. { "Name": "學生評價", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  228. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  229. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  230. { "Name": "班級管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  231. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  232. { "Name": "課程進展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  233. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  234. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  235. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  236. ];
  237. U.MD.D.I.GMstudentDeskIcon = [
  238. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  239. { "Name": "我的評價", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  240. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  241. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  242. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  243. ];
  244. //北師大
  245. U.MD.D.I.BSDNSteacherDeskIcon = [
  246. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  247. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  248. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  249. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  250. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  251. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  252. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  253. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  254. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  255. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  256. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  257. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  258. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  259. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  260. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  261. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  262. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  263. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  264. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  265. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  266. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  267. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  268. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  269. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  270. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  271. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  272. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  273. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  274. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  275. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  276. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  277. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  278. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  279. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  280. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  281. { "Name": "數字實驗室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  282. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  283. ];
  284. //松山湖
  285. U.MD.D.I.SONGteacherDeskIcon = [
  286. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  287. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  288. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  289. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  290. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  291. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  292. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  293. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  294. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  295. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  296. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  297. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  298. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  299. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  300. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  301. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  302. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  303. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  304. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  305. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  306. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  307. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  308. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  309. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  310. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  311. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  312. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  313. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  314. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  315. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  316. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  317. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  318. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  319. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  320. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  321. ];
  322. U.MD.D.I.tcStudentDeskIcon = [
  323. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  324. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  325. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  326. ];
  327. U.MD.D.I.tcTeacherDeskIcon = [
  328. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  329. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  330. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  331. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  332. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  333. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  334. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  335. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. ];
  338. U.MD.D.I.tcOrganizerDeskIcon = [
  339. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  340. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  341. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  342. { "Name": "師生項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  343. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  344. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  345. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  346. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  347. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  348. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  349. ];
  350. U.MD.D.I.szscStudentDeskIcon = [
  351. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  352. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  353. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  354. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  355. ];
  356. U.MD.D.I.szscTeacherDeskIcon = [
  357. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  358. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  359. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  360. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  361. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  362. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  363. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  364. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  365. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  366. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  367. ];
  368. U.MD.D.I.szscOrganizerDeskIcon = [
  369. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  370. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  371. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  372. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  373. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  374. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  375. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  376. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  377. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  378. ];
  379. U.MD.D.I.wankeTeacherDeskIcon = [ //1c3b9def-8fbe-11ed-b13d-005056b86db5
  380. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  381. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  382. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  383. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  384. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  385. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  386. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  387. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  388. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  389. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  390. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  391. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  392. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  393. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  394. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  395. ];
  396. U.MD.D.I.wankeAdminDeskIcon = [
  397. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  398. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  399. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  400. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  401. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  402. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  403. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  404. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  405. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  406. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  407. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  408. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  409. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  410. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  411. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  412. ];
  413. U.MD.D.I.lhsTeacherDeskIcon = [ //未來小學
  414. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  415. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  416. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  417. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  418. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  419. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  420. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  421. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  422. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  423. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  424. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  425. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  426. ];
  427. U.MD.D.I.lhsAdminDeskIcon = [ //未來小學admin
  428. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  429. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  430. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  431. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  432. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  433. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  434. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  435. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  436. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  437. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  438. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  439. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  440. ];
  441. //明德教師桌面圖標的全局變量
  442. U.MD.D.I.MingdeTeacherDeskIcon = [
  443. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  444. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  445. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  446. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  447. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  448. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  449. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  450. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  451. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  452. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  453. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  454. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  455. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  456. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  457. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  458. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  459. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  460. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  461. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  462. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  463. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  464. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  465. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  466. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  467. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  468. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  469. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  470. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  471. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  472. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  473. ];
  474. //97c4ee8b-d010-4042-986d-e9d3c217264f
  475. //教師桌面圖標的全局變量
  476. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  477. { "Name": "工作項目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  478. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  479. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  480. // { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  481. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  482. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  483. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  484. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  485. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  486. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  487. ];
  488. //福田
  489. U.MD.D.I.futianTeacherDeskIcon = [
  490. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  491. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  492. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  493. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  494. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  495. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  496. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  497. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  498. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  499. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  500. ];
  501. //福田
  502. U.MD.D.I.futianAdminDeskIcon = [
  503. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  504. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  505. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  506. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  507. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  508. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  509. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  510. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  511. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  512. ];
  513. //lotech
  514. U.MD.D.I.lotechTeacherDeskIcon = [
  515. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  516. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  517. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  518. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  519. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  520. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  521. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  522. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  523. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  524. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  525. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  526. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  527. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  528. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  529. ];
  530. //龍華中心小學教師桌面圖標的全局變量
  531. U.MD.D.I.longhuateacherDeskIcon = [
  532. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  533. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  534. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  535. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  536. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  537. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  538. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  539. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  540. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  541. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  542. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  543. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  544. ];
  545. //教科院實小教師桌面圖標的全局變量
  546. U.MD.D.I.siesteacherDeskIcon = [
  547. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  548. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  549. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  550. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  551. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  552. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  553. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  554. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  555. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  556. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  557. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  558. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  559. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  560. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  561. ];
  562. //教科院實小教師桌面圖標的全局變量
  563. U.MD.D.I.siesStudentDeskIcon = [
  564. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  565. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  566. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  567. ];
  568. //福田
  569. U.MD.D.I.gdjgTeacherDeskIcon = [
  570. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  571. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  572. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  573. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  574. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  575. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  576. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  577. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  578. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  579. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  580. ];
  581. //gdjg
  582. U.MD.D.I.gdjgAdminDeskIcon = [
  583. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  584. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  585. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  586. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  587. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  588. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  589. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  590. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  591. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  592. ];
  593. //hk
  594. U.MD.D.I.hkteacherDeskIcon = [
  595. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  596. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  597. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  598. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  599. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  600. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  601. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  602. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  603. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  604. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  605. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  606. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  607. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  608. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  609. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  610. ];
  611. //hk
  612. U.MD.D.I.hkStudentDeskIcon = [
  613. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  614. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  615. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  616. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  617. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  618. ];
  619. //香海正覺蓮社佛教正覺中學
  620. U.MD.D.I.hkZJLSteacherDeskIcon = [
  621. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  622. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  623. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  624. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  625. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  626. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  627. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  628. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  629. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  630. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  631. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  632. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  633. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  634. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  635. ];
  636. //香海正覺蓮社佛教正覺中學
  637. U.MD.D.I.hkZJLSStudentDeskIcon = [
  638. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  639. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  640. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  641. ];
  642. //雲海
  643. U.MD.D.I.yunhaiTeacherDeskIcon = [
  644. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  645. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  646. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  647. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  648. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  649. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  650. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  651. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  652. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  653. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  654. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  655. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  656. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  657. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  658. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  659. ];
  660. //福田
  661. U.MD.D.I.heyuanTeacherDeskIcon = [
  662. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  663. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  664. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  665. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  666. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  667. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  668. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  669. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  670. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  671. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  672. ];
  673. //福田
  674. U.MD.D.I.heyuanAdminDeskIcon = [
  675. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  676. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  677. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  678. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  679. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  680. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  681. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  682. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  683. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  684. ];
  685. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  686. U.MD.D.I.szherTeacherDeskIcon = [
  687. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  688. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  689. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  690. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  691. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  692. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  693. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  694. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  695. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  696. ];
  697. //dsei
  698. U.MD.D.I.dseiTeacherDeskIcon = [
  699. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  700. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  701. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  702. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  703. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  704. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  705. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  706. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  707. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  708. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  709. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  710. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  711. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  712. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  713. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  714. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  715. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  716. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  717. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  718. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  719. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  720. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  721. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  722. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  723. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  724. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  725. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  726. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  727. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  728. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  729. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  730. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  731. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  732. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  733. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  734. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  735. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  736. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  737. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  738. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  739. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  740. ];
  741. //dsei
  742. U.MD.D.I.dseiAdminDeskIcon = [
  743. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  744. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  745. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  746. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  747. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  748. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  749. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  750. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  751. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  752. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  753. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  754. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  755. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  756. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  757. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  758. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  759. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  760. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  761. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  762. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  763. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  764. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  765. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  766. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  767. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  768. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  769. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  770. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  771. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  772. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  773. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  774. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  775. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  776. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  777. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  778. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  779. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  780. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  781. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  782. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  783. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  784. ];
  785. //dsei
  786. U.MD.D.I.dseiStudentDeskIcon = [
  787. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  788. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  789. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  790. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  791. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  792. ];
  793. //未來教育基地
  794. U.MD.D.I.szjkyTeacherDeskIcon = [
  795. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  796. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  797. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  798. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  799. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  800. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  801. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  802. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  803. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  804. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  805. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  806. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  807. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  808. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  809. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  810. ];
  811. //未來教育基地
  812. U.MD.D.I.szjkyAdminDeskIcon = [
  813. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  814. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  815. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  816. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  817. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  818. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  819. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  820. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  821. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  822. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  823. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  824. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  825. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  826. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  827. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  828. ];
  829. //未來教育基地
  830. U.MD.D.I.szjkyStudentDeskIcon = [
  831. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  832. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  833. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  834. ];
  835. //成華教育局
  836. U.MD.D.I.chjyjTeacherDeskIcon = [
  837. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  838. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  839. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  840. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  841. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  842. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  843. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  844. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  845. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  846. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  847. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  848. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  849. ];
  850. //成華教育局chjyj
  851. U.MD.D.I.chjyjAdminDeskIcon = [
  852. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  853. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  854. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  855. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  856. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  857. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  858. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  859. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  860. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  861. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  862. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  863. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  864. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  865. ];
  866. //成華教育局chjyj
  867. U.MD.D.I.chjyjStudentDeskIcon = [
  868. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  869. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  870. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  871. ];
  872. //#region 桌面初始化a
  873. /**
  874. * 初始化桌面的起始函數
  875. *
  876. */
  877. U.MD.D.I.init = function() {
  878. if ($("#U_MD_D_K")[0]) {
  879. //初始化桌面圖標
  880. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  881. // var clickUrl = ':12588/requestIp.php';
  882. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  883. // U.MD.D.I.Ip = data;
  884. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  885. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  886. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  887. // })
  888. // //初始化任務欄,因為是靜態的,所以直接改變樣式即可.
  889. // })
  890. }
  891. }
  892. /**
  893. * 模式切換
  894. *
  895. */
  896. U.MD.D.I.ModeCheck = function(type) {
  897. if (US.Config.type == type) {
  898. return
  899. }
  900. US.Config.type = type
  901. $('.U_PBL_Check .active')[0].className = ''
  902. if (type == 1) {
  903. $('.U_PBL_Check div')[0].className = 'active'
  904. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  905. } else {
  906. $('.U_PBL_Check div')[1].className = 'active'
  907. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  908. }
  909. //初始化桌面圖標
  910. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  911. if (type == 2) {
  912. U.MD.D.I.openApplication("project")
  913. }
  914. }
  915. /**
  916. * 隱藏任務欄
  917. *
  918. * @param {element} 桌面元素
  919. */
  920. U.MD.D.I.hiddenTaskbar = function(el) {
  921. //任務欄位置變小
  922. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  923. //桌面的位置變大
  924. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  925. }
  926. /**
  927. * 隱藏任務欄
  928. *
  929. * @param {element} 桌面元素
  930. */
  931. U.MD.D.I.hiddenTaskbarout = function(el) {
  932. //任務欄位置變小
  933. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  934. //任務欄位置變化
  935. U.selectEl(el).css({ "bottom": "-60px" });
  936. //桌面的位置變大
  937. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  938. }
  939. }
  940. /**
  941. * 初始化打印桌面圖標
  942. *
  943. * @param {element} 桌面元素
  944. */
  945. U.MD.D.I.initDesktopIcons = function(el, type) {
  946. var i, //用於循環
  947. _content, //桌面圖標元素
  948. _iconcontent, //桌面圖標元素
  949. _frag = $$("frag"), //定義一個碎片元素
  950. _type = US.userInfo.type,
  951. _org = US.userInfo.org,
  952. _oid = US.userInfo.organizeid,
  953. _role = US.userInfo.role,
  954. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //獲取教師端桌面圖標
  955. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //極簡模式桌面圖標
  956. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //獲取教師端桌面圖標
  957. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //獲取學生端桌面圖標
  958. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //獲取學生端桌面圖標
  959. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //獲取學生端桌面圖標
  960. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //獲取組織桌面圖標
  961. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  962. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  963. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  964. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //獲取測試學校桌面圖標
  965. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon, //獲取北師大
  966. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon, //獲取周佳名工作室
  967. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon, //獲取松山湖
  968. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon, //獲取萬科雙語
  969. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon, //獲取萬科雙語
  970. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon, //獲取萬科雙語
  971. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon, //獲取未來小學
  972. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon, //獲取未來小學
  973. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //獲取光明學校桌面圖標
  974. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //獲取光明學校桌面圖標
  975. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon, //騰訊學生
  976. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon, //騰訊學生
  977. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon, //福田
  978. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon, //福田
  979. _szjkyTeacherDeskIconInfo = U.MD.D.I.szjkyTeacherDeskIcon, //未來教育基地
  980. _szjkyAdminDeskIconInfo = U.MD.D.I.szjkyAdminDeskIcon, //未來教育基地
  981. _szjkyStudentDeskIconInfo = U.MD.D.I.szjkyStudentDeskIcon, //未來教育基地
  982. _chjyjTeacherDeskIconInfo = U.MD.D.I.chjyjTeacherDeskIcon, //成華教育局
  983. _chjyjAdminDeskIconInfo = U.MD.D.I.chjyjAdminDeskIcon, //成華教育局
  984. _chjyjStudentDeskIconInfo = U.MD.D.I.chjyjStudentDeskIcon, //成華教育局
  985. _dseiTeacherDeskIconInfo = U.MD.D.I.dseiTeacherDeskIcon, //dsei
  986. _dseiAdminDeskIconInfo = U.MD.D.I.dseiAdminDeskIcon, //dsei
  987. _dseiStudentDeskIconInfo = U.MD.D.I.dseiStudentDeskIcon, //dsei
  988. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon, //福田
  989. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon, //福田
  990. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon, //szher
  991. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon, //
  992. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon, //
  993. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon, //lotech
  994. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon, //龍華中心
  995. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon, //sies
  996. _siesStudentDeskIconInfo = U.MD.D.I.siesStudentDeskIcon, //sies
  997. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon, //騰訊學生
  998. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon, //hk
  999. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon, //hk
  1000. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon, //hk
  1001. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon, //hk
  1002. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon, //雲海
  1003. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon, //網絡夏令營
  1004. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon, //網絡夏令營
  1005. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon; //網絡夏令營
  1006. 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'];
  1007. 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'];
  1008. //清楚桌面圖標
  1009. el.innerHTML = "";
  1010. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  1011. _teacherDesktopIconInfo.push(
  1012. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1013. { "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)" } },
  1014. )
  1015. _easyDesktopIconInfo.push({ "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } })
  1016. }
  1017. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  1018. _teacherDesktopIconInfo.push(
  1019. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1020. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  1021. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1022. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1023. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  1024. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  1025. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1026. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1027. )
  1028. }
  1029. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5') {
  1030. _teacherDesktopIconInfo.push(
  1031. { "Name": "知识建构", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1032. { "Name": "数据看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1033. )
  1034. _studentDesktopIconInfo.push(
  1035. { "Name": "知识建构", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1036. )
  1037. }
  1038. if (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
  1039. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  1040. if (el.Name == '項目管理') {
  1041. el.Name = 'PBL項目'
  1042. }
  1043. return el
  1044. })
  1045. }
  1046. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  1047. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  1048. return el.Name != '魔盒識字' && el.Name != '24點'
  1049. })
  1050. }
  1051. 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) {
  1052. _studentDesktopIconInfo.push({ "Name": "我的評價", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } }, )
  1053. }
  1054. //循環創建桌面圖標
  1055. if (type == 1) {
  1056. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  1057. for (i = 0; i < _studentDesktopIconInfo.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. }, [_studentDesktopIconInfo[i]]),
  1064. "onclick": U.UF.C.closure(function(obj) {
  1065. //防止拖動圖標即打開了桌面應用
  1066. U.MD.D.click(this, obj);
  1067. }, [_studentDesktopIconInfo[i]])
  1068. }, _frag); //
  1069. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1070. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1071. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1072. }
  1073. } else if (_type == 2 && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1074. for (i = 0; i < _hkZJLSStudentDeskIconInfo.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. }, [_hkZJLSStudentDeskIconInfo[i]]),
  1081. "onclick": U.UF.C.closure(function(obj) {
  1082. //防止拖動圖標即打開了桌面應用
  1083. U.MD.D.click(this, obj);
  1084. }, [_hkZJLSStudentDeskIconInfo[i]])
  1085. }, _frag); //
  1086. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1087. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  1088. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  1089. } //
  1090. } else if (_type == 2 && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5")) {
  1091. for (i = 0; i < _chjyjStudentDeskIconInfo.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. }, [_chjyjStudentDeskIconInfo[i]]),
  1098. "onclick": U.UF.C.closure(function(obj) {
  1099. //防止拖動圖標即打開了桌面應用
  1100. U.MD.D.click(this, obj);
  1101. }, [_chjyjStudentDeskIconInfo[i]])
  1102. }, _frag); //
  1103. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1104. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjStudentDeskIconInfo[i].style }, _iconcontent);
  1105. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjStudentDeskIconInfo[i].Name }, _iconcontent);
  1106. }
  1107. } else if (_type == 2 && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5")) {
  1108. for (i = 0; i < _szjkyStudentDeskIconInfo.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. }, [_szjkyStudentDeskIconInfo[i]]),
  1115. "onclick": U.UF.C.closure(function(obj) {
  1116. //防止拖動圖標即打開了桌面應用
  1117. U.MD.D.click(this, obj);
  1118. }, [_szjkyStudentDeskIconInfo[i]])
  1119. }, _frag); //
  1120. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1121. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyStudentDeskIconInfo[i].style }, _iconcontent);
  1122. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyStudentDeskIconInfo[i].Name }, _iconcontent);
  1123. }
  1124. } else if (_type == 2 && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5")) {
  1125. for (i = 0; i < _dseiStudentDeskIconInfo.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. }, [_dseiStudentDeskIconInfo[i]]),
  1132. "onclick": U.UF.C.closure(function(obj) {
  1133. //防止拖動圖標即打開了桌面應用
  1134. U.MD.D.click(this, obj);
  1135. }, [_dseiStudentDeskIconInfo[i]])
  1136. }, _frag); //
  1137. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1138. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiStudentDeskIconInfo[i].style }, _iconcontent);
  1139. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiStudentDeskIconInfo[i].Name }, _iconcontent);
  1140. }
  1141. } else if (_type == 2 && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1142. for (i = 0; i < _siesStudentDeskIconInfo.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. }, [_siesStudentDeskIconInfo[i]]),
  1149. "onclick": U.UF.C.closure(function(obj) {
  1150. //防止拖動圖標即打開了桌面應用
  1151. U.MD.D.click(this, obj);
  1152. }, [_siesStudentDeskIconInfo[i]])
  1153. }, _frag); //
  1154. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1155. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesStudentDeskIconInfo[i].style }, _iconcontent);
  1156. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesStudentDeskIconInfo[i].Name }, _iconcontent);
  1157. }
  1158. } else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1159. for (i = 0; i < _hkStudentDeskIconInfo.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. }, [_hkStudentDeskIconInfo[i]]),
  1166. "onclick": U.UF.C.closure(function(obj) {
  1167. //防止拖動圖標即打開了桌面應用
  1168. U.MD.D.click(this, obj);
  1169. }, [_hkStudentDeskIconInfo[i]])
  1170. }, _frag); //
  1171. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1172. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  1173. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  1174. }
  1175. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  1176. for (i = 0; i < _studentDesktopIconInfo.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. }, [_studentDesktopIconInfo[i]]),
  1183. "onclick": U.UF.C.closure(function(obj) {
  1184. //防止拖動圖標即打開了桌面應用
  1185. U.MD.D.click(this, obj);
  1186. }, [_studentDesktopIconInfo[i]])
  1187. }, _frag); //
  1188. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1189. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1190. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1191. }
  1192. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  1193. for (i = 0; i < _tcStudentDeskIconInfo.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. }, [_tcStudentDeskIconInfo[i]]),
  1200. "onclick": U.UF.C.closure(function(obj) {
  1201. //防止拖動圖標即打開了桌面應用
  1202. U.MD.D.click(this, obj);
  1203. }, [_tcStudentDeskIconInfo[i]])
  1204. }, _frag); //
  1205. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1206. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  1207. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  1208. }
  1209. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  1210. for (i = 0; i < _szscStudentDeskIconInfo.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. }, [_szscStudentDeskIconInfo[i]]),
  1217. "onclick": U.UF.C.closure(function(obj) {
  1218. //防止拖動圖標即打開了桌面應用
  1219. U.MD.D.click(this, obj);
  1220. }, [_szscStudentDeskIconInfo[i]])
  1221. }, _frag); //
  1222. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1223. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  1224. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  1225. }
  1226. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  1227. for (i = 0; i < _studentDesktopIconInfo3.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. }, [_studentDesktopIconInfo3[i]]),
  1234. "onclick": U.UF.C.closure(function(obj) {
  1235. //防止拖動圖標即打開了桌面應用
  1236. U.MD.D.click(this, obj);
  1237. }, [_studentDesktopIconInfo3[i]])
  1238. }, _frag); //
  1239. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1240. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  1241. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  1242. }
  1243. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  1244. for (i = 0; i < _studentDesktopIconInfo2.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. }, [_studentDesktopIconInfo2[i]]),
  1251. "onclick": U.UF.C.closure(function(obj) {
  1252. //防止拖動圖標即打開了桌面應用
  1253. U.MD.D.click(this, obj);
  1254. }, [_studentDesktopIconInfo2[i]])
  1255. }, _frag); //
  1256. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1257. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  1258. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  1259. }
  1260. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  1261. for (i = 0; i < _wanketeacherDesktopIconInfo.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. }, [_wanketeacherDesktopIconInfo[i]]),
  1268. "onclick": U.UF.C.closure(function(obj) {
  1269. //防止拖動圖標即打開了桌面應用
  1270. U.MD.D.click(this, obj);
  1271. }, [_wanketeacherDesktopIconInfo[i]])
  1272. }, _frag); //
  1273. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1274. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  1275. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  1276. }
  1277. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1278. for (i = 0; i < _wankeAdminDesktopIconInfo.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. }, [_wankeAdminDesktopIconInfo[i]]),
  1285. "onclick": U.UF.C.closure(function(obj) {
  1286. //防止拖動圖標即打開了桌面應用
  1287. U.MD.D.click(this, obj);
  1288. }, [_wankeAdminDesktopIconInfo[i]])
  1289. }, _frag); //
  1290. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1291. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1292. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1293. }
  1294. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1295. for (i = 0; i < _teacherDesktopIconInfo2.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. }, [_teacherDesktopIconInfo2[i]]),
  1302. "onclick": U.UF.C.closure(function(obj) {
  1303. //防止拖動圖標即打開了桌面應用
  1304. U.MD.D.click(this, obj);
  1305. }, [_teacherDesktopIconInfo2[i]])
  1306. }, _frag); //
  1307. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1308. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1309. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1310. }
  1311. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1312. for (i = 0; i < _lotechTeacherDeskIconInfo.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. }, [_lotechTeacherDeskIconInfo[i]]),
  1319. "onclick": U.UF.C.closure(function(obj) {
  1320. //防止拖動圖標即打開了桌面應用
  1321. U.MD.D.click(this, obj);
  1322. }, [_lotechTeacherDeskIconInfo[i]])
  1323. }, _frag); //
  1324. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1325. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1326. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1327. }//
  1328. } else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1329. for (i = 0; i < _siesTeacherDeskIconInfo.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. }, [_siesTeacherDeskIconInfo[i]]),
  1336. "onclick": U.UF.C.closure(function(obj) {
  1337. //防止拖動圖標即打開了桌面應用
  1338. U.MD.D.click(this, obj);
  1339. }, [_siesTeacherDeskIconInfo[i]])
  1340. }, _frag); //
  1341. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1342. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1343. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1344. }
  1345. } else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1346. for (i = 0; i < _longhuaTeacherDeskIconInfo.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. }, [_longhuaTeacherDeskIconInfo[i]]),
  1353. "onclick": U.UF.C.closure(function(obj) {
  1354. //防止拖動圖標即打開了桌面應用
  1355. U.MD.D.click(this, obj);
  1356. }, [_longhuaTeacherDeskIconInfo[i]])
  1357. }, _frag); //
  1358. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1359. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1360. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1361. }
  1362. } else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1363. for (i = 0; i < _yunhaiTeacherDeskIconInfo.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. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1370. "onclick": U.UF.C.closure(function(obj) {
  1371. //防止拖動圖標即打開了桌面應用
  1372. U.MD.D.click(this, obj);
  1373. }, [_yunhaiTeacherDeskIconInfo[i]])
  1374. }, _frag); //
  1375. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1376. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1377. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1378. } //_hkStudentDeskIconInfo
  1379. } else if ((_type == 1 || _type == 4) && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1380. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.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. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1387. "onclick": U.UF.C.closure(function(obj) {
  1388. //防止拖動圖標即打開了桌面應用
  1389. U.MD.D.click(this, obj);
  1390. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1391. }, _frag); //
  1392. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1393. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1394. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1395. }
  1396. } else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1397. for (i = 0; i < _hkTeacherDeskIconInfo.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. }, [_hkTeacherDeskIconInfo[i]]),
  1404. "onclick": U.UF.C.closure(function(obj) {
  1405. //防止拖動圖標即打開了桌面應用
  1406. U.MD.D.click(this, obj);
  1407. }, [_hkTeacherDeskIconInfo[i]])
  1408. }, _frag); //
  1409. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1410. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1411. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1412. }
  1413. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1414. for (i = 0; i < _gdjgAdminDeskIconInfo.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. }, [_gdjgAdminDeskIconInfo[i]]),
  1421. "onclick": U.UF.C.closure(function(obj) {
  1422. //防止拖動圖標即打開了桌面應用
  1423. U.MD.D.click(this, obj);
  1424. }, [_gdjgAdminDeskIconInfo[i]])
  1425. }, _frag); //
  1426. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1427. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1428. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1429. }
  1430. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1431. for (i = 0; i < _gdjgTeacherDeskIconInfo.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. }, [_gdjgTeacherDeskIconInfo[i]]),
  1438. "onclick": U.UF.C.closure(function(obj) {
  1439. //防止拖動圖標即打開了桌面應用
  1440. U.MD.D.click(this, obj);
  1441. }, [_gdjgTeacherDeskIconInfo[i]])
  1442. }, _frag); //
  1443. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1444. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1445. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1446. }
  1447. } else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1448. for (i = 0; i < _szherTeacherDeskIconInfo.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. }, [_szherTeacherDeskIconInfo[i]]),
  1455. "onclick": U.UF.C.closure(function(obj) {
  1456. //防止拖動圖標即打開了桌面應用
  1457. U.MD.D.click(this, obj);
  1458. }, [_szherTeacherDeskIconInfo[i]])
  1459. }, _frag); //
  1460. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1461. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1462. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1463. }
  1464. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1465. for (i = 0; i < _heyuannAdminDeskIconInfo.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. }, [_heyuannAdminDeskIconInfo[i]]),
  1472. "onclick": U.UF.C.closure(function(obj) {
  1473. //防止拖動圖標即打開了桌面應用
  1474. U.MD.D.click(this, obj);
  1475. }, [_heyuannAdminDeskIconInfo[i]])
  1476. }, _frag); //
  1477. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1478. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1479. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1480. }
  1481. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1482. for (i = 0; i < _heyuanTeacherDeskIconInfo.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. }, [_heyuanTeacherDeskIconInfo[i]]),
  1489. "onclick": U.UF.C.closure(function(obj) {
  1490. //防止拖動圖標即打開了桌面應用
  1491. U.MD.D.click(this, obj);
  1492. }, [_heyuanTeacherDeskIconInfo[i]])
  1493. }, _frag); //
  1494. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1495. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1496. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1497. } //
  1498. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 1) {
  1499. for (i = 0; i < _dseiAdminDeskIconInfo.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. }, [_dseiAdminDeskIconInfo[i]]),
  1506. "onclick": U.UF.C.closure(function(obj) {
  1507. //防止拖動圖標即打開了桌面應用
  1508. U.MD.D.click(this, obj);
  1509. }, [_dseiAdminDeskIconInfo[i]])
  1510. }, _frag); //
  1511. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1512. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiAdminDeskIconInfo[i].style }, _iconcontent);
  1513. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiAdminDeskIconInfo[i].Name }, _iconcontent);
  1514. }
  1515. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 0) {
  1516. for (i = 0; i < _dseiTeacherDeskIconInfo.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. }, [_dseiTeacherDeskIconInfo[i]]),
  1523. "onclick": U.UF.C.closure(function(obj) {
  1524. //防止拖動圖標即打開了桌面應用
  1525. U.MD.D.click(this, obj);
  1526. }, [_dseiTeacherDeskIconInfo[i]])
  1527. }, _frag); //
  1528. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1529. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiTeacherDeskIconInfo[i].style }, _iconcontent);
  1530. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1531. } //
  1532. }else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 1) {
  1533. for (i = 0; i < _chjyjAdminDeskIconInfo.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. }, [_chjyjAdminDeskIconInfo[i]]),
  1540. "onclick": U.UF.C.closure(function(obj) {
  1541. //防止拖動圖標即打開了桌面應用
  1542. U.MD.D.click(this, obj);
  1543. }, [_chjyjAdminDeskIconInfo[i]])
  1544. }, _frag); //
  1545. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1546. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjAdminDeskIconInfo[i].style }, _iconcontent);
  1547. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjAdminDeskIconInfo[i].Name }, _iconcontent);
  1548. }//
  1549. } else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 0) {
  1550. for (i = 0; i < _chjyjTeacherDeskIconInfo.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. }, [_chjyjTeacherDeskIconInfo[i]]),
  1557. "onclick": U.UF.C.closure(function(obj) {
  1558. //防止拖動圖標即打開了桌面應用
  1559. U.MD.D.click(this, obj);
  1560. }, [_chjyjTeacherDeskIconInfo[i]])
  1561. }, _frag); //
  1562. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1563. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjTeacherDeskIconInfo[i].style }, _iconcontent);
  1564. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjTeacherDeskIconInfo[i].Name }, _iconcontent);
  1565. }
  1566. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 1) {
  1567. for (i = 0; i < _szjkyAdminDeskIconInfo.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. }, [_szjkyAdminDeskIconInfo[i]]),
  1574. "onclick": U.UF.C.closure(function(obj) {
  1575. //防止拖動圖標即打開了桌面應用
  1576. U.MD.D.click(this, obj);
  1577. }, [_szjkyAdminDeskIconInfo[i]])
  1578. }, _frag); //
  1579. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1580. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyAdminDeskIconInfo[i].style }, _iconcontent);
  1581. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyAdminDeskIconInfo[i].Name }, _iconcontent);
  1582. }//
  1583. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 0) {
  1584. for (i = 0; i < _szjkyTeacherDeskIconInfo.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. }, [_szjkyTeacherDeskIconInfo[i]]),
  1591. "onclick": U.UF.C.closure(function(obj) {
  1592. //防止拖動圖標即打開了桌面應用
  1593. U.MD.D.click(this, obj);
  1594. }, [_szjkyTeacherDeskIconInfo[i]])
  1595. }, _frag); //
  1596. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1597. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyTeacherDeskIconInfo[i].style }, _iconcontent);
  1598. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyTeacherDeskIconInfo[i].Name }, _iconcontent);
  1599. }
  1600. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1601. for (i = 0; i < _futianAdminDeskIconInfo.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. }, [_futianAdminDeskIconInfo[i]]),
  1608. "onclick": U.UF.C.closure(function(obj) {
  1609. //防止拖動圖標即打開了桌面應用
  1610. U.MD.D.click(this, obj);
  1611. }, [_futianAdminDeskIconInfo[i]])
  1612. }, _frag); //
  1613. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1614. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1615. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1616. }
  1617. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1618. for (i = 0; i < _futianTeacherDeskIconInfo.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. }, [_futianTeacherDeskIconInfo[i]]),
  1625. "onclick": U.UF.C.closure(function(obj) {
  1626. //防止拖動圖標即打開了桌面應用
  1627. U.MD.D.click(this, obj);
  1628. }, [_futianTeacherDeskIconInfo[i]])
  1629. }, _frag); //
  1630. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1631. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1632. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1633. }
  1634. } else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1635. for (i = 0; i < _MingdeTeacherDeskIcon.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. }, [_MingdeTeacherDeskIcon[i]]),
  1642. "onclick": U.UF.C.closure(function(obj) {
  1643. //防止拖動圖標即打開了桌面應用
  1644. U.MD.D.click(this, obj);
  1645. }, [_MingdeTeacherDeskIcon[i]])
  1646. }, _frag); //
  1647. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1648. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1649. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1650. }
  1651. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1652. for (i = 0; i < _lhsAdminDesktopIconInfo.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. }, [_lhsAdminDesktopIconInfo[i]]),
  1659. "onclick": U.UF.C.closure(function(obj) {
  1660. //防止拖動圖標即打開了桌面應用
  1661. U.MD.D.click(this, obj);
  1662. }, [_lhsAdminDesktopIconInfo[i]])
  1663. }, _frag); //
  1664. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1665. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1666. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1667. }
  1668. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1669. for (i = 0; i < _lhsteacherDesktopIconInfo.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. }, [_lhsteacherDesktopIconInfo[i]]),
  1676. "onclick": U.UF.C.closure(function(obj) {
  1677. //防止拖動圖標即打開了桌面應用
  1678. U.MD.D.click(this, obj);
  1679. }, [_lhsteacherDesktopIconInfo[i]])
  1680. }, _frag); //
  1681. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1682. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1683. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1684. }
  1685. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1686. for (i = 0; i < _zhoujiateacherDesktopIconInfo.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. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1693. "onclick": U.UF.C.closure(function(obj) {
  1694. //防止拖動圖標即打開了桌面應用
  1695. U.MD.D.click(this, obj);
  1696. }, [_zhoujiateacherDesktopIconInfo[i]])
  1697. }, _frag); //
  1698. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1699. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1700. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1701. }
  1702. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1703. for (i = 0; i < _hanDeskIcon.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. }, [_hanDeskIcon[i]]),
  1710. "onclick": U.UF.C.closure(function(obj) {
  1711. //防止拖動圖標即打開了桌面應用
  1712. U.MD.D.click(this, obj);
  1713. }, [_hanDeskIcon[i]])
  1714. }, _frag); //
  1715. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1716. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1717. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1718. }
  1719. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1720. for (i = 0; i < _orgStemDeskIcon.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. }, [_orgStemDeskIcon[i]]),
  1727. "onclick": U.UF.C.closure(function(obj) {
  1728. //防止拖動圖標即打開了桌面應用
  1729. U.MD.D.click(this, obj);
  1730. }, [_orgStemDeskIcon[i]])
  1731. }, _frag); //
  1732. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1733. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1734. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1735. }
  1736. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1737. for (i = 0; i < _szulsDeskIcon.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. }, [_szulsDeskIcon[i]]),
  1744. "onclick": U.UF.C.closure(function(obj) {
  1745. //防止拖動圖標即打開了桌面應用
  1746. U.MD.D.click(this, obj);
  1747. }, [_szulsDeskIcon[i]])
  1748. }, _frag); //
  1749. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1750. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1751. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1752. }
  1753. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1754. for (i = 0; i < _orgDesktopIconInfo.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. }, [_orgDesktopIconInfo[i]]),
  1761. "onclick": U.UF.C.closure(function(obj) {
  1762. //防止拖動圖標即打開了桌面應用
  1763. U.MD.D.click(this, obj);
  1764. }, [_orgDesktopIconInfo[i]])
  1765. }, _frag); //
  1766. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1767. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1768. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1769. }
  1770. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1771. for (i = 0; i < _schoolDesktopIconInfo.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. }, [_schoolDesktopIconInfo[i]]),
  1778. "onclick": U.UF.C.closure(function(obj) {
  1779. //防止拖動圖標即打開了桌面應用
  1780. U.MD.D.click(this, obj);
  1781. }, [_schoolDesktopIconInfo[i]])
  1782. }, _frag); //
  1783. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1784. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1785. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1786. }
  1787. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1788. for (i = 0; i < _GMteacherDesktopIconInfo.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. }, [_GMteacherDesktopIconInfo[i]]),
  1795. "onclick": U.UF.C.closure(function(obj) {
  1796. //防止拖動圖標即打開了桌面應用
  1797. U.MD.D.click(this, obj);
  1798. }, [_GMteacherDesktopIconInfo[i]])
  1799. }, _frag); //
  1800. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1801. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1802. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1803. }
  1804. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1805. for (i = 0; i < _SONGteacherDesktopIconInfo.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. }, [_SONGteacherDesktopIconInfo[i]]),
  1812. "onclick": U.UF.C.closure(function(obj) {
  1813. //防止拖動圖標即打開了桌面應用
  1814. U.MD.D.click(this, obj);
  1815. }, [_SONGteacherDesktopIconInfo[i]])
  1816. }, _frag); //
  1817. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1818. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1819. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1820. }
  1821. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1822. for (i = 0; i < _GMstudentDesktopIconInfo.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. }, [_GMstudentDesktopIconInfo[i]]),
  1829. "onclick": U.UF.C.closure(function(obj) {
  1830. //防止拖動圖標即打開了桌面應用
  1831. U.MD.D.click(this, obj);
  1832. }, [_GMstudentDesktopIconInfo[i]])
  1833. }, _frag); //
  1834. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1835. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1836. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1837. }
  1838. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1839. for (i = 0; i < _tcTeacherDeskIconInfo.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. }, [_tcTeacherDeskIconInfo[i]]),
  1846. "onclick": U.UF.C.closure(function(obj) {
  1847. //防止拖動圖標即打開了桌面應用
  1848. U.MD.D.click(this, obj);
  1849. }, [_tcTeacherDeskIconInfo[i]])
  1850. }, _frag); //
  1851. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1852. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1853. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1854. }
  1855. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1856. for (i = 0; i < _tcOrganizerDeskIconInfo.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. }, [_tcOrganizerDeskIconInfo[i]]),
  1863. "onclick": U.UF.C.closure(function(obj) {
  1864. //防止拖動圖標即打開了桌面應用
  1865. U.MD.D.click(this, obj);
  1866. }, [_tcOrganizerDeskIconInfo[i]])
  1867. }, _frag); //
  1868. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1869. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1870. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1871. }
  1872. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1873. for (i = 0; i < _szscTeacherDeskIconInfo.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. }, [_szscTeacherDeskIconInfo[i]]),
  1880. "onclick": U.UF.C.closure(function(obj) {
  1881. //防止拖動圖標即打開了桌面應用
  1882. U.MD.D.click(this, obj);
  1883. }, [_szscTeacherDeskIconInfo[i]])
  1884. }, _frag); //
  1885. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1886. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1887. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1888. }
  1889. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1890. for (i = 0; i < _szscOrganizerDeskIconInfo.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. }, [_szscOrganizerDeskIconInfo[i]]),
  1897. "onclick": U.UF.C.closure(function(obj) {
  1898. //防止拖動圖標即打開了桌面應用
  1899. U.MD.D.click(this, obj);
  1900. }, [_szscOrganizerDeskIconInfo[i]])
  1901. }, _frag); //
  1902. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1903. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1904. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1905. }
  1906. } else {
  1907. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1908. _content = $$("div", {
  1909. className: "U_MD_D_KO",
  1910. "onmousedown": U.UF.C.closure(function(obj) {
  1911. //防止拖動圖標即打開了桌面應用
  1912. U.MD.D.click(this, obj);
  1913. }, [_teacherDesktopIconInfo[i]]),
  1914. "onclick": U.UF.C.closure(function(obj) {
  1915. //防止拖動圖標即打開了桌面應用
  1916. U.MD.D.click(this, obj);
  1917. }, [_teacherDesktopIconInfo[i]])
  1918. }, _frag); //
  1919. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1920. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1921. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1922. }
  1923. }
  1924. } else {
  1925. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1926. _content = $$("div", {
  1927. className: "U_MD_D_KO",
  1928. style: { 'width': '124px', 'height': '145px' },
  1929. "onmousedown": U.UF.C.closure(function(obj) {
  1930. //防止拖動圖標即打開了桌面應用
  1931. U.MD.D.click(this, obj);
  1932. }, [_easyDesktopIconInfo[i]]),
  1933. "onclick": U.UF.C.closure(function(obj) {
  1934. //防止拖動圖標即打開了桌面應用
  1935. U.MD.D.click(this, obj);
  1936. }, [_easyDesktopIconInfo[i]])
  1937. }, _frag); //
  1938. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1939. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1940. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1941. }
  1942. }
  1943. if (type == 1) {
  1944. //加載好後給圖標定位
  1945. U.MD.D.iconPostion($(_frag).Child());
  1946. } else {
  1947. //加載好後給圖標定位
  1948. U.MD.D.iconPostion2($(_frag).Child());
  1949. }
  1950. //把圖標加載到頁面
  1951. el.appendChild(_frag);
  1952. }
  1953. /**
  1954. * 顯示任務欄
  1955. *
  1956. * @param {element} 桌面元素
  1957. */
  1958. U.MD.D.I.displayTaskbar = function(el) {
  1959. //判斷是否需要形式任務欄,由於用了mouseover事件會冒泡響應多次,這裏做了過濾
  1960. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1961. //任務欄位置變化
  1962. U.selectEl(el).css({ "bottom": "0px" });
  1963. //桌面位置變話
  1964. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1965. }
  1966. }
  1967. //#region 桌面圖標拖動邏輯
  1968. /**
  1969. * 桌面排列圖標
  1970. *
  1971. * @param {element} 桌面元素
  1972. * @param {object} 上下相距的距離
  1973. * @param {object} 左右相距的距離
  1974. * @return {object} 命名空間
  1975. */
  1976. U.MD.D.iconPostion = function(childs, top, left) {
  1977. var i; //用於循環處理
  1978. top = top || 15; //如果沒有設置元素的間距處理默認上間距為15
  1979. left = left || 20; //如果沒有設置元素的間距處理默認左間距為15
  1980. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  1981. for (i = 0; i < childs.length; i++) {
  1982. //如果豎排top超過了範圍處理
  1983. if (top + 95 > US.height - 10) {
  1984. //left超過了頁面範圍處理,則向上重疊打印處理
  1985. if ((left + 180) > US.width) {
  1986. top -= 110;
  1987. left -= 90;
  1988. }
  1989. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  1990. else {
  1991. left += 90;
  1992. top = 15;
  1993. };
  1994. }
  1995. //給圖標的位置賦值
  1996. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1997. if (i < childs.length - 1) {
  1998. //頁面圖標每次向下加95
  1999. top += 95;
  2000. }
  2001. }
  2002. //返回最後調用的圖標的位置
  2003. return [top, left];
  2004. }
  2005. /**
  2006. * 桌面排列圖標
  2007. *
  2008. * @param {element} 桌面元素
  2009. * @param {object} 上下相距的距離
  2010. * @param {object} 左右相距的距離
  2011. * @return {object} 命名空間
  2012. */
  2013. U.MD.D.iconPostion2 = function(childs, top, left) {
  2014. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用於循環處理
  2015. top = top || 70; //如果沒有設置元素的間距處理默認上間距為15
  2016. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果沒有設置元素的間距處理默認左間距為15
  2017. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  2018. for (i = 0; i < childs.length; i++) {
  2019. //如果豎排top超過了範圍處理
  2020. if (left + 150 > US.width - 10) {
  2021. //left超過了頁面範圍處理,則向上重疊打印處理
  2022. if ((top + 180) > US.Height) {
  2023. top -= 150;
  2024. left -= 150;
  2025. }
  2026. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  2027. else {
  2028. top += 150;
  2029. left = ol;
  2030. };
  2031. }
  2032. //給圖標的位置賦值
  2033. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  2034. if (i < childs.length - 1) {
  2035. //頁面圖標每次向下加95
  2036. left += 150;
  2037. }
  2038. }
  2039. //返回最後調用的圖標的位置
  2040. return [top, left];
  2041. }
  2042. /**
  2043. * 桌面點擊事件邏輯
  2044. *
  2045. * @param {element} 桌面元素
  2046. * @param {object} 上下相距的距離
  2047. * @param {object} 左右相距的距離
  2048. * @return {object} 命名空間
  2049. */
  2050. U.MD.D.click = function(el, obj) {
  2051. var _buttonnumber = event.button; //點擊的按鈕的事件值
  2052. var _userinfo = US.userInfo;
  2053. U.UF.EV.stopBubble(); //阻止向上冒泡
  2054. //onmousedown 包含了左鍵和右鍵 這裏大於2是為了兼容 所有瀏覽器的右鍵處理
  2055. if (_buttonnumber < 2) {
  2056. //如果是click事件的處理
  2057. if (event.type == "click") {
  2058. //如果元素在mousemove事件中沒有移動則出發click事件
  2059. if (!U.MD.D.I.IsDrag) {
  2060. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2061. U.alert("請先登錄您的賬號!");
  2062. setTimeout(() => {
  2063. U.MD.U.L.login();
  2064. }, 2000);
  2065. } else {
  2066. //打開應用處理
  2067. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  2068. }
  2069. }
  2070. }
  2071. //如果是mouse事件的處理
  2072. else {
  2073. if (US.Config.type == '1') {
  2074. //拖動處理,添加拖動和拖動結束事件
  2075. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  2076. }
  2077. }
  2078. U.MD.D.I.IsDrag = false;
  2079. }
  2080. }
  2081. /**
  2082. * 拖動的處理
  2083. *
  2084. */
  2085. U.MD.D.iconMove = function() {
  2086. //如果當前位置點擊初始化的位置出現了變化,則設置是否拖動的屬性 U.MD.D.I.IsDrag為true
  2087. U.MD.D.I.IsDrag = true;
  2088. }
  2089. /**
  2090. * 拖動結束後,這裏是定位處理,以網狀的形式定位
  2091. *
  2092. * @param {element} 拖動的元素
  2093. * @return {object} 命名空間
  2094. */
  2095. U.MD.D.iconUp = function(el) {
  2096. var _top = 15,
  2097. _left = 20,
  2098. _margin,
  2099. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的圖標
  2100. _positioninfo = U.UF.EL.getElementInfo(el); //獲取拖動結束的元素的位置
  2101. if (_positioninfo["OT"] > 15) {
  2102. //網狀的形式定位,如果差超過了55,那麼向下定位,否則向上定位
  2103. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  2104. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  2105. }
  2106. if (_positioninfo["OL"] > 20) {
  2107. //網狀的形式定位,如果差超過了90,那麼向右定位,否則向左定位
  2108. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  2109. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  2110. }
  2111. //while循環判斷麼一個重疊的元素
  2112. do {
  2113. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //給重疊的元素向下定位
  2114. _top = _positioninfo[0] + 95; //得到定位後的top
  2115. _left = _positioninfo[1]; //得到定位後的left
  2116. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  2117. }
  2118. /**
  2119. * 判斷拖動後圖標是否重疊
  2120. *
  2121. * @param {element} 拖動的元素
  2122. * @param {element} 桌面所有的元素
  2123. * @param {array} 拖動元素的位置
  2124. ----------[0] 上 top
  2125. ----------[1] 左 left
  2126. * @return {object} 命名空間
  2127. */
  2128. U.MD.D.isOverlap = function(el, childs, postionarray) {
  2129. //循環所有的圖標
  2130. for (var i = 0; i < childs.length; i++) {
  2131. //判斷有沒有和該圖標誒子重疊的元素
  2132. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  2133. return childs[i]; //如果有返回
  2134. }
  2135. }
  2136. }
  2137. //#endregion
  2138. //#endregion
  2139. //#region 桌面應用
  2140. /**
  2141. * 打開應用
  2142. *
  2143. * @param {string} 類型
  2144. -----------------Disk 網盤系統
  2145. -----------------PDisk 學習系統網盤
  2146. -----------------Poto 圖片
  2147. -----------------Video 視頻
  2148. -----------------Music 音樂
  2149. -----------------Word word
  2150. -----------------Excel excel
  2151. -----------------Txt 記事本
  2152. -----------------PB 學習系統
  2153. -----------------Blog 朋友圈系統
  2154. -----------------FTP ftp系統
  2155. -----------------Group 好友群
  2156. -----------------SY 首頁系統
  2157. -----------------Set 個人設置
  2158. -----------------XSet 系統設置
  2159. -----------------App 我們所有的app
  2160. -----------------BC c.1473.cn 平臺
  2161. -----------------CWeb d.1473.cn 變成平臺
  2162. -----------------其他的外聯系統 我們統一用iframe打開
  2163. * @param {array} 類型
  2164. 如果第一個參數為"disk",則第二個參數為object,裏面包含了用戶id和目錄id{userid:"",directoryid:""}
  2165. 如果第一個參數為"word"或者"excel","txt",則第二個參數為文件信息fileinfo。
  2166. 如果第一個參數為"blog"或者"PDisk"。建議刪除。
  2167. 如果第一個參數為其他,則無第二個參數
  2168. * @returns {array}
  2169. */
  2170. window.addEventListener('message', function(e) { // 監聽 message 事件
  2171. // alert(e.data.type);
  2172. if (e.data.screenType && e.data.screenType == "2") { //課程管理傳入
  2173. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  2174. //3是展示全部階段 2學生 1老師 4專家
  2175. } else if (e.data.screenType && e.data.screenType == "2s") { //課程管理傳入
  2176. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  2177. //3是展示全部階段 2學生 1老師 4專家
  2178. } else if (e.data.screenType && e.data.screenType == "2studio") { //課程管理傳入
  2179. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  2180. //3是展示全部階段 2學生 1老師 4專家
  2181. } else if (e.data.screenType && e.data.screenType == "3") { //課程管理傳入
  2182. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  2183. } else if (e.data.screenType && e.data.screenType == "3NT") { //課程管理傳入
  2184. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  2185. } else if (e.data.screenType && e.data.screenType == "3s") { //課程管理傳入
  2186. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  2187. } else if (e.data.screenType && e.data.screenType == "3studio") { //課程管理傳入
  2188. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  2189. } else if (e.data.screenType && e.data.screenType == "3s2") { //課程管理傳入
  2190. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  2191. } else if (e.data.screenType && e.data.screenType == "2gm") { //課程管理傳入
  2192. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  2193. //3是展示全部階段 2學生 1老師 4專家
  2194. } else if (e.data.screenType && e.data.screenType == "3gm") { //課程管理傳入
  2195. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  2196. } else if (e.data.close && e.data.close == "1") { //更新用戶信息
  2197. U.MD.D.I.selectUser();
  2198. } else if (e.data.allScreen && e.data.allScreen == "1") {
  2199. var _formel = document.getElementById("study");
  2200. U.UF.F.windowZooming(_formel);
  2201. } else if (e.data.allScreen && e.data.allScreen == "2") {
  2202. var _formel = document.getElementById("studyDetail");
  2203. U.UF.F.windowZooming(_formel);
  2204. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  2205. var _formel = document.getElementById("studyDetail");
  2206. U.UF.F.windowZooming(_formel);
  2207. } else if (e.data.allScreen && e.data.allScreen == "3") {
  2208. var _formel = document.getElementById("studentStudy");
  2209. U.UF.F.windowZooming(_formel);
  2210. } else if (e.data.allScreen && e.data.allScreen == "6") {
  2211. // var _formel = document.getElementById("study");
  2212. //如果最大化了,那麼就把他縮小
  2213. // if (_formel.ismaximize) {
  2214. // return;
  2215. // }
  2216. // U.UF.F.windowZooming(_formel);
  2217. // U.UF.F.topWindow(_formel);
  2218. } else if (e.data.allScreen && e.data.allScreen == "4") {
  2219. // var _formel = document.getElementById("studyDetail");
  2220. //如果最大化了,那麼就把他縮小
  2221. // if (_formel.ismaximize) {
  2222. // return;
  2223. // }
  2224. // U.UF.F.windowZooming(_formel);
  2225. // U.UF.F.topWindow(_formel);
  2226. } else if (e.data.allScreen && e.data.allScreen == "5") {
  2227. // var _formel = document.getElementById("studentStudy");
  2228. // if (_formel.ismaximize) {
  2229. // return;
  2230. // }
  2231. // U.UF.F.windowZooming(_formel);
  2232. // U.UF.F.topWindow(_formel);
  2233. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  2234. var _formel = document.getElementById("study");
  2235. // if (_formel.ismaximize) {
  2236. // return;
  2237. // }
  2238. // U.UF.F.windowZooming(_formel);
  2239. U.UF.F.topWindow(_formel);
  2240. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  2241. var _formel = document.getElementById("studentIndex");
  2242. U.UF.F.windowZooming(_formel);
  2243. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  2244. var _formel = document.getElementById("studyDetailS");
  2245. U.UF.F.windowZooming(_formel);
  2246. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  2247. var _formel = document.getElementById("studioIndex");
  2248. U.UF.F.windowZooming(_formel);
  2249. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  2250. var _formel = document.getElementById("studyDetailStudio");
  2251. U.UF.F.windowZooming(_formel);
  2252. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  2253. var _formel = document.getElementById("studyDetailStudio");
  2254. U.UF.F.windowZooming(_formel);
  2255. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  2256. var _formel = document.getElementById("studyDetailNT");
  2257. U.UF.F.windowZooming(_formel);
  2258. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  2259. var _formel = document.getElementById("studyDetailS");
  2260. U.UF.F.windowZooming(_formel);
  2261. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  2262. var _formel = document.getElementById("studyDetailS");
  2263. U.UF.F.topWindow(_formel);
  2264. } else if (e.data.tools && e.data.tools == "1") {
  2265. // U.MD.D.I.openApplication("whiteboard")
  2266. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2267. } else if (e.data.tools && e.data.tools == "2") {
  2268. U.MD.D.I.openApplication("note")
  2269. } else if (e.data.tools && e.data.tools == "3") {
  2270. // U.MD.D.I.openApplication("mind")
  2271. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2272. } else if (e.data.tools && e.data.tools == "4") {
  2273. U.MD.D.I.openApplication("investigation")
  2274. } else if (e.data.tools && e.data.tools == "6") {
  2275. // U.MD.D.I.openApplication("doc")
  2276. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2277. } else if (e.data.tools && e.data.tools == "7") {
  2278. // U.MD.D.I.openApplication("mindNetwork")
  2279. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2280. } else if (e.data.tools && e.data.tools == "8") {
  2281. U.MD.D.I.openApplication("library")
  2282. } else if (e.data.tools && e.data.tools == "17") {
  2283. U.MD.D.I.openApplication("stuLibrary")
  2284. } else if (e.data.tools && e.data.tools == "18") {
  2285. U.MD.D.I.openApplication("train")
  2286. } else if (e.data.tools && e.data.tools == "21") {
  2287. U.MD.D.I.openApplication("program")
  2288. } else if (e.data.tools && e.data.tools == "22") {
  2289. U.MD.D.I.openApplication("AIprogram2")
  2290. } else if (e.data.tools && e.data.tools == "23") {
  2291. U.MD.D.I.openApplication("Pythonprogram")
  2292. } else if (e.data.tools && e.data.tools == "24") {
  2293. U.MD.D.I.openApplication("AIprogram")
  2294. } else if (e.data.tools && e.data.tools == "25") {
  2295. U.MD.D.I.openApplication("sys")
  2296. } else if (e.data.tools && e.data.tools == "26") {
  2297. // U.MD.D.I.openApplication("courseDesign")
  2298. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2299. } else if (e.data.tools && e.data.tools == "31") {
  2300. U.MD.D.I.openApplication("netWorkPanel")
  2301. } else if (e.data.tools && e.data.tools == "32") {
  2302. U.MD.D.I.openApplication("codeEdit")
  2303. } else if (e.data.tools && e.data.tools == "57") {
  2304. U.MD.D.I.openApplication("CocoPi")
  2305. } else if (e.data.tools && e.data.tools == "63") {
  2306. U.MD.D.I.openApplication("Wood")
  2307. } else if (e.data.tools && e.data.tools == "58") {
  2308. U.MD.D.I.openApplication("car")
  2309. } else if (e.data.tools && e.data.tools == "59") {
  2310. U.MD.D.I.openApplication("lineSearch")
  2311. } else if (e.data.tools && e.data.tools == "60") {
  2312. U.MD.D.I.openApplication("deepLearning")
  2313. } else if (e.data.tools && e.data.tools == "61") {
  2314. U.MD.D.I.openApplication("allHistory")
  2315. } else if (e.data.tools && e.data.tools == "28") {
  2316. U.MD.D.I.openApplication("translation")
  2317. } else if (e.data.tools && e.data.tools == "37") {
  2318. U.MD.D.I.openApplication("mohe")
  2319. } else if (e.data.tools && e.data.tools == "38") {
  2320. U.MD.D.I.openApplication("24game")
  2321. } else if (e.data.tools && e.data.tools == "39") {
  2322. U.MD.D.I.openApplication("GeoGebra")
  2323. } else if (e.data.tools && e.data.tools == "43") {
  2324. U.MD.D.I.openApplication("studentEvaluate")
  2325. } else if (e.data.tools && e.data.tools == "44") {
  2326. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  2327. } else if (e.data.tools && e.data.tools == "46") {
  2328. U.MD.D.I.openApplication("project")
  2329. } else if (e.data.tools && e.data.tools == "1s") {
  2330. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2331. } else if (e.data.tools && e.data.tools == "3s") {
  2332. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2333. } else if (e.data.tools && e.data.tools == "6s") {
  2334. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2335. } else if (e.data.tools && e.data.tools == "1studio") {
  2336. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2337. } else if (e.data.tools && e.data.tools == "3studio") {
  2338. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2339. } else if (e.data.tools && e.data.tools == "6studio") {
  2340. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2341. } else if (e.data.tools && e.data.tools == "3y") {
  2342. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2343. } else if (e.data.tools && e.data.tools == "1y") {
  2344. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2345. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  2346. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  2347. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  2348. U.MD.D.I.openApplication("AIAnalyse")
  2349. } else if (e.data.tools && e.data.tools == "1teacher") {
  2350. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2351. } else if (e.data.tools && e.data.tools == "3teacher") {
  2352. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2353. } else if (e.data.tools && e.data.tools == "7teacher") {
  2354. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2355. } else if (e.data.tools && e.data.tools == "1teacherE") {
  2356. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2357. } else if (e.data.tools && e.data.tools == "3teacherE") {
  2358. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2359. } else if (e.data.tools && e.data.tools == "1E") {
  2360. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2361. } else if (e.data.tools && e.data.tools == "3E") {
  2362. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2363. } else if (e.data.tools && e.data.tools == "57y") {
  2364. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2365. } else if (e.data.tools && e.data.tools == "57u") {
  2366. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2367. } else if (e.data.tools && e.data.tools == "57teacher") {
  2368. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2369. } else if (e.data.tools && e.data.tools == "64") {
  2370. U.MD.D.I.openApplication("AIChat")
  2371. } else if (e.data.tools && e.data.tools == "66") {
  2372. U.MD.D.I.openApplication("formulaEdi")
  2373. } else if (e.data.tools && e.data.tools == "67") {
  2374. U.MD.D.I.openApplication("molStr")
  2375. } else if (e.data.tools && e.data.tools == "68") {
  2376. U.MD.D.I.openApplication("timeAxis")
  2377. } else if (e.data.tools && e.data.tools == "openCourse") {
  2378. let _data = {
  2379. typea:e.data.typea || '',
  2380. typeb:e.data.typeb || '',
  2381. typed:e.data.typed || '',
  2382. }
  2383. U.MD.D.I.openInApplication("index", _data)
  2384. } else if (e.data.tools && e.data.tools == "openDataClass") {
  2385. let _data = {
  2386. classid:e.data.classid || '',
  2387. }
  2388. U.MD.D.I.openInApplication("dataClass", _data)
  2389. }
  2390. });
  2391. U.MD.D.I.selectUser = function() {
  2392. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function(res) { //US.userInfo.userid
  2393. if (res.value[0].length > 0) {
  2394. US.userInfo = res.value[0][0];
  2395. $(".userName")[0].innerHTML = US.userInfo.username;
  2396. }
  2397. }, [], { "type": "GET", "withCredentials": true });
  2398. }
  2399. U.MD.D.I.openInApplication = function(str, data, screenType, tType) {
  2400. var _userinfo = US.userInfo, //登錄用戶信息
  2401. _userid = US.userInfo.userid, //登錄用戶id
  2402. _oid = _userinfo.organizeid,
  2403. _type = US.userInfo.type,
  2404. _org = US.userInfo.org,
  2405. _role = US.userInfo.role,
  2406. _classId = US.userInfo.classid;
  2407. if (_type == 4) {
  2408. tType = 4
  2409. }
  2410. switch (str) {
  2411. case "studyDetailNT": //無終端模式
  2412. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2413. setTimeout(() => {
  2414. U.MD.U.L.login();
  2415. }, 2000);
  2416. } else {
  2417. _formdiv = new U.UF.UI.form(
  2418. "課程詳情",
  2419. $$("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 }), {
  2420. "id": "studyDetailNT",
  2421. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2422. "onresize": function() {}
  2423. }, {
  2424. closecallback: function() {}
  2425. }, { "style": { "height": "36px" } }).form; //創建窗體
  2426. _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); } }
  2427. break;
  2428. }
  2429. case "studyDetail":
  2430. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2431. setTimeout(() => {
  2432. U.MD.U.L.login();
  2433. }, 2000);
  2434. } else {
  2435. _formdiv = new U.UF.UI.form(
  2436. "課程詳情",
  2437. $$("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 }), {
  2438. "id": "studyDetail",
  2439. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2440. "onresize": function() {}
  2441. }, {
  2442. closecallback: function() {}
  2443. }, { "style": { "height": "36px" } }).form; //創建窗體
  2444. _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); } }
  2445. break;
  2446. }
  2447. case "studyDetailS":
  2448. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2449. setTimeout(() => {
  2450. U.MD.U.L.login();
  2451. }, 2000);
  2452. } else {
  2453. _formdiv = new U.UF.UI.form(
  2454. "項目詳情",
  2455. $$("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 }), {
  2456. "id": "studyDetailS",
  2457. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2458. "onresize": function() {}
  2459. }, {
  2460. closecallback: function() {}
  2461. }, { "style": { "height": "36px" } }).form; //創建窗體
  2462. _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); } }
  2463. break;
  2464. }
  2465. case "studyDetailStudio":
  2466. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2467. setTimeout(() => {
  2468. U.MD.U.L.login();
  2469. }, 2000);
  2470. } else {
  2471. _formdiv = new U.UF.UI.form(
  2472. "工作詳情",
  2473. $$("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 }), {
  2474. "id": "studyDetailStudio",
  2475. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2476. "onresize": function() {}
  2477. }, {
  2478. closecallback: function() {}
  2479. }, { "style": { "height": "36px" } }).form; //創建窗體
  2480. _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); } }
  2481. break;
  2482. }
  2483. case "studyDetailS5":
  2484. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2485. setTimeout(() => {
  2486. U.MD.U.L.login();
  2487. }, 2000);
  2488. } else {
  2489. _formdiv = new U.UF.UI.form(
  2490. "項目詳情",
  2491. $$("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 }), {
  2492. "id": "studyDetailS",
  2493. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2494. "onresize": function() {}
  2495. }, {
  2496. closecallback: function() {}
  2497. }, { "style": { "height": "36px" } }).form; //創建窗體
  2498. _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); } }
  2499. break;
  2500. }
  2501. case "studyDetailGM":
  2502. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2503. setTimeout(() => {
  2504. U.MD.U.L.login();
  2505. }, 2000);
  2506. } else {
  2507. _formdiv = new U.UF.UI.form(
  2508. "課程詳情",
  2509. $$("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 }), {
  2510. "id": "studyDetail",
  2511. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2512. "onresize": function() {}
  2513. }, {
  2514. closecallback: function() {}
  2515. }, { "style": { "height": "36px" } }).form; //創建窗體
  2516. _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); } }
  2517. break;
  2518. }
  2519. case "hanUrl":
  2520. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2521. setTimeout(() => {
  2522. U.MD.U.L.login();
  2523. }, 2000);
  2524. } else {
  2525. _formdiv = new U.UF.UI.form(
  2526. "漢字宮",
  2527. $$("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" }), {
  2528. "id": "hanUrl",
  2529. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2530. "onresize": function() {}
  2531. }, {
  2532. closecallback: function() {}
  2533. }, { "style": { "height": "36px" } }).form; //創建窗體
  2534. _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); } }
  2535. break;
  2536. }
  2537. case "index":
  2538. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2539. setTimeout(() => {
  2540. U.MD.U.L.login();
  2541. }, 2000);
  2542. } else {
  2543. _formdiv = new U.UF.UI.form(
  2544. "課程中心",
  2545. $$("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 }), {
  2546. "id": "study",
  2547. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2548. "onresize": function() {}
  2549. }, {
  2550. closecallback: function() {}
  2551. }, { "style": { "height": "36px" } }).form; //創建窗體
  2552. _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); } }
  2553. break;
  2554. }
  2555. case "dataClass":
  2556. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2557. setTimeout(() => {
  2558. U.MD.U.L.login();
  2559. }, 2000);
  2560. } else {
  2561. _formdiv = new U.UF.UI.form(
  2562. "数据报告",
  2563. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/worksReport?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&cid=" + _classId + "&checkid="+ data.classid }), {
  2564. "id": "dataClass",
  2565. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2566. "onresize": function() {}
  2567. }, {
  2568. closecallback: function() {}
  2569. }, { "style": { "height": "36px" } }).form; //创建窗体
  2570. _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); } }
  2571. break;
  2572. }
  2573. }
  2574. }
  2575. U.MD.D.I.openApplication = function(str, obj, info) {
  2576. obj = obj || {};
  2577. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  2578. _formdiv, //創建任務欄時同時彈出的窗體元素。
  2579. _userinfo = US.userInfo, //登錄用戶信息
  2580. _userid = obj.userid || US.userInfo.userid, //登錄用戶id
  2581. _oid = obj.organizeid || _userinfo.organizeid,
  2582. _type = US.userInfo.type,
  2583. _org = US.userInfo.org,
  2584. _role = US.userInfo.role,
  2585. _classId = US.userInfo.classid,
  2586. _TscreenType = 1
  2587. _screenType = 2,
  2588. _SscreenType = 3;
  2589. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2590. return;
  2591. }
  2592. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2593. switch (str) {
  2594. case "studnetProject": //好友打開
  2595. _formdiv = new U.UF.UI.form(
  2596. "我的項目",
  2597. $$("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 }), {
  2598. "id": "studnetProject",
  2599. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2600. "onresize": function() {}
  2601. }, {
  2602. closecallback: function() {}
  2603. }, { "style": { "height": "36px" } }).form; //創建窗體
  2604. _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); } }
  2605. break;
  2606. case "studentEvaluate": //好友打開
  2607. _formdiv = new U.UF.UI.form(
  2608. "我的評價",
  2609. $$("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 }), {
  2610. "id": "studentEvaluate",
  2611. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2612. "onresize": function() {}
  2613. }, {
  2614. closecallback: function() {}
  2615. }, { "style": { "height": "36px" } }).form; //創建窗體
  2616. _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); } }
  2617. break;
  2618. case "my":
  2619. _formdiv = new U.UF.UI.form(
  2620. "我的資料",
  2621. $$("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 }), {
  2622. "id": "my",
  2623. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2624. "onresize": function() {}
  2625. }, {
  2626. closecallback: function() {}
  2627. }, { "style": { "height": "36px" } }).form; //創建窗體
  2628. _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); } }
  2629. break;
  2630. case "program":
  2631. _formdiv = new U.UF.UI.form(
  2632. "編程平臺",
  2633. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2634. "id": "program",
  2635. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2636. "onresize": function() {}
  2637. }, {
  2638. closecallback: function() {}
  2639. }, { "style": { "height": "36px" } }).form; //創建窗體
  2640. _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); } }
  2641. break;
  2642. case "library":
  2643. _formdiv = new U.UF.UI.form(
  2644. "素材庫",
  2645. $$("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 }), {
  2646. "id": "library",
  2647. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2648. "onresize": function() {}
  2649. }, {
  2650. closecallback: function() {}
  2651. }, { "style": { "height": "36px" } }).form; //創建窗體
  2652. _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); } }
  2653. break;
  2654. case "whiteboard":
  2655. _formdiv = new U.UF.UI.form(
  2656. "電子白板",
  2657. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2658. "id": "whiteboard",
  2659. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2660. "onresize": function() {}
  2661. }, {
  2662. closecallback: function() {}
  2663. }, { "style": { "height": "36px" } }).form; //創建窗體
  2664. _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); } }
  2665. break;
  2666. case "investigation":
  2667. _formdiv = new U.UF.UI.form(
  2668. "問卷調查",
  2669. $$("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 }), {
  2670. "id": "investigation",
  2671. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2672. "onresize": function() {}
  2673. }, {
  2674. closecallback: function() {}
  2675. }, { "style": { "height": "36px" } }).form; //創建窗體
  2676. _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); } }
  2677. break;
  2678. case "note":
  2679. _formdiv = new U.UF.UI.form(
  2680. "便簽分類",
  2681. $$("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 }), {
  2682. "id": "note",
  2683. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2684. "onresize": function() {}
  2685. }, {
  2686. closecallback: function() {}
  2687. }, { "style": { "height": "36px" } }).form; //創建窗體
  2688. _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); } }
  2689. break;
  2690. // case "score":
  2691. // _formdiv = new U.UF.UI.form(
  2692. // "量規評分",
  2693. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2694. // "id": "score",
  2695. // "style": { "width": "90%", "height": "90%", "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/score.png)" }, "name": "量規評分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2701. // break;
  2702. case "mind":
  2703. _formdiv = new U.UF.UI.form(
  2704. "思維導圖",
  2705. $$("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"
  2706. "id": "mind",
  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/mindMapping.png)" }, "name": "思維導圖", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2713. break;
  2714. case "doc":
  2715. // U.MD.D.I.isRoom();
  2716. _formdiv = new U.UF.UI.form(
  2717. "協同文檔",
  2718. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2719. "id": "doc",
  2720. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2721. "onresize": function() {}
  2722. }, {
  2723. closecallback: function() {}
  2724. }, { "style": { "height": "36px" } }).form; //創建窗體
  2725. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2726. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2727. // })
  2728. _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); } }
  2729. break;
  2730. case "studentStudy":
  2731. _formdiv = new U.UF.UI.form(
  2732. "課程中心",
  2733. $$("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
  2734. "id": "studentStudy",
  2735. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2736. "onresize": function() {}
  2737. }, {
  2738. closecallback: function() {}
  2739. }, { "style": { "height": "36px" } }).form; //創建窗體
  2740. _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); } }
  2741. break;
  2742. case "train": //好友打開
  2743. _formdiv = new U.UF.UI.form(
  2744. "訓練平臺",
  2745. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2746. "id": "train",
  2747. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2748. "onresize": function() {}
  2749. }, {
  2750. closecallback: function() {}
  2751. }, { "style": { "height": "36px" } }).form; //創建窗體
  2752. _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); } }
  2753. break;
  2754. case "mindNetwork": //好友打開
  2755. _formdiv = new U.UF.UI.form(
  2756. "思維網格",
  2757. $$("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 }), {
  2758. "id": "mindNetwork",
  2759. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2760. "onresize": function() {}
  2761. }, {
  2762. closecallback: function() {}
  2763. }, { "style": { "height": "36px" } }).form; //創建窗體
  2764. _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); } }
  2765. break;
  2766. case "studentClassRoom": //好友打開
  2767. _formdiv = new U.UF.UI.form(
  2768. "實時課堂",
  2769. $$("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 }), {
  2770. "id": "studentClassRoom",
  2771. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2772. "onresize": function() {}
  2773. }, {
  2774. closecallback: function() {}
  2775. }, { "style": { "height": "36px" } }).form; //創建窗體
  2776. _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); } }
  2777. setTimeout(() => {
  2778. U.UF.F.windowZooming(_formdiv)
  2779. }, 0);
  2780. break;
  2781. }
  2782. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2783. switch (str) {
  2784. case "studnetProject": //好友打開
  2785. _formdiv = new U.UF.UI.form(
  2786. "我的項目",
  2787. $$("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 }), {
  2788. "id": "studnetProject",
  2789. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2790. "onresize": function() {}
  2791. }, {
  2792. closecallback: function() {}
  2793. }, { "style": { "height": "36px" } }).form; //創建窗體
  2794. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的項目", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2795. break;
  2796. case "studentEvaluate": //好友打開
  2797. _formdiv = new U.UF.UI.form(
  2798. "我的評價",
  2799. $$("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 }), {
  2800. "id": "studentEvaluate",
  2801. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2802. "onresize": function() {}
  2803. }, {
  2804. closecallback: function() {}
  2805. }, { "style": { "height": "36px" } }).form; //創建窗體
  2806. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的評價", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2807. break;
  2808. case "my":
  2809. _formdiv = new U.UF.UI.form(
  2810. "我的資料",
  2811. $$("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 }), {
  2812. "id": "my",
  2813. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2814. "onresize": function() {}
  2815. }, {
  2816. closecallback: function() {}
  2817. }, { "style": { "height": "36px" } }).form; //創建窗體
  2818. _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); } }
  2819. break;
  2820. case "program":
  2821. _formdiv = new U.UF.UI.form(
  2822. "編程平臺",
  2823. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2824. "id": "program",
  2825. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2826. "onresize": function() {}
  2827. }, {
  2828. closecallback: function() {}
  2829. }, { "style": { "height": "36px" } }).form; //創建窗體
  2830. _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); } }
  2831. break;
  2832. case "library":
  2833. _formdiv = new U.UF.UI.form(
  2834. "素材庫",
  2835. $$("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 }), {
  2836. "id": "library",
  2837. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2838. "onresize": function() {}
  2839. }, {
  2840. closecallback: function() {}
  2841. }, { "style": { "height": "36px" } }).form; //創建窗體
  2842. _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); } }
  2843. break;
  2844. case "whiteboard":
  2845. _formdiv = new U.UF.UI.form(
  2846. "電子白板",
  2847. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2848. "id": "whiteboard",
  2849. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2850. "onresize": function() {}
  2851. }, {
  2852. closecallback: function() {}
  2853. }, { "style": { "height": "36px" } }).form; //創建窗體
  2854. _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); } }
  2855. break;
  2856. case "investigation":
  2857. _formdiv = new U.UF.UI.form(
  2858. "問卷調查",
  2859. $$("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 }), {
  2860. "id": "investigation",
  2861. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2862. "onresize": function() {}
  2863. }, {
  2864. closecallback: function() {}
  2865. }, { "style": { "height": "36px" } }).form; //創建窗體
  2866. _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); } }
  2867. break;
  2868. case "note":
  2869. _formdiv = new U.UF.UI.form(
  2870. "便簽分類",
  2871. $$("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 }), {
  2872. "id": "note",
  2873. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2874. "onresize": function() {}
  2875. }, {
  2876. closecallback: function() {}
  2877. }, { "style": { "height": "36px" } }).form; //創建窗體
  2878. _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); } }
  2879. break;
  2880. // case "score":
  2881. // _formdiv = new U.UF.UI.form(
  2882. // "量規評分",
  2883. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2884. // "id": "score",
  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/score.png)" }, "name": "量規評分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2891. // break;
  2892. case "mind":
  2893. _formdiv = new U.UF.UI.form(
  2894. "思維導圖",
  2895. $$("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"
  2896. "id": "mind",
  2897. "style": { "width": "90%", "height": "90%", "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/mindMapping.png)" }, "name": "思維導圖", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2903. break;
  2904. case "doc":
  2905. // U.MD.D.I.isRoom();
  2906. _formdiv = new U.UF.UI.form(
  2907. "協同文檔",
  2908. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2909. "id": "doc",
  2910. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2911. "onresize": function() {}
  2912. }, {
  2913. closecallback: function() {}
  2914. }, { "style": { "height": "36px" } }).form; //創建窗體
  2915. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  2916. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2917. })
  2918. _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); } }
  2919. break;
  2920. case "train": //好友打開
  2921. _formdiv = new U.UF.UI.form(
  2922. "訓練平臺",
  2923. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2924. "id": "train",
  2925. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2926. "onresize": function() {}
  2927. }, {
  2928. closecallback: function() {}
  2929. }, { "style": { "height": "36px" } }).form; //創建窗體
  2930. _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); } }
  2931. break;
  2932. case "studentStudy":
  2933. _formdiv = new U.UF.UI.form(
  2934. "課程中心",
  2935. $$("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
  2936. "id": "studentStudy",
  2937. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2938. "onresize": function() {}
  2939. }, {
  2940. closecallback: function() {}
  2941. }, { "style": { "height": "36px" } }).form; //創建窗體
  2942. _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); } }
  2943. break;
  2944. case "mindNetwork": //好友打開
  2945. _formdiv = new U.UF.UI.form(
  2946. "思維網格",
  2947. $$("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 }), {
  2948. "id": "mindNetwork",
  2949. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2950. "onresize": function() {}
  2951. }, {
  2952. closecallback: function() {}
  2953. }, { "style": { "height": "36px" } }).form; //創建窗體
  2954. _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); } }
  2955. break;
  2956. case "studentClassRoom": //好友打開
  2957. _formdiv = new U.UF.UI.form(
  2958. "實時課堂",
  2959. $$("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 }), {
  2960. "id": "studentClassRoom",
  2961. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2962. "onresize": function() {}
  2963. }, {
  2964. closecallback: function() {}
  2965. }, { "style": { "height": "36px" } }).form; //創建窗體
  2966. _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); } }
  2967. setTimeout(() => {
  2968. U.UF.F.windowZooming(_formdiv)
  2969. }, 0);
  2970. break;
  2971. }
  2972. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2973. //選擇應用處理
  2974. switch (str) {
  2975. case "project": //好友打開
  2976. _formdiv = new U.UF.UI.form(
  2977. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目' : "課程管理",
  2978. $$("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 }), {
  2979. "id": "project",
  2980. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2981. "onresize": function() {}
  2982. }, {
  2983. closecallback: function() {}
  2984. }, { "style": { "height": "36px" } }).form; //創建窗體
  2985. _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); } }
  2986. break;
  2987. case "student":
  2988. _formdiv = new U.UF.UI.form(
  2989. "學生管理",
  2990. $$("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 }), {
  2991. "id": "student",
  2992. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2993. "onresize": function() {}
  2994. }, {
  2995. closecallback: function() {}
  2996. }, { "style": { "height": "36px" } }).form; //創建窗體
  2997. _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); } }
  2998. break;
  2999. case "evaluate":
  3000. _formdiv = new U.UF.UI.form(
  3001. "學生評價",
  3002. $$("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 }), {
  3003. "id": "evaluate",
  3004. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3005. "onresize": function() {}
  3006. }, {
  3007. closecallback: function() {}
  3008. }, { "style": { "height": "36px" } }).form; //創建窗體
  3009. _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); } }
  3010. break;
  3011. case "sys":
  3012. _formdiv = new U.UF.UI.form(
  3013. "目標管理",
  3014. $$("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 }), {
  3015. "id": "sys",
  3016. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3017. "onresize": function() {}
  3018. }, {
  3019. closecallback: function() {}
  3020. }, { "style": { "height": "36px" } }).form; //創建窗體
  3021. _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); } }
  3022. break;
  3023. case "courseDesign":
  3024. _formdiv = new U.UF.UI.form(
  3025. "項目設計",
  3026. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3027. "id": "courseDesign",
  3028. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3029. "onresize": function() {}
  3030. }, {
  3031. closecallback: function() {}
  3032. }, { "style": { "height": "36px" } }).form; //創建窗體
  3033. _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); } }
  3034. break;
  3035. case "program":
  3036. _formdiv = new U.UF.UI.form(
  3037. "編程平臺",
  3038. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3039. "id": "program",
  3040. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3041. "onresize": function() {}
  3042. }, {
  3043. closecallback: function() {}
  3044. }, { "style": { "height": "36px" } }).form; //創建窗體
  3045. _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); } }
  3046. break;
  3047. case "class":
  3048. _formdiv = new U.UF.UI.form(
  3049. "班級管理",
  3050. $$("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 }), {
  3051. "id": "class",
  3052. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3053. "onresize": function() {}
  3054. }, {
  3055. closecallback: function() {}
  3056. }, { "style": { "height": "36px" } }).form; //創建窗體
  3057. _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); } }
  3058. break;
  3059. case "Grade":
  3060. _formdiv = new U.UF.UI.form(
  3061. "年級管理",
  3062. $$("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 }), {
  3063. "id": "Grade",
  3064. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3065. "onresize": function() {}
  3066. }, {
  3067. closecallback: function() {}
  3068. }, { "style": { "height": "36px" } }).form; //創建窗體
  3069. _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); } }
  3070. break;
  3071. case "teacherOffice":
  3072. _formdiv = new U.UF.UI.form(
  3073. "教研室",
  3074. $$("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 }), {
  3075. "id": "teacherOffice",
  3076. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3077. "onresize": function() {}
  3078. }, {
  3079. closecallback: function() {}
  3080. }, { "style": { "height": "36px" } }).form; //創建窗體
  3081. _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); } }
  3082. break;
  3083. case "my":
  3084. _formdiv = new U.UF.UI.form(
  3085. "我的資料",
  3086. $$("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 }), {
  3087. "id": "my",
  3088. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3089. "onresize": function() {}
  3090. }, {
  3091. closecallback: function() {}
  3092. }, { "style": { "height": "36px" } }).form; //創建窗體
  3093. _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); } }
  3094. break;
  3095. case "notice":
  3096. _formdiv = new U.UF.UI.form(
  3097. "通知公告",
  3098. $$("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 }), {
  3099. "id": "notice",
  3100. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3101. "onresize": function() {}
  3102. }, {
  3103. closecallback: function() {}
  3104. }, { "style": { "height": "36px" } }).form; //創建窗體
  3105. _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); } }
  3106. break;
  3107. case "library":
  3108. _formdiv = new U.UF.UI.form(
  3109. "素材庫",
  3110. $$("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 }), {
  3111. "id": "library",
  3112. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3113. "onresize": function() {}
  3114. }, {
  3115. closecallback: function() {}
  3116. }, { "style": { "height": "36px" } }).form; //創建窗體
  3117. _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); } }
  3118. break;
  3119. case "whiteboard":
  3120. _formdiv = new U.UF.UI.form(
  3121. "電子白板",
  3122. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3123. "id": "whiteboard",
  3124. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3125. "onresize": function() {}
  3126. }, {
  3127. closecallback: function() {}
  3128. }, { "style": { "height": "36px" } }).form; //創建窗體
  3129. _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); } }
  3130. break;
  3131. case "investigation":
  3132. _formdiv = new U.UF.UI.form(
  3133. "問卷調查",
  3134. $$("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 }), {
  3135. "id": "investigation",
  3136. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3137. "onresize": function() {}
  3138. }, {
  3139. closecallback: function() {}
  3140. }, { "style": { "height": "36px" } }).form; //創建窗體
  3141. _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); } }
  3142. break;
  3143. case "note":
  3144. _formdiv = new U.UF.UI.form(
  3145. "便簽分類",
  3146. $$("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 }), {
  3147. "id": "note",
  3148. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  3149. "onresize": function() {}
  3150. }, {
  3151. closecallback: function() {}
  3152. }, { "style": { "height": "36px" } }).form; //創建窗體
  3153. _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); } }
  3154. break;
  3155. // case "score":
  3156. // _formdiv = new U.UF.UI.form(
  3157. // "量規評分",
  3158. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  3159. // "id": "score",
  3160. // "style": { "width": "90%", "height": "90%", "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/score.png)" }, "name": "量規評分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3166. // break;
  3167. case "mind":
  3168. _formdiv = new U.UF.UI.form(
  3169. "思維導圖",
  3170. $$("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"
  3171. "id": "mind",
  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/mindMapping.png)" }, "name": "思維導圖", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3178. break;
  3179. case "doc":
  3180. // U.MD.D.I.isRoom();
  3181. _formdiv = new U.UF.UI.form(
  3182. "協同文檔",
  3183. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3184. "id": "doc",
  3185. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3186. "onresize": function() {}
  3187. }, {
  3188. closecallback: function() {}
  3189. }, { "style": { "height": "36px" } }).form; //創建窗體
  3190. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  3191. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3192. })
  3193. _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); } }
  3194. break;
  3195. case "study":
  3196. _formdiv = new U.UF.UI.form(
  3197. "課程中心",
  3198. $$("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
  3199. "id": "study",
  3200. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3201. "onresize": function() {}
  3202. }, {
  3203. closecallback: function() {}
  3204. }, { "style": { "height": "36px" } }).form; //創建窗體
  3205. _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); } }
  3206. break;
  3207. case "mindNetwork": //好友打開
  3208. _formdiv = new U.UF.UI.form(
  3209. "思維網格",
  3210. $$("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 }), {
  3211. "id": "mindNetwork",
  3212. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3213. "onresize": function() {}
  3214. }, {
  3215. closecallback: function() {}
  3216. }, { "style": { "height": "36px" } }).form; //創建窗體
  3217. _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); } }
  3218. break;
  3219. case "train": //好友打開
  3220. _formdiv = new U.UF.UI.form(
  3221. "訓練平臺",
  3222. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3223. "id": "mindNetwork",
  3224. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3225. "onresize": function() {}
  3226. }, {
  3227. closecallback: function() {}
  3228. }, { "style": { "height": "36px" } }).form; //創建窗體
  3229. _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); } }
  3230. break;
  3231. case "teacherClassRoom": //好友打開
  3232. _formdiv = new U.UF.UI.form(
  3233. "實時課堂",
  3234. $$("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 }), {
  3235. "id": "teacherClassRoom",
  3236. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3237. "onresize": function() {}
  3238. }, {
  3239. closecallback: function() {}
  3240. }, { "style": { "height": "36px" } }).form; //創建窗體
  3241. _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); } }
  3242. setTimeout(() => {
  3243. U.UF.F.windowZooming(_formdiv)
  3244. }, 0);
  3245. break;
  3246. }
  3247. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  3248. switch (str) {
  3249. case "project": //好友打開
  3250. _formdiv = new U.UF.UI.form(
  3251. "課程管理",
  3252. $$("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 }), {
  3253. "id": "project",
  3254. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3255. "onresize": function() {}
  3256. }, {
  3257. closecallback: function() {}
  3258. }, { "style": { "height": "36px" } }).form; //創建窗體
  3259. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "課程管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3260. break;
  3261. case "evaluate":
  3262. _formdiv = new U.UF.UI.form(
  3263. "學生評價",
  3264. $$("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 }), {
  3265. "id": "evaluate",
  3266. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3267. "onresize": function() {}
  3268. }, {
  3269. closecallback: function() {}
  3270. }, { "style": { "height": "36px" } }).form; //創建窗體
  3271. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "學生評價", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3272. break;
  3273. case "notice":
  3274. _formdiv = new U.UF.UI.form(
  3275. "通知公告",
  3276. $$("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 }), {
  3277. "id": "notice",
  3278. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3279. "onresize": function() {}
  3280. }, {
  3281. closecallback: function() {}
  3282. }, { "style": { "height": "36px" } }).form; //創建窗體
  3283. _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); } }
  3284. break;
  3285. case "stuLibrary":
  3286. _formdiv = new U.UF.UI.form(
  3287. "學習資料",
  3288. $$("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 }), {
  3289. "id": "stuLibrary",
  3290. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3291. "onresize": function() {}
  3292. }, {
  3293. closecallback: function() {}
  3294. }, { "style": { "height": "36px" } }).form; //創建窗體
  3295. _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); } }
  3296. break;
  3297. case "program":
  3298. _formdiv = new U.UF.UI.form(
  3299. "編程平臺",
  3300. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3301. "id": "program",
  3302. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3303. "onresize": function() {}
  3304. }, {
  3305. closecallback: function() {}
  3306. }, { "style": { "height": "36px" } }).form; //創建窗體
  3307. _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); } }
  3308. break;
  3309. case "whiteboard":
  3310. _formdiv = new U.UF.UI.form(
  3311. "電子白板",
  3312. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3313. "id": "whiteboard",
  3314. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3315. "onresize": function() {}
  3316. }, {
  3317. closecallback: function() {}
  3318. }, { "style": { "height": "36px" } }).form; //創建窗體
  3319. _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); } }
  3320. break;
  3321. case "investigation":
  3322. _formdiv = new U.UF.UI.form(
  3323. "問卷調查",
  3324. $$("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 }), {
  3325. "id": "investigation",
  3326. "style": { "width": "90%", "height": "90%", "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/ask.png)" }, "name": "問卷調查", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3332. break;
  3333. case "mind":
  3334. _formdiv = new U.UF.UI.form(
  3335. "思維導圖",
  3336. $$("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"
  3337. "id": "mind",
  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/mindMapping.png)" }, "name": "思維導圖", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3344. break;
  3345. case "doc":
  3346. // U.MD.D.I.isRoom();
  3347. _formdiv = new U.UF.UI.form(
  3348. "協同文檔",
  3349. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3350. "id": "doc",
  3351. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3352. "onresize": function() {}
  3353. }, {
  3354. closecallback: function() {}
  3355. }, { "style": { "height": "36px" } }).form; //創建窗體
  3356. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  3357. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3358. })
  3359. _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); } }
  3360. break;
  3361. case "study":
  3362. _formdiv = new U.UF.UI.form(
  3363. "課程中心",
  3364. $$("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
  3365. "id": "study",
  3366. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3367. "onresize": function() {}
  3368. }, {
  3369. closecallback: function() {}
  3370. }, { "style": { "height": "36px" } }).form; //創建窗體
  3371. _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); } }
  3372. break;
  3373. case "mindNetwork": //好友打開
  3374. _formdiv = new U.UF.UI.form(
  3375. "思維網格",
  3376. $$("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 }), {
  3377. "id": "mindNetwork",
  3378. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3379. "onresize": function() {}
  3380. }, {
  3381. closecallback: function() {}
  3382. }, { "style": { "height": "36px" } }).form; //創建窗體
  3383. _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); } }
  3384. break;
  3385. case "train": //好友打開
  3386. _formdiv = new U.UF.UI.form(
  3387. "訓練平臺",
  3388. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3389. "id": "train",
  3390. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3391. "onresize": function() {}
  3392. }, {
  3393. closecallback: function() {}
  3394. }, { "style": { "height": "36px" } }).form; //創建窗體
  3395. _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); } }
  3396. break;
  3397. case "sys":
  3398. _formdiv = new U.UF.UI.form(
  3399. "目標管理",
  3400. $$("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 }), {
  3401. "id": "sys",
  3402. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3403. "onresize": function() {}
  3404. }, {
  3405. closecallback: function() {}
  3406. }, { "style": { "height": "36px" } }).form; //創建窗體
  3407. _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); } }
  3408. break;
  3409. case "courseDesign":
  3410. _formdiv = new U.UF.UI.form(
  3411. "項目設計",
  3412. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3413. "id": "courseDesign",
  3414. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3415. "onresize": function() {}
  3416. }, {
  3417. closecallback: function() {}
  3418. }, { "style": { "height": "36px" } }).form; //創建窗體
  3419. _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); } }
  3420. break;
  3421. }
  3422. } else if (!_type) {
  3423. switch (str) {
  3424. case "my":
  3425. _formdiv = new U.UF.UI.form(
  3426. "我的資料",
  3427. $$("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 }), {
  3428. "id": "my",
  3429. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3430. "onresize": function() {}
  3431. }, {
  3432. closecallback: function() {}
  3433. }, { "style": { "height": "36px" } }).form; //創建窗體
  3434. _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); } }
  3435. break;
  3436. }
  3437. }
  3438. switch (str) {
  3439. // AIprogram2 AI體驗 aihub.cocorobo.cn
  3440. // Pythonprogram Python編程 python-blockly.cocorobo.cn
  3441. // AIprogram AI編程 ai-blockly.cocorobo.cn
  3442. case "formulaEdi": //公式編輯
  3443. _formdiv = new U.UF.UI.form(
  3444. "公式編輯",
  3445. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.latexlive.com/" }), {
  3446. "id": "formulaEdi",
  3447. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3448. "onresize": function() {}
  3449. }, {
  3450. closecallback: function() {}
  3451. }, { "style": { "height": "36px" } }).form; //創建窗體
  3452. _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); } }
  3453. break;
  3454. case "molStr": //分子結構
  3455. _formdiv = new U.UF.UI.form(
  3456. "分子結構",
  3457. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://molview.org/" }), {
  3458. "id": "molStr",
  3459. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3460. "onresize": function() {}
  3461. }, {
  3462. closecallback: function() {}
  3463. }, { "style": { "height": "36px" } }).form; //創建窗體
  3464. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/molStr.png)" }, "name": "分子結構", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3465. break;
  3466. case "timeAxis": //時間軸
  3467. _formdiv = new U.UF.UI.form(
  3468. "時間軸",
  3469. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://time.graphics/editor" }), {
  3470. "id": "timeAxis",
  3471. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3472. "onresize": function() {}
  3473. }, {
  3474. closecallback: function() {}
  3475. }, { "style": { "height": "36px" } }).form; //創建窗體
  3476. _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); } }
  3477. break;
  3478. case "AIprogram2": //AI體驗
  3479. _formdiv = new U.UF.UI.form(
  3480. "AI體驗",
  3481. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3482. "id": "AIprogram2",
  3483. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3484. "onresize": function() {}
  3485. }, {
  3486. closecallback: function() {}
  3487. }, { "style": { "height": "36px" } }).form; //創建窗體
  3488. _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); } }
  3489. break;
  3490. case "Pythonprogram": //python編程
  3491. _formdiv = new U.UF.UI.form(
  3492. "Python編程",
  3493. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3494. "id": "Pythonprogram",
  3495. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3496. "onresize": function() {}
  3497. }, {
  3498. closecallback: function() {}
  3499. }, { "style": { "height": "36px" } }).form; //創建窗體
  3500. _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); } }
  3501. break;
  3502. case "AIprogram": //ai編程
  3503. _formdiv = new U.UF.UI.form(
  3504. "AI編程平臺",
  3505. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3506. "id": "AIprogram",
  3507. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3508. "onresize": function() {}
  3509. }, {
  3510. closecallback: function() {}
  3511. }, { "style": { "height": "36px" } }).form; //創建窗體
  3512. _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); } }
  3513. break;
  3514. case "CocoPi": //CocoPi
  3515. _formdiv = new U.UF.UI.form(
  3516. "CocoPi",
  3517. $$("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" }), {
  3518. "id": "CocoPi",
  3519. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3520. "onresize": function() {}
  3521. }, {
  3522. closecallback: function() {}
  3523. }, { "style": { "height": "36px" } }).form; //創建窗體
  3524. _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); } }
  3525. break;
  3526. case "Wood": //Wood
  3527. _formdiv = new U.UF.UI.form(
  3528. "海龜編程",
  3529. $$("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/" }), {
  3530. "id": "Wood",
  3531. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3532. "onresize": function() {}
  3533. }, {
  3534. closecallback: function() {}
  3535. }, { "style": { "height": "36px" } }).form; //創建窗體
  3536. _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); } }
  3537. break;
  3538. case "car": //模擬駕駛
  3539. _formdiv = new U.UF.UI.form(
  3540. "模擬駕駛",
  3541. $$("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/" }), {
  3542. "id": "car",
  3543. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3544. "onresize": function() {}
  3545. }, {
  3546. closecallback: function() {}
  3547. }, { "style": { "height": "36px" } }).form; //創建窗體
  3548. _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); } }
  3549. break;
  3550. case "lineSearch": //路徑搜索
  3551. _formdiv = new U.UF.UI.form(
  3552. "路徑搜索",
  3553. $$("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/" }), {
  3554. "id": "lineSearch",
  3555. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3556. "onresize": function() {}
  3557. }, {
  3558. closecallback: function() {}
  3559. }, { "style": { "height": "36px" } }).form; //創建窗體
  3560. _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); } }
  3561. break;
  3562. case "deepLearning": //深度學習
  3563. _formdiv = new U.UF.UI.form(
  3564. "深度學習",
  3565. $$("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/#" }), {
  3566. "id": "deepLearning",
  3567. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3568. "onresize": function() {}
  3569. }, {
  3570. closecallback: function() {}
  3571. }, { "style": { "height": "36px" } }).form; //創建窗體
  3572. _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); } }
  3573. break;
  3574. case "allHistory": //深度學習
  3575. _formdiv = new U.UF.UI.form(
  3576. "全歷史",
  3577. $$("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/" }), {
  3578. "id": "allHistory",
  3579. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3580. "onresize": function() {}
  3581. }, {
  3582. closecallback: function() {}
  3583. }, { "style": { "height": "36px" } }).form; //創建窗體
  3584. _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); } }
  3585. break;
  3586. case "chatPDF": //ai編程
  3587. _formdiv = new U.UF.UI.form(
  3588. "chatPDF",
  3589. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3590. "id": "chatPDF",
  3591. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3592. "onresize": function() {}
  3593. }, {
  3594. closecallback: function() {}
  3595. }, { "style": { "height": "36px" } }).form; //創建窗體
  3596. _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); } }
  3597. break;
  3598. case "resources": //國家教育
  3599. _formdiv = new U.UF.UI.form(
  3600. "國家教育",
  3601. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3602. "id": "resources",
  3603. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3604. "onresize": function() {}
  3605. }, {
  3606. closecallback: function() {}
  3607. }, { "style": { "height": "36px" } }).form; //創建窗體
  3608. _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); } }
  3609. break;
  3610. case "codeEdit": //源碼編輯
  3611. _formdiv = new U.UF.UI.form(
  3612. "源碼編輯",
  3613. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3614. "id": "codeEdit",
  3615. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3616. "onresize": function() {}
  3617. }, {
  3618. closecallback: function() {}
  3619. }, { "style": { "height": "36px" } }).form; //創建窗體
  3620. _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); } }
  3621. break; //
  3622. case "MindMap": //MindMap
  3623. _formdiv = new U.UF.UI.form(
  3624. "MindMap",
  3625. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3626. "id": "MindMap",
  3627. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3628. "onresize": function() {}
  3629. }, {
  3630. closecallback: function() {}
  3631. }, { "style": { "height": "36px" } }).form; //創建窗體
  3632. _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); } }
  3633. break;
  3634. case "netWorkPanel": //netWorkPanel
  3635. _formdiv = new U.UF.UI.form(
  3636. "netWorkPanel",
  3637. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3638. "id": "netWorkPanel",
  3639. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3640. "onresize": function() {}
  3641. }, {
  3642. closecallback: function() {}
  3643. }, { "style": { "height": "36px" } }).form; //創建窗體
  3644. _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); } }
  3645. break;
  3646. case "GeoGebra": //GeoGebra
  3647. _formdiv = new U.UF.UI.form(
  3648. "GeoGebra",
  3649. $$("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" }), {
  3650. "id": "GeoGebra",
  3651. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3652. "onresize": function() {}
  3653. }, {
  3654. closecallback: function() {}
  3655. }, { "style": { "height": "36px" } }).form; //創建窗體
  3656. _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); } }
  3657. break;
  3658. case "translation": //翻譯
  3659. _formdiv = new U.UF.UI.form(
  3660. "翻譯",
  3661. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3662. "id": "translation",
  3663. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3664. "onresize": function() {}
  3665. }, {
  3666. closecallback: function() {}
  3667. }, { "style": { "height": "36px" } }).form; //創建窗體
  3668. _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); } }
  3669. break;
  3670. case "mohe": //魔盒
  3671. _formdiv = new U.UF.UI.form(
  3672. "魔盒識字",
  3673. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3674. "id": "mohe",
  3675. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3676. "onresize": function() {}
  3677. }, {
  3678. closecallback: function() {}
  3679. }, { "style": { "height": "36px" } }).form; //創建窗體
  3680. _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); } }
  3681. break;
  3682. case "24game": //24點
  3683. _formdiv = new U.UF.UI.form(
  3684. "24點",
  3685. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3686. "id": "24game",
  3687. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3688. "onresize": function() {}
  3689. }, {
  3690. closecallback: function() {}
  3691. }, { "style": { "height": "36px" } }).form; //創建窗體
  3692. _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); } }
  3693. break;
  3694. case "case":
  3695. _formdiv = new U.UF.UI.form(
  3696. "課程進展",
  3697. $$("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 }), {
  3698. "id": "case",
  3699. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3700. "onresize": function() {}
  3701. }, {
  3702. closecallback: function() {}
  3703. }, { "style": { "height": "36px" } }).form; //創建窗體
  3704. _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); } }
  3705. break;
  3706. case "snf":
  3707. _formdiv = new U.UF.UI.form(
  3708. "賽諾梵",
  3709. $$("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" }), {
  3710. "id": "snf",
  3711. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3712. "onresize": function() {}
  3713. }, {
  3714. closecallback: function() {}
  3715. }, { "style": { "height": "36px" } }).form; //創建窗體
  3716. _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); } }
  3717. break;
  3718. case "hanFamily":
  3719. _formdiv = new U.UF.UI.form(
  3720. "漢字家族",
  3721. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3722. "id": "hanFamily",
  3723. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3724. "onresize": function() {}
  3725. }, {
  3726. closecallback: function() {}
  3727. }, { "style": { "height": "36px" } }).form; //創建窗體
  3728. _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); } }
  3729. break;
  3730. case "hanClassics":
  3731. _formdiv = new U.UF.UI.form(
  3732. "國學經典",
  3733. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3734. "id": "hanClassics",
  3735. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3736. "onresize": function() {}
  3737. }, {
  3738. closecallback: function() {}
  3739. }, { "style": { "height": "36px" } }).form; //創建窗體
  3740. _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); } }
  3741. break;
  3742. case "hanTraining":
  3743. _formdiv = new U.UF.UI.form(
  3744. "筆畫訓練",
  3745. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3746. "id": "hanTraining",
  3747. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3748. "onresize": function() {}
  3749. }, {
  3750. closecallback: function() {}
  3751. }, { "style": { "height": "36px" } }).form; //創建窗體
  3752. _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); } }
  3753. break;
  3754. case "hanClass":
  3755. _formdiv = new U.UF.UI.form(
  3756. "書法課堂",
  3757. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3758. "id": "hanClass",
  3759. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3760. "onresize": function() {}
  3761. }, {
  3762. closecallback: function() {}
  3763. }, { "style": { "height": "36px" } }).form; //創建窗體
  3764. _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); } }
  3765. break;
  3766. case "han":
  3767. _formdiv = new U.UF.UI.form(
  3768. "漢字宮",
  3769. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3770. "id": "han",
  3771. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3772. "onresize": function() {}
  3773. }, {
  3774. closecallback: function() {}
  3775. }, { "style": { "height": "36px" } }).form; //創建窗體
  3776. _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); } }
  3777. break;
  3778. case "projectGM": //課程管理
  3779. _formdiv = new U.UF.UI.form(
  3780. "課程管理",
  3781. $$("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 }), {
  3782. "id": "projectGM",
  3783. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3784. "onresize": function() {}
  3785. }, {
  3786. closecallback: function() {}
  3787. }, { "style": { "height": "36px" } }).form; //創建窗體
  3788. _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); } }
  3789. break;
  3790. case "studyGM": //課程中心
  3791. _formdiv = new U.UF.UI.form(
  3792. "課程中心",
  3793. $$("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
  3794. "id": "study",
  3795. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3796. "onresize": function() {}
  3797. }, {
  3798. closecallback: function() {}
  3799. }, { "style": { "height": "36px" } }).form; //創建窗體
  3800. _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); } }
  3801. break;
  3802. // studentGM
  3803. case "studentGM": //學生管理
  3804. _formdiv = new U.UF.UI.form(
  3805. "學生管理",
  3806. $$("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 }), {
  3807. "id": "studentGM",
  3808. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3809. "onresize": function() {}
  3810. }, {
  3811. closecallback: function() {}
  3812. }, { "style": { "height": "36px" } }).form; //創建窗體
  3813. _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); } }
  3814. break;
  3815. case "evaluateGM": //學生評價
  3816. _formdiv = new U.UF.UI.form(
  3817. "學生評價",
  3818. $$("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 }), {
  3819. "id": "evaluateGM",
  3820. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3821. "onresize": function() {}
  3822. }, {
  3823. closecallback: function() {}
  3824. }, { "style": { "height": "36px" } }).form; //創建窗體
  3825. _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); } }
  3826. break;
  3827. // classGM
  3828. case "classGM": //班級管理
  3829. _formdiv = new U.UF.UI.form(
  3830. "班級管理",
  3831. $$("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 }), {
  3832. "id": "classGM",
  3833. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3834. "onresize": function() {}
  3835. }, {
  3836. closecallback: function() {}
  3837. }, { "style": { "height": "36px" } }).form; //創建窗體
  3838. _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); } }
  3839. break;
  3840. // dataGM
  3841. case "dataGM":
  3842. _formdiv = new U.UF.UI.form(
  3843. "我的資料",
  3844. $$("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 }), {
  3845. "id": "dataGM",
  3846. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3847. "onresize": function() {}
  3848. }, {
  3849. closecallback: function() {}
  3850. }, { "style": { "height": "36px" } }).form; //創建窗體
  3851. _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); } }
  3852. break;
  3853. // caseGM
  3854. case "caseGM": //課程進展
  3855. _formdiv = new U.UF.UI.form(
  3856. "課程進展",
  3857. $$("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 }), {
  3858. "id": "caseGM",
  3859. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3860. "onresize": function() {}
  3861. }, {
  3862. closecallback: function() {}
  3863. }, { "style": { "height": "36px" } }).form; //創建窗體
  3864. _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); } }
  3865. break;
  3866. // meterialGM
  3867. case "meterialGM": //素材庫
  3868. _formdiv = new U.UF.UI.form(
  3869. "素材庫",
  3870. $$("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 }), {
  3871. "id": "meterialGM",
  3872. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3873. "onresize": function() {}
  3874. }, {
  3875. closecallback: function() {}
  3876. }, { "style": { "height": "36px" } }).form; //創建窗體
  3877. _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); } }
  3878. break;
  3879. // evaluateSGM
  3880. case "evaluateSGM": //我的評價
  3881. _formdiv = new U.UF.UI.form(
  3882. "我的評價",
  3883. $$("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 }), {
  3884. "id": "evaluateSGM",
  3885. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3886. "onresize": function() {}
  3887. }, {
  3888. closecallback: function() {}
  3889. }, { "style": { "height": "36px" } }).form; //創建窗體
  3890. _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); } }
  3891. break;
  3892. case "jupyter": //jupyter
  3893. _formdiv = new U.UF.UI.form(
  3894. "jupyter",
  3895. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3896. "id": "jupyter",
  3897. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3898. "onresize": function() {}
  3899. }, {
  3900. closecallback: function() {}
  3901. }, { "style": { "height": "36px" } }).form; //創建窗體
  3902. _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); } }
  3903. break;
  3904. case "number": //數字實驗室
  3905. _formdiv = new U.UF.UI.form(
  3906. "數字實驗室",
  3907. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3908. "id": "number",
  3909. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3910. "onresize": function() {}
  3911. }, {
  3912. closecallback: function() {}
  3913. }, { "style": { "height": "36px" } }).form; //創建窗體
  3914. _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); } }
  3915. break;
  3916. case "studentCourse": //項目管理 學生
  3917. _formdiv = new U.UF.UI.form(
  3918. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  3919. $$("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 }), {
  3920. "id": "studentCourse",
  3921. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3922. "onresize": function() {}
  3923. }, {
  3924. closecallback: function() {}
  3925. }, { "style": { "height": "36px" } }).form; //創建窗體
  3926. _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); } }
  3927. break;
  3928. case "studentCourseS": //項目管理 老師
  3929. _formdiv = new U.UF.UI.form(
  3930. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  3931. $$("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 }), {
  3932. "id": "studentCourseS",
  3933. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3934. "onresize": function() {}
  3935. }, {
  3936. closecallback: function() {}
  3937. }, { "style": { "height": "36px" } }).form; //創建窗體
  3938. _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); } }
  3939. break;
  3940. case "studentIndex": //項目中心
  3941. _formdiv = new U.UF.UI.form(
  3942. "項目中心",
  3943. $$("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 }), {
  3944. "id": "studentIndex",
  3945. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3946. "onresize": function() {}
  3947. }, {
  3948. closecallback: function() {}
  3949. }, { "style": { "height": "36px" } }).form; //創建窗體
  3950. _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); } }
  3951. break;
  3952. case "CaseDesignS":
  3953. _formdiv = new U.UF.UI.form(
  3954. "項目進展",
  3955. $$("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 }), {
  3956. "id": "case",
  3957. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3958. "onresize": function() {}
  3959. }, {
  3960. closecallback: function() {}
  3961. }, { "style": { "height": "36px" } }).form; //創建窗體
  3962. _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); } }
  3963. break;
  3964. case "tcStudent": //騰訊學生管理
  3965. _formdiv = new U.UF.UI.form(
  3966. "學生管理",
  3967. $$("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 }), {
  3968. "id": "tcStudent",
  3969. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3970. "onresize": function() {}
  3971. }, {
  3972. closecallback: function() {}
  3973. }, { "style": { "height": "36px" } }).form; //創建窗體
  3974. _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); } }
  3975. break;
  3976. case "tcSchool": //騰訊學校管理
  3977. _formdiv = new U.UF.UI.form(
  3978. "學校管理",
  3979. $$("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 }), {
  3980. "id": "tcSchool",
  3981. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3982. "onresize": function() {}
  3983. }, {
  3984. closecallback: function() {}
  3985. }, { "style": { "height": "36px" } }).form; //創建窗體
  3986. _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); } }
  3987. break;
  3988. case "tcTeacher": //騰訊學校管理
  3989. _formdiv = new U.UF.UI.form(
  3990. "教師管理",
  3991. $$("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 }), {
  3992. "id": "tcTeacher",
  3993. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3994. "onresize": function() {}
  3995. }, {
  3996. closecallback: function() {}
  3997. }, { "style": { "height": "36px" } }).form; //創建窗體
  3998. _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); } }
  3999. break;
  4000. case "tcData": //騰訊我的資料
  4001. _formdiv = new U.UF.UI.form(
  4002. "我的資料",
  4003. $$("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 }), {
  4004. "id": "tcData",
  4005. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  4006. "onresize": function() {}
  4007. }, {
  4008. closecallback: function() {}
  4009. }, { "style": { "height": "36px" } }).form; //創建窗體
  4010. _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); } }
  4011. break;
  4012. case "tcNotice": //騰訊消息通知
  4013. _formdiv = new U.UF.UI.form(
  4014. "消息通知",
  4015. $$("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 }), {
  4016. "id": "tcNotice",
  4017. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4018. "onresize": function() {}
  4019. }, {
  4020. closecallback: function() {}
  4021. }, { "style": { "height": "36px" } }).form; //創建窗體
  4022. _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); } }
  4023. break;
  4024. case "myReport": //好友打開
  4025. _formdiv = new U.UF.UI.form(
  4026. "我的評價",
  4027. $$("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 }), {
  4028. "id": "myReport",
  4029. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4030. "onresize": function() {}
  4031. }, {
  4032. closecallback: function() {}
  4033. }, { "style": { "height": "36px" } }).form; //創建窗體
  4034. _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); } }
  4035. break;
  4036. case "learnAna": //好友打開
  4037. _formdiv = new U.UF.UI.form(
  4038. "學習分析",
  4039. $$("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 }), {
  4040. "id": "learnAna",
  4041. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4042. "onresize": function() {}
  4043. }, {
  4044. closecallback: function() {}
  4045. }, { "style": { "height": "36px" } }).form; //創建窗體
  4046. _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); } }
  4047. break;
  4048. case "AIChat": //AI共創
  4049. _formdiv = new U.UF.UI.form(
  4050. "AI共創",
  4051. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/aichat/" }), {
  4052. "id": "AIChat",
  4053. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  4054. "onresize": function () { }
  4055. }, {
  4056. istop: true,
  4057. closecallback: function () { $("#aichat_icon").remove(); },
  4058. narrowcallback: function () {
  4059. if (!$("#aichat_icon")[0]) {
  4060. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  4061. }
  4062. },
  4063. }, { "style": { "height": "36px" } }).form; //創建窗體
  4064. _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); } }
  4065. break;
  4066. case "ainew": //AI共創
  4067. _formdiv = new U.UF.UI.form(
  4068. "AI協同",
  4069. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ainew/" }), {
  4070. "id": "ainew",
  4071. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4072. "onresize": function () { }
  4073. }, {
  4074. closecallback: function () { }
  4075. }, { "style": { "height": "36px" } }).form; //創建窗體
  4076. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI協同", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4077. break;
  4078. case "AIAnalyse": //AI共創
  4079. _formdiv = new U.UF.UI.form(
  4080. "AI分析",
  4081. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ai/" }), {
  4082. "id": "AIAnalyse",
  4083. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4084. "onresize": function () { }
  4085. }, {
  4086. closecallback: function () { }
  4087. }, { "style": { "height": "36px" } }).form; //創建窗體
  4088. _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); } }
  4089. break;
  4090. case "studioCourse": //AI共創
  4091. _formdiv = new U.UF.UI.form(
  4092. "工作管理",
  4093. $$("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 }), {
  4094. "id": "studioCourse",
  4095. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4096. "onresize": function() {}
  4097. }, {
  4098. closecallback: function() {}
  4099. }, { "style": { "height": "36px" } }).form; //創建窗體
  4100. _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); } }
  4101. break;
  4102. case "studioIndex": //AI共創
  4103. _formdiv = new U.UF.UI.form(
  4104. "工作中心",
  4105. $$("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 }), {
  4106. "id": "studioIndex",
  4107. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4108. "onresize": function() {}
  4109. }, {
  4110. closecallback: function() {}
  4111. }, { "style": { "height": "36px" } }).form; //創建窗體
  4112. _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); } }
  4113. break;
  4114. case "source":
  4115. _formdiv = new U.UF.UI.form(
  4116. "教學資源",
  4117. $$("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 }), {
  4118. "id": "source",
  4119. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4120. "onresize": function () { }
  4121. }, {
  4122. closecallback: function () { }
  4123. }, { "style": { "height": "36px" } }).form; //創建窗體
  4124. _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); } }
  4125. break;
  4126. }
  4127. //U.MD.D.I.openClick(str);
  4128. //如果有任務欄信息
  4129. if (_taskbar) {
  4130. U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4131. }
  4132. }
  4133. // U.MD.D.I.openClick = function(str){
  4134. // var click = '';
  4135. // switch(str){
  4136. // case 'friend':
  4137. // click = '我的好友';
  4138. // break;
  4139. // case 'domain':
  4140. // click = '域名管理';
  4141. // break;
  4142. // case 'disk':
  4143. // click = '我的雲盤';
  4144. // break;
  4145. // case 'word':
  4146. // click = 'Word';
  4147. // break;
  4148. // case 'excel':
  4149. // click = 'Execl';
  4150. // break;
  4151. // case 'txt':
  4152. // click = '文本文件';
  4153. // break;
  4154. // case 'lookupFriend':
  4155. // click = '查找好友';
  4156. // break;
  4157. // case 'ftp':
  4158. // click = 'FTP';
  4159. // break;
  4160. // case 'group':
  4161. // click = '群組';
  4162. // break;
  4163. // case 'set':
  4164. // click = '我的設置';
  4165. // break;
  4166. // case 'systemSet':
  4167. // click = '系統設置';
  4168. // break;
  4169. // case 'boomYun':
  4170. // click = '互聯辦公';
  4171. // break;
  4172. // case 'xz':
  4173. // click = '雲端下載';
  4174. // break;
  4175. // case 'client':
  4176. // click = '有思瀏覽器';
  4177. // break;
  4178. // case 'backEndProgramming':
  4179. // click = '在線後臺編程';
  4180. // break;
  4181. // case 'frontEndProgramming':
  4182. // click = '在線前端編程';
  4183. // break;
  4184. // default: break;
  4185. // }
  4186. // if(U.MD.D.I.Ip && click){
  4187. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  4188. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  4189. // })
  4190. // }
  4191. // }
  4192. /**
  4193. *函數作用:ajax簡易函數,使用post格式
  4194. *@param url {data} 後臺地址
  4195. *@param data {data} 參數json
  4196. *@param fn {data} 回調函數
  4197. *
  4198. */
  4199. // U.MD.D.I.Mysqlrequest = function(url,fn){
  4200. // var xhr = new XMLHttpRequest();
  4201. // xhr.open("GET",url,true);
  4202. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  4203. // xhr.onreadystatechange = function(){
  4204. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  4205. // fn.call(this,xhr.responseText);
  4206. // }
  4207. // };
  4208. // xhr.send();
  4209. // }
  4210. /*判斷是否是內網IP*/
  4211. // U.MD.D.I.isInnerIPFn = function(str){
  4212. // var curPageUrl = str;
  4213. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前綴
  4214. // curPageUrl =curPageUrl.replace(reg1,'');
  4215. // // console.log('curPageUrl-1 '+curPageUrl);
  4216. // var reg2 = /\:+/g;//替換冒號為一點
  4217. // curPageUrl =curPageUrl.replace(reg2,'.');
  4218. // // console.log('curPageUrl-2 '+curPageUrl);
  4219. // curPageUrl = curPageUrl.split('.');//通過一點來劃分數組
  4220. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  4221. // if(curPageUrl[2] != '16'){
  4222. // return ipAddress;
  4223. // }else{
  4224. // return false;
  4225. // }
  4226. // }
  4227. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  4228. // //compatibility for firefox and chrome
  4229. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  4230. // var pc = new myPeerConnection({
  4231. // iceServers: []
  4232. // }),
  4233. // noop = function() {},
  4234. // localIPs = {},
  4235. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  4236. // key;
  4237. // function iterateIP(ip) {
  4238. // if (!localIPs[ip]) onNewIP(ip);
  4239. // localIPs[ip] = true;
  4240. // }
  4241. // //create a bogus data channel
  4242. // pc.createDataChannel("");
  4243. // // create offer and set local description
  4244. // pc.createOffer().then(function(sdp) {
  4245. // sdp.sdp.split('\n').forEach(function(line) {
  4246. // if (line.indexOf('candidate') < 0) return;
  4247. // line.match(ipRegex).forEach(iterateIP);
  4248. // });
  4249. // pc.setLocalDescription(sdp, noop, noop);
  4250. // }).catch(function(reason) {
  4251. // // An error occurred, so handle the failure to connect
  4252. // });
  4253. // //sten for candidate events
  4254. // pc.onicecandidate = function(ice) {
  4255. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  4256. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  4257. // };
  4258. // }
  4259. // U.MD.D.I.getUserIpBool = function(callback){
  4260. // U.MD.D.I.getUserIP(function(ip){
  4261. // alert("Got IP! :" + ip);
  4262. // });
  4263. //}
  4264. //#endregion
  4265. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  4266. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4267. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4268. _userinfo = US.userInfo, //登錄用戶信息
  4269. _userid = US.userInfo.userid //登錄用戶id
  4270. let _iframe;
  4271. let _cid = cid,
  4272. _stage = stage,
  4273. _task = task,
  4274. _tool = tool;
  4275. var _jie = $$("div", {
  4276. "style": {
  4277. "position": "absolute",
  4278. "bottom": "50px",
  4279. "right": "50px",
  4280. "zIndex": "9999",
  4281. "backgroundColor": "#2268bc",
  4282. "color": "#fff",
  4283. "padding": "12px 20px",
  4284. "cursor": "pointer",
  4285. "borderRadius": "4px",
  4286. },
  4287. "innerHTML": "提交作業"
  4288. })
  4289. let aTool = ''
  4290. let _loading = document.createElement('div')
  4291. _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;"
  4292. // _loading.id = "";
  4293. let _lchild = document.createElement('div')
  4294. let _limg = document.createElement('img')
  4295. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4296. _limg.style = "width: 26px;margin-right: 10px;"
  4297. _lchild.appendChild(_limg)
  4298. let _lspan = document.createElement('span')
  4299. _lspan.innerHTML = "上傳中..."
  4300. _lchild.appendChild(_lspan)
  4301. _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%);"
  4302. _loading.appendChild(_lchild)
  4303. var _box = $$('div', {
  4304. "style": {
  4305. "position": "relative",
  4306. "width": "100%",
  4307. "height": "100%",
  4308. },
  4309. })
  4310. _box.appendChild(_loading)
  4311. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool + _userid
  4312. switch (str) {
  4313. case "whiteboard":
  4314. aTool = 1;
  4315. _iframe = $$("iframe", {
  4316. "frameborder": "no",
  4317. "border": "0",
  4318. "scrolling ": "no",
  4319. "style": {
  4320. "cssText": "border:0;width:100%;height:100%"
  4321. },
  4322. "src": "https://iwb.cocorobo.hk/"
  4323. })
  4324. _box.appendChild(_iframe);
  4325. _box.appendChild(_jie);
  4326. _formdiv = new U.UF.UI.form(
  4327. "電子白板",
  4328. _box, {
  4329. "id": "whiteboard" + cid + stage + task + tool,
  4330. "style": {
  4331. "width": "90%",
  4332. "height": "90%",
  4333. "overflow": 'hidden'
  4334. },
  4335. "onresize": function () { }
  4336. }, {
  4337. closecallback: function () { }
  4338. }, {
  4339. "style": {
  4340. "height": "36px"
  4341. }
  4342. }).form; //創建窗體
  4343. _taskbar = {
  4344. "id": str + _formdiv.id,
  4345. "style": {
  4346. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4347. },
  4348. "name": "電子白板",
  4349. "forms": _formdiv,
  4350. "click": function() {
  4351. U.MD.D.I.openApplication(str, obj, info);
  4352. }
  4353. }
  4354. break;
  4355. case "mind":
  4356. aTool = 3;
  4357. _iframe = $$("iframe", {
  4358. "frameborder": "no",
  4359. "border": "0",
  4360. "scrolling ": "no",
  4361. "style": {
  4362. "cssText": "border:0;width:100%;height:100%"
  4363. },
  4364. "src": "/kityminder-editor/dist/index.html"
  4365. })
  4366. _box.appendChild(_iframe);
  4367. _box.appendChild(_jie);
  4368. _formdiv = new U.UF.UI.form(
  4369. "思維導圖",
  4370. _box, { //"/jsmind/example/demo.html"
  4371. "id": "mind" + cid + stage + task + tool,
  4372. "style": {
  4373. "width": "90%",
  4374. "height": "90%",
  4375. "overflow": 'hidden'
  4376. },
  4377. "onresize": function () { }
  4378. }, {
  4379. closecallback: function () { }
  4380. }, {
  4381. "style": {
  4382. "height": "36px"
  4383. }
  4384. }).form; //創建窗體
  4385. _taskbar = {
  4386. "id": str + _formdiv.id,
  4387. "style": {
  4388. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4389. },
  4390. "name": "思維導圖",
  4391. "forms": _formdiv,
  4392. "click": function() {
  4393. U.MD.D.I.openApplication(str, obj, info);
  4394. }
  4395. }
  4396. break;
  4397. case "MindMap":
  4398. aTool = 3;
  4399. _iframe = $$("iframe", {
  4400. "frameborder": "no",
  4401. "border": "0",
  4402. "scrolling ": "no",
  4403. "style": {
  4404. "cssText": "border:0;width:100%;height:100%"
  4405. },
  4406. "src": "//cloud.cocorobo.hk/mind/"
  4407. })
  4408. _box.appendChild(_iframe);
  4409. _box.appendChild(_jie);
  4410. _formdiv = new U.UF.UI.form(
  4411. "思維導圖",
  4412. _box, { //"/jsmind/example/demo.html"
  4413. "id": "mind" + cid + stage + task + tool,
  4414. "style": {
  4415. "width": "90%",
  4416. "height": "90%",
  4417. "overflow": 'hidden'
  4418. },
  4419. "onresize": function () { }
  4420. }, {
  4421. closecallback: function () { }
  4422. }, {
  4423. "style": {
  4424. "height": "36px"
  4425. }
  4426. }).form; //創建窗體
  4427. _taskbar = {
  4428. "id": str + _formdiv.id,
  4429. "style": {
  4430. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4431. },
  4432. "name": "思維導圖",
  4433. "forms": _formdiv,
  4434. "click": function() {
  4435. U.MD.D.I.openApplication(str, obj, info);
  4436. }
  4437. }
  4438. break;
  4439. case "doc":
  4440. aTool = 6;
  4441. _iframe = $$("iframe", {
  4442. "frameborder": "no",
  4443. "border": "0",
  4444. "scrolling ": "no",
  4445. "style": {
  4446. "cssText": "border:0;width:100%;height:100%"
  4447. },
  4448. "src": "/Office/Word/WordEditArea.htm"
  4449. })
  4450. _box.appendChild(_iframe);
  4451. _box.appendChild(_jie);
  4452. _formdiv = new U.UF.UI.form(
  4453. "協同文檔",
  4454. _box, {
  4455. "id": "doc" + cid + stage + task + tool,
  4456. "style": {
  4457. "width": "90%",
  4458. "height": "90%",
  4459. "overflow": 'hidden'
  4460. },
  4461. "onresize": function () { }
  4462. }, {
  4463. closecallback: function () { }
  4464. }, {
  4465. "style": {
  4466. "height": "36px"
  4467. }
  4468. }).form; //創建窗體
  4469. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  4470. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4471. })
  4472. _taskbar = {
  4473. "id": str + _formdiv.id,
  4474. "style": {
  4475. "backgroundImage": "url(/img/icon/doc.png)"
  4476. },
  4477. "name": "協同文檔",
  4478. "forms": _formdiv,
  4479. "click": function() {
  4480. U.MD.D.I.openApplication(str, obj, info);
  4481. }
  4482. }
  4483. break;
  4484. case "mindNetwork": //好友打開
  4485. aTool = 7;
  4486. _iframe = $$("iframe", {
  4487. "webkitallowfullscreen": "",
  4488. "mozallowfullscreen": "",
  4489. "allowfullscreen": "",
  4490. "frameborder": "no",
  4491. "border": "0",
  4492. "scrolling ": "no",
  4493. "style": {
  4494. "cssText": "border:0; width:100%; height:100%;"
  4495. },
  4496. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4497. })
  4498. _box.appendChild(_iframe);
  4499. _box.appendChild(_jie);
  4500. _formdiv = new U.UF.UI.form(
  4501. "思維網格",
  4502. _box, {
  4503. "id": "mindNetwork" + cid + stage + task + tool,
  4504. "style": {
  4505. "width": "90%",
  4506. "height": "90%",
  4507. "overflow": 'hidden'
  4508. },
  4509. "onresize": function () { }
  4510. }, {
  4511. closecallback: function () { }
  4512. }, {
  4513. "style": {
  4514. "height": "36px"
  4515. }
  4516. }).form; //創建窗體
  4517. _taskbar = {
  4518. "id": str + _formdiv.id,
  4519. "style": {
  4520. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4521. },
  4522. "name": "思維網格",
  4523. "forms": _formdiv,
  4524. "click": function() {
  4525. U.MD.D.I.openApplication(str, obj, info);
  4526. }
  4527. }
  4528. break;
  4529. case "courseDesign":
  4530. _iframe = $$("iframe", {
  4531. "webkitallowfullscreen": "",
  4532. "mozallowfullscreen": "",
  4533. "allowfullscreen": "",
  4534. "frameborder": "no",
  4535. "border": "0",
  4536. "scrolling ": "no",
  4537. "style": {
  4538. "cssText": "border:0; width:100%; height:100%;"
  4539. },
  4540. "src": "/course-design-vue"
  4541. })
  4542. _box.appendChild(_iframe);
  4543. _box.appendChild(_jie);
  4544. _formdiv = new U.UF.UI.form(
  4545. "項目設計",
  4546. _box, {
  4547. "id": "courseDesign" + cid + stage + task + tool,
  4548. "style": {
  4549. "width": "90%",
  4550. "height": "90%",
  4551. "overflow": 'hidden'
  4552. },
  4553. "onresize": function () { }
  4554. }, {
  4555. closecallback: function () { }
  4556. }, {
  4557. "style": {
  4558. "height": "36px"
  4559. }
  4560. }).form; //創建窗體
  4561. _taskbar = {
  4562. "id": str + _formdiv.id,
  4563. "style": {
  4564. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4565. },
  4566. "name": "項目設計",
  4567. "forms": _formdiv,
  4568. "click": function() {
  4569. U.MD.D.I.openApplication(str, obj, info);
  4570. }
  4571. }
  4572. break;
  4573. }
  4574. const script1 = document.createElement("script");
  4575. script1.type = "text/javascript";
  4576. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4577. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  4578. const script2 = document.createElement("script");
  4579. script2.type = "text/javascript";
  4580. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4581. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  4582. const script3 = document.createElement("script");
  4583. script3.type = "text/javascript";
  4584. script3.charset = "UTF-8";
  4585. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  4586. const script4 = document.createElement("script");
  4587. script4.type = "text/javascript";
  4588. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4589. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  4590. if (_iframe) {
  4591. if (str == 'doc') {
  4592. _iframe = _formdiv.querySelector('iframe')
  4593. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4594. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4595. _iframe.contentWindow.document.body.appendChild(script1);
  4596. _iframe.contentWindow.document.body.appendChild(script2);
  4597. // _iframe.contentWindow.document.body.appendChild(script3);
  4598. _iframe.contentWindow.document.body.appendChild(script4);
  4599. })
  4600. if (onloadListener) {
  4601. _iframe.contentDocument.location.reload()
  4602. } else {
  4603. _iframe.contentDocument.location.reload()
  4604. }
  4605. } else if (str == 'courseDesign') {
  4606. U.UF.DL.iframeLoad(_iframe, function() {
  4607. // _iframe.contentWindow.U.MD.O.W.load();
  4608. // _iframe.contentWindow.document.body.appendChild(script1);
  4609. _iframe.contentWindow.document.body.appendChild(script2);
  4610. _iframe.contentWindow.document.body.appendChild(script4);
  4611. })
  4612. } else if (str == 'mind') {
  4613. _iframe = _formdiv.querySelector('iframe')
  4614. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4615. //
  4616. _iframe.contentWindow.document.body.appendChild(script1);
  4617. _iframe.contentWindow.document.body.appendChild(script2);
  4618. _iframe.contentWindow.document.body.appendChild(script4);
  4619. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4620. })
  4621. if (onloadListener) {
  4622. _iframe.contentDocument.location.reload()
  4623. } else {
  4624. _iframe.contentDocument.location.reload()
  4625. }
  4626. } else if (str == 'whiteboard') {
  4627. _iframe = _formdiv.querySelector('iframe')
  4628. let onloadListener = _iframe.onload = () => {
  4629. _iframe.contentWindow.document.body.appendChild(script1);
  4630. _iframe.contentWindow.document.body.appendChild(script2);
  4631. _iframe.contentWindow.document.body.appendChild(script4);
  4632. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4633. };
  4634. if (onloadListener) {
  4635. _iframe.contentDocument.location.reload()
  4636. } else {
  4637. _iframe.contentDocument.location.reload()
  4638. }
  4639. } else {
  4640. _iframe.onload = () => {
  4641. _iframe.contentWindow.document.body.appendChild(script1);
  4642. _iframe.contentWindow.document.body.appendChild(script2);
  4643. // _iframe.contentWindow.document.body.appendChild(script3);
  4644. _iframe.contentWindow.document.body.appendChild(script4);
  4645. };
  4646. }
  4647. _jie.onclick = async() => {
  4648. let text = ''
  4649. if (aTool == 1) {
  4650. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4651. } else if (aTool == 6) {
  4652. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4653. } else if (aTool == 3) {
  4654. text = await U.MD.D.I.getEditorContent(_iframe);
  4655. }
  4656. _loading.style.display = 'flex'
  4657. console.log(_loading);
  4658. var _ajs = _iframe.contentWindow.document.createElement("script");
  4659. _ajs.type = "text/javascript";
  4660. _ajs.innerHTML =
  4661. // 'console.log(' + _loading + ');\n' +
  4662. 'var _js = document.createElement("script");\n' +
  4663. '_js.type="text/javascript";\n' +
  4664. '_js.charset="UTF-8";\n' +
  4665. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  4666. "_js.onload = function(){\n" +
  4667. ' var a = document.getElementsByTagName("img")\n' +
  4668. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4669. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4670. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4671. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4672. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  4673. "beforeUpload_shishi(file," +
  4674. "'" +
  4675. _userid +
  4676. "'" +
  4677. ", " +
  4678. "'" +
  4679. _cid +
  4680. "'" +
  4681. ", " +
  4682. "'" +
  4683. _stage +
  4684. "'" +
  4685. ", " +
  4686. "'" +
  4687. _task +
  4688. "'" +
  4689. ", " +
  4690. "'" +
  4691. _tool +
  4692. "'" +
  4693. ", " +
  4694. "'" +
  4695. (str + '_loadLi_Jie' + cid + stage + task + tool + _userid) +
  4696. "'" +
  4697. ", " +
  4698. "'" +
  4699. aTool +
  4700. "'" +
  4701. ", " +
  4702. "`" +
  4703. text +
  4704. "`" +
  4705. ")\n" +
  4706. " });\n" +
  4707. "}\n" +
  4708. "document.head.appendChild(_js);\n";
  4709. _iframe.contentWindow.document.head.appendChild(_ajs);
  4710. }
  4711. }
  4712. //U.MD.D.I.openClick(str);
  4713. //如果有任務欄信息
  4714. // if (_taskbar) {
  4715. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4716. // }
  4717. }
  4718. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4719. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4720. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4721. _userinfo = US.userInfo, //登錄用戶信息
  4722. _userid = US.userInfo.userid //登錄用戶id
  4723. let _iframe;
  4724. let _cid = cid,
  4725. _stage = stage,
  4726. _task = task,
  4727. _tool = tool;
  4728. var _jie = $$("div", {
  4729. "style": {
  4730. "position": "absolute",
  4731. "bottom": "50px",
  4732. "right": "50px",
  4733. "zIndex": "9999",
  4734. "backgroundColor": "#2268bc",
  4735. "color": "#fff",
  4736. "padding": "12px 20px",
  4737. "cursor": "pointer",
  4738. "borderRadius": "4px",
  4739. },
  4740. "innerHTML": "提交作業"
  4741. })
  4742. let aTool = ''
  4743. let _loading = document.createElement('div')
  4744. _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;"
  4745. // _loading.id = "";
  4746. let _lchild = document.createElement('div')
  4747. let _limg = document.createElement('img')
  4748. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4749. _limg.style = "width: 26px;margin-right: 10px;"
  4750. _lchild.appendChild(_limg)
  4751. let _lspan = document.createElement('span')
  4752. _lspan.innerHTML = "上傳中..."
  4753. _lchild.appendChild(_lspan)
  4754. _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%);"
  4755. _loading.appendChild(_lchild)
  4756. var _box = $$('div', {
  4757. "style": {
  4758. "position": "relative",
  4759. "width": "100%",
  4760. "height": "100%",
  4761. },
  4762. })
  4763. _box.appendChild(_loading)
  4764. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool + _userid
  4765. switch (str) {
  4766. case "whiteboard":
  4767. aTool = 1;
  4768. _iframe = $$("iframe", {
  4769. "frameborder": "no",
  4770. "border": "0",
  4771. "scrolling ": "no",
  4772. "style": {
  4773. "cssText": "border:0;width:100%;height:100%"
  4774. },
  4775. "src": "https://iwb.cocorobo.hk/"
  4776. })
  4777. _box.appendChild(_iframe);
  4778. _box.appendChild(_jie);
  4779. _formdiv = new U.UF.UI.form(
  4780. "電子白板",
  4781. _box, {
  4782. "id": "whiteboard" + cid + stage + task + tool,
  4783. "style": {
  4784. "width": "90%",
  4785. "height": "90%",
  4786. "overflow": 'hidden'
  4787. },
  4788. "onresize": function () { }
  4789. }, {
  4790. closecallback: function () { }
  4791. }, {
  4792. "style": {
  4793. "height": "36px"
  4794. }
  4795. }).form; //創建窗體
  4796. _taskbar = {
  4797. "id": str + _formdiv.id,
  4798. "style": {
  4799. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4800. },
  4801. "name": "電子白板",
  4802. "forms": _formdiv,
  4803. "click": function() {
  4804. U.MD.D.I.openApplication(str, obj, info);
  4805. }
  4806. }
  4807. break;
  4808. case "mind":
  4809. aTool = 3;
  4810. _iframe = $$("iframe", {
  4811. "frameborder": "no",
  4812. "border": "0",
  4813. "scrolling ": "no",
  4814. "style": {
  4815. "cssText": "border:0;width:100%;height:100%"
  4816. },
  4817. "src": "/kityminder-editor/dist/index.html"
  4818. })
  4819. _box.appendChild(_iframe);
  4820. _box.appendChild(_jie);
  4821. _formdiv = new U.UF.UI.form(
  4822. "思維導圖",
  4823. _box, { //"/jsmind/example/demo.html"
  4824. "id": "mind" + cid + stage + task + tool,
  4825. "style": {
  4826. "width": "90%",
  4827. "height": "90%",
  4828. "overflow": 'hidden'
  4829. },
  4830. "onresize": function () { }
  4831. }, {
  4832. closecallback: function () { }
  4833. }, {
  4834. "style": {
  4835. "height": "36px"
  4836. }
  4837. }).form; //創建窗體
  4838. _taskbar = {
  4839. "id": str + _formdiv.id,
  4840. "style": {
  4841. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4842. },
  4843. "name": "思維導圖",
  4844. "forms": _formdiv,
  4845. "click": function() {
  4846. U.MD.D.I.openApplication(str, obj, info);
  4847. }
  4848. }
  4849. break;
  4850. case "MindMap":
  4851. aTool = 3;
  4852. _iframe = $$("iframe", {
  4853. "frameborder": "no",
  4854. "border": "0",
  4855. "scrolling ": "no",
  4856. "style": {
  4857. "cssText": "border:0;width:100%;height:100%"
  4858. },
  4859. "src": "//cloud.cocorobo.hk/mind/"
  4860. })
  4861. _box.appendChild(_iframe);
  4862. _box.appendChild(_jie);
  4863. _formdiv = new U.UF.UI.form(
  4864. "思維導圖",
  4865. _box, { //"/jsmind/example/demo.html"
  4866. "id": "mind" + cid + stage + task + tool,
  4867. "style": {
  4868. "width": "90%",
  4869. "height": "90%",
  4870. "overflow": 'hidden'
  4871. },
  4872. "onresize": function () { }
  4873. }, {
  4874. closecallback: function () { }
  4875. }, {
  4876. "style": {
  4877. "height": "36px"
  4878. }
  4879. }).form; //創建窗體
  4880. _taskbar = {
  4881. "id": str + _formdiv.id,
  4882. "style": {
  4883. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4884. },
  4885. "name": "思維導圖",
  4886. "forms": _formdiv,
  4887. "click": function() {
  4888. U.MD.D.I.openApplication(str, obj, info);
  4889. }
  4890. }
  4891. break;
  4892. case "doc":
  4893. aTool = 6;
  4894. _iframe = $$("iframe", {
  4895. "frameborder": "no",
  4896. "border": "0",
  4897. "scrolling ": "no",
  4898. "style": {
  4899. "cssText": "border:0;width:100%;height:100%"
  4900. },
  4901. "src": "/Office/Word/WordEditArea.htm"
  4902. })
  4903. _box.appendChild(_iframe);
  4904. _box.appendChild(_jie);
  4905. _formdiv = new U.UF.UI.form(
  4906. "協同文檔",
  4907. _box, {
  4908. "id": "doc" + cid + stage + task + tool,
  4909. "style": {
  4910. "width": "90%",
  4911. "height": "90%",
  4912. "overflow": 'hidden'
  4913. },
  4914. "onresize": function () { }
  4915. }, {
  4916. closecallback: function () { }
  4917. }, {
  4918. "style": {
  4919. "height": "36px"
  4920. }
  4921. }).form; //創建窗體
  4922. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  4923. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4924. })
  4925. _taskbar = {
  4926. "id": str + _formdiv.id,
  4927. "style": {
  4928. "backgroundImage": "url(/img/icon/doc.png)"
  4929. },
  4930. "name": "協同文檔",
  4931. "forms": _formdiv,
  4932. "click": function() {
  4933. U.MD.D.I.openApplication(str, obj, info);
  4934. }
  4935. }
  4936. break;
  4937. case "mindNetwork": //好友打開
  4938. aTool = 7;
  4939. _iframe = $$("iframe", {
  4940. "webkitallowfullscreen": "",
  4941. "mozallowfullscreen": "",
  4942. "allowfullscreen": "",
  4943. "frameborder": "no",
  4944. "border": "0",
  4945. "scrolling ": "no",
  4946. "style": {
  4947. "cssText": "border:0; width:100%; height:100%;"
  4948. },
  4949. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4950. })
  4951. _box.appendChild(_iframe);
  4952. _box.appendChild(_jie);
  4953. _formdiv = new U.UF.UI.form(
  4954. "思維網格",
  4955. _box, {
  4956. "id": "mindNetwork" + cid + stage + task + tool,
  4957. "style": {
  4958. "width": "90%",
  4959. "height": "90%",
  4960. "overflow": 'hidden'
  4961. },
  4962. "onresize": function () { }
  4963. }, {
  4964. closecallback: function () { }
  4965. }, {
  4966. "style": {
  4967. "height": "36px"
  4968. }
  4969. }).form; //創建窗體
  4970. _taskbar = {
  4971. "id": str + _formdiv.id,
  4972. "style": {
  4973. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4974. },
  4975. "name": "思維網格",
  4976. "forms": _formdiv,
  4977. "click": function() {
  4978. U.MD.D.I.openApplication(str, obj, info);
  4979. }
  4980. }
  4981. break;
  4982. case "courseDesign":
  4983. _iframe = $$("iframe", {
  4984. "webkitallowfullscreen": "",
  4985. "mozallowfullscreen": "",
  4986. "allowfullscreen": "",
  4987. "frameborder": "no",
  4988. "border": "0",
  4989. "scrolling ": "no",
  4990. "style": {
  4991. "cssText": "border:0; width:100%; height:100%;"
  4992. },
  4993. "src": "/course-design-vue"
  4994. })
  4995. _box.appendChild(_iframe);
  4996. _box.appendChild(_jie);
  4997. _formdiv = new U.UF.UI.form(
  4998. "項目設計",
  4999. _box, {
  5000. "id": "courseDesign" + cid + stage + task + tool,
  5001. "style": {
  5002. "width": "90%",
  5003. "height": "90%",
  5004. "overflow": 'hidden'
  5005. },
  5006. "onresize": function () { }
  5007. }, {
  5008. closecallback: function () { }
  5009. }, {
  5010. "style": {
  5011. "height": "36px"
  5012. }
  5013. }).form; //創建窗體
  5014. _taskbar = {
  5015. "id": str + _formdiv.id,
  5016. "style": {
  5017. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5018. },
  5019. "name": "項目設計",
  5020. "forms": _formdiv,
  5021. "click": function() {
  5022. U.MD.D.I.openApplication(str, obj, info);
  5023. }
  5024. }
  5025. break;
  5026. }
  5027. const script1 = document.createElement("script");
  5028. script1.type = "text/javascript";
  5029. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5030. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5031. const script2 = document.createElement("script");
  5032. script2.type = "text/javascript";
  5033. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5034. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5035. const script3 = document.createElement("script");
  5036. script3.type = "text/javascript";
  5037. script3.charset = "UTF-8";
  5038. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5039. const script4 = document.createElement("script");
  5040. script4.type = "text/javascript";
  5041. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5042. script4.src = window.origin + "/js/Common/jietu2E.js";
  5043. if (_iframe) {
  5044. if (str == 'doc') {
  5045. _iframe = _formdiv.querySelector('iframe')
  5046. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5047. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5048. _iframe.contentWindow.document.body.appendChild(script1);
  5049. _iframe.contentWindow.document.body.appendChild(script2);
  5050. // _iframe.contentWindow.document.body.appendChild(script3);
  5051. _iframe.contentWindow.document.body.appendChild(script4);
  5052. })
  5053. if (onloadListener) {
  5054. _iframe.contentDocument.location.reload()
  5055. } else {
  5056. _iframe.contentDocument.location.reload()
  5057. }
  5058. } else if (str == 'courseDesign') {
  5059. U.UF.DL.iframeLoad(_iframe, function() {
  5060. // _iframe.contentWindow.U.MD.O.W.load();
  5061. // _iframe.contentWindow.document.body.appendChild(script1);
  5062. _iframe.contentWindow.document.body.appendChild(script2);
  5063. _iframe.contentWindow.document.body.appendChild(script4);
  5064. })
  5065. } else if (str == 'mind') {
  5066. _iframe = _formdiv.querySelector('iframe')
  5067. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5068. //
  5069. _iframe.contentWindow.document.body.appendChild(script1);
  5070. _iframe.contentWindow.document.body.appendChild(script2);
  5071. _iframe.contentWindow.document.body.appendChild(script4);
  5072. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5073. })
  5074. if (onloadListener) {
  5075. _iframe.contentDocument.location.reload()
  5076. } else {
  5077. _iframe.contentDocument.location.reload()
  5078. }
  5079. } else if (str == 'whiteboard') {
  5080. _iframe = _formdiv.querySelector('iframe')
  5081. let onloadListener = _iframe.onload = () => {
  5082. _iframe.contentWindow.document.body.appendChild(script1);
  5083. _iframe.contentWindow.document.body.appendChild(script2);
  5084. _iframe.contentWindow.document.body.appendChild(script4);
  5085. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5086. };
  5087. if (onloadListener) {
  5088. _iframe.contentDocument.location.reload()
  5089. } else {
  5090. _iframe.contentDocument.location.reload()
  5091. }
  5092. } else {
  5093. _iframe.onload = () => {
  5094. _iframe.contentWindow.document.body.appendChild(script1);
  5095. _iframe.contentWindow.document.body.appendChild(script2);
  5096. // _iframe.contentWindow.document.body.appendChild(script3);
  5097. _iframe.contentWindow.document.body.appendChild(script4);
  5098. };
  5099. }
  5100. _jie.onclick = async() => {
  5101. let text = ''
  5102. if (aTool == 1) {
  5103. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5104. } else if (aTool == 6) {
  5105. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5106. } else if (aTool == 3) {
  5107. text = await U.MD.D.I.getEditorContent(_iframe);
  5108. }
  5109. _loading.style.display = 'flex'
  5110. console.log(_loading);
  5111. var _ajs = _iframe.contentWindow.document.createElement("script");
  5112. _ajs.type = "text/javascript";
  5113. _ajs.innerHTML =
  5114. // 'console.log(' + _loading + ');\n' +
  5115. 'var _js = document.createElement("script");\n' +
  5116. '_js.type="text/javascript";\n' +
  5117. '_js.charset="UTF-8";\n' +
  5118. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5119. "_js.onload = function(){\n" +
  5120. ' var a = document.getElementsByTagName("img")\n' +
  5121. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5122. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5123. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5124. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5125. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5126. "beforeUpload_shishi(file," +
  5127. "'" +
  5128. _userid +
  5129. "'" +
  5130. ", " +
  5131. "'" +
  5132. _cid +
  5133. "'" +
  5134. ", " +
  5135. "'" +
  5136. _stage +
  5137. "'" +
  5138. ", " +
  5139. "'" +
  5140. _task +
  5141. "'" +
  5142. ", " +
  5143. "'" +
  5144. _tool +
  5145. "'" +
  5146. ", " +
  5147. "'" +
  5148. (str + '_loadLi_JieE' + cid + stage + task + tool + _userid) +
  5149. "'" +
  5150. ", " +
  5151. "'" +
  5152. aTool +
  5153. "'" +
  5154. ", " +
  5155. "`" +
  5156. text +
  5157. "`" +
  5158. ")\n" +
  5159. " });\n" +
  5160. "}\n" +
  5161. "document.head.appendChild(_js);\n";
  5162. _iframe.contentWindow.document.head.appendChild(_ajs);
  5163. }
  5164. }
  5165. //U.MD.D.I.openClick(str);
  5166. //如果有任務欄信息
  5167. // if (_taskbar) {
  5168. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  5169. // }
  5170. }
  5171. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  5172. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5173. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5174. _userid = student.userid, //登錄用戶id
  5175. _username = student.student //用戶名字
  5176. let _iframe;
  5177. let _cid = cid,
  5178. _stage = stage,
  5179. _task = task,
  5180. _tool = tool;
  5181. var _jie = $$("div", {
  5182. "style": {
  5183. "position": "absolute",
  5184. "bottom": "50px",
  5185. "right": "50px",
  5186. "zIndex": "9999",
  5187. "backgroundColor": "#2268bc",
  5188. "color": "#fff",
  5189. "padding": "12px 20px",
  5190. "cursor": "pointer",
  5191. "borderRadius": "4px",
  5192. },
  5193. "innerHTML": "提交作業"
  5194. })
  5195. let aTool = ''
  5196. let _loading = document.createElement('div')
  5197. _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;"
  5198. // _loading.id = "";
  5199. let _lchild = document.createElement('div')
  5200. let _limg = document.createElement('img')
  5201. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5202. _limg.style = "width: 26px;margin-right: 10px;"
  5203. _lchild.appendChild(_limg)
  5204. let _lspan = document.createElement('span')
  5205. _lspan.innerHTML = "上傳中..."
  5206. _lchild.appendChild(_lspan)
  5207. _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%);"
  5208. _loading.appendChild(_lchild)
  5209. var _box = $$('div', {
  5210. "style": {
  5211. "position": "relative",
  5212. "width": "100%",
  5213. "height": "100%",
  5214. },
  5215. })
  5216. _box.appendChild(_loading)
  5217. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid
  5218. switch (str) {
  5219. case "whiteboard":
  5220. aTool = 1;
  5221. _iframe = $$("iframe", {
  5222. "frameborder": "no",
  5223. "border": "0",
  5224. "scrolling ": "no",
  5225. "style": {
  5226. "cssText": "border:0;width:100%;height:100%"
  5227. },
  5228. "src": "https://iwb.cocorobo.hk/"
  5229. })
  5230. _box.appendChild(_iframe);
  5231. _box.appendChild(_jie);
  5232. _formdiv = new U.UF.UI.form(
  5233. "電子白板-" + _username,
  5234. _box, {
  5235. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5236. "style": {
  5237. "width": "90%",
  5238. "height": "90%",
  5239. "overflow": 'hidden'
  5240. },
  5241. "onresize": function () { }
  5242. }, {
  5243. closecallback: function () { }
  5244. }, {
  5245. "style": {
  5246. "height": "36px"
  5247. }
  5248. }).form; //創建窗體
  5249. _taskbar = {
  5250. "id": str + _formdiv.id,
  5251. "style": {
  5252. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5253. },
  5254. "name": "電子白板",
  5255. "forms": _formdiv,
  5256. "click": function() {
  5257. U.MD.D.I.openApplication(str, obj, info);
  5258. }
  5259. }
  5260. break;
  5261. case "mind":
  5262. aTool = 3;
  5263. _iframe = $$("iframe", {
  5264. "frameborder": "no",
  5265. "border": "0",
  5266. "scrolling ": "no",
  5267. "style": {
  5268. "cssText": "border:0;width:100%;height:100%"
  5269. },
  5270. "src": "/kityminder-editor/dist/index.html"
  5271. })
  5272. _box.appendChild(_iframe);
  5273. _box.appendChild(_jie);
  5274. _formdiv = new U.UF.UI.form(
  5275. "思維導圖-" + _username,
  5276. _box, { //"/jsmind/example/demo.html"
  5277. "id": "mind" + cid + stage + task + tool + _userid,
  5278. "style": {
  5279. "width": "90%",
  5280. "height": "90%",
  5281. "overflow": 'hidden'
  5282. },
  5283. "onresize": function () { }
  5284. }, {
  5285. closecallback: function () { }
  5286. }, {
  5287. "style": {
  5288. "height": "36px"
  5289. }
  5290. }).form; //創建窗體
  5291. _taskbar = {
  5292. "id": str + _formdiv.id,
  5293. "style": {
  5294. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5295. },
  5296. "name": "思維導圖",
  5297. "forms": _formdiv,
  5298. "click": function() {
  5299. U.MD.D.I.openApplication(str, obj, info);
  5300. }
  5301. }
  5302. break;
  5303. case "MindMap":
  5304. aTool = 3;
  5305. _iframe = $$("iframe", {
  5306. "frameborder": "no",
  5307. "border": "0",
  5308. "scrolling ": "no",
  5309. "style": {
  5310. "cssText": "border:0;width:100%;height:100%"
  5311. },
  5312. "src": "//cloud.cocorobo.hk/mind/"
  5313. })
  5314. _box.appendChild(_iframe);
  5315. _box.appendChild(_jie);
  5316. _formdiv = new U.UF.UI.form(
  5317. "思維導圖-" + _username,
  5318. _box, { //"/jsmind/example/demo.html"
  5319. "id": "mind" + cid + stage + task + tool + _userid,
  5320. "style": {
  5321. "width": "90%",
  5322. "height": "90%",
  5323. "overflow": 'hidden'
  5324. },
  5325. "onresize": function () { }
  5326. }, {
  5327. closecallback: function () { }
  5328. }, {
  5329. "style": {
  5330. "height": "36px"
  5331. }
  5332. }).form; //創建窗體
  5333. _taskbar = {
  5334. "id": str + _formdiv.id,
  5335. "style": {
  5336. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5337. },
  5338. "name": "思維導圖",
  5339. "forms": _formdiv,
  5340. "click": function() {
  5341. U.MD.D.I.openApplication(str, obj, info);
  5342. }
  5343. }
  5344. break;
  5345. case "doc":
  5346. aTool = 6;
  5347. _iframe = $$("iframe", {
  5348. "frameborder": "no",
  5349. "border": "0",
  5350. "scrolling ": "no",
  5351. "style": {
  5352. "cssText": "border:0;width:100%;height:100%"
  5353. },
  5354. "src": "/Office/Word/WordEditArea.htm"
  5355. })
  5356. _box.appendChild(_iframe);
  5357. _box.appendChild(_jie);
  5358. _formdiv = new U.UF.UI.form(
  5359. "協同文檔-" + _username,
  5360. _box, {
  5361. "id": "doc" + cid + stage + task + tool + _userid,
  5362. "style": {
  5363. "width": "90%",
  5364. "height": "90%",
  5365. "overflow": 'hidden'
  5366. },
  5367. "onresize": function () { }
  5368. }, {
  5369. closecallback: function () { }
  5370. }, {
  5371. "style": {
  5372. "height": "36px"
  5373. }
  5374. }).form; //創建窗體
  5375. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  5376. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5377. })
  5378. _taskbar = {
  5379. "id": str + _formdiv.id,
  5380. "style": {
  5381. "backgroundImage": "url(/img/icon/doc.png)"
  5382. },
  5383. "name": "協同文檔",
  5384. "forms": _formdiv,
  5385. "click": function() {
  5386. U.MD.D.I.openApplication(str, obj, info);
  5387. }
  5388. }
  5389. break;
  5390. case "mindNetwork": //好友打開
  5391. aTool = 7;
  5392. _iframe = $$("iframe", {
  5393. "webkitallowfullscreen": "",
  5394. "mozallowfullscreen": "",
  5395. "allowfullscreen": "",
  5396. "frameborder": "no",
  5397. "border": "0",
  5398. "scrolling ": "no",
  5399. "style": {
  5400. "cssText": "border:0; width:100%; height:100%;"
  5401. },
  5402. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5403. })
  5404. _box.appendChild(_iframe);
  5405. _box.appendChild(_jie);
  5406. _formdiv = new U.UF.UI.form(
  5407. "思維網格-" + _username,
  5408. _box, {
  5409. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5410. "style": {
  5411. "width": "90%",
  5412. "height": "90%",
  5413. "overflow": 'hidden'
  5414. },
  5415. "onresize": function () { }
  5416. }, {
  5417. closecallback: function () { }
  5418. }, {
  5419. "style": {
  5420. "height": "36px"
  5421. }
  5422. }).form; //創建窗體
  5423. _taskbar = {
  5424. "id": str + _formdiv.id,
  5425. "style": {
  5426. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5427. },
  5428. "name": "思維網格",
  5429. "forms": _formdiv,
  5430. "click": function() {
  5431. U.MD.D.I.openApplication(str, obj, info);
  5432. }
  5433. }
  5434. break;
  5435. case "courseDesign":
  5436. _iframe = $$("iframe", {
  5437. "webkitallowfullscreen": "",
  5438. "mozallowfullscreen": "",
  5439. "allowfullscreen": "",
  5440. "frameborder": "no",
  5441. "border": "0",
  5442. "scrolling ": "no",
  5443. "style": {
  5444. "cssText": "border:0; width:100%; height:100%;"
  5445. },
  5446. "src": "/course-design-vue"
  5447. })
  5448. _box.appendChild(_iframe);
  5449. _box.appendChild(_jie);
  5450. _formdiv = new U.UF.UI.form(
  5451. "項目設計-" + _username,
  5452. _box, {
  5453. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5454. "style": {
  5455. "width": "90%",
  5456. "height": "90%",
  5457. "overflow": 'hidden'
  5458. },
  5459. "onresize": function () { }
  5460. }, {
  5461. closecallback: function () { }
  5462. }, {
  5463. "style": {
  5464. "height": "36px"
  5465. }
  5466. }).form; //創建窗體
  5467. _taskbar = {
  5468. "id": str + _formdiv.id,
  5469. "style": {
  5470. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5471. },
  5472. "name": "項目設計",
  5473. "forms": _formdiv,
  5474. "click": function() {
  5475. U.MD.D.I.openApplication(str, obj, info);
  5476. }
  5477. }
  5478. break;
  5479. }
  5480. const script1 = document.createElement("script");
  5481. script1.type = "text/javascript";
  5482. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5483. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5484. const script2 = document.createElement("script");
  5485. script2.type = "text/javascript";
  5486. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5487. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5488. const script3 = document.createElement("script");
  5489. script3.type = "text/javascript";
  5490. script3.charset = "UTF-8";
  5491. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5492. const script4 = document.createElement("script");
  5493. script4.type = "text/javascript";
  5494. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5495. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  5496. if (_iframe) {
  5497. if (str == 'doc') {
  5498. _iframe = _formdiv.querySelector('iframe')
  5499. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5500. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5501. _iframe.contentWindow.document.body.appendChild(script1);
  5502. _iframe.contentWindow.document.body.appendChild(script2);
  5503. // _iframe.contentWindow.document.body.appendChild(script3);
  5504. _iframe.contentWindow.document.body.appendChild(script4);
  5505. })
  5506. if (onloadListener) {
  5507. _iframe.contentDocument.location.reload()
  5508. } else {
  5509. _iframe.contentDocument.location.reload()
  5510. }
  5511. } else if (str == 'courseDesign') {
  5512. U.UF.DL.iframeLoad(_iframe, function() {
  5513. // _iframe.contentWindow.U.MD.O.W.load();
  5514. // _iframe.contentWindow.document.body.appendChild(script1);
  5515. _iframe.contentWindow.document.body.appendChild(script2);
  5516. _iframe.contentWindow.document.body.appendChild(script4);
  5517. })
  5518. } else if (str == 'mind') {
  5519. _iframe = _formdiv.querySelector('iframe')
  5520. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5521. //
  5522. _iframe.contentWindow.document.body.appendChild(script1);
  5523. _iframe.contentWindow.document.body.appendChild(script2);
  5524. _iframe.contentWindow.document.body.appendChild(script4);
  5525. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5526. })
  5527. if (onloadListener) {
  5528. _iframe.contentDocument.location.reload()
  5529. } else {
  5530. _iframe.contentDocument.location.reload()
  5531. }
  5532. } else if (str == 'whiteboard') {
  5533. _iframe = _formdiv.querySelector('iframe')
  5534. let onloadListener = _iframe.onload = () => {
  5535. _iframe.contentWindow.document.body.appendChild(script1);
  5536. _iframe.contentWindow.document.body.appendChild(script2);
  5537. _iframe.contentWindow.document.body.appendChild(script4);
  5538. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5539. };
  5540. if (onloadListener) {
  5541. _iframe.contentDocument.location.reload()
  5542. } else {
  5543. _iframe.contentDocument.location.reload()
  5544. }
  5545. } else {
  5546. _iframe.onload = () => {
  5547. _iframe.contentWindow.document.body.appendChild(script1);
  5548. _iframe.contentWindow.document.body.appendChild(script2);
  5549. // _iframe.contentWindow.document.body.appendChild(script3);
  5550. _iframe.contentWindow.document.body.appendChild(script4);
  5551. };
  5552. }
  5553. _jie.onclick = async() => {
  5554. let text = ''
  5555. if (aTool == 1) {
  5556. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5557. } else if (aTool == 6) {
  5558. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5559. } else if (aTool == 3) {
  5560. text = await U.MD.D.I.getEditorContent(_iframe);
  5561. }
  5562. _loading.style.display = 'flex'
  5563. console.log(_loading);
  5564. var _ajs = _iframe.contentWindow.document.createElement("script");
  5565. _ajs.type = "text/javascript";
  5566. _ajs.innerHTML =
  5567. // 'console.log(' + _loading + ');\n' +
  5568. 'var _js = document.createElement("script");\n' +
  5569. '_js.type="text/javascript";\n' +
  5570. '_js.charset="UTF-8";\n' +
  5571. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5572. "_js.onload = function(){\n" +
  5573. ' var a = document.getElementsByTagName("img")\n' +
  5574. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5575. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5576. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5577. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5578. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5579. "beforeUpload_shishi(file," +
  5580. "'" +
  5581. _userid +
  5582. "'" +
  5583. ", " +
  5584. "'" +
  5585. _cid +
  5586. "'" +
  5587. ", " +
  5588. "'" +
  5589. _stage +
  5590. "'" +
  5591. ", " +
  5592. "'" +
  5593. _task +
  5594. "'" +
  5595. ", " +
  5596. "'" +
  5597. _tool +
  5598. "'" +
  5599. ", " +
  5600. "'" +
  5601. (str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid) +
  5602. "'" +
  5603. ", " +
  5604. "'" +
  5605. aTool +
  5606. "'" +
  5607. ", " +
  5608. "`" +
  5609. text +
  5610. "`" +
  5611. ")\n" +
  5612. " });\n" +
  5613. "}\n" +
  5614. "document.head.appendChild(_js);\n";
  5615. _iframe.contentWindow.document.head.appendChild(_ajs);
  5616. }
  5617. }
  5618. }
  5619. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5620. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5621. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5622. _userid = student.userid, //登錄用戶id
  5623. _username = student.student //用戶名字
  5624. let _iframe;
  5625. let _cid = cid,
  5626. _stage = stage,
  5627. _task = task,
  5628. _tool = tool;
  5629. var _jie = $$("div", {
  5630. "style": {
  5631. "position": "absolute",
  5632. "bottom": "50px",
  5633. "right": "50px",
  5634. "zIndex": "9999",
  5635. "backgroundColor": "#2268bc",
  5636. "color": "#fff",
  5637. "padding": "12px 20px",
  5638. "cursor": "pointer",
  5639. "borderRadius": "4px",
  5640. },
  5641. "innerHTML": "提交作業"
  5642. })
  5643. let aTool = ''
  5644. let _loading = document.createElement('div')
  5645. _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;"
  5646. // _loading.id = "";
  5647. let _lchild = document.createElement('div')
  5648. let _limg = document.createElement('img')
  5649. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5650. _limg.style = "width: 26px;margin-right: 10px;"
  5651. _lchild.appendChild(_limg)
  5652. let _lspan = document.createElement('span')
  5653. _lspan.innerHTML = "上傳中..."
  5654. _lchild.appendChild(_lspan)
  5655. _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%);"
  5656. _loading.appendChild(_lchild)
  5657. var _box = $$('div', {
  5658. "style": {
  5659. "position": "relative",
  5660. "width": "100%",
  5661. "height": "100%",
  5662. },
  5663. })
  5664. _box.appendChild(_loading)
  5665. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5666. switch (str) {
  5667. case "whiteboard":
  5668. aTool = 1;
  5669. _iframe = $$("iframe", {
  5670. "frameborder": "no",
  5671. "border": "0",
  5672. "scrolling ": "no",
  5673. "style": {
  5674. "cssText": "border:0;width:100%;height:100%"
  5675. },
  5676. "src": "https://iwb.cocorobo.hk/"
  5677. })
  5678. _box.appendChild(_iframe);
  5679. _box.appendChild(_jie);
  5680. _formdiv = new U.UF.UI.form(
  5681. "電子白板-" + _username,
  5682. _box, {
  5683. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5684. "style": {
  5685. "width": "90%",
  5686. "height": "90%",
  5687. "overflow": 'hidden'
  5688. },
  5689. "onresize": function () { }
  5690. }, {
  5691. closecallback: function () { }
  5692. }, {
  5693. "style": {
  5694. "height": "36px"
  5695. }
  5696. }).form; //創建窗體
  5697. _taskbar = {
  5698. "id": str + _formdiv.id,
  5699. "style": {
  5700. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5701. },
  5702. "name": "電子白板",
  5703. "forms": _formdiv,
  5704. "click": function() {
  5705. U.MD.D.I.openApplication(str, obj, info);
  5706. }
  5707. }
  5708. break;
  5709. case "mind":
  5710. aTool = 3;
  5711. _iframe = $$("iframe", {
  5712. "frameborder": "no",
  5713. "border": "0",
  5714. "scrolling ": "no",
  5715. "style": {
  5716. "cssText": "border:0;width:100%;height:100%"
  5717. },
  5718. "src": "/kityminder-editor/dist/index.html"
  5719. })
  5720. _box.appendChild(_iframe);
  5721. _box.appendChild(_jie);
  5722. _formdiv = new U.UF.UI.form(
  5723. "思維導圖-" + _username,
  5724. _box, { //"/jsmind/example/demo.html"
  5725. "id": "mind" + cid + stage + task + tool + _userid,
  5726. "style": {
  5727. "width": "90%",
  5728. "height": "90%",
  5729. "overflow": 'hidden'
  5730. },
  5731. "onresize": function () { }
  5732. }, {
  5733. closecallback: function () { }
  5734. }, {
  5735. "style": {
  5736. "height": "36px"
  5737. }
  5738. }).form; //創建窗體
  5739. _taskbar = {
  5740. "id": str + _formdiv.id,
  5741. "style": {
  5742. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5743. },
  5744. "name": "思維導圖",
  5745. "forms": _formdiv,
  5746. "click": function() {
  5747. U.MD.D.I.openApplication(str, obj, info);
  5748. }
  5749. }
  5750. break;
  5751. case "MindMap":
  5752. aTool = 3;
  5753. _iframe = $$("iframe", {
  5754. "frameborder": "no",
  5755. "border": "0",
  5756. "scrolling ": "no",
  5757. "style": {
  5758. "cssText": "border:0;width:100%;height:100%"
  5759. },
  5760. "src": "//cloud.cocorobo.hk/mind/"
  5761. })
  5762. _box.appendChild(_iframe);
  5763. _box.appendChild(_jie);
  5764. _formdiv = new U.UF.UI.form(
  5765. "思維導圖-" + _username,
  5766. _box, { //"/jsmind/example/demo.html"
  5767. "id": "mind" + cid + stage + task + tool + _userid,
  5768. "style": {
  5769. "width": "90%",
  5770. "height": "90%",
  5771. "overflow": 'hidden'
  5772. },
  5773. "onresize": function () { }
  5774. }, {
  5775. closecallback: function () { }
  5776. }, {
  5777. "style": {
  5778. "height": "36px"
  5779. }
  5780. }).form; //創建窗體
  5781. _taskbar = {
  5782. "id": str + _formdiv.id,
  5783. "style": {
  5784. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5785. },
  5786. "name": "思維導圖",
  5787. "forms": _formdiv,
  5788. "click": function() {
  5789. U.MD.D.I.openApplication(str, obj, info);
  5790. }
  5791. }
  5792. break;
  5793. case "doc":
  5794. aTool = 6;
  5795. _iframe = $$("iframe", {
  5796. "frameborder": "no",
  5797. "border": "0",
  5798. "scrolling ": "no",
  5799. "style": {
  5800. "cssText": "border:0;width:100%;height:100%"
  5801. },
  5802. "src": "/Office/Word/WordEditArea.htm"
  5803. })
  5804. _box.appendChild(_iframe);
  5805. _box.appendChild(_jie);
  5806. _formdiv = new U.UF.UI.form(
  5807. "協同文檔-" + _username,
  5808. _box, {
  5809. "id": "doc" + cid + stage + task + tool + _userid,
  5810. "style": {
  5811. "width": "90%",
  5812. "height": "90%",
  5813. "overflow": 'hidden'
  5814. },
  5815. "onresize": function () { }
  5816. }, {
  5817. closecallback: function () { }
  5818. }, {
  5819. "style": {
  5820. "height": "36px"
  5821. }
  5822. }).form; //創建窗體
  5823. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  5824. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5825. })
  5826. _taskbar = {
  5827. "id": str + _formdiv.id,
  5828. "style": {
  5829. "backgroundImage": "url(/img/icon/doc.png)"
  5830. },
  5831. "name": "協同文檔",
  5832. "forms": _formdiv,
  5833. "click": function() {
  5834. U.MD.D.I.openApplication(str, obj, info);
  5835. }
  5836. }
  5837. break;
  5838. case "mindNetwork": //好友打開
  5839. aTool = 7;
  5840. _iframe = $$("iframe", {
  5841. "webkitallowfullscreen": "",
  5842. "mozallowfullscreen": "",
  5843. "allowfullscreen": "",
  5844. "frameborder": "no",
  5845. "border": "0",
  5846. "scrolling ": "no",
  5847. "style": {
  5848. "cssText": "border:0; width:100%; height:100%;"
  5849. },
  5850. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5851. })
  5852. _box.appendChild(_iframe);
  5853. _box.appendChild(_jie);
  5854. _formdiv = new U.UF.UI.form(
  5855. "思維網格-" + _username,
  5856. _box, {
  5857. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5858. "style": {
  5859. "width": "90%",
  5860. "height": "90%",
  5861. "overflow": 'hidden'
  5862. },
  5863. "onresize": function () { }
  5864. }, {
  5865. closecallback: function () { }
  5866. }, {
  5867. "style": {
  5868. "height": "36px"
  5869. }
  5870. }).form; //創建窗體
  5871. _taskbar = {
  5872. "id": str + _formdiv.id,
  5873. "style": {
  5874. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5875. },
  5876. "name": "思維網格",
  5877. "forms": _formdiv,
  5878. "click": function() {
  5879. U.MD.D.I.openApplication(str, obj, info);
  5880. }
  5881. }
  5882. break;
  5883. case "courseDesign":
  5884. _iframe = $$("iframe", {
  5885. "webkitallowfullscreen": "",
  5886. "mozallowfullscreen": "",
  5887. "allowfullscreen": "",
  5888. "frameborder": "no",
  5889. "border": "0",
  5890. "scrolling ": "no",
  5891. "style": {
  5892. "cssText": "border:0; width:100%; height:100%;"
  5893. },
  5894. "src": "/course-design-vue"
  5895. })
  5896. _box.appendChild(_iframe);
  5897. _box.appendChild(_jie);
  5898. _formdiv = new U.UF.UI.form(
  5899. "項目設計-" + _username,
  5900. _box, {
  5901. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5902. "style": {
  5903. "width": "90%",
  5904. "height": "90%",
  5905. "overflow": 'hidden'
  5906. },
  5907. "onresize": function () { }
  5908. }, {
  5909. closecallback: function () { }
  5910. }, {
  5911. "style": {
  5912. "height": "36px"
  5913. }
  5914. }).form; //創建窗體
  5915. _taskbar = {
  5916. "id": str + _formdiv.id,
  5917. "style": {
  5918. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5919. },
  5920. "name": "項目設計",
  5921. "forms": _formdiv,
  5922. "click": function() {
  5923. U.MD.D.I.openApplication(str, obj, info);
  5924. }
  5925. }
  5926. break;
  5927. }
  5928. const script1 = document.createElement("script");
  5929. script1.type = "text/javascript";
  5930. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5931. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5932. const script2 = document.createElement("script");
  5933. script2.type = "text/javascript";
  5934. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5935. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5936. const script3 = document.createElement("script");
  5937. script3.type = "text/javascript";
  5938. script3.charset = "UTF-8";
  5939. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5940. const script4 = document.createElement("script");
  5941. script4.type = "text/javascript";
  5942. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5943. script4.src = window.origin + "/js/Common/jietu2E.js";
  5944. if (_iframe) {
  5945. if (str == 'doc') {
  5946. _iframe = _formdiv.querySelector('iframe')
  5947. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5948. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5949. _iframe.contentWindow.document.body.appendChild(script1);
  5950. _iframe.contentWindow.document.body.appendChild(script2);
  5951. // _iframe.contentWindow.document.body.appendChild(script3);
  5952. _iframe.contentWindow.document.body.appendChild(script4);
  5953. })
  5954. if (onloadListener) {
  5955. _iframe.contentDocument.location.reload()
  5956. } else {
  5957. _iframe.contentDocument.location.reload()
  5958. }
  5959. } else if (str == 'courseDesign') {
  5960. U.UF.DL.iframeLoad(_iframe, function() {
  5961. // _iframe.contentWindow.U.MD.O.W.load();
  5962. // _iframe.contentWindow.document.body.appendChild(script1);
  5963. _iframe.contentWindow.document.body.appendChild(script2);
  5964. _iframe.contentWindow.document.body.appendChild(script4);
  5965. })
  5966. } else if (str == 'mind') {
  5967. _iframe = _formdiv.querySelector('iframe')
  5968. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5969. //
  5970. _iframe.contentWindow.document.body.appendChild(script1);
  5971. _iframe.contentWindow.document.body.appendChild(script2);
  5972. _iframe.contentWindow.document.body.appendChild(script4);
  5973. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5974. })
  5975. if (onloadListener) {
  5976. _iframe.contentDocument.location.reload()
  5977. } else {
  5978. _iframe.contentDocument.location.reload()
  5979. }
  5980. } else if (str == 'whiteboard') {
  5981. _iframe = _formdiv.querySelector('iframe')
  5982. let onloadListener = _iframe.onload = () => {
  5983. _iframe.contentWindow.document.body.appendChild(script1);
  5984. _iframe.contentWindow.document.body.appendChild(script2);
  5985. _iframe.contentWindow.document.body.appendChild(script4);
  5986. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5987. };
  5988. if (onloadListener) {
  5989. _iframe.contentDocument.location.reload()
  5990. } else {
  5991. _iframe.contentDocument.location.reload()
  5992. }
  5993. } else {
  5994. _iframe.onload = () => {
  5995. _iframe.contentWindow.document.body.appendChild(script1);
  5996. _iframe.contentWindow.document.body.appendChild(script2);
  5997. // _iframe.contentWindow.document.body.appendChild(script3);
  5998. _iframe.contentWindow.document.body.appendChild(script4);
  5999. };
  6000. }
  6001. _jie.onclick = async() => {
  6002. let text = ''
  6003. if (aTool == 1) {
  6004. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6005. } else if (aTool == 6) {
  6006. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6007. } else if (aTool == 3) {
  6008. text = await U.MD.D.I.getEditorContent(_iframe);
  6009. }
  6010. _loading.style.display = 'flex'
  6011. console.log(_loading);
  6012. var _ajs = _iframe.contentWindow.document.createElement("script");
  6013. _ajs.type = "text/javascript";
  6014. _ajs.innerHTML =
  6015. // 'console.log(' + _loading + ');\n' +
  6016. 'var _js = document.createElement("script");\n' +
  6017. '_js.type="text/javascript";\n' +
  6018. '_js.charset="UTF-8";\n' +
  6019. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6020. "_js.onload = function(){\n" +
  6021. ' var a = document.getElementsByTagName("img")\n' +
  6022. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6023. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6024. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6025. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6026. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6027. "beforeUpload_shishi(file," +
  6028. "'" +
  6029. _userid +
  6030. "'" +
  6031. ", " +
  6032. "'" +
  6033. _cid +
  6034. "'" +
  6035. ", " +
  6036. "'" +
  6037. _stage +
  6038. "'" +
  6039. ", " +
  6040. "'" +
  6041. _task +
  6042. "'" +
  6043. ", " +
  6044. "'" +
  6045. _tool +
  6046. "'" +
  6047. ", " +
  6048. "'" +
  6049. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid) +
  6050. "'" +
  6051. ", " +
  6052. "'" +
  6053. aTool +
  6054. "'" +
  6055. ", " +
  6056. "`" +
  6057. text +
  6058. "`" +
  6059. ")\n" +
  6060. " });\n" +
  6061. "}\n" +
  6062. "document.head.appendChild(_js);\n";
  6063. _iframe.contentWindow.document.head.appendChild(_ajs);
  6064. }
  6065. }
  6066. }
  6067. U.MD.D.I.getEditorContent = function(iframe) {
  6068. return new Promise((resolve, reject) => {
  6069. iframe.contentWindow.editor.minder.exportData('json').then(function(content) {
  6070. console.log(content);
  6071. resolve(content)
  6072. });
  6073. });
  6074. }
  6075. U.MD.D.I.getContent = function(cid, s, task, t, uid, type, iframe) {
  6076. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  6077. // if (res.value[0].length > 0) {
  6078. // // resolve(res.value[0][0].text);
  6079. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  6080. // $(fileInput).val('');
  6081. // });
  6082. // }
  6083. // }, [], { "type": "GET", "withCredentials": true });
  6084. var xmlhttp;
  6085. var Mac, Sn, DeviceId
  6086. if (window.XMLHttpRequest) {
  6087. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6088. xmlhttp = new XMLHttpRequest();
  6089. }
  6090. else {
  6091. // IE6, IE5 瀏覽器執行代碼
  6092. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6093. }
  6094. xmlhttp.onreadystatechange = function() {
  6095. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6096. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6097. // resolve(res.value[0][0].text);
  6098. if (type == '2') {
  6099. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6100. } else if (type == '3') {
  6101. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6102. }
  6103. } else {
  6104. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  6105. }
  6106. }
  6107. }
  6108. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6109. xmlhttp.send();
  6110. }
  6111. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  6112. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6113. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6114. _userinfo = US.userInfo, //登錄用戶信息
  6115. _userid = US.userInfo.userid //登錄用戶id
  6116. let _iframe;
  6117. let _cid = cid,
  6118. _stage = stage,
  6119. _task = task,
  6120. _tool = tool;
  6121. var _jie = $$("div", {
  6122. "style": {
  6123. "position": "absolute",
  6124. "bottom": "50px",
  6125. "right": "50px",
  6126. "zIndex": "9999",
  6127. "backgroundColor": "#2268bc",
  6128. "color": "#fff",
  6129. "padding": "12px 20px",
  6130. "cursor": "pointer",
  6131. "borderRadius": "4px",
  6132. },
  6133. "innerHTML": "確認並提交"
  6134. })
  6135. let aTool = ''
  6136. let _loading = document.createElement('div')
  6137. _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;"
  6138. // _loading.id = "";
  6139. let _lchild = document.createElement('div')
  6140. let _limg = document.createElement('img')
  6141. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6142. _limg.style = "width: 26px;margin-right: 10px;"
  6143. _lchild.appendChild(_limg)
  6144. let _lspan = document.createElement('span')
  6145. _lspan.innerHTML = "上傳中..."
  6146. _lchild.appendChild(_lspan)
  6147. _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%);"
  6148. _loading.appendChild(_lchild)
  6149. var _box = $$('div', {
  6150. "style": {
  6151. "position": "relative",
  6152. "width": "100%",
  6153. "height": "100%",
  6154. },
  6155. })
  6156. _box.appendChild(_loading)
  6157. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool + _userid
  6158. switch (str) {
  6159. case "whiteboard":
  6160. aTool = 1;
  6161. _iframe = $$("iframe", {
  6162. "frameborder": "no",
  6163. "border": "0",
  6164. "scrolling ": "no",
  6165. "style": {
  6166. "cssText": "border:0;width:100%;height:100%"
  6167. },
  6168. "src": "https://iwb.cocorobo.hk/"
  6169. })
  6170. _box.appendChild(_iframe);
  6171. _box.appendChild(_jie);
  6172. _formdiv = new U.UF.UI.form(
  6173. "電子白板",
  6174. _box, {
  6175. "id": "whiteboards" + cid + stage + task + tool,
  6176. "style": {
  6177. "width": "90%",
  6178. "height": "90%",
  6179. "overflow": 'hidden'
  6180. },
  6181. "onresize": function () { }
  6182. }, {
  6183. closecallback: function () { }
  6184. }, {
  6185. "style": {
  6186. "height": "36px"
  6187. }
  6188. }).form; //創建窗體
  6189. _taskbar = {
  6190. "id": str + _formdiv.id,
  6191. "style": {
  6192. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6193. },
  6194. "name": "電子白板",
  6195. "forms": _formdiv,
  6196. "click": function() {
  6197. U.MD.D.I.openApplication(str, obj, info);
  6198. }
  6199. }
  6200. break;
  6201. case "mind":
  6202. aTool = 3;
  6203. _iframe = $$("iframe", {
  6204. "frameborder": "no",
  6205. "border": "0",
  6206. "scrolling ": "no",
  6207. "style": {
  6208. "cssText": "border:0;width:100%;height:100%"
  6209. },
  6210. "src": "/kityminder-editor/dist/index.html"
  6211. });
  6212. _box.appendChild(_iframe);
  6213. _box.appendChild(_jie);
  6214. _formdiv = new U.UF.UI.form(
  6215. "思維導圖",
  6216. _box, { //"/jsmind/example/demo.html"
  6217. "id": "minds" + cid + stage + task + tool,
  6218. "style": {
  6219. "width": "90%",
  6220. "height": "90%",
  6221. "overflow": 'hidden'
  6222. },
  6223. "onresize": function () { }
  6224. }, {
  6225. closecallback: function () { }
  6226. }, {
  6227. "style": {
  6228. "height": "36px"
  6229. }
  6230. }).form; //創建窗體
  6231. _taskbar = {
  6232. "id": str + _formdiv.id,
  6233. "style": {
  6234. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6235. },
  6236. "name": "思維導圖",
  6237. "forms": _formdiv,
  6238. "click": function() {
  6239. U.MD.D.I.openApplication(str, obj, info);
  6240. }
  6241. }
  6242. break;
  6243. case "doc":
  6244. aTool = 6;
  6245. _iframe = $$("iframe", {
  6246. "frameborder": "no",
  6247. "border": "0",
  6248. "scrolling ": "no",
  6249. "style": {
  6250. "cssText": "border:0;width:100%;height:100%"
  6251. },
  6252. "src": "/Office/Word/WordEditArea.htm"
  6253. })
  6254. _box.appendChild(_iframe);
  6255. _box.appendChild(_jie);
  6256. _formdiv = new U.UF.UI.form(
  6257. "協同文檔",
  6258. _box, {
  6259. "id": "docs" + cid + stage + task + tool,
  6260. "style": {
  6261. "width": "90%",
  6262. "height": "90%",
  6263. "overflow": 'hidden'
  6264. },
  6265. "onresize": function () { }
  6266. }, {
  6267. closecallback: function () { }
  6268. }, {
  6269. "style": {
  6270. "height": "36px"
  6271. }
  6272. }).form; //創建窗體
  6273. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6274. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6275. })
  6276. _taskbar = {
  6277. "id": str + _formdiv.id,
  6278. "style": {
  6279. "backgroundImage": "url(/img/icon/doc.png)"
  6280. },
  6281. "name": "協同文檔",
  6282. "forms": _formdiv,
  6283. "click": function() {
  6284. U.MD.D.I.openApplication(str, obj, info);
  6285. }
  6286. }
  6287. break;
  6288. }
  6289. const script1 = document.createElement("script");
  6290. script1.type = "text/javascript";
  6291. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6292. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6293. const script2 = document.createElement("script");
  6294. script2.type = "text/javascript";
  6295. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6296. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6297. const script3 = document.createElement("script");
  6298. script3.type = "text/javascript";
  6299. script3.charset = "UTF-8";
  6300. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6301. const script4 = document.createElement("script");
  6302. script4.type = "text/javascript";
  6303. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6304. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu4.js";
  6305. if (_iframe) {
  6306. if (str == 'doc') {
  6307. _iframe = _formdiv.querySelector('iframe')
  6308. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6309. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6310. _iframe.contentWindow.document.body.appendChild(script1);
  6311. _iframe.contentWindow.document.body.appendChild(script2);
  6312. // _iframe.contentWindow.document.body.appendChild(script3);
  6313. _iframe.contentWindow.document.body.appendChild(script4);
  6314. })
  6315. if (onloadListener) {
  6316. _iframe.contentDocument.location.reload()
  6317. } else {
  6318. _iframe.contentDocument.location.reload()
  6319. }
  6320. } else if (str == 'mind') {
  6321. _iframe = _formdiv.querySelector('iframe')
  6322. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6323. _iframe.contentWindow.document.body.appendChild(script1);
  6324. _iframe.contentWindow.document.body.appendChild(script2);
  6325. _iframe.contentWindow.document.body.appendChild(script4);
  6326. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6327. })
  6328. if (onloadListener) {
  6329. _iframe.contentDocument.location.reload()
  6330. } else {
  6331. _iframe.contentDocument.location.reload()
  6332. }
  6333. } else {
  6334. _iframe.onload = () => {
  6335. _iframe.contentWindow.document.body.appendChild(script1);
  6336. _iframe.contentWindow.document.body.appendChild(script2);
  6337. // _iframe.contentWindow.document.body.appendChild(script3);
  6338. _iframe.contentWindow.document.body.appendChild(script4);
  6339. };
  6340. }
  6341. _jie.onclick = async() => {
  6342. let text = ''
  6343. if (aTool == 6) {
  6344. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6345. } else if (aTool == 3) {
  6346. text = await U.MD.D.I.getEditorContent(_iframe);
  6347. }
  6348. _loading.style.display = 'flex'
  6349. console.log(_loading);
  6350. var _ajs = _iframe.contentWindow.document.createElement("script");
  6351. _ajs.type = "text/javascript";
  6352. _ajs.innerHTML =
  6353. // 'console.log(' + _loading + ');\n' +
  6354. 'var _js = document.createElement("script");\n' +
  6355. '_js.type="text/javascript";\n' +
  6356. '_js.charset="UTF-8";\n' +
  6357. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6358. "_js.onload = function(){\n" +
  6359. ' var a = document.getElementsByTagName("img")\n' +
  6360. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6361. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6362. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6363. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6364. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6365. "beforeUpload_shishi(file," +
  6366. "'" +
  6367. _userid +
  6368. "'" +
  6369. ", " +
  6370. "'" +
  6371. _cid +
  6372. "'" +
  6373. ", " +
  6374. "'" +
  6375. _stage +
  6376. "'" +
  6377. ", " +
  6378. "'" +
  6379. _task +
  6380. "'" +
  6381. ", " +
  6382. "'" +
  6383. _tool +
  6384. "'" +
  6385. ", " +
  6386. "'" +
  6387. (str + '_loadLi_JieS' + cid + stage + task + tool + _userid) +
  6388. "'" +
  6389. ", " +
  6390. "'" +
  6391. aTool +
  6392. "'" +
  6393. ", " +
  6394. "`" +
  6395. text +
  6396. "`" +
  6397. ")\n" +
  6398. " });\n" +
  6399. "}\n" +
  6400. "document.head.appendChild(_js);\n";
  6401. _iframe.contentWindow.document.head.appendChild(_ajs);
  6402. }
  6403. }
  6404. //U.MD.D.I.openClick(str);
  6405. //如果有任務欄信息
  6406. // if (_taskbar) {
  6407. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6408. // }
  6409. }
  6410. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  6411. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6412. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6413. _userinfo = US.userInfo, //登錄用戶信息
  6414. _userid = US.userInfo.userid //登錄用戶id
  6415. let _iframe;
  6416. let _cid = cid,
  6417. _stage = stage,
  6418. _task = task,
  6419. _tool = tool;
  6420. var _jie = $$("div", {
  6421. "style": {
  6422. "position": "absolute",
  6423. "bottom": "50px",
  6424. "right": "50px",
  6425. "zIndex": "9999",
  6426. "backgroundColor": "#2268bc",
  6427. "color": "#fff",
  6428. "padding": "12px 20px",
  6429. "cursor": "pointer",
  6430. "borderRadius": "4px",
  6431. },
  6432. "innerHTML": "確認並提交"
  6433. })
  6434. let aTool = ''
  6435. let _loading = document.createElement('div')
  6436. _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;"
  6437. // _loading.id = "";
  6438. let _lchild = document.createElement('div')
  6439. let _limg = document.createElement('img')
  6440. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6441. _limg.style = "width: 26px;margin-right: 10px;"
  6442. _lchild.appendChild(_limg)
  6443. let _lspan = document.createElement('span')
  6444. _lspan.innerHTML = "上傳中..."
  6445. _lchild.appendChild(_lspan)
  6446. _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%);"
  6447. _loading.appendChild(_lchild)
  6448. var _box = $$('div', {
  6449. "style": {
  6450. "position": "relative",
  6451. "width": "100%",
  6452. "height": "100%",
  6453. },
  6454. })
  6455. _box.appendChild(_loading)
  6456. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid
  6457. switch (str) {
  6458. case "whiteboard":
  6459. aTool = 1;
  6460. _iframe = $$("iframe", {
  6461. "frameborder": "no",
  6462. "border": "0",
  6463. "scrolling ": "no",
  6464. "style": {
  6465. "cssText": "border:0;width:100%;height:100%"
  6466. },
  6467. "src": "https://iwb.cocorobo.hk/"
  6468. })
  6469. _box.appendChild(_iframe);
  6470. _box.appendChild(_jie);
  6471. _formdiv = new U.UF.UI.form(
  6472. "電子白板",
  6473. _box, {
  6474. "id": "whiteboards" + cid + stage + task + tool,
  6475. "style": {
  6476. "width": "90%",
  6477. "height": "90%",
  6478. "overflow": 'hidden'
  6479. },
  6480. "onresize": function () { }
  6481. }, {
  6482. closecallback: function () { }
  6483. }, {
  6484. "style": {
  6485. "height": "36px"
  6486. }
  6487. }).form; //創建窗體
  6488. _taskbar = {
  6489. "id": str + _formdiv.id,
  6490. "style": {
  6491. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6492. },
  6493. "name": "電子白板",
  6494. "forms": _formdiv,
  6495. "click": function() {
  6496. U.MD.D.I.openApplication(str, obj, info);
  6497. }
  6498. }
  6499. break;
  6500. case "mind":
  6501. aTool = 3;
  6502. _iframe = $$("iframe", {
  6503. "frameborder": "no",
  6504. "border": "0",
  6505. "scrolling ": "no",
  6506. "style": {
  6507. "cssText": "border:0;width:100%;height:100%"
  6508. },
  6509. "src": "/kityminder-editor/dist/index.html"
  6510. });
  6511. _box.appendChild(_iframe);
  6512. _box.appendChild(_jie);
  6513. _formdiv = new U.UF.UI.form(
  6514. "思維導圖",
  6515. _box, { //"/jsmind/example/demo.html"
  6516. "id": "minds" + cid + stage + task + tool,
  6517. "style": {
  6518. "width": "90%",
  6519. "height": "90%",
  6520. "overflow": 'hidden'
  6521. },
  6522. "onresize": function () { }
  6523. }, {
  6524. closecallback: function () { }
  6525. }, {
  6526. "style": {
  6527. "height": "36px"
  6528. }
  6529. }).form; //創建窗體
  6530. _taskbar = {
  6531. "id": str + _formdiv.id,
  6532. "style": {
  6533. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6534. },
  6535. "name": "思維導圖",
  6536. "forms": _formdiv,
  6537. "click": function() {
  6538. U.MD.D.I.openApplication(str, obj, info);
  6539. }
  6540. }
  6541. break;
  6542. case "doc":
  6543. aTool = 6;
  6544. _iframe = $$("iframe", {
  6545. "frameborder": "no",
  6546. "border": "0",
  6547. "scrolling ": "no",
  6548. "style": {
  6549. "cssText": "border:0;width:100%;height:100%"
  6550. },
  6551. "src": "/Office/Word/WordEditArea.htm"
  6552. })
  6553. _box.appendChild(_iframe);
  6554. _box.appendChild(_jie);
  6555. _formdiv = new U.UF.UI.form(
  6556. "協同文檔",
  6557. _box, {
  6558. "id": "docs" + cid + stage + task + tool,
  6559. "style": {
  6560. "width": "90%",
  6561. "height": "90%",
  6562. "overflow": 'hidden'
  6563. },
  6564. "onresize": function () { }
  6565. }, {
  6566. closecallback: function () { }
  6567. }, {
  6568. "style": {
  6569. "height": "36px"
  6570. }
  6571. }).form; //創建窗體
  6572. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6573. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6574. })
  6575. _taskbar = {
  6576. "id": str + _formdiv.id,
  6577. "style": {
  6578. "backgroundImage": "url(/img/icon/doc.png)"
  6579. },
  6580. "name": "協同文檔",
  6581. "forms": _formdiv,
  6582. "click": function() {
  6583. U.MD.D.I.openApplication(str, obj, info);
  6584. }
  6585. }
  6586. break;
  6587. }
  6588. const script1 = document.createElement("script");
  6589. script1.type = "text/javascript";
  6590. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6591. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6592. const script2 = document.createElement("script");
  6593. script2.type = "text/javascript";
  6594. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6595. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6596. const script3 = document.createElement("script");
  6597. script3.type = "text/javascript";
  6598. script3.charset = "UTF-8";
  6599. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6600. const script4 = document.createElement("script");
  6601. script4.type = "text/javascript";
  6602. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6603. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu5.js";
  6604. if (_iframe) {
  6605. if (str == 'doc') {
  6606. _iframe = _formdiv.querySelector('iframe')
  6607. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6608. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6609. _iframe.contentWindow.document.body.appendChild(script1);
  6610. _iframe.contentWindow.document.body.appendChild(script2);
  6611. // _iframe.contentWindow.document.body.appendChild(script3);
  6612. _iframe.contentWindow.document.body.appendChild(script4);
  6613. })
  6614. if (onloadListener) {
  6615. _iframe.contentDocument.location.reload()
  6616. } else {
  6617. _iframe.contentDocument.location.reload()
  6618. }
  6619. } else if (str == 'mind') {
  6620. _iframe = _formdiv.querySelector('iframe')
  6621. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6622. _iframe.contentWindow.document.body.appendChild(script1);
  6623. _iframe.contentWindow.document.body.appendChild(script2);
  6624. _iframe.contentWindow.document.body.appendChild(script4);
  6625. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6626. })
  6627. if (onloadListener) {
  6628. _iframe.contentDocument.location.reload()
  6629. } else {
  6630. _iframe.contentDocument.location.reload()
  6631. }
  6632. } else {
  6633. _iframe.onload = () => {
  6634. _iframe.contentWindow.document.body.appendChild(script1);
  6635. _iframe.contentWindow.document.body.appendChild(script2);
  6636. // _iframe.contentWindow.document.body.appendChild(script3);
  6637. _iframe.contentWindow.document.body.appendChild(script4);
  6638. };
  6639. }
  6640. _jie.onclick = async() => {
  6641. let text = ''
  6642. if (aTool == 6) {
  6643. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6644. } else if (aTool == 3) {
  6645. text = await U.MD.D.I.getEditorContent(_iframe);
  6646. }
  6647. _loading.style.display = 'flex'
  6648. console.log(_loading);
  6649. var _ajs = _iframe.contentWindow.document.createElement("script");
  6650. _ajs.type = "text/javascript";
  6651. _ajs.innerHTML =
  6652. // 'console.log(' + _loading + ');\n' +
  6653. 'var _js = document.createElement("script");\n' +
  6654. '_js.type="text/javascript";\n' +
  6655. '_js.charset="UTF-8";\n' +
  6656. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6657. "_js.onload = function(){\n" +
  6658. ' var a = document.getElementsByTagName("img")\n' +
  6659. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6660. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6661. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6662. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6663. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6664. "beforeUpload_shishi(file," +
  6665. "'" +
  6666. _userid +
  6667. "'" +
  6668. ", " +
  6669. "'" +
  6670. _cid +
  6671. "'" +
  6672. ", " +
  6673. "'" +
  6674. _stage +
  6675. "'" +
  6676. ", " +
  6677. "'" +
  6678. _task +
  6679. "'" +
  6680. ", " +
  6681. "'" +
  6682. _tool +
  6683. "'" +
  6684. ", " +
  6685. "'" +
  6686. (str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid) +
  6687. "'" +
  6688. ", " +
  6689. "'" +
  6690. aTool +
  6691. "'" +
  6692. ", " +
  6693. "`" +
  6694. text +
  6695. "`" +
  6696. ")\n" +
  6697. " });\n" +
  6698. "}\n" +
  6699. "document.head.appendChild(_js);\n";
  6700. _iframe.contentWindow.document.head.appendChild(_ajs);
  6701. }
  6702. }
  6703. //U.MD.D.I.openClick(str);
  6704. //如果有任務欄信息
  6705. // if (_taskbar) {
  6706. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6707. // }
  6708. }
  6709. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6710. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6711. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6712. _userinfo = US.userInfo, //登錄用戶信息
  6713. _userid = US.userInfo.userid //登錄用戶id
  6714. let _iframe;
  6715. let _cid = cid,
  6716. _stage = stage,
  6717. _task = task,
  6718. _tool = tool;
  6719. var _jie = $$("div", {
  6720. "style": {
  6721. "position": "absolute",
  6722. "bottom": "50px",
  6723. "right": "50px",
  6724. "zIndex": "9999",
  6725. "backgroundColor": "#2268bc",
  6726. "color": "#fff",
  6727. "padding": "12px 20px",
  6728. "cursor": "pointer",
  6729. "borderRadius": "4px",
  6730. },
  6731. "innerHTML": "上傳模板"
  6732. })
  6733. let aTool = ''
  6734. let _loading = document.createElement('div')
  6735. _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;"
  6736. // _loading.id = "";
  6737. let _lchild = document.createElement('div')
  6738. let _limg = document.createElement('img')
  6739. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6740. _limg.style = "width: 26px;margin-right: 10px;"
  6741. _lchild.appendChild(_limg)
  6742. let _lspan = document.createElement('span')
  6743. _lspan.innerHTML = "上傳中..."
  6744. _lchild.appendChild(_lspan)
  6745. _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%);"
  6746. _loading.appendChild(_lchild)
  6747. var _box = $$('div', {
  6748. "style": {
  6749. "position": "relative",
  6750. "width": "100%",
  6751. "height": "100%",
  6752. },
  6753. })
  6754. _box.appendChild(_loading)
  6755. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool + _userid
  6756. switch (str) {
  6757. case "whiteboard":
  6758. aTool = 1;
  6759. _iframe = $$("iframe", {
  6760. "frameborder": "no",
  6761. "border": "0",
  6762. "scrolling ": "no",
  6763. "style": {
  6764. "cssText": "border:0;width:100%;height:100%"
  6765. },
  6766. "src": "https://iwb.cocorobo.hk/"
  6767. })
  6768. _box.appendChild(_iframe);
  6769. _box.appendChild(_jie);
  6770. _formdiv = new U.UF.UI.form(
  6771. "電子白板",
  6772. _box, {
  6773. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6774. "style": {
  6775. "width": "90%",
  6776. "height": "90%",
  6777. "overflow": 'hidden'
  6778. },
  6779. "onresize": function () { }
  6780. }, {
  6781. closecallback: function () { }
  6782. }, {
  6783. "style": {
  6784. "height": "36px"
  6785. }
  6786. }).form; //創建窗體
  6787. _taskbar = {
  6788. "id": str + _formdiv.id,
  6789. "style": {
  6790. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6791. },
  6792. "name": "電子白板",
  6793. "forms": _formdiv,
  6794. "click": function() {
  6795. U.MD.D.I.openApplication(str, obj, info);
  6796. }
  6797. }
  6798. break;
  6799. case "mind":
  6800. aTool = 3;
  6801. _iframe = $$("iframe", {
  6802. "frameborder": "no",
  6803. "border": "0",
  6804. "scrolling ": "no",
  6805. "style": {
  6806. "cssText": "border:0;width:100%;height:100%"
  6807. },
  6808. "src": "/kityminder-editor/dist/index.html"
  6809. });
  6810. _box.appendChild(_iframe);
  6811. _box.appendChild(_jie);
  6812. _formdiv = new U.UF.UI.form(
  6813. "思維導圖",
  6814. _box, { //"/jsmind/example/demo.html"
  6815. "id": "minds_Yu" + cid + stage + task + tool,
  6816. "style": {
  6817. "width": "90%",
  6818. "height": "90%",
  6819. "overflow": 'hidden'
  6820. },
  6821. "onresize": function () { }
  6822. }, {
  6823. closecallback: function () { }
  6824. }, {
  6825. "style": {
  6826. "height": "36px"
  6827. }
  6828. }).form; //創建窗體
  6829. _taskbar = {
  6830. "id": str + _formdiv.id,
  6831. "style": {
  6832. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6833. },
  6834. "name": "思維導圖",
  6835. "forms": _formdiv,
  6836. "click": function() {
  6837. U.MD.D.I.openApplication(str, obj, info);
  6838. }
  6839. }
  6840. break;
  6841. case "doc":
  6842. aTool = 6;
  6843. _iframe = $$("iframe", {
  6844. "frameborder": "no",
  6845. "border": "0",
  6846. "scrolling ": "no",
  6847. "style": {
  6848. "cssText": "border:0;width:100%;height:100%"
  6849. },
  6850. "src": "/Office/Word/WordEditArea.htm"
  6851. })
  6852. _box.appendChild(_iframe);
  6853. _box.appendChild(_jie);
  6854. _formdiv = new U.UF.UI.form(
  6855. "協同文檔",
  6856. _box, {
  6857. "id": "docs_Yu" + cid + stage + task + tool,
  6858. "style": {
  6859. "width": "90%",
  6860. "height": "90%",
  6861. "overflow": 'hidden'
  6862. },
  6863. "onresize": function () { }
  6864. }, {
  6865. closecallback: function () { }
  6866. }, {
  6867. "style": {
  6868. "height": "36px"
  6869. }
  6870. }).form; //創建窗體
  6871. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6872. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6873. })
  6874. _taskbar = {
  6875. "id": str + _formdiv.id,
  6876. "style": {
  6877. "backgroundImage": "url(/img/icon/doc.png)"
  6878. },
  6879. "name": "協同文檔",
  6880. "forms": _formdiv,
  6881. "click": function() {
  6882. U.MD.D.I.openApplication(str, obj, info);
  6883. }
  6884. }
  6885. break;
  6886. case "CocoPi":
  6887. aTool = 57;
  6888. _iframe = $$("iframe", {
  6889. "allowpaymentrequest":"allowpaymentrequest",
  6890. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6891. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6892. "frameborder": "no",
  6893. "border": "0",
  6894. "scrolling ": "no",
  6895. "style": {
  6896. "cssText": "border:0;width:100%;height:100%"
  6897. },
  6898. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  6899. })
  6900. _box.appendChild(_iframe);
  6901. _box.appendChild(_jie);
  6902. _formdiv = new U.UF.UI.form(
  6903. "CocoPi",
  6904. _box, {
  6905. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6906. "style": {
  6907. "width": "90%",
  6908. "height": "90%",
  6909. "overflow": 'hidden'
  6910. },
  6911. "onresize": function() {}
  6912. }, {
  6913. closecallback: function() {}
  6914. }, {
  6915. "style": {
  6916. "height": "36px"
  6917. }
  6918. }).form; //創建窗體
  6919. _taskbar = {
  6920. "id": str + _formdiv.id,
  6921. "style": {
  6922. "backgroundImage": "url(/img/icon/cocopi.png)"
  6923. },
  6924. "name": "CocoPi",
  6925. "forms": _formdiv,
  6926. "click": function () {
  6927. U.MD.D.I.openApplication(str, obj, info);
  6928. }
  6929. }
  6930. break;
  6931. }
  6932. if (_iframe) {
  6933. if (str == 'doc') {
  6934. _iframe = _formdiv.querySelector('iframe')
  6935. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6936. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6937. })
  6938. if (onloadListener) {
  6939. _iframe.contentDocument.location.reload()
  6940. } else {
  6941. _iframe.contentDocument.location.reload()
  6942. }
  6943. } else if (str == 'mind') {
  6944. _iframe = _formdiv.querySelector('iframe')
  6945. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6946. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6947. })
  6948. if (onloadListener) {
  6949. _iframe.contentDocument.location.reload()
  6950. } else {
  6951. _iframe.contentDocument.location.reload()
  6952. }
  6953. } else if (str == 'whiteboard') {
  6954. _iframe = _formdiv.querySelector('iframe')
  6955. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6956. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6957. })
  6958. if (onloadListener) {
  6959. _iframe.contentDocument.location.reload()
  6960. } else {
  6961. _iframe.contentDocument.location.reload()
  6962. }
  6963. } else if (str == 'CocoPi') {
  6964. _iframe = _formdiv.querySelector('iframe')
  6965. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6966. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6967. })
  6968. if (onloadListener) {
  6969. _iframe.contentDocument.location.reload()
  6970. } else {
  6971. _iframe.contentDocument.location.reload()
  6972. }
  6973. } else {
  6974. _iframe.onload = () => {};
  6975. }
  6976. _jie.onclick = async() => {
  6977. let text = ''
  6978. let type = '2'
  6979. if (aTool == 1) {
  6980. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6981. type = '3'
  6982. } else if (aTool == 6) {
  6983. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6984. type = '1'
  6985. } else if (aTool == 3) {
  6986. text = await U.MD.D.I.getEditorContent(_iframe);
  6987. type = '2'
  6988. } else if (aTool == 57) {
  6989. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6990. type = '4'
  6991. }
  6992. _loading.style.display = 'flex'
  6993. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6994. }
  6995. }
  6996. //U.MD.D.I.openClick(str);
  6997. //如果有任務欄信息
  6998. // if (_taskbar) {
  6999. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  7000. // }
  7001. }
  7002. U.MD.D.I.getContents = function(cid, s, task, t, uid, type, iframe) {
  7003. var xmlhttp;
  7004. var Mac, Sn, DeviceId
  7005. if (window.XMLHttpRequest) {
  7006. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7007. xmlhttp = new XMLHttpRequest();
  7008. }
  7009. else {
  7010. // IE6, IE5 瀏覽器執行代碼
  7011. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7012. }
  7013. xmlhttp.onreadystatechange = function() {
  7014. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7015. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7016. // resolve(res.value[0][0].text);
  7017. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7018. }
  7019. }
  7020. }
  7021. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7022. xmlhttp.send();
  7023. }
  7024. U.MD.D.I.getContents2 = function(cid, s, task, t, uid, type, iframe) {
  7025. var xmlhttp;
  7026. var Mac, Sn, DeviceId
  7027. if (window.XMLHttpRequest) {
  7028. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7029. xmlhttp = new XMLHttpRequest();
  7030. }
  7031. else {
  7032. // IE6, IE5 瀏覽器執行代碼
  7033. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7034. }
  7035. xmlhttp.onreadystatechange = function() {
  7036. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7037. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7038. // resolve(res.value[0][0].text);
  7039. if (type == '2') {
  7040. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7041. } else if (type == '3') {
  7042. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  7043. } else if (type == '4') {
  7044. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  7045. }
  7046. } else {
  7047. if (type == '2') {
  7048. iframe.contentWindow.editor.minder.importData('json', '')
  7049. } else if (type == '3') {
  7050. iframe.contentWindow.h.app.updateScene({ elements: [] })
  7051. } else if (type == '4') {
  7052. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7053. }
  7054. }
  7055. }
  7056. }
  7057. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7058. xmlhttp.send();
  7059. }
  7060. U.MD.D.I.setContents = function(cid, s, task, t, uid, type, text, loading, span) {
  7061. var xmlhttp;
  7062. var Mac, Sn, DeviceId
  7063. if (window.XMLHttpRequest) {
  7064. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7065. xmlhttp = new XMLHttpRequest();
  7066. }
  7067. else {
  7068. // IE6, IE5 瀏覽器執行代碼
  7069. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7070. }
  7071. xmlhttp.onreadystatechange = function () {
  7072. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7073. if (xmlhttp.response) {
  7074. // resolve(res.value[0][0].text);
  7075. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  7076. // $(fileInput).val('');
  7077. // });
  7078. span.innerHTML = '上傳成功'
  7079. setTimeout(() => {
  7080. loading.style.display = 'none'
  7081. }, 1000);
  7082. }
  7083. }
  7084. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  7085. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  7086. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  7087. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  7088. // 設置請求頭,表示請求體的編碼格式
  7089. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  7090. // 設置請求體,使用url-encoded格式的數據
  7091. }
  7092. }
  7093. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  7094. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7095. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7096. _userinfo = US.userInfo, //登錄用戶信息
  7097. _userid = US.userInfo.userid //登錄用戶id
  7098. let _iframe;
  7099. let _cid = cid,
  7100. _stage = stage,
  7101. _task = task,
  7102. _tool = tool;
  7103. var _jie = $$("div", {
  7104. "style": {
  7105. "position": "absolute",
  7106. "bottom": "50px",
  7107. "right": "50px",
  7108. "zIndex": "9999",
  7109. "backgroundColor": "#2268bc",
  7110. "color": "#fff",
  7111. "padding": "12px 20px",
  7112. "cursor": "pointer",
  7113. "borderRadius": "4px",
  7114. },
  7115. "innerHTML": "提交作業"
  7116. })
  7117. let aTool = ''
  7118. let _loading = document.createElement('div')
  7119. _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;"
  7120. // _loading.id = "";
  7121. let _lchild = document.createElement('div')
  7122. let _limg = document.createElement('img')
  7123. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7124. _limg.style = "width: 26px;margin-right: 10px;"
  7125. _lchild.appendChild(_limg)
  7126. let _lspan = document.createElement('span')
  7127. _lspan.innerHTML = "上傳中..."
  7128. _lchild.appendChild(_lspan)
  7129. _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%);"
  7130. _loading.appendChild(_lchild)
  7131. var _box = $$('div', {
  7132. "style": {
  7133. "position": "relative",
  7134. "width": "100%",
  7135. "height": "100%",
  7136. },
  7137. })
  7138. _box.appendChild(_loading)
  7139. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool + _userid
  7140. switch (str) {
  7141. case "CocoPi":
  7142. aTool = 57;
  7143. _iframe = $$("iframe", {
  7144. "allowpaymentrequest": "allowpaymentrequest",
  7145. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7146. "webkitallowfullscreen": "",
  7147. "mozallowfullscreen": "",
  7148. "frameborder": "no",
  7149. "border": "0",
  7150. "scrolling ": "no",
  7151. "style": {
  7152. "cssText": "border:0;width:100%;height:100%"
  7153. },
  7154. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7155. })
  7156. _box.appendChild(_iframe);
  7157. _box.appendChild(_jie);
  7158. _formdiv = new U.UF.UI.form(
  7159. "CocoPi",
  7160. _box, {
  7161. "id": "CocoPi_Upload" + cid + stage + task + tool,
  7162. "style": {
  7163. "width": "90%",
  7164. "height": "90%",
  7165. "overflow": 'hidden'
  7166. },
  7167. "onresize": function () { }
  7168. }, {
  7169. closecallback: function () { }
  7170. }, {
  7171. "style": {
  7172. "height": "36px"
  7173. }
  7174. }).form; //創建窗體
  7175. _taskbar = {
  7176. "id": str + _formdiv.id,
  7177. "style": {
  7178. "backgroundImage": "url(/img/icon/cocopi.png)"
  7179. },
  7180. "name": "CocoPi",
  7181. "forms": _formdiv,
  7182. "click": function() {
  7183. U.MD.D.I.openApplication(str, obj, info);
  7184. }
  7185. }
  7186. break;
  7187. }
  7188. if (_iframe) {
  7189. if (str == 'CocoPi') {
  7190. _iframe = _formdiv.querySelector('iframe')
  7191. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7192. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7193. })
  7194. if (onloadListener) {
  7195. _iframe.contentDocument.location.reload()
  7196. } else {
  7197. _iframe.contentDocument.location.reload()
  7198. }
  7199. }
  7200. _jie.onclick = async() => {
  7201. let text = ''
  7202. if (aTool == 57) {
  7203. text = _iframe.contentWindow.getLoadXmlStr()
  7204. }
  7205. _loading.style.display = 'flex'
  7206. console.log(_loading);
  7207. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function(res) {
  7208. _loading.style.display = 'none'
  7209. let _div = document.createElement('div')
  7210. _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;"
  7211. let _inner = document.createElement('div')
  7212. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7213. _inner.innerHTML = "上傳成功"
  7214. _div.appendChild(_inner)
  7215. _iframe.contentWindow.window.document.body.appendChild(_div)
  7216. _div.onclick = () => {
  7217. _iframe.contentWindow.window.document.body.removeChild(_div)
  7218. }
  7219. setTimeout(() => {
  7220. _iframe.contentWindow.window.document.body.removeChild(_div)
  7221. }, 1000);
  7222. }, [], { "type": "POST", "withCredentials": true });
  7223. }
  7224. }
  7225. }
  7226. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  7227. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7228. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7229. _userid = student.userid, //登錄用戶id
  7230. _username = student.student //用戶名字
  7231. let _iframe;
  7232. let _cid = cid,
  7233. _stage = stage,
  7234. _task = task,
  7235. _tool = tool;
  7236. var _jie = $$("div", {
  7237. "style": {
  7238. "position": "absolute",
  7239. "bottom": "50px",
  7240. "right": "50px",
  7241. "zIndex": "9999",
  7242. "backgroundColor": "#2268bc",
  7243. "color": "#fff",
  7244. "padding": "12px 20px",
  7245. "cursor": "pointer",
  7246. "borderRadius": "4px",
  7247. },
  7248. "innerHTML": "提交作業"
  7249. })
  7250. let aTool = ''
  7251. let _loading = document.createElement('div')
  7252. _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;"
  7253. // _loading.id = "";
  7254. let _lchild = document.createElement('div')
  7255. let _limg = document.createElement('img')
  7256. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7257. _limg.style = "width: 26px;margin-right: 10px;"
  7258. _lchild.appendChild(_limg)
  7259. let _lspan = document.createElement('span')
  7260. _lspan.innerHTML = "上傳中..."
  7261. _lchild.appendChild(_lspan)
  7262. _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%);"
  7263. _loading.appendChild(_lchild)
  7264. var _box = $$('div', {
  7265. "style": {
  7266. "position": "relative",
  7267. "width": "100%",
  7268. "height": "100%",
  7269. },
  7270. })
  7271. _box.appendChild(_loading)
  7272. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool + _userid
  7273. switch (str) {
  7274. case "CocoPi":
  7275. aTool = 57;
  7276. _iframe = $$("iframe", {
  7277. "allowpaymentrequest": "allowpaymentrequest",
  7278. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7279. "webkitallowfullscreen": "",
  7280. "mozallowfullscreen": "",
  7281. "frameborder": "no",
  7282. "border": "0",
  7283. "scrolling ": "no",
  7284. "style": {
  7285. "cssText": "border:0;width:100%;height:100%"
  7286. },
  7287. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7288. })
  7289. _box.appendChild(_iframe);
  7290. _box.appendChild(_jie);
  7291. _formdiv = new U.UF.UI.form(
  7292. "CocoPi-" + _username,
  7293. _box, {
  7294. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  7295. "style": {
  7296. "width": "90%",
  7297. "height": "90%",
  7298. "overflow": 'hidden'
  7299. },
  7300. "onresize": function () { }
  7301. }, {
  7302. closecallback: function () { }
  7303. }, {
  7304. "style": {
  7305. "height": "36px"
  7306. }
  7307. }).form; //創建窗體
  7308. _taskbar = {
  7309. "id": str + _formdiv.id,
  7310. "style": {
  7311. "backgroundImage": "url(/img/icon/cocopi.png)"
  7312. },
  7313. "name": "CocoPi",
  7314. "forms": _formdiv,
  7315. "click": function() {
  7316. U.MD.D.I.openApplication(str, obj, info);
  7317. }
  7318. }
  7319. break;
  7320. }
  7321. if (_iframe) {
  7322. if (str == 'CocoPi') {
  7323. _iframe = _formdiv.querySelector('iframe')
  7324. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7325. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7326. })
  7327. if (onloadListener) {
  7328. _iframe.contentDocument.location.reload()
  7329. } else {
  7330. _iframe.contentDocument.location.reload()
  7331. }
  7332. }
  7333. _jie.onclick = async() => {
  7334. let text = ''
  7335. if (aTool == 57) {
  7336. text = _iframe.contentWindow.getLoadXmlStr()
  7337. }
  7338. _loading.style.display = 'flex'
  7339. console.log(_loading);
  7340. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function(res) {
  7341. _loading.style.display = 'none'
  7342. let _div = document.createElement('div')
  7343. _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;"
  7344. let _inner = document.createElement('div')
  7345. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7346. _inner.innerHTML = "上傳成功"
  7347. _div.appendChild(_inner)
  7348. _iframe.contentWindow.window.document.body.appendChild(_div)
  7349. _div.onclick = () => {
  7350. _iframe.contentWindow.window.document.body.removeChild(_div)
  7351. }
  7352. setTimeout(() => {
  7353. _iframe.contentWindow.window.document.body.removeChild(_div)
  7354. }, 1000);
  7355. }, [], { "type": "POST", "withCredentials": true });
  7356. }
  7357. }
  7358. }
  7359. U.MD.D.I.getUploadContent = function(cid, s, task, t, uid, atool, type, iframe) {
  7360. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function(res) {
  7361. if (res.value[0].length > 0) {
  7362. if (atool == 57) {
  7363. iframe.contentWindow.loadingXml(res.value[0][0].content)
  7364. }
  7365. } else {
  7366. if (atool == 57) {
  7367. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  7368. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7369. }
  7370. }
  7371. }, [], { "type": "POST", "withCredentials": true });
  7372. }