DeskTop.js 473 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058
  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. { "Name": "数据看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  101. ];
  102. U.MD.D.I.studentDeskIcon = [
  103. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  104. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  105. // { "Name": "我的項目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  106. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  107. // { "Name": "我的評價", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  108. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  109. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  110. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  111. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  112. // { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  113. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  114. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  115. // { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  116. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  117. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  118. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  119. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  120. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  121. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  122. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  123. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  124. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  125. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  126. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  127. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  128. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  129. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  130. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  131. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  132. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  133. ];
  134. U.MD.D.I.studentDeskIcon2 = [
  135. // { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  136. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  137. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  138. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  139. ]
  140. U.MD.D.I.studentDeskIcon3 = [
  141. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  142. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  143. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  144. ]
  145. U.MD.D.I.schoolDeskIcon = [
  146. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  147. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  148. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  149. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  150. { "Name": "學習資料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  151. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  152. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  153. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  154. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  155. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  156. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  157. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  158. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  159. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  160. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  161. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  162. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  163. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  164. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  165. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  166. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  167. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  168. ];
  169. U.MD.D.I.orgDeskIcon = [
  170. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  171. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  172. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  173. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  174. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  175. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  176. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  177. ];
  178. U.MD.D.I.orgStemDeskIcon = [
  179. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  180. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  181. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  182. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  183. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  184. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  185. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  186. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  187. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  188. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  189. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  190. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  191. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  192. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  193. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  194. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  195. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  196. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  197. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  198. ];
  199. U.MD.D.I.szulsDeskIcon = [
  200. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  201. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  202. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  203. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  204. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  205. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  206. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  207. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  208. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  209. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  210. ];
  211. U.MD.D.I.hanDeskIcon = [
  212. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  213. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  214. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  215. { "Name": "漢字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  216. { "Name": "國學經典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  217. { "Name": "筆畫訓練", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  218. { "Name": "書法課堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  219. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  220. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  221. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  222. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  223. ];
  224. U.MD.D.I.GMteacherDeskIcon = [
  225. { "Name": "課程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  226. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  227. { "Name": "學生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  228. { "Name": "學生評價", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  229. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  230. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  231. { "Name": "班級管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  232. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  233. { "Name": "課程進展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  234. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  235. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  236. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  237. ];
  238. U.MD.D.I.GMstudentDeskIcon = [
  239. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  240. { "Name": "我的評價", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  241. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  242. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  243. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  244. ];
  245. //北師大
  246. U.MD.D.I.BSDNSteacherDeskIcon = [
  247. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  248. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  249. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  250. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  251. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  252. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  253. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  254. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  255. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  256. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  257. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  258. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  259. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  260. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  261. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  262. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  263. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  264. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  265. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  266. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  267. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  268. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  269. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  270. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  271. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  272. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  273. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  274. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  275. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  276. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  277. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  278. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  279. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  280. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  281. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  282. { "Name": "數字實驗室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  283. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  284. ];
  285. //松山湖
  286. U.MD.D.I.SONGteacherDeskIcon = [
  287. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  288. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  289. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  290. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  291. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  292. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  293. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  294. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  295. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  296. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  297. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  298. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  299. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  300. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  301. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  302. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  303. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  304. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  305. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  306. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  307. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  308. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  309. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  310. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  311. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  312. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  313. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  314. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  315. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  316. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  317. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  318. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  319. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  320. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  321. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  322. ];
  323. U.MD.D.I.tcStudentDeskIcon = [
  324. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  325. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  326. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  327. ];
  328. U.MD.D.I.tcTeacherDeskIcon = [
  329. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  330. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  331. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  332. // { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  333. // { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  334. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  335. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  336. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  337. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  338. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  339. ];
  340. U.MD.D.I.tcOrganizerDeskIcon = [
  341. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  342. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  343. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  344. { "Name": "師生項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  345. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  346. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  347. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  348. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  349. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  350. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  351. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  352. ];
  353. U.MD.D.I.szscStudentDeskIcon = [
  354. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  355. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  356. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  357. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  358. ];
  359. U.MD.D.I.szscTeacherDeskIcon = [
  360. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  361. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  362. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  363. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  364. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  365. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  366. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  367. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  368. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  369. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  370. ];
  371. U.MD.D.I.szscOrganizerDeskIcon = [
  372. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  373. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  374. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  375. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  376. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  377. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  378. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  379. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  380. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  381. ];
  382. U.MD.D.I.wankeTeacherDeskIcon = [ //1c3b9def-8fbe-11ed-b13d-005056b86db5
  383. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  384. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  385. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  386. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  387. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  388. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  389. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  390. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  391. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  392. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  393. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  394. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  395. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  396. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  397. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  398. { "Name": "协同建构", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  399. { "Name": "数据看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } }
  400. ];
  401. U.MD.D.I.wankeAdminDeskIcon = [
  402. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  403. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  404. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  405. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  406. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  407. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  408. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  409. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  410. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  411. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  412. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  413. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  414. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  415. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  416. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  417. { "Name": "协同建构", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  418. { "Name": "数据看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } }
  419. ];
  420. U.MD.D.I.lhsTeacherDeskIcon = [ //未來小學
  421. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  422. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  423. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  424. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  425. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  426. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  427. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  428. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  429. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  430. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  431. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  432. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  433. { "Name": "数据看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  434. ];
  435. U.MD.D.I.lhsAdminDeskIcon = [ //未來小學admin
  436. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  437. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  438. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  439. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  440. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  441. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  442. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  443. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  444. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  445. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  446. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  447. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  448. { "Name": "数据看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  449. ];
  450. //明德教師桌面圖標的全局變量
  451. U.MD.D.I.MingdeTeacherDeskIcon = [
  452. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  453. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  454. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  455. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  456. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  457. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  458. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  459. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  460. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  461. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  462. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  463. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  464. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  465. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  466. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  467. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  468. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  469. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  470. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  471. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  472. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  473. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  474. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  475. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  476. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  477. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  478. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  479. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  480. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  481. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  482. ];
  483. //97c4ee8b-d010-4042-986d-e9d3c217264f
  484. //教師桌面圖標的全局變量
  485. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  486. { "Name": "工作項目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  487. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  488. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  489. // { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  490. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  491. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  492. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  493. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  494. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  495. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  496. ];
  497. //福田
  498. U.MD.D.I.futianTeacherDeskIcon = [
  499. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  500. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  501. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  502. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  503. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  504. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  505. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  506. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  507. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  508. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  509. ];
  510. //福田
  511. U.MD.D.I.futianAdminDeskIcon = [
  512. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  513. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  514. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  515. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  516. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  517. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  518. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  519. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  520. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  521. ];
  522. //lotech
  523. U.MD.D.I.lotechTeacherDeskIcon = [
  524. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  525. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  526. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  527. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  528. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  529. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  530. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  531. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  532. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  533. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  534. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  535. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  536. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  537. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  538. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  539. ];
  540. //龍華中心小學教師桌面圖標的全局變量
  541. U.MD.D.I.longhuateacherDeskIcon = [
  542. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  543. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  544. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  545. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  546. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  547. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  548. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  549. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  550. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  551. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  552. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  553. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  554. ];
  555. //教科院實小教師桌面圖標的全局變量
  556. U.MD.D.I.siesteacherDeskIcon = [
  557. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  558. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  559. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  560. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  561. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  562. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  563. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  564. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  565. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  566. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  567. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  568. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  569. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  570. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  571. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  572. { "Name": "协同建构", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  573. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  574. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  575. { "Name": "数据看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  576. { "Name": "数据看板", "Url": "dataBoardSies", "style": { "cssText": "background-image:url(/img/icon/dataBoardSies.png)" } },
  577. ];
  578. //教科院實小教師桌面圖標的全局變量
  579. U.MD.D.I.siesStudentDeskIcon = [
  580. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  581. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  582. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  583. ];
  584. //福田
  585. U.MD.D.I.gdjgTeacherDeskIcon = [
  586. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  587. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  588. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  589. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  590. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  591. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  592. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  593. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  594. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  595. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  596. ];
  597. //gdjg
  598. U.MD.D.I.gdjgAdminDeskIcon = [
  599. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  600. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  601. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  602. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  603. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  604. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  605. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  606. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  607. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  608. ];
  609. //hk
  610. U.MD.D.I.hkteacherDeskIcon = [
  611. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  612. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  613. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  614. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  615. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  616. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  617. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  618. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  619. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  620. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  621. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  622. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  623. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  624. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  625. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  626. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  627. { "Name": "AI Agent", "Url": "aiagent", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  628. ];
  629. //hk
  630. U.MD.D.I.hkStudentDeskIcon = [
  631. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  632. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  633. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  634. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  635. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  636. ];
  637. //香海正覺蓮社佛教正覺中學
  638. U.MD.D.I.hkZJLSteacherDeskIcon = [
  639. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  640. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  641. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  642. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  643. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  644. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  645. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  646. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  647. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  648. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  649. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  650. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  651. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  652. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  653. ];
  654. //香海正覺蓮社佛教正覺中學
  655. U.MD.D.I.hkZJLSStudentDeskIcon = [
  656. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  657. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  658. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  659. ];
  660. //雲海
  661. U.MD.D.I.yunhaiTeacherDeskIcon = [
  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": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  665. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  666. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  667. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  668. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  669. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  670. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  671. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  672. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  673. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  674. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  675. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  676. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  677. { "Name": "数据看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  678. ];
  679. //福田
  680. U.MD.D.I.heyuanTeacherDeskIcon = [
  681. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  682. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  683. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  684. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  685. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  686. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  687. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  688. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  689. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  690. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  691. ];
  692. //福田
  693. U.MD.D.I.heyuanAdminDeskIcon = [
  694. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  695. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  696. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  697. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  698. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  699. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  700. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  701. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  702. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  703. ];
  704. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  705. U.MD.D.I.szherTeacherDeskIcon = [
  706. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  707. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  708. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  709. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  710. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  711. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  712. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  713. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  714. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  715. ];
  716. //dsei
  717. U.MD.D.I.dseiTeacherDeskIcon = [
  718. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  719. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  720. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  721. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  722. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  723. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  724. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  725. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  726. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  727. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  728. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  729. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  730. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  731. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  732. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  733. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  734. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  735. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  736. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  737. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  738. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  739. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  740. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  741. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  742. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  743. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  744. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  745. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  746. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  747. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  748. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  749. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  750. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  751. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  752. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  753. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  754. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  755. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  756. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  757. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  758. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  759. ];
  760. //dsei
  761. U.MD.D.I.dseiAdminDeskIcon = [
  762. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  763. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  764. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  765. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  766. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  767. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  768. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  769. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  770. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  771. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  772. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  773. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  774. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  775. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  776. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  777. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  778. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  779. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  780. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  781. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  782. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  783. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  784. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  785. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  786. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  787. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  788. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  789. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  790. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  791. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  792. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  793. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  794. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  795. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  796. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  797. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  798. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  799. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  800. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  801. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  802. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  803. ];
  804. //dsei
  805. U.MD.D.I.dseiStudentDeskIcon = [
  806. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  807. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  808. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  809. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  810. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  811. ];
  812. //未來教育基地
  813. U.MD.D.I.szjkyTeacherDeskIcon = [
  814. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  815. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  816. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  817. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  818. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  819. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  820. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  821. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  822. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  823. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  824. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  825. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  826. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  827. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  828. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  829. ];
  830. //未來教育基地
  831. U.MD.D.I.szjkyAdminDeskIcon = [
  832. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  833. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  834. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  835. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  836. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  837. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  838. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  839. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  840. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  841. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  842. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  843. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  844. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  845. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  846. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  847. ];
  848. //未來教育基地
  849. U.MD.D.I.szjkyStudentDeskIcon = [
  850. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  851. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  852. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  853. ];
  854. //成華教育局
  855. U.MD.D.I.chjyjTeacherDeskIcon = [
  856. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  857. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  858. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  859. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  860. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  861. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  862. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  863. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  864. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  865. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  866. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  867. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  868. ];
  869. //成華教育局chjyj
  870. U.MD.D.I.chjyjAdminDeskIcon = [
  871. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  872. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  873. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  874. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  875. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  876. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  877. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  878. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  879. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  880. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  881. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  882. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  883. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  884. ];
  885. //成華教育局chjyj
  886. U.MD.D.I.chjyjStudentDeskIcon = [
  887. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  888. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  889. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  890. ];
  891. //tpc
  892. U.MD.D.I.tpcStudentDeskIcon = [
  893. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  894. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  895. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  896. ];
  897. //tpc
  898. U.MD.D.I.tpcTeacherDeskIcon = [
  899. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  900. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  901. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  902. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  903. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  904. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  905. ];
  906. //tpc
  907. U.MD.D.I.tpcAdminDeskIcon = [
  908. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  909. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  910. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  911. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  912. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  913. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  914. ];
  915. //THU-IOE
  916. U.MD.D.I.thuioeTeacherDeskIcon = [
  917. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  918. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  919. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  920. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  921. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  922. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  923. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  924. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  925. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  926. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  927. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  928. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  929. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  930. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  931. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  932. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  933. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  934. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  935. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  936. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  937. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  938. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  939. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  940. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  941. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  942. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  943. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  944. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  945. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  946. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  947. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  948. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  949. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  950. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  951. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  952. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  953. { "Name": "协同建构", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  954. { "Name": "数据看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  955. ];
  956. //THU-IOE
  957. U.MD.D.I.thuioeStudentDeskIcon = [
  958. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  959. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  960. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  961. ];
  962. //jccssyl
  963. U.MD.D.I.jccssylTeacherDeskIcon = [
  964. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  965. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  966. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  967. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  968. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  969. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  970. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  971. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  972. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  973. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  974. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  975. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  976. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  977. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  978. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  979. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  980. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  981. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  982. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  983. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  984. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  985. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  986. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  987. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  988. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  989. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  990. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  991. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  992. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  993. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  994. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  995. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  996. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  997. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  998. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  999. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1000. { "Name": "协同建构", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1001. ];
  1002. //jccssyl
  1003. U.MD.D.I.jccssylStudentDeskIcon = [
  1004. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  1005. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  1006. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  1007. ];
  1008. //#region 桌面初始化a
  1009. /**
  1010. * 初始化桌面的起始函數
  1011. *
  1012. */
  1013. U.MD.D.I.init = function () {
  1014. if ($("#U_MD_D_K")[0]) {
  1015. //初始化桌面圖標
  1016. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  1017. // var clickUrl = ':12588/requestIp.php';
  1018. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  1019. // U.MD.D.I.Ip = data;
  1020. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  1021. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  1022. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  1023. // })
  1024. // //初始化任務欄,因為是靜態的,所以直接改變樣式即可.
  1025. // })
  1026. }
  1027. }
  1028. /**
  1029. * 模式切換
  1030. *
  1031. */
  1032. U.MD.D.I.ModeCheck = function (type) {
  1033. if (US.Config.type == type) {
  1034. return
  1035. }
  1036. US.Config.type = type
  1037. $('.U_PBL_Check .active')[0].className = ''
  1038. if (type == 1) {
  1039. $('.U_PBL_Check div')[0].className = 'active'
  1040. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  1041. } else {
  1042. $('.U_PBL_Check div')[1].className = 'active'
  1043. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  1044. }
  1045. //初始化桌面圖標
  1046. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  1047. if (type == 2) {
  1048. U.MD.D.I.openApplication("project")
  1049. }
  1050. }
  1051. /**
  1052. * 隱藏任務欄
  1053. *
  1054. * @param {element} 桌面元素
  1055. */
  1056. U.MD.D.I.hiddenTaskbar = function (el) {
  1057. //任務欄位置變小
  1058. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  1059. //桌面的位置變大
  1060. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  1061. }
  1062. /**
  1063. * 隱藏任務欄
  1064. *
  1065. * @param {element} 桌面元素
  1066. */
  1067. U.MD.D.I.hiddenTaskbarout = function (el) {
  1068. //任務欄位置變小
  1069. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  1070. //任務欄位置變化
  1071. U.selectEl(el).css({ "bottom": "-60px" });
  1072. //桌面的位置變大
  1073. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  1074. }
  1075. }
  1076. /**
  1077. * 初始化打印桌面圖標
  1078. *
  1079. * @param {element} 桌面元素
  1080. */
  1081. U.MD.D.I.initDesktopIcons = function (el, type) {
  1082. var i, //用於循環
  1083. _content, //桌面圖標元素
  1084. _iconcontent, //桌面圖標元素
  1085. _frag = $$("frag"), //定義一個碎片元素
  1086. _type = US.userInfo.type,
  1087. _org = US.userInfo.org,
  1088. _oid = US.userInfo.organizeid,
  1089. _role = US.userInfo.role,
  1090. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //獲取教師端桌面圖標
  1091. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //極簡模式桌面圖標
  1092. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //獲取教師端桌面圖標
  1093. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //獲取學生端桌面圖標
  1094. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //獲取學生端桌面圖標
  1095. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //獲取學生端桌面圖標
  1096. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //獲取組織桌面圖標
  1097. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  1098. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  1099. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  1100. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //獲取測試學校桌面圖標
  1101. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon, //獲取北師大
  1102. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon, //獲取周佳名工作室
  1103. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon, //獲取松山湖
  1104. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon, //獲取萬科雙語
  1105. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon, //獲取萬科雙語
  1106. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon, //獲取萬科雙語
  1107. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon, //獲取未來小學
  1108. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon, //獲取未來小學
  1109. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //獲取光明學校桌面圖標
  1110. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //獲取光明學校桌面圖標
  1111. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon, //騰訊學生
  1112. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon, //騰訊學生
  1113. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon, //福田
  1114. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon, //福田
  1115. _szjkyTeacherDeskIconInfo = U.MD.D.I.szjkyTeacherDeskIcon, //未來教育基地
  1116. _szjkyAdminDeskIconInfo = U.MD.D.I.szjkyAdminDeskIcon, //未來教育基地
  1117. _szjkyStudentDeskIconInfo = U.MD.D.I.szjkyStudentDeskIcon, //未來教育基地
  1118. _chjyjTeacherDeskIconInfo = U.MD.D.I.chjyjTeacherDeskIcon, //成華教育局
  1119. _chjyjAdminDeskIconInfo = U.MD.D.I.chjyjAdminDeskIcon, //成華教育局
  1120. _chjyjStudentDeskIconInfo = U.MD.D.I.chjyjStudentDeskIcon, //成華教育局
  1121. _dseiTeacherDeskIconInfo = U.MD.D.I.dseiTeacherDeskIcon, //dsei
  1122. _dseiAdminDeskIconInfo = U.MD.D.I.dseiAdminDeskIcon, //dsei
  1123. _dseiStudentDeskIconInfo = U.MD.D.I.dseiStudentDeskIcon, //dsei
  1124. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon, //福田
  1125. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon, //福田
  1126. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon, //szher
  1127. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon, //
  1128. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon, //
  1129. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon, //lotech
  1130. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon, //龍華中心
  1131. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon, //sies
  1132. _siesStudentDeskIconInfo = U.MD.D.I.siesStudentDeskIcon, //sies
  1133. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon, //騰訊學生
  1134. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon, //hk
  1135. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon, //hk
  1136. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon, //hk
  1137. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon, //hk
  1138. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon, //云海
  1139. _tpcStudentDeskIconInfo = U.MD.D.I.tpcStudentDeskIcon,
  1140. _tpcTeacherDeskIconInfo = U.MD.D.I.tpcTeacherDeskIcon,
  1141. _tpcOrganizerDeskIconInfo = U.MD.D.I.tpcAdminDeskIcon,
  1142. _thuioeStudentDeskIconInfo = U.MD.D.I.thuioeStudentDeskIcon, // thu-ioe
  1143. _thuioeTeacherDeskIconInfo = U.MD.D.I.thuioeTeacherDeskIcon, // thu-ioe
  1144. _jccssylStudentDeskIconInfo = U.MD.D.I.jccssylStudentDeskIcon, // jccssyl
  1145. _jccssylTeacherDeskIconInfo = U.MD.D.I.jccssylTeacherDeskIcon, // jccssyl
  1146. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon, //网络夏令营
  1147. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon, //网络夏令营
  1148. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon; //网络夏令营
  1149. 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'];
  1150. 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', 'a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956','fbb00cc1-380b-4173-add4-59b3cf7682b5','63060b4a-89dc-4f0c-bf04-a1de22d479ff'];
  1151. //清楚桌面图标
  1152. el.innerHTML = "";
  1153. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  1154. _teacherDesktopIconInfo.push(
  1155. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1156. { "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)" } },
  1157. )
  1158. _easyDesktopIconInfo.push({ "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } })
  1159. }
  1160. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  1161. _teacherDesktopIconInfo.push(
  1162. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1163. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  1164. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1165. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1166. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  1167. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  1168. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1169. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1170. { "Name": "評測管理", "Url": "testTeacher", "style": { "cssText": "background-image:url(/img/icon/testTeacher.png)" } },
  1171. { "Name": "評測中心", "Url": "testStudent", "style": { "cssText": "background-image:url(/img/icon/testStudent.png)" } },
  1172. )
  1173. }
  1174. if (_oid == 'c69c43a6-515a-11ee-91d8-005056b86db5') {
  1175. _teacherDesktopIconInfo.push(
  1176. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1177. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1178. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1179. )
  1180. }
  1181. if (_org == '03d24cf9-4fbc-4aeb-bb02-6f84f66e6344') {
  1182. _teacherDesktopIconInfo.push(
  1183. { "Name": "协同建构", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1184. )
  1185. }
  1186. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5') {
  1187. _teacherDesktopIconInfo.push(
  1188. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1189. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1190. )
  1191. _studentDesktopIconInfo.push(
  1192. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1193. )
  1194. }
  1195. //麒麟二中 和 民新小学
  1196. if (_oid == 'cf8841e8-c7c0-11ed-9546-005056b86db5' || _oid == "d67940a5-510c-40ea-9c9a-2631ab03013a") {
  1197. _teacherDesktopIconInfo.push(
  1198. { "Name": "协同建构", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1199. )
  1200. }
  1201. // 马峦小学 和 龙华区教育科学研究院附属学校 和 侨香学校
  1202. if (_oid == "602a1e3d-d031-11ed-9546-005056b86db5" || _oid == "f30a6615-5379-11ed-8c78-005056b86db5" || _oid == "82fcb5c7-c13b-11ed-8d51-005056b86db5") {
  1203. _teacherDesktopIconInfo.push(
  1204. { "Name": "数据看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1205. )
  1206. }
  1207. //麒麟二中
  1208. if (_oid == 'cf8841e8-c7c0-11ed-9546-005056b86db5') {
  1209. _studentDesktopIconInfo.push(
  1210. { "Name": "协同建构", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1211. { "Name": "数据看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1212. )
  1213. }
  1214. //万科双语
  1215. if (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
  1216. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  1217. if (el.Name == '項目管理') {
  1218. el.Name = 'PBL項目'
  1219. }
  1220. return el
  1221. })
  1222. _studentDesktopIconInfo3.push(
  1223. { "Name": "协同建构", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1224. )
  1225. }
  1226. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  1227. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  1228. return el.Name != '魔盒識字' && el.Name != '24點'
  1229. })
  1230. }
  1231. 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) {
  1232. _studentDesktopIconInfo.push({ "Name": "我的評價", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },)
  1233. }
  1234. //循環創建桌面圖標
  1235. if (type == 1) {
  1236. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  1237. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1238. _content = $$("div", {
  1239. className: "U_MD_D_KO",
  1240. "onmousedown": U.UF.C.closure(function (obj) {
  1241. //防止拖動圖標即打開了桌面應用
  1242. U.MD.D.click(this, obj);
  1243. }, [_studentDesktopIconInfo[i]]),
  1244. "onclick": U.UF.C.closure(function (obj) {
  1245. //防止拖動圖標即打開了桌面應用
  1246. U.MD.D.click(this, obj);
  1247. }, [_studentDesktopIconInfo[i]])
  1248. }, _frag); //
  1249. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1250. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1251. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1252. }
  1253. } else if (_type == 2 && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1254. for (i = 0; i < _hkZJLSStudentDeskIconInfo.length; i++) {
  1255. _content = $$("div", {
  1256. className: "U_MD_D_KO",
  1257. "onmousedown": U.UF.C.closure(function (obj) {
  1258. //防止拖動圖標即打開了桌面應用
  1259. U.MD.D.click(this, obj);
  1260. }, [_hkZJLSStudentDeskIconInfo[i]]),
  1261. "onclick": U.UF.C.closure(function (obj) {
  1262. //防止拖動圖標即打開了桌面應用
  1263. U.MD.D.click(this, obj);
  1264. }, [_hkZJLSStudentDeskIconInfo[i]])
  1265. }, _frag); //
  1266. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1267. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  1268. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  1269. } //
  1270. } else if (_type == 2 && (_org == "63060b4a-89dc-4f0c-bf04-a1de22d479ff")) {
  1271. for (i = 0; i < _jccssylStudentDeskIconInfo.length; i++) {
  1272. _content = $$("div", {
  1273. className: "U_MD_D_KO",
  1274. "onmousedown": U.UF.C.closure(function (obj) {
  1275. //防止拖动图标即打开了桌面应用
  1276. U.MD.D.click(this, obj);
  1277. }, [_jccssylStudentDeskIconInfo[i]]),
  1278. "onclick": U.UF.C.closure(function (obj) {
  1279. //防止拖动图标即打开了桌面应用
  1280. U.MD.D.click(this, obj);
  1281. }, [_jccssylStudentDeskIconInfo[i]])
  1282. }, _frag); //
  1283. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1284. $$("div", { className: "U_MD_D_KOS U_Img", "style": _jccssylStudentDeskIconInfo[i].style }, _iconcontent);
  1285. $$("div", { className: "U_MD_D_KOX", "innerHTML": _jccssylStudentDeskIconInfo[i].Name }, _iconcontent);
  1286. }
  1287. } else if (_type == 2 && (_org == "fbb00cc1-380b-4173-add4-59b3cf7682b5")) {
  1288. for (i = 0; i < _thuioeStudentDeskIconInfo.length; i++) {
  1289. _content = $$("div", {
  1290. className: "U_MD_D_KO",
  1291. "onmousedown": U.UF.C.closure(function (obj) {
  1292. //防止拖动图标即打开了桌面应用
  1293. U.MD.D.click(this, obj);
  1294. }, [_thuioeStudentDeskIconInfo[i]]),
  1295. "onclick": U.UF.C.closure(function (obj) {
  1296. //防止拖动图标即打开了桌面应用
  1297. U.MD.D.click(this, obj);
  1298. }, [_thuioeStudentDeskIconInfo[i]])
  1299. }, _frag); //
  1300. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1301. $$("div", { className: "U_MD_D_KOS U_Img", "style": _thuioeStudentDeskIconInfo[i].style }, _iconcontent);
  1302. $$("div", { className: "U_MD_D_KOX", "innerHTML": _thuioeStudentDeskIconInfo[i].Name }, _iconcontent);
  1303. }
  1304. } else if (_type == 2 && (_org == "a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956")) {
  1305. for (i = 0; i < _tpcStudentDeskIconInfo.length; i++) {
  1306. _content = $$("div", {
  1307. className: "U_MD_D_KO",
  1308. "onmousedown": U.UF.C.closure(function (obj) {
  1309. //防止拖動圖標即打開了桌面應用
  1310. U.MD.D.click(this, obj);
  1311. }, [_tpcStudentDeskIconInfo[i]]),
  1312. "onclick": U.UF.C.closure(function (obj) {
  1313. //防止拖動圖標即打開了桌面應用
  1314. U.MD.D.click(this, obj);
  1315. }, [_tpcStudentDeskIconInfo[i]])
  1316. }, _frag); //
  1317. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1318. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tpcStudentDeskIconInfo[i].style }, _iconcontent);
  1319. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tpcStudentDeskIconInfo[i].Name }, _iconcontent);
  1320. } //
  1321. } else if (_type == 2 && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5")) {
  1322. for (i = 0; i < _chjyjStudentDeskIconInfo.length; i++) {
  1323. _content = $$("div", {
  1324. className: "U_MD_D_KO",
  1325. "onmousedown": U.UF.C.closure(function (obj) {
  1326. //防止拖動圖標即打開了桌面應用
  1327. U.MD.D.click(this, obj);
  1328. }, [_chjyjStudentDeskIconInfo[i]]),
  1329. "onclick": U.UF.C.closure(function (obj) {
  1330. //防止拖動圖標即打開了桌面應用
  1331. U.MD.D.click(this, obj);
  1332. }, [_chjyjStudentDeskIconInfo[i]])
  1333. }, _frag); //
  1334. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1335. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjStudentDeskIconInfo[i].style }, _iconcontent);
  1336. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjStudentDeskIconInfo[i].Name }, _iconcontent);
  1337. }
  1338. } else if (_type == 2 && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5")) {
  1339. for (i = 0; i < _szjkyStudentDeskIconInfo.length; i++) {
  1340. _content = $$("div", {
  1341. className: "U_MD_D_KO",
  1342. "onmousedown": U.UF.C.closure(function (obj) {
  1343. //防止拖動圖標即打開了桌面應用
  1344. U.MD.D.click(this, obj);
  1345. }, [_szjkyStudentDeskIconInfo[i]]),
  1346. "onclick": U.UF.C.closure(function (obj) {
  1347. //防止拖動圖標即打開了桌面應用
  1348. U.MD.D.click(this, obj);
  1349. }, [_szjkyStudentDeskIconInfo[i]])
  1350. }, _frag); //
  1351. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1352. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyStudentDeskIconInfo[i].style }, _iconcontent);
  1353. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyStudentDeskIconInfo[i].Name }, _iconcontent);
  1354. }
  1355. } else if (_type == 2 && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5")) {
  1356. for (i = 0; i < _dseiStudentDeskIconInfo.length; i++) {
  1357. _content = $$("div", {
  1358. className: "U_MD_D_KO",
  1359. "onmousedown": U.UF.C.closure(function (obj) {
  1360. //防止拖動圖標即打開了桌面應用
  1361. U.MD.D.click(this, obj);
  1362. }, [_dseiStudentDeskIconInfo[i]]),
  1363. "onclick": U.UF.C.closure(function (obj) {
  1364. //防止拖動圖標即打開了桌面應用
  1365. U.MD.D.click(this, obj);
  1366. }, [_dseiStudentDeskIconInfo[i]])
  1367. }, _frag); //
  1368. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1369. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiStudentDeskIconInfo[i].style }, _iconcontent);
  1370. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiStudentDeskIconInfo[i].Name }, _iconcontent);
  1371. }
  1372. } else if (_type == 2 && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1373. for (i = 0; i < _siesStudentDeskIconInfo.length; i++) {
  1374. _content = $$("div", {
  1375. className: "U_MD_D_KO",
  1376. "onmousedown": U.UF.C.closure(function (obj) {
  1377. //防止拖動圖標即打開了桌面應用
  1378. U.MD.D.click(this, obj);
  1379. }, [_siesStudentDeskIconInfo[i]]),
  1380. "onclick": U.UF.C.closure(function (obj) {
  1381. //防止拖動圖標即打開了桌面應用
  1382. U.MD.D.click(this, obj);
  1383. }, [_siesStudentDeskIconInfo[i]])
  1384. }, _frag); //
  1385. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1386. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesStudentDeskIconInfo[i].style }, _iconcontent);
  1387. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesStudentDeskIconInfo[i].Name }, _iconcontent);
  1388. }
  1389. } else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1390. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  1391. _content = $$("div", {
  1392. className: "U_MD_D_KO",
  1393. "onmousedown": U.UF.C.closure(function (obj) {
  1394. //防止拖動圖標即打開了桌面應用
  1395. U.MD.D.click(this, obj);
  1396. }, [_hkStudentDeskIconInfo[i]]),
  1397. "onclick": U.UF.C.closure(function (obj) {
  1398. //防止拖動圖標即打開了桌面應用
  1399. U.MD.D.click(this, obj);
  1400. }, [_hkStudentDeskIconInfo[i]])
  1401. }, _frag); //
  1402. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1403. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  1404. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  1405. }
  1406. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  1407. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1408. _content = $$("div", {
  1409. className: "U_MD_D_KO",
  1410. "onmousedown": U.UF.C.closure(function (obj) {
  1411. //防止拖動圖標即打開了桌面應用
  1412. U.MD.D.click(this, obj);
  1413. }, [_studentDesktopIconInfo[i]]),
  1414. "onclick": U.UF.C.closure(function (obj) {
  1415. //防止拖動圖標即打開了桌面應用
  1416. U.MD.D.click(this, obj);
  1417. }, [_studentDesktopIconInfo[i]])
  1418. }, _frag); //
  1419. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1420. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1421. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1422. }
  1423. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  1424. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  1425. _content = $$("div", {
  1426. className: "U_MD_D_KO",
  1427. "onmousedown": U.UF.C.closure(function (obj) {
  1428. //防止拖動圖標即打開了桌面應用
  1429. U.MD.D.click(this, obj);
  1430. }, [_tcStudentDeskIconInfo[i]]),
  1431. "onclick": U.UF.C.closure(function (obj) {
  1432. //防止拖動圖標即打開了桌面應用
  1433. U.MD.D.click(this, obj);
  1434. }, [_tcStudentDeskIconInfo[i]])
  1435. }, _frag); //
  1436. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1437. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  1438. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  1439. }
  1440. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  1441. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  1442. _content = $$("div", {
  1443. className: "U_MD_D_KO",
  1444. "onmousedown": U.UF.C.closure(function (obj) {
  1445. //防止拖動圖標即打開了桌面應用
  1446. U.MD.D.click(this, obj);
  1447. }, [_szscStudentDeskIconInfo[i]]),
  1448. "onclick": U.UF.C.closure(function (obj) {
  1449. //防止拖動圖標即打開了桌面應用
  1450. U.MD.D.click(this, obj);
  1451. }, [_szscStudentDeskIconInfo[i]])
  1452. }, _frag); //
  1453. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1454. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  1455. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  1456. }
  1457. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  1458. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  1459. _content = $$("div", {
  1460. className: "U_MD_D_KO",
  1461. "onmousedown": U.UF.C.closure(function (obj) {
  1462. //防止拖動圖標即打開了桌面應用
  1463. U.MD.D.click(this, obj);
  1464. }, [_studentDesktopIconInfo3[i]]),
  1465. "onclick": U.UF.C.closure(function (obj) {
  1466. //防止拖動圖標即打開了桌面應用
  1467. U.MD.D.click(this, obj);
  1468. }, [_studentDesktopIconInfo3[i]])
  1469. }, _frag); //
  1470. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1471. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  1472. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  1473. }
  1474. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  1475. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  1476. _content = $$("div", {
  1477. className: "U_MD_D_KO",
  1478. "onmousedown": U.UF.C.closure(function (obj) {
  1479. //防止拖動圖標即打開了桌面應用
  1480. U.MD.D.click(this, obj);
  1481. }, [_studentDesktopIconInfo2[i]]),
  1482. "onclick": U.UF.C.closure(function (obj) {
  1483. //防止拖動圖標即打開了桌面應用
  1484. U.MD.D.click(this, obj);
  1485. }, [_studentDesktopIconInfo2[i]])
  1486. }, _frag); //
  1487. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1488. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  1489. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  1490. }
  1491. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  1492. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  1493. _content = $$("div", {
  1494. className: "U_MD_D_KO",
  1495. "onmousedown": U.UF.C.closure(function (obj) {
  1496. //防止拖動圖標即打開了桌面應用
  1497. U.MD.D.click(this, obj);
  1498. }, [_wanketeacherDesktopIconInfo[i]]),
  1499. "onclick": U.UF.C.closure(function (obj) {
  1500. //防止拖動圖標即打開了桌面應用
  1501. U.MD.D.click(this, obj);
  1502. }, [_wanketeacherDesktopIconInfo[i]])
  1503. }, _frag); //
  1504. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1505. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  1506. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  1507. }
  1508. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1509. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  1510. _content = $$("div", {
  1511. className: "U_MD_D_KO",
  1512. "onmousedown": U.UF.C.closure(function (obj) {
  1513. //防止拖動圖標即打開了桌面應用
  1514. U.MD.D.click(this, obj);
  1515. }, [_wankeAdminDesktopIconInfo[i]]),
  1516. "onclick": U.UF.C.closure(function (obj) {
  1517. //防止拖動圖標即打開了桌面應用
  1518. U.MD.D.click(this, obj);
  1519. }, [_wankeAdminDesktopIconInfo[i]])
  1520. }, _frag); //
  1521. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1522. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1523. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1524. }
  1525. } else if ((_type == 1 || _type == 4) && _org == "63060b4a-89dc-4f0c-bf04-a1de22d479ff") {
  1526. for (i = 0; i < _jccssylTeacherDeskIconInfo.length; i++) {
  1527. _content = $$("div", {
  1528. className: "U_MD_D_KO",
  1529. "onmousedown": U.UF.C.closure(function (obj) {
  1530. //防止拖动图标即打开了桌面应用
  1531. U.MD.D.click(this, obj);
  1532. }, [_jccssylTeacherDeskIconInfo[i]]),
  1533. "onclick": U.UF.C.closure(function (obj) {
  1534. //防止拖动图标即打开了桌面应用
  1535. U.MD.D.click(this, obj);
  1536. }, [_jccssylTeacherDeskIconInfo[i]])
  1537. }, _frag); //
  1538. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1539. $$("div", { className: "U_MD_D_KOS U_Img", "style": _jccssylTeacherDeskIconInfo[i].style }, _iconcontent);
  1540. $$("div", { className: "U_MD_D_KOX", "innerHTML": _jccssylTeacherDeskIconInfo[i].Name }, _iconcontent);
  1541. }
  1542. } else if ((_type == 1 || _type == 4) && _org == "a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956" && _role == 1) {
  1543. for (i = 0; i < _tpcOrganizerDeskIconInfo.length; i++) {
  1544. _content = $$("div", {
  1545. className: "U_MD_D_KO",
  1546. "onmousedown": U.UF.C.closure(function (obj) {
  1547. //防止拖動圖標即打開了桌面應用
  1548. U.MD.D.click(this, obj);
  1549. }, [_tpcOrganizerDeskIconInfo[i]]),
  1550. "onclick": U.UF.C.closure(function (obj) {
  1551. //防止拖動圖標即打開了桌面應用
  1552. U.MD.D.click(this, obj);
  1553. }, [_tpcOrganizerDeskIconInfo[i]])
  1554. }, _frag); //
  1555. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1556. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tpcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1557. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tpcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1558. }
  1559. } else if ((_type == 1 || _type == 4) && _org == "a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956" && _role == 0) {
  1560. for (i = 0; i < _tpcTeacherDeskIconInfo.length; i++) {
  1561. _content = $$("div", {
  1562. className: "U_MD_D_KO",
  1563. "onmousedown": U.UF.C.closure(function (obj) {
  1564. //防止拖動圖標即打開了桌面應用
  1565. U.MD.D.click(this, obj);
  1566. }, [_tpcTeacherDeskIconInfo[i]]),
  1567. "onclick": U.UF.C.closure(function (obj) {
  1568. //防止拖動圖標即打開了桌面應用
  1569. U.MD.D.click(this, obj);
  1570. }, [_tpcTeacherDeskIconInfo[i]])
  1571. }, _frag); //
  1572. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1573. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tpcTeacherDeskIconInfo[i].style }, _iconcontent);
  1574. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tpcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1575. }
  1576. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1577. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  1578. _content = $$("div", {
  1579. className: "U_MD_D_KO",
  1580. "onmousedown": U.UF.C.closure(function (obj) {
  1581. //防止拖動圖標即打開了桌面應用
  1582. U.MD.D.click(this, obj);
  1583. }, [_teacherDesktopIconInfo2[i]]),
  1584. "onclick": U.UF.C.closure(function (obj) {
  1585. //防止拖動圖標即打開了桌面應用
  1586. U.MD.D.click(this, obj);
  1587. }, [_teacherDesktopIconInfo2[i]])
  1588. }, _frag); //
  1589. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1590. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1591. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1592. }
  1593. } else if ((_type == 1 || _type == 4) && (_org == "fbb00cc1-380b-4173-add4-59b3cf7682b5")) {
  1594. for (i = 0; i < _thuioeTeacherDeskIconInfo.length; i++) {
  1595. _content = $$("div", {
  1596. className: "U_MD_D_KO",
  1597. "onmousedown": U.UF.C.closure(function (obj) {
  1598. //防止拖动图标即打开了桌面应用
  1599. U.MD.D.click(this, obj);
  1600. }, [_thuioeTeacherDeskIconInfo[i]]),
  1601. "onclick": U.UF.C.closure(function (obj) {
  1602. //防止拖动图标即打开了桌面应用
  1603. U.MD.D.click(this, obj);
  1604. }, [_thuioeTeacherDeskIconInfo[i]])
  1605. }, _frag); //
  1606. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1607. $$("div", { className: "U_MD_D_KOS U_Img", "style": _thuioeTeacherDeskIconInfo[i].style }, _iconcontent);
  1608. $$("div", { className: "U_MD_D_KOX", "innerHTML": _thuioeTeacherDeskIconInfo[i].Name }, _iconcontent);
  1609. }
  1610. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1611. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  1612. _content = $$("div", {
  1613. className: "U_MD_D_KO",
  1614. "onmousedown": U.UF.C.closure(function (obj) {
  1615. //防止拖動圖標即打開了桌面應用
  1616. U.MD.D.click(this, obj);
  1617. }, [_lotechTeacherDeskIconInfo[i]]),
  1618. "onclick": U.UF.C.closure(function (obj) {
  1619. //防止拖動圖標即打開了桌面應用
  1620. U.MD.D.click(this, obj);
  1621. }, [_lotechTeacherDeskIconInfo[i]])
  1622. }, _frag); //
  1623. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1624. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1625. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1626. }//
  1627. } else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1628. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1629. _content = $$("div", {
  1630. className: "U_MD_D_KO",
  1631. "onmousedown": U.UF.C.closure(function (obj) {
  1632. //防止拖動圖標即打開了桌面應用
  1633. U.MD.D.click(this, obj);
  1634. }, [_siesTeacherDeskIconInfo[i]]),
  1635. "onclick": U.UF.C.closure(function (obj) {
  1636. //防止拖動圖標即打開了桌面應用
  1637. U.MD.D.click(this, obj);
  1638. }, [_siesTeacherDeskIconInfo[i]])
  1639. }, _frag); //
  1640. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1641. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1642. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1643. }
  1644. } else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1645. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1646. _content = $$("div", {
  1647. className: "U_MD_D_KO",
  1648. "onmousedown": U.UF.C.closure(function (obj) {
  1649. //防止拖動圖標即打開了桌面應用
  1650. U.MD.D.click(this, obj);
  1651. }, [_longhuaTeacherDeskIconInfo[i]]),
  1652. "onclick": U.UF.C.closure(function (obj) {
  1653. //防止拖動圖標即打開了桌面應用
  1654. U.MD.D.click(this, obj);
  1655. }, [_longhuaTeacherDeskIconInfo[i]])
  1656. }, _frag); //
  1657. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1658. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1659. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1660. }
  1661. } else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1662. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1663. _content = $$("div", {
  1664. className: "U_MD_D_KO",
  1665. "onmousedown": U.UF.C.closure(function (obj) {
  1666. //防止拖動圖標即打開了桌面應用
  1667. U.MD.D.click(this, obj);
  1668. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1669. "onclick": U.UF.C.closure(function (obj) {
  1670. //防止拖動圖標即打開了桌面應用
  1671. U.MD.D.click(this, obj);
  1672. }, [_yunhaiTeacherDeskIconInfo[i]])
  1673. }, _frag); //
  1674. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1675. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1676. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1677. } //_hkStudentDeskIconInfo
  1678. } else if ((_type == 1 || _type == 4) && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1679. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.length; i++) {
  1680. _content = $$("div", {
  1681. className: "U_MD_D_KO",
  1682. "onmousedown": U.UF.C.closure(function (obj) {
  1683. //防止拖動圖標即打開了桌面應用
  1684. U.MD.D.click(this, obj);
  1685. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1686. "onclick": U.UF.C.closure(function (obj) {
  1687. //防止拖動圖標即打開了桌面應用
  1688. U.MD.D.click(this, obj);
  1689. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1690. }, _frag); //
  1691. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1692. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1693. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1694. }
  1695. } else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1696. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1697. _content = $$("div", {
  1698. className: "U_MD_D_KO",
  1699. "onmousedown": U.UF.C.closure(function (obj) {
  1700. //防止拖動圖標即打開了桌面應用
  1701. U.MD.D.click(this, obj);
  1702. }, [_hkTeacherDeskIconInfo[i]]),
  1703. "onclick": U.UF.C.closure(function (obj) {
  1704. //防止拖動圖標即打開了桌面應用
  1705. U.MD.D.click(this, obj);
  1706. }, [_hkTeacherDeskIconInfo[i]])
  1707. }, _frag); //
  1708. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1709. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1710. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1711. }
  1712. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1713. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1714. _content = $$("div", {
  1715. className: "U_MD_D_KO",
  1716. "onmousedown": U.UF.C.closure(function (obj) {
  1717. //防止拖動圖標即打開了桌面應用
  1718. U.MD.D.click(this, obj);
  1719. }, [_gdjgAdminDeskIconInfo[i]]),
  1720. "onclick": U.UF.C.closure(function (obj) {
  1721. //防止拖動圖標即打開了桌面應用
  1722. U.MD.D.click(this, obj);
  1723. }, [_gdjgAdminDeskIconInfo[i]])
  1724. }, _frag); //
  1725. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1726. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1727. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1728. }
  1729. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1730. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1731. _content = $$("div", {
  1732. className: "U_MD_D_KO",
  1733. "onmousedown": U.UF.C.closure(function (obj) {
  1734. //防止拖動圖標即打開了桌面應用
  1735. U.MD.D.click(this, obj);
  1736. }, [_gdjgTeacherDeskIconInfo[i]]),
  1737. "onclick": U.UF.C.closure(function (obj) {
  1738. //防止拖動圖標即打開了桌面應用
  1739. U.MD.D.click(this, obj);
  1740. }, [_gdjgTeacherDeskIconInfo[i]])
  1741. }, _frag); //
  1742. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1743. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1744. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1745. }
  1746. } else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1747. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1748. _content = $$("div", {
  1749. className: "U_MD_D_KO",
  1750. "onmousedown": U.UF.C.closure(function (obj) {
  1751. //防止拖動圖標即打開了桌面應用
  1752. U.MD.D.click(this, obj);
  1753. }, [_szherTeacherDeskIconInfo[i]]),
  1754. "onclick": U.UF.C.closure(function (obj) {
  1755. //防止拖動圖標即打開了桌面應用
  1756. U.MD.D.click(this, obj);
  1757. }, [_szherTeacherDeskIconInfo[i]])
  1758. }, _frag); //
  1759. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1760. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1761. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1762. }
  1763. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1764. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1765. _content = $$("div", {
  1766. className: "U_MD_D_KO",
  1767. "onmousedown": U.UF.C.closure(function (obj) {
  1768. //防止拖動圖標即打開了桌面應用
  1769. U.MD.D.click(this, obj);
  1770. }, [_heyuannAdminDeskIconInfo[i]]),
  1771. "onclick": U.UF.C.closure(function (obj) {
  1772. //防止拖動圖標即打開了桌面應用
  1773. U.MD.D.click(this, obj);
  1774. }, [_heyuannAdminDeskIconInfo[i]])
  1775. }, _frag); //
  1776. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1777. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1778. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1779. }
  1780. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1781. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1782. _content = $$("div", {
  1783. className: "U_MD_D_KO",
  1784. "onmousedown": U.UF.C.closure(function (obj) {
  1785. //防止拖動圖標即打開了桌面應用
  1786. U.MD.D.click(this, obj);
  1787. }, [_heyuanTeacherDeskIconInfo[i]]),
  1788. "onclick": U.UF.C.closure(function (obj) {
  1789. //防止拖動圖標即打開了桌面應用
  1790. U.MD.D.click(this, obj);
  1791. }, [_heyuanTeacherDeskIconInfo[i]])
  1792. }, _frag); //
  1793. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1794. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1795. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1796. } //
  1797. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 1) {
  1798. for (i = 0; i < _dseiAdminDeskIconInfo.length; i++) {
  1799. _content = $$("div", {
  1800. className: "U_MD_D_KO",
  1801. "onmousedown": U.UF.C.closure(function (obj) {
  1802. //防止拖動圖標即打開了桌面應用
  1803. U.MD.D.click(this, obj);
  1804. }, [_dseiAdminDeskIconInfo[i]]),
  1805. "onclick": U.UF.C.closure(function (obj) {
  1806. //防止拖動圖標即打開了桌面應用
  1807. U.MD.D.click(this, obj);
  1808. }, [_dseiAdminDeskIconInfo[i]])
  1809. }, _frag); //
  1810. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1811. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiAdminDeskIconInfo[i].style }, _iconcontent);
  1812. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiAdminDeskIconInfo[i].Name }, _iconcontent);
  1813. }
  1814. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 0) {
  1815. for (i = 0; i < _dseiTeacherDeskIconInfo.length; i++) {
  1816. _content = $$("div", {
  1817. className: "U_MD_D_KO",
  1818. "onmousedown": U.UF.C.closure(function (obj) {
  1819. //防止拖動圖標即打開了桌面應用
  1820. U.MD.D.click(this, obj);
  1821. }, [_dseiTeacherDeskIconInfo[i]]),
  1822. "onclick": U.UF.C.closure(function (obj) {
  1823. //防止拖動圖標即打開了桌面應用
  1824. U.MD.D.click(this, obj);
  1825. }, [_dseiTeacherDeskIconInfo[i]])
  1826. }, _frag); //
  1827. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1828. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiTeacherDeskIconInfo[i].style }, _iconcontent);
  1829. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1830. } //
  1831. } else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 1) {
  1832. for (i = 0; i < _chjyjAdminDeskIconInfo.length; i++) {
  1833. _content = $$("div", {
  1834. className: "U_MD_D_KO",
  1835. "onmousedown": U.UF.C.closure(function (obj) {
  1836. //防止拖動圖標即打開了桌面應用
  1837. U.MD.D.click(this, obj);
  1838. }, [_chjyjAdminDeskIconInfo[i]]),
  1839. "onclick": U.UF.C.closure(function (obj) {
  1840. //防止拖動圖標即打開了桌面應用
  1841. U.MD.D.click(this, obj);
  1842. }, [_chjyjAdminDeskIconInfo[i]])
  1843. }, _frag); //
  1844. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1845. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjAdminDeskIconInfo[i].style }, _iconcontent);
  1846. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjAdminDeskIconInfo[i].Name }, _iconcontent);
  1847. }//
  1848. } else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 0) {
  1849. for (i = 0; i < _chjyjTeacherDeskIconInfo.length; i++) {
  1850. _content = $$("div", {
  1851. className: "U_MD_D_KO",
  1852. "onmousedown": U.UF.C.closure(function (obj) {
  1853. //防止拖動圖標即打開了桌面應用
  1854. U.MD.D.click(this, obj);
  1855. }, [_chjyjTeacherDeskIconInfo[i]]),
  1856. "onclick": U.UF.C.closure(function (obj) {
  1857. //防止拖動圖標即打開了桌面應用
  1858. U.MD.D.click(this, obj);
  1859. }, [_chjyjTeacherDeskIconInfo[i]])
  1860. }, _frag); //
  1861. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1862. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjTeacherDeskIconInfo[i].style }, _iconcontent);
  1863. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjTeacherDeskIconInfo[i].Name }, _iconcontent);
  1864. }
  1865. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 1) {
  1866. for (i = 0; i < _szjkyAdminDeskIconInfo.length; i++) {
  1867. _content = $$("div", {
  1868. className: "U_MD_D_KO",
  1869. "onmousedown": U.UF.C.closure(function (obj) {
  1870. //防止拖動圖標即打開了桌面應用
  1871. U.MD.D.click(this, obj);
  1872. }, [_szjkyAdminDeskIconInfo[i]]),
  1873. "onclick": U.UF.C.closure(function (obj) {
  1874. //防止拖動圖標即打開了桌面應用
  1875. U.MD.D.click(this, obj);
  1876. }, [_szjkyAdminDeskIconInfo[i]])
  1877. }, _frag); //
  1878. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1879. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyAdminDeskIconInfo[i].style }, _iconcontent);
  1880. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyAdminDeskIconInfo[i].Name }, _iconcontent);
  1881. }//
  1882. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 0) {
  1883. for (i = 0; i < _szjkyTeacherDeskIconInfo.length; i++) {
  1884. _content = $$("div", {
  1885. className: "U_MD_D_KO",
  1886. "onmousedown": U.UF.C.closure(function (obj) {
  1887. //防止拖動圖標即打開了桌面應用
  1888. U.MD.D.click(this, obj);
  1889. }, [_szjkyTeacherDeskIconInfo[i]]),
  1890. "onclick": U.UF.C.closure(function (obj) {
  1891. //防止拖動圖標即打開了桌面應用
  1892. U.MD.D.click(this, obj);
  1893. }, [_szjkyTeacherDeskIconInfo[i]])
  1894. }, _frag); //
  1895. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1896. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyTeacherDeskIconInfo[i].style }, _iconcontent);
  1897. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyTeacherDeskIconInfo[i].Name }, _iconcontent);
  1898. }
  1899. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1900. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1901. _content = $$("div", {
  1902. className: "U_MD_D_KO",
  1903. "onmousedown": U.UF.C.closure(function (obj) {
  1904. //防止拖動圖標即打開了桌面應用
  1905. U.MD.D.click(this, obj);
  1906. }, [_futianAdminDeskIconInfo[i]]),
  1907. "onclick": U.UF.C.closure(function (obj) {
  1908. //防止拖動圖標即打開了桌面應用
  1909. U.MD.D.click(this, obj);
  1910. }, [_futianAdminDeskIconInfo[i]])
  1911. }, _frag); //
  1912. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1913. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1914. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1915. }
  1916. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1917. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1918. _content = $$("div", {
  1919. className: "U_MD_D_KO",
  1920. "onmousedown": U.UF.C.closure(function (obj) {
  1921. //防止拖動圖標即打開了桌面應用
  1922. U.MD.D.click(this, obj);
  1923. }, [_futianTeacherDeskIconInfo[i]]),
  1924. "onclick": U.UF.C.closure(function (obj) {
  1925. //防止拖動圖標即打開了桌面應用
  1926. U.MD.D.click(this, obj);
  1927. }, [_futianTeacherDeskIconInfo[i]])
  1928. }, _frag); //
  1929. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1930. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1931. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1932. }
  1933. } else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1934. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1935. _content = $$("div", {
  1936. className: "U_MD_D_KO",
  1937. "onmousedown": U.UF.C.closure(function (obj) {
  1938. //防止拖動圖標即打開了桌面應用
  1939. U.MD.D.click(this, obj);
  1940. }, [_MingdeTeacherDeskIcon[i]]),
  1941. "onclick": U.UF.C.closure(function (obj) {
  1942. //防止拖動圖標即打開了桌面應用
  1943. U.MD.D.click(this, obj);
  1944. }, [_MingdeTeacherDeskIcon[i]])
  1945. }, _frag); //
  1946. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1947. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1948. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1949. }
  1950. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1951. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1952. _content = $$("div", {
  1953. className: "U_MD_D_KO",
  1954. "onmousedown": U.UF.C.closure(function (obj) {
  1955. //防止拖動圖標即打開了桌面應用
  1956. U.MD.D.click(this, obj);
  1957. }, [_lhsAdminDesktopIconInfo[i]]),
  1958. "onclick": U.UF.C.closure(function (obj) {
  1959. //防止拖動圖標即打開了桌面應用
  1960. U.MD.D.click(this, obj);
  1961. }, [_lhsAdminDesktopIconInfo[i]])
  1962. }, _frag); //
  1963. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1964. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1965. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1966. }
  1967. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1968. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1969. _content = $$("div", {
  1970. className: "U_MD_D_KO",
  1971. "onmousedown": U.UF.C.closure(function (obj) {
  1972. //防止拖動圖標即打開了桌面應用
  1973. U.MD.D.click(this, obj);
  1974. }, [_lhsteacherDesktopIconInfo[i]]),
  1975. "onclick": U.UF.C.closure(function (obj) {
  1976. //防止拖動圖標即打開了桌面應用
  1977. U.MD.D.click(this, obj);
  1978. }, [_lhsteacherDesktopIconInfo[i]])
  1979. }, _frag); //
  1980. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1981. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1982. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1983. }
  1984. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1985. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1986. _content = $$("div", {
  1987. className: "U_MD_D_KO",
  1988. "onmousedown": U.UF.C.closure(function (obj) {
  1989. //防止拖動圖標即打開了桌面應用
  1990. U.MD.D.click(this, obj);
  1991. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1992. "onclick": U.UF.C.closure(function (obj) {
  1993. //防止拖動圖標即打開了桌面應用
  1994. U.MD.D.click(this, obj);
  1995. }, [_zhoujiateacherDesktopIconInfo[i]])
  1996. }, _frag); //
  1997. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1998. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1999. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  2000. }
  2001. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  2002. for (i = 0; i < _hanDeskIcon.length; i++) {
  2003. _content = $$("div", {
  2004. className: "U_MD_D_KO",
  2005. "onmousedown": U.UF.C.closure(function (obj) {
  2006. //防止拖動圖標即打開了桌面應用
  2007. U.MD.D.click(this, obj);
  2008. }, [_hanDeskIcon[i]]),
  2009. "onclick": U.UF.C.closure(function (obj) {
  2010. //防止拖動圖標即打開了桌面應用
  2011. U.MD.D.click(this, obj);
  2012. }, [_hanDeskIcon[i]])
  2013. }, _frag); //
  2014. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2015. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  2016. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  2017. }
  2018. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  2019. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  2020. _content = $$("div", {
  2021. className: "U_MD_D_KO",
  2022. "onmousedown": U.UF.C.closure(function (obj) {
  2023. //防止拖動圖標即打開了桌面應用
  2024. U.MD.D.click(this, obj);
  2025. }, [_orgStemDeskIcon[i]]),
  2026. "onclick": U.UF.C.closure(function (obj) {
  2027. //防止拖動圖標即打開了桌面應用
  2028. U.MD.D.click(this, obj);
  2029. }, [_orgStemDeskIcon[i]])
  2030. }, _frag); //
  2031. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2032. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  2033. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  2034. }
  2035. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  2036. for (i = 0; i < _szulsDeskIcon.length; i++) {
  2037. _content = $$("div", {
  2038. className: "U_MD_D_KO",
  2039. "onmousedown": U.UF.C.closure(function (obj) {
  2040. //防止拖動圖標即打開了桌面應用
  2041. U.MD.D.click(this, obj);
  2042. }, [_szulsDeskIcon[i]]),
  2043. "onclick": U.UF.C.closure(function (obj) {
  2044. //防止拖動圖標即打開了桌面應用
  2045. U.MD.D.click(this, obj);
  2046. }, [_szulsDeskIcon[i]])
  2047. }, _frag); //
  2048. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2049. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  2050. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  2051. }
  2052. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  2053. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  2054. _content = $$("div", {
  2055. className: "U_MD_D_KO",
  2056. "onmousedown": U.UF.C.closure(function (obj) {
  2057. //防止拖動圖標即打開了桌面應用
  2058. U.MD.D.click(this, obj);
  2059. }, [_orgDesktopIconInfo[i]]),
  2060. "onclick": U.UF.C.closure(function (obj) {
  2061. //防止拖動圖標即打開了桌面應用
  2062. U.MD.D.click(this, obj);
  2063. }, [_orgDesktopIconInfo[i]])
  2064. }, _frag); //
  2065. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2066. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  2067. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  2068. }
  2069. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2070. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  2071. _content = $$("div", {
  2072. className: "U_MD_D_KO",
  2073. "onmousedown": U.UF.C.closure(function (obj) {
  2074. //防止拖動圖標即打開了桌面應用
  2075. U.MD.D.click(this, obj);
  2076. }, [_schoolDesktopIconInfo[i]]),
  2077. "onclick": U.UF.C.closure(function (obj) {
  2078. //防止拖動圖標即打開了桌面應用
  2079. U.MD.D.click(this, obj);
  2080. }, [_schoolDesktopIconInfo[i]])
  2081. }, _frag); //
  2082. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2083. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  2084. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  2085. }
  2086. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  2087. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  2088. _content = $$("div", {
  2089. className: "U_MD_D_KO",
  2090. "onmousedown": U.UF.C.closure(function (obj) {
  2091. //防止拖動圖標即打開了桌面應用
  2092. U.MD.D.click(this, obj);
  2093. }, [_GMteacherDesktopIconInfo[i]]),
  2094. "onclick": U.UF.C.closure(function (obj) {
  2095. //防止拖動圖標即打開了桌面應用
  2096. U.MD.D.click(this, obj);
  2097. }, [_GMteacherDesktopIconInfo[i]])
  2098. }, _frag); //
  2099. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2100. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  2101. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  2102. }
  2103. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  2104. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  2105. _content = $$("div", {
  2106. className: "U_MD_D_KO",
  2107. "onmousedown": U.UF.C.closure(function (obj) {
  2108. //防止拖動圖標即打開了桌面應用
  2109. U.MD.D.click(this, obj);
  2110. }, [_SONGteacherDesktopIconInfo[i]]),
  2111. "onclick": U.UF.C.closure(function (obj) {
  2112. //防止拖動圖標即打開了桌面應用
  2113. U.MD.D.click(this, obj);
  2114. }, [_SONGteacherDesktopIconInfo[i]])
  2115. }, _frag); //
  2116. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2117. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  2118. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  2119. }
  2120. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  2121. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  2122. _content = $$("div", {
  2123. className: "U_MD_D_KO",
  2124. "onmousedown": U.UF.C.closure(function (obj) {
  2125. //防止拖動圖標即打開了桌面應用
  2126. U.MD.D.click(this, obj);
  2127. }, [_GMstudentDesktopIconInfo[i]]),
  2128. "onclick": U.UF.C.closure(function (obj) {
  2129. //防止拖動圖標即打開了桌面應用
  2130. U.MD.D.click(this, obj);
  2131. }, [_GMstudentDesktopIconInfo[i]])
  2132. }, _frag); //
  2133. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2134. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  2135. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  2136. }
  2137. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  2138. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  2139. _content = $$("div", {
  2140. className: "U_MD_D_KO",
  2141. "onmousedown": U.UF.C.closure(function (obj) {
  2142. //防止拖動圖標即打開了桌面應用
  2143. U.MD.D.click(this, obj);
  2144. }, [_tcTeacherDeskIconInfo[i]]),
  2145. "onclick": U.UF.C.closure(function (obj) {
  2146. //防止拖動圖標即打開了桌面應用
  2147. U.MD.D.click(this, obj);
  2148. }, [_tcTeacherDeskIconInfo[i]])
  2149. }, _frag); //
  2150. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2151. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  2152. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  2153. }
  2154. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  2155. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  2156. _content = $$("div", {
  2157. className: "U_MD_D_KO",
  2158. "onmousedown": U.UF.C.closure(function (obj) {
  2159. //防止拖動圖標即打開了桌面應用
  2160. U.MD.D.click(this, obj);
  2161. }, [_tcOrganizerDeskIconInfo[i]]),
  2162. "onclick": U.UF.C.closure(function (obj) {
  2163. //防止拖動圖標即打開了桌面應用
  2164. U.MD.D.click(this, obj);
  2165. }, [_tcOrganizerDeskIconInfo[i]])
  2166. }, _frag); //
  2167. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2168. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  2169. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  2170. }
  2171. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  2172. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  2173. _content = $$("div", {
  2174. className: "U_MD_D_KO",
  2175. "onmousedown": U.UF.C.closure(function (obj) {
  2176. //防止拖動圖標即打開了桌面應用
  2177. U.MD.D.click(this, obj);
  2178. }, [_szscTeacherDeskIconInfo[i]]),
  2179. "onclick": U.UF.C.closure(function (obj) {
  2180. //防止拖動圖標即打開了桌面應用
  2181. U.MD.D.click(this, obj);
  2182. }, [_szscTeacherDeskIconInfo[i]])
  2183. }, _frag); //
  2184. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2185. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  2186. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  2187. }
  2188. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  2189. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  2190. _content = $$("div", {
  2191. className: "U_MD_D_KO",
  2192. "onmousedown": U.UF.C.closure(function (obj) {
  2193. //防止拖動圖標即打開了桌面應用
  2194. U.MD.D.click(this, obj);
  2195. }, [_szscOrganizerDeskIconInfo[i]]),
  2196. "onclick": U.UF.C.closure(function (obj) {
  2197. //防止拖動圖標即打開了桌面應用
  2198. U.MD.D.click(this, obj);
  2199. }, [_szscOrganizerDeskIconInfo[i]])
  2200. }, _frag); //
  2201. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2202. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  2203. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  2204. }
  2205. } else {
  2206. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  2207. _content = $$("div", {
  2208. className: "U_MD_D_KO",
  2209. "onmousedown": U.UF.C.closure(function (obj) {
  2210. //防止拖動圖標即打開了桌面應用
  2211. U.MD.D.click(this, obj);
  2212. }, [_teacherDesktopIconInfo[i]]),
  2213. "onclick": U.UF.C.closure(function (obj) {
  2214. //防止拖動圖標即打開了桌面應用
  2215. U.MD.D.click(this, obj);
  2216. }, [_teacherDesktopIconInfo[i]])
  2217. }, _frag); //
  2218. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2219. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  2220. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  2221. }
  2222. }
  2223. } else {
  2224. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  2225. _content = $$("div", {
  2226. className: "U_MD_D_KO",
  2227. style: { 'width': '124px', 'height': '145px' },
  2228. "onmousedown": U.UF.C.closure(function (obj) {
  2229. //防止拖動圖標即打開了桌面應用
  2230. U.MD.D.click(this, obj);
  2231. }, [_easyDesktopIconInfo[i]]),
  2232. "onclick": U.UF.C.closure(function (obj) {
  2233. //防止拖動圖標即打開了桌面應用
  2234. U.MD.D.click(this, obj);
  2235. }, [_easyDesktopIconInfo[i]])
  2236. }, _frag); //
  2237. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  2238. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  2239. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  2240. }
  2241. }
  2242. if (type == 1) {
  2243. //加載好後給圖標定位
  2244. U.MD.D.iconPostion($(_frag).Child());
  2245. } else {
  2246. //加載好後給圖標定位
  2247. U.MD.D.iconPostion2($(_frag).Child());
  2248. }
  2249. //把圖標加載到頁面
  2250. el.appendChild(_frag);
  2251. }
  2252. /**
  2253. * 顯示任務欄
  2254. *
  2255. * @param {element} 桌面元素
  2256. */
  2257. U.MD.D.I.displayTaskbar = function (el) {
  2258. //判斷是否需要形式任務欄,由於用了mouseover事件會冒泡響應多次,這裏做了過濾
  2259. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  2260. //任務欄位置變化
  2261. U.selectEl(el).css({ "bottom": "0px" });
  2262. //桌面位置變話
  2263. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  2264. }
  2265. }
  2266. //#region 桌面圖標拖動邏輯
  2267. /**
  2268. * 桌面排列圖標
  2269. *
  2270. * @param {element} 桌面元素
  2271. * @param {object} 上下相距的距離
  2272. * @param {object} 左右相距的距離
  2273. * @return {object} 命名空間
  2274. */
  2275. U.MD.D.iconPostion = function (childs, top, left) {
  2276. var i; //用於循環處理
  2277. top = top || 15; //如果沒有設置元素的間距處理默認上間距為15
  2278. left = left || 20; //如果沒有設置元素的間距處理默認左間距為15
  2279. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  2280. for (i = 0; i < childs.length; i++) {
  2281. //如果豎排top超過了範圍處理
  2282. if (top + 95 > US.height - 10) {
  2283. //left超過了頁面範圍處理,則向上重疊打印處理
  2284. if ((left + 180) > US.width) {
  2285. top -= 110;
  2286. left -= 90;
  2287. }
  2288. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  2289. else {
  2290. left += 90;
  2291. top = 15;
  2292. };
  2293. }
  2294. //給圖標的位置賦值
  2295. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  2296. if (i < childs.length - 1) {
  2297. //頁面圖標每次向下加95
  2298. top += 95;
  2299. }
  2300. }
  2301. //返回最後調用的圖標的位置
  2302. return [top, left];
  2303. }
  2304. /**
  2305. * 桌面排列圖標
  2306. *
  2307. * @param {element} 桌面元素
  2308. * @param {object} 上下相距的距離
  2309. * @param {object} 左右相距的距離
  2310. * @return {object} 命名空間
  2311. */
  2312. U.MD.D.iconPostion2 = function (childs, top, left) {
  2313. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用於循環處理
  2314. top = top || 70; //如果沒有設置元素的間距處理默認上間距為15
  2315. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果沒有設置元素的間距處理默認左間距為15
  2316. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  2317. for (i = 0; i < childs.length; i++) {
  2318. //如果豎排top超過了範圍處理
  2319. if (left + 150 > US.width - 10) {
  2320. //left超過了頁面範圍處理,則向上重疊打印處理
  2321. if ((top + 180) > US.Height) {
  2322. top -= 150;
  2323. left -= 150;
  2324. }
  2325. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  2326. else {
  2327. top += 150;
  2328. left = ol;
  2329. };
  2330. }
  2331. //給圖標的位置賦值
  2332. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  2333. if (i < childs.length - 1) {
  2334. //頁面圖標每次向下加95
  2335. left += 150;
  2336. }
  2337. }
  2338. //返回最後調用的圖標的位置
  2339. return [top, left];
  2340. }
  2341. /**
  2342. * 桌面點擊事件邏輯
  2343. *
  2344. * @param {element} 桌面元素
  2345. * @param {object} 上下相距的距離
  2346. * @param {object} 左右相距的距離
  2347. * @return {object} 命名空間
  2348. */
  2349. U.MD.D.click = function (el, obj) {
  2350. var _buttonnumber = event.button; //點擊的按鈕的事件值
  2351. var _userinfo = US.userInfo;
  2352. U.UF.EV.stopBubble(); //阻止向上冒泡
  2353. //onmousedown 包含了左鍵和右鍵 這裏大於2是為了兼容 所有瀏覽器的右鍵處理
  2354. if (_buttonnumber < 2) {
  2355. //如果是click事件的處理
  2356. if (event.type == "click") {
  2357. //如果元素在mousemove事件中沒有移動則出發click事件
  2358. if (!U.MD.D.I.IsDrag) {
  2359. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2360. U.alert("請先登錄您的賬號!");
  2361. setTimeout(() => {
  2362. U.MD.U.L.login();
  2363. }, 2000);
  2364. } else {
  2365. //打開應用處理
  2366. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  2367. }
  2368. }
  2369. }
  2370. //如果是mouse事件的處理
  2371. else {
  2372. if (US.Config.type == '1') {
  2373. //拖動處理,添加拖動和拖動結束事件
  2374. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  2375. }
  2376. }
  2377. U.MD.D.I.IsDrag = false;
  2378. }
  2379. }
  2380. /**
  2381. * 拖動的處理
  2382. *
  2383. */
  2384. U.MD.D.iconMove = function () {
  2385. //如果當前位置點擊初始化的位置出現了變化,則設置是否拖動的屬性 U.MD.D.I.IsDrag為true
  2386. U.MD.D.I.IsDrag = true;
  2387. }
  2388. /**
  2389. * 拖動結束後,這裏是定位處理,以網狀的形式定位
  2390. *
  2391. * @param {element} 拖動的元素
  2392. * @return {object} 命名空間
  2393. */
  2394. U.MD.D.iconUp = function (el) {
  2395. var _top = 15,
  2396. _left = 20,
  2397. _margin,
  2398. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的圖標
  2399. _positioninfo = U.UF.EL.getElementInfo(el); //獲取拖動結束的元素的位置
  2400. if (_positioninfo["OT"] > 15) {
  2401. //網狀的形式定位,如果差超過了55,那麼向下定位,否則向上定位
  2402. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  2403. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  2404. }
  2405. if (_positioninfo["OL"] > 20) {
  2406. //網狀的形式定位,如果差超過了90,那麼向右定位,否則向左定位
  2407. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  2408. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  2409. }
  2410. //while循環判斷麼一個重疊的元素
  2411. do {
  2412. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //給重疊的元素向下定位
  2413. _top = _positioninfo[0] + 95; //得到定位後的top
  2414. _left = _positioninfo[1]; //得到定位後的left
  2415. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  2416. }
  2417. /**
  2418. * 判斷拖動後圖標是否重疊
  2419. *
  2420. * @param {element} 拖動的元素
  2421. * @param {element} 桌面所有的元素
  2422. * @param {array} 拖動元素的位置
  2423. ----------[0] 上 top
  2424. ----------[1] 左 left
  2425. * @return {object} 命名空間
  2426. */
  2427. U.MD.D.isOverlap = function (el, childs, postionarray) {
  2428. //循環所有的圖標
  2429. for (var i = 0; i < childs.length; i++) {
  2430. //判斷有沒有和該圖標誒子重疊的元素
  2431. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  2432. return childs[i]; //如果有返回
  2433. }
  2434. }
  2435. }
  2436. //#endregion
  2437. //#endregion
  2438. //#region 桌面應用
  2439. /**
  2440. * 打開應用
  2441. *
  2442. * @param {string} 類型
  2443. -----------------Disk 網盤系統
  2444. -----------------PDisk 學習系統網盤
  2445. -----------------Poto 圖片
  2446. -----------------Video 視頻
  2447. -----------------Music 音樂
  2448. -----------------Word word
  2449. -----------------Excel excel
  2450. -----------------Txt 記事本
  2451. -----------------PB 學習系統
  2452. -----------------Blog 朋友圈系統
  2453. -----------------FTP ftp系統
  2454. -----------------Group 好友群
  2455. -----------------SY 首頁系統
  2456. -----------------Set 個人設置
  2457. -----------------XSet 系統設置
  2458. -----------------App 我們所有的app
  2459. -----------------BC c.1473.cn 平臺
  2460. -----------------CWeb d.1473.cn 變成平臺
  2461. -----------------其他的外聯系統 我們統一用iframe打開
  2462. * @param {array} 類型
  2463. 如果第一個參數為"disk",則第二個參數為object,裏面包含了用戶id和目錄id{userid:"",directoryid:""}
  2464. 如果第一個參數為"word"或者"excel","txt",則第二個參數為文件信息fileinfo。
  2465. 如果第一個參數為"blog"或者"PDisk"。建議刪除。
  2466. 如果第一個參數為其他,則無第二個參數
  2467. * @returns {array}
  2468. */
  2469. window.addEventListener('message', function (e) { // 監聽 message 事件
  2470. // alert(e.data.type);
  2471. if (e.data.screenType && e.data.screenType == "2") { //課程管理傳入
  2472. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  2473. //3是展示全部階段 2學生 1老師 4專家
  2474. } else if (e.data.screenType && e.data.screenType == "2s") { //課程管理傳入
  2475. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  2476. //3是展示全部階段 2學生 1老師 4專家
  2477. } else if (e.data.screenType && e.data.screenType == "2studio") { //課程管理傳入
  2478. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  2479. //3是展示全部階段 2學生 1老師 4專家
  2480. } else if (e.data.screenType && e.data.screenType == "3") { //課程管理傳入
  2481. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  2482. } else if (e.data.screenType && e.data.screenType == "3NT") { //課程管理傳入
  2483. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  2484. } else if (e.data.screenType && e.data.screenType == "3s") { //課程管理傳入
  2485. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  2486. } else if (e.data.screenType && e.data.screenType == "3studio") { //課程管理傳入
  2487. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  2488. } else if (e.data.screenType && e.data.screenType == "3s2") { //課程管理傳入
  2489. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  2490. } else if (e.data.screenType && e.data.screenType == "2gm") { //課程管理傳入
  2491. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  2492. //3是展示全部階段 2學生 1老師 4專家
  2493. } else if (e.data.screenType && e.data.screenType == "3gm") { //課程管理傳入
  2494. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  2495. } else if (e.data.close && e.data.close == "1") { //更新用戶信息
  2496. U.MD.D.I.selectUser();
  2497. } else if (e.data.allScreen && e.data.allScreen == "1") {
  2498. var _formel = document.getElementById("study");
  2499. U.UF.F.windowZooming(_formel);
  2500. } else if (e.data.allScreen && e.data.allScreen == "2") {
  2501. var _formel = document.getElementById("studyDetail");
  2502. U.UF.F.windowZooming(_formel);
  2503. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  2504. var _formel = document.getElementById("studyDetail");
  2505. U.UF.F.windowZooming(_formel);
  2506. } else if (e.data.allScreen && e.data.allScreen == "3") {
  2507. var _formel = document.getElementById("studentStudy");
  2508. U.UF.F.windowZooming(_formel);
  2509. } else if (e.data.allScreen && e.data.allScreen == "6") {
  2510. // var _formel = document.getElementById("study");
  2511. //如果最大化了,那麼就把他縮小
  2512. // if (_formel.ismaximize) {
  2513. // return;
  2514. // }
  2515. // U.UF.F.windowZooming(_formel);
  2516. // U.UF.F.topWindow(_formel);
  2517. } else if (e.data.allScreen && e.data.allScreen == "4") {
  2518. // var _formel = document.getElementById("studyDetail");
  2519. //如果最大化了,那麼就把他縮小
  2520. // if (_formel.ismaximize) {
  2521. // return;
  2522. // }
  2523. // U.UF.F.windowZooming(_formel);
  2524. // U.UF.F.topWindow(_formel);
  2525. } else if (e.data.allScreen && e.data.allScreen == "5") {
  2526. // var _formel = document.getElementById("studentStudy");
  2527. // if (_formel.ismaximize) {
  2528. // return;
  2529. // }
  2530. // U.UF.F.windowZooming(_formel);
  2531. // U.UF.F.topWindow(_formel);
  2532. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  2533. var _formel = document.getElementById("study");
  2534. // if (_formel.ismaximize) {
  2535. // return;
  2536. // }
  2537. // U.UF.F.windowZooming(_formel);
  2538. U.UF.F.topWindow(_formel);
  2539. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  2540. var _formel = document.getElementById("studentIndex");
  2541. U.UF.F.windowZooming(_formel);
  2542. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  2543. var _formel = document.getElementById("studyDetailS");
  2544. U.UF.F.windowZooming(_formel);
  2545. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  2546. var _formel = document.getElementById("studioIndex");
  2547. U.UF.F.windowZooming(_formel);
  2548. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  2549. var _formel = document.getElementById("studyDetailStudio");
  2550. U.UF.F.windowZooming(_formel);
  2551. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  2552. var _formel = document.getElementById("studyDetailStudio");
  2553. U.UF.F.windowZooming(_formel);
  2554. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  2555. var _formel = document.getElementById("studyDetailNT");
  2556. U.UF.F.windowZooming(_formel);
  2557. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  2558. var _formel = document.getElementById("studyDetailS");
  2559. U.UF.F.windowZooming(_formel);
  2560. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  2561. var _formel = document.getElementById("studyDetailS");
  2562. U.UF.F.topWindow(_formel);
  2563. } else if (e.data.tools && e.data.tools == "1") {
  2564. // U.MD.D.I.openApplication("whiteboard")
  2565. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2566. } else if (e.data.tools && e.data.tools == "2") {
  2567. U.MD.D.I.openApplication("note")
  2568. } else if (e.data.tools && e.data.tools == "3") {
  2569. // U.MD.D.I.openApplication("mind")
  2570. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2571. } else if (e.data.tools && e.data.tools == "4") {
  2572. U.MD.D.I.openApplication("investigation")
  2573. } else if (e.data.tools && e.data.tools == "6") {
  2574. // U.MD.D.I.openApplication("doc")
  2575. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2576. } else if (e.data.tools && e.data.tools == "7") {
  2577. // U.MD.D.I.openApplication("mindNetwork")
  2578. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2579. } else if (e.data.tools && e.data.tools == "8") {
  2580. U.MD.D.I.openApplication("library")
  2581. } else if (e.data.tools && e.data.tools == "17") {
  2582. U.MD.D.I.openApplication("stuLibrary")
  2583. } else if (e.data.tools && e.data.tools == "18") {
  2584. U.MD.D.I.openApplication("train")
  2585. } else if (e.data.tools && e.data.tools == "21") {
  2586. U.MD.D.I.openApplication("program")
  2587. } else if (e.data.tools && e.data.tools == "22") {
  2588. U.MD.D.I.openApplication("AIprogram2")
  2589. } else if (e.data.tools && e.data.tools == "23") {
  2590. U.MD.D.I.openApplication("Pythonprogram")
  2591. } else if (e.data.tools && e.data.tools == "24") {
  2592. U.MD.D.I.openApplication("AIprogram")
  2593. } else if (e.data.tools && e.data.tools == "25") {
  2594. U.MD.D.I.openApplication("sys")
  2595. } else if (e.data.tools && e.data.tools == "26") {
  2596. // U.MD.D.I.openApplication("courseDesign")
  2597. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2598. } else if (e.data.tools && e.data.tools == "31") {
  2599. U.MD.D.I.openApplication("netWorkPanel")
  2600. } else if (e.data.tools && e.data.tools == "32") {
  2601. U.MD.D.I.openApplication("codeEdit")
  2602. } else if (e.data.tools && e.data.tools == "57") {
  2603. U.MD.D.I.openApplication("CocoPi")
  2604. } else if (e.data.tools && e.data.tools == "63") {
  2605. U.MD.D.I.openApplication("Wood")
  2606. } else if (e.data.tools && e.data.tools == "58") {
  2607. U.MD.D.I.openApplication("car")
  2608. } else if (e.data.tools && e.data.tools == "59") {
  2609. U.MD.D.I.openApplication("lineSearch")
  2610. } else if (e.data.tools && e.data.tools == "60") {
  2611. U.MD.D.I.openApplication("deepLearning")
  2612. } else if (e.data.tools && e.data.tools == "61") {
  2613. U.MD.D.I.openApplication("allHistory")
  2614. } else if (e.data.tools && e.data.tools == "28") {
  2615. U.MD.D.I.openApplication("translation")
  2616. } else if (e.data.tools && e.data.tools == "37") {
  2617. U.MD.D.I.openApplication("mohe")
  2618. } else if (e.data.tools && e.data.tools == "38") {
  2619. U.MD.D.I.openApplication("24game")
  2620. } else if (e.data.tools && e.data.tools == "39") {
  2621. U.MD.D.I.openApplication("GeoGebra")
  2622. } else if (e.data.tools && e.data.tools == "43") {
  2623. U.MD.D.I.openApplication("studentEvaluate")
  2624. } else if (e.data.tools && e.data.tools == "44") {
  2625. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  2626. } else if (e.data.tools && e.data.tools == "46") {
  2627. U.MD.D.I.openApplication("project")
  2628. } else if (e.data.tools && e.data.tools == "1s") {
  2629. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2630. } else if (e.data.tools && e.data.tools == "3s") {
  2631. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2632. } else if (e.data.tools && e.data.tools == "6s") {
  2633. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2634. } else if (e.data.tools && e.data.tools == "1studio") {
  2635. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2636. } else if (e.data.tools && e.data.tools == "3studio") {
  2637. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2638. } else if (e.data.tools && e.data.tools == "6studio") {
  2639. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2640. } else if (e.data.tools && e.data.tools == "3y") {
  2641. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2642. } else if (e.data.tools && e.data.tools == "1y") {
  2643. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2644. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  2645. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  2646. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  2647. U.MD.D.I.openApplication("AIAnalyse")
  2648. } else if (e.data.tools && e.data.tools == "1teacher") {
  2649. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2650. } else if (e.data.tools && e.data.tools == "3teacher") {
  2651. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2652. } else if (e.data.tools && e.data.tools == "7teacher") {
  2653. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2654. } else if (e.data.tools && e.data.tools == "1teacherE") {
  2655. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2656. } else if (e.data.tools && e.data.tools == "3teacherE") {
  2657. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2658. } else if (e.data.tools && e.data.tools == "1E") {
  2659. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2660. } else if (e.data.tools && e.data.tools == "3E") {
  2661. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2662. } else if (e.data.tools && e.data.tools == "57y") {
  2663. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2664. } else if (e.data.tools && e.data.tools == "57u") {
  2665. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2666. } else if (e.data.tools && e.data.tools == "57teacher") {
  2667. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2668. } else if (e.data.tools && e.data.tools == "64") {
  2669. U.MD.D.I.openApplication("AIChat")
  2670. } else if (e.data.tools && e.data.tools == "66") {
  2671. U.MD.D.I.openApplication("formulaEdi")
  2672. } else if (e.data.tools && e.data.tools == "67") {
  2673. U.MD.D.I.openApplication("molStr")
  2674. } else if (e.data.tools && e.data.tools == "68") {
  2675. U.MD.D.I.openApplication("timeAxis")
  2676. } else if (e.data.tools && e.data.tools == "openCourse") {
  2677. let _data = {
  2678. typea: e.data.typea || '',
  2679. typeb: e.data.typeb || '',
  2680. typed: e.data.typed || '',
  2681. }
  2682. U.MD.D.I.openInApplication("index", _data)
  2683. } else if (e.data.tools && e.data.tools == "openDataClass") {
  2684. let _data = {
  2685. classid: e.data.classid || '',
  2686. }
  2687. U.MD.D.I.openInApplication("dataClass", _data)
  2688. } else if (e.data.tools && e.data.tools == "opencCscl") {
  2689. let _data = {
  2690. cid: e.data.cid || '',
  2691. gid: e.data.gid || '',
  2692. }
  2693. U.MD.D.I.openInApplication("opencCscl", _data)
  2694. }
  2695. });
  2696. U.MD.D.I.selectUser = function () {
  2697. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  2698. if (res.value[0].length > 0) {
  2699. US.userInfo = res.value[0][0];
  2700. $(".userName")[0].innerHTML = US.userInfo.username;
  2701. }
  2702. }, [], { "type": "GET", "withCredentials": true });
  2703. }
  2704. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  2705. var _userinfo = US.userInfo, //登錄用戶信息
  2706. _userid = US.userInfo.userid, //登錄用戶id
  2707. _oid = _userinfo.organizeid,
  2708. _type = US.userInfo.type,
  2709. _org = US.userInfo.org,
  2710. _role = US.userInfo.role,
  2711. _classId = US.userInfo.classid;
  2712. if (_type == 4) {
  2713. tType = 4
  2714. }
  2715. switch (str) {
  2716. case "studyDetailNT": //無終端模式
  2717. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2718. setTimeout(() => {
  2719. U.MD.U.L.login();
  2720. }, 2000);
  2721. } else {
  2722. _formdiv = new U.UF.UI.form(
  2723. "課程詳情",
  2724. $$("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 }), {
  2725. "id": "studyDetailNT",
  2726. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2727. "onresize": function () { }
  2728. }, {
  2729. closecallback: function () { }
  2730. }, { "style": { "height": "36px" } }).form; //創建窗體
  2731. _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); } }
  2732. break;
  2733. }
  2734. case "studyDetail":
  2735. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2736. setTimeout(() => {
  2737. U.MD.U.L.login();
  2738. }, 2000);
  2739. } else {
  2740. _formdiv = new U.UF.UI.form(
  2741. "課程詳情",
  2742. $$("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 }), {
  2743. "id": "studyDetail",
  2744. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2745. "onresize": function () { }
  2746. }, {
  2747. closecallback: function () { }
  2748. }, { "style": { "height": "36px" } }).form; //創建窗體
  2749. _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); } }
  2750. break;
  2751. }
  2752. case "studyDetailS":
  2753. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2754. setTimeout(() => {
  2755. U.MD.U.L.login();
  2756. }, 2000);
  2757. } else {
  2758. _formdiv = new U.UF.UI.form(
  2759. "項目詳情",
  2760. $$("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 }), {
  2761. "id": "studyDetailS",
  2762. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2763. "onresize": function () { }
  2764. }, {
  2765. closecallback: function () { }
  2766. }, { "style": { "height": "36px" } }).form; //創建窗體
  2767. _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); } }
  2768. break;
  2769. }
  2770. case "studyDetailStudio":
  2771. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2772. setTimeout(() => {
  2773. U.MD.U.L.login();
  2774. }, 2000);
  2775. } else {
  2776. _formdiv = new U.UF.UI.form(
  2777. "工作詳情",
  2778. $$("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 }), {
  2779. "id": "studyDetailStudio",
  2780. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2781. "onresize": function () { }
  2782. }, {
  2783. closecallback: function () { }
  2784. }, { "style": { "height": "36px" } }).form; //創建窗體
  2785. _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); } }
  2786. break;
  2787. }
  2788. case "studyDetailS5":
  2789. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2790. setTimeout(() => {
  2791. U.MD.U.L.login();
  2792. }, 2000);
  2793. } else {
  2794. _formdiv = new U.UF.UI.form(
  2795. "項目詳情",
  2796. $$("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 }), {
  2797. "id": "studyDetailS",
  2798. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2799. "onresize": function () { }
  2800. }, {
  2801. closecallback: function () { }
  2802. }, { "style": { "height": "36px" } }).form; //創建窗體
  2803. _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); } }
  2804. break;
  2805. }
  2806. case "studyDetailGM":
  2807. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2808. setTimeout(() => {
  2809. U.MD.U.L.login();
  2810. }, 2000);
  2811. } else {
  2812. _formdiv = new U.UF.UI.form(
  2813. "課程詳情",
  2814. $$("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 }), {
  2815. "id": "studyDetail",
  2816. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2817. "onresize": function () { }
  2818. }, {
  2819. closecallback: function () { }
  2820. }, { "style": { "height": "36px" } }).form; //創建窗體
  2821. _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); } }
  2822. break;
  2823. }
  2824. case "hanUrl":
  2825. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2826. setTimeout(() => {
  2827. U.MD.U.L.login();
  2828. }, 2000);
  2829. } else {
  2830. _formdiv = new U.UF.UI.form(
  2831. "漢字宮",
  2832. $$("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" }), {
  2833. "id": "hanUrl",
  2834. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2835. "onresize": function () { }
  2836. }, {
  2837. closecallback: function () { }
  2838. }, { "style": { "height": "36px" } }).form; //創建窗體
  2839. _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); } }
  2840. break;
  2841. }
  2842. case "index":
  2843. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2844. setTimeout(() => {
  2845. U.MD.U.L.login();
  2846. }, 2000);
  2847. } else {
  2848. _formdiv = new U.UF.UI.form(
  2849. "課程中心",
  2850. $$("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 }), {
  2851. "id": "study",
  2852. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2853. "onresize": function () { }
  2854. }, {
  2855. closecallback: function () { }
  2856. }, { "style": { "height": "36px" } }).form; //創建窗體
  2857. _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); } }
  2858. break;
  2859. }
  2860. case "dataClass":
  2861. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2862. setTimeout(() => {
  2863. U.MD.U.L.login();
  2864. }, 2000);
  2865. } else {
  2866. _formdiv = new U.UF.UI.form(
  2867. "數據報告",
  2868. $$("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 }), {
  2869. "id": "dataClass",
  2870. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2871. "onresize": function () { }
  2872. }, {
  2873. closecallback: function () { }
  2874. }, { "style": { "height": "36px" } }).form; //創建窗體
  2875. _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); } }
  2876. break;
  2877. }
  2878. case "opencCscl":
  2879. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2880. setTimeout(() => {
  2881. U.MD.U.L.login();
  2882. }, 2000);
  2883. } else {
  2884. _formdiv = new U.UF.UI.form(
  2885. "協同建構",
  2886. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cscl.cocorobo.hk?cid=" + data.cid + "&gid=" + data.gid }), {
  2887. "id": "futureClass",
  2888. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2889. "onresize": function () { }
  2890. }, {
  2891. closecallback: function () { $("iframe", _formdiv)[0].contentWindow.loginout(); }
  2892. }, { "style": { "height": "36px" } }).form; //创建窗体
  2893. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/futureClass.png)" }, "name": "协同建构", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2894. break;
  2895. }
  2896. }
  2897. }
  2898. U.MD.D.I.openApplication = function (str, obj, info) {
  2899. obj = obj || {};
  2900. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  2901. _formdiv, //創建任務欄時同時彈出的窗體元素。
  2902. _userinfo = US.userInfo, //登錄用戶信息
  2903. _userid = obj.userid || US.userInfo.userid, //登錄用戶id
  2904. _oid = obj.organizeid || _userinfo.organizeid,
  2905. _type = US.userInfo.type,
  2906. _org = US.userInfo.org,
  2907. _role = US.userInfo.role,
  2908. _classId = US.userInfo.classid,
  2909. _TscreenType = 1
  2910. _screenType = 2,
  2911. _SscreenType = 3;
  2912. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2913. return;
  2914. }
  2915. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2916. switch (str) {
  2917. case "studnetProject": //好友打開
  2918. _formdiv = new U.UF.UI.form(
  2919. "我的項目",
  2920. $$("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 }), {
  2921. "id": "studnetProject",
  2922. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2923. "onresize": function () { }
  2924. }, {
  2925. closecallback: function () { }
  2926. }, { "style": { "height": "36px" } }).form; //創建窗體
  2927. _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); } }
  2928. break;
  2929. case "studentEvaluate": //好友打開
  2930. _formdiv = new U.UF.UI.form(
  2931. "我的評價",
  2932. $$("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 }), {
  2933. "id": "studentEvaluate",
  2934. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2935. "onresize": function () { }
  2936. }, {
  2937. closecallback: function () { }
  2938. }, { "style": { "height": "36px" } }).form; //創建窗體
  2939. _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); } }
  2940. break;
  2941. case "my":
  2942. _formdiv = new U.UF.UI.form(
  2943. "我的資料",
  2944. $$("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 }), {
  2945. "id": "my",
  2946. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2947. "onresize": function () { }
  2948. }, {
  2949. closecallback: function () { }
  2950. }, { "style": { "height": "36px" } }).form; //創建窗體
  2951. _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); } }
  2952. break;
  2953. case "program":
  2954. _formdiv = new U.UF.UI.form(
  2955. "編程平臺",
  2956. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2957. "id": "program",
  2958. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2959. "onresize": function () { }
  2960. }, {
  2961. closecallback: function () { }
  2962. }, { "style": { "height": "36px" } }).form; //創建窗體
  2963. _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); } }
  2964. break;
  2965. case "library":
  2966. _formdiv = new U.UF.UI.form(
  2967. "素材庫",
  2968. $$("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 }), {
  2969. "id": "library",
  2970. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2971. "onresize": function () { }
  2972. }, {
  2973. closecallback: function () { }
  2974. }, { "style": { "height": "36px" } }).form; //創建窗體
  2975. _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); } }
  2976. break;
  2977. case "whiteboard":
  2978. _formdiv = new U.UF.UI.form(
  2979. "電子白板",
  2980. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2981. "id": "whiteboard",
  2982. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2983. "onresize": function () { }
  2984. }, {
  2985. closecallback: function () { }
  2986. }, { "style": { "height": "36px" } }).form; //創建窗體
  2987. _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); } }
  2988. break;
  2989. case "investigation":
  2990. _formdiv = new U.UF.UI.form(
  2991. "問卷調查",
  2992. $$("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 }), {
  2993. "id": "investigation",
  2994. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2995. "onresize": function () { }
  2996. }, {
  2997. closecallback: function () { }
  2998. }, { "style": { "height": "36px" } }).form; //創建窗體
  2999. _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); } }
  3000. break;
  3001. case "note":
  3002. _formdiv = new U.UF.UI.form(
  3003. "便簽分類",
  3004. $$("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 }), {
  3005. "id": "note",
  3006. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  3007. "onresize": function () { }
  3008. }, {
  3009. closecallback: function () { }
  3010. }, { "style": { "height": "36px" } }).form; //創建窗體
  3011. _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); } }
  3012. break;
  3013. // case "score":
  3014. // _formdiv = new U.UF.UI.form(
  3015. // "量規評分",
  3016. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  3017. // "id": "score",
  3018. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3019. // "onresize": function() {}
  3020. // }, {
  3021. // closecallback: function() {}
  3022. // }, { "style": { "height": "36px" } }).form; //創建窗體
  3023. // _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); } }
  3024. // break;
  3025. case "mind":
  3026. _formdiv = new U.UF.UI.form(
  3027. "思維導圖",
  3028. $$("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"
  3029. "id": "mind",
  3030. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3031. "onresize": function () { }
  3032. }, {
  3033. closecallback: function () { }
  3034. }, { "style": { "height": "36px" } }).form; //創建窗體
  3035. _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); } }
  3036. break;
  3037. case "doc":
  3038. // U.MD.D.I.isRoom();
  3039. _formdiv = new U.UF.UI.form(
  3040. "協同文檔",
  3041. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  3042. "id": "doc",
  3043. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3044. "onresize": function () { }
  3045. }, {
  3046. closecallback: function () { }
  3047. }, { "style": { "height": "36px" } }).form; //創建窗體
  3048. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3049. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3050. // })
  3051. _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); } }
  3052. break;
  3053. case "studentStudy":
  3054. _formdiv = new U.UF.UI.form(
  3055. "課程中心",
  3056. $$("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
  3057. "id": "studentStudy",
  3058. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3059. "onresize": function () { }
  3060. }, {
  3061. closecallback: function () { }
  3062. }, { "style": { "height": "36px" } }).form; //創建窗體
  3063. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "課程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3064. break;
  3065. case "train": //好友打開
  3066. _formdiv = new U.UF.UI.form(
  3067. "訓練平臺",
  3068. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3069. "id": "train",
  3070. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3071. "onresize": function () { }
  3072. }, {
  3073. closecallback: function () { }
  3074. }, { "style": { "height": "36px" } }).form; //創建窗體
  3075. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "訓練平臺", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3076. break;
  3077. case "mindNetwork": //好友打開
  3078. _formdiv = new U.UF.UI.form(
  3079. "思維網格",
  3080. $$("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 }), {
  3081. "id": "mindNetwork",
  3082. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3083. "onresize": function () { }
  3084. }, {
  3085. closecallback: function () { }
  3086. }, { "style": { "height": "36px" } }).form; //創建窗體
  3087. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思維網格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3088. break;
  3089. case "studentClassRoom": //好友打開
  3090. _formdiv = new U.UF.UI.form(
  3091. "實時課堂",
  3092. $$("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 }), {
  3093. "id": "studentClassRoom",
  3094. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3095. "onresize": function () { }
  3096. }, {
  3097. closecallback: function () { }
  3098. }, { "style": { "height": "36px" } }).form; //創建窗體
  3099. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "實時課堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3100. setTimeout(() => {
  3101. U.UF.F.windowZooming(_formdiv)
  3102. }, 0);
  3103. break;
  3104. }
  3105. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  3106. switch (str) {
  3107. case "studnetProject": //好友打開
  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-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  3111. "id": "studnetProject",
  3112. "style": { "width": "70%", "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/project.png)" }, "name": "我的項目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3118. break;
  3119. case "studentEvaluate": //好友打開
  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": US.Config.bpbl + "/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3123. "id": "studentEvaluate",
  3124. "style": { "width": "70%", "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/evaluation.png)" }, "name": "我的評價", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3130. break;
  3131. case "my":
  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/#/data?userid=" + _userid + "&org=" + _org }), {
  3135. "id": "my",
  3136. "style": { "width": "42%", "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/myMessage.png)" }, "name": "我的資料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3142. break;
  3143. case "program":
  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": "https://x.cocorobo.cn" }), {
  3147. "id": "program",
  3148. "style": { "width": "70%", "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/myMessage.png)" }, "name": "編程平臺", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3154. break;
  3155. case "library":
  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 + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  3159. "id": "library",
  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/library.png)" }, "name": "素材庫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3166. break;
  3167. case "whiteboard":
  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": "https://iwb.cocorobo.hk/" }), {
  3171. "id": "whiteboard",
  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/whiteBoard.png)" }, "name": "電子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3178. break;
  3179. case "investigation":
  3180. _formdiv = new U.UF.UI.form(
  3181. "問卷調查",
  3182. $$("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 }), {
  3183. "id": "investigation",
  3184. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3185. "onresize": function () { }
  3186. }, {
  3187. closecallback: function () { }
  3188. }, { "style": { "height": "36px" } }).form; //創建窗體
  3189. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "問卷調查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3190. break;
  3191. case "note":
  3192. _formdiv = new U.UF.UI.form(
  3193. "便簽分類",
  3194. $$("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 }), {
  3195. "id": "note",
  3196. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  3197. "onresize": function () { }
  3198. }, {
  3199. closecallback: function () { }
  3200. }, { "style": { "height": "36px" } }).form; //創建窗體
  3201. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便簽分類", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3202. break;
  3203. // case "score":
  3204. // _formdiv = new U.UF.UI.form(
  3205. // "量規評分",
  3206. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  3207. // "id": "score",
  3208. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3209. // "onresize": function() {}
  3210. // }, {
  3211. // closecallback: function() {}
  3212. // }, { "style": { "height": "36px" } }).form; //創建窗體
  3213. // _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); } }
  3214. // break;
  3215. case "mind":
  3216. _formdiv = new U.UF.UI.form(
  3217. "思維導圖",
  3218. $$("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"
  3219. "id": "mind",
  3220. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3221. "onresize": function () { }
  3222. }, {
  3223. closecallback: function () { }
  3224. }, { "style": { "height": "36px" } }).form; //創建窗體
  3225. _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); } }
  3226. break;
  3227. case "doc":
  3228. // U.MD.D.I.isRoom();
  3229. _formdiv = new U.UF.UI.form(
  3230. "協同文檔",
  3231. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3232. "id": "doc",
  3233. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3234. "onresize": function () { }
  3235. }, {
  3236. closecallback: function () { }
  3237. }, { "style": { "height": "36px" } }).form; //創建窗體
  3238. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3239. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3240. })
  3241. _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); } }
  3242. break;
  3243. case "train": //好友打開
  3244. _formdiv = new U.UF.UI.form(
  3245. "訓練平臺",
  3246. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3247. "id": "train",
  3248. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3249. "onresize": function () { }
  3250. }, {
  3251. closecallback: function () { }
  3252. }, { "style": { "height": "36px" } }).form; //創建窗體
  3253. _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); } }
  3254. break;
  3255. case "studentStudy":
  3256. _formdiv = new U.UF.UI.form(
  3257. "課程中心",
  3258. $$("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
  3259. "id": "studentStudy",
  3260. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3261. "onresize": function () { }
  3262. }, {
  3263. closecallback: function () { }
  3264. }, { "style": { "height": "36px" } }).form; //創建窗體
  3265. _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); } }
  3266. break;
  3267. case "mindNetwork": //好友打開
  3268. _formdiv = new U.UF.UI.form(
  3269. "思維網格",
  3270. $$("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 }), {
  3271. "id": "mindNetwork",
  3272. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3273. "onresize": function () { }
  3274. }, {
  3275. closecallback: function () { }
  3276. }, { "style": { "height": "36px" } }).form; //創建窗體
  3277. _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); } }
  3278. break;
  3279. case "studentClassRoom": //好友打開
  3280. _formdiv = new U.UF.UI.form(
  3281. "實時課堂",
  3282. $$("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 }), {
  3283. "id": "studentClassRoom",
  3284. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3285. "onresize": function () { }
  3286. }, {
  3287. closecallback: function () { }
  3288. }, { "style": { "height": "36px" } }).form; //創建窗體
  3289. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "實時課堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3290. setTimeout(() => {
  3291. U.UF.F.windowZooming(_formdiv)
  3292. }, 0);
  3293. break;
  3294. }
  3295. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  3296. //選擇應用處理
  3297. switch (str) {
  3298. case "project": //好友打開
  3299. _formdiv = new U.UF.UI.form(
  3300. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目' : "課程管理",
  3301. $$("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 }), {
  3302. "id": "project",
  3303. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3304. "onresize": function () { }
  3305. }, {
  3306. closecallback: function () { }
  3307. }, { "style": { "height": "36px" } }).form; //創建窗體
  3308. _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); } }
  3309. break;
  3310. case "student":
  3311. _formdiv = new U.UF.UI.form(
  3312. "學生管理",
  3313. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org + "&role=" + _role }), {
  3314. "id": "student",
  3315. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3316. "onresize": function () { }
  3317. }, {
  3318. closecallback: function () { }
  3319. }, { "style": { "height": "36px" } }).form; //創建窗體
  3320. _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); } }
  3321. break;
  3322. case "evaluate":
  3323. _formdiv = new U.UF.UI.form(
  3324. "學生評價",
  3325. $$("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 }), {
  3326. "id": "evaluate",
  3327. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3328. "onresize": function () { }
  3329. }, {
  3330. closecallback: function () { }
  3331. }, { "style": { "height": "36px" } }).form; //創建窗體
  3332. _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); } }
  3333. break;
  3334. case "sys":
  3335. _formdiv = new U.UF.UI.form(
  3336. "目標管理",
  3337. $$("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 }), {
  3338. "id": "sys",
  3339. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3340. "onresize": function () { }
  3341. }, {
  3342. closecallback: function () { }
  3343. }, { "style": { "height": "36px" } }).form; //創建窗體
  3344. _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); } }
  3345. break;
  3346. case "courseDesign":
  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": "/course-design-vue" }), {
  3350. "id": "courseDesign",
  3351. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3352. "onresize": function () { }
  3353. }, {
  3354. closecallback: function () { }
  3355. }, { "style": { "height": "36px" } }).form; //創建窗體
  3356. _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); } }
  3357. break;
  3358. case "program":
  3359. _formdiv = new U.UF.UI.form(
  3360. "編程平臺",
  3361. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3362. "id": "program",
  3363. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3364. "onresize": function () { }
  3365. }, {
  3366. closecallback: function () { }
  3367. }, { "style": { "height": "36px" } }).form; //創建窗體
  3368. _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); } }
  3369. break;
  3370. case "class":
  3371. _formdiv = new U.UF.UI.form(
  3372. "班級管理",
  3373. $$("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 }), {
  3374. "id": "class",
  3375. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3376. "onresize": function () { }
  3377. }, {
  3378. closecallback: function () { }
  3379. }, { "style": { "height": "36px" } }).form; //創建窗體
  3380. _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); } }
  3381. break;
  3382. case "Grade":
  3383. _formdiv = new U.UF.UI.form(
  3384. "年級管理",
  3385. $$("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 }), {
  3386. "id": "Grade",
  3387. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3388. "onresize": function () { }
  3389. }, {
  3390. closecallback: function () { }
  3391. }, { "style": { "height": "36px" } }).form; //創建窗體
  3392. _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); } }
  3393. break;
  3394. case "teacherOffice":
  3395. _formdiv = new U.UF.UI.form(
  3396. "教研室",
  3397. $$("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 }), {
  3398. "id": "teacherOffice",
  3399. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3400. "onresize": function () { }
  3401. }, {
  3402. closecallback: function () { }
  3403. }, { "style": { "height": "36px" } }).form; //創建窗體
  3404. _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); } }
  3405. break;
  3406. case "my":
  3407. _formdiv = new U.UF.UI.form(
  3408. "我的資料",
  3409. $$("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 }), {
  3410. "id": "my",
  3411. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3412. "onresize": function () { }
  3413. }, {
  3414. closecallback: function () { }
  3415. }, { "style": { "height": "36px" } }).form; //創建窗體
  3416. _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); } }
  3417. break;
  3418. case "notice":
  3419. _formdiv = new U.UF.UI.form(
  3420. "通知公告",
  3421. $$("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 }), {
  3422. "id": "notice",
  3423. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3424. "onresize": function () { }
  3425. }, {
  3426. closecallback: function () { }
  3427. }, { "style": { "height": "36px" } }).form; //創建窗體
  3428. _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); } }
  3429. break;
  3430. case "library":
  3431. _formdiv = new U.UF.UI.form(
  3432. "素材庫",
  3433. $$("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 }), {
  3434. "id": "library",
  3435. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3436. "onresize": function () { }
  3437. }, {
  3438. closecallback: function () { }
  3439. }, { "style": { "height": "36px" } }).form; //創建窗體
  3440. _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); } }
  3441. break;
  3442. case "whiteboard":
  3443. _formdiv = new U.UF.UI.form(
  3444. "電子白板",
  3445. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3446. "id": "whiteboard",
  3447. "style": { "width": "90%", "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/whiteBoard.png)" }, "name": "電子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3453. break;
  3454. case "investigation":
  3455. _formdiv = new U.UF.UI.form(
  3456. "問卷調查",
  3457. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  3458. "id": "investigation",
  3459. "style": { "width": "90%", "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/ask.png)" }, "name": "問卷調查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3465. break;
  3466. case "note":
  3467. _formdiv = new U.UF.UI.form(
  3468. "便簽分類",
  3469. $$("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 }), {
  3470. "id": "note",
  3471. "style": { "width": "20%", "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/note.png)" }, "name": "便簽分類", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3477. break;
  3478. // case "score":
  3479. // _formdiv = new U.UF.UI.form(
  3480. // "量規評分",
  3481. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  3482. // "id": "score",
  3483. // "style": { "width": "90%", "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/score.png)" }, "name": "量規評分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3489. // break;
  3490. case "mind":
  3491. _formdiv = new U.UF.UI.form(
  3492. "思維導圖",
  3493. $$("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"
  3494. "id": "mind",
  3495. "style": { "width": "90%", "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/mindMapping.png)" }, "name": "思維導圖", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3501. break;
  3502. case "doc":
  3503. // U.MD.D.I.isRoom();
  3504. _formdiv = new U.UF.UI.form(
  3505. "協同文檔",
  3506. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3507. "id": "doc",
  3508. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3509. "onresize": function () { }
  3510. }, {
  3511. closecallback: function () { }
  3512. }, { "style": { "height": "36px" } }).form; //創建窗體
  3513. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3514. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3515. })
  3516. _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); } }
  3517. break;
  3518. case "study":
  3519. _formdiv = new U.UF.UI.form(
  3520. "課程中心",
  3521. $$("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
  3522. "id": "study",
  3523. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3524. "onresize": function () { }
  3525. }, {
  3526. closecallback: function () { }
  3527. }, { "style": { "height": "36px" } }).form; //創建窗體
  3528. _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); } }
  3529. break;
  3530. case "mindNetwork": //好友打開
  3531. _formdiv = new U.UF.UI.form(
  3532. "思維網格",
  3533. $$("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 }), {
  3534. "id": "mindNetwork",
  3535. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3536. "onresize": function () { }
  3537. }, {
  3538. closecallback: function () { }
  3539. }, { "style": { "height": "36px" } }).form; //創建窗體
  3540. _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); } }
  3541. break;
  3542. case "train": //好友打開
  3543. _formdiv = new U.UF.UI.form(
  3544. "訓練平臺",
  3545. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3546. "id": "mindNetwork",
  3547. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3548. "onresize": function () { }
  3549. }, {
  3550. closecallback: function () { }
  3551. }, { "style": { "height": "36px" } }).form; //創建窗體
  3552. _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); } }
  3553. break;
  3554. case "teacherClassRoom": //好友打開
  3555. _formdiv = new U.UF.UI.form(
  3556. "實時課堂",
  3557. $$("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 }), {
  3558. "id": "teacherClassRoom",
  3559. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3560. "onresize": function () { }
  3561. }, {
  3562. closecallback: function () { }
  3563. }, { "style": { "height": "36px" } }).form; //創建窗體
  3564. _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); } }
  3565. setTimeout(() => {
  3566. U.UF.F.windowZooming(_formdiv)
  3567. }, 0);
  3568. break;
  3569. }
  3570. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  3571. switch (str) {
  3572. case "project": //好友打開
  3573. _formdiv = new U.UF.UI.form(
  3574. "課程管理",
  3575. $$("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 }), {
  3576. "id": "project",
  3577. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3578. "onresize": function () { }
  3579. }, {
  3580. closecallback: function () { }
  3581. }, { "style": { "height": "36px" } }).form; //創建窗體
  3582. _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); } }
  3583. break;
  3584. case "evaluate":
  3585. _formdiv = new U.UF.UI.form(
  3586. "學生評價",
  3587. $$("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 }), {
  3588. "id": "evaluate",
  3589. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3590. "onresize": function () { }
  3591. }, {
  3592. closecallback: function () { }
  3593. }, { "style": { "height": "36px" } }).form; //創建窗體
  3594. _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); } }
  3595. break;
  3596. case "notice":
  3597. _formdiv = new U.UF.UI.form(
  3598. "通知公告",
  3599. $$("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 }), {
  3600. "id": "notice",
  3601. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3602. "onresize": function () { }
  3603. }, {
  3604. closecallback: function () { }
  3605. }, { "style": { "height": "36px" } }).form; //創建窗體
  3606. _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); } }
  3607. break;
  3608. case "stuLibrary":
  3609. _formdiv = new U.UF.UI.form(
  3610. "學習資料",
  3611. $$("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 }), {
  3612. "id": "stuLibrary",
  3613. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3614. "onresize": function () { }
  3615. }, {
  3616. closecallback: function () { }
  3617. }, { "style": { "height": "36px" } }).form; //創建窗體
  3618. _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); } }
  3619. break;
  3620. case "program":
  3621. _formdiv = new U.UF.UI.form(
  3622. "編程平臺",
  3623. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3624. "id": "program",
  3625. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3626. "onresize": function () { }
  3627. }, {
  3628. closecallback: function () { }
  3629. }, { "style": { "height": "36px" } }).form; //創建窗體
  3630. _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); } }
  3631. break;
  3632. case "whiteboard":
  3633. _formdiv = new U.UF.UI.form(
  3634. "電子白板",
  3635. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3636. "id": "whiteboard",
  3637. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3638. "onresize": function () { }
  3639. }, {
  3640. closecallback: function () { }
  3641. }, { "style": { "height": "36px" } }).form; //創建窗體
  3642. _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); } }
  3643. break;
  3644. case "investigation":
  3645. _formdiv = new U.UF.UI.form(
  3646. "問卷調查",
  3647. $$("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 }), {
  3648. "id": "investigation",
  3649. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3650. "onresize": function () { }
  3651. }, {
  3652. closecallback: function () { }
  3653. }, { "style": { "height": "36px" } }).form; //創建窗體
  3654. _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); } }
  3655. break;
  3656. case "mind":
  3657. _formdiv = new U.UF.UI.form(
  3658. "思維導圖",
  3659. $$("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"
  3660. "id": "mind",
  3661. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3662. "onresize": function () { }
  3663. }, {
  3664. closecallback: function () { }
  3665. }, { "style": { "height": "36px" } }).form; //創建窗體
  3666. _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); } }
  3667. break;
  3668. case "doc":
  3669. // U.MD.D.I.isRoom();
  3670. _formdiv = new U.UF.UI.form(
  3671. "協同文檔",
  3672. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3673. "id": "doc",
  3674. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3675. "onresize": function () { }
  3676. }, {
  3677. closecallback: function () { }
  3678. }, { "style": { "height": "36px" } }).form; //創建窗體
  3679. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3680. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3681. })
  3682. _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); } }
  3683. break;
  3684. case "study":
  3685. _formdiv = new U.UF.UI.form(
  3686. "課程中心",
  3687. $$("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
  3688. "id": "study",
  3689. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3690. "onresize": function () { }
  3691. }, {
  3692. closecallback: function () { }
  3693. }, { "style": { "height": "36px" } }).form; //創建窗體
  3694. _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); } }
  3695. break;
  3696. case "mindNetwork": //好友打開
  3697. _formdiv = new U.UF.UI.form(
  3698. "思維網格",
  3699. $$("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 }), {
  3700. "id": "mindNetwork",
  3701. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3702. "onresize": function () { }
  3703. }, {
  3704. closecallback: function () { }
  3705. }, { "style": { "height": "36px" } }).form; //創建窗體
  3706. _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); } }
  3707. break;
  3708. case "train": //好友打開
  3709. _formdiv = new U.UF.UI.form(
  3710. "訓練平臺",
  3711. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3712. "id": "train",
  3713. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3714. "onresize": function () { }
  3715. }, {
  3716. closecallback: function () { }
  3717. }, { "style": { "height": "36px" } }).form; //創建窗體
  3718. _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); } }
  3719. break;
  3720. case "sys":
  3721. _formdiv = new U.UF.UI.form(
  3722. "目標管理",
  3723. $$("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 }), {
  3724. "id": "sys",
  3725. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3726. "onresize": function () { }
  3727. }, {
  3728. closecallback: function () { }
  3729. }, { "style": { "height": "36px" } }).form; //創建窗體
  3730. _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); } }
  3731. break;
  3732. case "courseDesign":
  3733. _formdiv = new U.UF.UI.form(
  3734. "項目設計",
  3735. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3736. "id": "courseDesign",
  3737. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3738. "onresize": function () { }
  3739. }, {
  3740. closecallback: function () { }
  3741. }, { "style": { "height": "36px" } }).form; //創建窗體
  3742. _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); } }
  3743. break;
  3744. }
  3745. } else if (!_type) {
  3746. switch (str) {
  3747. case "my":
  3748. _formdiv = new U.UF.UI.form(
  3749. "我的資料",
  3750. $$("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 }), {
  3751. "id": "my",
  3752. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3753. "onresize": function () { }
  3754. }, {
  3755. closecallback: function () { }
  3756. }, { "style": { "height": "36px" } }).form; //創建窗體
  3757. _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); } }
  3758. break;
  3759. }
  3760. }
  3761. switch (str) {
  3762. // AIprogram2 AI體驗 aihub.cocorobo.cn
  3763. // Pythonprogram Python編程 python-blockly.cocorobo.cn
  3764. // AIprogram AI編程 ai-blockly.cocorobo.cn
  3765. case "formulaEdi": //公式編輯
  3766. _formdiv = new U.UF.UI.form(
  3767. "公式編輯",
  3768. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.latexlive.com/" }), {
  3769. "id": "formulaEdi",
  3770. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3771. "onresize": function () { }
  3772. }, {
  3773. closecallback: function () { }
  3774. }, { "style": { "height": "36px" } }).form; //創建窗體
  3775. _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); } }
  3776. break;
  3777. case "molStr": //分子結構
  3778. _formdiv = new U.UF.UI.form(
  3779. "分子結構",
  3780. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://molview.org/" }), {
  3781. "id": "molStr",
  3782. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3783. "onresize": function () { }
  3784. }, {
  3785. closecallback: function () { }
  3786. }, { "style": { "height": "36px" } }).form; //創建窗體
  3787. _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); } }
  3788. break;
  3789. case "timeAxis": //時間軸
  3790. _formdiv = new U.UF.UI.form(
  3791. "時間軸",
  3792. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://time.graphics/editor" }), {
  3793. "id": "timeAxis",
  3794. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3795. "onresize": function () { }
  3796. }, {
  3797. closecallback: function () { }
  3798. }, { "style": { "height": "36px" } }).form; //創建窗體
  3799. _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); } }
  3800. break;
  3801. case "AIprogram2": //AI體驗
  3802. _formdiv = new U.UF.UI.form(
  3803. "AI體驗",
  3804. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3805. "id": "AIprogram2",
  3806. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3807. "onresize": function () { }
  3808. }, {
  3809. closecallback: function () { }
  3810. }, { "style": { "height": "36px" } }).form; //創建窗體
  3811. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram2.png)" }, "name": "AI體驗", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3812. break;
  3813. case "Pythonprogram": //python編程
  3814. _formdiv = new U.UF.UI.form(
  3815. "Python編程",
  3816. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3817. "id": "Pythonprogram",
  3818. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3819. "onresize": function () { }
  3820. }, {
  3821. closecallback: function () { }
  3822. }, { "style": { "height": "36px" } }).form; //創建窗體
  3823. _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); } }
  3824. break;
  3825. case "AIprogram": //ai編程
  3826. _formdiv = new U.UF.UI.form(
  3827. "AI編程平臺",
  3828. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3829. "id": "AIprogram",
  3830. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3831. "onresize": function () { }
  3832. }, {
  3833. closecallback: function () { }
  3834. }, { "style": { "height": "36px" } }).form; //創建窗體
  3835. _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); } }
  3836. break;
  3837. case "CocoPi": //CocoPi
  3838. _formdiv = new U.UF.UI.form(
  3839. "CocoPi",
  3840. $$("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" }), {
  3841. "id": "CocoPi",
  3842. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3843. "onresize": function () { }
  3844. }, {
  3845. closecallback: function () { }
  3846. }, { "style": { "height": "36px" } }).form; //創建窗體
  3847. _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); } }
  3848. break;
  3849. case "Wood": //Wood
  3850. _formdiv = new U.UF.UI.form(
  3851. "海龜編程",
  3852. $$("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/" }), {
  3853. "id": "Wood",
  3854. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3855. "onresize": function () { }
  3856. }, {
  3857. closecallback: function () { }
  3858. }, { "style": { "height": "36px" } }).form; //創建窗體
  3859. _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); } }
  3860. break;
  3861. case "car": //模擬駕駛
  3862. _formdiv = new U.UF.UI.form(
  3863. "模擬駕駛",
  3864. $$("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/" }), {
  3865. "id": "car",
  3866. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3867. "onresize": function () { }
  3868. }, {
  3869. closecallback: function () { }
  3870. }, { "style": { "height": "36px" } }).form; //創建窗體
  3871. _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); } }
  3872. break;
  3873. case "lineSearch": //路徑搜索
  3874. _formdiv = new U.UF.UI.form(
  3875. "路徑搜索",
  3876. $$("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/" }), {
  3877. "id": "lineSearch",
  3878. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3879. "onresize": function () { }
  3880. }, {
  3881. closecallback: function () { }
  3882. }, { "style": { "height": "36px" } }).form; //創建窗體
  3883. _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); } }
  3884. break;
  3885. case "deepLearning": //深度學習
  3886. _formdiv = new U.UF.UI.form(
  3887. "深度學習",
  3888. $$("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/#" }), {
  3889. "id": "deepLearning",
  3890. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3891. "onresize": function () { }
  3892. }, {
  3893. closecallback: function () { }
  3894. }, { "style": { "height": "36px" } }).form; //創建窗體
  3895. _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); } }
  3896. break;
  3897. case "allHistory": //深度學習
  3898. _formdiv = new U.UF.UI.form(
  3899. "全歷史",
  3900. $$("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/" }), {
  3901. "id": "allHistory",
  3902. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3903. "onresize": function () { }
  3904. }, {
  3905. closecallback: function () { }
  3906. }, { "style": { "height": "36px" } }).form; //創建窗體
  3907. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/allHistory.png)" }, "name": "全歷史", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3908. break;
  3909. case "chatPDF": //ai編程
  3910. _formdiv = new U.UF.UI.form(
  3911. "chatPDF",
  3912. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3913. "id": "chatPDF",
  3914. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3915. "onresize": function () { }
  3916. }, {
  3917. closecallback: function () { }
  3918. }, { "style": { "height": "36px" } }).form; //創建窗體
  3919. _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); } }
  3920. break;
  3921. case "resources": //國家教育
  3922. _formdiv = new U.UF.UI.form(
  3923. "國家教育",
  3924. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3925. "id": "resources",
  3926. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3927. "onresize": function () { }
  3928. }, {
  3929. closecallback: function () { }
  3930. }, { "style": { "height": "36px" } }).form; //創建窗體
  3931. _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); } }
  3932. break;
  3933. case "codeEdit": //源碼編輯
  3934. _formdiv = new U.UF.UI.form(
  3935. "源碼編輯",
  3936. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3937. "id": "codeEdit",
  3938. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3939. "onresize": function () { }
  3940. }, {
  3941. closecallback: function () { }
  3942. }, { "style": { "height": "36px" } }).form; //創建窗體
  3943. _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); } }
  3944. break; //
  3945. case "MindMap": //MindMap
  3946. _formdiv = new U.UF.UI.form(
  3947. "MindMap",
  3948. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3949. "id": "MindMap",
  3950. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3951. "onresize": function () { }
  3952. }, {
  3953. closecallback: function () { }
  3954. }, { "style": { "height": "36px" } }).form; //創建窗體
  3955. _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); } }
  3956. break;
  3957. case "netWorkPanel": //netWorkPanel
  3958. _formdiv = new U.UF.UI.form(
  3959. "netWorkPanel",
  3960. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3961. "id": "netWorkPanel",
  3962. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3963. "onresize": function () { }
  3964. }, {
  3965. closecallback: function () { }
  3966. }, { "style": { "height": "36px" } }).form; //創建窗體
  3967. _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); } }
  3968. break;
  3969. case "GeoGebra": //GeoGebra
  3970. _formdiv = new U.UF.UI.form(
  3971. "GeoGebra",
  3972. $$("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" }), {
  3973. "id": "GeoGebra",
  3974. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3975. "onresize": function () { }
  3976. }, {
  3977. closecallback: function () { }
  3978. }, { "style": { "height": "36px" } }).form; //創建窗體
  3979. _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); } }
  3980. break;
  3981. case "translation": //翻譯
  3982. _formdiv = new U.UF.UI.form(
  3983. "翻譯",
  3984. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3985. "id": "translation",
  3986. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3987. "onresize": function () { }
  3988. }, {
  3989. closecallback: function () { }
  3990. }, { "style": { "height": "36px" } }).form; //創建窗體
  3991. _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); } }
  3992. break;
  3993. case "mohe": //魔盒
  3994. _formdiv = new U.UF.UI.form(
  3995. "魔盒識字",
  3996. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3997. "id": "mohe",
  3998. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3999. "onresize": function () { }
  4000. }, {
  4001. closecallback: function () { }
  4002. }, { "style": { "height": "36px" } }).form; //創建窗體
  4003. _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); } }
  4004. break;
  4005. case "24game": //24點
  4006. _formdiv = new U.UF.UI.form(
  4007. "24點",
  4008. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  4009. "id": "24game",
  4010. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  4011. "onresize": function () { }
  4012. }, {
  4013. closecallback: function () { }
  4014. }, { "style": { "height": "36px" } }).form; //創建窗體
  4015. _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); } }
  4016. break;
  4017. case "case":
  4018. _formdiv = new U.UF.UI.form(
  4019. "課程進展",
  4020. $$("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 }), {
  4021. "id": "case",
  4022. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4023. "onresize": function () { }
  4024. }, {
  4025. closecallback: function () { }
  4026. }, { "style": { "height": "36px" } }).form; //創建窗體
  4027. _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); } }
  4028. break;
  4029. case "snf":
  4030. _formdiv = new U.UF.UI.form(
  4031. "賽諾梵",
  4032. $$("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" }), {
  4033. "id": "snf",
  4034. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4035. "onresize": function () { }
  4036. }, {
  4037. closecallback: function () { }
  4038. }, { "style": { "height": "36px" } }).form; //創建窗體
  4039. _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); } }
  4040. break;
  4041. case "hanFamily":
  4042. _formdiv = new U.UF.UI.form(
  4043. "漢字家族",
  4044. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  4045. "id": "hanFamily",
  4046. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4047. "onresize": function () { }
  4048. }, {
  4049. closecallback: function () { }
  4050. }, { "style": { "height": "36px" } }).form; //創建窗體
  4051. _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); } }
  4052. break;
  4053. case "hanClassics":
  4054. _formdiv = new U.UF.UI.form(
  4055. "國學經典",
  4056. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  4057. "id": "hanClassics",
  4058. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4059. "onresize": function () { }
  4060. }, {
  4061. closecallback: function () { }
  4062. }, { "style": { "height": "36px" } }).form; //創建窗體
  4063. _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); } }
  4064. break;
  4065. case "hanTraining":
  4066. _formdiv = new U.UF.UI.form(
  4067. "筆畫訓練",
  4068. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  4069. "id": "hanTraining",
  4070. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4071. "onresize": function () { }
  4072. }, {
  4073. closecallback: function () { }
  4074. }, { "style": { "height": "36px" } }).form; //創建窗體
  4075. _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); } }
  4076. break;
  4077. case "hanClass":
  4078. _formdiv = new U.UF.UI.form(
  4079. "書法課堂",
  4080. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  4081. "id": "hanClass",
  4082. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4083. "onresize": function () { }
  4084. }, {
  4085. closecallback: function () { }
  4086. }, { "style": { "height": "36px" } }).form; //創建窗體
  4087. _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); } }
  4088. break;
  4089. case "han":
  4090. _formdiv = new U.UF.UI.form(
  4091. "漢字宮",
  4092. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  4093. "id": "han",
  4094. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4095. "onresize": function () { }
  4096. }, {
  4097. closecallback: function () { }
  4098. }, { "style": { "height": "36px" } }).form; //創建窗體
  4099. _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); } }
  4100. break;
  4101. case "projectGM": //課程管理
  4102. _formdiv = new U.UF.UI.form(
  4103. "課程管理",
  4104. $$("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 }), {
  4105. "id": "projectGM",
  4106. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4107. "onresize": function () { }
  4108. }, {
  4109. closecallback: function () { }
  4110. }, { "style": { "height": "36px" } }).form; //創建窗體
  4111. _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); } }
  4112. break;
  4113. case "studyGM": //課程中心
  4114. _formdiv = new U.UF.UI.form(
  4115. "課程中心",
  4116. $$("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
  4117. "id": "study",
  4118. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4119. "onresize": function () { }
  4120. }, {
  4121. closecallback: function () { }
  4122. }, { "style": { "height": "36px" } }).form; //創建窗體
  4123. _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); } }
  4124. break;
  4125. // studentGM
  4126. case "studentGM": //學生管理
  4127. _formdiv = new U.UF.UI.form(
  4128. "學生管理",
  4129. $$("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 }), {
  4130. "id": "studentGM",
  4131. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4132. "onresize": function () { }
  4133. }, {
  4134. closecallback: function () { }
  4135. }, { "style": { "height": "36px" } }).form; //創建窗體
  4136. _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); } }
  4137. break;
  4138. case "evaluateGM": //學生評價
  4139. _formdiv = new U.UF.UI.form(
  4140. "學生評價",
  4141. $$("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 }), {
  4142. "id": "evaluateGM",
  4143. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4144. "onresize": function () { }
  4145. }, {
  4146. closecallback: function () { }
  4147. }, { "style": { "height": "36px" } }).form; //創建窗體
  4148. _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); } }
  4149. break;
  4150. // classGM
  4151. case "classGM": //班級管理
  4152. _formdiv = new U.UF.UI.form(
  4153. "班級管理",
  4154. $$("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 }), {
  4155. "id": "classGM",
  4156. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4157. "onresize": function () { }
  4158. }, {
  4159. closecallback: function () { }
  4160. }, { "style": { "height": "36px" } }).form; //創建窗體
  4161. _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); } }
  4162. break;
  4163. // dataGM
  4164. case "dataGM":
  4165. _formdiv = new U.UF.UI.form(
  4166. "我的資料",
  4167. $$("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 }), {
  4168. "id": "dataGM",
  4169. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  4170. "onresize": function () { }
  4171. }, {
  4172. closecallback: function () { }
  4173. }, { "style": { "height": "36px" } }).form; //創建窗體
  4174. _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); } }
  4175. break;
  4176. // caseGM
  4177. case "caseGM": //課程進展
  4178. _formdiv = new U.UF.UI.form(
  4179. "課程進展",
  4180. $$("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 }), {
  4181. "id": "caseGM",
  4182. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4183. "onresize": function () { }
  4184. }, {
  4185. closecallback: function () { }
  4186. }, { "style": { "height": "36px" } }).form; //創建窗體
  4187. _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); } }
  4188. break;
  4189. // meterialGM
  4190. case "meterialGM": //素材庫
  4191. _formdiv = new U.UF.UI.form(
  4192. "素材庫",
  4193. $$("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 }), {
  4194. "id": "meterialGM",
  4195. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4196. "onresize": function () { }
  4197. }, {
  4198. closecallback: function () { }
  4199. }, { "style": { "height": "36px" } }).form; //創建窗體
  4200. _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); } }
  4201. break;
  4202. // evaluateSGM
  4203. case "evaluateSGM": //我的評價
  4204. _formdiv = new U.UF.UI.form(
  4205. "我的評價",
  4206. $$("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 }), {
  4207. "id": "evaluateSGM",
  4208. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  4209. "onresize": function () { }
  4210. }, {
  4211. closecallback: function () { }
  4212. }, { "style": { "height": "36px" } }).form; //創建窗體
  4213. _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); } }
  4214. break;
  4215. case "jupyter": //jupyter
  4216. _formdiv = new U.UF.UI.form(
  4217. "jupyter",
  4218. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  4219. "id": "jupyter",
  4220. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4221. "onresize": function () { }
  4222. }, {
  4223. closecallback: function () { }
  4224. }, { "style": { "height": "36px" } }).form; //創建窗體
  4225. _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); } }
  4226. break;
  4227. case "number": //數字實驗室
  4228. _formdiv = new U.UF.UI.form(
  4229. "數字實驗室",
  4230. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  4231. "id": "number",
  4232. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4233. "onresize": function () { }
  4234. }, {
  4235. closecallback: function () { }
  4236. }, { "style": { "height": "36px" } }).form; //創建窗體
  4237. _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); } }
  4238. break;
  4239. case "studentCourse": //項目管理 學生
  4240. _formdiv = new U.UF.UI.form(
  4241. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  4242. $$("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 }), {
  4243. "id": "studentCourse",
  4244. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4245. "onresize": function () { }
  4246. }, {
  4247. closecallback: function () { }
  4248. }, { "style": { "height": "36px" } }).form; //創建窗體
  4249. _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); } }
  4250. break;
  4251. case "studentCourseS": //項目管理 老師
  4252. _formdiv = new U.UF.UI.form(
  4253. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  4254. $$("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 }), {
  4255. "id": "studentCourseS",
  4256. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4257. "onresize": function () { }
  4258. }, {
  4259. closecallback: function () { }
  4260. }, { "style": { "height": "36px" } }).form; //創建窗體
  4261. _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); } }
  4262. break;
  4263. case "studentIndex": //項目中心
  4264. _formdiv = new U.UF.UI.form(
  4265. "項目中心",
  4266. $$("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 }), {
  4267. "id": "studentIndex",
  4268. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4269. "onresize": function () { }
  4270. }, {
  4271. closecallback: function () { }
  4272. }, { "style": { "height": "36px" } }).form; //創建窗體
  4273. _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); } }
  4274. break;
  4275. case "CaseDesignS":
  4276. _formdiv = new U.UF.UI.form(
  4277. "項目進展",
  4278. $$("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 }), {
  4279. "id": "case",
  4280. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4281. "onresize": function () { }
  4282. }, {
  4283. closecallback: function () { }
  4284. }, { "style": { "height": "36px" } }).form; //創建窗體
  4285. _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); } }
  4286. break;
  4287. case "tcStudent": //騰訊學生管理
  4288. _formdiv = new U.UF.UI.form(
  4289. "學生管理",
  4290. $$("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 }), {
  4291. "id": "tcStudent",
  4292. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4293. "onresize": function () { }
  4294. }, {
  4295. closecallback: function () { }
  4296. }, { "style": { "height": "36px" } }).form; //創建窗體
  4297. _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); } }
  4298. break;
  4299. case "tcSchool": //騰訊學校管理
  4300. _formdiv = new U.UF.UI.form(
  4301. "學校管理",
  4302. $$("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 }), {
  4303. "id": "tcSchool",
  4304. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4305. "onresize": function () { }
  4306. }, {
  4307. closecallback: function () { }
  4308. }, { "style": { "height": "36px" } }).form; //創建窗體
  4309. _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); } }
  4310. break;
  4311. case "tcTeacher": //騰訊學校管理
  4312. _formdiv = new U.UF.UI.form(
  4313. "教師管理",
  4314. $$("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 }), {
  4315. "id": "tcTeacher",
  4316. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4317. "onresize": function () { }
  4318. }, {
  4319. closecallback: function () { }
  4320. }, { "style": { "height": "36px" } }).form; //創建窗體
  4321. _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); } }
  4322. break;
  4323. case "tcData": //騰訊我的資料
  4324. _formdiv = new U.UF.UI.form(
  4325. "我的資料",
  4326. $$("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 }), {
  4327. "id": "tcData",
  4328. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  4329. "onresize": function () { }
  4330. }, {
  4331. closecallback: function () { }
  4332. }, { "style": { "height": "36px" } }).form; //創建窗體
  4333. _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); } }
  4334. break;
  4335. case "tcNotice": //騰訊消息通知
  4336. _formdiv = new U.UF.UI.form(
  4337. "消息通知",
  4338. $$("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 }), {
  4339. "id": "tcNotice",
  4340. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4341. "onresize": function () { }
  4342. }, {
  4343. closecallback: function () { }
  4344. }, { "style": { "height": "36px" } }).form; //創建窗體
  4345. _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); } }
  4346. break;
  4347. case "myReport": //好友打開
  4348. _formdiv = new U.UF.UI.form(
  4349. "我的評價",
  4350. $$("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 }), {
  4351. "id": "myReport",
  4352. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4353. "onresize": function () { }
  4354. }, {
  4355. closecallback: function () { }
  4356. }, { "style": { "height": "36px" } }).form; //創建窗體
  4357. _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); } }
  4358. break;
  4359. case "learnAna": //好友打開
  4360. _formdiv = new U.UF.UI.form(
  4361. "學習分析",
  4362. $$("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 }), {
  4363. "id": "learnAna",
  4364. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4365. "onresize": function () { }
  4366. }, {
  4367. closecallback: function () { }
  4368. }, { "style": { "height": "36px" } }).form; //創建窗體
  4369. _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); } }
  4370. break;
  4371. case "AIChat": //AI共創
  4372. _formdiv = new U.UF.UI.form(
  4373. "AI共創",
  4374. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/aichat/" }), {
  4375. "id": "AIChat",
  4376. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  4377. "onresize": function () { }
  4378. }, {
  4379. istop: true,
  4380. closecallback: function () { $("#aichat_icon").remove(); },
  4381. narrowcallback: function () {
  4382. if (!$("#aichat_icon")[0]) {
  4383. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  4384. }
  4385. },
  4386. }, { "style": { "height": "36px" } }).form; //創建窗體
  4387. _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); } }
  4388. break;
  4389. case "ainew": //AI共創
  4390. _formdiv = new U.UF.UI.form(
  4391. "AI協同",
  4392. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ainew/" }), {
  4393. "id": "ainew",
  4394. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4395. "onresize": function () { }
  4396. }, {
  4397. closecallback: function () { }
  4398. }, { "style": { "height": "36px" } }).form; //創建窗體
  4399. _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); } }
  4400. break;
  4401. case "futureClass": //AI共創
  4402. _formdiv = new U.UF.UI.form(
  4403. "協同建構",
  4404. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/synergyCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {//https://cscl.cocorobo.hk
  4405. "id": "synergyCourse",
  4406. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4407. "onresize": function () { }
  4408. }, {
  4409. closecallback: function () {
  4410. $("iframe", _formdiv)[0].contentWindow.loginout();
  4411. }
  4412. }, { "style": { "height": "36px" } }).form; //创建窗体
  4413. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/futureClass.png)" }, "name": "协同建构", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4414. break;
  4415. case "aiagent": //ai agent
  4416. _formdiv = new U.UF.UI.form(
  4417. "AI Agent",
  4418. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://metagpt.cocorobo.cn/dist/index.html" }), {
  4419. "id": "AIAgent",
  4420. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4421. "onresize": function () { }
  4422. }, {
  4423. closecallback: function () { }
  4424. }, { "style": { "height": "36px" } }).form; //創建窗體
  4425. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram2.png)" }, "name": "AI Agent", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4426. break;
  4427. case "dataBoard": //數據看板
  4428. _formdiv = new U.UF.UI.form(
  4429. "數據看板",
  4430. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataBoard?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4431. "id": "dataBoard",
  4432. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4433. "onresize": function () { }
  4434. }, {
  4435. closecallback: function () { }
  4436. }, { "style": { "height": "36px" } }).form; //創建窗體
  4437. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/dataBoard.png)" }, "name": "數據看板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4438. break;
  4439. case "dataBoardSies": //数据看板
  4440. _formdiv = new U.UF.UI.form(
  4441. "数据看板",
  4442. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataBoardSies?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4443. "id": "dataBoardSies",
  4444. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4445. "onresize": function () { }
  4446. }, {
  4447. closecallback: function () { }
  4448. }, { "style": { "height": "36px" } }).form; //创建窗体
  4449. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/dataBoardSies.png)" }, "name": "数据看板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4450. break;
  4451. case "AIAnalyse": //AI共创
  4452. _formdiv = new U.UF.UI.form(
  4453. "AI分析",
  4454. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ai/" }), {
  4455. "id": "AIAnalyse",
  4456. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4457. "onresize": function () { }
  4458. }, {
  4459. closecallback: function () { }
  4460. }, { "style": { "height": "36px" } }).form; //創建窗體
  4461. _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); } }
  4462. break;
  4463. case "studioCourse": //AI共創
  4464. _formdiv = new U.UF.UI.form(
  4465. "工作管理",
  4466. $$("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 }), {
  4467. "id": "studioCourse",
  4468. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4469. "onresize": function () { }
  4470. }, {
  4471. closecallback: function () { }
  4472. }, { "style": { "height": "36px" } }).form; //創建窗體
  4473. _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); } }
  4474. break;
  4475. case "studioIndex": //AI共創
  4476. _formdiv = new U.UF.UI.form(
  4477. "工作中心",
  4478. $$("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 }), {
  4479. "id": "studioIndex",
  4480. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4481. "onresize": function () { }
  4482. }, {
  4483. closecallback: function () { }
  4484. }, { "style": { "height": "36px" } }).form; //創建窗體
  4485. _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); } }
  4486. break;
  4487. case "source":
  4488. _formdiv = new U.UF.UI.form(
  4489. "教學資源",
  4490. $$("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 }), {
  4491. "id": "source",
  4492. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4493. "onresize": function () { }
  4494. }, {
  4495. closecallback: function () { }
  4496. }, { "style": { "height": "36px" } }).form; //創建窗體
  4497. _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); } }
  4498. break;
  4499. case "testTeacher":
  4500. _formdiv = new U.UF.UI.form(
  4501. "評測管理",
  4502. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/test?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4503. "id": "testTeacher",
  4504. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4505. "onresize": function () { }
  4506. }, {
  4507. closecallback: function () { }
  4508. }, { "style": { "height": "36px" } }).form; //創建窗體
  4509. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/testTeacher.png)" }, "name": "評測管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4510. break;
  4511. case "testStudent":
  4512. _formdiv = new U.UF.UI.form(
  4513. "評測中心",
  4514. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/testStudent?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&classid=" + _classId + "&role=" + _role }), {
  4515. "id": "testStudent",
  4516. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4517. "onresize": function () { }
  4518. }, {
  4519. closecallback: function () { }
  4520. }, { "style": { "height": "36px" } }).form; //創建窗體
  4521. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/testStudent.png)" }, "name": "評測管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4522. break;
  4523. }
  4524. //U.MD.D.I.openClick(str);
  4525. //如果有任務欄信息
  4526. if (_taskbar) {
  4527. U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4528. }
  4529. }
  4530. // U.MD.D.I.openClick = function(str){
  4531. // var click = '';
  4532. // switch(str){
  4533. // case 'friend':
  4534. // click = '我的好友';
  4535. // break;
  4536. // case 'domain':
  4537. // click = '域名管理';
  4538. // break;
  4539. // case 'disk':
  4540. // click = '我的雲盤';
  4541. // break;
  4542. // case 'word':
  4543. // click = 'Word';
  4544. // break;
  4545. // case 'excel':
  4546. // click = 'Execl';
  4547. // break;
  4548. // case 'txt':
  4549. // click = '文本文件';
  4550. // break;
  4551. // case 'lookupFriend':
  4552. // click = '查找好友';
  4553. // break;
  4554. // case 'ftp':
  4555. // click = 'FTP';
  4556. // break;
  4557. // case 'group':
  4558. // click = '群組';
  4559. // break;
  4560. // case 'set':
  4561. // click = '我的設置';
  4562. // break;
  4563. // case 'systemSet':
  4564. // click = '系統設置';
  4565. // break;
  4566. // case 'boomYun':
  4567. // click = '互聯辦公';
  4568. // break;
  4569. // case 'xz':
  4570. // click = '雲端下載';
  4571. // break;
  4572. // case 'client':
  4573. // click = '有思瀏覽器';
  4574. // break;
  4575. // case 'backEndProgramming':
  4576. // click = '在線後臺編程';
  4577. // break;
  4578. // case 'frontEndProgramming':
  4579. // click = '在線前端編程';
  4580. // break;
  4581. // default: break;
  4582. // }
  4583. // if(U.MD.D.I.Ip && click){
  4584. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  4585. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  4586. // })
  4587. // }
  4588. // }
  4589. /**
  4590. *函數作用:ajax簡易函數,使用post格式
  4591. *@param url {data} 後臺地址
  4592. *@param data {data} 參數json
  4593. *@param fn {data} 回調函數
  4594. *
  4595. */
  4596. // U.MD.D.I.Mysqlrequest = function(url,fn){
  4597. // var xhr = new XMLHttpRequest();
  4598. // xhr.open("GET",url,true);
  4599. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  4600. // xhr.onreadystatechange = function(){
  4601. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  4602. // fn.call(this,xhr.responseText);
  4603. // }
  4604. // };
  4605. // xhr.send();
  4606. // }
  4607. /*判斷是否是內網IP*/
  4608. // U.MD.D.I.isInnerIPFn = function(str){
  4609. // var curPageUrl = str;
  4610. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前綴
  4611. // curPageUrl =curPageUrl.replace(reg1,'');
  4612. // // console.log('curPageUrl-1 '+curPageUrl);
  4613. // var reg2 = /\:+/g;//替換冒號為一點
  4614. // curPageUrl =curPageUrl.replace(reg2,'.');
  4615. // // console.log('curPageUrl-2 '+curPageUrl);
  4616. // curPageUrl = curPageUrl.split('.');//通過一點來劃分數組
  4617. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  4618. // if(curPageUrl[2] != '16'){
  4619. // return ipAddress;
  4620. // }else{
  4621. // return false;
  4622. // }
  4623. // }
  4624. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  4625. // //compatibility for firefox and chrome
  4626. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  4627. // var pc = new myPeerConnection({
  4628. // iceServers: []
  4629. // }),
  4630. // noop = function() {},
  4631. // localIPs = {},
  4632. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  4633. // key;
  4634. // function iterateIP(ip) {
  4635. // if (!localIPs[ip]) onNewIP(ip);
  4636. // localIPs[ip] = true;
  4637. // }
  4638. // //create a bogus data channel
  4639. // pc.createDataChannel("");
  4640. // // create offer and set local description
  4641. // pc.createOffer().then(function(sdp) {
  4642. // sdp.sdp.split('\n').forEach(function(line) {
  4643. // if (line.indexOf('candidate') < 0) return;
  4644. // line.match(ipRegex).forEach(iterateIP);
  4645. // });
  4646. // pc.setLocalDescription(sdp, noop, noop);
  4647. // }).catch(function(reason) {
  4648. // // An error occurred, so handle the failure to connect
  4649. // });
  4650. // //sten for candidate events
  4651. // pc.onicecandidate = function(ice) {
  4652. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  4653. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  4654. // };
  4655. // }
  4656. // U.MD.D.I.getUserIpBool = function(callback){
  4657. // U.MD.D.I.getUserIP(function(ip){
  4658. // alert("Got IP! :" + ip);
  4659. // });
  4660. //}
  4661. //#endregion
  4662. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  4663. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4664. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4665. _userinfo = US.userInfo, //登錄用戶信息
  4666. _userid = US.userInfo.userid //登錄用戶id
  4667. let _iframe;
  4668. let _cid = cid,
  4669. _stage = stage,
  4670. _task = task,
  4671. _tool = tool;
  4672. var _jie = $$("div", {
  4673. "style": {
  4674. "position": "absolute",
  4675. "bottom": "50px",
  4676. "right": "50px",
  4677. "zIndex": "9999",
  4678. "backgroundColor": "#2268bc",
  4679. "color": "#fff",
  4680. "padding": "12px 20px",
  4681. "cursor": "pointer",
  4682. "borderRadius": "4px",
  4683. },
  4684. "innerHTML": "提交作業"
  4685. })
  4686. let aTool = ''
  4687. let _loading = document.createElement('div')
  4688. _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;"
  4689. // _loading.id = "";
  4690. let _lchild = document.createElement('div')
  4691. let _limg = document.createElement('img')
  4692. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4693. _limg.style = "width: 26px;margin-right: 10px;"
  4694. _lchild.appendChild(_limg)
  4695. let _lspan = document.createElement('span')
  4696. _lspan.innerHTML = "上傳中..."
  4697. _lchild.appendChild(_lspan)
  4698. _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%);"
  4699. _loading.appendChild(_lchild)
  4700. var _box = $$('div', {
  4701. "style": {
  4702. "position": "relative",
  4703. "width": "100%",
  4704. "height": "100%",
  4705. },
  4706. })
  4707. _box.appendChild(_loading)
  4708. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool + _userid
  4709. switch (str) {
  4710. case "whiteboard":
  4711. aTool = 1;
  4712. _iframe = $$("iframe", {
  4713. "frameborder": "no",
  4714. "border": "0",
  4715. "scrolling ": "no",
  4716. "style": {
  4717. "cssText": "border:0;width:100%;height:100%"
  4718. },
  4719. "src": "https://iwb.cocorobo.hk/"
  4720. })
  4721. _box.appendChild(_iframe);
  4722. _box.appendChild(_jie);
  4723. _formdiv = new U.UF.UI.form(
  4724. "電子白板",
  4725. _box, {
  4726. "id": "whiteboard" + cid + stage + task + tool,
  4727. "style": {
  4728. "width": "90%",
  4729. "height": "90%",
  4730. "overflow": 'hidden'
  4731. },
  4732. "onresize": function () { }
  4733. }, {
  4734. closecallback: function () { }
  4735. }, {
  4736. "style": {
  4737. "height": "36px"
  4738. }
  4739. }).form; //創建窗體
  4740. _taskbar = {
  4741. "id": str + _formdiv.id,
  4742. "style": {
  4743. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4744. },
  4745. "name": "電子白板",
  4746. "forms": _formdiv,
  4747. "click": function () {
  4748. U.MD.D.I.openApplication(str, obj, info);
  4749. }
  4750. }
  4751. break;
  4752. case "mind":
  4753. aTool = 3;
  4754. _iframe = $$("iframe", {
  4755. "frameborder": "no",
  4756. "border": "0",
  4757. "scrolling ": "no",
  4758. "style": {
  4759. "cssText": "border:0;width:100%;height:100%"
  4760. },
  4761. "src": "/kityminder-editor/dist/index.html"
  4762. })
  4763. _box.appendChild(_iframe);
  4764. _box.appendChild(_jie);
  4765. _formdiv = new U.UF.UI.form(
  4766. "思維導圖",
  4767. _box, { //"/jsmind/example/demo.html"
  4768. "id": "mind" + cid + stage + task + tool,
  4769. "style": {
  4770. "width": "90%",
  4771. "height": "90%",
  4772. "overflow": 'hidden'
  4773. },
  4774. "onresize": function () { }
  4775. }, {
  4776. closecallback: function () { }
  4777. }, {
  4778. "style": {
  4779. "height": "36px"
  4780. }
  4781. }).form; //創建窗體
  4782. _taskbar = {
  4783. "id": str + _formdiv.id,
  4784. "style": {
  4785. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4786. },
  4787. "name": "思維導圖",
  4788. "forms": _formdiv,
  4789. "click": function () {
  4790. U.MD.D.I.openApplication(str, obj, info);
  4791. }
  4792. }
  4793. break;
  4794. case "MindMap":
  4795. aTool = 3;
  4796. _iframe = $$("iframe", {
  4797. "frameborder": "no",
  4798. "border": "0",
  4799. "scrolling ": "no",
  4800. "style": {
  4801. "cssText": "border:0;width:100%;height:100%"
  4802. },
  4803. "src": "//cloud.cocorobo.hk/mind/"
  4804. })
  4805. _box.appendChild(_iframe);
  4806. _box.appendChild(_jie);
  4807. _formdiv = new U.UF.UI.form(
  4808. "思維導圖",
  4809. _box, { //"/jsmind/example/demo.html"
  4810. "id": "mind" + cid + stage + task + tool,
  4811. "style": {
  4812. "width": "90%",
  4813. "height": "90%",
  4814. "overflow": 'hidden'
  4815. },
  4816. "onresize": function () { }
  4817. }, {
  4818. closecallback: function () { }
  4819. }, {
  4820. "style": {
  4821. "height": "36px"
  4822. }
  4823. }).form; //創建窗體
  4824. _taskbar = {
  4825. "id": str + _formdiv.id,
  4826. "style": {
  4827. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4828. },
  4829. "name": "思維導圖",
  4830. "forms": _formdiv,
  4831. "click": function () {
  4832. U.MD.D.I.openApplication(str, obj, info);
  4833. }
  4834. }
  4835. break;
  4836. case "doc":
  4837. aTool = 6;
  4838. _iframe = $$("iframe", {
  4839. "frameborder": "no",
  4840. "border": "0",
  4841. "scrolling ": "no",
  4842. "style": {
  4843. "cssText": "border:0;width:100%;height:100%"
  4844. },
  4845. "src": "/Office/Word/WordEditArea.htm"
  4846. })
  4847. _box.appendChild(_iframe);
  4848. _box.appendChild(_jie);
  4849. _formdiv = new U.UF.UI.form(
  4850. "協同文檔",
  4851. _box, {
  4852. "id": "doc" + cid + stage + task + tool,
  4853. "style": {
  4854. "width": "90%",
  4855. "height": "90%",
  4856. "overflow": 'hidden'
  4857. },
  4858. "onresize": function () { }
  4859. }, {
  4860. closecallback: function () { }
  4861. }, {
  4862. "style": {
  4863. "height": "36px"
  4864. }
  4865. }).form; //創建窗體
  4866. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4867. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4868. })
  4869. _taskbar = {
  4870. "id": str + _formdiv.id,
  4871. "style": {
  4872. "backgroundImage": "url(/img/icon/doc.png)"
  4873. },
  4874. "name": "協同文檔",
  4875. "forms": _formdiv,
  4876. "click": function () {
  4877. U.MD.D.I.openApplication(str, obj, info);
  4878. }
  4879. }
  4880. break;
  4881. case "mindNetwork": //好友打開
  4882. aTool = 7;
  4883. _iframe = $$("iframe", {
  4884. "webkitallowfullscreen": "",
  4885. "mozallowfullscreen": "",
  4886. "allowfullscreen": "",
  4887. "frameborder": "no",
  4888. "border": "0",
  4889. "scrolling ": "no",
  4890. "style": {
  4891. "cssText": "border:0; width:100%; height:100%;"
  4892. },
  4893. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4894. })
  4895. _box.appendChild(_iframe);
  4896. _box.appendChild(_jie);
  4897. _formdiv = new U.UF.UI.form(
  4898. "思維網格",
  4899. _box, {
  4900. "id": "mindNetwork" + cid + stage + task + tool,
  4901. "style": {
  4902. "width": "90%",
  4903. "height": "90%",
  4904. "overflow": 'hidden'
  4905. },
  4906. "onresize": function () { }
  4907. }, {
  4908. closecallback: function () { }
  4909. }, {
  4910. "style": {
  4911. "height": "36px"
  4912. }
  4913. }).form; //創建窗體
  4914. _taskbar = {
  4915. "id": str + _formdiv.id,
  4916. "style": {
  4917. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4918. },
  4919. "name": "思維網格",
  4920. "forms": _formdiv,
  4921. "click": function () {
  4922. U.MD.D.I.openApplication(str, obj, info);
  4923. }
  4924. }
  4925. break;
  4926. case "courseDesign":
  4927. _iframe = $$("iframe", {
  4928. "webkitallowfullscreen": "",
  4929. "mozallowfullscreen": "",
  4930. "allowfullscreen": "",
  4931. "frameborder": "no",
  4932. "border": "0",
  4933. "scrolling ": "no",
  4934. "style": {
  4935. "cssText": "border:0; width:100%; height:100%;"
  4936. },
  4937. "src": "/course-design-vue"
  4938. })
  4939. _box.appendChild(_iframe);
  4940. _box.appendChild(_jie);
  4941. _formdiv = new U.UF.UI.form(
  4942. "項目設計",
  4943. _box, {
  4944. "id": "courseDesign" + cid + stage + task + tool,
  4945. "style": {
  4946. "width": "90%",
  4947. "height": "90%",
  4948. "overflow": 'hidden'
  4949. },
  4950. "onresize": function () { }
  4951. }, {
  4952. closecallback: function () { }
  4953. }, {
  4954. "style": {
  4955. "height": "36px"
  4956. }
  4957. }).form; //創建窗體
  4958. _taskbar = {
  4959. "id": str + _formdiv.id,
  4960. "style": {
  4961. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4962. },
  4963. "name": "項目設計",
  4964. "forms": _formdiv,
  4965. "click": function () {
  4966. U.MD.D.I.openApplication(str, obj, info);
  4967. }
  4968. }
  4969. break;
  4970. }
  4971. const script1 = document.createElement("script");
  4972. script1.type = "text/javascript";
  4973. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4974. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  4975. const script2 = document.createElement("script");
  4976. script2.type = "text/javascript";
  4977. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4978. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  4979. const script3 = document.createElement("script");
  4980. script3.type = "text/javascript";
  4981. script3.charset = "UTF-8";
  4982. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  4983. const script4 = document.createElement("script");
  4984. script4.type = "text/javascript";
  4985. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4986. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  4987. if (_iframe) {
  4988. if (str == 'doc') {
  4989. _iframe = _formdiv.querySelector('iframe')
  4990. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4991. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4992. _iframe.contentWindow.document.body.appendChild(script1);
  4993. _iframe.contentWindow.document.body.appendChild(script2);
  4994. // _iframe.contentWindow.document.body.appendChild(script3);
  4995. _iframe.contentWindow.document.body.appendChild(script4);
  4996. })
  4997. if (onloadListener) {
  4998. _iframe.contentDocument.location.reload()
  4999. } else {
  5000. _iframe.contentDocument.location.reload()
  5001. }
  5002. } else if (str == 'courseDesign') {
  5003. U.UF.DL.iframeLoad(_iframe, function () {
  5004. // _iframe.contentWindow.U.MD.O.W.load();
  5005. // _iframe.contentWindow.document.body.appendChild(script1);
  5006. _iframe.contentWindow.document.body.appendChild(script2);
  5007. _iframe.contentWindow.document.body.appendChild(script4);
  5008. })
  5009. } else if (str == 'mind') {
  5010. _iframe = _formdiv.querySelector('iframe')
  5011. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5012. //
  5013. _iframe.contentWindow.document.body.appendChild(script1);
  5014. _iframe.contentWindow.document.body.appendChild(script2);
  5015. _iframe.contentWindow.document.body.appendChild(script4);
  5016. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5017. })
  5018. if (onloadListener) {
  5019. _iframe.contentDocument.location.reload()
  5020. } else {
  5021. _iframe.contentDocument.location.reload()
  5022. }
  5023. } else if (str == 'whiteboard') {
  5024. _iframe = _formdiv.querySelector('iframe')
  5025. let onloadListener = _iframe.onload = () => {
  5026. _iframe.contentWindow.document.body.appendChild(script1);
  5027. _iframe.contentWindow.document.body.appendChild(script2);
  5028. _iframe.contentWindow.document.body.appendChild(script4);
  5029. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5030. };
  5031. if (onloadListener) {
  5032. _iframe.contentDocument.location.reload()
  5033. } else {
  5034. _iframe.contentDocument.location.reload()
  5035. }
  5036. } else {
  5037. _iframe.onload = () => {
  5038. _iframe.contentWindow.document.body.appendChild(script1);
  5039. _iframe.contentWindow.document.body.appendChild(script2);
  5040. // _iframe.contentWindow.document.body.appendChild(script3);
  5041. _iframe.contentWindow.document.body.appendChild(script4);
  5042. };
  5043. }
  5044. _jie.onclick = async () => {
  5045. let text = ''
  5046. if (aTool == 1) {
  5047. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5048. } else if (aTool == 6) {
  5049. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5050. } else if (aTool == 3) {
  5051. text = await U.MD.D.I.getEditorContent(_iframe);
  5052. }
  5053. _loading.style.display = 'flex'
  5054. console.log(_loading);
  5055. var _ajs = _iframe.contentWindow.document.createElement("script");
  5056. _ajs.type = "text/javascript";
  5057. _ajs.innerHTML =
  5058. // 'console.log(' + _loading + ');\n' +
  5059. 'var _js = document.createElement("script");\n' +
  5060. '_js.type="text/javascript";\n' +
  5061. '_js.charset="UTF-8";\n' +
  5062. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5063. "_js.onload = function(){\n" +
  5064. ' var a = document.getElementsByTagName("img")\n' +
  5065. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5066. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5067. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5068. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5069. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5070. "beforeUpload_shishi(file," +
  5071. "'" +
  5072. _userid +
  5073. "'" +
  5074. ", " +
  5075. "'" +
  5076. _cid +
  5077. "'" +
  5078. ", " +
  5079. "'" +
  5080. _stage +
  5081. "'" +
  5082. ", " +
  5083. "'" +
  5084. _task +
  5085. "'" +
  5086. ", " +
  5087. "'" +
  5088. _tool +
  5089. "'" +
  5090. ", " +
  5091. "'" +
  5092. (str + '_loadLi_Jie' + cid + stage + task + tool + _userid) +
  5093. "'" +
  5094. ", " +
  5095. "'" +
  5096. aTool +
  5097. "'" +
  5098. ", " +
  5099. "`" +
  5100. text +
  5101. "`" +
  5102. ")\n" +
  5103. " });\n" +
  5104. "}\n" +
  5105. "document.head.appendChild(_js);\n";
  5106. _iframe.contentWindow.document.head.appendChild(_ajs);
  5107. }
  5108. }
  5109. //U.MD.D.I.openClick(str);
  5110. //如果有任務欄信息
  5111. // if (_taskbar) {
  5112. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  5113. // }
  5114. }
  5115. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  5116. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5117. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5118. _userinfo = US.userInfo, //登錄用戶信息
  5119. _userid = US.userInfo.userid //登錄用戶id
  5120. let _iframe;
  5121. let _cid = cid,
  5122. _stage = stage,
  5123. _task = task,
  5124. _tool = tool;
  5125. var _jie = $$("div", {
  5126. "style": {
  5127. "position": "absolute",
  5128. "bottom": "50px",
  5129. "right": "50px",
  5130. "zIndex": "9999",
  5131. "backgroundColor": "#2268bc",
  5132. "color": "#fff",
  5133. "padding": "12px 20px",
  5134. "cursor": "pointer",
  5135. "borderRadius": "4px",
  5136. },
  5137. "innerHTML": "提交作業"
  5138. })
  5139. let aTool = ''
  5140. let _loading = document.createElement('div')
  5141. _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;"
  5142. // _loading.id = "";
  5143. let _lchild = document.createElement('div')
  5144. let _limg = document.createElement('img')
  5145. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5146. _limg.style = "width: 26px;margin-right: 10px;"
  5147. _lchild.appendChild(_limg)
  5148. let _lspan = document.createElement('span')
  5149. _lspan.innerHTML = "上傳中..."
  5150. _lchild.appendChild(_lspan)
  5151. _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%);"
  5152. _loading.appendChild(_lchild)
  5153. var _box = $$('div', {
  5154. "style": {
  5155. "position": "relative",
  5156. "width": "100%",
  5157. "height": "100%",
  5158. },
  5159. })
  5160. _box.appendChild(_loading)
  5161. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool + _userid
  5162. switch (str) {
  5163. case "whiteboard":
  5164. aTool = 1;
  5165. _iframe = $$("iframe", {
  5166. "frameborder": "no",
  5167. "border": "0",
  5168. "scrolling ": "no",
  5169. "style": {
  5170. "cssText": "border:0;width:100%;height:100%"
  5171. },
  5172. "src": "https://iwb.cocorobo.hk/"
  5173. })
  5174. _box.appendChild(_iframe);
  5175. _box.appendChild(_jie);
  5176. _formdiv = new U.UF.UI.form(
  5177. "電子白板",
  5178. _box, {
  5179. "id": "whiteboard" + cid + stage + task + tool,
  5180. "style": {
  5181. "width": "90%",
  5182. "height": "90%",
  5183. "overflow": 'hidden'
  5184. },
  5185. "onresize": function () { }
  5186. }, {
  5187. closecallback: function () { }
  5188. }, {
  5189. "style": {
  5190. "height": "36px"
  5191. }
  5192. }).form; //創建窗體
  5193. _taskbar = {
  5194. "id": str + _formdiv.id,
  5195. "style": {
  5196. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5197. },
  5198. "name": "電子白板",
  5199. "forms": _formdiv,
  5200. "click": function () {
  5201. U.MD.D.I.openApplication(str, obj, info);
  5202. }
  5203. }
  5204. break;
  5205. case "mind":
  5206. aTool = 3;
  5207. _iframe = $$("iframe", {
  5208. "frameborder": "no",
  5209. "border": "0",
  5210. "scrolling ": "no",
  5211. "style": {
  5212. "cssText": "border:0;width:100%;height:100%"
  5213. },
  5214. "src": "/kityminder-editor/dist/index.html"
  5215. })
  5216. _box.appendChild(_iframe);
  5217. _box.appendChild(_jie);
  5218. _formdiv = new U.UF.UI.form(
  5219. "思維導圖",
  5220. _box, { //"/jsmind/example/demo.html"
  5221. "id": "mind" + cid + stage + task + tool,
  5222. "style": {
  5223. "width": "90%",
  5224. "height": "90%",
  5225. "overflow": 'hidden'
  5226. },
  5227. "onresize": function () { }
  5228. }, {
  5229. closecallback: function () { }
  5230. }, {
  5231. "style": {
  5232. "height": "36px"
  5233. }
  5234. }).form; //創建窗體
  5235. _taskbar = {
  5236. "id": str + _formdiv.id,
  5237. "style": {
  5238. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5239. },
  5240. "name": "思維導圖",
  5241. "forms": _formdiv,
  5242. "click": function () {
  5243. U.MD.D.I.openApplication(str, obj, info);
  5244. }
  5245. }
  5246. break;
  5247. case "MindMap":
  5248. aTool = 3;
  5249. _iframe = $$("iframe", {
  5250. "frameborder": "no",
  5251. "border": "0",
  5252. "scrolling ": "no",
  5253. "style": {
  5254. "cssText": "border:0;width:100%;height:100%"
  5255. },
  5256. "src": "//cloud.cocorobo.hk/mind/"
  5257. })
  5258. _box.appendChild(_iframe);
  5259. _box.appendChild(_jie);
  5260. _formdiv = new U.UF.UI.form(
  5261. "思維導圖",
  5262. _box, { //"/jsmind/example/demo.html"
  5263. "id": "mind" + cid + stage + task + tool,
  5264. "style": {
  5265. "width": "90%",
  5266. "height": "90%",
  5267. "overflow": 'hidden'
  5268. },
  5269. "onresize": function () { }
  5270. }, {
  5271. closecallback: function () { }
  5272. }, {
  5273. "style": {
  5274. "height": "36px"
  5275. }
  5276. }).form; //創建窗體
  5277. _taskbar = {
  5278. "id": str + _formdiv.id,
  5279. "style": {
  5280. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5281. },
  5282. "name": "思維導圖",
  5283. "forms": _formdiv,
  5284. "click": function () {
  5285. U.MD.D.I.openApplication(str, obj, info);
  5286. }
  5287. }
  5288. break;
  5289. case "doc":
  5290. aTool = 6;
  5291. _iframe = $$("iframe", {
  5292. "frameborder": "no",
  5293. "border": "0",
  5294. "scrolling ": "no",
  5295. "style": {
  5296. "cssText": "border:0;width:100%;height:100%"
  5297. },
  5298. "src": "/Office/Word/WordEditArea.htm"
  5299. })
  5300. _box.appendChild(_iframe);
  5301. _box.appendChild(_jie);
  5302. _formdiv = new U.UF.UI.form(
  5303. "協同文檔",
  5304. _box, {
  5305. "id": "doc" + cid + stage + task + tool,
  5306. "style": {
  5307. "width": "90%",
  5308. "height": "90%",
  5309. "overflow": 'hidden'
  5310. },
  5311. "onresize": function () { }
  5312. }, {
  5313. closecallback: function () { }
  5314. }, {
  5315. "style": {
  5316. "height": "36px"
  5317. }
  5318. }).form; //創建窗體
  5319. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5320. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5321. })
  5322. _taskbar = {
  5323. "id": str + _formdiv.id,
  5324. "style": {
  5325. "backgroundImage": "url(/img/icon/doc.png)"
  5326. },
  5327. "name": "協同文檔",
  5328. "forms": _formdiv,
  5329. "click": function () {
  5330. U.MD.D.I.openApplication(str, obj, info);
  5331. }
  5332. }
  5333. break;
  5334. case "mindNetwork": //好友打開
  5335. aTool = 7;
  5336. _iframe = $$("iframe", {
  5337. "webkitallowfullscreen": "",
  5338. "mozallowfullscreen": "",
  5339. "allowfullscreen": "",
  5340. "frameborder": "no",
  5341. "border": "0",
  5342. "scrolling ": "no",
  5343. "style": {
  5344. "cssText": "border:0; width:100%; height:100%;"
  5345. },
  5346. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5347. })
  5348. _box.appendChild(_iframe);
  5349. _box.appendChild(_jie);
  5350. _formdiv = new U.UF.UI.form(
  5351. "思維網格",
  5352. _box, {
  5353. "id": "mindNetwork" + cid + stage + task + tool,
  5354. "style": {
  5355. "width": "90%",
  5356. "height": "90%",
  5357. "overflow": 'hidden'
  5358. },
  5359. "onresize": function () { }
  5360. }, {
  5361. closecallback: function () { }
  5362. }, {
  5363. "style": {
  5364. "height": "36px"
  5365. }
  5366. }).form; //創建窗體
  5367. _taskbar = {
  5368. "id": str + _formdiv.id,
  5369. "style": {
  5370. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5371. },
  5372. "name": "思維網格",
  5373. "forms": _formdiv,
  5374. "click": function () {
  5375. U.MD.D.I.openApplication(str, obj, info);
  5376. }
  5377. }
  5378. break;
  5379. case "courseDesign":
  5380. _iframe = $$("iframe", {
  5381. "webkitallowfullscreen": "",
  5382. "mozallowfullscreen": "",
  5383. "allowfullscreen": "",
  5384. "frameborder": "no",
  5385. "border": "0",
  5386. "scrolling ": "no",
  5387. "style": {
  5388. "cssText": "border:0; width:100%; height:100%;"
  5389. },
  5390. "src": "/course-design-vue"
  5391. })
  5392. _box.appendChild(_iframe);
  5393. _box.appendChild(_jie);
  5394. _formdiv = new U.UF.UI.form(
  5395. "項目設計",
  5396. _box, {
  5397. "id": "courseDesign" + cid + stage + task + tool,
  5398. "style": {
  5399. "width": "90%",
  5400. "height": "90%",
  5401. "overflow": 'hidden'
  5402. },
  5403. "onresize": function () { }
  5404. }, {
  5405. closecallback: function () { }
  5406. }, {
  5407. "style": {
  5408. "height": "36px"
  5409. }
  5410. }).form; //創建窗體
  5411. _taskbar = {
  5412. "id": str + _formdiv.id,
  5413. "style": {
  5414. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5415. },
  5416. "name": "項目設計",
  5417. "forms": _formdiv,
  5418. "click": function () {
  5419. U.MD.D.I.openApplication(str, obj, info);
  5420. }
  5421. }
  5422. break;
  5423. }
  5424. const script1 = document.createElement("script");
  5425. script1.type = "text/javascript";
  5426. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5427. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5428. const script2 = document.createElement("script");
  5429. script2.type = "text/javascript";
  5430. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5431. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5432. const script3 = document.createElement("script");
  5433. script3.type = "text/javascript";
  5434. script3.charset = "UTF-8";
  5435. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5436. const script4 = document.createElement("script");
  5437. script4.type = "text/javascript";
  5438. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5439. script4.src = window.origin + "/js/Common/jietu2E.js";
  5440. if (_iframe) {
  5441. if (str == 'doc') {
  5442. _iframe = _formdiv.querySelector('iframe')
  5443. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5444. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5445. _iframe.contentWindow.document.body.appendChild(script1);
  5446. _iframe.contentWindow.document.body.appendChild(script2);
  5447. // _iframe.contentWindow.document.body.appendChild(script3);
  5448. _iframe.contentWindow.document.body.appendChild(script4);
  5449. })
  5450. if (onloadListener) {
  5451. _iframe.contentDocument.location.reload()
  5452. } else {
  5453. _iframe.contentDocument.location.reload()
  5454. }
  5455. } else if (str == 'courseDesign') {
  5456. U.UF.DL.iframeLoad(_iframe, function () {
  5457. // _iframe.contentWindow.U.MD.O.W.load();
  5458. // _iframe.contentWindow.document.body.appendChild(script1);
  5459. _iframe.contentWindow.document.body.appendChild(script2);
  5460. _iframe.contentWindow.document.body.appendChild(script4);
  5461. })
  5462. } else if (str == 'mind') {
  5463. _iframe = _formdiv.querySelector('iframe')
  5464. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5465. //
  5466. _iframe.contentWindow.document.body.appendChild(script1);
  5467. _iframe.contentWindow.document.body.appendChild(script2);
  5468. _iframe.contentWindow.document.body.appendChild(script4);
  5469. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5470. })
  5471. if (onloadListener) {
  5472. _iframe.contentDocument.location.reload()
  5473. } else {
  5474. _iframe.contentDocument.location.reload()
  5475. }
  5476. } else if (str == 'whiteboard') {
  5477. _iframe = _formdiv.querySelector('iframe')
  5478. let onloadListener = _iframe.onload = () => {
  5479. _iframe.contentWindow.document.body.appendChild(script1);
  5480. _iframe.contentWindow.document.body.appendChild(script2);
  5481. _iframe.contentWindow.document.body.appendChild(script4);
  5482. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5483. };
  5484. if (onloadListener) {
  5485. _iframe.contentDocument.location.reload()
  5486. } else {
  5487. _iframe.contentDocument.location.reload()
  5488. }
  5489. } else {
  5490. _iframe.onload = () => {
  5491. _iframe.contentWindow.document.body.appendChild(script1);
  5492. _iframe.contentWindow.document.body.appendChild(script2);
  5493. // _iframe.contentWindow.document.body.appendChild(script3);
  5494. _iframe.contentWindow.document.body.appendChild(script4);
  5495. };
  5496. }
  5497. _jie.onclick = async () => {
  5498. let text = ''
  5499. if (aTool == 1) {
  5500. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5501. } else if (aTool == 6) {
  5502. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5503. } else if (aTool == 3) {
  5504. text = await U.MD.D.I.getEditorContent(_iframe);
  5505. }
  5506. _loading.style.display = 'flex'
  5507. console.log(_loading);
  5508. var _ajs = _iframe.contentWindow.document.createElement("script");
  5509. _ajs.type = "text/javascript";
  5510. _ajs.innerHTML =
  5511. // 'console.log(' + _loading + ');\n' +
  5512. 'var _js = document.createElement("script");\n' +
  5513. '_js.type="text/javascript";\n' +
  5514. '_js.charset="UTF-8";\n' +
  5515. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5516. "_js.onload = function(){\n" +
  5517. ' var a = document.getElementsByTagName("img")\n' +
  5518. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5519. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5520. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5521. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5522. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5523. "beforeUpload_shishi(file," +
  5524. "'" +
  5525. _userid +
  5526. "'" +
  5527. ", " +
  5528. "'" +
  5529. _cid +
  5530. "'" +
  5531. ", " +
  5532. "'" +
  5533. _stage +
  5534. "'" +
  5535. ", " +
  5536. "'" +
  5537. _task +
  5538. "'" +
  5539. ", " +
  5540. "'" +
  5541. _tool +
  5542. "'" +
  5543. ", " +
  5544. "'" +
  5545. (str + '_loadLi_JieE' + cid + stage + task + tool + _userid) +
  5546. "'" +
  5547. ", " +
  5548. "'" +
  5549. aTool +
  5550. "'" +
  5551. ", " +
  5552. "`" +
  5553. text +
  5554. "`" +
  5555. ")\n" +
  5556. " });\n" +
  5557. "}\n" +
  5558. "document.head.appendChild(_js);\n";
  5559. _iframe.contentWindow.document.head.appendChild(_ajs);
  5560. }
  5561. }
  5562. //U.MD.D.I.openClick(str);
  5563. //如果有任務欄信息
  5564. // if (_taskbar) {
  5565. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  5566. // }
  5567. }
  5568. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  5569. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5570. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5571. _userid = student.userid, //登錄用戶id
  5572. _username = student.student //用戶名字
  5573. let _iframe;
  5574. let _cid = cid,
  5575. _stage = stage,
  5576. _task = task,
  5577. _tool = tool;
  5578. var _jie = $$("div", {
  5579. "style": {
  5580. "position": "absolute",
  5581. "bottom": "50px",
  5582. "right": "50px",
  5583. "zIndex": "9999",
  5584. "backgroundColor": "#2268bc",
  5585. "color": "#fff",
  5586. "padding": "12px 20px",
  5587. "cursor": "pointer",
  5588. "borderRadius": "4px",
  5589. },
  5590. "innerHTML": "提交作業"
  5591. })
  5592. let aTool = ''
  5593. let _loading = document.createElement('div')
  5594. _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;"
  5595. // _loading.id = "";
  5596. let _lchild = document.createElement('div')
  5597. let _limg = document.createElement('img')
  5598. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5599. _limg.style = "width: 26px;margin-right: 10px;"
  5600. _lchild.appendChild(_limg)
  5601. let _lspan = document.createElement('span')
  5602. _lspan.innerHTML = "上傳中..."
  5603. _lchild.appendChild(_lspan)
  5604. _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%);"
  5605. _loading.appendChild(_lchild)
  5606. var _box = $$('div', {
  5607. "style": {
  5608. "position": "relative",
  5609. "width": "100%",
  5610. "height": "100%",
  5611. },
  5612. })
  5613. _box.appendChild(_loading)
  5614. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid
  5615. switch (str) {
  5616. case "whiteboard":
  5617. aTool = 1;
  5618. _iframe = $$("iframe", {
  5619. "frameborder": "no",
  5620. "border": "0",
  5621. "scrolling ": "no",
  5622. "style": {
  5623. "cssText": "border:0;width:100%;height:100%"
  5624. },
  5625. "src": "https://iwb.cocorobo.hk/"
  5626. })
  5627. _box.appendChild(_iframe);
  5628. _box.appendChild(_jie);
  5629. _formdiv = new U.UF.UI.form(
  5630. "電子白板-" + _username,
  5631. _box, {
  5632. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5633. "style": {
  5634. "width": "90%",
  5635. "height": "90%",
  5636. "overflow": 'hidden'
  5637. },
  5638. "onresize": function () { }
  5639. }, {
  5640. closecallback: function () { }
  5641. }, {
  5642. "style": {
  5643. "height": "36px"
  5644. }
  5645. }).form; //創建窗體
  5646. _taskbar = {
  5647. "id": str + _formdiv.id,
  5648. "style": {
  5649. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5650. },
  5651. "name": "電子白板",
  5652. "forms": _formdiv,
  5653. "click": function () {
  5654. U.MD.D.I.openApplication(str, obj, info);
  5655. }
  5656. }
  5657. break;
  5658. case "mind":
  5659. aTool = 3;
  5660. _iframe = $$("iframe", {
  5661. "frameborder": "no",
  5662. "border": "0",
  5663. "scrolling ": "no",
  5664. "style": {
  5665. "cssText": "border:0;width:100%;height:100%"
  5666. },
  5667. "src": "/kityminder-editor/dist/index.html"
  5668. })
  5669. _box.appendChild(_iframe);
  5670. _box.appendChild(_jie);
  5671. _formdiv = new U.UF.UI.form(
  5672. "思維導圖-" + _username,
  5673. _box, { //"/jsmind/example/demo.html"
  5674. "id": "mind" + cid + stage + task + tool + _userid,
  5675. "style": {
  5676. "width": "90%",
  5677. "height": "90%",
  5678. "overflow": 'hidden'
  5679. },
  5680. "onresize": function () { }
  5681. }, {
  5682. closecallback: function () { }
  5683. }, {
  5684. "style": {
  5685. "height": "36px"
  5686. }
  5687. }).form; //創建窗體
  5688. _taskbar = {
  5689. "id": str + _formdiv.id,
  5690. "style": {
  5691. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5692. },
  5693. "name": "思維導圖",
  5694. "forms": _formdiv,
  5695. "click": function () {
  5696. U.MD.D.I.openApplication(str, obj, info);
  5697. }
  5698. }
  5699. break;
  5700. case "MindMap":
  5701. aTool = 3;
  5702. _iframe = $$("iframe", {
  5703. "frameborder": "no",
  5704. "border": "0",
  5705. "scrolling ": "no",
  5706. "style": {
  5707. "cssText": "border:0;width:100%;height:100%"
  5708. },
  5709. "src": "//cloud.cocorobo.hk/mind/"
  5710. })
  5711. _box.appendChild(_iframe);
  5712. _box.appendChild(_jie);
  5713. _formdiv = new U.UF.UI.form(
  5714. "思維導圖-" + _username,
  5715. _box, { //"/jsmind/example/demo.html"
  5716. "id": "mind" + cid + stage + task + tool + _userid,
  5717. "style": {
  5718. "width": "90%",
  5719. "height": "90%",
  5720. "overflow": 'hidden'
  5721. },
  5722. "onresize": function () { }
  5723. }, {
  5724. closecallback: function () { }
  5725. }, {
  5726. "style": {
  5727. "height": "36px"
  5728. }
  5729. }).form; //創建窗體
  5730. _taskbar = {
  5731. "id": str + _formdiv.id,
  5732. "style": {
  5733. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5734. },
  5735. "name": "思維導圖",
  5736. "forms": _formdiv,
  5737. "click": function () {
  5738. U.MD.D.I.openApplication(str, obj, info);
  5739. }
  5740. }
  5741. break;
  5742. case "doc":
  5743. aTool = 6;
  5744. _iframe = $$("iframe", {
  5745. "frameborder": "no",
  5746. "border": "0",
  5747. "scrolling ": "no",
  5748. "style": {
  5749. "cssText": "border:0;width:100%;height:100%"
  5750. },
  5751. "src": "/Office/Word/WordEditArea.htm"
  5752. })
  5753. _box.appendChild(_iframe);
  5754. _box.appendChild(_jie);
  5755. _formdiv = new U.UF.UI.form(
  5756. "協同文檔-" + _username,
  5757. _box, {
  5758. "id": "doc" + cid + stage + task + tool + _userid,
  5759. "style": {
  5760. "width": "90%",
  5761. "height": "90%",
  5762. "overflow": 'hidden'
  5763. },
  5764. "onresize": function () { }
  5765. }, {
  5766. closecallback: function () { }
  5767. }, {
  5768. "style": {
  5769. "height": "36px"
  5770. }
  5771. }).form; //創建窗體
  5772. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5773. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5774. })
  5775. _taskbar = {
  5776. "id": str + _formdiv.id,
  5777. "style": {
  5778. "backgroundImage": "url(/img/icon/doc.png)"
  5779. },
  5780. "name": "協同文檔",
  5781. "forms": _formdiv,
  5782. "click": function () {
  5783. U.MD.D.I.openApplication(str, obj, info);
  5784. }
  5785. }
  5786. break;
  5787. case "mindNetwork": //好友打開
  5788. aTool = 7;
  5789. _iframe = $$("iframe", {
  5790. "webkitallowfullscreen": "",
  5791. "mozallowfullscreen": "",
  5792. "allowfullscreen": "",
  5793. "frameborder": "no",
  5794. "border": "0",
  5795. "scrolling ": "no",
  5796. "style": {
  5797. "cssText": "border:0; width:100%; height:100%;"
  5798. },
  5799. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5800. })
  5801. _box.appendChild(_iframe);
  5802. _box.appendChild(_jie);
  5803. _formdiv = new U.UF.UI.form(
  5804. "思維網格-" + _username,
  5805. _box, {
  5806. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5807. "style": {
  5808. "width": "90%",
  5809. "height": "90%",
  5810. "overflow": 'hidden'
  5811. },
  5812. "onresize": function () { }
  5813. }, {
  5814. closecallback: function () { }
  5815. }, {
  5816. "style": {
  5817. "height": "36px"
  5818. }
  5819. }).form; //創建窗體
  5820. _taskbar = {
  5821. "id": str + _formdiv.id,
  5822. "style": {
  5823. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5824. },
  5825. "name": "思維網格",
  5826. "forms": _formdiv,
  5827. "click": function () {
  5828. U.MD.D.I.openApplication(str, obj, info);
  5829. }
  5830. }
  5831. break;
  5832. case "courseDesign":
  5833. _iframe = $$("iframe", {
  5834. "webkitallowfullscreen": "",
  5835. "mozallowfullscreen": "",
  5836. "allowfullscreen": "",
  5837. "frameborder": "no",
  5838. "border": "0",
  5839. "scrolling ": "no",
  5840. "style": {
  5841. "cssText": "border:0; width:100%; height:100%;"
  5842. },
  5843. "src": "/course-design-vue"
  5844. })
  5845. _box.appendChild(_iframe);
  5846. _box.appendChild(_jie);
  5847. _formdiv = new U.UF.UI.form(
  5848. "項目設計-" + _username,
  5849. _box, {
  5850. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5851. "style": {
  5852. "width": "90%",
  5853. "height": "90%",
  5854. "overflow": 'hidden'
  5855. },
  5856. "onresize": function () { }
  5857. }, {
  5858. closecallback: function () { }
  5859. }, {
  5860. "style": {
  5861. "height": "36px"
  5862. }
  5863. }).form; //創建窗體
  5864. _taskbar = {
  5865. "id": str + _formdiv.id,
  5866. "style": {
  5867. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5868. },
  5869. "name": "項目設計",
  5870. "forms": _formdiv,
  5871. "click": function () {
  5872. U.MD.D.I.openApplication(str, obj, info);
  5873. }
  5874. }
  5875. break;
  5876. }
  5877. const script1 = document.createElement("script");
  5878. script1.type = "text/javascript";
  5879. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5880. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5881. const script2 = document.createElement("script");
  5882. script2.type = "text/javascript";
  5883. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5884. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5885. const script3 = document.createElement("script");
  5886. script3.type = "text/javascript";
  5887. script3.charset = "UTF-8";
  5888. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5889. const script4 = document.createElement("script");
  5890. script4.type = "text/javascript";
  5891. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5892. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  5893. if (_iframe) {
  5894. if (str == 'doc') {
  5895. _iframe = _formdiv.querySelector('iframe')
  5896. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5897. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5898. _iframe.contentWindow.document.body.appendChild(script1);
  5899. _iframe.contentWindow.document.body.appendChild(script2);
  5900. // _iframe.contentWindow.document.body.appendChild(script3);
  5901. _iframe.contentWindow.document.body.appendChild(script4);
  5902. })
  5903. if (onloadListener) {
  5904. _iframe.contentDocument.location.reload()
  5905. } else {
  5906. _iframe.contentDocument.location.reload()
  5907. }
  5908. } else if (str == 'courseDesign') {
  5909. U.UF.DL.iframeLoad(_iframe, function () {
  5910. // _iframe.contentWindow.U.MD.O.W.load();
  5911. // _iframe.contentWindow.document.body.appendChild(script1);
  5912. _iframe.contentWindow.document.body.appendChild(script2);
  5913. _iframe.contentWindow.document.body.appendChild(script4);
  5914. })
  5915. } else if (str == 'mind') {
  5916. _iframe = _formdiv.querySelector('iframe')
  5917. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5918. //
  5919. _iframe.contentWindow.document.body.appendChild(script1);
  5920. _iframe.contentWindow.document.body.appendChild(script2);
  5921. _iframe.contentWindow.document.body.appendChild(script4);
  5922. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5923. })
  5924. if (onloadListener) {
  5925. _iframe.contentDocument.location.reload()
  5926. } else {
  5927. _iframe.contentDocument.location.reload()
  5928. }
  5929. } else if (str == 'whiteboard') {
  5930. _iframe = _formdiv.querySelector('iframe')
  5931. let onloadListener = _iframe.onload = () => {
  5932. _iframe.contentWindow.document.body.appendChild(script1);
  5933. _iframe.contentWindow.document.body.appendChild(script2);
  5934. _iframe.contentWindow.document.body.appendChild(script4);
  5935. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5936. };
  5937. if (onloadListener) {
  5938. _iframe.contentDocument.location.reload()
  5939. } else {
  5940. _iframe.contentDocument.location.reload()
  5941. }
  5942. } else {
  5943. _iframe.onload = () => {
  5944. _iframe.contentWindow.document.body.appendChild(script1);
  5945. _iframe.contentWindow.document.body.appendChild(script2);
  5946. // _iframe.contentWindow.document.body.appendChild(script3);
  5947. _iframe.contentWindow.document.body.appendChild(script4);
  5948. };
  5949. }
  5950. _jie.onclick = async () => {
  5951. let text = ''
  5952. if (aTool == 1) {
  5953. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5954. } else if (aTool == 6) {
  5955. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5956. } else if (aTool == 3) {
  5957. text = await U.MD.D.I.getEditorContent(_iframe);
  5958. }
  5959. _loading.style.display = 'flex'
  5960. console.log(_loading);
  5961. var _ajs = _iframe.contentWindow.document.createElement("script");
  5962. _ajs.type = "text/javascript";
  5963. _ajs.innerHTML =
  5964. // 'console.log(' + _loading + ');\n' +
  5965. 'var _js = document.createElement("script");\n' +
  5966. '_js.type="text/javascript";\n' +
  5967. '_js.charset="UTF-8";\n' +
  5968. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5969. "_js.onload = function(){\n" +
  5970. ' var a = document.getElementsByTagName("img")\n' +
  5971. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5972. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5973. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5974. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5975. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5976. "beforeUpload_shishi(file," +
  5977. "'" +
  5978. _userid +
  5979. "'" +
  5980. ", " +
  5981. "'" +
  5982. _cid +
  5983. "'" +
  5984. ", " +
  5985. "'" +
  5986. _stage +
  5987. "'" +
  5988. ", " +
  5989. "'" +
  5990. _task +
  5991. "'" +
  5992. ", " +
  5993. "'" +
  5994. _tool +
  5995. "'" +
  5996. ", " +
  5997. "'" +
  5998. (str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid) +
  5999. "'" +
  6000. ", " +
  6001. "'" +
  6002. aTool +
  6003. "'" +
  6004. ", " +
  6005. "`" +
  6006. text +
  6007. "`" +
  6008. ")\n" +
  6009. " });\n" +
  6010. "}\n" +
  6011. "document.head.appendChild(_js);\n";
  6012. _iframe.contentWindow.document.head.appendChild(_ajs);
  6013. }
  6014. }
  6015. }
  6016. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  6017. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6018. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6019. _userid = student.userid, //登錄用戶id
  6020. _username = student.student //用戶名字
  6021. let _iframe;
  6022. let _cid = cid,
  6023. _stage = stage,
  6024. _task = task,
  6025. _tool = tool;
  6026. var _jie = $$("div", {
  6027. "style": {
  6028. "position": "absolute",
  6029. "bottom": "50px",
  6030. "right": "50px",
  6031. "zIndex": "9999",
  6032. "backgroundColor": "#2268bc",
  6033. "color": "#fff",
  6034. "padding": "12px 20px",
  6035. "cursor": "pointer",
  6036. "borderRadius": "4px",
  6037. },
  6038. "innerHTML": "提交作業"
  6039. })
  6040. let aTool = ''
  6041. let _loading = document.createElement('div')
  6042. _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;"
  6043. // _loading.id = "";
  6044. let _lchild = document.createElement('div')
  6045. let _limg = document.createElement('img')
  6046. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6047. _limg.style = "width: 26px;margin-right: 10px;"
  6048. _lchild.appendChild(_limg)
  6049. let _lspan = document.createElement('span')
  6050. _lspan.innerHTML = "上傳中..."
  6051. _lchild.appendChild(_lspan)
  6052. _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%);"
  6053. _loading.appendChild(_lchild)
  6054. var _box = $$('div', {
  6055. "style": {
  6056. "position": "relative",
  6057. "width": "100%",
  6058. "height": "100%",
  6059. },
  6060. })
  6061. _box.appendChild(_loading)
  6062. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  6063. switch (str) {
  6064. case "whiteboard":
  6065. aTool = 1;
  6066. _iframe = $$("iframe", {
  6067. "frameborder": "no",
  6068. "border": "0",
  6069. "scrolling ": "no",
  6070. "style": {
  6071. "cssText": "border:0;width:100%;height:100%"
  6072. },
  6073. "src": "https://iwb.cocorobo.hk/"
  6074. })
  6075. _box.appendChild(_iframe);
  6076. _box.appendChild(_jie);
  6077. _formdiv = new U.UF.UI.form(
  6078. "電子白板-" + _username,
  6079. _box, {
  6080. "id": "whiteboard" + cid + stage + task + tool + _userid,
  6081. "style": {
  6082. "width": "90%",
  6083. "height": "90%",
  6084. "overflow": 'hidden'
  6085. },
  6086. "onresize": function () { }
  6087. }, {
  6088. closecallback: function () { }
  6089. }, {
  6090. "style": {
  6091. "height": "36px"
  6092. }
  6093. }).form; //創建窗體
  6094. _taskbar = {
  6095. "id": str + _formdiv.id,
  6096. "style": {
  6097. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6098. },
  6099. "name": "電子白板",
  6100. "forms": _formdiv,
  6101. "click": function () {
  6102. U.MD.D.I.openApplication(str, obj, info);
  6103. }
  6104. }
  6105. break;
  6106. case "mind":
  6107. aTool = 3;
  6108. _iframe = $$("iframe", {
  6109. "frameborder": "no",
  6110. "border": "0",
  6111. "scrolling ": "no",
  6112. "style": {
  6113. "cssText": "border:0;width:100%;height:100%"
  6114. },
  6115. "src": "/kityminder-editor/dist/index.html"
  6116. })
  6117. _box.appendChild(_iframe);
  6118. _box.appendChild(_jie);
  6119. _formdiv = new U.UF.UI.form(
  6120. "思維導圖-" + _username,
  6121. _box, { //"/jsmind/example/demo.html"
  6122. "id": "mind" + cid + stage + task + tool + _userid,
  6123. "style": {
  6124. "width": "90%",
  6125. "height": "90%",
  6126. "overflow": 'hidden'
  6127. },
  6128. "onresize": function () { }
  6129. }, {
  6130. closecallback: function () { }
  6131. }, {
  6132. "style": {
  6133. "height": "36px"
  6134. }
  6135. }).form; //創建窗體
  6136. _taskbar = {
  6137. "id": str + _formdiv.id,
  6138. "style": {
  6139. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6140. },
  6141. "name": "思維導圖",
  6142. "forms": _formdiv,
  6143. "click": function () {
  6144. U.MD.D.I.openApplication(str, obj, info);
  6145. }
  6146. }
  6147. break;
  6148. case "MindMap":
  6149. aTool = 3;
  6150. _iframe = $$("iframe", {
  6151. "frameborder": "no",
  6152. "border": "0",
  6153. "scrolling ": "no",
  6154. "style": {
  6155. "cssText": "border:0;width:100%;height:100%"
  6156. },
  6157. "src": "//cloud.cocorobo.hk/mind/"
  6158. })
  6159. _box.appendChild(_iframe);
  6160. _box.appendChild(_jie);
  6161. _formdiv = new U.UF.UI.form(
  6162. "思維導圖-" + _username,
  6163. _box, { //"/jsmind/example/demo.html"
  6164. "id": "mind" + cid + stage + task + tool + _userid,
  6165. "style": {
  6166. "width": "90%",
  6167. "height": "90%",
  6168. "overflow": 'hidden'
  6169. },
  6170. "onresize": function () { }
  6171. }, {
  6172. closecallback: function () { }
  6173. }, {
  6174. "style": {
  6175. "height": "36px"
  6176. }
  6177. }).form; //創建窗體
  6178. _taskbar = {
  6179. "id": str + _formdiv.id,
  6180. "style": {
  6181. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6182. },
  6183. "name": "思維導圖",
  6184. "forms": _formdiv,
  6185. "click": function () {
  6186. U.MD.D.I.openApplication(str, obj, info);
  6187. }
  6188. }
  6189. break;
  6190. case "doc":
  6191. aTool = 6;
  6192. _iframe = $$("iframe", {
  6193. "frameborder": "no",
  6194. "border": "0",
  6195. "scrolling ": "no",
  6196. "style": {
  6197. "cssText": "border:0;width:100%;height:100%"
  6198. },
  6199. "src": "/Office/Word/WordEditArea.htm"
  6200. })
  6201. _box.appendChild(_iframe);
  6202. _box.appendChild(_jie);
  6203. _formdiv = new U.UF.UI.form(
  6204. "協同文檔-" + _username,
  6205. _box, {
  6206. "id": "doc" + cid + stage + task + tool + _userid,
  6207. "style": {
  6208. "width": "90%",
  6209. "height": "90%",
  6210. "overflow": 'hidden'
  6211. },
  6212. "onresize": function () { }
  6213. }, {
  6214. closecallback: function () { }
  6215. }, {
  6216. "style": {
  6217. "height": "36px"
  6218. }
  6219. }).form; //創建窗體
  6220. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6221. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  6222. })
  6223. _taskbar = {
  6224. "id": str + _formdiv.id,
  6225. "style": {
  6226. "backgroundImage": "url(/img/icon/doc.png)"
  6227. },
  6228. "name": "協同文檔",
  6229. "forms": _formdiv,
  6230. "click": function () {
  6231. U.MD.D.I.openApplication(str, obj, info);
  6232. }
  6233. }
  6234. break;
  6235. case "mindNetwork": //好友打開
  6236. aTool = 7;
  6237. _iframe = $$("iframe", {
  6238. "webkitallowfullscreen": "",
  6239. "mozallowfullscreen": "",
  6240. "allowfullscreen": "",
  6241. "frameborder": "no",
  6242. "border": "0",
  6243. "scrolling ": "no",
  6244. "style": {
  6245. "cssText": "border:0; width:100%; height:100%;"
  6246. },
  6247. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  6248. })
  6249. _box.appendChild(_iframe);
  6250. _box.appendChild(_jie);
  6251. _formdiv = new U.UF.UI.form(
  6252. "思維網格-" + _username,
  6253. _box, {
  6254. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  6255. "style": {
  6256. "width": "90%",
  6257. "height": "90%",
  6258. "overflow": 'hidden'
  6259. },
  6260. "onresize": function () { }
  6261. }, {
  6262. closecallback: function () { }
  6263. }, {
  6264. "style": {
  6265. "height": "36px"
  6266. }
  6267. }).form; //創建窗體
  6268. _taskbar = {
  6269. "id": str + _formdiv.id,
  6270. "style": {
  6271. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  6272. },
  6273. "name": "思維網格",
  6274. "forms": _formdiv,
  6275. "click": function () {
  6276. U.MD.D.I.openApplication(str, obj, info);
  6277. }
  6278. }
  6279. break;
  6280. case "courseDesign":
  6281. _iframe = $$("iframe", {
  6282. "webkitallowfullscreen": "",
  6283. "mozallowfullscreen": "",
  6284. "allowfullscreen": "",
  6285. "frameborder": "no",
  6286. "border": "0",
  6287. "scrolling ": "no",
  6288. "style": {
  6289. "cssText": "border:0; width:100%; height:100%;"
  6290. },
  6291. "src": "/course-design-vue"
  6292. })
  6293. _box.appendChild(_iframe);
  6294. _box.appendChild(_jie);
  6295. _formdiv = new U.UF.UI.form(
  6296. "項目設計-" + _username,
  6297. _box, {
  6298. "id": "courseDesign" + cid + stage + task + tool + _userid,
  6299. "style": {
  6300. "width": "90%",
  6301. "height": "90%",
  6302. "overflow": 'hidden'
  6303. },
  6304. "onresize": function () { }
  6305. }, {
  6306. closecallback: function () { }
  6307. }, {
  6308. "style": {
  6309. "height": "36px"
  6310. }
  6311. }).form; //創建窗體
  6312. _taskbar = {
  6313. "id": str + _formdiv.id,
  6314. "style": {
  6315. "backgroundImage": "url(/img/icon/courseDesign.png)"
  6316. },
  6317. "name": "項目設計",
  6318. "forms": _formdiv,
  6319. "click": function () {
  6320. U.MD.D.I.openApplication(str, obj, info);
  6321. }
  6322. }
  6323. break;
  6324. }
  6325. const script1 = document.createElement("script");
  6326. script1.type = "text/javascript";
  6327. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6328. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6329. const script2 = document.createElement("script");
  6330. script2.type = "text/javascript";
  6331. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6332. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6333. const script3 = document.createElement("script");
  6334. script3.type = "text/javascript";
  6335. script3.charset = "UTF-8";
  6336. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6337. const script4 = document.createElement("script");
  6338. script4.type = "text/javascript";
  6339. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  6340. script4.src = window.origin + "/js/Common/jietu2E.js";
  6341. if (_iframe) {
  6342. if (str == 'doc') {
  6343. _iframe = _formdiv.querySelector('iframe')
  6344. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6345. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  6346. _iframe.contentWindow.document.body.appendChild(script1);
  6347. _iframe.contentWindow.document.body.appendChild(script2);
  6348. // _iframe.contentWindow.document.body.appendChild(script3);
  6349. _iframe.contentWindow.document.body.appendChild(script4);
  6350. })
  6351. if (onloadListener) {
  6352. _iframe.contentDocument.location.reload()
  6353. } else {
  6354. _iframe.contentDocument.location.reload()
  6355. }
  6356. } else if (str == 'courseDesign') {
  6357. U.UF.DL.iframeLoad(_iframe, function () {
  6358. // _iframe.contentWindow.U.MD.O.W.load();
  6359. // _iframe.contentWindow.document.body.appendChild(script1);
  6360. _iframe.contentWindow.document.body.appendChild(script2);
  6361. _iframe.contentWindow.document.body.appendChild(script4);
  6362. })
  6363. } else if (str == 'mind') {
  6364. _iframe = _formdiv.querySelector('iframe')
  6365. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6366. //
  6367. _iframe.contentWindow.document.body.appendChild(script1);
  6368. _iframe.contentWindow.document.body.appendChild(script2);
  6369. _iframe.contentWindow.document.body.appendChild(script4);
  6370. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  6371. })
  6372. if (onloadListener) {
  6373. _iframe.contentDocument.location.reload()
  6374. } else {
  6375. _iframe.contentDocument.location.reload()
  6376. }
  6377. } else if (str == 'whiteboard') {
  6378. _iframe = _formdiv.querySelector('iframe')
  6379. let onloadListener = _iframe.onload = () => {
  6380. _iframe.contentWindow.document.body.appendChild(script1);
  6381. _iframe.contentWindow.document.body.appendChild(script2);
  6382. _iframe.contentWindow.document.body.appendChild(script4);
  6383. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  6384. };
  6385. if (onloadListener) {
  6386. _iframe.contentDocument.location.reload()
  6387. } else {
  6388. _iframe.contentDocument.location.reload()
  6389. }
  6390. } else {
  6391. _iframe.onload = () => {
  6392. _iframe.contentWindow.document.body.appendChild(script1);
  6393. _iframe.contentWindow.document.body.appendChild(script2);
  6394. // _iframe.contentWindow.document.body.appendChild(script3);
  6395. _iframe.contentWindow.document.body.appendChild(script4);
  6396. };
  6397. }
  6398. _jie.onclick = async () => {
  6399. let text = ''
  6400. if (aTool == 1) {
  6401. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6402. } else if (aTool == 6) {
  6403. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6404. } else if (aTool == 3) {
  6405. text = await U.MD.D.I.getEditorContent(_iframe);
  6406. }
  6407. _loading.style.display = 'flex'
  6408. console.log(_loading);
  6409. var _ajs = _iframe.contentWindow.document.createElement("script");
  6410. _ajs.type = "text/javascript";
  6411. _ajs.innerHTML =
  6412. // 'console.log(' + _loading + ');\n' +
  6413. 'var _js = document.createElement("script");\n' +
  6414. '_js.type="text/javascript";\n' +
  6415. '_js.charset="UTF-8";\n' +
  6416. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6417. "_js.onload = function(){\n" +
  6418. ' var a = document.getElementsByTagName("img")\n' +
  6419. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6420. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6421. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6422. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6423. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6424. "beforeUpload_shishi(file," +
  6425. "'" +
  6426. _userid +
  6427. "'" +
  6428. ", " +
  6429. "'" +
  6430. _cid +
  6431. "'" +
  6432. ", " +
  6433. "'" +
  6434. _stage +
  6435. "'" +
  6436. ", " +
  6437. "'" +
  6438. _task +
  6439. "'" +
  6440. ", " +
  6441. "'" +
  6442. _tool +
  6443. "'" +
  6444. ", " +
  6445. "'" +
  6446. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid) +
  6447. "'" +
  6448. ", " +
  6449. "'" +
  6450. aTool +
  6451. "'" +
  6452. ", " +
  6453. "`" +
  6454. text +
  6455. "`" +
  6456. ")\n" +
  6457. " });\n" +
  6458. "}\n" +
  6459. "document.head.appendChild(_js);\n";
  6460. _iframe.contentWindow.document.head.appendChild(_ajs);
  6461. }
  6462. }
  6463. }
  6464. U.MD.D.I.getEditorContent = function (iframe) {
  6465. return new Promise((resolve, reject) => {
  6466. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  6467. console.log(content);
  6468. resolve(content)
  6469. });
  6470. });
  6471. }
  6472. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  6473. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  6474. // if (res.value[0].length > 0) {
  6475. // // resolve(res.value[0][0].text);
  6476. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  6477. // $(fileInput).val('');
  6478. // });
  6479. // }
  6480. // }, [], { "type": "GET", "withCredentials": true });
  6481. var xmlhttp;
  6482. var Mac, Sn, DeviceId
  6483. if (window.XMLHttpRequest) {
  6484. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6485. xmlhttp = new XMLHttpRequest();
  6486. }
  6487. else {
  6488. // IE6, IE5 瀏覽器執行代碼
  6489. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6490. }
  6491. xmlhttp.onreadystatechange = function () {
  6492. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6493. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6494. // resolve(res.value[0][0].text);
  6495. if (type == '2') {
  6496. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6497. } else if (type == '3') {
  6498. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6499. }
  6500. } else {
  6501. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  6502. }
  6503. }
  6504. }
  6505. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6506. xmlhttp.send();
  6507. }
  6508. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  6509. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6510. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6511. _userinfo = US.userInfo, //登錄用戶信息
  6512. _userid = US.userInfo.userid //登錄用戶id
  6513. let _iframe;
  6514. let _cid = cid,
  6515. _stage = stage,
  6516. _task = task,
  6517. _tool = tool;
  6518. var _jie = $$("div", {
  6519. "style": {
  6520. "position": "absolute",
  6521. "bottom": "50px",
  6522. "right": "50px",
  6523. "zIndex": "9999",
  6524. "backgroundColor": "#2268bc",
  6525. "color": "#fff",
  6526. "padding": "12px 20px",
  6527. "cursor": "pointer",
  6528. "borderRadius": "4px",
  6529. },
  6530. "innerHTML": "確認並提交"
  6531. })
  6532. let aTool = ''
  6533. let _loading = document.createElement('div')
  6534. _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;"
  6535. // _loading.id = "";
  6536. let _lchild = document.createElement('div')
  6537. let _limg = document.createElement('img')
  6538. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6539. _limg.style = "width: 26px;margin-right: 10px;"
  6540. _lchild.appendChild(_limg)
  6541. let _lspan = document.createElement('span')
  6542. _lspan.innerHTML = "上傳中..."
  6543. _lchild.appendChild(_lspan)
  6544. _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%);"
  6545. _loading.appendChild(_lchild)
  6546. var _box = $$('div', {
  6547. "style": {
  6548. "position": "relative",
  6549. "width": "100%",
  6550. "height": "100%",
  6551. },
  6552. })
  6553. _box.appendChild(_loading)
  6554. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool + _userid
  6555. switch (str) {
  6556. case "whiteboard":
  6557. aTool = 1;
  6558. _iframe = $$("iframe", {
  6559. "frameborder": "no",
  6560. "border": "0",
  6561. "scrolling ": "no",
  6562. "style": {
  6563. "cssText": "border:0;width:100%;height:100%"
  6564. },
  6565. "src": "https://iwb.cocorobo.hk/"
  6566. })
  6567. _box.appendChild(_iframe);
  6568. _box.appendChild(_jie);
  6569. _formdiv = new U.UF.UI.form(
  6570. "電子白板",
  6571. _box, {
  6572. "id": "whiteboards" + cid + stage + task + tool,
  6573. "style": {
  6574. "width": "90%",
  6575. "height": "90%",
  6576. "overflow": 'hidden'
  6577. },
  6578. "onresize": function () { }
  6579. }, {
  6580. closecallback: function () { }
  6581. }, {
  6582. "style": {
  6583. "height": "36px"
  6584. }
  6585. }).form; //創建窗體
  6586. _taskbar = {
  6587. "id": str + _formdiv.id,
  6588. "style": {
  6589. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6590. },
  6591. "name": "電子白板",
  6592. "forms": _formdiv,
  6593. "click": function () {
  6594. U.MD.D.I.openApplication(str, obj, info);
  6595. }
  6596. }
  6597. break;
  6598. case "mind":
  6599. aTool = 3;
  6600. _iframe = $$("iframe", {
  6601. "frameborder": "no",
  6602. "border": "0",
  6603. "scrolling ": "no",
  6604. "style": {
  6605. "cssText": "border:0;width:100%;height:100%"
  6606. },
  6607. "src": "/kityminder-editor/dist/index.html"
  6608. });
  6609. _box.appendChild(_iframe);
  6610. _box.appendChild(_jie);
  6611. _formdiv = new U.UF.UI.form(
  6612. "思維導圖",
  6613. _box, { //"/jsmind/example/demo.html"
  6614. "id": "minds" + cid + stage + task + tool,
  6615. "style": {
  6616. "width": "90%",
  6617. "height": "90%",
  6618. "overflow": 'hidden'
  6619. },
  6620. "onresize": function () { }
  6621. }, {
  6622. closecallback: function () { }
  6623. }, {
  6624. "style": {
  6625. "height": "36px"
  6626. }
  6627. }).form; //創建窗體
  6628. _taskbar = {
  6629. "id": str + _formdiv.id,
  6630. "style": {
  6631. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6632. },
  6633. "name": "思維導圖",
  6634. "forms": _formdiv,
  6635. "click": function () {
  6636. U.MD.D.I.openApplication(str, obj, info);
  6637. }
  6638. }
  6639. break;
  6640. case "doc":
  6641. aTool = 6;
  6642. _iframe = $$("iframe", {
  6643. "frameborder": "no",
  6644. "border": "0",
  6645. "scrolling ": "no",
  6646. "style": {
  6647. "cssText": "border:0;width:100%;height:100%"
  6648. },
  6649. "src": "/Office/Word/WordEditArea.htm"
  6650. })
  6651. _box.appendChild(_iframe);
  6652. _box.appendChild(_jie);
  6653. _formdiv = new U.UF.UI.form(
  6654. "協同文檔",
  6655. _box, {
  6656. "id": "docs" + cid + stage + task + tool,
  6657. "style": {
  6658. "width": "90%",
  6659. "height": "90%",
  6660. "overflow": 'hidden'
  6661. },
  6662. "onresize": function () { }
  6663. }, {
  6664. closecallback: function () { }
  6665. }, {
  6666. "style": {
  6667. "height": "36px"
  6668. }
  6669. }).form; //創建窗體
  6670. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6671. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6672. })
  6673. _taskbar = {
  6674. "id": str + _formdiv.id,
  6675. "style": {
  6676. "backgroundImage": "url(/img/icon/doc.png)"
  6677. },
  6678. "name": "協同文檔",
  6679. "forms": _formdiv,
  6680. "click": function () {
  6681. U.MD.D.I.openApplication(str, obj, info);
  6682. }
  6683. }
  6684. break;
  6685. }
  6686. const script1 = document.createElement("script");
  6687. script1.type = "text/javascript";
  6688. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6689. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6690. const script2 = document.createElement("script");
  6691. script2.type = "text/javascript";
  6692. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6693. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6694. const script3 = document.createElement("script");
  6695. script3.type = "text/javascript";
  6696. script3.charset = "UTF-8";
  6697. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6698. const script4 = document.createElement("script");
  6699. script4.type = "text/javascript";
  6700. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6701. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu4.js";
  6702. if (_iframe) {
  6703. if (str == 'doc') {
  6704. _iframe = _formdiv.querySelector('iframe')
  6705. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6706. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6707. _iframe.contentWindow.document.body.appendChild(script1);
  6708. _iframe.contentWindow.document.body.appendChild(script2);
  6709. // _iframe.contentWindow.document.body.appendChild(script3);
  6710. _iframe.contentWindow.document.body.appendChild(script4);
  6711. })
  6712. if (onloadListener) {
  6713. _iframe.contentDocument.location.reload()
  6714. } else {
  6715. _iframe.contentDocument.location.reload()
  6716. }
  6717. } else if (str == 'mind') {
  6718. _iframe = _formdiv.querySelector('iframe')
  6719. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6720. _iframe.contentWindow.document.body.appendChild(script1);
  6721. _iframe.contentWindow.document.body.appendChild(script2);
  6722. _iframe.contentWindow.document.body.appendChild(script4);
  6723. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6724. })
  6725. if (onloadListener) {
  6726. _iframe.contentDocument.location.reload()
  6727. } else {
  6728. _iframe.contentDocument.location.reload()
  6729. }
  6730. } else {
  6731. _iframe.onload = () => {
  6732. _iframe.contentWindow.document.body.appendChild(script1);
  6733. _iframe.contentWindow.document.body.appendChild(script2);
  6734. // _iframe.contentWindow.document.body.appendChild(script3);
  6735. _iframe.contentWindow.document.body.appendChild(script4);
  6736. };
  6737. }
  6738. _jie.onclick = async () => {
  6739. let text = ''
  6740. if (aTool == 6) {
  6741. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6742. } else if (aTool == 3) {
  6743. text = await U.MD.D.I.getEditorContent(_iframe);
  6744. }
  6745. _loading.style.display = 'flex'
  6746. console.log(_loading);
  6747. var _ajs = _iframe.contentWindow.document.createElement("script");
  6748. _ajs.type = "text/javascript";
  6749. _ajs.innerHTML =
  6750. // 'console.log(' + _loading + ');\n' +
  6751. 'var _js = document.createElement("script");\n' +
  6752. '_js.type="text/javascript";\n' +
  6753. '_js.charset="UTF-8";\n' +
  6754. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6755. "_js.onload = function(){\n" +
  6756. ' var a = document.getElementsByTagName("img")\n' +
  6757. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6758. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6759. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6760. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6761. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6762. "beforeUpload_shishi(file," +
  6763. "'" +
  6764. _userid +
  6765. "'" +
  6766. ", " +
  6767. "'" +
  6768. _cid +
  6769. "'" +
  6770. ", " +
  6771. "'" +
  6772. _stage +
  6773. "'" +
  6774. ", " +
  6775. "'" +
  6776. _task +
  6777. "'" +
  6778. ", " +
  6779. "'" +
  6780. _tool +
  6781. "'" +
  6782. ", " +
  6783. "'" +
  6784. (str + '_loadLi_JieS' + cid + stage + task + tool + _userid) +
  6785. "'" +
  6786. ", " +
  6787. "'" +
  6788. aTool +
  6789. "'" +
  6790. ", " +
  6791. "`" +
  6792. text +
  6793. "`" +
  6794. ")\n" +
  6795. " });\n" +
  6796. "}\n" +
  6797. "document.head.appendChild(_js);\n";
  6798. _iframe.contentWindow.document.head.appendChild(_ajs);
  6799. }
  6800. }
  6801. //U.MD.D.I.openClick(str);
  6802. //如果有任務欄信息
  6803. // if (_taskbar) {
  6804. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6805. // }
  6806. }
  6807. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  6808. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6809. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6810. _userinfo = US.userInfo, //登錄用戶信息
  6811. _userid = US.userInfo.userid //登錄用戶id
  6812. let _iframe;
  6813. let _cid = cid,
  6814. _stage = stage,
  6815. _task = task,
  6816. _tool = tool;
  6817. var _jie = $$("div", {
  6818. "style": {
  6819. "position": "absolute",
  6820. "bottom": "50px",
  6821. "right": "50px",
  6822. "zIndex": "9999",
  6823. "backgroundColor": "#2268bc",
  6824. "color": "#fff",
  6825. "padding": "12px 20px",
  6826. "cursor": "pointer",
  6827. "borderRadius": "4px",
  6828. },
  6829. "innerHTML": "確認並提交"
  6830. })
  6831. let aTool = ''
  6832. let _loading = document.createElement('div')
  6833. _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;"
  6834. // _loading.id = "";
  6835. let _lchild = document.createElement('div')
  6836. let _limg = document.createElement('img')
  6837. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6838. _limg.style = "width: 26px;margin-right: 10px;"
  6839. _lchild.appendChild(_limg)
  6840. let _lspan = document.createElement('span')
  6841. _lspan.innerHTML = "上傳中..."
  6842. _lchild.appendChild(_lspan)
  6843. _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%);"
  6844. _loading.appendChild(_lchild)
  6845. var _box = $$('div', {
  6846. "style": {
  6847. "position": "relative",
  6848. "width": "100%",
  6849. "height": "100%",
  6850. },
  6851. })
  6852. _box.appendChild(_loading)
  6853. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid
  6854. switch (str) {
  6855. case "whiteboard":
  6856. aTool = 1;
  6857. _iframe = $$("iframe", {
  6858. "frameborder": "no",
  6859. "border": "0",
  6860. "scrolling ": "no",
  6861. "style": {
  6862. "cssText": "border:0;width:100%;height:100%"
  6863. },
  6864. "src": "https://iwb.cocorobo.hk/"
  6865. })
  6866. _box.appendChild(_iframe);
  6867. _box.appendChild(_jie);
  6868. _formdiv = new U.UF.UI.form(
  6869. "電子白板",
  6870. _box, {
  6871. "id": "whiteboards" + cid + stage + task + tool,
  6872. "style": {
  6873. "width": "90%",
  6874. "height": "90%",
  6875. "overflow": 'hidden'
  6876. },
  6877. "onresize": function () { }
  6878. }, {
  6879. closecallback: function () { }
  6880. }, {
  6881. "style": {
  6882. "height": "36px"
  6883. }
  6884. }).form; //創建窗體
  6885. _taskbar = {
  6886. "id": str + _formdiv.id,
  6887. "style": {
  6888. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6889. },
  6890. "name": "電子白板",
  6891. "forms": _formdiv,
  6892. "click": function () {
  6893. U.MD.D.I.openApplication(str, obj, info);
  6894. }
  6895. }
  6896. break;
  6897. case "mind":
  6898. aTool = 3;
  6899. _iframe = $$("iframe", {
  6900. "frameborder": "no",
  6901. "border": "0",
  6902. "scrolling ": "no",
  6903. "style": {
  6904. "cssText": "border:0;width:100%;height:100%"
  6905. },
  6906. "src": "/kityminder-editor/dist/index.html"
  6907. });
  6908. _box.appendChild(_iframe);
  6909. _box.appendChild(_jie);
  6910. _formdiv = new U.UF.UI.form(
  6911. "思維導圖",
  6912. _box, { //"/jsmind/example/demo.html"
  6913. "id": "minds" + cid + stage + task + tool,
  6914. "style": {
  6915. "width": "90%",
  6916. "height": "90%",
  6917. "overflow": 'hidden'
  6918. },
  6919. "onresize": function () { }
  6920. }, {
  6921. closecallback: function () { }
  6922. }, {
  6923. "style": {
  6924. "height": "36px"
  6925. }
  6926. }).form; //創建窗體
  6927. _taskbar = {
  6928. "id": str + _formdiv.id,
  6929. "style": {
  6930. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6931. },
  6932. "name": "思維導圖",
  6933. "forms": _formdiv,
  6934. "click": function () {
  6935. U.MD.D.I.openApplication(str, obj, info);
  6936. }
  6937. }
  6938. break;
  6939. case "doc":
  6940. aTool = 6;
  6941. _iframe = $$("iframe", {
  6942. "frameborder": "no",
  6943. "border": "0",
  6944. "scrolling ": "no",
  6945. "style": {
  6946. "cssText": "border:0;width:100%;height:100%"
  6947. },
  6948. "src": "/Office/Word/WordEditArea.htm"
  6949. })
  6950. _box.appendChild(_iframe);
  6951. _box.appendChild(_jie);
  6952. _formdiv = new U.UF.UI.form(
  6953. "協同文檔",
  6954. _box, {
  6955. "id": "docs" + cid + stage + task + tool,
  6956. "style": {
  6957. "width": "90%",
  6958. "height": "90%",
  6959. "overflow": 'hidden'
  6960. },
  6961. "onresize": function () { }
  6962. }, {
  6963. closecallback: function () { }
  6964. }, {
  6965. "style": {
  6966. "height": "36px"
  6967. }
  6968. }).form; //創建窗體
  6969. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6970. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6971. })
  6972. _taskbar = {
  6973. "id": str + _formdiv.id,
  6974. "style": {
  6975. "backgroundImage": "url(/img/icon/doc.png)"
  6976. },
  6977. "name": "協同文檔",
  6978. "forms": _formdiv,
  6979. "click": function () {
  6980. U.MD.D.I.openApplication(str, obj, info);
  6981. }
  6982. }
  6983. break;
  6984. }
  6985. const script1 = document.createElement("script");
  6986. script1.type = "text/javascript";
  6987. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6988. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6989. const script2 = document.createElement("script");
  6990. script2.type = "text/javascript";
  6991. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6992. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6993. const script3 = document.createElement("script");
  6994. script3.type = "text/javascript";
  6995. script3.charset = "UTF-8";
  6996. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6997. const script4 = document.createElement("script");
  6998. script4.type = "text/javascript";
  6999. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  7000. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu5.js";
  7001. if (_iframe) {
  7002. if (str == 'doc') {
  7003. _iframe = _formdiv.querySelector('iframe')
  7004. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7005. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  7006. _iframe.contentWindow.document.body.appendChild(script1);
  7007. _iframe.contentWindow.document.body.appendChild(script2);
  7008. // _iframe.contentWindow.document.body.appendChild(script3);
  7009. _iframe.contentWindow.document.body.appendChild(script4);
  7010. })
  7011. if (onloadListener) {
  7012. _iframe.contentDocument.location.reload()
  7013. } else {
  7014. _iframe.contentDocument.location.reload()
  7015. }
  7016. } else if (str == 'mind') {
  7017. _iframe = _formdiv.querySelector('iframe')
  7018. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7019. _iframe.contentWindow.document.body.appendChild(script1);
  7020. _iframe.contentWindow.document.body.appendChild(script2);
  7021. _iframe.contentWindow.document.body.appendChild(script4);
  7022. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  7023. })
  7024. if (onloadListener) {
  7025. _iframe.contentDocument.location.reload()
  7026. } else {
  7027. _iframe.contentDocument.location.reload()
  7028. }
  7029. } else {
  7030. _iframe.onload = () => {
  7031. _iframe.contentWindow.document.body.appendChild(script1);
  7032. _iframe.contentWindow.document.body.appendChild(script2);
  7033. // _iframe.contentWindow.document.body.appendChild(script3);
  7034. _iframe.contentWindow.document.body.appendChild(script4);
  7035. };
  7036. }
  7037. _jie.onclick = async () => {
  7038. let text = ''
  7039. if (aTool == 6) {
  7040. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  7041. } else if (aTool == 3) {
  7042. text = await U.MD.D.I.getEditorContent(_iframe);
  7043. }
  7044. _loading.style.display = 'flex'
  7045. console.log(_loading);
  7046. var _ajs = _iframe.contentWindow.document.createElement("script");
  7047. _ajs.type = "text/javascript";
  7048. _ajs.innerHTML =
  7049. // 'console.log(' + _loading + ');\n' +
  7050. 'var _js = document.createElement("script");\n' +
  7051. '_js.type="text/javascript";\n' +
  7052. '_js.charset="UTF-8";\n' +
  7053. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  7054. "_js.onload = function(){\n" +
  7055. ' var a = document.getElementsByTagName("img")\n' +
  7056. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  7057. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  7058. '  var base64Url = canvas.toDataURL("image/png");\n' +
  7059. 'var base64 = "<img src=" + base64Url + " />"\n' +
  7060. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  7061. "beforeUpload_shishi(file," +
  7062. "'" +
  7063. _userid +
  7064. "'" +
  7065. ", " +
  7066. "'" +
  7067. _cid +
  7068. "'" +
  7069. ", " +
  7070. "'" +
  7071. _stage +
  7072. "'" +
  7073. ", " +
  7074. "'" +
  7075. _task +
  7076. "'" +
  7077. ", " +
  7078. "'" +
  7079. _tool +
  7080. "'" +
  7081. ", " +
  7082. "'" +
  7083. (str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid) +
  7084. "'" +
  7085. ", " +
  7086. "'" +
  7087. aTool +
  7088. "'" +
  7089. ", " +
  7090. "`" +
  7091. text +
  7092. "`" +
  7093. ")\n" +
  7094. " });\n" +
  7095. "}\n" +
  7096. "document.head.appendChild(_js);\n";
  7097. _iframe.contentWindow.document.head.appendChild(_ajs);
  7098. }
  7099. }
  7100. //U.MD.D.I.openClick(str);
  7101. //如果有任務欄信息
  7102. // if (_taskbar) {
  7103. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  7104. // }
  7105. }
  7106. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  7107. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7108. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7109. _userinfo = US.userInfo, //登錄用戶信息
  7110. _userid = US.userInfo.userid //登錄用戶id
  7111. let _iframe;
  7112. let _cid = cid,
  7113. _stage = stage,
  7114. _task = task,
  7115. _tool = tool;
  7116. var _jie = $$("div", {
  7117. "style": {
  7118. "position": "absolute",
  7119. "bottom": "50px",
  7120. "right": "50px",
  7121. "zIndex": "9999",
  7122. "backgroundColor": "#2268bc",
  7123. "color": "#fff",
  7124. "padding": "12px 20px",
  7125. "cursor": "pointer",
  7126. "borderRadius": "4px",
  7127. },
  7128. "innerHTML": "上傳模板"
  7129. })
  7130. let aTool = ''
  7131. let _loading = document.createElement('div')
  7132. _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;"
  7133. // _loading.id = "";
  7134. let _lchild = document.createElement('div')
  7135. let _limg = document.createElement('img')
  7136. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7137. _limg.style = "width: 26px;margin-right: 10px;"
  7138. _lchild.appendChild(_limg)
  7139. let _lspan = document.createElement('span')
  7140. _lspan.innerHTML = "上傳中..."
  7141. _lchild.appendChild(_lspan)
  7142. _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%);"
  7143. _loading.appendChild(_lchild)
  7144. var _box = $$('div', {
  7145. "style": {
  7146. "position": "relative",
  7147. "width": "100%",
  7148. "height": "100%",
  7149. },
  7150. })
  7151. _box.appendChild(_loading)
  7152. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool + _userid
  7153. switch (str) {
  7154. case "whiteboard":
  7155. aTool = 1;
  7156. _iframe = $$("iframe", {
  7157. "frameborder": "no",
  7158. "border": "0",
  7159. "scrolling ": "no",
  7160. "style": {
  7161. "cssText": "border:0;width:100%;height:100%"
  7162. },
  7163. "src": "https://iwb.cocorobo.hk/"
  7164. })
  7165. _box.appendChild(_iframe);
  7166. _box.appendChild(_jie);
  7167. _formdiv = new U.UF.UI.form(
  7168. "電子白板",
  7169. _box, {
  7170. "id": "whiteboards_Yu" + cid + stage + task + tool,
  7171. "style": {
  7172. "width": "90%",
  7173. "height": "90%",
  7174. "overflow": 'hidden'
  7175. },
  7176. "onresize": function () { }
  7177. }, {
  7178. closecallback: function () { }
  7179. }, {
  7180. "style": {
  7181. "height": "36px"
  7182. }
  7183. }).form; //創建窗體
  7184. _taskbar = {
  7185. "id": str + _formdiv.id,
  7186. "style": {
  7187. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  7188. },
  7189. "name": "電子白板",
  7190. "forms": _formdiv,
  7191. "click": function () {
  7192. U.MD.D.I.openApplication(str, obj, info);
  7193. }
  7194. }
  7195. break;
  7196. case "mind":
  7197. aTool = 3;
  7198. _iframe = $$("iframe", {
  7199. "frameborder": "no",
  7200. "border": "0",
  7201. "scrolling ": "no",
  7202. "style": {
  7203. "cssText": "border:0;width:100%;height:100%"
  7204. },
  7205. "src": "/kityminder-editor/dist/index.html"
  7206. });
  7207. _box.appendChild(_iframe);
  7208. _box.appendChild(_jie);
  7209. _formdiv = new U.UF.UI.form(
  7210. "思維導圖",
  7211. _box, { //"/jsmind/example/demo.html"
  7212. "id": "minds_Yu" + cid + stage + task + tool,
  7213. "style": {
  7214. "width": "90%",
  7215. "height": "90%",
  7216. "overflow": 'hidden'
  7217. },
  7218. "onresize": function () { }
  7219. }, {
  7220. closecallback: function () { }
  7221. }, {
  7222. "style": {
  7223. "height": "36px"
  7224. }
  7225. }).form; //創建窗體
  7226. _taskbar = {
  7227. "id": str + _formdiv.id,
  7228. "style": {
  7229. "backgroundImage": "url(/img/icon/mindMapping.png)"
  7230. },
  7231. "name": "思維導圖",
  7232. "forms": _formdiv,
  7233. "click": function () {
  7234. U.MD.D.I.openApplication(str, obj, info);
  7235. }
  7236. }
  7237. break;
  7238. case "doc":
  7239. aTool = 6;
  7240. _iframe = $$("iframe", {
  7241. "frameborder": "no",
  7242. "border": "0",
  7243. "scrolling ": "no",
  7244. "style": {
  7245. "cssText": "border:0;width:100%;height:100%"
  7246. },
  7247. "src": "/Office/Word/WordEditArea.htm"
  7248. })
  7249. _box.appendChild(_iframe);
  7250. _box.appendChild(_jie);
  7251. _formdiv = new U.UF.UI.form(
  7252. "協同文檔",
  7253. _box, {
  7254. "id": "docs_Yu" + cid + stage + task + tool,
  7255. "style": {
  7256. "width": "90%",
  7257. "height": "90%",
  7258. "overflow": 'hidden'
  7259. },
  7260. "onresize": function () { }
  7261. }, {
  7262. closecallback: function () { }
  7263. }, {
  7264. "style": {
  7265. "height": "36px"
  7266. }
  7267. }).form; //創建窗體
  7268. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  7269. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  7270. })
  7271. _taskbar = {
  7272. "id": str + _formdiv.id,
  7273. "style": {
  7274. "backgroundImage": "url(/img/icon/doc.png)"
  7275. },
  7276. "name": "協同文檔",
  7277. "forms": _formdiv,
  7278. "click": function () {
  7279. U.MD.D.I.openApplication(str, obj, info);
  7280. }
  7281. }
  7282. break;
  7283. case "CocoPi":
  7284. aTool = 57;
  7285. _iframe = $$("iframe", {
  7286. "allowpaymentrequest": "allowpaymentrequest",
  7287. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7288. "webkitallowfullscreen": "",
  7289. "mozallowfullscreen": "",
  7290. "frameborder": "no",
  7291. "border": "0",
  7292. "scrolling ": "no",
  7293. "style": {
  7294. "cssText": "border:0;width:100%;height:100%"
  7295. },
  7296. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7297. })
  7298. _box.appendChild(_iframe);
  7299. _box.appendChild(_jie);
  7300. _formdiv = new U.UF.UI.form(
  7301. "CocoPi",
  7302. _box, {
  7303. "id": "CocoPi_Yu" + cid + stage + task + tool,
  7304. "style": {
  7305. "width": "90%",
  7306. "height": "90%",
  7307. "overflow": 'hidden'
  7308. },
  7309. "onresize": function () { }
  7310. }, {
  7311. closecallback: function () { }
  7312. }, {
  7313. "style": {
  7314. "height": "36px"
  7315. }
  7316. }).form; //創建窗體
  7317. _taskbar = {
  7318. "id": str + _formdiv.id,
  7319. "style": {
  7320. "backgroundImage": "url(/img/icon/cocopi.png)"
  7321. },
  7322. "name": "CocoPi",
  7323. "forms": _formdiv,
  7324. "click": function () {
  7325. U.MD.D.I.openApplication(str, obj, info);
  7326. }
  7327. }
  7328. break;
  7329. }
  7330. if (_iframe) {
  7331. if (str == 'doc') {
  7332. _iframe = _formdiv.querySelector('iframe')
  7333. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7334. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  7335. })
  7336. if (onloadListener) {
  7337. _iframe.contentDocument.location.reload()
  7338. } else {
  7339. _iframe.contentDocument.location.reload()
  7340. }
  7341. } else if (str == 'mind') {
  7342. _iframe = _formdiv.querySelector('iframe')
  7343. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7344. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  7345. })
  7346. if (onloadListener) {
  7347. _iframe.contentDocument.location.reload()
  7348. } else {
  7349. _iframe.contentDocument.location.reload()
  7350. }
  7351. } else if (str == 'whiteboard') {
  7352. _iframe = _formdiv.querySelector('iframe')
  7353. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7354. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  7355. })
  7356. if (onloadListener) {
  7357. _iframe.contentDocument.location.reload()
  7358. } else {
  7359. _iframe.contentDocument.location.reload()
  7360. }
  7361. } else if (str == 'CocoPi') {
  7362. _iframe = _formdiv.querySelector('iframe')
  7363. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7364. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  7365. })
  7366. if (onloadListener) {
  7367. _iframe.contentDocument.location.reload()
  7368. } else {
  7369. _iframe.contentDocument.location.reload()
  7370. }
  7371. } else {
  7372. _iframe.onload = () => { };
  7373. }
  7374. _jie.onclick = async () => {
  7375. let text = ''
  7376. let type = '2'
  7377. if (aTool == 1) {
  7378. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  7379. type = '3'
  7380. } else if (aTool == 6) {
  7381. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  7382. type = '1'
  7383. } else if (aTool == 3) {
  7384. text = await U.MD.D.I.getEditorContent(_iframe);
  7385. type = '2'
  7386. } else if (aTool == 57) {
  7387. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  7388. type = '4'
  7389. }
  7390. _loading.style.display = 'flex'
  7391. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  7392. }
  7393. }
  7394. //U.MD.D.I.openClick(str);
  7395. //如果有任務欄信息
  7396. // if (_taskbar) {
  7397. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  7398. // }
  7399. }
  7400. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  7401. var xmlhttp;
  7402. var Mac, Sn, DeviceId
  7403. if (window.XMLHttpRequest) {
  7404. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7405. xmlhttp = new XMLHttpRequest();
  7406. }
  7407. else {
  7408. // IE6, IE5 瀏覽器執行代碼
  7409. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7410. }
  7411. xmlhttp.onreadystatechange = function () {
  7412. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7413. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7414. // resolve(res.value[0][0].text);
  7415. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7416. }
  7417. }
  7418. }
  7419. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7420. xmlhttp.send();
  7421. }
  7422. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  7423. var xmlhttp;
  7424. var Mac, Sn, DeviceId
  7425. if (window.XMLHttpRequest) {
  7426. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7427. xmlhttp = new XMLHttpRequest();
  7428. }
  7429. else {
  7430. // IE6, IE5 瀏覽器執行代碼
  7431. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7432. }
  7433. xmlhttp.onreadystatechange = function () {
  7434. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7435. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7436. // resolve(res.value[0][0].text);
  7437. if (type == '2') {
  7438. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7439. } else if (type == '3') {
  7440. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  7441. } else if (type == '4') {
  7442. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  7443. }
  7444. } else {
  7445. if (type == '2') {
  7446. iframe.contentWindow.editor.minder.importData('json', '')
  7447. } else if (type == '3') {
  7448. iframe.contentWindow.h.app.updateScene({ elements: [] })
  7449. } else if (type == '4') {
  7450. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7451. }
  7452. }
  7453. }
  7454. }
  7455. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7456. xmlhttp.send();
  7457. }
  7458. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  7459. var xmlhttp;
  7460. var Mac, Sn, DeviceId
  7461. if (window.XMLHttpRequest) {
  7462. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7463. xmlhttp = new XMLHttpRequest();
  7464. }
  7465. else {
  7466. // IE6, IE5 瀏覽器執行代碼
  7467. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7468. }
  7469. xmlhttp.onreadystatechange = function () {
  7470. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7471. if (xmlhttp.response) {
  7472. // resolve(res.value[0][0].text);
  7473. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  7474. // $(fileInput).val('');
  7475. // });
  7476. span.innerHTML = '上傳成功'
  7477. setTimeout(() => {
  7478. loading.style.display = 'none'
  7479. }, 1000);
  7480. }
  7481. }
  7482. }
  7483. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  7484. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  7485. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  7486. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  7487. // 設置請求頭,表示請求體的編碼格式
  7488. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  7489. // 設置請求體,使用url-encoded格式的數據
  7490. }
  7491. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  7492. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7493. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7494. _userinfo = US.userInfo, //登錄用戶信息
  7495. _userid = US.userInfo.userid //登錄用戶id
  7496. let _iframe;
  7497. let _cid = cid,
  7498. _stage = stage,
  7499. _task = task,
  7500. _tool = tool;
  7501. var _jie = $$("div", {
  7502. "style": {
  7503. "position": "absolute",
  7504. "bottom": "50px",
  7505. "right": "50px",
  7506. "zIndex": "9999",
  7507. "backgroundColor": "#2268bc",
  7508. "color": "#fff",
  7509. "padding": "12px 20px",
  7510. "cursor": "pointer",
  7511. "borderRadius": "4px",
  7512. },
  7513. "innerHTML": "提交作業"
  7514. })
  7515. let aTool = ''
  7516. let _loading = document.createElement('div')
  7517. _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;"
  7518. // _loading.id = "";
  7519. let _lchild = document.createElement('div')
  7520. let _limg = document.createElement('img')
  7521. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7522. _limg.style = "width: 26px;margin-right: 10px;"
  7523. _lchild.appendChild(_limg)
  7524. let _lspan = document.createElement('span')
  7525. _lspan.innerHTML = "上傳中..."
  7526. _lchild.appendChild(_lspan)
  7527. _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%);"
  7528. _loading.appendChild(_lchild)
  7529. var _box = $$('div', {
  7530. "style": {
  7531. "position": "relative",
  7532. "width": "100%",
  7533. "height": "100%",
  7534. },
  7535. })
  7536. _box.appendChild(_loading)
  7537. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool + _userid
  7538. switch (str) {
  7539. case "CocoPi":
  7540. aTool = 57;
  7541. _iframe = $$("iframe", {
  7542. "allowpaymentrequest": "allowpaymentrequest",
  7543. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7544. "webkitallowfullscreen": "",
  7545. "mozallowfullscreen": "",
  7546. "frameborder": "no",
  7547. "border": "0",
  7548. "scrolling ": "no",
  7549. "style": {
  7550. "cssText": "border:0;width:100%;height:100%"
  7551. },
  7552. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7553. })
  7554. _box.appendChild(_iframe);
  7555. _box.appendChild(_jie);
  7556. _formdiv = new U.UF.UI.form(
  7557. "CocoPi",
  7558. _box, {
  7559. "id": "CocoPi_Upload" + cid + stage + task + tool,
  7560. "style": {
  7561. "width": "90%",
  7562. "height": "90%",
  7563. "overflow": 'hidden'
  7564. },
  7565. "onresize": function () { }
  7566. }, {
  7567. closecallback: function () { }
  7568. }, {
  7569. "style": {
  7570. "height": "36px"
  7571. }
  7572. }).form; //創建窗體
  7573. _taskbar = {
  7574. "id": str + _formdiv.id,
  7575. "style": {
  7576. "backgroundImage": "url(/img/icon/cocopi.png)"
  7577. },
  7578. "name": "CocoPi",
  7579. "forms": _formdiv,
  7580. "click": function () {
  7581. U.MD.D.I.openApplication(str, obj, info);
  7582. }
  7583. }
  7584. break;
  7585. }
  7586. if (_iframe) {
  7587. if (str == 'CocoPi') {
  7588. _iframe = _formdiv.querySelector('iframe')
  7589. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7590. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7591. })
  7592. if (onloadListener) {
  7593. _iframe.contentDocument.location.reload()
  7594. } else {
  7595. _iframe.contentDocument.location.reload()
  7596. }
  7597. }
  7598. _jie.onclick = async () => {
  7599. let text = ''
  7600. if (aTool == 57) {
  7601. text = _iframe.contentWindow.getLoadXmlStr()
  7602. }
  7603. _loading.style.display = 'flex'
  7604. console.log(_loading);
  7605. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  7606. _loading.style.display = 'none'
  7607. let _div = document.createElement('div')
  7608. _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;"
  7609. let _inner = document.createElement('div')
  7610. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7611. _inner.innerHTML = "上傳成功"
  7612. _div.appendChild(_inner)
  7613. _iframe.contentWindow.window.document.body.appendChild(_div)
  7614. _div.onclick = () => {
  7615. _iframe.contentWindow.window.document.body.removeChild(_div)
  7616. }
  7617. setTimeout(() => {
  7618. _iframe.contentWindow.window.document.body.removeChild(_div)
  7619. }, 1000);
  7620. }, [], { "type": "POST", "withCredentials": true });
  7621. }
  7622. }
  7623. }
  7624. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  7625. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7626. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7627. _userid = student.userid, //登錄用戶id
  7628. _username = student.student //用戶名字
  7629. let _iframe;
  7630. let _cid = cid,
  7631. _stage = stage,
  7632. _task = task,
  7633. _tool = tool;
  7634. var _jie = $$("div", {
  7635. "style": {
  7636. "position": "absolute",
  7637. "bottom": "50px",
  7638. "right": "50px",
  7639. "zIndex": "9999",
  7640. "backgroundColor": "#2268bc",
  7641. "color": "#fff",
  7642. "padding": "12px 20px",
  7643. "cursor": "pointer",
  7644. "borderRadius": "4px",
  7645. },
  7646. "innerHTML": "提交作業"
  7647. })
  7648. let aTool = ''
  7649. let _loading = document.createElement('div')
  7650. _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;"
  7651. // _loading.id = "";
  7652. let _lchild = document.createElement('div')
  7653. let _limg = document.createElement('img')
  7654. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7655. _limg.style = "width: 26px;margin-right: 10px;"
  7656. _lchild.appendChild(_limg)
  7657. let _lspan = document.createElement('span')
  7658. _lspan.innerHTML = "上傳中..."
  7659. _lchild.appendChild(_lspan)
  7660. _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%);"
  7661. _loading.appendChild(_lchild)
  7662. var _box = $$('div', {
  7663. "style": {
  7664. "position": "relative",
  7665. "width": "100%",
  7666. "height": "100%",
  7667. },
  7668. })
  7669. _box.appendChild(_loading)
  7670. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool + _userid
  7671. switch (str) {
  7672. case "CocoPi":
  7673. aTool = 57;
  7674. _iframe = $$("iframe", {
  7675. "allowpaymentrequest": "allowpaymentrequest",
  7676. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7677. "webkitallowfullscreen": "",
  7678. "mozallowfullscreen": "",
  7679. "frameborder": "no",
  7680. "border": "0",
  7681. "scrolling ": "no",
  7682. "style": {
  7683. "cssText": "border:0;width:100%;height:100%"
  7684. },
  7685. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7686. })
  7687. _box.appendChild(_iframe);
  7688. _box.appendChild(_jie);
  7689. _formdiv = new U.UF.UI.form(
  7690. "CocoPi-" + _username,
  7691. _box, {
  7692. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  7693. "style": {
  7694. "width": "90%",
  7695. "height": "90%",
  7696. "overflow": 'hidden'
  7697. },
  7698. "onresize": function () { }
  7699. }, {
  7700. closecallback: function () { }
  7701. }, {
  7702. "style": {
  7703. "height": "36px"
  7704. }
  7705. }).form; //創建窗體
  7706. _taskbar = {
  7707. "id": str + _formdiv.id,
  7708. "style": {
  7709. "backgroundImage": "url(/img/icon/cocopi.png)"
  7710. },
  7711. "name": "CocoPi",
  7712. "forms": _formdiv,
  7713. "click": function () {
  7714. U.MD.D.I.openApplication(str, obj, info);
  7715. }
  7716. }
  7717. break;
  7718. }
  7719. if (_iframe) {
  7720. if (str == 'CocoPi') {
  7721. _iframe = _formdiv.querySelector('iframe')
  7722. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7723. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7724. })
  7725. if (onloadListener) {
  7726. _iframe.contentDocument.location.reload()
  7727. } else {
  7728. _iframe.contentDocument.location.reload()
  7729. }
  7730. }
  7731. _jie.onclick = async () => {
  7732. let text = ''
  7733. if (aTool == 57) {
  7734. text = _iframe.contentWindow.getLoadXmlStr()
  7735. }
  7736. _loading.style.display = 'flex'
  7737. console.log(_loading);
  7738. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  7739. _loading.style.display = 'none'
  7740. let _div = document.createElement('div')
  7741. _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;"
  7742. let _inner = document.createElement('div')
  7743. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7744. _inner.innerHTML = "上傳成功"
  7745. _div.appendChild(_inner)
  7746. _iframe.contentWindow.window.document.body.appendChild(_div)
  7747. _div.onclick = () => {
  7748. _iframe.contentWindow.window.document.body.removeChild(_div)
  7749. }
  7750. setTimeout(() => {
  7751. _iframe.contentWindow.window.document.body.removeChild(_div)
  7752. }, 1000);
  7753. }, [], { "type": "POST", "withCredentials": true });
  7754. }
  7755. }
  7756. }
  7757. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  7758. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  7759. if (res.value[0].length > 0) {
  7760. if (atool == 57) {
  7761. iframe.contentWindow.loadingXml(res.value[0][0].content)
  7762. }
  7763. } else {
  7764. if (atool == 57) {
  7765. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  7766. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7767. }
  7768. }
  7769. }, [], { "type": "POST", "withCredentials": true });
  7770. }