DeskTop.js 453 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815
  1. /*
  2. 此處為桌面系統啟動應用區域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面應用處理
  5. //判斷圖片是否在拖拽,如果是拖拽圖標的過程是不會打開圖片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教師桌面圖標的全局變量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  17. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  18. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  19. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  20. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  21. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  22. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  23. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  24. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  25. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  26. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  27. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  28. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  29. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  30. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  31. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  32. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  33. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  34. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  35. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  36. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  37. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  38. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  39. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  40. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  41. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  42. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  43. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  44. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  45. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  46. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  47. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  48. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  49. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  50. ];
  51. //極簡模式
  52. U.MD.D.I.easyDeskIcon = [
  53. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  55. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  56. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  57. // { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  58. ];
  59. //教師桌面圖標的全局變量
  60. U.MD.D.I.teacherDeskIcon2 = [
  61. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  62. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  63. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  64. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  65. // { "Name": "項目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  66. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  67. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  68. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  69. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  70. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  71. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  72. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  73. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  74. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  75. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  76. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  77. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  78. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  79. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  80. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  81. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  82. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  83. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  84. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  85. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  86. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  87. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  88. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  89. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  90. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  91. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  92. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  93. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  94. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  95. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  96. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  97. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  98. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  99. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  100. ];
  101. U.MD.D.I.studentDeskIcon = [
  102. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  103. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  104. // { "Name": "我的項目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  105. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  106. // { "Name": "我的評價", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  107. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  108. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  109. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  110. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  111. // { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  112. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  113. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  114. // { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  115. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  116. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  117. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  118. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  119. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  120. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  121. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  122. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  123. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  124. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  125. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  126. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  127. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  128. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  129. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  130. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  131. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  132. ];
  133. U.MD.D.I.studentDeskIcon2 = [
  134. // { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  135. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  136. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  137. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  138. ]
  139. U.MD.D.I.studentDeskIcon3 = [
  140. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  141. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  142. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. ]
  144. U.MD.D.I.schoolDeskIcon = [
  145. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  146. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  147. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  148. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  149. { "Name": "學習資料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  150. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  151. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  152. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  153. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  154. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  155. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  156. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  157. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  158. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  159. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  160. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  161. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  162. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  163. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  164. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  165. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  166. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  167. ];
  168. U.MD.D.I.orgDeskIcon = [
  169. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  170. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  171. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  172. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  173. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  174. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  175. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  176. ];
  177. U.MD.D.I.orgStemDeskIcon = [
  178. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  179. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  180. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  181. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  182. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  183. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  184. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  185. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  186. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  187. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  188. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  189. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  190. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  191. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  192. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  193. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  194. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  195. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  196. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  197. ];
  198. U.MD.D.I.szulsDeskIcon = [
  199. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  200. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  201. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  202. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  204. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  205. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  206. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  207. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  209. ];
  210. U.MD.D.I.hanDeskIcon = [
  211. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  212. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  213. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  214. { "Name": "漢字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  215. { "Name": "國學經典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  216. { "Name": "筆畫訓練", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  217. { "Name": "書法課堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  218. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  219. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  220. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  221. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  222. ];
  223. U.MD.D.I.GMteacherDeskIcon = [
  224. { "Name": "課程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  225. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "學生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  227. { "Name": "學生評價", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  228. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  229. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  230. { "Name": "班級管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  231. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  232. { "Name": "課程進展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  233. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  234. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  235. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  236. ];
  237. U.MD.D.I.GMstudentDeskIcon = [
  238. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  239. { "Name": "我的評價", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  240. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  241. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  242. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  243. ];
  244. //北師大
  245. U.MD.D.I.BSDNSteacherDeskIcon = [
  246. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  247. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  248. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  249. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  250. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  251. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  252. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  253. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  254. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  255. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  256. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  257. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  258. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  259. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  260. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  261. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  262. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  263. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  264. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  265. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  266. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  267. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  268. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  269. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  270. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  271. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  272. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  273. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  274. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  275. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  276. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  277. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  278. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  279. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  280. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  281. { "Name": "數字實驗室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  282. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  283. ];
  284. //松山湖
  285. U.MD.D.I.SONGteacherDeskIcon = [
  286. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  287. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  288. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  289. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  290. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  291. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  292. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  293. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  294. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  295. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  296. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  297. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  298. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  299. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  300. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  301. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  302. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  303. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  304. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  305. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  306. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  307. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  308. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  309. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  310. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  311. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  312. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  313. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  314. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  315. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  316. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  317. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  318. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  319. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  320. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  321. ];
  322. U.MD.D.I.tcStudentDeskIcon = [
  323. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  324. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  325. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  326. ];
  327. U.MD.D.I.tcTeacherDeskIcon = [
  328. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  329. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  330. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  331. // { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  332. // { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  333. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  334. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  335. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  338. ];
  339. U.MD.D.I.tcOrganizerDeskIcon = [
  340. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  341. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  342. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  343. { "Name": "師生項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  344. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  345. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  346. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  347. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  348. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  349. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  350. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  351. ];
  352. U.MD.D.I.szscStudentDeskIcon = [
  353. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  354. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  355. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  356. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  357. ];
  358. U.MD.D.I.szscTeacherDeskIcon = [
  359. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  360. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  361. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  362. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  363. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  364. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  365. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  366. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  367. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  368. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  369. ];
  370. U.MD.D.I.szscOrganizerDeskIcon = [
  371. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  372. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  373. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  374. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  375. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  376. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  377. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  378. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  379. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  380. ];
  381. U.MD.D.I.wankeTeacherDeskIcon = [ //1c3b9def-8fbe-11ed-b13d-005056b86db5
  382. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  383. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  384. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  385. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  386. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  387. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  388. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  389. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  390. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  391. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  392. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  393. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  394. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  395. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  396. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  397. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  398. ];
  399. U.MD.D.I.wankeAdminDeskIcon = [
  400. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  401. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  402. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  403. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  404. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  405. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  406. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  407. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  408. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  409. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  410. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  411. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  412. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  413. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  414. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  415. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  416. ];
  417. U.MD.D.I.lhsTeacherDeskIcon = [ //未來小學
  418. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  419. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  420. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  421. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  422. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  423. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  424. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  425. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  426. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  427. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  428. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  429. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  430. ];
  431. U.MD.D.I.lhsAdminDeskIcon = [ //未來小學admin
  432. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  433. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  434. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  435. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  436. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  437. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  438. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  439. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  440. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  441. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  442. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  443. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  444. ];
  445. //明德教師桌面圖標的全局變量
  446. U.MD.D.I.MingdeTeacherDeskIcon = [
  447. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  448. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  449. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  450. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  451. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  452. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  453. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  454. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  455. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  456. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  457. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  458. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  459. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  460. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  461. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  462. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  463. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  464. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  465. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  466. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  467. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  468. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  469. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  470. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  471. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  472. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  473. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  474. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  475. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  476. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  477. ];
  478. //97c4ee8b-d010-4042-986d-e9d3c217264f
  479. //教師桌面圖標的全局變量
  480. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  481. { "Name": "工作項目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  482. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  483. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  484. // { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  485. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  486. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  487. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  488. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  489. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  490. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  491. ];
  492. //福田
  493. U.MD.D.I.futianTeacherDeskIcon = [
  494. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  495. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  496. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  497. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  498. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  499. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  500. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  501. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  502. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  503. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  504. ];
  505. //福田
  506. U.MD.D.I.futianAdminDeskIcon = [
  507. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  508. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  509. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  510. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  511. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  512. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  513. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  514. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  515. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  516. ];
  517. //lotech
  518. U.MD.D.I.lotechTeacherDeskIcon = [
  519. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  520. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  521. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  522. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  523. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  524. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  525. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  526. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  527. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  528. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  529. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  530. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  531. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  532. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  533. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  534. ];
  535. //龍華中心小學教師桌面圖標的全局變量
  536. U.MD.D.I.longhuateacherDeskIcon = [
  537. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  538. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  539. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  540. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  541. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  542. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  543. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  544. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  545. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  546. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  547. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  548. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  549. ];
  550. //教科院實小教師桌面圖標的全局變量
  551. U.MD.D.I.siesteacherDeskIcon = [
  552. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  553. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  554. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  555. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  556. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  557. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  558. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  559. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  560. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  561. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  562. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  563. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  564. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  565. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  566. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  567. ];
  568. //教科院實小教師桌面圖標的全局變量
  569. U.MD.D.I.siesStudentDeskIcon = [
  570. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  571. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  572. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  573. ];
  574. //福田
  575. U.MD.D.I.gdjgTeacherDeskIcon = [
  576. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  577. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  578. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  579. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  580. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  581. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  582. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  583. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  584. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  585. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  586. ];
  587. //gdjg
  588. U.MD.D.I.gdjgAdminDeskIcon = [
  589. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  590. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  591. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  592. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  593. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  594. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  595. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  596. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  597. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  598. ];
  599. //hk
  600. U.MD.D.I.hkteacherDeskIcon = [
  601. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  602. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  603. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  604. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  605. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  606. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  607. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  608. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  609. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  610. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  611. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  612. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  613. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  614. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  615. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  616. { "Name": "协同建构", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  617. ];
  618. //hk
  619. U.MD.D.I.hkStudentDeskIcon = [
  620. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  621. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  622. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  623. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  624. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  625. ];
  626. //香海正覺蓮社佛教正覺中學
  627. U.MD.D.I.hkZJLSteacherDeskIcon = [
  628. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  629. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  630. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  631. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  632. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  633. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  634. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  635. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  636. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  637. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  638. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  639. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  640. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  641. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  642. ];
  643. //香海正覺蓮社佛教正覺中學
  644. U.MD.D.I.hkZJLSStudentDeskIcon = [
  645. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  646. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  647. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  648. ];
  649. //雲海
  650. U.MD.D.I.yunhaiTeacherDeskIcon = [
  651. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  652. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  653. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  654. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  655. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  656. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  657. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  658. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  659. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  660. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  661. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  662. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  663. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  664. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  665. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  666. ];
  667. //福田
  668. U.MD.D.I.heyuanTeacherDeskIcon = [
  669. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  670. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  671. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  672. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  673. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  674. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  675. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  676. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  677. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  678. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  679. ];
  680. //福田
  681. U.MD.D.I.heyuanAdminDeskIcon = [
  682. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  683. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  684. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  685. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  686. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  687. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  688. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  689. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  690. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  691. ];
  692. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  693. U.MD.D.I.szherTeacherDeskIcon = [
  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": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  702. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  703. ];
  704. //dsei
  705. U.MD.D.I.dseiTeacherDeskIcon = [
  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": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  709. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  710. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  711. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  712. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  713. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  714. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  715. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  716. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  717. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  718. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  719. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  720. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  721. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  722. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  723. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  724. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  725. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  726. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  727. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  728. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  729. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  730. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  731. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  732. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  733. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  734. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  735. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  736. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  737. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  738. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  739. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  740. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  741. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  742. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  743. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  744. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  745. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  746. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  747. ];
  748. //dsei
  749. U.MD.D.I.dseiAdminDeskIcon = [
  750. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  751. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  752. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  753. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  754. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  755. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  756. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  757. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  758. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  759. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  760. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  761. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  762. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  763. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  764. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  765. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  766. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  767. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  768. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  769. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  770. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  771. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  772. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  773. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  774. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  775. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  776. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  777. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  778. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  779. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  780. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  781. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  782. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  783. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  784. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  785. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  786. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  787. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  788. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  789. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  790. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  791. ];
  792. //dsei
  793. U.MD.D.I.dseiStudentDeskIcon = [
  794. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  795. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  796. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  797. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  798. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  799. ];
  800. //未來教育基地
  801. U.MD.D.I.szjkyTeacherDeskIcon = [
  802. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  803. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  804. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  805. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  806. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  807. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  808. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  809. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  810. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  811. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  812. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  813. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  814. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  815. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  816. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  817. ];
  818. //未來教育基地
  819. U.MD.D.I.szjkyAdminDeskIcon = [
  820. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  821. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  822. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  823. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  824. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  825. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  826. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  827. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  828. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  829. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  830. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  831. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  832. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  833. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  834. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  835. ];
  836. //未來教育基地
  837. U.MD.D.I.szjkyStudentDeskIcon = [
  838. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  839. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  840. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  841. ];
  842. //成華教育局
  843. U.MD.D.I.chjyjTeacherDeskIcon = [
  844. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  845. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  846. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  847. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  848. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  849. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  850. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  851. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  852. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  853. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  854. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  855. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  856. ];
  857. //成華教育局chjyj
  858. U.MD.D.I.chjyjAdminDeskIcon = [
  859. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  860. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  861. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  862. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  863. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  864. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  865. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  866. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  867. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  868. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  869. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  870. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  871. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  872. ];
  873. //成華教育局chjyj
  874. U.MD.D.I.chjyjStudentDeskIcon = [
  875. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  876. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  877. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  878. ];
  879. //tpc
  880. U.MD.D.I.tpcStudentDeskIcon = [
  881. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  882. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  883. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  884. ];
  885. //tpc
  886. U.MD.D.I.tpcTeacherDeskIcon = [
  887. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  888. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  889. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  890. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  891. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  892. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  893. ];
  894. //tpc
  895. U.MD.D.I.tpcAdminDeskIcon = [
  896. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  897. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  898. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  899. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  900. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  901. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  902. ];
  903. //#region 桌面初始化a
  904. /**
  905. * 初始化桌面的起始函數
  906. *
  907. */
  908. U.MD.D.I.init = function () {
  909. if ($("#U_MD_D_K")[0]) {
  910. //初始化桌面圖標
  911. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  912. // var clickUrl = ':12588/requestIp.php';
  913. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  914. // U.MD.D.I.Ip = data;
  915. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  916. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  917. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  918. // })
  919. // //初始化任務欄,因為是靜態的,所以直接改變樣式即可.
  920. // })
  921. }
  922. }
  923. /**
  924. * 模式切換
  925. *
  926. */
  927. U.MD.D.I.ModeCheck = function (type) {
  928. if (US.Config.type == type) {
  929. return
  930. }
  931. US.Config.type = type
  932. $('.U_PBL_Check .active')[0].className = ''
  933. if (type == 1) {
  934. $('.U_PBL_Check div')[0].className = 'active'
  935. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  936. } else {
  937. $('.U_PBL_Check div')[1].className = 'active'
  938. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  939. }
  940. //初始化桌面圖標
  941. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  942. if (type == 2) {
  943. U.MD.D.I.openApplication("project")
  944. }
  945. }
  946. /**
  947. * 隱藏任務欄
  948. *
  949. * @param {element} 桌面元素
  950. */
  951. U.MD.D.I.hiddenTaskbar = function (el) {
  952. //任務欄位置變小
  953. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  954. //桌面的位置變大
  955. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  956. }
  957. /**
  958. * 隱藏任務欄
  959. *
  960. * @param {element} 桌面元素
  961. */
  962. U.MD.D.I.hiddenTaskbarout = function (el) {
  963. //任務欄位置變小
  964. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  965. //任務欄位置變化
  966. U.selectEl(el).css({ "bottom": "-60px" });
  967. //桌面的位置變大
  968. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  969. }
  970. }
  971. /**
  972. * 初始化打印桌面圖標
  973. *
  974. * @param {element} 桌面元素
  975. */
  976. U.MD.D.I.initDesktopIcons = function (el, type) {
  977. var i, //用於循環
  978. _content, //桌面圖標元素
  979. _iconcontent, //桌面圖標元素
  980. _frag = $$("frag"), //定義一個碎片元素
  981. _type = US.userInfo.type,
  982. _org = US.userInfo.org,
  983. _oid = US.userInfo.organizeid,
  984. _role = US.userInfo.role,
  985. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //獲取教師端桌面圖標
  986. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //極簡模式桌面圖標
  987. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //獲取教師端桌面圖標
  988. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //獲取學生端桌面圖標
  989. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //獲取學生端桌面圖標
  990. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //獲取學生端桌面圖標
  991. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //獲取組織桌面圖標
  992. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  993. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  994. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  995. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //獲取測試學校桌面圖標
  996. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon, //獲取北師大
  997. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon, //獲取周佳名工作室
  998. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon, //獲取松山湖
  999. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon, //獲取萬科雙語
  1000. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon, //獲取萬科雙語
  1001. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon, //獲取萬科雙語
  1002. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon, //獲取未來小學
  1003. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon, //獲取未來小學
  1004. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //獲取光明學校桌面圖標
  1005. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //獲取光明學校桌面圖標
  1006. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon, //騰訊學生
  1007. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon, //騰訊學生
  1008. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon, //福田
  1009. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon, //福田
  1010. _szjkyTeacherDeskIconInfo = U.MD.D.I.szjkyTeacherDeskIcon, //未來教育基地
  1011. _szjkyAdminDeskIconInfo = U.MD.D.I.szjkyAdminDeskIcon, //未來教育基地
  1012. _szjkyStudentDeskIconInfo = U.MD.D.I.szjkyStudentDeskIcon, //未來教育基地
  1013. _chjyjTeacherDeskIconInfo = U.MD.D.I.chjyjTeacherDeskIcon, //成華教育局
  1014. _chjyjAdminDeskIconInfo = U.MD.D.I.chjyjAdminDeskIcon, //成華教育局
  1015. _chjyjStudentDeskIconInfo = U.MD.D.I.chjyjStudentDeskIcon, //成華教育局
  1016. _dseiTeacherDeskIconInfo = U.MD.D.I.dseiTeacherDeskIcon, //dsei
  1017. _dseiAdminDeskIconInfo = U.MD.D.I.dseiAdminDeskIcon, //dsei
  1018. _dseiStudentDeskIconInfo = U.MD.D.I.dseiStudentDeskIcon, //dsei
  1019. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon, //福田
  1020. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon, //福田
  1021. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon, //szher
  1022. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon, //
  1023. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon, //
  1024. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon, //lotech
  1025. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon, //龍華中心
  1026. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon, //sies
  1027. _siesStudentDeskIconInfo = U.MD.D.I.siesStudentDeskIcon, //sies
  1028. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon, //騰訊學生
  1029. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon, //hk
  1030. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon, //hk
  1031. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon, //hk
  1032. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon, //hk
  1033. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon, //雲海
  1034. _tpcStudentDeskIconInfo= U.MD.D.I.tpcStudentDeskIcon,
  1035. _tpcTeacherDeskIconInfo= U.MD.D.I.tpcTeacherDeskIcon,
  1036. _tpcOrganizerDeskIconInfo= U.MD.D.I.tpcAdminDeskIcon,
  1037. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon, //網絡夏令營
  1038. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon, //網絡夏令營
  1039. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon; //網絡夏令營
  1040. 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'];
  1041. 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'];
  1042. //清楚桌面圖標
  1043. el.innerHTML = "";
  1044. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  1045. _teacherDesktopIconInfo.push(
  1046. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1047. { "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)" } },
  1048. )
  1049. _easyDesktopIconInfo.push({ "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } })
  1050. }
  1051. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  1052. _teacherDesktopIconInfo.push(
  1053. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1054. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  1055. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1056. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1057. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  1058. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  1059. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1060. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1061. { "Name": "評測管理", "Url": "testTeacher", "style": { "cssText": "background-image:url(/img/icon/testTeacher.png)" } },
  1062. { "Name": "評測中心", "Url": "testStudent", "style": { "cssText": "background-image:url(/img/icon/testStudent.png)" } },
  1063. )
  1064. }
  1065. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5') {
  1066. _teacherDesktopIconInfo.push(
  1067. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1068. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1069. )
  1070. _studentDesktopIconInfo.push(
  1071. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1072. )
  1073. }
  1074. if (_oid == 'cf8841e8-c7c0-11ed-9546-005056b86db5' || _oid == "d67940a5-510c-40ea-9c9a-2631ab03013a") {
  1075. _teacherDesktopIconInfo.push(
  1076. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1077. )
  1078. }
  1079. if (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
  1080. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  1081. if (el.Name == '項目管理') {
  1082. el.Name = 'PBL項目'
  1083. }
  1084. return el
  1085. })
  1086. }
  1087. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  1088. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  1089. return el.Name != '魔盒識字' && el.Name != '24點'
  1090. })
  1091. }
  1092. 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) {
  1093. _studentDesktopIconInfo.push({ "Name": "我的評價", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },)
  1094. }
  1095. //循環創建桌面圖標
  1096. if (type == 1) {
  1097. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  1098. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1099. _content = $$("div", {
  1100. className: "U_MD_D_KO",
  1101. "onmousedown": U.UF.C.closure(function (obj) {
  1102. //防止拖動圖標即打開了桌面應用
  1103. U.MD.D.click(this, obj);
  1104. }, [_studentDesktopIconInfo[i]]),
  1105. "onclick": U.UF.C.closure(function (obj) {
  1106. //防止拖動圖標即打開了桌面應用
  1107. U.MD.D.click(this, obj);
  1108. }, [_studentDesktopIconInfo[i]])
  1109. }, _frag); //
  1110. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1111. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1112. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1113. }
  1114. } else if (_type == 2 && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1115. for (i = 0; i < _hkZJLSStudentDeskIconInfo.length; i++) {
  1116. _content = $$("div", {
  1117. className: "U_MD_D_KO",
  1118. "onmousedown": U.UF.C.closure(function (obj) {
  1119. //防止拖動圖標即打開了桌面應用
  1120. U.MD.D.click(this, obj);
  1121. }, [_hkZJLSStudentDeskIconInfo[i]]),
  1122. "onclick": U.UF.C.closure(function (obj) {
  1123. //防止拖動圖標即打開了桌面應用
  1124. U.MD.D.click(this, obj);
  1125. }, [_hkZJLSStudentDeskIconInfo[i]])
  1126. }, _frag); //
  1127. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1128. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  1129. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  1130. } //
  1131. } else if (_type == 2 && (_org == "a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956")) {
  1132. for (i = 0; i < _tpcStudentDeskIconInfo.length; i++) {
  1133. _content = $$("div", {
  1134. className: "U_MD_D_KO",
  1135. "onmousedown": U.UF.C.closure(function (obj) {
  1136. //防止拖動圖標即打開了桌面應用
  1137. U.MD.D.click(this, obj);
  1138. }, [_tpcStudentDeskIconInfo[i]]),
  1139. "onclick": U.UF.C.closure(function (obj) {
  1140. //防止拖動圖標即打開了桌面應用
  1141. U.MD.D.click(this, obj);
  1142. }, [_tpcStudentDeskIconInfo[i]])
  1143. }, _frag); //
  1144. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1145. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tpcStudentDeskIconInfo[i].style }, _iconcontent);
  1146. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tpcStudentDeskIconInfo[i].Name }, _iconcontent);
  1147. } //
  1148. } else if (_type == 2 && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5")) {
  1149. for (i = 0; i < _chjyjStudentDeskIconInfo.length; i++) {
  1150. _content = $$("div", {
  1151. className: "U_MD_D_KO",
  1152. "onmousedown": U.UF.C.closure(function (obj) {
  1153. //防止拖動圖標即打開了桌面應用
  1154. U.MD.D.click(this, obj);
  1155. }, [_chjyjStudentDeskIconInfo[i]]),
  1156. "onclick": U.UF.C.closure(function (obj) {
  1157. //防止拖動圖標即打開了桌面應用
  1158. U.MD.D.click(this, obj);
  1159. }, [_chjyjStudentDeskIconInfo[i]])
  1160. }, _frag); //
  1161. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1162. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjStudentDeskIconInfo[i].style }, _iconcontent);
  1163. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjStudentDeskIconInfo[i].Name }, _iconcontent);
  1164. }
  1165. } else if (_type == 2 && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5")) {
  1166. for (i = 0; i < _szjkyStudentDeskIconInfo.length; i++) {
  1167. _content = $$("div", {
  1168. className: "U_MD_D_KO",
  1169. "onmousedown": U.UF.C.closure(function (obj) {
  1170. //防止拖動圖標即打開了桌面應用
  1171. U.MD.D.click(this, obj);
  1172. }, [_szjkyStudentDeskIconInfo[i]]),
  1173. "onclick": U.UF.C.closure(function (obj) {
  1174. //防止拖動圖標即打開了桌面應用
  1175. U.MD.D.click(this, obj);
  1176. }, [_szjkyStudentDeskIconInfo[i]])
  1177. }, _frag); //
  1178. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1179. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyStudentDeskIconInfo[i].style }, _iconcontent);
  1180. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyStudentDeskIconInfo[i].Name }, _iconcontent);
  1181. }
  1182. } else if (_type == 2 && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5")) {
  1183. for (i = 0; i < _dseiStudentDeskIconInfo.length; i++) {
  1184. _content = $$("div", {
  1185. className: "U_MD_D_KO",
  1186. "onmousedown": U.UF.C.closure(function (obj) {
  1187. //防止拖動圖標即打開了桌面應用
  1188. U.MD.D.click(this, obj);
  1189. }, [_dseiStudentDeskIconInfo[i]]),
  1190. "onclick": U.UF.C.closure(function (obj) {
  1191. //防止拖動圖標即打開了桌面應用
  1192. U.MD.D.click(this, obj);
  1193. }, [_dseiStudentDeskIconInfo[i]])
  1194. }, _frag); //
  1195. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1196. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiStudentDeskIconInfo[i].style }, _iconcontent);
  1197. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiStudentDeskIconInfo[i].Name }, _iconcontent);
  1198. }
  1199. } else if (_type == 2 && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1200. for (i = 0; i < _siesStudentDeskIconInfo.length; i++) {
  1201. _content = $$("div", {
  1202. className: "U_MD_D_KO",
  1203. "onmousedown": U.UF.C.closure(function (obj) {
  1204. //防止拖動圖標即打開了桌面應用
  1205. U.MD.D.click(this, obj);
  1206. }, [_siesStudentDeskIconInfo[i]]),
  1207. "onclick": U.UF.C.closure(function (obj) {
  1208. //防止拖動圖標即打開了桌面應用
  1209. U.MD.D.click(this, obj);
  1210. }, [_siesStudentDeskIconInfo[i]])
  1211. }, _frag); //
  1212. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1213. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesStudentDeskIconInfo[i].style }, _iconcontent);
  1214. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesStudentDeskIconInfo[i].Name }, _iconcontent);
  1215. }
  1216. } else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1217. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  1218. _content = $$("div", {
  1219. className: "U_MD_D_KO",
  1220. "onmousedown": U.UF.C.closure(function (obj) {
  1221. //防止拖動圖標即打開了桌面應用
  1222. U.MD.D.click(this, obj);
  1223. }, [_hkStudentDeskIconInfo[i]]),
  1224. "onclick": U.UF.C.closure(function (obj) {
  1225. //防止拖動圖標即打開了桌面應用
  1226. U.MD.D.click(this, obj);
  1227. }, [_hkStudentDeskIconInfo[i]])
  1228. }, _frag); //
  1229. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1230. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  1231. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  1232. }
  1233. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  1234. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1235. _content = $$("div", {
  1236. className: "U_MD_D_KO",
  1237. "onmousedown": U.UF.C.closure(function (obj) {
  1238. //防止拖動圖標即打開了桌面應用
  1239. U.MD.D.click(this, obj);
  1240. }, [_studentDesktopIconInfo[i]]),
  1241. "onclick": U.UF.C.closure(function (obj) {
  1242. //防止拖動圖標即打開了桌面應用
  1243. U.MD.D.click(this, obj);
  1244. }, [_studentDesktopIconInfo[i]])
  1245. }, _frag); //
  1246. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1247. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1248. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1249. }
  1250. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  1251. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  1252. _content = $$("div", {
  1253. className: "U_MD_D_KO",
  1254. "onmousedown": U.UF.C.closure(function (obj) {
  1255. //防止拖動圖標即打開了桌面應用
  1256. U.MD.D.click(this, obj);
  1257. }, [_tcStudentDeskIconInfo[i]]),
  1258. "onclick": U.UF.C.closure(function (obj) {
  1259. //防止拖動圖標即打開了桌面應用
  1260. U.MD.D.click(this, obj);
  1261. }, [_tcStudentDeskIconInfo[i]])
  1262. }, _frag); //
  1263. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1264. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  1265. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  1266. }
  1267. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  1268. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  1269. _content = $$("div", {
  1270. className: "U_MD_D_KO",
  1271. "onmousedown": U.UF.C.closure(function (obj) {
  1272. //防止拖動圖標即打開了桌面應用
  1273. U.MD.D.click(this, obj);
  1274. }, [_szscStudentDeskIconInfo[i]]),
  1275. "onclick": U.UF.C.closure(function (obj) {
  1276. //防止拖動圖標即打開了桌面應用
  1277. U.MD.D.click(this, obj);
  1278. }, [_szscStudentDeskIconInfo[i]])
  1279. }, _frag); //
  1280. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1281. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  1282. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  1283. }
  1284. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  1285. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  1286. _content = $$("div", {
  1287. className: "U_MD_D_KO",
  1288. "onmousedown": U.UF.C.closure(function (obj) {
  1289. //防止拖動圖標即打開了桌面應用
  1290. U.MD.D.click(this, obj);
  1291. }, [_studentDesktopIconInfo3[i]]),
  1292. "onclick": U.UF.C.closure(function (obj) {
  1293. //防止拖動圖標即打開了桌面應用
  1294. U.MD.D.click(this, obj);
  1295. }, [_studentDesktopIconInfo3[i]])
  1296. }, _frag); //
  1297. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1298. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  1299. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  1300. }
  1301. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  1302. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  1303. _content = $$("div", {
  1304. className: "U_MD_D_KO",
  1305. "onmousedown": U.UF.C.closure(function (obj) {
  1306. //防止拖動圖標即打開了桌面應用
  1307. U.MD.D.click(this, obj);
  1308. }, [_studentDesktopIconInfo2[i]]),
  1309. "onclick": U.UF.C.closure(function (obj) {
  1310. //防止拖動圖標即打開了桌面應用
  1311. U.MD.D.click(this, obj);
  1312. }, [_studentDesktopIconInfo2[i]])
  1313. }, _frag); //
  1314. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1315. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  1316. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  1317. }
  1318. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  1319. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  1320. _content = $$("div", {
  1321. className: "U_MD_D_KO",
  1322. "onmousedown": U.UF.C.closure(function (obj) {
  1323. //防止拖動圖標即打開了桌面應用
  1324. U.MD.D.click(this, obj);
  1325. }, [_wanketeacherDesktopIconInfo[i]]),
  1326. "onclick": U.UF.C.closure(function (obj) {
  1327. //防止拖動圖標即打開了桌面應用
  1328. U.MD.D.click(this, obj);
  1329. }, [_wanketeacherDesktopIconInfo[i]])
  1330. }, _frag); //
  1331. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1332. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  1333. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  1334. }
  1335. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1336. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  1337. _content = $$("div", {
  1338. className: "U_MD_D_KO",
  1339. "onmousedown": U.UF.C.closure(function (obj) {
  1340. //防止拖動圖標即打開了桌面應用
  1341. U.MD.D.click(this, obj);
  1342. }, [_wankeAdminDesktopIconInfo[i]]),
  1343. "onclick": U.UF.C.closure(function (obj) {
  1344. //防止拖動圖標即打開了桌面應用
  1345. U.MD.D.click(this, obj);
  1346. }, [_wankeAdminDesktopIconInfo[i]])
  1347. }, _frag); //
  1348. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1349. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1350. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1351. }
  1352. } else if ((_type == 1 || _type == 4) && _org == "a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956" && _role == 1) {
  1353. for (i = 0; i < _tpcOrganizerDeskIconInfo.length; i++) {
  1354. _content = $$("div", {
  1355. className: "U_MD_D_KO",
  1356. "onmousedown": U.UF.C.closure(function (obj) {
  1357. //防止拖動圖標即打開了桌面應用
  1358. U.MD.D.click(this, obj);
  1359. }, [_tpcOrganizerDeskIconInfo[i]]),
  1360. "onclick": U.UF.C.closure(function (obj) {
  1361. //防止拖動圖標即打開了桌面應用
  1362. U.MD.D.click(this, obj);
  1363. }, [_tpcOrganizerDeskIconInfo[i]])
  1364. }, _frag); //
  1365. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1366. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tpcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1367. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tpcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1368. }
  1369. } else if ((_type == 1 || _type == 4) && _org == "a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956" && _role == 0) {
  1370. for (i = 0; i < _tpcTeacherDeskIconInfo.length; i++) {
  1371. _content = $$("div", {
  1372. className: "U_MD_D_KO",
  1373. "onmousedown": U.UF.C.closure(function (obj) {
  1374. //防止拖動圖標即打開了桌面應用
  1375. U.MD.D.click(this, obj);
  1376. }, [_tpcTeacherDeskIconInfo[i]]),
  1377. "onclick": U.UF.C.closure(function (obj) {
  1378. //防止拖動圖標即打開了桌面應用
  1379. U.MD.D.click(this, obj);
  1380. }, [_tpcTeacherDeskIconInfo[i]])
  1381. }, _frag); //
  1382. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1383. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tpcTeacherDeskIconInfo[i].style }, _iconcontent);
  1384. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tpcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1385. }
  1386. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1387. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  1388. _content = $$("div", {
  1389. className: "U_MD_D_KO",
  1390. "onmousedown": U.UF.C.closure(function (obj) {
  1391. //防止拖動圖標即打開了桌面應用
  1392. U.MD.D.click(this, obj);
  1393. }, [_teacherDesktopIconInfo2[i]]),
  1394. "onclick": U.UF.C.closure(function (obj) {
  1395. //防止拖動圖標即打開了桌面應用
  1396. U.MD.D.click(this, obj);
  1397. }, [_teacherDesktopIconInfo2[i]])
  1398. }, _frag); //
  1399. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1400. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1401. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1402. }
  1403. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1404. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  1405. _content = $$("div", {
  1406. className: "U_MD_D_KO",
  1407. "onmousedown": U.UF.C.closure(function (obj) {
  1408. //防止拖動圖標即打開了桌面應用
  1409. U.MD.D.click(this, obj);
  1410. }, [_lotechTeacherDeskIconInfo[i]]),
  1411. "onclick": U.UF.C.closure(function (obj) {
  1412. //防止拖動圖標即打開了桌面應用
  1413. U.MD.D.click(this, obj);
  1414. }, [_lotechTeacherDeskIconInfo[i]])
  1415. }, _frag); //
  1416. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1417. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1418. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1419. }//
  1420. } else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1421. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1422. _content = $$("div", {
  1423. className: "U_MD_D_KO",
  1424. "onmousedown": U.UF.C.closure(function (obj) {
  1425. //防止拖動圖標即打開了桌面應用
  1426. U.MD.D.click(this, obj);
  1427. }, [_siesTeacherDeskIconInfo[i]]),
  1428. "onclick": U.UF.C.closure(function (obj) {
  1429. //防止拖動圖標即打開了桌面應用
  1430. U.MD.D.click(this, obj);
  1431. }, [_siesTeacherDeskIconInfo[i]])
  1432. }, _frag); //
  1433. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1434. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1435. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1436. }
  1437. } else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1438. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1439. _content = $$("div", {
  1440. className: "U_MD_D_KO",
  1441. "onmousedown": U.UF.C.closure(function (obj) {
  1442. //防止拖動圖標即打開了桌面應用
  1443. U.MD.D.click(this, obj);
  1444. }, [_longhuaTeacherDeskIconInfo[i]]),
  1445. "onclick": U.UF.C.closure(function (obj) {
  1446. //防止拖動圖標即打開了桌面應用
  1447. U.MD.D.click(this, obj);
  1448. }, [_longhuaTeacherDeskIconInfo[i]])
  1449. }, _frag); //
  1450. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1451. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1452. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1453. }
  1454. } else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1455. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1456. _content = $$("div", {
  1457. className: "U_MD_D_KO",
  1458. "onmousedown": U.UF.C.closure(function (obj) {
  1459. //防止拖動圖標即打開了桌面應用
  1460. U.MD.D.click(this, obj);
  1461. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1462. "onclick": U.UF.C.closure(function (obj) {
  1463. //防止拖動圖標即打開了桌面應用
  1464. U.MD.D.click(this, obj);
  1465. }, [_yunhaiTeacherDeskIconInfo[i]])
  1466. }, _frag); //
  1467. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1468. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1469. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1470. } //_hkStudentDeskIconInfo
  1471. } else if ((_type == 1 || _type == 4) && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1472. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.length; i++) {
  1473. _content = $$("div", {
  1474. className: "U_MD_D_KO",
  1475. "onmousedown": U.UF.C.closure(function (obj) {
  1476. //防止拖動圖標即打開了桌面應用
  1477. U.MD.D.click(this, obj);
  1478. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1479. "onclick": U.UF.C.closure(function (obj) {
  1480. //防止拖動圖標即打開了桌面應用
  1481. U.MD.D.click(this, obj);
  1482. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1483. }, _frag); //
  1484. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1485. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1486. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1487. }
  1488. } else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1489. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1490. _content = $$("div", {
  1491. className: "U_MD_D_KO",
  1492. "onmousedown": U.UF.C.closure(function (obj) {
  1493. //防止拖動圖標即打開了桌面應用
  1494. U.MD.D.click(this, obj);
  1495. }, [_hkTeacherDeskIconInfo[i]]),
  1496. "onclick": U.UF.C.closure(function (obj) {
  1497. //防止拖動圖標即打開了桌面應用
  1498. U.MD.D.click(this, obj);
  1499. }, [_hkTeacherDeskIconInfo[i]])
  1500. }, _frag); //
  1501. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1502. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1503. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1504. }
  1505. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1506. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1507. _content = $$("div", {
  1508. className: "U_MD_D_KO",
  1509. "onmousedown": U.UF.C.closure(function (obj) {
  1510. //防止拖動圖標即打開了桌面應用
  1511. U.MD.D.click(this, obj);
  1512. }, [_gdjgAdminDeskIconInfo[i]]),
  1513. "onclick": U.UF.C.closure(function (obj) {
  1514. //防止拖動圖標即打開了桌面應用
  1515. U.MD.D.click(this, obj);
  1516. }, [_gdjgAdminDeskIconInfo[i]])
  1517. }, _frag); //
  1518. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1519. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1520. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1521. }
  1522. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1523. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1524. _content = $$("div", {
  1525. className: "U_MD_D_KO",
  1526. "onmousedown": U.UF.C.closure(function (obj) {
  1527. //防止拖動圖標即打開了桌面應用
  1528. U.MD.D.click(this, obj);
  1529. }, [_gdjgTeacherDeskIconInfo[i]]),
  1530. "onclick": U.UF.C.closure(function (obj) {
  1531. //防止拖動圖標即打開了桌面應用
  1532. U.MD.D.click(this, obj);
  1533. }, [_gdjgTeacherDeskIconInfo[i]])
  1534. }, _frag); //
  1535. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1536. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1537. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1538. }
  1539. } else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1540. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1541. _content = $$("div", {
  1542. className: "U_MD_D_KO",
  1543. "onmousedown": U.UF.C.closure(function (obj) {
  1544. //防止拖動圖標即打開了桌面應用
  1545. U.MD.D.click(this, obj);
  1546. }, [_szherTeacherDeskIconInfo[i]]),
  1547. "onclick": U.UF.C.closure(function (obj) {
  1548. //防止拖動圖標即打開了桌面應用
  1549. U.MD.D.click(this, obj);
  1550. }, [_szherTeacherDeskIconInfo[i]])
  1551. }, _frag); //
  1552. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1553. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1554. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1555. }
  1556. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1557. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1558. _content = $$("div", {
  1559. className: "U_MD_D_KO",
  1560. "onmousedown": U.UF.C.closure(function (obj) {
  1561. //防止拖動圖標即打開了桌面應用
  1562. U.MD.D.click(this, obj);
  1563. }, [_heyuannAdminDeskIconInfo[i]]),
  1564. "onclick": U.UF.C.closure(function (obj) {
  1565. //防止拖動圖標即打開了桌面應用
  1566. U.MD.D.click(this, obj);
  1567. }, [_heyuannAdminDeskIconInfo[i]])
  1568. }, _frag); //
  1569. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1570. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1571. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1572. }
  1573. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1574. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1575. _content = $$("div", {
  1576. className: "U_MD_D_KO",
  1577. "onmousedown": U.UF.C.closure(function (obj) {
  1578. //防止拖動圖標即打開了桌面應用
  1579. U.MD.D.click(this, obj);
  1580. }, [_heyuanTeacherDeskIconInfo[i]]),
  1581. "onclick": U.UF.C.closure(function (obj) {
  1582. //防止拖動圖標即打開了桌面應用
  1583. U.MD.D.click(this, obj);
  1584. }, [_heyuanTeacherDeskIconInfo[i]])
  1585. }, _frag); //
  1586. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1587. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1588. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1589. } //
  1590. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 1) {
  1591. for (i = 0; i < _dseiAdminDeskIconInfo.length; i++) {
  1592. _content = $$("div", {
  1593. className: "U_MD_D_KO",
  1594. "onmousedown": U.UF.C.closure(function (obj) {
  1595. //防止拖動圖標即打開了桌面應用
  1596. U.MD.D.click(this, obj);
  1597. }, [_dseiAdminDeskIconInfo[i]]),
  1598. "onclick": U.UF.C.closure(function (obj) {
  1599. //防止拖動圖標即打開了桌面應用
  1600. U.MD.D.click(this, obj);
  1601. }, [_dseiAdminDeskIconInfo[i]])
  1602. }, _frag); //
  1603. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1604. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiAdminDeskIconInfo[i].style }, _iconcontent);
  1605. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiAdminDeskIconInfo[i].Name }, _iconcontent);
  1606. }
  1607. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 0) {
  1608. for (i = 0; i < _dseiTeacherDeskIconInfo.length; i++) {
  1609. _content = $$("div", {
  1610. className: "U_MD_D_KO",
  1611. "onmousedown": U.UF.C.closure(function (obj) {
  1612. //防止拖動圖標即打開了桌面應用
  1613. U.MD.D.click(this, obj);
  1614. }, [_dseiTeacherDeskIconInfo[i]]),
  1615. "onclick": U.UF.C.closure(function (obj) {
  1616. //防止拖動圖標即打開了桌面應用
  1617. U.MD.D.click(this, obj);
  1618. }, [_dseiTeacherDeskIconInfo[i]])
  1619. }, _frag); //
  1620. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1621. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiTeacherDeskIconInfo[i].style }, _iconcontent);
  1622. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1623. } //
  1624. } else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 1) {
  1625. for (i = 0; i < _chjyjAdminDeskIconInfo.length; i++) {
  1626. _content = $$("div", {
  1627. className: "U_MD_D_KO",
  1628. "onmousedown": U.UF.C.closure(function (obj) {
  1629. //防止拖動圖標即打開了桌面應用
  1630. U.MD.D.click(this, obj);
  1631. }, [_chjyjAdminDeskIconInfo[i]]),
  1632. "onclick": U.UF.C.closure(function (obj) {
  1633. //防止拖動圖標即打開了桌面應用
  1634. U.MD.D.click(this, obj);
  1635. }, [_chjyjAdminDeskIconInfo[i]])
  1636. }, _frag); //
  1637. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1638. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjAdminDeskIconInfo[i].style }, _iconcontent);
  1639. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjAdminDeskIconInfo[i].Name }, _iconcontent);
  1640. }//
  1641. } else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 0) {
  1642. for (i = 0; i < _chjyjTeacherDeskIconInfo.length; i++) {
  1643. _content = $$("div", {
  1644. className: "U_MD_D_KO",
  1645. "onmousedown": U.UF.C.closure(function (obj) {
  1646. //防止拖動圖標即打開了桌面應用
  1647. U.MD.D.click(this, obj);
  1648. }, [_chjyjTeacherDeskIconInfo[i]]),
  1649. "onclick": U.UF.C.closure(function (obj) {
  1650. //防止拖動圖標即打開了桌面應用
  1651. U.MD.D.click(this, obj);
  1652. }, [_chjyjTeacherDeskIconInfo[i]])
  1653. }, _frag); //
  1654. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1655. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjTeacherDeskIconInfo[i].style }, _iconcontent);
  1656. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjTeacherDeskIconInfo[i].Name }, _iconcontent);
  1657. }
  1658. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 1) {
  1659. for (i = 0; i < _szjkyAdminDeskIconInfo.length; i++) {
  1660. _content = $$("div", {
  1661. className: "U_MD_D_KO",
  1662. "onmousedown": U.UF.C.closure(function (obj) {
  1663. //防止拖動圖標即打開了桌面應用
  1664. U.MD.D.click(this, obj);
  1665. }, [_szjkyAdminDeskIconInfo[i]]),
  1666. "onclick": U.UF.C.closure(function (obj) {
  1667. //防止拖動圖標即打開了桌面應用
  1668. U.MD.D.click(this, obj);
  1669. }, [_szjkyAdminDeskIconInfo[i]])
  1670. }, _frag); //
  1671. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1672. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyAdminDeskIconInfo[i].style }, _iconcontent);
  1673. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyAdminDeskIconInfo[i].Name }, _iconcontent);
  1674. }//
  1675. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 0) {
  1676. for (i = 0; i < _szjkyTeacherDeskIconInfo.length; i++) {
  1677. _content = $$("div", {
  1678. className: "U_MD_D_KO",
  1679. "onmousedown": U.UF.C.closure(function (obj) {
  1680. //防止拖動圖標即打開了桌面應用
  1681. U.MD.D.click(this, obj);
  1682. }, [_szjkyTeacherDeskIconInfo[i]]),
  1683. "onclick": U.UF.C.closure(function (obj) {
  1684. //防止拖動圖標即打開了桌面應用
  1685. U.MD.D.click(this, obj);
  1686. }, [_szjkyTeacherDeskIconInfo[i]])
  1687. }, _frag); //
  1688. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1689. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyTeacherDeskIconInfo[i].style }, _iconcontent);
  1690. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyTeacherDeskIconInfo[i].Name }, _iconcontent);
  1691. }
  1692. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1693. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1694. _content = $$("div", {
  1695. className: "U_MD_D_KO",
  1696. "onmousedown": U.UF.C.closure(function (obj) {
  1697. //防止拖動圖標即打開了桌面應用
  1698. U.MD.D.click(this, obj);
  1699. }, [_futianAdminDeskIconInfo[i]]),
  1700. "onclick": U.UF.C.closure(function (obj) {
  1701. //防止拖動圖標即打開了桌面應用
  1702. U.MD.D.click(this, obj);
  1703. }, [_futianAdminDeskIconInfo[i]])
  1704. }, _frag); //
  1705. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1706. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1707. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1708. }
  1709. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1710. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1711. _content = $$("div", {
  1712. className: "U_MD_D_KO",
  1713. "onmousedown": U.UF.C.closure(function (obj) {
  1714. //防止拖動圖標即打開了桌面應用
  1715. U.MD.D.click(this, obj);
  1716. }, [_futianTeacherDeskIconInfo[i]]),
  1717. "onclick": U.UF.C.closure(function (obj) {
  1718. //防止拖動圖標即打開了桌面應用
  1719. U.MD.D.click(this, obj);
  1720. }, [_futianTeacherDeskIconInfo[i]])
  1721. }, _frag); //
  1722. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1723. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1724. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1725. }
  1726. } else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1727. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1728. _content = $$("div", {
  1729. className: "U_MD_D_KO",
  1730. "onmousedown": U.UF.C.closure(function (obj) {
  1731. //防止拖動圖標即打開了桌面應用
  1732. U.MD.D.click(this, obj);
  1733. }, [_MingdeTeacherDeskIcon[i]]),
  1734. "onclick": U.UF.C.closure(function (obj) {
  1735. //防止拖動圖標即打開了桌面應用
  1736. U.MD.D.click(this, obj);
  1737. }, [_MingdeTeacherDeskIcon[i]])
  1738. }, _frag); //
  1739. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1740. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1741. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1742. }
  1743. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1744. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1745. _content = $$("div", {
  1746. className: "U_MD_D_KO",
  1747. "onmousedown": U.UF.C.closure(function (obj) {
  1748. //防止拖動圖標即打開了桌面應用
  1749. U.MD.D.click(this, obj);
  1750. }, [_lhsAdminDesktopIconInfo[i]]),
  1751. "onclick": U.UF.C.closure(function (obj) {
  1752. //防止拖動圖標即打開了桌面應用
  1753. U.MD.D.click(this, obj);
  1754. }, [_lhsAdminDesktopIconInfo[i]])
  1755. }, _frag); //
  1756. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1757. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1758. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1759. }
  1760. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1761. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1762. _content = $$("div", {
  1763. className: "U_MD_D_KO",
  1764. "onmousedown": U.UF.C.closure(function (obj) {
  1765. //防止拖動圖標即打開了桌面應用
  1766. U.MD.D.click(this, obj);
  1767. }, [_lhsteacherDesktopIconInfo[i]]),
  1768. "onclick": U.UF.C.closure(function (obj) {
  1769. //防止拖動圖標即打開了桌面應用
  1770. U.MD.D.click(this, obj);
  1771. }, [_lhsteacherDesktopIconInfo[i]])
  1772. }, _frag); //
  1773. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1774. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1775. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1776. }
  1777. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1778. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1779. _content = $$("div", {
  1780. className: "U_MD_D_KO",
  1781. "onmousedown": U.UF.C.closure(function (obj) {
  1782. //防止拖動圖標即打開了桌面應用
  1783. U.MD.D.click(this, obj);
  1784. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1785. "onclick": U.UF.C.closure(function (obj) {
  1786. //防止拖動圖標即打開了桌面應用
  1787. U.MD.D.click(this, obj);
  1788. }, [_zhoujiateacherDesktopIconInfo[i]])
  1789. }, _frag); //
  1790. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1791. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1792. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1793. }
  1794. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1795. for (i = 0; i < _hanDeskIcon.length; i++) {
  1796. _content = $$("div", {
  1797. className: "U_MD_D_KO",
  1798. "onmousedown": U.UF.C.closure(function (obj) {
  1799. //防止拖動圖標即打開了桌面應用
  1800. U.MD.D.click(this, obj);
  1801. }, [_hanDeskIcon[i]]),
  1802. "onclick": U.UF.C.closure(function (obj) {
  1803. //防止拖動圖標即打開了桌面應用
  1804. U.MD.D.click(this, obj);
  1805. }, [_hanDeskIcon[i]])
  1806. }, _frag); //
  1807. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1808. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1809. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1810. }
  1811. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1812. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1813. _content = $$("div", {
  1814. className: "U_MD_D_KO",
  1815. "onmousedown": U.UF.C.closure(function (obj) {
  1816. //防止拖動圖標即打開了桌面應用
  1817. U.MD.D.click(this, obj);
  1818. }, [_orgStemDeskIcon[i]]),
  1819. "onclick": U.UF.C.closure(function (obj) {
  1820. //防止拖動圖標即打開了桌面應用
  1821. U.MD.D.click(this, obj);
  1822. }, [_orgStemDeskIcon[i]])
  1823. }, _frag); //
  1824. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1825. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1826. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1827. }
  1828. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1829. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1830. _content = $$("div", {
  1831. className: "U_MD_D_KO",
  1832. "onmousedown": U.UF.C.closure(function (obj) {
  1833. //防止拖動圖標即打開了桌面應用
  1834. U.MD.D.click(this, obj);
  1835. }, [_szulsDeskIcon[i]]),
  1836. "onclick": U.UF.C.closure(function (obj) {
  1837. //防止拖動圖標即打開了桌面應用
  1838. U.MD.D.click(this, obj);
  1839. }, [_szulsDeskIcon[i]])
  1840. }, _frag); //
  1841. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1842. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1843. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1844. }
  1845. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1846. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1847. _content = $$("div", {
  1848. className: "U_MD_D_KO",
  1849. "onmousedown": U.UF.C.closure(function (obj) {
  1850. //防止拖動圖標即打開了桌面應用
  1851. U.MD.D.click(this, obj);
  1852. }, [_orgDesktopIconInfo[i]]),
  1853. "onclick": U.UF.C.closure(function (obj) {
  1854. //防止拖動圖標即打開了桌面應用
  1855. U.MD.D.click(this, obj);
  1856. }, [_orgDesktopIconInfo[i]])
  1857. }, _frag); //
  1858. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1859. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1860. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1861. }
  1862. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1863. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1864. _content = $$("div", {
  1865. className: "U_MD_D_KO",
  1866. "onmousedown": U.UF.C.closure(function (obj) {
  1867. //防止拖動圖標即打開了桌面應用
  1868. U.MD.D.click(this, obj);
  1869. }, [_schoolDesktopIconInfo[i]]),
  1870. "onclick": U.UF.C.closure(function (obj) {
  1871. //防止拖動圖標即打開了桌面應用
  1872. U.MD.D.click(this, obj);
  1873. }, [_schoolDesktopIconInfo[i]])
  1874. }, _frag); //
  1875. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1876. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1877. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1878. }
  1879. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1880. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1881. _content = $$("div", {
  1882. className: "U_MD_D_KO",
  1883. "onmousedown": U.UF.C.closure(function (obj) {
  1884. //防止拖動圖標即打開了桌面應用
  1885. U.MD.D.click(this, obj);
  1886. }, [_GMteacherDesktopIconInfo[i]]),
  1887. "onclick": U.UF.C.closure(function (obj) {
  1888. //防止拖動圖標即打開了桌面應用
  1889. U.MD.D.click(this, obj);
  1890. }, [_GMteacherDesktopIconInfo[i]])
  1891. }, _frag); //
  1892. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1893. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1894. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1895. }
  1896. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1897. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1898. _content = $$("div", {
  1899. className: "U_MD_D_KO",
  1900. "onmousedown": U.UF.C.closure(function (obj) {
  1901. //防止拖動圖標即打開了桌面應用
  1902. U.MD.D.click(this, obj);
  1903. }, [_SONGteacherDesktopIconInfo[i]]),
  1904. "onclick": U.UF.C.closure(function (obj) {
  1905. //防止拖動圖標即打開了桌面應用
  1906. U.MD.D.click(this, obj);
  1907. }, [_SONGteacherDesktopIconInfo[i]])
  1908. }, _frag); //
  1909. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1910. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1911. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1912. }
  1913. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1914. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1915. _content = $$("div", {
  1916. className: "U_MD_D_KO",
  1917. "onmousedown": U.UF.C.closure(function (obj) {
  1918. //防止拖動圖標即打開了桌面應用
  1919. U.MD.D.click(this, obj);
  1920. }, [_GMstudentDesktopIconInfo[i]]),
  1921. "onclick": U.UF.C.closure(function (obj) {
  1922. //防止拖動圖標即打開了桌面應用
  1923. U.MD.D.click(this, obj);
  1924. }, [_GMstudentDesktopIconInfo[i]])
  1925. }, _frag); //
  1926. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1927. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1928. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1929. }
  1930. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1931. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1932. _content = $$("div", {
  1933. className: "U_MD_D_KO",
  1934. "onmousedown": U.UF.C.closure(function (obj) {
  1935. //防止拖動圖標即打開了桌面應用
  1936. U.MD.D.click(this, obj);
  1937. }, [_tcTeacherDeskIconInfo[i]]),
  1938. "onclick": U.UF.C.closure(function (obj) {
  1939. //防止拖動圖標即打開了桌面應用
  1940. U.MD.D.click(this, obj);
  1941. }, [_tcTeacherDeskIconInfo[i]])
  1942. }, _frag); //
  1943. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1944. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1945. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1946. }
  1947. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1948. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1949. _content = $$("div", {
  1950. className: "U_MD_D_KO",
  1951. "onmousedown": U.UF.C.closure(function (obj) {
  1952. //防止拖動圖標即打開了桌面應用
  1953. U.MD.D.click(this, obj);
  1954. }, [_tcOrganizerDeskIconInfo[i]]),
  1955. "onclick": U.UF.C.closure(function (obj) {
  1956. //防止拖動圖標即打開了桌面應用
  1957. U.MD.D.click(this, obj);
  1958. }, [_tcOrganizerDeskIconInfo[i]])
  1959. }, _frag); //
  1960. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1961. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1962. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1963. }
  1964. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1965. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1966. _content = $$("div", {
  1967. className: "U_MD_D_KO",
  1968. "onmousedown": U.UF.C.closure(function (obj) {
  1969. //防止拖動圖標即打開了桌面應用
  1970. U.MD.D.click(this, obj);
  1971. }, [_szscTeacherDeskIconInfo[i]]),
  1972. "onclick": U.UF.C.closure(function (obj) {
  1973. //防止拖動圖標即打開了桌面應用
  1974. U.MD.D.click(this, obj);
  1975. }, [_szscTeacherDeskIconInfo[i]])
  1976. }, _frag); //
  1977. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1978. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1979. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1980. }
  1981. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1982. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1983. _content = $$("div", {
  1984. className: "U_MD_D_KO",
  1985. "onmousedown": U.UF.C.closure(function (obj) {
  1986. //防止拖動圖標即打開了桌面應用
  1987. U.MD.D.click(this, obj);
  1988. }, [_szscOrganizerDeskIconInfo[i]]),
  1989. "onclick": U.UF.C.closure(function (obj) {
  1990. //防止拖動圖標即打開了桌面應用
  1991. U.MD.D.click(this, obj);
  1992. }, [_szscOrganizerDeskIconInfo[i]])
  1993. }, _frag); //
  1994. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1995. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1996. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1997. }
  1998. } else {
  1999. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  2000. _content = $$("div", {
  2001. className: "U_MD_D_KO",
  2002. "onmousedown": U.UF.C.closure(function (obj) {
  2003. //防止拖動圖標即打開了桌面應用
  2004. U.MD.D.click(this, obj);
  2005. }, [_teacherDesktopIconInfo[i]]),
  2006. "onclick": U.UF.C.closure(function (obj) {
  2007. //防止拖動圖標即打開了桌面應用
  2008. U.MD.D.click(this, obj);
  2009. }, [_teacherDesktopIconInfo[i]])
  2010. }, _frag); //
  2011. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2012. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  2013. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  2014. }
  2015. }
  2016. } else {
  2017. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  2018. _content = $$("div", {
  2019. className: "U_MD_D_KO",
  2020. style: { 'width': '124px', 'height': '145px' },
  2021. "onmousedown": U.UF.C.closure(function (obj) {
  2022. //防止拖動圖標即打開了桌面應用
  2023. U.MD.D.click(this, obj);
  2024. }, [_easyDesktopIconInfo[i]]),
  2025. "onclick": U.UF.C.closure(function (obj) {
  2026. //防止拖動圖標即打開了桌面應用
  2027. U.MD.D.click(this, obj);
  2028. }, [_easyDesktopIconInfo[i]])
  2029. }, _frag); //
  2030. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  2031. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  2032. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  2033. }
  2034. }
  2035. if (type == 1) {
  2036. //加載好後給圖標定位
  2037. U.MD.D.iconPostion($(_frag).Child());
  2038. } else {
  2039. //加載好後給圖標定位
  2040. U.MD.D.iconPostion2($(_frag).Child());
  2041. }
  2042. //把圖標加載到頁面
  2043. el.appendChild(_frag);
  2044. }
  2045. /**
  2046. * 顯示任務欄
  2047. *
  2048. * @param {element} 桌面元素
  2049. */
  2050. U.MD.D.I.displayTaskbar = function (el) {
  2051. //判斷是否需要形式任務欄,由於用了mouseover事件會冒泡響應多次,這裏做了過濾
  2052. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  2053. //任務欄位置變化
  2054. U.selectEl(el).css({ "bottom": "0px" });
  2055. //桌面位置變話
  2056. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  2057. }
  2058. }
  2059. //#region 桌面圖標拖動邏輯
  2060. /**
  2061. * 桌面排列圖標
  2062. *
  2063. * @param {element} 桌面元素
  2064. * @param {object} 上下相距的距離
  2065. * @param {object} 左右相距的距離
  2066. * @return {object} 命名空間
  2067. */
  2068. U.MD.D.iconPostion = function (childs, top, left) {
  2069. var i; //用於循環處理
  2070. top = top || 15; //如果沒有設置元素的間距處理默認上間距為15
  2071. left = left || 20; //如果沒有設置元素的間距處理默認左間距為15
  2072. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  2073. for (i = 0; i < childs.length; i++) {
  2074. //如果豎排top超過了範圍處理
  2075. if (top + 95 > US.height - 10) {
  2076. //left超過了頁面範圍處理,則向上重疊打印處理
  2077. if ((left + 180) > US.width) {
  2078. top -= 110;
  2079. left -= 90;
  2080. }
  2081. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  2082. else {
  2083. left += 90;
  2084. top = 15;
  2085. };
  2086. }
  2087. //給圖標的位置賦值
  2088. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  2089. if (i < childs.length - 1) {
  2090. //頁面圖標每次向下加95
  2091. top += 95;
  2092. }
  2093. }
  2094. //返回最後調用的圖標的位置
  2095. return [top, left];
  2096. }
  2097. /**
  2098. * 桌面排列圖標
  2099. *
  2100. * @param {element} 桌面元素
  2101. * @param {object} 上下相距的距離
  2102. * @param {object} 左右相距的距離
  2103. * @return {object} 命名空間
  2104. */
  2105. U.MD.D.iconPostion2 = function (childs, top, left) {
  2106. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用於循環處理
  2107. top = top || 70; //如果沒有設置元素的間距處理默認上間距為15
  2108. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果沒有設置元素的間距處理默認左間距為15
  2109. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  2110. for (i = 0; i < childs.length; i++) {
  2111. //如果豎排top超過了範圍處理
  2112. if (left + 150 > US.width - 10) {
  2113. //left超過了頁面範圍處理,則向上重疊打印處理
  2114. if ((top + 180) > US.Height) {
  2115. top -= 150;
  2116. left -= 150;
  2117. }
  2118. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  2119. else {
  2120. top += 150;
  2121. left = ol;
  2122. };
  2123. }
  2124. //給圖標的位置賦值
  2125. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  2126. if (i < childs.length - 1) {
  2127. //頁面圖標每次向下加95
  2128. left += 150;
  2129. }
  2130. }
  2131. //返回最後調用的圖標的位置
  2132. return [top, left];
  2133. }
  2134. /**
  2135. * 桌面點擊事件邏輯
  2136. *
  2137. * @param {element} 桌面元素
  2138. * @param {object} 上下相距的距離
  2139. * @param {object} 左右相距的距離
  2140. * @return {object} 命名空間
  2141. */
  2142. U.MD.D.click = function (el, obj) {
  2143. var _buttonnumber = event.button; //點擊的按鈕的事件值
  2144. var _userinfo = US.userInfo;
  2145. U.UF.EV.stopBubble(); //阻止向上冒泡
  2146. //onmousedown 包含了左鍵和右鍵 這裏大於2是為了兼容 所有瀏覽器的右鍵處理
  2147. if (_buttonnumber < 2) {
  2148. //如果是click事件的處理
  2149. if (event.type == "click") {
  2150. //如果元素在mousemove事件中沒有移動則出發click事件
  2151. if (!U.MD.D.I.IsDrag) {
  2152. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2153. U.alert("請先登錄您的賬號!");
  2154. setTimeout(() => {
  2155. U.MD.U.L.login();
  2156. }, 2000);
  2157. } else {
  2158. //打開應用處理
  2159. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  2160. }
  2161. }
  2162. }
  2163. //如果是mouse事件的處理
  2164. else {
  2165. if (US.Config.type == '1') {
  2166. //拖動處理,添加拖動和拖動結束事件
  2167. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  2168. }
  2169. }
  2170. U.MD.D.I.IsDrag = false;
  2171. }
  2172. }
  2173. /**
  2174. * 拖動的處理
  2175. *
  2176. */
  2177. U.MD.D.iconMove = function () {
  2178. //如果當前位置點擊初始化的位置出現了變化,則設置是否拖動的屬性 U.MD.D.I.IsDrag為true
  2179. U.MD.D.I.IsDrag = true;
  2180. }
  2181. /**
  2182. * 拖動結束後,這裏是定位處理,以網狀的形式定位
  2183. *
  2184. * @param {element} 拖動的元素
  2185. * @return {object} 命名空間
  2186. */
  2187. U.MD.D.iconUp = function (el) {
  2188. var _top = 15,
  2189. _left = 20,
  2190. _margin,
  2191. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的圖標
  2192. _positioninfo = U.UF.EL.getElementInfo(el); //獲取拖動結束的元素的位置
  2193. if (_positioninfo["OT"] > 15) {
  2194. //網狀的形式定位,如果差超過了55,那麼向下定位,否則向上定位
  2195. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  2196. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  2197. }
  2198. if (_positioninfo["OL"] > 20) {
  2199. //網狀的形式定位,如果差超過了90,那麼向右定位,否則向左定位
  2200. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  2201. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  2202. }
  2203. //while循環判斷麼一個重疊的元素
  2204. do {
  2205. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //給重疊的元素向下定位
  2206. _top = _positioninfo[0] + 95; //得到定位後的top
  2207. _left = _positioninfo[1]; //得到定位後的left
  2208. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  2209. }
  2210. /**
  2211. * 判斷拖動後圖標是否重疊
  2212. *
  2213. * @param {element} 拖動的元素
  2214. * @param {element} 桌面所有的元素
  2215. * @param {array} 拖動元素的位置
  2216. ----------[0] 上 top
  2217. ----------[1] 左 left
  2218. * @return {object} 命名空間
  2219. */
  2220. U.MD.D.isOverlap = function (el, childs, postionarray) {
  2221. //循環所有的圖標
  2222. for (var i = 0; i < childs.length; i++) {
  2223. //判斷有沒有和該圖標誒子重疊的元素
  2224. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  2225. return childs[i]; //如果有返回
  2226. }
  2227. }
  2228. }
  2229. //#endregion
  2230. //#endregion
  2231. //#region 桌面應用
  2232. /**
  2233. * 打開應用
  2234. *
  2235. * @param {string} 類型
  2236. -----------------Disk 網盤系統
  2237. -----------------PDisk 學習系統網盤
  2238. -----------------Poto 圖片
  2239. -----------------Video 視頻
  2240. -----------------Music 音樂
  2241. -----------------Word word
  2242. -----------------Excel excel
  2243. -----------------Txt 記事本
  2244. -----------------PB 學習系統
  2245. -----------------Blog 朋友圈系統
  2246. -----------------FTP ftp系統
  2247. -----------------Group 好友群
  2248. -----------------SY 首頁系統
  2249. -----------------Set 個人設置
  2250. -----------------XSet 系統設置
  2251. -----------------App 我們所有的app
  2252. -----------------BC c.1473.cn 平臺
  2253. -----------------CWeb d.1473.cn 變成平臺
  2254. -----------------其他的外聯系統 我們統一用iframe打開
  2255. * @param {array} 類型
  2256. 如果第一個參數為"disk",則第二個參數為object,裏面包含了用戶id和目錄id{userid:"",directoryid:""}
  2257. 如果第一個參數為"word"或者"excel","txt",則第二個參數為文件信息fileinfo。
  2258. 如果第一個參數為"blog"或者"PDisk"。建議刪除。
  2259. 如果第一個參數為其他,則無第二個參數
  2260. * @returns {array}
  2261. */
  2262. window.addEventListener('message', function (e) { // 監聽 message 事件
  2263. // alert(e.data.type);
  2264. if (e.data.screenType && e.data.screenType == "2") { //課程管理傳入
  2265. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  2266. //3是展示全部階段 2學生 1老師 4專家
  2267. } else if (e.data.screenType && e.data.screenType == "2s") { //課程管理傳入
  2268. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  2269. //3是展示全部階段 2學生 1老師 4專家
  2270. } else if (e.data.screenType && e.data.screenType == "2studio") { //課程管理傳入
  2271. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  2272. //3是展示全部階段 2學生 1老師 4專家
  2273. } else if (e.data.screenType && e.data.screenType == "3") { //課程管理傳入
  2274. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  2275. } else if (e.data.screenType && e.data.screenType == "3NT") { //課程管理傳入
  2276. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  2277. } else if (e.data.screenType && e.data.screenType == "3s") { //課程管理傳入
  2278. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  2279. } else if (e.data.screenType && e.data.screenType == "3studio") { //課程管理傳入
  2280. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  2281. } else if (e.data.screenType && e.data.screenType == "3s2") { //課程管理傳入
  2282. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  2283. } else if (e.data.screenType && e.data.screenType == "2gm") { //課程管理傳入
  2284. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  2285. //3是展示全部階段 2學生 1老師 4專家
  2286. } else if (e.data.screenType && e.data.screenType == "3gm") { //課程管理傳入
  2287. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  2288. } else if (e.data.close && e.data.close == "1") { //更新用戶信息
  2289. U.MD.D.I.selectUser();
  2290. } else if (e.data.allScreen && e.data.allScreen == "1") {
  2291. var _formel = document.getElementById("study");
  2292. U.UF.F.windowZooming(_formel);
  2293. } else if (e.data.allScreen && e.data.allScreen == "2") {
  2294. var _formel = document.getElementById("studyDetail");
  2295. U.UF.F.windowZooming(_formel);
  2296. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  2297. var _formel = document.getElementById("studyDetail");
  2298. U.UF.F.windowZooming(_formel);
  2299. } else if (e.data.allScreen && e.data.allScreen == "3") {
  2300. var _formel = document.getElementById("studentStudy");
  2301. U.UF.F.windowZooming(_formel);
  2302. } else if (e.data.allScreen && e.data.allScreen == "6") {
  2303. // var _formel = document.getElementById("study");
  2304. //如果最大化了,那麼就把他縮小
  2305. // if (_formel.ismaximize) {
  2306. // return;
  2307. // }
  2308. // U.UF.F.windowZooming(_formel);
  2309. // U.UF.F.topWindow(_formel);
  2310. } else if (e.data.allScreen && e.data.allScreen == "4") {
  2311. // var _formel = document.getElementById("studyDetail");
  2312. //如果最大化了,那麼就把他縮小
  2313. // if (_formel.ismaximize) {
  2314. // return;
  2315. // }
  2316. // U.UF.F.windowZooming(_formel);
  2317. // U.UF.F.topWindow(_formel);
  2318. } else if (e.data.allScreen && e.data.allScreen == "5") {
  2319. // var _formel = document.getElementById("studentStudy");
  2320. // if (_formel.ismaximize) {
  2321. // return;
  2322. // }
  2323. // U.UF.F.windowZooming(_formel);
  2324. // U.UF.F.topWindow(_formel);
  2325. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  2326. var _formel = document.getElementById("study");
  2327. // if (_formel.ismaximize) {
  2328. // return;
  2329. // }
  2330. // U.UF.F.windowZooming(_formel);
  2331. U.UF.F.topWindow(_formel);
  2332. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  2333. var _formel = document.getElementById("studentIndex");
  2334. U.UF.F.windowZooming(_formel);
  2335. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  2336. var _formel = document.getElementById("studyDetailS");
  2337. U.UF.F.windowZooming(_formel);
  2338. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  2339. var _formel = document.getElementById("studioIndex");
  2340. U.UF.F.windowZooming(_formel);
  2341. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  2342. var _formel = document.getElementById("studyDetailStudio");
  2343. U.UF.F.windowZooming(_formel);
  2344. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  2345. var _formel = document.getElementById("studyDetailStudio");
  2346. U.UF.F.windowZooming(_formel);
  2347. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  2348. var _formel = document.getElementById("studyDetailNT");
  2349. U.UF.F.windowZooming(_formel);
  2350. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  2351. var _formel = document.getElementById("studyDetailS");
  2352. U.UF.F.windowZooming(_formel);
  2353. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  2354. var _formel = document.getElementById("studyDetailS");
  2355. U.UF.F.topWindow(_formel);
  2356. } else if (e.data.tools && e.data.tools == "1") {
  2357. // U.MD.D.I.openApplication("whiteboard")
  2358. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2359. } else if (e.data.tools && e.data.tools == "2") {
  2360. U.MD.D.I.openApplication("note")
  2361. } else if (e.data.tools && e.data.tools == "3") {
  2362. // U.MD.D.I.openApplication("mind")
  2363. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2364. } else if (e.data.tools && e.data.tools == "4") {
  2365. U.MD.D.I.openApplication("investigation")
  2366. } else if (e.data.tools && e.data.tools == "6") {
  2367. // U.MD.D.I.openApplication("doc")
  2368. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2369. } else if (e.data.tools && e.data.tools == "7") {
  2370. // U.MD.D.I.openApplication("mindNetwork")
  2371. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2372. } else if (e.data.tools && e.data.tools == "8") {
  2373. U.MD.D.I.openApplication("library")
  2374. } else if (e.data.tools && e.data.tools == "17") {
  2375. U.MD.D.I.openApplication("stuLibrary")
  2376. } else if (e.data.tools && e.data.tools == "18") {
  2377. U.MD.D.I.openApplication("train")
  2378. } else if (e.data.tools && e.data.tools == "21") {
  2379. U.MD.D.I.openApplication("program")
  2380. } else if (e.data.tools && e.data.tools == "22") {
  2381. U.MD.D.I.openApplication("AIprogram2")
  2382. } else if (e.data.tools && e.data.tools == "23") {
  2383. U.MD.D.I.openApplication("Pythonprogram")
  2384. } else if (e.data.tools && e.data.tools == "24") {
  2385. U.MD.D.I.openApplication("AIprogram")
  2386. } else if (e.data.tools && e.data.tools == "25") {
  2387. U.MD.D.I.openApplication("sys")
  2388. } else if (e.data.tools && e.data.tools == "26") {
  2389. // U.MD.D.I.openApplication("courseDesign")
  2390. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2391. } else if (e.data.tools && e.data.tools == "31") {
  2392. U.MD.D.I.openApplication("netWorkPanel")
  2393. } else if (e.data.tools && e.data.tools == "32") {
  2394. U.MD.D.I.openApplication("codeEdit")
  2395. } else if (e.data.tools && e.data.tools == "57") {
  2396. U.MD.D.I.openApplication("CocoPi")
  2397. } else if (e.data.tools && e.data.tools == "63") {
  2398. U.MD.D.I.openApplication("Wood")
  2399. } else if (e.data.tools && e.data.tools == "58") {
  2400. U.MD.D.I.openApplication("car")
  2401. } else if (e.data.tools && e.data.tools == "59") {
  2402. U.MD.D.I.openApplication("lineSearch")
  2403. } else if (e.data.tools && e.data.tools == "60") {
  2404. U.MD.D.I.openApplication("deepLearning")
  2405. } else if (e.data.tools && e.data.tools == "61") {
  2406. U.MD.D.I.openApplication("allHistory")
  2407. } else if (e.data.tools && e.data.tools == "28") {
  2408. U.MD.D.I.openApplication("translation")
  2409. } else if (e.data.tools && e.data.tools == "37") {
  2410. U.MD.D.I.openApplication("mohe")
  2411. } else if (e.data.tools && e.data.tools == "38") {
  2412. U.MD.D.I.openApplication("24game")
  2413. } else if (e.data.tools && e.data.tools == "39") {
  2414. U.MD.D.I.openApplication("GeoGebra")
  2415. } else if (e.data.tools && e.data.tools == "43") {
  2416. U.MD.D.I.openApplication("studentEvaluate")
  2417. } else if (e.data.tools && e.data.tools == "44") {
  2418. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  2419. } else if (e.data.tools && e.data.tools == "46") {
  2420. U.MD.D.I.openApplication("project")
  2421. } else if (e.data.tools && e.data.tools == "1s") {
  2422. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2423. } else if (e.data.tools && e.data.tools == "3s") {
  2424. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2425. } else if (e.data.tools && e.data.tools == "6s") {
  2426. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2427. } else if (e.data.tools && e.data.tools == "1studio") {
  2428. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2429. } else if (e.data.tools && e.data.tools == "3studio") {
  2430. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2431. } else if (e.data.tools && e.data.tools == "6studio") {
  2432. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2433. } else if (e.data.tools && e.data.tools == "3y") {
  2434. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2435. } else if (e.data.tools && e.data.tools == "1y") {
  2436. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2437. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  2438. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  2439. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  2440. U.MD.D.I.openApplication("AIAnalyse")
  2441. } else if (e.data.tools && e.data.tools == "1teacher") {
  2442. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2443. } else if (e.data.tools && e.data.tools == "3teacher") {
  2444. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2445. } else if (e.data.tools && e.data.tools == "7teacher") {
  2446. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2447. } else if (e.data.tools && e.data.tools == "1teacherE") {
  2448. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2449. } else if (e.data.tools && e.data.tools == "3teacherE") {
  2450. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2451. } else if (e.data.tools && e.data.tools == "1E") {
  2452. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2453. } else if (e.data.tools && e.data.tools == "3E") {
  2454. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2455. } else if (e.data.tools && e.data.tools == "57y") {
  2456. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2457. } else if (e.data.tools && e.data.tools == "57u") {
  2458. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2459. } else if (e.data.tools && e.data.tools == "57teacher") {
  2460. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2461. } else if (e.data.tools && e.data.tools == "64") {
  2462. U.MD.D.I.openApplication("AIChat")
  2463. } else if (e.data.tools && e.data.tools == "66") {
  2464. U.MD.D.I.openApplication("formulaEdi")
  2465. } else if (e.data.tools && e.data.tools == "67") {
  2466. U.MD.D.I.openApplication("molStr")
  2467. } else if (e.data.tools && e.data.tools == "68") {
  2468. U.MD.D.I.openApplication("timeAxis")
  2469. } else if (e.data.tools && e.data.tools == "openCourse") {
  2470. let _data = {
  2471. typea: e.data.typea || '',
  2472. typeb: e.data.typeb || '',
  2473. typed: e.data.typed || '',
  2474. }
  2475. U.MD.D.I.openInApplication("index", _data)
  2476. } else if (e.data.tools && e.data.tools == "openDataClass") {
  2477. let _data = {
  2478. classid: e.data.classid || '',
  2479. }
  2480. U.MD.D.I.openInApplication("dataClass", _data)
  2481. } else if (e.data.tools && e.data.tools == "opencCscl") {
  2482. let _data = {
  2483. cid: e.data.cid || '',
  2484. gid: e.data.gid || '',
  2485. }
  2486. U.MD.D.I.openInApplication("opencCscl", _data)
  2487. }
  2488. });
  2489. U.MD.D.I.selectUser = function () {
  2490. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  2491. if (res.value[0].length > 0) {
  2492. US.userInfo = res.value[0][0];
  2493. $(".userName")[0].innerHTML = US.userInfo.username;
  2494. }
  2495. }, [], { "type": "GET", "withCredentials": true });
  2496. }
  2497. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  2498. var _userinfo = US.userInfo, //登錄用戶信息
  2499. _userid = US.userInfo.userid, //登錄用戶id
  2500. _oid = _userinfo.organizeid,
  2501. _type = US.userInfo.type,
  2502. _org = US.userInfo.org,
  2503. _role = US.userInfo.role,
  2504. _classId = US.userInfo.classid;
  2505. if (_type == 4) {
  2506. tType = 4
  2507. }
  2508. switch (str) {
  2509. case "studyDetailNT": //無終端模式
  2510. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2511. setTimeout(() => {
  2512. U.MD.U.L.login();
  2513. }, 2000);
  2514. } else {
  2515. _formdiv = new U.UF.UI.form(
  2516. "課程詳情",
  2517. $$("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 }), {
  2518. "id": "studyDetailNT",
  2519. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2520. "onresize": function () { }
  2521. }, {
  2522. closecallback: function () { }
  2523. }, { "style": { "height": "36px" } }).form; //創建窗體
  2524. _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); } }
  2525. break;
  2526. }
  2527. case "studyDetail":
  2528. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2529. setTimeout(() => {
  2530. U.MD.U.L.login();
  2531. }, 2000);
  2532. } else {
  2533. _formdiv = new U.UF.UI.form(
  2534. "課程詳情",
  2535. $$("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 }), {
  2536. "id": "studyDetail",
  2537. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2538. "onresize": function () { }
  2539. }, {
  2540. closecallback: function () { }
  2541. }, { "style": { "height": "36px" } }).form; //創建窗體
  2542. _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); } }
  2543. break;
  2544. }
  2545. case "studyDetailS":
  2546. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2547. setTimeout(() => {
  2548. U.MD.U.L.login();
  2549. }, 2000);
  2550. } else {
  2551. _formdiv = new U.UF.UI.form(
  2552. "項目詳情",
  2553. $$("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 }), {
  2554. "id": "studyDetailS",
  2555. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2556. "onresize": function () { }
  2557. }, {
  2558. closecallback: function () { }
  2559. }, { "style": { "height": "36px" } }).form; //創建窗體
  2560. _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); } }
  2561. break;
  2562. }
  2563. case "studyDetailStudio":
  2564. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2565. setTimeout(() => {
  2566. U.MD.U.L.login();
  2567. }, 2000);
  2568. } else {
  2569. _formdiv = new U.UF.UI.form(
  2570. "工作詳情",
  2571. $$("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 }), {
  2572. "id": "studyDetailStudio",
  2573. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2574. "onresize": function () { }
  2575. }, {
  2576. closecallback: function () { }
  2577. }, { "style": { "height": "36px" } }).form; //創建窗體
  2578. _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); } }
  2579. break;
  2580. }
  2581. case "studyDetailS5":
  2582. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2583. setTimeout(() => {
  2584. U.MD.U.L.login();
  2585. }, 2000);
  2586. } else {
  2587. _formdiv = new U.UF.UI.form(
  2588. "項目詳情",
  2589. $$("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 }), {
  2590. "id": "studyDetailS",
  2591. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2592. "onresize": function () { }
  2593. }, {
  2594. closecallback: function () { }
  2595. }, { "style": { "height": "36px" } }).form; //創建窗體
  2596. _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); } }
  2597. break;
  2598. }
  2599. case "studyDetailGM":
  2600. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2601. setTimeout(() => {
  2602. U.MD.U.L.login();
  2603. }, 2000);
  2604. } else {
  2605. _formdiv = new U.UF.UI.form(
  2606. "課程詳情",
  2607. $$("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 }), {
  2608. "id": "studyDetail",
  2609. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2610. "onresize": function () { }
  2611. }, {
  2612. closecallback: function () { }
  2613. }, { "style": { "height": "36px" } }).form; //創建窗體
  2614. _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); } }
  2615. break;
  2616. }
  2617. case "hanUrl":
  2618. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2619. setTimeout(() => {
  2620. U.MD.U.L.login();
  2621. }, 2000);
  2622. } else {
  2623. _formdiv = new U.UF.UI.form(
  2624. "漢字宮",
  2625. $$("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" }), {
  2626. "id": "hanUrl",
  2627. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2628. "onresize": function () { }
  2629. }, {
  2630. closecallback: function () { }
  2631. }, { "style": { "height": "36px" } }).form; //創建窗體
  2632. _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); } }
  2633. break;
  2634. }
  2635. case "index":
  2636. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2637. setTimeout(() => {
  2638. U.MD.U.L.login();
  2639. }, 2000);
  2640. } else {
  2641. _formdiv = new U.UF.UI.form(
  2642. "課程中心",
  2643. $$("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 }), {
  2644. "id": "study",
  2645. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2646. "onresize": function () { }
  2647. }, {
  2648. closecallback: function () { }
  2649. }, { "style": { "height": "36px" } }).form; //創建窗體
  2650. _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); } }
  2651. break;
  2652. }
  2653. case "dataClass":
  2654. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2655. setTimeout(() => {
  2656. U.MD.U.L.login();
  2657. }, 2000);
  2658. } else {
  2659. _formdiv = new U.UF.UI.form(
  2660. "數據報告",
  2661. $$("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 }), {
  2662. "id": "dataClass",
  2663. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2664. "onresize": function () { }
  2665. }, {
  2666. closecallback: function () { }
  2667. }, { "style": { "height": "36px" } }).form; //創建窗體
  2668. _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); } }
  2669. break;
  2670. }
  2671. case "opencCscl":
  2672. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2673. setTimeout(() => {
  2674. U.MD.U.L.login();
  2675. }, 2000);
  2676. } else {
  2677. _formdiv = new U.UF.UI.form(
  2678. "協同建構",
  2679. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cscl.cocorobo.cn?cid=" + data.cid + "&gid=" + data.gid }), {
  2680. "id": "futureClass",
  2681. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2682. "onresize": function () { }
  2683. }, {
  2684. closecallback: function () { }
  2685. }, { "style": { "height": "36px" } }).form; //創建窗體
  2686. _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); } }
  2687. break;
  2688. }
  2689. }
  2690. }
  2691. U.MD.D.I.openApplication = function (str, obj, info) {
  2692. obj = obj || {};
  2693. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  2694. _formdiv, //創建任務欄時同時彈出的窗體元素。
  2695. _userinfo = US.userInfo, //登錄用戶信息
  2696. _userid = obj.userid || US.userInfo.userid, //登錄用戶id
  2697. _oid = obj.organizeid || _userinfo.organizeid,
  2698. _type = US.userInfo.type,
  2699. _org = US.userInfo.org,
  2700. _role = US.userInfo.role,
  2701. _classId = US.userInfo.classid,
  2702. _TscreenType = 1
  2703. _screenType = 2,
  2704. _SscreenType = 3;
  2705. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2706. return;
  2707. }
  2708. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2709. switch (str) {
  2710. case "studnetProject": //好友打開
  2711. _formdiv = new U.UF.UI.form(
  2712. "我的項目",
  2713. $$("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 }), {
  2714. "id": "studnetProject",
  2715. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2716. "onresize": function () { }
  2717. }, {
  2718. closecallback: function () { }
  2719. }, { "style": { "height": "36px" } }).form; //創建窗體
  2720. _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); } }
  2721. break;
  2722. case "studentEvaluate": //好友打開
  2723. _formdiv = new U.UF.UI.form(
  2724. "我的評價",
  2725. $$("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 }), {
  2726. "id": "studentEvaluate",
  2727. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2728. "onresize": function () { }
  2729. }, {
  2730. closecallback: function () { }
  2731. }, { "style": { "height": "36px" } }).form; //創建窗體
  2732. _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); } }
  2733. break;
  2734. case "my":
  2735. _formdiv = new U.UF.UI.form(
  2736. "我的資料",
  2737. $$("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 }), {
  2738. "id": "my",
  2739. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2740. "onresize": function () { }
  2741. }, {
  2742. closecallback: function () { }
  2743. }, { "style": { "height": "36px" } }).form; //創建窗體
  2744. _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); } }
  2745. break;
  2746. case "program":
  2747. _formdiv = new U.UF.UI.form(
  2748. "編程平臺",
  2749. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2750. "id": "program",
  2751. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2752. "onresize": function () { }
  2753. }, {
  2754. closecallback: function () { }
  2755. }, { "style": { "height": "36px" } }).form; //創建窗體
  2756. _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); } }
  2757. break;
  2758. case "library":
  2759. _formdiv = new U.UF.UI.form(
  2760. "素材庫",
  2761. $$("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 }), {
  2762. "id": "library",
  2763. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2764. "onresize": function () { }
  2765. }, {
  2766. closecallback: function () { }
  2767. }, { "style": { "height": "36px" } }).form; //創建窗體
  2768. _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); } }
  2769. break;
  2770. case "whiteboard":
  2771. _formdiv = new U.UF.UI.form(
  2772. "電子白板",
  2773. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2774. "id": "whiteboard",
  2775. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2776. "onresize": function () { }
  2777. }, {
  2778. closecallback: function () { }
  2779. }, { "style": { "height": "36px" } }).form; //創建窗體
  2780. _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); } }
  2781. break;
  2782. case "investigation":
  2783. _formdiv = new U.UF.UI.form(
  2784. "問卷調查",
  2785. $$("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 }), {
  2786. "id": "investigation",
  2787. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2788. "onresize": function () { }
  2789. }, {
  2790. closecallback: function () { }
  2791. }, { "style": { "height": "36px" } }).form; //創建窗體
  2792. _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); } }
  2793. break;
  2794. case "note":
  2795. _formdiv = new U.UF.UI.form(
  2796. "便簽分類",
  2797. $$("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 }), {
  2798. "id": "note",
  2799. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2800. "onresize": function () { }
  2801. }, {
  2802. closecallback: function () { }
  2803. }, { "style": { "height": "36px" } }).form; //創建窗體
  2804. _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); } }
  2805. break;
  2806. // case "score":
  2807. // _formdiv = new U.UF.UI.form(
  2808. // "量規評分",
  2809. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2810. // "id": "score",
  2811. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2812. // "onresize": function() {}
  2813. // }, {
  2814. // closecallback: function() {}
  2815. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2816. // _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); } }
  2817. // break;
  2818. case "mind":
  2819. _formdiv = new U.UF.UI.form(
  2820. "思維導圖",
  2821. $$("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"
  2822. "id": "mind",
  2823. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2824. "onresize": function () { }
  2825. }, {
  2826. closecallback: function () { }
  2827. }, { "style": { "height": "36px" } }).form; //創建窗體
  2828. _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); } }
  2829. break;
  2830. case "doc":
  2831. // U.MD.D.I.isRoom();
  2832. _formdiv = new U.UF.UI.form(
  2833. "協同文檔",
  2834. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2835. "id": "doc",
  2836. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2837. "onresize": function () { }
  2838. }, {
  2839. closecallback: function () { }
  2840. }, { "style": { "height": "36px" } }).form; //創建窗體
  2841. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2842. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2843. // })
  2844. _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); } }
  2845. break;
  2846. case "studentStudy":
  2847. _formdiv = new U.UF.UI.form(
  2848. "課程中心",
  2849. $$("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
  2850. "id": "studentStudy",
  2851. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2852. "onresize": function () { }
  2853. }, {
  2854. closecallback: function () { }
  2855. }, { "style": { "height": "36px" } }).form; //創建窗體
  2856. _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); } }
  2857. break;
  2858. case "train": //好友打開
  2859. _formdiv = new U.UF.UI.form(
  2860. "訓練平臺",
  2861. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2862. "id": "train",
  2863. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2864. "onresize": function () { }
  2865. }, {
  2866. closecallback: function () { }
  2867. }, { "style": { "height": "36px" } }).form; //創建窗體
  2868. _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); } }
  2869. break;
  2870. case "mindNetwork": //好友打開
  2871. _formdiv = new U.UF.UI.form(
  2872. "思維網格",
  2873. $$("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 }), {
  2874. "id": "mindNetwork",
  2875. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2876. "onresize": function () { }
  2877. }, {
  2878. closecallback: function () { }
  2879. }, { "style": { "height": "36px" } }).form; //創建窗體
  2880. _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); } }
  2881. break;
  2882. case "studentClassRoom": //好友打開
  2883. _formdiv = new U.UF.UI.form(
  2884. "實時課堂",
  2885. $$("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 }), {
  2886. "id": "studentClassRoom",
  2887. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2888. "onresize": function () { }
  2889. }, {
  2890. closecallback: function () { }
  2891. }, { "style": { "height": "36px" } }).form; //創建窗體
  2892. _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); } }
  2893. setTimeout(() => {
  2894. U.UF.F.windowZooming(_formdiv)
  2895. }, 0);
  2896. break;
  2897. }
  2898. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2899. switch (str) {
  2900. case "studnetProject": //好友打開
  2901. _formdiv = new U.UF.UI.form(
  2902. "我的項目",
  2903. $$("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 }), {
  2904. "id": "studnetProject",
  2905. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2906. "onresize": function () { }
  2907. }, {
  2908. closecallback: function () { }
  2909. }, { "style": { "height": "36px" } }).form; //創建窗體
  2910. _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); } }
  2911. break;
  2912. case "studentEvaluate": //好友打開
  2913. _formdiv = new U.UF.UI.form(
  2914. "我的評價",
  2915. $$("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 }), {
  2916. "id": "studentEvaluate",
  2917. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2918. "onresize": function () { }
  2919. }, {
  2920. closecallback: function () { }
  2921. }, { "style": { "height": "36px" } }).form; //創建窗體
  2922. _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); } }
  2923. break;
  2924. case "my":
  2925. _formdiv = new U.UF.UI.form(
  2926. "我的資料",
  2927. $$("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 }), {
  2928. "id": "my",
  2929. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2930. "onresize": function () { }
  2931. }, {
  2932. closecallback: function () { }
  2933. }, { "style": { "height": "36px" } }).form; //創建窗體
  2934. _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); } }
  2935. break;
  2936. case "program":
  2937. _formdiv = new U.UF.UI.form(
  2938. "編程平臺",
  2939. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2940. "id": "program",
  2941. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2942. "onresize": function () { }
  2943. }, {
  2944. closecallback: function () { }
  2945. }, { "style": { "height": "36px" } }).form; //創建窗體
  2946. _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); } }
  2947. break;
  2948. case "library":
  2949. _formdiv = new U.UF.UI.form(
  2950. "素材庫",
  2951. $$("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 }), {
  2952. "id": "library",
  2953. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2954. "onresize": function () { }
  2955. }, {
  2956. closecallback: function () { }
  2957. }, { "style": { "height": "36px" } }).form; //創建窗體
  2958. _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); } }
  2959. break;
  2960. case "whiteboard":
  2961. _formdiv = new U.UF.UI.form(
  2962. "電子白板",
  2963. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2964. "id": "whiteboard",
  2965. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2966. "onresize": function () { }
  2967. }, {
  2968. closecallback: function () { }
  2969. }, { "style": { "height": "36px" } }).form; //創建窗體
  2970. _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); } }
  2971. break;
  2972. case "investigation":
  2973. _formdiv = new U.UF.UI.form(
  2974. "問卷調查",
  2975. $$("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 }), {
  2976. "id": "investigation",
  2977. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2978. "onresize": function () { }
  2979. }, {
  2980. closecallback: function () { }
  2981. }, { "style": { "height": "36px" } }).form; //創建窗體
  2982. _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); } }
  2983. break;
  2984. case "note":
  2985. _formdiv = new U.UF.UI.form(
  2986. "便簽分類",
  2987. $$("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 }), {
  2988. "id": "note",
  2989. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2990. "onresize": function () { }
  2991. }, {
  2992. closecallback: function () { }
  2993. }, { "style": { "height": "36px" } }).form; //創建窗體
  2994. _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); } }
  2995. break;
  2996. // case "score":
  2997. // _formdiv = new U.UF.UI.form(
  2998. // "量規評分",
  2999. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  3000. // "id": "score",
  3001. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3002. // "onresize": function() {}
  3003. // }, {
  3004. // closecallback: function() {}
  3005. // }, { "style": { "height": "36px" } }).form; //創建窗體
  3006. // _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); } }
  3007. // break;
  3008. case "mind":
  3009. _formdiv = new U.UF.UI.form(
  3010. "思維導圖",
  3011. $$("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"
  3012. "id": "mind",
  3013. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3014. "onresize": function () { }
  3015. }, {
  3016. closecallback: function () { }
  3017. }, { "style": { "height": "36px" } }).form; //創建窗體
  3018. _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); } }
  3019. break;
  3020. case "doc":
  3021. // U.MD.D.I.isRoom();
  3022. _formdiv = new U.UF.UI.form(
  3023. "協同文檔",
  3024. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3025. "id": "doc",
  3026. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3027. "onresize": function () { }
  3028. }, {
  3029. closecallback: function () { }
  3030. }, { "style": { "height": "36px" } }).form; //創建窗體
  3031. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3032. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3033. })
  3034. _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); } }
  3035. break;
  3036. case "train": //好友打開
  3037. _formdiv = new U.UF.UI.form(
  3038. "訓練平臺",
  3039. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3040. "id": "train",
  3041. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3042. "onresize": function () { }
  3043. }, {
  3044. closecallback: function () { }
  3045. }, { "style": { "height": "36px" } }).form; //創建窗體
  3046. _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); } }
  3047. break;
  3048. case "studentStudy":
  3049. _formdiv = new U.UF.UI.form(
  3050. "課程中心",
  3051. $$("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
  3052. "id": "studentStudy",
  3053. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3054. "onresize": function () { }
  3055. }, {
  3056. closecallback: function () { }
  3057. }, { "style": { "height": "36px" } }).form; //創建窗體
  3058. _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); } }
  3059. break;
  3060. case "mindNetwork": //好友打開
  3061. _formdiv = new U.UF.UI.form(
  3062. "思維網格",
  3063. $$("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 }), {
  3064. "id": "mindNetwork",
  3065. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3066. "onresize": function () { }
  3067. }, {
  3068. closecallback: function () { }
  3069. }, { "style": { "height": "36px" } }).form; //創建窗體
  3070. _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); } }
  3071. break;
  3072. case "studentClassRoom": //好友打開
  3073. _formdiv = new U.UF.UI.form(
  3074. "實時課堂",
  3075. $$("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 }), {
  3076. "id": "studentClassRoom",
  3077. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3078. "onresize": function () { }
  3079. }, {
  3080. closecallback: function () { }
  3081. }, { "style": { "height": "36px" } }).form; //創建窗體
  3082. _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); } }
  3083. setTimeout(() => {
  3084. U.UF.F.windowZooming(_formdiv)
  3085. }, 0);
  3086. break;
  3087. }
  3088. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  3089. //選擇應用處理
  3090. switch (str) {
  3091. case "project": //好友打開
  3092. _formdiv = new U.UF.UI.form(
  3093. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目' : "課程管理",
  3094. $$("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 }), {
  3095. "id": "project",
  3096. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3097. "onresize": function () { }
  3098. }, {
  3099. closecallback: function () { }
  3100. }, { "style": { "height": "36px" } }).form; //創建窗體
  3101. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目' : "課程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3102. break;
  3103. case "student":
  3104. _formdiv = new U.UF.UI.form(
  3105. "學生管理",
  3106. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org + "&role=" + _role }), {
  3107. "id": "student",
  3108. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3109. "onresize": function () { }
  3110. }, {
  3111. closecallback: function () { }
  3112. }, { "style": { "height": "36px" } }).form; //創建窗體
  3113. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "學生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3114. break;
  3115. case "evaluate":
  3116. _formdiv = new U.UF.UI.form(
  3117. "學生評價",
  3118. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3119. "id": "evaluate",
  3120. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3121. "onresize": function () { }
  3122. }, {
  3123. closecallback: function () { }
  3124. }, { "style": { "height": "36px" } }).form; //創建窗體
  3125. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "學生評價", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3126. break;
  3127. case "sys":
  3128. _formdiv = new U.UF.UI.form(
  3129. "目標管理",
  3130. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3131. "id": "sys",
  3132. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3133. "onresize": function () { }
  3134. }, {
  3135. closecallback: function () { }
  3136. }, { "style": { "height": "36px" } }).form; //創建窗體
  3137. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目標管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3138. break;
  3139. case "courseDesign":
  3140. _formdiv = new U.UF.UI.form(
  3141. "項目設計",
  3142. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3143. "id": "courseDesign",
  3144. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3145. "onresize": function () { }
  3146. }, {
  3147. closecallback: function () { }
  3148. }, { "style": { "height": "36px" } }).form; //創建窗體
  3149. _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); } }
  3150. break;
  3151. case "program":
  3152. _formdiv = new U.UF.UI.form(
  3153. "編程平臺",
  3154. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3155. "id": "program",
  3156. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3157. "onresize": function () { }
  3158. }, {
  3159. closecallback: function () { }
  3160. }, { "style": { "height": "36px" } }).form; //創建窗體
  3161. _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); } }
  3162. break;
  3163. case "class":
  3164. _formdiv = new U.UF.UI.form(
  3165. "班級管理",
  3166. $$("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 }), {
  3167. "id": "class",
  3168. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3169. "onresize": function () { }
  3170. }, {
  3171. closecallback: function () { }
  3172. }, { "style": { "height": "36px" } }).form; //創建窗體
  3173. _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); } }
  3174. break;
  3175. case "Grade":
  3176. _formdiv = new U.UF.UI.form(
  3177. "年級管理",
  3178. $$("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 }), {
  3179. "id": "Grade",
  3180. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3181. "onresize": function () { }
  3182. }, {
  3183. closecallback: function () { }
  3184. }, { "style": { "height": "36px" } }).form; //創建窗體
  3185. _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); } }
  3186. break;
  3187. case "teacherOffice":
  3188. _formdiv = new U.UF.UI.form(
  3189. "教研室",
  3190. $$("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 }), {
  3191. "id": "teacherOffice",
  3192. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3193. "onresize": function () { }
  3194. }, {
  3195. closecallback: function () { }
  3196. }, { "style": { "height": "36px" } }).form; //創建窗體
  3197. _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); } }
  3198. break;
  3199. case "my":
  3200. _formdiv = new U.UF.UI.form(
  3201. "我的資料",
  3202. $$("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 }), {
  3203. "id": "my",
  3204. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3205. "onresize": function () { }
  3206. }, {
  3207. closecallback: function () { }
  3208. }, { "style": { "height": "36px" } }).form; //創建窗體
  3209. _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); } }
  3210. break;
  3211. case "notice":
  3212. _formdiv = new U.UF.UI.form(
  3213. "通知公告",
  3214. $$("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 }), {
  3215. "id": "notice",
  3216. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3217. "onresize": function () { }
  3218. }, {
  3219. closecallback: function () { }
  3220. }, { "style": { "height": "36px" } }).form; //創建窗體
  3221. _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); } }
  3222. break;
  3223. case "library":
  3224. _formdiv = new U.UF.UI.form(
  3225. "素材庫",
  3226. $$("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 }), {
  3227. "id": "library",
  3228. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3229. "onresize": function () { }
  3230. }, {
  3231. closecallback: function () { }
  3232. }, { "style": { "height": "36px" } }).form; //創建窗體
  3233. _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); } }
  3234. break;
  3235. case "whiteboard":
  3236. _formdiv = new U.UF.UI.form(
  3237. "電子白板",
  3238. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3239. "id": "whiteboard",
  3240. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3241. "onresize": function () { }
  3242. }, {
  3243. closecallback: function () { }
  3244. }, { "style": { "height": "36px" } }).form; //創建窗體
  3245. _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); } }
  3246. break;
  3247. case "investigation":
  3248. _formdiv = new U.UF.UI.form(
  3249. "問卷調查",
  3250. $$("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 }), {
  3251. "id": "investigation",
  3252. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3253. "onresize": function () { }
  3254. }, {
  3255. closecallback: function () { }
  3256. }, { "style": { "height": "36px" } }).form; //創建窗體
  3257. _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); } }
  3258. break;
  3259. case "note":
  3260. _formdiv = new U.UF.UI.form(
  3261. "便簽分類",
  3262. $$("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 }), {
  3263. "id": "note",
  3264. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  3265. "onresize": function () { }
  3266. }, {
  3267. closecallback: function () { }
  3268. }, { "style": { "height": "36px" } }).form; //創建窗體
  3269. _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); } }
  3270. break;
  3271. // case "score":
  3272. // _formdiv = new U.UF.UI.form(
  3273. // "量規評分",
  3274. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  3275. // "id": "score",
  3276. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3277. // "onresize": function() {}
  3278. // }, {
  3279. // closecallback: function() {}
  3280. // }, { "style": { "height": "36px" } }).form; //創建窗體
  3281. // _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); } }
  3282. // break;
  3283. case "mind":
  3284. _formdiv = new U.UF.UI.form(
  3285. "思維導圖",
  3286. $$("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"
  3287. "id": "mind",
  3288. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3289. "onresize": function () { }
  3290. }, {
  3291. closecallback: function () { }
  3292. }, { "style": { "height": "36px" } }).form; //創建窗體
  3293. _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); } }
  3294. break;
  3295. case "doc":
  3296. // U.MD.D.I.isRoom();
  3297. _formdiv = new U.UF.UI.form(
  3298. "協同文檔",
  3299. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3300. "id": "doc",
  3301. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3302. "onresize": function () { }
  3303. }, {
  3304. closecallback: function () { }
  3305. }, { "style": { "height": "36px" } }).form; //創建窗體
  3306. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3307. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3308. })
  3309. _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); } }
  3310. break;
  3311. case "study":
  3312. _formdiv = new U.UF.UI.form(
  3313. "課程中心",
  3314. $$("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
  3315. "id": "study",
  3316. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3317. "onresize": function () { }
  3318. }, {
  3319. closecallback: function () { }
  3320. }, { "style": { "height": "36px" } }).form; //創建窗體
  3321. _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); } }
  3322. break;
  3323. case "mindNetwork": //好友打開
  3324. _formdiv = new U.UF.UI.form(
  3325. "思維網格",
  3326. $$("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 }), {
  3327. "id": "mindNetwork",
  3328. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3329. "onresize": function () { }
  3330. }, {
  3331. closecallback: function () { }
  3332. }, { "style": { "height": "36px" } }).form; //創建窗體
  3333. _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); } }
  3334. break;
  3335. case "train": //好友打開
  3336. _formdiv = new U.UF.UI.form(
  3337. "訓練平臺",
  3338. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3339. "id": "mindNetwork",
  3340. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3341. "onresize": function () { }
  3342. }, {
  3343. closecallback: function () { }
  3344. }, { "style": { "height": "36px" } }).form; //創建窗體
  3345. _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); } }
  3346. break;
  3347. case "teacherClassRoom": //好友打開
  3348. _formdiv = new U.UF.UI.form(
  3349. "實時課堂",
  3350. $$("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 }), {
  3351. "id": "teacherClassRoom",
  3352. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3353. "onresize": function () { }
  3354. }, {
  3355. closecallback: function () { }
  3356. }, { "style": { "height": "36px" } }).form; //創建窗體
  3357. _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); } }
  3358. setTimeout(() => {
  3359. U.UF.F.windowZooming(_formdiv)
  3360. }, 0);
  3361. break;
  3362. }
  3363. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  3364. switch (str) {
  3365. case "project": //好友打開
  3366. _formdiv = new U.UF.UI.form(
  3367. "課程管理",
  3368. $$("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 }), {
  3369. "id": "project",
  3370. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3371. "onresize": function () { }
  3372. }, {
  3373. closecallback: function () { }
  3374. }, { "style": { "height": "36px" } }).form; //創建窗體
  3375. _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); } }
  3376. break;
  3377. case "evaluate":
  3378. _formdiv = new U.UF.UI.form(
  3379. "學生評價",
  3380. $$("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 }), {
  3381. "id": "evaluate",
  3382. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3383. "onresize": function () { }
  3384. }, {
  3385. closecallback: function () { }
  3386. }, { "style": { "height": "36px" } }).form; //創建窗體
  3387. _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); } }
  3388. break;
  3389. case "notice":
  3390. _formdiv = new U.UF.UI.form(
  3391. "通知公告",
  3392. $$("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 }), {
  3393. "id": "notice",
  3394. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3395. "onresize": function () { }
  3396. }, {
  3397. closecallback: function () { }
  3398. }, { "style": { "height": "36px" } }).form; //創建窗體
  3399. _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); } }
  3400. break;
  3401. case "stuLibrary":
  3402. _formdiv = new U.UF.UI.form(
  3403. "學習資料",
  3404. $$("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 }), {
  3405. "id": "stuLibrary",
  3406. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3407. "onresize": function () { }
  3408. }, {
  3409. closecallback: function () { }
  3410. }, { "style": { "height": "36px" } }).form; //創建窗體
  3411. _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); } }
  3412. break;
  3413. case "program":
  3414. _formdiv = new U.UF.UI.form(
  3415. "編程平臺",
  3416. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3417. "id": "program",
  3418. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3419. "onresize": function () { }
  3420. }, {
  3421. closecallback: function () { }
  3422. }, { "style": { "height": "36px" } }).form; //創建窗體
  3423. _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); } }
  3424. break;
  3425. case "whiteboard":
  3426. _formdiv = new U.UF.UI.form(
  3427. "電子白板",
  3428. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3429. "id": "whiteboard",
  3430. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3431. "onresize": function () { }
  3432. }, {
  3433. closecallback: function () { }
  3434. }, { "style": { "height": "36px" } }).form; //創建窗體
  3435. _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); } }
  3436. break;
  3437. case "investigation":
  3438. _formdiv = new U.UF.UI.form(
  3439. "問卷調查",
  3440. $$("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 }), {
  3441. "id": "investigation",
  3442. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3443. "onresize": function () { }
  3444. }, {
  3445. closecallback: function () { }
  3446. }, { "style": { "height": "36px" } }).form; //創建窗體
  3447. _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); } }
  3448. break;
  3449. case "mind":
  3450. _formdiv = new U.UF.UI.form(
  3451. "思維導圖",
  3452. $$("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"
  3453. "id": "mind",
  3454. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3455. "onresize": function () { }
  3456. }, {
  3457. closecallback: function () { }
  3458. }, { "style": { "height": "36px" } }).form; //創建窗體
  3459. _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); } }
  3460. break;
  3461. case "doc":
  3462. // U.MD.D.I.isRoom();
  3463. _formdiv = new U.UF.UI.form(
  3464. "協同文檔",
  3465. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3466. "id": "doc",
  3467. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3468. "onresize": function () { }
  3469. }, {
  3470. closecallback: function () { }
  3471. }, { "style": { "height": "36px" } }).form; //創建窗體
  3472. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3473. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3474. })
  3475. _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); } }
  3476. break;
  3477. case "study":
  3478. _formdiv = new U.UF.UI.form(
  3479. "課程中心",
  3480. $$("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
  3481. "id": "study",
  3482. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3483. "onresize": function () { }
  3484. }, {
  3485. closecallback: function () { }
  3486. }, { "style": { "height": "36px" } }).form; //創建窗體
  3487. _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); } }
  3488. break;
  3489. case "mindNetwork": //好友打開
  3490. _formdiv = new U.UF.UI.form(
  3491. "思維網格",
  3492. $$("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 }), {
  3493. "id": "mindNetwork",
  3494. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3495. "onresize": function () { }
  3496. }, {
  3497. closecallback: function () { }
  3498. }, { "style": { "height": "36px" } }).form; //創建窗體
  3499. _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); } }
  3500. break;
  3501. case "train": //好友打開
  3502. _formdiv = new U.UF.UI.form(
  3503. "訓練平臺",
  3504. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3505. "id": "train",
  3506. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3507. "onresize": function () { }
  3508. }, {
  3509. closecallback: function () { }
  3510. }, { "style": { "height": "36px" } }).form; //創建窗體
  3511. _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); } }
  3512. break;
  3513. case "sys":
  3514. _formdiv = new U.UF.UI.form(
  3515. "目標管理",
  3516. $$("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 }), {
  3517. "id": "sys",
  3518. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3519. "onresize": function () { }
  3520. }, {
  3521. closecallback: function () { }
  3522. }, { "style": { "height": "36px" } }).form; //創建窗體
  3523. _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); } }
  3524. break;
  3525. case "courseDesign":
  3526. _formdiv = new U.UF.UI.form(
  3527. "項目設計",
  3528. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3529. "id": "courseDesign",
  3530. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3531. "onresize": function () { }
  3532. }, {
  3533. closecallback: function () { }
  3534. }, { "style": { "height": "36px" } }).form; //創建窗體
  3535. _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); } }
  3536. break;
  3537. }
  3538. } else if (!_type) {
  3539. switch (str) {
  3540. case "my":
  3541. _formdiv = new U.UF.UI.form(
  3542. "我的資料",
  3543. $$("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 }), {
  3544. "id": "my",
  3545. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3546. "onresize": function () { }
  3547. }, {
  3548. closecallback: function () { }
  3549. }, { "style": { "height": "36px" } }).form; //創建窗體
  3550. _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); } }
  3551. break;
  3552. }
  3553. }
  3554. switch (str) {
  3555. // AIprogram2 AI體驗 aihub.cocorobo.cn
  3556. // Pythonprogram Python編程 python-blockly.cocorobo.cn
  3557. // AIprogram AI編程 ai-blockly.cocorobo.cn
  3558. case "formulaEdi": //公式編輯
  3559. _formdiv = new U.UF.UI.form(
  3560. "公式編輯",
  3561. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.latexlive.com/" }), {
  3562. "id": "formulaEdi",
  3563. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3564. "onresize": function () { }
  3565. }, {
  3566. closecallback: function () { }
  3567. }, { "style": { "height": "36px" } }).form; //創建窗體
  3568. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/formulaEdi.png)" }, "name": "公式編輯", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3569. break;
  3570. case "molStr": //分子結構
  3571. _formdiv = new U.UF.UI.form(
  3572. "分子結構",
  3573. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://molview.org/" }), {
  3574. "id": "molStr",
  3575. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3576. "onresize": function () { }
  3577. }, {
  3578. closecallback: function () { }
  3579. }, { "style": { "height": "36px" } }).form; //創建窗體
  3580. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/molStr.png)" }, "name": "分子結構", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3581. break;
  3582. case "timeAxis": //時間軸
  3583. _formdiv = new U.UF.UI.form(
  3584. "時間軸",
  3585. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://time.graphics/editor" }), {
  3586. "id": "timeAxis",
  3587. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3588. "onresize": function () { }
  3589. }, {
  3590. closecallback: function () { }
  3591. }, { "style": { "height": "36px" } }).form; //創建窗體
  3592. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/timeAxis.png)" }, "name": "時間軸", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3593. break;
  3594. case "AIprogram2": //AI體驗
  3595. _formdiv = new U.UF.UI.form(
  3596. "AI體驗",
  3597. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3598. "id": "AIprogram2",
  3599. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3600. "onresize": function () { }
  3601. }, {
  3602. closecallback: function () { }
  3603. }, { "style": { "height": "36px" } }).form; //創建窗體
  3604. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram2.png)" }, "name": "AI體驗", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3605. break;
  3606. case "Pythonprogram": //python編程
  3607. _formdiv = new U.UF.UI.form(
  3608. "Python編程",
  3609. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3610. "id": "Pythonprogram",
  3611. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3612. "onresize": function () { }
  3613. }, {
  3614. closecallback: function () { }
  3615. }, { "style": { "height": "36px" } }).form; //創建窗體
  3616. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Pythonprogram.png)" }, "name": "Python編程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3617. break;
  3618. case "AIprogram": //ai編程
  3619. _formdiv = new U.UF.UI.form(
  3620. "AI編程平臺",
  3621. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3622. "id": "AIprogram",
  3623. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3624. "onresize": function () { }
  3625. }, {
  3626. closecallback: function () { }
  3627. }, { "style": { "height": "36px" } }).form; //創建窗體
  3628. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram.png)" }, "name": "AI編程平臺", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3629. break;
  3630. case "CocoPi": //CocoPi
  3631. _formdiv = new U.UF.UI.form(
  3632. "CocoPi",
  3633. $$("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" }), {
  3634. "id": "CocoPi",
  3635. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3636. "onresize": function () { }
  3637. }, {
  3638. closecallback: function () { }
  3639. }, { "style": { "height": "36px" } }).form; //創建窗體
  3640. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/cocopi.png)" }, "name": "CocoPi", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3641. break;
  3642. case "Wood": //Wood
  3643. _formdiv = new U.UF.UI.form(
  3644. "海龜編程",
  3645. $$("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/" }), {
  3646. "id": "Wood",
  3647. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3648. "onresize": function () { }
  3649. }, {
  3650. closecallback: function () { }
  3651. }, { "style": { "height": "36px" } }).form; //創建窗體
  3652. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Wood.png)" }, "name": "海龜編程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3653. break;
  3654. case "car": //模擬駕駛
  3655. _formdiv = new U.UF.UI.form(
  3656. "模擬駕駛",
  3657. $$("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/" }), {
  3658. "id": "car",
  3659. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3660. "onresize": function () { }
  3661. }, {
  3662. closecallback: function () { }
  3663. }, { "style": { "height": "36px" } }).form; //創建窗體
  3664. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/car.png)" }, "name": "模擬駕駛", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3665. break;
  3666. case "lineSearch": //路徑搜索
  3667. _formdiv = new U.UF.UI.form(
  3668. "路徑搜索",
  3669. $$("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/" }), {
  3670. "id": "lineSearch",
  3671. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3672. "onresize": function () { }
  3673. }, {
  3674. closecallback: function () { }
  3675. }, { "style": { "height": "36px" } }).form; //創建窗體
  3676. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/lineSearch.png)" }, "name": "路徑搜索", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3677. break;
  3678. case "deepLearning": //深度學習
  3679. _formdiv = new U.UF.UI.form(
  3680. "深度學習",
  3681. $$("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/#" }), {
  3682. "id": "deepLearning",
  3683. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3684. "onresize": function () { }
  3685. }, {
  3686. closecallback: function () { }
  3687. }, { "style": { "height": "36px" } }).form; //創建窗體
  3688. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/deepLearning.png)" }, "name": "深度學習", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3689. break;
  3690. case "allHistory": //深度學習
  3691. _formdiv = new U.UF.UI.form(
  3692. "全歷史",
  3693. $$("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/" }), {
  3694. "id": "allHistory",
  3695. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3696. "onresize": function () { }
  3697. }, {
  3698. closecallback: function () { }
  3699. }, { "style": { "height": "36px" } }).form; //創建窗體
  3700. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/allHistory.png)" }, "name": "全歷史", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3701. break;
  3702. case "chatPDF": //ai編程
  3703. _formdiv = new U.UF.UI.form(
  3704. "chatPDF",
  3705. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3706. "id": "chatPDF",
  3707. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3708. "onresize": function () { }
  3709. }, {
  3710. closecallback: function () { }
  3711. }, { "style": { "height": "36px" } }).form; //創建窗體
  3712. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/chatPDF.png)" }, "name": "chatPDF", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3713. break;
  3714. case "resources": //國家教育
  3715. _formdiv = new U.UF.UI.form(
  3716. "國家教育",
  3717. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3718. "id": "resources",
  3719. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3720. "onresize": function () { }
  3721. }, {
  3722. closecallback: function () { }
  3723. }, { "style": { "height": "36px" } }).form; //創建窗體
  3724. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/resources.png)" }, "name": "國家教育", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3725. break;
  3726. case "codeEdit": //源碼編輯
  3727. _formdiv = new U.UF.UI.form(
  3728. "源碼編輯",
  3729. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3730. "id": "codeEdit",
  3731. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3732. "onresize": function () { }
  3733. }, {
  3734. closecallback: function () { }
  3735. }, { "style": { "height": "36px" } }).form; //創建窗體
  3736. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/code.png)" }, "name": "源碼編輯", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3737. break; //
  3738. case "MindMap": //MindMap
  3739. _formdiv = new U.UF.UI.form(
  3740. "MindMap",
  3741. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3742. "id": "MindMap",
  3743. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3744. "onresize": function () { }
  3745. }, {
  3746. closecallback: function () { }
  3747. }, { "style": { "height": "36px" } }).form; //創建窗體
  3748. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/MIndMap.png)" }, "name": "MindMap", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3749. break;
  3750. case "netWorkPanel": //netWorkPanel
  3751. _formdiv = new U.UF.UI.form(
  3752. "netWorkPanel",
  3753. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3754. "id": "netWorkPanel",
  3755. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3756. "onresize": function () { }
  3757. }, {
  3758. closecallback: function () { }
  3759. }, { "style": { "height": "36px" } }).form; //創建窗體
  3760. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/netWorkPanel.png)" }, "name": "netWorkPanel", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3761. break;
  3762. case "GeoGebra": //GeoGebra
  3763. _formdiv = new U.UF.UI.form(
  3764. "GeoGebra",
  3765. $$("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" }), {
  3766. "id": "GeoGebra",
  3767. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3768. "onresize": function () { }
  3769. }, {
  3770. closecallback: function () { }
  3771. }, { "style": { "height": "36px" } }).form; //創建窗體
  3772. _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); } }
  3773. break;
  3774. case "translation": //翻譯
  3775. _formdiv = new U.UF.UI.form(
  3776. "翻譯",
  3777. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3778. "id": "translation",
  3779. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3780. "onresize": function () { }
  3781. }, {
  3782. closecallback: function () { }
  3783. }, { "style": { "height": "36px" } }).form; //創建窗體
  3784. _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); } }
  3785. break;
  3786. case "mohe": //魔盒
  3787. _formdiv = new U.UF.UI.form(
  3788. "魔盒識字",
  3789. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3790. "id": "mohe",
  3791. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3792. "onresize": function () { }
  3793. }, {
  3794. closecallback: function () { }
  3795. }, { "style": { "height": "36px" } }).form; //創建窗體
  3796. _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); } }
  3797. break;
  3798. case "24game": //24點
  3799. _formdiv = new U.UF.UI.form(
  3800. "24點",
  3801. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3802. "id": "24game",
  3803. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3804. "onresize": function () { }
  3805. }, {
  3806. closecallback: function () { }
  3807. }, { "style": { "height": "36px" } }).form; //創建窗體
  3808. _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); } }
  3809. break;
  3810. case "case":
  3811. _formdiv = new U.UF.UI.form(
  3812. "課程進展",
  3813. $$("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 }), {
  3814. "id": "case",
  3815. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3816. "onresize": function () { }
  3817. }, {
  3818. closecallback: function () { }
  3819. }, { "style": { "height": "36px" } }).form; //創建窗體
  3820. _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); } }
  3821. break;
  3822. case "snf":
  3823. _formdiv = new U.UF.UI.form(
  3824. "賽諾梵",
  3825. $$("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" }), {
  3826. "id": "snf",
  3827. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3828. "onresize": function () { }
  3829. }, {
  3830. closecallback: function () { }
  3831. }, { "style": { "height": "36px" } }).form; //創建窗體
  3832. _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); } }
  3833. break;
  3834. case "hanFamily":
  3835. _formdiv = new U.UF.UI.form(
  3836. "漢字家族",
  3837. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3838. "id": "hanFamily",
  3839. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3840. "onresize": function () { }
  3841. }, {
  3842. closecallback: function () { }
  3843. }, { "style": { "height": "36px" } }).form; //創建窗體
  3844. _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); } }
  3845. break;
  3846. case "hanClassics":
  3847. _formdiv = new U.UF.UI.form(
  3848. "國學經典",
  3849. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3850. "id": "hanClassics",
  3851. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3852. "onresize": function () { }
  3853. }, {
  3854. closecallback: function () { }
  3855. }, { "style": { "height": "36px" } }).form; //創建窗體
  3856. _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); } }
  3857. break;
  3858. case "hanTraining":
  3859. _formdiv = new U.UF.UI.form(
  3860. "筆畫訓練",
  3861. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3862. "id": "hanTraining",
  3863. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3864. "onresize": function () { }
  3865. }, {
  3866. closecallback: function () { }
  3867. }, { "style": { "height": "36px" } }).form; //創建窗體
  3868. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanTraining.png)" }, "name": "筆畫訓練", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3869. break;
  3870. case "hanClass":
  3871. _formdiv = new U.UF.UI.form(
  3872. "書法課堂",
  3873. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3874. "id": "hanClass",
  3875. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3876. "onresize": function () { }
  3877. }, {
  3878. closecallback: function () { }
  3879. }, { "style": { "height": "36px" } }).form; //創建窗體
  3880. _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); } }
  3881. break;
  3882. case "han":
  3883. _formdiv = new U.UF.UI.form(
  3884. "漢字宮",
  3885. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3886. "id": "han",
  3887. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3888. "onresize": function () { }
  3889. }, {
  3890. closecallback: function () { }
  3891. }, { "style": { "height": "36px" } }).form; //創建窗體
  3892. _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); } }
  3893. break;
  3894. case "projectGM": //課程管理
  3895. _formdiv = new U.UF.UI.form(
  3896. "課程管理",
  3897. $$("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 }), {
  3898. "id": "projectGM",
  3899. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3900. "onresize": function () { }
  3901. }, {
  3902. closecallback: function () { }
  3903. }, { "style": { "height": "36px" } }).form; //創建窗體
  3904. _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); } }
  3905. break;
  3906. case "studyGM": //課程中心
  3907. _formdiv = new U.UF.UI.form(
  3908. "課程中心",
  3909. $$("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
  3910. "id": "study",
  3911. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3912. "onresize": function () { }
  3913. }, {
  3914. closecallback: function () { }
  3915. }, { "style": { "height": "36px" } }).form; //創建窗體
  3916. _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); } }
  3917. break;
  3918. // studentGM
  3919. case "studentGM": //學生管理
  3920. _formdiv = new U.UF.UI.form(
  3921. "學生管理",
  3922. $$("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 }), {
  3923. "id": "studentGM",
  3924. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3925. "onresize": function () { }
  3926. }, {
  3927. closecallback: function () { }
  3928. }, { "style": { "height": "36px" } }).form; //創建窗體
  3929. _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); } }
  3930. break;
  3931. case "evaluateGM": //學生評價
  3932. _formdiv = new U.UF.UI.form(
  3933. "學生評價",
  3934. $$("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 }), {
  3935. "id": "evaluateGM",
  3936. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3937. "onresize": function () { }
  3938. }, {
  3939. closecallback: function () { }
  3940. }, { "style": { "height": "36px" } }).form; //創建窗體
  3941. _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); } }
  3942. break;
  3943. // classGM
  3944. case "classGM": //班級管理
  3945. _formdiv = new U.UF.UI.form(
  3946. "班級管理",
  3947. $$("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 }), {
  3948. "id": "classGM",
  3949. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3950. "onresize": function () { }
  3951. }, {
  3952. closecallback: function () { }
  3953. }, { "style": { "height": "36px" } }).form; //創建窗體
  3954. _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); } }
  3955. break;
  3956. // dataGM
  3957. case "dataGM":
  3958. _formdiv = new U.UF.UI.form(
  3959. "我的資料",
  3960. $$("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 }), {
  3961. "id": "dataGM",
  3962. "style": { "width": "42%", "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/gm/data.png)" }, "name": "我的資料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3968. break;
  3969. // caseGM
  3970. case "caseGM": //課程進展
  3971. _formdiv = new U.UF.UI.form(
  3972. "課程進展",
  3973. $$("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 }), {
  3974. "id": "caseGM",
  3975. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3976. "onresize": function () { }
  3977. }, {
  3978. closecallback: function () { }
  3979. }, { "style": { "height": "36px" } }).form; //創建窗體
  3980. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/case.png)" }, "name": "課程進展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3981. break;
  3982. // meterialGM
  3983. case "meterialGM": //素材庫
  3984. _formdiv = new U.UF.UI.form(
  3985. "素材庫",
  3986. $$("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 }), {
  3987. "id": "meterialGM",
  3988. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3989. "onresize": function () { }
  3990. }, {
  3991. closecallback: function () { }
  3992. }, { "style": { "height": "36px" } }).form; //創建窗體
  3993. _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); } }
  3994. break;
  3995. // evaluateSGM
  3996. case "evaluateSGM": //我的評價
  3997. _formdiv = new U.UF.UI.form(
  3998. "我的評價",
  3999. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  4000. "id": "evaluateSGM",
  4001. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  4002. "onresize": function () { }
  4003. }, {
  4004. closecallback: function () { }
  4005. }, { "style": { "height": "36px" } }).form; //創建窗體
  4006. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/evaluate.png)" }, "name": "我的評價", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4007. break;
  4008. case "jupyter": //jupyter
  4009. _formdiv = new U.UF.UI.form(
  4010. "jupyter",
  4011. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  4012. "id": "jupyter",
  4013. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4014. "onresize": function () { }
  4015. }, {
  4016. closecallback: function () { }
  4017. }, { "style": { "height": "36px" } }).form; //創建窗體
  4018. _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); } }
  4019. break;
  4020. case "number": //數字實驗室
  4021. _formdiv = new U.UF.UI.form(
  4022. "數字實驗室",
  4023. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  4024. "id": "number",
  4025. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4026. "onresize": function () { }
  4027. }, {
  4028. closecallback: function () { }
  4029. }, { "style": { "height": "36px" } }).form; //創建窗體
  4030. _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); } }
  4031. break;
  4032. case "studentCourse": //項目管理 學生
  4033. _formdiv = new U.UF.UI.form(
  4034. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  4035. $$("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 }), {
  4036. "id": "studentCourse",
  4037. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4038. "onresize": function () { }
  4039. }, {
  4040. closecallback: function () { }
  4041. }, { "style": { "height": "36px" } }).form; //創建窗體
  4042. _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); } }
  4043. break;
  4044. case "studentCourseS": //項目管理 老師
  4045. _formdiv = new U.UF.UI.form(
  4046. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  4047. $$("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 }), {
  4048. "id": "studentCourseS",
  4049. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4050. "onresize": function () { }
  4051. }, {
  4052. closecallback: function () { }
  4053. }, { "style": { "height": "36px" } }).form; //創建窗體
  4054. _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); } }
  4055. break;
  4056. case "studentIndex": //項目中心
  4057. _formdiv = new U.UF.UI.form(
  4058. "項目中心",
  4059. $$("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 }), {
  4060. "id": "studentIndex",
  4061. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4062. "onresize": function () { }
  4063. }, {
  4064. closecallback: function () { }
  4065. }, { "style": { "height": "36px" } }).form; //創建窗體
  4066. _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); } }
  4067. break;
  4068. case "CaseDesignS":
  4069. _formdiv = new U.UF.UI.form(
  4070. "項目進展",
  4071. $$("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 }), {
  4072. "id": "case",
  4073. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4074. "onresize": function () { }
  4075. }, {
  4076. closecallback: function () { }
  4077. }, { "style": { "height": "36px" } }).form; //創建窗體
  4078. _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); } }
  4079. break;
  4080. case "tcStudent": //騰訊學生管理
  4081. _formdiv = new U.UF.UI.form(
  4082. "學生管理",
  4083. $$("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 }), {
  4084. "id": "tcStudent",
  4085. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4086. "onresize": function () { }
  4087. }, {
  4088. closecallback: function () { }
  4089. }, { "style": { "height": "36px" } }).form; //創建窗體
  4090. _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); } }
  4091. break;
  4092. case "tcSchool": //騰訊學校管理
  4093. _formdiv = new U.UF.UI.form(
  4094. "學校管理",
  4095. $$("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 }), {
  4096. "id": "tcSchool",
  4097. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4098. "onresize": function () { }
  4099. }, {
  4100. closecallback: function () { }
  4101. }, { "style": { "height": "36px" } }).form; //創建窗體
  4102. _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); } }
  4103. break;
  4104. case "tcTeacher": //騰訊學校管理
  4105. _formdiv = new U.UF.UI.form(
  4106. "教師管理",
  4107. $$("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 }), {
  4108. "id": "tcTeacher",
  4109. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4110. "onresize": function () { }
  4111. }, {
  4112. closecallback: function () { }
  4113. }, { "style": { "height": "36px" } }).form; //創建窗體
  4114. _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); } }
  4115. break;
  4116. case "tcData": //騰訊我的資料
  4117. _formdiv = new U.UF.UI.form(
  4118. "我的資料",
  4119. $$("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 }), {
  4120. "id": "tcData",
  4121. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  4122. "onresize": function () { }
  4123. }, {
  4124. closecallback: function () { }
  4125. }, { "style": { "height": "36px" } }).form; //創建窗體
  4126. _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); } }
  4127. break;
  4128. case "tcNotice": //騰訊消息通知
  4129. _formdiv = new U.UF.UI.form(
  4130. "消息通知",
  4131. $$("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 }), {
  4132. "id": "tcNotice",
  4133. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4134. "onresize": function () { }
  4135. }, {
  4136. closecallback: function () { }
  4137. }, { "style": { "height": "36px" } }).form; //創建窗體
  4138. _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); } }
  4139. break;
  4140. case "myReport": //好友打開
  4141. _formdiv = new U.UF.UI.form(
  4142. "我的評價",
  4143. $$("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 }), {
  4144. "id": "myReport",
  4145. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4146. "onresize": function () { }
  4147. }, {
  4148. closecallback: function () { }
  4149. }, { "style": { "height": "36px" } }).form; //創建窗體
  4150. _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); } }
  4151. break;
  4152. case "learnAna": //好友打開
  4153. _formdiv = new U.UF.UI.form(
  4154. "學習分析",
  4155. $$("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 }), {
  4156. "id": "learnAna",
  4157. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4158. "onresize": function () { }
  4159. }, {
  4160. closecallback: function () { }
  4161. }, { "style": { "height": "36px" } }).form; //創建窗體
  4162. _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); } }
  4163. break;
  4164. case "AIChat": //AI共創
  4165. _formdiv = new U.UF.UI.form(
  4166. "AI共創",
  4167. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/aichat/" }), {
  4168. "id": "AIChat",
  4169. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  4170. "onresize": function () { }
  4171. }, {
  4172. istop: true,
  4173. closecallback: function () { $("#aichat_icon").remove(); },
  4174. narrowcallback: function () {
  4175. if (!$("#aichat_icon")[0]) {
  4176. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  4177. }
  4178. },
  4179. }, { "style": { "height": "36px" } }).form; //創建窗體
  4180. _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); } }
  4181. break;
  4182. case "ainew": //AI共創
  4183. _formdiv = new U.UF.UI.form(
  4184. "AI協同",
  4185. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ainew/" }), {
  4186. "id": "ainew",
  4187. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4188. "onresize": function () { }
  4189. }, {
  4190. closecallback: function () { }
  4191. }, { "style": { "height": "36px" } }).form; //創建窗體
  4192. _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); } }
  4193. break;
  4194. case "futureClass": //AI共創
  4195. _formdiv = new U.UF.UI.form(
  4196. "協同建構",
  4197. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/synergyCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {//https://cscl.cocorobo.cn
  4198. "id": "synergyCourse",
  4199. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4200. "onresize": function () { }
  4201. }, {
  4202. closecallback: function () { }
  4203. }, { "style": { "height": "36px" } }).form; //創建窗體
  4204. _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); } }
  4205. break;
  4206. case "dataBoard": //數據看板
  4207. _formdiv = new U.UF.UI.form(
  4208. "數據看板",
  4209. $$("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 }), {
  4210. "id": "dataBoard",
  4211. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4212. "onresize": function () { }
  4213. }, {
  4214. closecallback: function () { }
  4215. }, { "style": { "height": "36px" } }).form; //創建窗體
  4216. _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); } }
  4217. break;
  4218. case "AIAnalyse": //AI共創
  4219. _formdiv = new U.UF.UI.form(
  4220. "AI分析",
  4221. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ai/" }), {
  4222. "id": "AIAnalyse",
  4223. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4224. "onresize": function () { }
  4225. }, {
  4226. closecallback: function () { }
  4227. }, { "style": { "height": "36px" } }).form; //創建窗體
  4228. _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); } }
  4229. break;
  4230. case "studioCourse": //AI共創
  4231. _formdiv = new U.UF.UI.form(
  4232. "工作管理",
  4233. $$("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 }), {
  4234. "id": "studioCourse",
  4235. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4236. "onresize": function () { }
  4237. }, {
  4238. closecallback: function () { }
  4239. }, { "style": { "height": "36px" } }).form; //創建窗體
  4240. _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); } }
  4241. break;
  4242. case "studioIndex": //AI共創
  4243. _formdiv = new U.UF.UI.form(
  4244. "工作中心",
  4245. $$("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 }), {
  4246. "id": "studioIndex",
  4247. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4248. "onresize": function () { }
  4249. }, {
  4250. closecallback: function () { }
  4251. }, { "style": { "height": "36px" } }).form; //創建窗體
  4252. _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); } }
  4253. break;
  4254. case "source":
  4255. _formdiv = new U.UF.UI.form(
  4256. "教學資源",
  4257. $$("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 }), {
  4258. "id": "source",
  4259. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4260. "onresize": function () { }
  4261. }, {
  4262. closecallback: function () { }
  4263. }, { "style": { "height": "36px" } }).form; //創建窗體
  4264. _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); } }
  4265. break;
  4266. case "testTeacher":
  4267. _formdiv = new U.UF.UI.form(
  4268. "評測管理",
  4269. $$("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 }), {
  4270. "id": "testTeacher",
  4271. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4272. "onresize": function () { }
  4273. }, {
  4274. closecallback: function () { }
  4275. }, { "style": { "height": "36px" } }).form; //創建窗體
  4276. _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); } }
  4277. break;
  4278. case "testStudent":
  4279. _formdiv = new U.UF.UI.form(
  4280. "評測中心",
  4281. $$("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 }), {
  4282. "id": "testStudent",
  4283. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4284. "onresize": function () { }
  4285. }, {
  4286. closecallback: function () { }
  4287. }, { "style": { "height": "36px" } }).form; //創建窗體
  4288. _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); } }
  4289. break;
  4290. }
  4291. //U.MD.D.I.openClick(str);
  4292. //如果有任務欄信息
  4293. if (_taskbar) {
  4294. U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4295. }
  4296. }
  4297. // U.MD.D.I.openClick = function(str){
  4298. // var click = '';
  4299. // switch(str){
  4300. // case 'friend':
  4301. // click = '我的好友';
  4302. // break;
  4303. // case 'domain':
  4304. // click = '域名管理';
  4305. // break;
  4306. // case 'disk':
  4307. // click = '我的雲盤';
  4308. // break;
  4309. // case 'word':
  4310. // click = 'Word';
  4311. // break;
  4312. // case 'excel':
  4313. // click = 'Execl';
  4314. // break;
  4315. // case 'txt':
  4316. // click = '文本文件';
  4317. // break;
  4318. // case 'lookupFriend':
  4319. // click = '查找好友';
  4320. // break;
  4321. // case 'ftp':
  4322. // click = 'FTP';
  4323. // break;
  4324. // case 'group':
  4325. // click = '群組';
  4326. // break;
  4327. // case 'set':
  4328. // click = '我的設置';
  4329. // break;
  4330. // case 'systemSet':
  4331. // click = '系統設置';
  4332. // break;
  4333. // case 'boomYun':
  4334. // click = '互聯辦公';
  4335. // break;
  4336. // case 'xz':
  4337. // click = '雲端下載';
  4338. // break;
  4339. // case 'client':
  4340. // click = '有思瀏覽器';
  4341. // break;
  4342. // case 'backEndProgramming':
  4343. // click = '在線後臺編程';
  4344. // break;
  4345. // case 'frontEndProgramming':
  4346. // click = '在線前端編程';
  4347. // break;
  4348. // default: break;
  4349. // }
  4350. // if(U.MD.D.I.Ip && click){
  4351. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  4352. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  4353. // })
  4354. // }
  4355. // }
  4356. /**
  4357. *函數作用:ajax簡易函數,使用post格式
  4358. *@param url {data} 後臺地址
  4359. *@param data {data} 參數json
  4360. *@param fn {data} 回調函數
  4361. *
  4362. */
  4363. // U.MD.D.I.Mysqlrequest = function(url,fn){
  4364. // var xhr = new XMLHttpRequest();
  4365. // xhr.open("GET",url,true);
  4366. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  4367. // xhr.onreadystatechange = function(){
  4368. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  4369. // fn.call(this,xhr.responseText);
  4370. // }
  4371. // };
  4372. // xhr.send();
  4373. // }
  4374. /*判斷是否是內網IP*/
  4375. // U.MD.D.I.isInnerIPFn = function(str){
  4376. // var curPageUrl = str;
  4377. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前綴
  4378. // curPageUrl =curPageUrl.replace(reg1,'');
  4379. // // console.log('curPageUrl-1 '+curPageUrl);
  4380. // var reg2 = /\:+/g;//替換冒號為一點
  4381. // curPageUrl =curPageUrl.replace(reg2,'.');
  4382. // // console.log('curPageUrl-2 '+curPageUrl);
  4383. // curPageUrl = curPageUrl.split('.');//通過一點來劃分數組
  4384. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  4385. // if(curPageUrl[2] != '16'){
  4386. // return ipAddress;
  4387. // }else{
  4388. // return false;
  4389. // }
  4390. // }
  4391. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  4392. // //compatibility for firefox and chrome
  4393. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  4394. // var pc = new myPeerConnection({
  4395. // iceServers: []
  4396. // }),
  4397. // noop = function() {},
  4398. // localIPs = {},
  4399. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  4400. // key;
  4401. // function iterateIP(ip) {
  4402. // if (!localIPs[ip]) onNewIP(ip);
  4403. // localIPs[ip] = true;
  4404. // }
  4405. // //create a bogus data channel
  4406. // pc.createDataChannel("");
  4407. // // create offer and set local description
  4408. // pc.createOffer().then(function(sdp) {
  4409. // sdp.sdp.split('\n').forEach(function(line) {
  4410. // if (line.indexOf('candidate') < 0) return;
  4411. // line.match(ipRegex).forEach(iterateIP);
  4412. // });
  4413. // pc.setLocalDescription(sdp, noop, noop);
  4414. // }).catch(function(reason) {
  4415. // // An error occurred, so handle the failure to connect
  4416. // });
  4417. // //sten for candidate events
  4418. // pc.onicecandidate = function(ice) {
  4419. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  4420. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  4421. // };
  4422. // }
  4423. // U.MD.D.I.getUserIpBool = function(callback){
  4424. // U.MD.D.I.getUserIP(function(ip){
  4425. // alert("Got IP! :" + ip);
  4426. // });
  4427. //}
  4428. //#endregion
  4429. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  4430. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4431. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4432. _userinfo = US.userInfo, //登錄用戶信息
  4433. _userid = US.userInfo.userid //登錄用戶id
  4434. let _iframe;
  4435. let _cid = cid,
  4436. _stage = stage,
  4437. _task = task,
  4438. _tool = tool;
  4439. var _jie = $$("div", {
  4440. "style": {
  4441. "position": "absolute",
  4442. "bottom": "50px",
  4443. "right": "50px",
  4444. "zIndex": "9999",
  4445. "backgroundColor": "#2268bc",
  4446. "color": "#fff",
  4447. "padding": "12px 20px",
  4448. "cursor": "pointer",
  4449. "borderRadius": "4px",
  4450. },
  4451. "innerHTML": "提交作業"
  4452. })
  4453. let aTool = ''
  4454. let _loading = document.createElement('div')
  4455. _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;"
  4456. // _loading.id = "";
  4457. let _lchild = document.createElement('div')
  4458. let _limg = document.createElement('img')
  4459. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4460. _limg.style = "width: 26px;margin-right: 10px;"
  4461. _lchild.appendChild(_limg)
  4462. let _lspan = document.createElement('span')
  4463. _lspan.innerHTML = "上傳中..."
  4464. _lchild.appendChild(_lspan)
  4465. _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%);"
  4466. _loading.appendChild(_lchild)
  4467. var _box = $$('div', {
  4468. "style": {
  4469. "position": "relative",
  4470. "width": "100%",
  4471. "height": "100%",
  4472. },
  4473. })
  4474. _box.appendChild(_loading)
  4475. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool + _userid
  4476. switch (str) {
  4477. case "whiteboard":
  4478. aTool = 1;
  4479. _iframe = $$("iframe", {
  4480. "frameborder": "no",
  4481. "border": "0",
  4482. "scrolling ": "no",
  4483. "style": {
  4484. "cssText": "border:0;width:100%;height:100%"
  4485. },
  4486. "src": "https://iwb.cocorobo.hk/"
  4487. })
  4488. _box.appendChild(_iframe);
  4489. _box.appendChild(_jie);
  4490. _formdiv = new U.UF.UI.form(
  4491. "電子白板",
  4492. _box, {
  4493. "id": "whiteboard" + cid + stage + task + tool,
  4494. "style": {
  4495. "width": "90%",
  4496. "height": "90%",
  4497. "overflow": 'hidden'
  4498. },
  4499. "onresize": function () { }
  4500. }, {
  4501. closecallback: function () { }
  4502. }, {
  4503. "style": {
  4504. "height": "36px"
  4505. }
  4506. }).form; //創建窗體
  4507. _taskbar = {
  4508. "id": str + _formdiv.id,
  4509. "style": {
  4510. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4511. },
  4512. "name": "電子白板",
  4513. "forms": _formdiv,
  4514. "click": function () {
  4515. U.MD.D.I.openApplication(str, obj, info);
  4516. }
  4517. }
  4518. break;
  4519. case "mind":
  4520. aTool = 3;
  4521. _iframe = $$("iframe", {
  4522. "frameborder": "no",
  4523. "border": "0",
  4524. "scrolling ": "no",
  4525. "style": {
  4526. "cssText": "border:0;width:100%;height:100%"
  4527. },
  4528. "src": "/kityminder-editor/dist/index.html"
  4529. })
  4530. _box.appendChild(_iframe);
  4531. _box.appendChild(_jie);
  4532. _formdiv = new U.UF.UI.form(
  4533. "思維導圖",
  4534. _box, { //"/jsmind/example/demo.html"
  4535. "id": "mind" + cid + stage + task + tool,
  4536. "style": {
  4537. "width": "90%",
  4538. "height": "90%",
  4539. "overflow": 'hidden'
  4540. },
  4541. "onresize": function () { }
  4542. }, {
  4543. closecallback: function () { }
  4544. }, {
  4545. "style": {
  4546. "height": "36px"
  4547. }
  4548. }).form; //創建窗體
  4549. _taskbar = {
  4550. "id": str + _formdiv.id,
  4551. "style": {
  4552. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4553. },
  4554. "name": "思維導圖",
  4555. "forms": _formdiv,
  4556. "click": function () {
  4557. U.MD.D.I.openApplication(str, obj, info);
  4558. }
  4559. }
  4560. break;
  4561. case "MindMap":
  4562. aTool = 3;
  4563. _iframe = $$("iframe", {
  4564. "frameborder": "no",
  4565. "border": "0",
  4566. "scrolling ": "no",
  4567. "style": {
  4568. "cssText": "border:0;width:100%;height:100%"
  4569. },
  4570. "src": "//cloud.cocorobo.hk/mind/"
  4571. })
  4572. _box.appendChild(_iframe);
  4573. _box.appendChild(_jie);
  4574. _formdiv = new U.UF.UI.form(
  4575. "思維導圖",
  4576. _box, { //"/jsmind/example/demo.html"
  4577. "id": "mind" + cid + stage + task + tool,
  4578. "style": {
  4579. "width": "90%",
  4580. "height": "90%",
  4581. "overflow": 'hidden'
  4582. },
  4583. "onresize": function () { }
  4584. }, {
  4585. closecallback: function () { }
  4586. }, {
  4587. "style": {
  4588. "height": "36px"
  4589. }
  4590. }).form; //創建窗體
  4591. _taskbar = {
  4592. "id": str + _formdiv.id,
  4593. "style": {
  4594. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4595. },
  4596. "name": "思維導圖",
  4597. "forms": _formdiv,
  4598. "click": function () {
  4599. U.MD.D.I.openApplication(str, obj, info);
  4600. }
  4601. }
  4602. break;
  4603. case "doc":
  4604. aTool = 6;
  4605. _iframe = $$("iframe", {
  4606. "frameborder": "no",
  4607. "border": "0",
  4608. "scrolling ": "no",
  4609. "style": {
  4610. "cssText": "border:0;width:100%;height:100%"
  4611. },
  4612. "src": "/Office/Word/WordEditArea.htm"
  4613. })
  4614. _box.appendChild(_iframe);
  4615. _box.appendChild(_jie);
  4616. _formdiv = new U.UF.UI.form(
  4617. "協同文檔",
  4618. _box, {
  4619. "id": "doc" + cid + stage + task + tool,
  4620. "style": {
  4621. "width": "90%",
  4622. "height": "90%",
  4623. "overflow": 'hidden'
  4624. },
  4625. "onresize": function () { }
  4626. }, {
  4627. closecallback: function () { }
  4628. }, {
  4629. "style": {
  4630. "height": "36px"
  4631. }
  4632. }).form; //創建窗體
  4633. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4634. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4635. })
  4636. _taskbar = {
  4637. "id": str + _formdiv.id,
  4638. "style": {
  4639. "backgroundImage": "url(/img/icon/doc.png)"
  4640. },
  4641. "name": "協同文檔",
  4642. "forms": _formdiv,
  4643. "click": function () {
  4644. U.MD.D.I.openApplication(str, obj, info);
  4645. }
  4646. }
  4647. break;
  4648. case "mindNetwork": //好友打開
  4649. aTool = 7;
  4650. _iframe = $$("iframe", {
  4651. "webkitallowfullscreen": "",
  4652. "mozallowfullscreen": "",
  4653. "allowfullscreen": "",
  4654. "frameborder": "no",
  4655. "border": "0",
  4656. "scrolling ": "no",
  4657. "style": {
  4658. "cssText": "border:0; width:100%; height:100%;"
  4659. },
  4660. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4661. })
  4662. _box.appendChild(_iframe);
  4663. _box.appendChild(_jie);
  4664. _formdiv = new U.UF.UI.form(
  4665. "思維網格",
  4666. _box, {
  4667. "id": "mindNetwork" + cid + stage + task + tool,
  4668. "style": {
  4669. "width": "90%",
  4670. "height": "90%",
  4671. "overflow": 'hidden'
  4672. },
  4673. "onresize": function () { }
  4674. }, {
  4675. closecallback: function () { }
  4676. }, {
  4677. "style": {
  4678. "height": "36px"
  4679. }
  4680. }).form; //創建窗體
  4681. _taskbar = {
  4682. "id": str + _formdiv.id,
  4683. "style": {
  4684. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4685. },
  4686. "name": "思維網格",
  4687. "forms": _formdiv,
  4688. "click": function () {
  4689. U.MD.D.I.openApplication(str, obj, info);
  4690. }
  4691. }
  4692. break;
  4693. case "courseDesign":
  4694. _iframe = $$("iframe", {
  4695. "webkitallowfullscreen": "",
  4696. "mozallowfullscreen": "",
  4697. "allowfullscreen": "",
  4698. "frameborder": "no",
  4699. "border": "0",
  4700. "scrolling ": "no",
  4701. "style": {
  4702. "cssText": "border:0; width:100%; height:100%;"
  4703. },
  4704. "src": "/course-design-vue"
  4705. })
  4706. _box.appendChild(_iframe);
  4707. _box.appendChild(_jie);
  4708. _formdiv = new U.UF.UI.form(
  4709. "項目設計",
  4710. _box, {
  4711. "id": "courseDesign" + cid + stage + task + tool,
  4712. "style": {
  4713. "width": "90%",
  4714. "height": "90%",
  4715. "overflow": 'hidden'
  4716. },
  4717. "onresize": function () { }
  4718. }, {
  4719. closecallback: function () { }
  4720. }, {
  4721. "style": {
  4722. "height": "36px"
  4723. }
  4724. }).form; //創建窗體
  4725. _taskbar = {
  4726. "id": str + _formdiv.id,
  4727. "style": {
  4728. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4729. },
  4730. "name": "項目設計",
  4731. "forms": _formdiv,
  4732. "click": function () {
  4733. U.MD.D.I.openApplication(str, obj, info);
  4734. }
  4735. }
  4736. break;
  4737. }
  4738. const script1 = document.createElement("script");
  4739. script1.type = "text/javascript";
  4740. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4741. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  4742. const script2 = document.createElement("script");
  4743. script2.type = "text/javascript";
  4744. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4745. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  4746. const script3 = document.createElement("script");
  4747. script3.type = "text/javascript";
  4748. script3.charset = "UTF-8";
  4749. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  4750. const script4 = document.createElement("script");
  4751. script4.type = "text/javascript";
  4752. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4753. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  4754. if (_iframe) {
  4755. if (str == 'doc') {
  4756. _iframe = _formdiv.querySelector('iframe')
  4757. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4758. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4759. _iframe.contentWindow.document.body.appendChild(script1);
  4760. _iframe.contentWindow.document.body.appendChild(script2);
  4761. // _iframe.contentWindow.document.body.appendChild(script3);
  4762. _iframe.contentWindow.document.body.appendChild(script4);
  4763. })
  4764. if (onloadListener) {
  4765. _iframe.contentDocument.location.reload()
  4766. } else {
  4767. _iframe.contentDocument.location.reload()
  4768. }
  4769. } else if (str == 'courseDesign') {
  4770. U.UF.DL.iframeLoad(_iframe, function () {
  4771. // _iframe.contentWindow.U.MD.O.W.load();
  4772. // _iframe.contentWindow.document.body.appendChild(script1);
  4773. _iframe.contentWindow.document.body.appendChild(script2);
  4774. _iframe.contentWindow.document.body.appendChild(script4);
  4775. })
  4776. } else if (str == 'mind') {
  4777. _iframe = _formdiv.querySelector('iframe')
  4778. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4779. //
  4780. _iframe.contentWindow.document.body.appendChild(script1);
  4781. _iframe.contentWindow.document.body.appendChild(script2);
  4782. _iframe.contentWindow.document.body.appendChild(script4);
  4783. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4784. })
  4785. if (onloadListener) {
  4786. _iframe.contentDocument.location.reload()
  4787. } else {
  4788. _iframe.contentDocument.location.reload()
  4789. }
  4790. } else if (str == 'whiteboard') {
  4791. _iframe = _formdiv.querySelector('iframe')
  4792. let onloadListener = _iframe.onload = () => {
  4793. _iframe.contentWindow.document.body.appendChild(script1);
  4794. _iframe.contentWindow.document.body.appendChild(script2);
  4795. _iframe.contentWindow.document.body.appendChild(script4);
  4796. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4797. };
  4798. if (onloadListener) {
  4799. _iframe.contentDocument.location.reload()
  4800. } else {
  4801. _iframe.contentDocument.location.reload()
  4802. }
  4803. } else {
  4804. _iframe.onload = () => {
  4805. _iframe.contentWindow.document.body.appendChild(script1);
  4806. _iframe.contentWindow.document.body.appendChild(script2);
  4807. // _iframe.contentWindow.document.body.appendChild(script3);
  4808. _iframe.contentWindow.document.body.appendChild(script4);
  4809. };
  4810. }
  4811. _jie.onclick = async () => {
  4812. let text = ''
  4813. if (aTool == 1) {
  4814. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4815. } else if (aTool == 6) {
  4816. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4817. } else if (aTool == 3) {
  4818. text = await U.MD.D.I.getEditorContent(_iframe);
  4819. }
  4820. _loading.style.display = 'flex'
  4821. console.log(_loading);
  4822. var _ajs = _iframe.contentWindow.document.createElement("script");
  4823. _ajs.type = "text/javascript";
  4824. _ajs.innerHTML =
  4825. // 'console.log(' + _loading + ');\n' +
  4826. 'var _js = document.createElement("script");\n' +
  4827. '_js.type="text/javascript";\n' +
  4828. '_js.charset="UTF-8";\n' +
  4829. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  4830. "_js.onload = function(){\n" +
  4831. ' var a = document.getElementsByTagName("img")\n' +
  4832. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4833. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4834. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4835. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4836. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  4837. "beforeUpload_shishi(file," +
  4838. "'" +
  4839. _userid +
  4840. "'" +
  4841. ", " +
  4842. "'" +
  4843. _cid +
  4844. "'" +
  4845. ", " +
  4846. "'" +
  4847. _stage +
  4848. "'" +
  4849. ", " +
  4850. "'" +
  4851. _task +
  4852. "'" +
  4853. ", " +
  4854. "'" +
  4855. _tool +
  4856. "'" +
  4857. ", " +
  4858. "'" +
  4859. (str + '_loadLi_Jie' + cid + stage + task + tool + _userid) +
  4860. "'" +
  4861. ", " +
  4862. "'" +
  4863. aTool +
  4864. "'" +
  4865. ", " +
  4866. "`" +
  4867. text +
  4868. "`" +
  4869. ")\n" +
  4870. " });\n" +
  4871. "}\n" +
  4872. "document.head.appendChild(_js);\n";
  4873. _iframe.contentWindow.document.head.appendChild(_ajs);
  4874. }
  4875. }
  4876. //U.MD.D.I.openClick(str);
  4877. //如果有任務欄信息
  4878. // if (_taskbar) {
  4879. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4880. // }
  4881. }
  4882. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4883. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4884. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4885. _userinfo = US.userInfo, //登錄用戶信息
  4886. _userid = US.userInfo.userid //登錄用戶id
  4887. let _iframe;
  4888. let _cid = cid,
  4889. _stage = stage,
  4890. _task = task,
  4891. _tool = tool;
  4892. var _jie = $$("div", {
  4893. "style": {
  4894. "position": "absolute",
  4895. "bottom": "50px",
  4896. "right": "50px",
  4897. "zIndex": "9999",
  4898. "backgroundColor": "#2268bc",
  4899. "color": "#fff",
  4900. "padding": "12px 20px",
  4901. "cursor": "pointer",
  4902. "borderRadius": "4px",
  4903. },
  4904. "innerHTML": "提交作業"
  4905. })
  4906. let aTool = ''
  4907. let _loading = document.createElement('div')
  4908. _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;"
  4909. // _loading.id = "";
  4910. let _lchild = document.createElement('div')
  4911. let _limg = document.createElement('img')
  4912. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4913. _limg.style = "width: 26px;margin-right: 10px;"
  4914. _lchild.appendChild(_limg)
  4915. let _lspan = document.createElement('span')
  4916. _lspan.innerHTML = "上傳中..."
  4917. _lchild.appendChild(_lspan)
  4918. _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%);"
  4919. _loading.appendChild(_lchild)
  4920. var _box = $$('div', {
  4921. "style": {
  4922. "position": "relative",
  4923. "width": "100%",
  4924. "height": "100%",
  4925. },
  4926. })
  4927. _box.appendChild(_loading)
  4928. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool + _userid
  4929. switch (str) {
  4930. case "whiteboard":
  4931. aTool = 1;
  4932. _iframe = $$("iframe", {
  4933. "frameborder": "no",
  4934. "border": "0",
  4935. "scrolling ": "no",
  4936. "style": {
  4937. "cssText": "border:0;width:100%;height:100%"
  4938. },
  4939. "src": "https://iwb.cocorobo.hk/"
  4940. })
  4941. _box.appendChild(_iframe);
  4942. _box.appendChild(_jie);
  4943. _formdiv = new U.UF.UI.form(
  4944. "電子白板",
  4945. _box, {
  4946. "id": "whiteboard" + cid + stage + task + tool,
  4947. "style": {
  4948. "width": "90%",
  4949. "height": "90%",
  4950. "overflow": 'hidden'
  4951. },
  4952. "onresize": function () { }
  4953. }, {
  4954. closecallback: function () { }
  4955. }, {
  4956. "style": {
  4957. "height": "36px"
  4958. }
  4959. }).form; //創建窗體
  4960. _taskbar = {
  4961. "id": str + _formdiv.id,
  4962. "style": {
  4963. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4964. },
  4965. "name": "電子白板",
  4966. "forms": _formdiv,
  4967. "click": function () {
  4968. U.MD.D.I.openApplication(str, obj, info);
  4969. }
  4970. }
  4971. break;
  4972. case "mind":
  4973. aTool = 3;
  4974. _iframe = $$("iframe", {
  4975. "frameborder": "no",
  4976. "border": "0",
  4977. "scrolling ": "no",
  4978. "style": {
  4979. "cssText": "border:0;width:100%;height:100%"
  4980. },
  4981. "src": "/kityminder-editor/dist/index.html"
  4982. })
  4983. _box.appendChild(_iframe);
  4984. _box.appendChild(_jie);
  4985. _formdiv = new U.UF.UI.form(
  4986. "思維導圖",
  4987. _box, { //"/jsmind/example/demo.html"
  4988. "id": "mind" + cid + stage + task + tool,
  4989. "style": {
  4990. "width": "90%",
  4991. "height": "90%",
  4992. "overflow": 'hidden'
  4993. },
  4994. "onresize": function () { }
  4995. }, {
  4996. closecallback: function () { }
  4997. }, {
  4998. "style": {
  4999. "height": "36px"
  5000. }
  5001. }).form; //創建窗體
  5002. _taskbar = {
  5003. "id": str + _formdiv.id,
  5004. "style": {
  5005. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5006. },
  5007. "name": "思維導圖",
  5008. "forms": _formdiv,
  5009. "click": function () {
  5010. U.MD.D.I.openApplication(str, obj, info);
  5011. }
  5012. }
  5013. break;
  5014. case "MindMap":
  5015. aTool = 3;
  5016. _iframe = $$("iframe", {
  5017. "frameborder": "no",
  5018. "border": "0",
  5019. "scrolling ": "no",
  5020. "style": {
  5021. "cssText": "border:0;width:100%;height:100%"
  5022. },
  5023. "src": "//cloud.cocorobo.hk/mind/"
  5024. })
  5025. _box.appendChild(_iframe);
  5026. _box.appendChild(_jie);
  5027. _formdiv = new U.UF.UI.form(
  5028. "思維導圖",
  5029. _box, { //"/jsmind/example/demo.html"
  5030. "id": "mind" + cid + stage + task + tool,
  5031. "style": {
  5032. "width": "90%",
  5033. "height": "90%",
  5034. "overflow": 'hidden'
  5035. },
  5036. "onresize": function () { }
  5037. }, {
  5038. closecallback: function () { }
  5039. }, {
  5040. "style": {
  5041. "height": "36px"
  5042. }
  5043. }).form; //創建窗體
  5044. _taskbar = {
  5045. "id": str + _formdiv.id,
  5046. "style": {
  5047. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5048. },
  5049. "name": "思維導圖",
  5050. "forms": _formdiv,
  5051. "click": function () {
  5052. U.MD.D.I.openApplication(str, obj, info);
  5053. }
  5054. }
  5055. break;
  5056. case "doc":
  5057. aTool = 6;
  5058. _iframe = $$("iframe", {
  5059. "frameborder": "no",
  5060. "border": "0",
  5061. "scrolling ": "no",
  5062. "style": {
  5063. "cssText": "border:0;width:100%;height:100%"
  5064. },
  5065. "src": "/Office/Word/WordEditArea.htm"
  5066. })
  5067. _box.appendChild(_iframe);
  5068. _box.appendChild(_jie);
  5069. _formdiv = new U.UF.UI.form(
  5070. "協同文檔",
  5071. _box, {
  5072. "id": "doc" + cid + stage + task + tool,
  5073. "style": {
  5074. "width": "90%",
  5075. "height": "90%",
  5076. "overflow": 'hidden'
  5077. },
  5078. "onresize": function () { }
  5079. }, {
  5080. closecallback: function () { }
  5081. }, {
  5082. "style": {
  5083. "height": "36px"
  5084. }
  5085. }).form; //創建窗體
  5086. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5087. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5088. })
  5089. _taskbar = {
  5090. "id": str + _formdiv.id,
  5091. "style": {
  5092. "backgroundImage": "url(/img/icon/doc.png)"
  5093. },
  5094. "name": "協同文檔",
  5095. "forms": _formdiv,
  5096. "click": function () {
  5097. U.MD.D.I.openApplication(str, obj, info);
  5098. }
  5099. }
  5100. break;
  5101. case "mindNetwork": //好友打開
  5102. aTool = 7;
  5103. _iframe = $$("iframe", {
  5104. "webkitallowfullscreen": "",
  5105. "mozallowfullscreen": "",
  5106. "allowfullscreen": "",
  5107. "frameborder": "no",
  5108. "border": "0",
  5109. "scrolling ": "no",
  5110. "style": {
  5111. "cssText": "border:0; width:100%; height:100%;"
  5112. },
  5113. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5114. })
  5115. _box.appendChild(_iframe);
  5116. _box.appendChild(_jie);
  5117. _formdiv = new U.UF.UI.form(
  5118. "思維網格",
  5119. _box, {
  5120. "id": "mindNetwork" + cid + stage + task + tool,
  5121. "style": {
  5122. "width": "90%",
  5123. "height": "90%",
  5124. "overflow": 'hidden'
  5125. },
  5126. "onresize": function () { }
  5127. }, {
  5128. closecallback: function () { }
  5129. }, {
  5130. "style": {
  5131. "height": "36px"
  5132. }
  5133. }).form; //創建窗體
  5134. _taskbar = {
  5135. "id": str + _formdiv.id,
  5136. "style": {
  5137. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5138. },
  5139. "name": "思維網格",
  5140. "forms": _formdiv,
  5141. "click": function () {
  5142. U.MD.D.I.openApplication(str, obj, info);
  5143. }
  5144. }
  5145. break;
  5146. case "courseDesign":
  5147. _iframe = $$("iframe", {
  5148. "webkitallowfullscreen": "",
  5149. "mozallowfullscreen": "",
  5150. "allowfullscreen": "",
  5151. "frameborder": "no",
  5152. "border": "0",
  5153. "scrolling ": "no",
  5154. "style": {
  5155. "cssText": "border:0; width:100%; height:100%;"
  5156. },
  5157. "src": "/course-design-vue"
  5158. })
  5159. _box.appendChild(_iframe);
  5160. _box.appendChild(_jie);
  5161. _formdiv = new U.UF.UI.form(
  5162. "項目設計",
  5163. _box, {
  5164. "id": "courseDesign" + cid + stage + task + tool,
  5165. "style": {
  5166. "width": "90%",
  5167. "height": "90%",
  5168. "overflow": 'hidden'
  5169. },
  5170. "onresize": function () { }
  5171. }, {
  5172. closecallback: function () { }
  5173. }, {
  5174. "style": {
  5175. "height": "36px"
  5176. }
  5177. }).form; //創建窗體
  5178. _taskbar = {
  5179. "id": str + _formdiv.id,
  5180. "style": {
  5181. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5182. },
  5183. "name": "項目設計",
  5184. "forms": _formdiv,
  5185. "click": function () {
  5186. U.MD.D.I.openApplication(str, obj, info);
  5187. }
  5188. }
  5189. break;
  5190. }
  5191. const script1 = document.createElement("script");
  5192. script1.type = "text/javascript";
  5193. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5194. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5195. const script2 = document.createElement("script");
  5196. script2.type = "text/javascript";
  5197. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5198. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5199. const script3 = document.createElement("script");
  5200. script3.type = "text/javascript";
  5201. script3.charset = "UTF-8";
  5202. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5203. const script4 = document.createElement("script");
  5204. script4.type = "text/javascript";
  5205. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5206. script4.src = window.origin + "/js/Common/jietu2E.js";
  5207. if (_iframe) {
  5208. if (str == 'doc') {
  5209. _iframe = _formdiv.querySelector('iframe')
  5210. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5211. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5212. _iframe.contentWindow.document.body.appendChild(script1);
  5213. _iframe.contentWindow.document.body.appendChild(script2);
  5214. // _iframe.contentWindow.document.body.appendChild(script3);
  5215. _iframe.contentWindow.document.body.appendChild(script4);
  5216. })
  5217. if (onloadListener) {
  5218. _iframe.contentDocument.location.reload()
  5219. } else {
  5220. _iframe.contentDocument.location.reload()
  5221. }
  5222. } else if (str == 'courseDesign') {
  5223. U.UF.DL.iframeLoad(_iframe, function () {
  5224. // _iframe.contentWindow.U.MD.O.W.load();
  5225. // _iframe.contentWindow.document.body.appendChild(script1);
  5226. _iframe.contentWindow.document.body.appendChild(script2);
  5227. _iframe.contentWindow.document.body.appendChild(script4);
  5228. })
  5229. } else if (str == 'mind') {
  5230. _iframe = _formdiv.querySelector('iframe')
  5231. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5232. //
  5233. _iframe.contentWindow.document.body.appendChild(script1);
  5234. _iframe.contentWindow.document.body.appendChild(script2);
  5235. _iframe.contentWindow.document.body.appendChild(script4);
  5236. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5237. })
  5238. if (onloadListener) {
  5239. _iframe.contentDocument.location.reload()
  5240. } else {
  5241. _iframe.contentDocument.location.reload()
  5242. }
  5243. } else if (str == 'whiteboard') {
  5244. _iframe = _formdiv.querySelector('iframe')
  5245. let onloadListener = _iframe.onload = () => {
  5246. _iframe.contentWindow.document.body.appendChild(script1);
  5247. _iframe.contentWindow.document.body.appendChild(script2);
  5248. _iframe.contentWindow.document.body.appendChild(script4);
  5249. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5250. };
  5251. if (onloadListener) {
  5252. _iframe.contentDocument.location.reload()
  5253. } else {
  5254. _iframe.contentDocument.location.reload()
  5255. }
  5256. } else {
  5257. _iframe.onload = () => {
  5258. _iframe.contentWindow.document.body.appendChild(script1);
  5259. _iframe.contentWindow.document.body.appendChild(script2);
  5260. // _iframe.contentWindow.document.body.appendChild(script3);
  5261. _iframe.contentWindow.document.body.appendChild(script4);
  5262. };
  5263. }
  5264. _jie.onclick = async () => {
  5265. let text = ''
  5266. if (aTool == 1) {
  5267. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5268. } else if (aTool == 6) {
  5269. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5270. } else if (aTool == 3) {
  5271. text = await U.MD.D.I.getEditorContent(_iframe);
  5272. }
  5273. _loading.style.display = 'flex'
  5274. console.log(_loading);
  5275. var _ajs = _iframe.contentWindow.document.createElement("script");
  5276. _ajs.type = "text/javascript";
  5277. _ajs.innerHTML =
  5278. // 'console.log(' + _loading + ');\n' +
  5279. 'var _js = document.createElement("script");\n' +
  5280. '_js.type="text/javascript";\n' +
  5281. '_js.charset="UTF-8";\n' +
  5282. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5283. "_js.onload = function(){\n" +
  5284. ' var a = document.getElementsByTagName("img")\n' +
  5285. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5286. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5287. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5288. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5289. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5290. "beforeUpload_shishi(file," +
  5291. "'" +
  5292. _userid +
  5293. "'" +
  5294. ", " +
  5295. "'" +
  5296. _cid +
  5297. "'" +
  5298. ", " +
  5299. "'" +
  5300. _stage +
  5301. "'" +
  5302. ", " +
  5303. "'" +
  5304. _task +
  5305. "'" +
  5306. ", " +
  5307. "'" +
  5308. _tool +
  5309. "'" +
  5310. ", " +
  5311. "'" +
  5312. (str + '_loadLi_JieE' + cid + stage + task + tool + _userid) +
  5313. "'" +
  5314. ", " +
  5315. "'" +
  5316. aTool +
  5317. "'" +
  5318. ", " +
  5319. "`" +
  5320. text +
  5321. "`" +
  5322. ")\n" +
  5323. " });\n" +
  5324. "}\n" +
  5325. "document.head.appendChild(_js);\n";
  5326. _iframe.contentWindow.document.head.appendChild(_ajs);
  5327. }
  5328. }
  5329. //U.MD.D.I.openClick(str);
  5330. //如果有任務欄信息
  5331. // if (_taskbar) {
  5332. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  5333. // }
  5334. }
  5335. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  5336. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5337. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5338. _userid = student.userid, //登錄用戶id
  5339. _username = student.student //用戶名字
  5340. let _iframe;
  5341. let _cid = cid,
  5342. _stage = stage,
  5343. _task = task,
  5344. _tool = tool;
  5345. var _jie = $$("div", {
  5346. "style": {
  5347. "position": "absolute",
  5348. "bottom": "50px",
  5349. "right": "50px",
  5350. "zIndex": "9999",
  5351. "backgroundColor": "#2268bc",
  5352. "color": "#fff",
  5353. "padding": "12px 20px",
  5354. "cursor": "pointer",
  5355. "borderRadius": "4px",
  5356. },
  5357. "innerHTML": "提交作業"
  5358. })
  5359. let aTool = ''
  5360. let _loading = document.createElement('div')
  5361. _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;"
  5362. // _loading.id = "";
  5363. let _lchild = document.createElement('div')
  5364. let _limg = document.createElement('img')
  5365. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5366. _limg.style = "width: 26px;margin-right: 10px;"
  5367. _lchild.appendChild(_limg)
  5368. let _lspan = document.createElement('span')
  5369. _lspan.innerHTML = "上傳中..."
  5370. _lchild.appendChild(_lspan)
  5371. _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%);"
  5372. _loading.appendChild(_lchild)
  5373. var _box = $$('div', {
  5374. "style": {
  5375. "position": "relative",
  5376. "width": "100%",
  5377. "height": "100%",
  5378. },
  5379. })
  5380. _box.appendChild(_loading)
  5381. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid
  5382. switch (str) {
  5383. case "whiteboard":
  5384. aTool = 1;
  5385. _iframe = $$("iframe", {
  5386. "frameborder": "no",
  5387. "border": "0",
  5388. "scrolling ": "no",
  5389. "style": {
  5390. "cssText": "border:0;width:100%;height:100%"
  5391. },
  5392. "src": "https://iwb.cocorobo.hk/"
  5393. })
  5394. _box.appendChild(_iframe);
  5395. _box.appendChild(_jie);
  5396. _formdiv = new U.UF.UI.form(
  5397. "電子白板-" + _username,
  5398. _box, {
  5399. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5400. "style": {
  5401. "width": "90%",
  5402. "height": "90%",
  5403. "overflow": 'hidden'
  5404. },
  5405. "onresize": function () { }
  5406. }, {
  5407. closecallback: function () { }
  5408. }, {
  5409. "style": {
  5410. "height": "36px"
  5411. }
  5412. }).form; //創建窗體
  5413. _taskbar = {
  5414. "id": str + _formdiv.id,
  5415. "style": {
  5416. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5417. },
  5418. "name": "電子白板",
  5419. "forms": _formdiv,
  5420. "click": function () {
  5421. U.MD.D.I.openApplication(str, obj, info);
  5422. }
  5423. }
  5424. break;
  5425. case "mind":
  5426. aTool = 3;
  5427. _iframe = $$("iframe", {
  5428. "frameborder": "no",
  5429. "border": "0",
  5430. "scrolling ": "no",
  5431. "style": {
  5432. "cssText": "border:0;width:100%;height:100%"
  5433. },
  5434. "src": "/kityminder-editor/dist/index.html"
  5435. })
  5436. _box.appendChild(_iframe);
  5437. _box.appendChild(_jie);
  5438. _formdiv = new U.UF.UI.form(
  5439. "思維導圖-" + _username,
  5440. _box, { //"/jsmind/example/demo.html"
  5441. "id": "mind" + cid + stage + task + tool + _userid,
  5442. "style": {
  5443. "width": "90%",
  5444. "height": "90%",
  5445. "overflow": 'hidden'
  5446. },
  5447. "onresize": function () { }
  5448. }, {
  5449. closecallback: function () { }
  5450. }, {
  5451. "style": {
  5452. "height": "36px"
  5453. }
  5454. }).form; //創建窗體
  5455. _taskbar = {
  5456. "id": str + _formdiv.id,
  5457. "style": {
  5458. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5459. },
  5460. "name": "思維導圖",
  5461. "forms": _formdiv,
  5462. "click": function () {
  5463. U.MD.D.I.openApplication(str, obj, info);
  5464. }
  5465. }
  5466. break;
  5467. case "MindMap":
  5468. aTool = 3;
  5469. _iframe = $$("iframe", {
  5470. "frameborder": "no",
  5471. "border": "0",
  5472. "scrolling ": "no",
  5473. "style": {
  5474. "cssText": "border:0;width:100%;height:100%"
  5475. },
  5476. "src": "//cloud.cocorobo.hk/mind/"
  5477. })
  5478. _box.appendChild(_iframe);
  5479. _box.appendChild(_jie);
  5480. _formdiv = new U.UF.UI.form(
  5481. "思維導圖-" + _username,
  5482. _box, { //"/jsmind/example/demo.html"
  5483. "id": "mind" + cid + stage + task + tool + _userid,
  5484. "style": {
  5485. "width": "90%",
  5486. "height": "90%",
  5487. "overflow": 'hidden'
  5488. },
  5489. "onresize": function () { }
  5490. }, {
  5491. closecallback: function () { }
  5492. }, {
  5493. "style": {
  5494. "height": "36px"
  5495. }
  5496. }).form; //創建窗體
  5497. _taskbar = {
  5498. "id": str + _formdiv.id,
  5499. "style": {
  5500. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5501. },
  5502. "name": "思維導圖",
  5503. "forms": _formdiv,
  5504. "click": function () {
  5505. U.MD.D.I.openApplication(str, obj, info);
  5506. }
  5507. }
  5508. break;
  5509. case "doc":
  5510. aTool = 6;
  5511. _iframe = $$("iframe", {
  5512. "frameborder": "no",
  5513. "border": "0",
  5514. "scrolling ": "no",
  5515. "style": {
  5516. "cssText": "border:0;width:100%;height:100%"
  5517. },
  5518. "src": "/Office/Word/WordEditArea.htm"
  5519. })
  5520. _box.appendChild(_iframe);
  5521. _box.appendChild(_jie);
  5522. _formdiv = new U.UF.UI.form(
  5523. "協同文檔-" + _username,
  5524. _box, {
  5525. "id": "doc" + cid + stage + task + tool + _userid,
  5526. "style": {
  5527. "width": "90%",
  5528. "height": "90%",
  5529. "overflow": 'hidden'
  5530. },
  5531. "onresize": function () { }
  5532. }, {
  5533. closecallback: function () { }
  5534. }, {
  5535. "style": {
  5536. "height": "36px"
  5537. }
  5538. }).form; //創建窗體
  5539. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5540. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5541. })
  5542. _taskbar = {
  5543. "id": str + _formdiv.id,
  5544. "style": {
  5545. "backgroundImage": "url(/img/icon/doc.png)"
  5546. },
  5547. "name": "協同文檔",
  5548. "forms": _formdiv,
  5549. "click": function () {
  5550. U.MD.D.I.openApplication(str, obj, info);
  5551. }
  5552. }
  5553. break;
  5554. case "mindNetwork": //好友打開
  5555. aTool = 7;
  5556. _iframe = $$("iframe", {
  5557. "webkitallowfullscreen": "",
  5558. "mozallowfullscreen": "",
  5559. "allowfullscreen": "",
  5560. "frameborder": "no",
  5561. "border": "0",
  5562. "scrolling ": "no",
  5563. "style": {
  5564. "cssText": "border:0; width:100%; height:100%;"
  5565. },
  5566. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5567. })
  5568. _box.appendChild(_iframe);
  5569. _box.appendChild(_jie);
  5570. _formdiv = new U.UF.UI.form(
  5571. "思維網格-" + _username,
  5572. _box, {
  5573. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5574. "style": {
  5575. "width": "90%",
  5576. "height": "90%",
  5577. "overflow": 'hidden'
  5578. },
  5579. "onresize": function () { }
  5580. }, {
  5581. closecallback: function () { }
  5582. }, {
  5583. "style": {
  5584. "height": "36px"
  5585. }
  5586. }).form; //創建窗體
  5587. _taskbar = {
  5588. "id": str + _formdiv.id,
  5589. "style": {
  5590. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5591. },
  5592. "name": "思維網格",
  5593. "forms": _formdiv,
  5594. "click": function () {
  5595. U.MD.D.I.openApplication(str, obj, info);
  5596. }
  5597. }
  5598. break;
  5599. case "courseDesign":
  5600. _iframe = $$("iframe", {
  5601. "webkitallowfullscreen": "",
  5602. "mozallowfullscreen": "",
  5603. "allowfullscreen": "",
  5604. "frameborder": "no",
  5605. "border": "0",
  5606. "scrolling ": "no",
  5607. "style": {
  5608. "cssText": "border:0; width:100%; height:100%;"
  5609. },
  5610. "src": "/course-design-vue"
  5611. })
  5612. _box.appendChild(_iframe);
  5613. _box.appendChild(_jie);
  5614. _formdiv = new U.UF.UI.form(
  5615. "項目設計-" + _username,
  5616. _box, {
  5617. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5618. "style": {
  5619. "width": "90%",
  5620. "height": "90%",
  5621. "overflow": 'hidden'
  5622. },
  5623. "onresize": function () { }
  5624. }, {
  5625. closecallback: function () { }
  5626. }, {
  5627. "style": {
  5628. "height": "36px"
  5629. }
  5630. }).form; //創建窗體
  5631. _taskbar = {
  5632. "id": str + _formdiv.id,
  5633. "style": {
  5634. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5635. },
  5636. "name": "項目設計",
  5637. "forms": _formdiv,
  5638. "click": function () {
  5639. U.MD.D.I.openApplication(str, obj, info);
  5640. }
  5641. }
  5642. break;
  5643. }
  5644. const script1 = document.createElement("script");
  5645. script1.type = "text/javascript";
  5646. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5647. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5648. const script2 = document.createElement("script");
  5649. script2.type = "text/javascript";
  5650. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5651. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5652. const script3 = document.createElement("script");
  5653. script3.type = "text/javascript";
  5654. script3.charset = "UTF-8";
  5655. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5656. const script4 = document.createElement("script");
  5657. script4.type = "text/javascript";
  5658. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5659. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  5660. if (_iframe) {
  5661. if (str == 'doc') {
  5662. _iframe = _formdiv.querySelector('iframe')
  5663. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5664. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5665. _iframe.contentWindow.document.body.appendChild(script1);
  5666. _iframe.contentWindow.document.body.appendChild(script2);
  5667. // _iframe.contentWindow.document.body.appendChild(script3);
  5668. _iframe.contentWindow.document.body.appendChild(script4);
  5669. })
  5670. if (onloadListener) {
  5671. _iframe.contentDocument.location.reload()
  5672. } else {
  5673. _iframe.contentDocument.location.reload()
  5674. }
  5675. } else if (str == 'courseDesign') {
  5676. U.UF.DL.iframeLoad(_iframe, function () {
  5677. // _iframe.contentWindow.U.MD.O.W.load();
  5678. // _iframe.contentWindow.document.body.appendChild(script1);
  5679. _iframe.contentWindow.document.body.appendChild(script2);
  5680. _iframe.contentWindow.document.body.appendChild(script4);
  5681. })
  5682. } else if (str == 'mind') {
  5683. _iframe = _formdiv.querySelector('iframe')
  5684. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5685. //
  5686. _iframe.contentWindow.document.body.appendChild(script1);
  5687. _iframe.contentWindow.document.body.appendChild(script2);
  5688. _iframe.contentWindow.document.body.appendChild(script4);
  5689. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5690. })
  5691. if (onloadListener) {
  5692. _iframe.contentDocument.location.reload()
  5693. } else {
  5694. _iframe.contentDocument.location.reload()
  5695. }
  5696. } else if (str == 'whiteboard') {
  5697. _iframe = _formdiv.querySelector('iframe')
  5698. let onloadListener = _iframe.onload = () => {
  5699. _iframe.contentWindow.document.body.appendChild(script1);
  5700. _iframe.contentWindow.document.body.appendChild(script2);
  5701. _iframe.contentWindow.document.body.appendChild(script4);
  5702. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5703. };
  5704. if (onloadListener) {
  5705. _iframe.contentDocument.location.reload()
  5706. } else {
  5707. _iframe.contentDocument.location.reload()
  5708. }
  5709. } else {
  5710. _iframe.onload = () => {
  5711. _iframe.contentWindow.document.body.appendChild(script1);
  5712. _iframe.contentWindow.document.body.appendChild(script2);
  5713. // _iframe.contentWindow.document.body.appendChild(script3);
  5714. _iframe.contentWindow.document.body.appendChild(script4);
  5715. };
  5716. }
  5717. _jie.onclick = async () => {
  5718. let text = ''
  5719. if (aTool == 1) {
  5720. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5721. } else if (aTool == 6) {
  5722. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5723. } else if (aTool == 3) {
  5724. text = await U.MD.D.I.getEditorContent(_iframe);
  5725. }
  5726. _loading.style.display = 'flex'
  5727. console.log(_loading);
  5728. var _ajs = _iframe.contentWindow.document.createElement("script");
  5729. _ajs.type = "text/javascript";
  5730. _ajs.innerHTML =
  5731. // 'console.log(' + _loading + ');\n' +
  5732. 'var _js = document.createElement("script");\n' +
  5733. '_js.type="text/javascript";\n' +
  5734. '_js.charset="UTF-8";\n' +
  5735. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5736. "_js.onload = function(){\n" +
  5737. ' var a = document.getElementsByTagName("img")\n' +
  5738. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5739. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5740. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5741. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5742. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5743. "beforeUpload_shishi(file," +
  5744. "'" +
  5745. _userid +
  5746. "'" +
  5747. ", " +
  5748. "'" +
  5749. _cid +
  5750. "'" +
  5751. ", " +
  5752. "'" +
  5753. _stage +
  5754. "'" +
  5755. ", " +
  5756. "'" +
  5757. _task +
  5758. "'" +
  5759. ", " +
  5760. "'" +
  5761. _tool +
  5762. "'" +
  5763. ", " +
  5764. "'" +
  5765. (str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid) +
  5766. "'" +
  5767. ", " +
  5768. "'" +
  5769. aTool +
  5770. "'" +
  5771. ", " +
  5772. "`" +
  5773. text +
  5774. "`" +
  5775. ")\n" +
  5776. " });\n" +
  5777. "}\n" +
  5778. "document.head.appendChild(_js);\n";
  5779. _iframe.contentWindow.document.head.appendChild(_ajs);
  5780. }
  5781. }
  5782. }
  5783. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5784. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5785. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5786. _userid = student.userid, //登錄用戶id
  5787. _username = student.student //用戶名字
  5788. let _iframe;
  5789. let _cid = cid,
  5790. _stage = stage,
  5791. _task = task,
  5792. _tool = tool;
  5793. var _jie = $$("div", {
  5794. "style": {
  5795. "position": "absolute",
  5796. "bottom": "50px",
  5797. "right": "50px",
  5798. "zIndex": "9999",
  5799. "backgroundColor": "#2268bc",
  5800. "color": "#fff",
  5801. "padding": "12px 20px",
  5802. "cursor": "pointer",
  5803. "borderRadius": "4px",
  5804. },
  5805. "innerHTML": "提交作業"
  5806. })
  5807. let aTool = ''
  5808. let _loading = document.createElement('div')
  5809. _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;"
  5810. // _loading.id = "";
  5811. let _lchild = document.createElement('div')
  5812. let _limg = document.createElement('img')
  5813. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5814. _limg.style = "width: 26px;margin-right: 10px;"
  5815. _lchild.appendChild(_limg)
  5816. let _lspan = document.createElement('span')
  5817. _lspan.innerHTML = "上傳中..."
  5818. _lchild.appendChild(_lspan)
  5819. _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%);"
  5820. _loading.appendChild(_lchild)
  5821. var _box = $$('div', {
  5822. "style": {
  5823. "position": "relative",
  5824. "width": "100%",
  5825. "height": "100%",
  5826. },
  5827. })
  5828. _box.appendChild(_loading)
  5829. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5830. switch (str) {
  5831. case "whiteboard":
  5832. aTool = 1;
  5833. _iframe = $$("iframe", {
  5834. "frameborder": "no",
  5835. "border": "0",
  5836. "scrolling ": "no",
  5837. "style": {
  5838. "cssText": "border:0;width:100%;height:100%"
  5839. },
  5840. "src": "https://iwb.cocorobo.hk/"
  5841. })
  5842. _box.appendChild(_iframe);
  5843. _box.appendChild(_jie);
  5844. _formdiv = new U.UF.UI.form(
  5845. "電子白板-" + _username,
  5846. _box, {
  5847. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5848. "style": {
  5849. "width": "90%",
  5850. "height": "90%",
  5851. "overflow": 'hidden'
  5852. },
  5853. "onresize": function () { }
  5854. }, {
  5855. closecallback: function () { }
  5856. }, {
  5857. "style": {
  5858. "height": "36px"
  5859. }
  5860. }).form; //創建窗體
  5861. _taskbar = {
  5862. "id": str + _formdiv.id,
  5863. "style": {
  5864. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5865. },
  5866. "name": "電子白板",
  5867. "forms": _formdiv,
  5868. "click": function () {
  5869. U.MD.D.I.openApplication(str, obj, info);
  5870. }
  5871. }
  5872. break;
  5873. case "mind":
  5874. aTool = 3;
  5875. _iframe = $$("iframe", {
  5876. "frameborder": "no",
  5877. "border": "0",
  5878. "scrolling ": "no",
  5879. "style": {
  5880. "cssText": "border:0;width:100%;height:100%"
  5881. },
  5882. "src": "/kityminder-editor/dist/index.html"
  5883. })
  5884. _box.appendChild(_iframe);
  5885. _box.appendChild(_jie);
  5886. _formdiv = new U.UF.UI.form(
  5887. "思維導圖-" + _username,
  5888. _box, { //"/jsmind/example/demo.html"
  5889. "id": "mind" + cid + stage + task + tool + _userid,
  5890. "style": {
  5891. "width": "90%",
  5892. "height": "90%",
  5893. "overflow": 'hidden'
  5894. },
  5895. "onresize": function () { }
  5896. }, {
  5897. closecallback: function () { }
  5898. }, {
  5899. "style": {
  5900. "height": "36px"
  5901. }
  5902. }).form; //創建窗體
  5903. _taskbar = {
  5904. "id": str + _formdiv.id,
  5905. "style": {
  5906. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5907. },
  5908. "name": "思維導圖",
  5909. "forms": _formdiv,
  5910. "click": function () {
  5911. U.MD.D.I.openApplication(str, obj, info);
  5912. }
  5913. }
  5914. break;
  5915. case "MindMap":
  5916. aTool = 3;
  5917. _iframe = $$("iframe", {
  5918. "frameborder": "no",
  5919. "border": "0",
  5920. "scrolling ": "no",
  5921. "style": {
  5922. "cssText": "border:0;width:100%;height:100%"
  5923. },
  5924. "src": "//cloud.cocorobo.hk/mind/"
  5925. })
  5926. _box.appendChild(_iframe);
  5927. _box.appendChild(_jie);
  5928. _formdiv = new U.UF.UI.form(
  5929. "思維導圖-" + _username,
  5930. _box, { //"/jsmind/example/demo.html"
  5931. "id": "mind" + cid + stage + task + tool + _userid,
  5932. "style": {
  5933. "width": "90%",
  5934. "height": "90%",
  5935. "overflow": 'hidden'
  5936. },
  5937. "onresize": function () { }
  5938. }, {
  5939. closecallback: function () { }
  5940. }, {
  5941. "style": {
  5942. "height": "36px"
  5943. }
  5944. }).form; //創建窗體
  5945. _taskbar = {
  5946. "id": str + _formdiv.id,
  5947. "style": {
  5948. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5949. },
  5950. "name": "思維導圖",
  5951. "forms": _formdiv,
  5952. "click": function () {
  5953. U.MD.D.I.openApplication(str, obj, info);
  5954. }
  5955. }
  5956. break;
  5957. case "doc":
  5958. aTool = 6;
  5959. _iframe = $$("iframe", {
  5960. "frameborder": "no",
  5961. "border": "0",
  5962. "scrolling ": "no",
  5963. "style": {
  5964. "cssText": "border:0;width:100%;height:100%"
  5965. },
  5966. "src": "/Office/Word/WordEditArea.htm"
  5967. })
  5968. _box.appendChild(_iframe);
  5969. _box.appendChild(_jie);
  5970. _formdiv = new U.UF.UI.form(
  5971. "協同文檔-" + _username,
  5972. _box, {
  5973. "id": "doc" + cid + stage + task + tool + _userid,
  5974. "style": {
  5975. "width": "90%",
  5976. "height": "90%",
  5977. "overflow": 'hidden'
  5978. },
  5979. "onresize": function () { }
  5980. }, {
  5981. closecallback: function () { }
  5982. }, {
  5983. "style": {
  5984. "height": "36px"
  5985. }
  5986. }).form; //創建窗體
  5987. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5988. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5989. })
  5990. _taskbar = {
  5991. "id": str + _formdiv.id,
  5992. "style": {
  5993. "backgroundImage": "url(/img/icon/doc.png)"
  5994. },
  5995. "name": "協同文檔",
  5996. "forms": _formdiv,
  5997. "click": function () {
  5998. U.MD.D.I.openApplication(str, obj, info);
  5999. }
  6000. }
  6001. break;
  6002. case "mindNetwork": //好友打開
  6003. aTool = 7;
  6004. _iframe = $$("iframe", {
  6005. "webkitallowfullscreen": "",
  6006. "mozallowfullscreen": "",
  6007. "allowfullscreen": "",
  6008. "frameborder": "no",
  6009. "border": "0",
  6010. "scrolling ": "no",
  6011. "style": {
  6012. "cssText": "border:0; width:100%; height:100%;"
  6013. },
  6014. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  6015. })
  6016. _box.appendChild(_iframe);
  6017. _box.appendChild(_jie);
  6018. _formdiv = new U.UF.UI.form(
  6019. "思維網格-" + _username,
  6020. _box, {
  6021. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  6022. "style": {
  6023. "width": "90%",
  6024. "height": "90%",
  6025. "overflow": 'hidden'
  6026. },
  6027. "onresize": function () { }
  6028. }, {
  6029. closecallback: function () { }
  6030. }, {
  6031. "style": {
  6032. "height": "36px"
  6033. }
  6034. }).form; //創建窗體
  6035. _taskbar = {
  6036. "id": str + _formdiv.id,
  6037. "style": {
  6038. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  6039. },
  6040. "name": "思維網格",
  6041. "forms": _formdiv,
  6042. "click": function () {
  6043. U.MD.D.I.openApplication(str, obj, info);
  6044. }
  6045. }
  6046. break;
  6047. case "courseDesign":
  6048. _iframe = $$("iframe", {
  6049. "webkitallowfullscreen": "",
  6050. "mozallowfullscreen": "",
  6051. "allowfullscreen": "",
  6052. "frameborder": "no",
  6053. "border": "0",
  6054. "scrolling ": "no",
  6055. "style": {
  6056. "cssText": "border:0; width:100%; height:100%;"
  6057. },
  6058. "src": "/course-design-vue"
  6059. })
  6060. _box.appendChild(_iframe);
  6061. _box.appendChild(_jie);
  6062. _formdiv = new U.UF.UI.form(
  6063. "項目設計-" + _username,
  6064. _box, {
  6065. "id": "courseDesign" + cid + stage + task + tool + _userid,
  6066. "style": {
  6067. "width": "90%",
  6068. "height": "90%",
  6069. "overflow": 'hidden'
  6070. },
  6071. "onresize": function () { }
  6072. }, {
  6073. closecallback: function () { }
  6074. }, {
  6075. "style": {
  6076. "height": "36px"
  6077. }
  6078. }).form; //創建窗體
  6079. _taskbar = {
  6080. "id": str + _formdiv.id,
  6081. "style": {
  6082. "backgroundImage": "url(/img/icon/courseDesign.png)"
  6083. },
  6084. "name": "項目設計",
  6085. "forms": _formdiv,
  6086. "click": function () {
  6087. U.MD.D.I.openApplication(str, obj, info);
  6088. }
  6089. }
  6090. break;
  6091. }
  6092. const script1 = document.createElement("script");
  6093. script1.type = "text/javascript";
  6094. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6095. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6096. const script2 = document.createElement("script");
  6097. script2.type = "text/javascript";
  6098. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6099. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6100. const script3 = document.createElement("script");
  6101. script3.type = "text/javascript";
  6102. script3.charset = "UTF-8";
  6103. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6104. const script4 = document.createElement("script");
  6105. script4.type = "text/javascript";
  6106. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  6107. script4.src = window.origin + "/js/Common/jietu2E.js";
  6108. if (_iframe) {
  6109. if (str == 'doc') {
  6110. _iframe = _formdiv.querySelector('iframe')
  6111. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6112. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  6113. _iframe.contentWindow.document.body.appendChild(script1);
  6114. _iframe.contentWindow.document.body.appendChild(script2);
  6115. // _iframe.contentWindow.document.body.appendChild(script3);
  6116. _iframe.contentWindow.document.body.appendChild(script4);
  6117. })
  6118. if (onloadListener) {
  6119. _iframe.contentDocument.location.reload()
  6120. } else {
  6121. _iframe.contentDocument.location.reload()
  6122. }
  6123. } else if (str == 'courseDesign') {
  6124. U.UF.DL.iframeLoad(_iframe, function () {
  6125. // _iframe.contentWindow.U.MD.O.W.load();
  6126. // _iframe.contentWindow.document.body.appendChild(script1);
  6127. _iframe.contentWindow.document.body.appendChild(script2);
  6128. _iframe.contentWindow.document.body.appendChild(script4);
  6129. })
  6130. } else if (str == 'mind') {
  6131. _iframe = _formdiv.querySelector('iframe')
  6132. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6133. //
  6134. _iframe.contentWindow.document.body.appendChild(script1);
  6135. _iframe.contentWindow.document.body.appendChild(script2);
  6136. _iframe.contentWindow.document.body.appendChild(script4);
  6137. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  6138. })
  6139. if (onloadListener) {
  6140. _iframe.contentDocument.location.reload()
  6141. } else {
  6142. _iframe.contentDocument.location.reload()
  6143. }
  6144. } else if (str == 'whiteboard') {
  6145. _iframe = _formdiv.querySelector('iframe')
  6146. let onloadListener = _iframe.onload = () => {
  6147. _iframe.contentWindow.document.body.appendChild(script1);
  6148. _iframe.contentWindow.document.body.appendChild(script2);
  6149. _iframe.contentWindow.document.body.appendChild(script4);
  6150. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  6151. };
  6152. if (onloadListener) {
  6153. _iframe.contentDocument.location.reload()
  6154. } else {
  6155. _iframe.contentDocument.location.reload()
  6156. }
  6157. } else {
  6158. _iframe.onload = () => {
  6159. _iframe.contentWindow.document.body.appendChild(script1);
  6160. _iframe.contentWindow.document.body.appendChild(script2);
  6161. // _iframe.contentWindow.document.body.appendChild(script3);
  6162. _iframe.contentWindow.document.body.appendChild(script4);
  6163. };
  6164. }
  6165. _jie.onclick = async () => {
  6166. let text = ''
  6167. if (aTool == 1) {
  6168. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6169. } else if (aTool == 6) {
  6170. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6171. } else if (aTool == 3) {
  6172. text = await U.MD.D.I.getEditorContent(_iframe);
  6173. }
  6174. _loading.style.display = 'flex'
  6175. console.log(_loading);
  6176. var _ajs = _iframe.contentWindow.document.createElement("script");
  6177. _ajs.type = "text/javascript";
  6178. _ajs.innerHTML =
  6179. // 'console.log(' + _loading + ');\n' +
  6180. 'var _js = document.createElement("script");\n' +
  6181. '_js.type="text/javascript";\n' +
  6182. '_js.charset="UTF-8";\n' +
  6183. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6184. "_js.onload = function(){\n" +
  6185. ' var a = document.getElementsByTagName("img")\n' +
  6186. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6187. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6188. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6189. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6190. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6191. "beforeUpload_shishi(file," +
  6192. "'" +
  6193. _userid +
  6194. "'" +
  6195. ", " +
  6196. "'" +
  6197. _cid +
  6198. "'" +
  6199. ", " +
  6200. "'" +
  6201. _stage +
  6202. "'" +
  6203. ", " +
  6204. "'" +
  6205. _task +
  6206. "'" +
  6207. ", " +
  6208. "'" +
  6209. _tool +
  6210. "'" +
  6211. ", " +
  6212. "'" +
  6213. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid) +
  6214. "'" +
  6215. ", " +
  6216. "'" +
  6217. aTool +
  6218. "'" +
  6219. ", " +
  6220. "`" +
  6221. text +
  6222. "`" +
  6223. ")\n" +
  6224. " });\n" +
  6225. "}\n" +
  6226. "document.head.appendChild(_js);\n";
  6227. _iframe.contentWindow.document.head.appendChild(_ajs);
  6228. }
  6229. }
  6230. }
  6231. U.MD.D.I.getEditorContent = function (iframe) {
  6232. return new Promise((resolve, reject) => {
  6233. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  6234. console.log(content);
  6235. resolve(content)
  6236. });
  6237. });
  6238. }
  6239. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  6240. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  6241. // if (res.value[0].length > 0) {
  6242. // // resolve(res.value[0][0].text);
  6243. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  6244. // $(fileInput).val('');
  6245. // });
  6246. // }
  6247. // }, [], { "type": "GET", "withCredentials": true });
  6248. var xmlhttp;
  6249. var Mac, Sn, DeviceId
  6250. if (window.XMLHttpRequest) {
  6251. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6252. xmlhttp = new XMLHttpRequest();
  6253. }
  6254. else {
  6255. // IE6, IE5 瀏覽器執行代碼
  6256. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6257. }
  6258. xmlhttp.onreadystatechange = function () {
  6259. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6260. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6261. // resolve(res.value[0][0].text);
  6262. if (type == '2') {
  6263. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6264. } else if (type == '3') {
  6265. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6266. }
  6267. } else {
  6268. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  6269. }
  6270. }
  6271. }
  6272. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6273. xmlhttp.send();
  6274. }
  6275. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  6276. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6277. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6278. _userinfo = US.userInfo, //登錄用戶信息
  6279. _userid = US.userInfo.userid //登錄用戶id
  6280. let _iframe;
  6281. let _cid = cid,
  6282. _stage = stage,
  6283. _task = task,
  6284. _tool = tool;
  6285. var _jie = $$("div", {
  6286. "style": {
  6287. "position": "absolute",
  6288. "bottom": "50px",
  6289. "right": "50px",
  6290. "zIndex": "9999",
  6291. "backgroundColor": "#2268bc",
  6292. "color": "#fff",
  6293. "padding": "12px 20px",
  6294. "cursor": "pointer",
  6295. "borderRadius": "4px",
  6296. },
  6297. "innerHTML": "確認並提交"
  6298. })
  6299. let aTool = ''
  6300. let _loading = document.createElement('div')
  6301. _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;"
  6302. // _loading.id = "";
  6303. let _lchild = document.createElement('div')
  6304. let _limg = document.createElement('img')
  6305. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6306. _limg.style = "width: 26px;margin-right: 10px;"
  6307. _lchild.appendChild(_limg)
  6308. let _lspan = document.createElement('span')
  6309. _lspan.innerHTML = "上傳中..."
  6310. _lchild.appendChild(_lspan)
  6311. _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%);"
  6312. _loading.appendChild(_lchild)
  6313. var _box = $$('div', {
  6314. "style": {
  6315. "position": "relative",
  6316. "width": "100%",
  6317. "height": "100%",
  6318. },
  6319. })
  6320. _box.appendChild(_loading)
  6321. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool + _userid
  6322. switch (str) {
  6323. case "whiteboard":
  6324. aTool = 1;
  6325. _iframe = $$("iframe", {
  6326. "frameborder": "no",
  6327. "border": "0",
  6328. "scrolling ": "no",
  6329. "style": {
  6330. "cssText": "border:0;width:100%;height:100%"
  6331. },
  6332. "src": "https://iwb.cocorobo.hk/"
  6333. })
  6334. _box.appendChild(_iframe);
  6335. _box.appendChild(_jie);
  6336. _formdiv = new U.UF.UI.form(
  6337. "電子白板",
  6338. _box, {
  6339. "id": "whiteboards" + cid + stage + task + tool,
  6340. "style": {
  6341. "width": "90%",
  6342. "height": "90%",
  6343. "overflow": 'hidden'
  6344. },
  6345. "onresize": function () { }
  6346. }, {
  6347. closecallback: function () { }
  6348. }, {
  6349. "style": {
  6350. "height": "36px"
  6351. }
  6352. }).form; //創建窗體
  6353. _taskbar = {
  6354. "id": str + _formdiv.id,
  6355. "style": {
  6356. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6357. },
  6358. "name": "電子白板",
  6359. "forms": _formdiv,
  6360. "click": function () {
  6361. U.MD.D.I.openApplication(str, obj, info);
  6362. }
  6363. }
  6364. break;
  6365. case "mind":
  6366. aTool = 3;
  6367. _iframe = $$("iframe", {
  6368. "frameborder": "no",
  6369. "border": "0",
  6370. "scrolling ": "no",
  6371. "style": {
  6372. "cssText": "border:0;width:100%;height:100%"
  6373. },
  6374. "src": "/kityminder-editor/dist/index.html"
  6375. });
  6376. _box.appendChild(_iframe);
  6377. _box.appendChild(_jie);
  6378. _formdiv = new U.UF.UI.form(
  6379. "思維導圖",
  6380. _box, { //"/jsmind/example/demo.html"
  6381. "id": "minds" + cid + stage + task + tool,
  6382. "style": {
  6383. "width": "90%",
  6384. "height": "90%",
  6385. "overflow": 'hidden'
  6386. },
  6387. "onresize": function () { }
  6388. }, {
  6389. closecallback: function () { }
  6390. }, {
  6391. "style": {
  6392. "height": "36px"
  6393. }
  6394. }).form; //創建窗體
  6395. _taskbar = {
  6396. "id": str + _formdiv.id,
  6397. "style": {
  6398. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6399. },
  6400. "name": "思維導圖",
  6401. "forms": _formdiv,
  6402. "click": function () {
  6403. U.MD.D.I.openApplication(str, obj, info);
  6404. }
  6405. }
  6406. break;
  6407. case "doc":
  6408. aTool = 6;
  6409. _iframe = $$("iframe", {
  6410. "frameborder": "no",
  6411. "border": "0",
  6412. "scrolling ": "no",
  6413. "style": {
  6414. "cssText": "border:0;width:100%;height:100%"
  6415. },
  6416. "src": "/Office/Word/WordEditArea.htm"
  6417. })
  6418. _box.appendChild(_iframe);
  6419. _box.appendChild(_jie);
  6420. _formdiv = new U.UF.UI.form(
  6421. "協同文檔",
  6422. _box, {
  6423. "id": "docs" + cid + stage + task + tool,
  6424. "style": {
  6425. "width": "90%",
  6426. "height": "90%",
  6427. "overflow": 'hidden'
  6428. },
  6429. "onresize": function () { }
  6430. }, {
  6431. closecallback: function () { }
  6432. }, {
  6433. "style": {
  6434. "height": "36px"
  6435. }
  6436. }).form; //創建窗體
  6437. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6438. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6439. })
  6440. _taskbar = {
  6441. "id": str + _formdiv.id,
  6442. "style": {
  6443. "backgroundImage": "url(/img/icon/doc.png)"
  6444. },
  6445. "name": "協同文檔",
  6446. "forms": _formdiv,
  6447. "click": function () {
  6448. U.MD.D.I.openApplication(str, obj, info);
  6449. }
  6450. }
  6451. break;
  6452. }
  6453. const script1 = document.createElement("script");
  6454. script1.type = "text/javascript";
  6455. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6456. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6457. const script2 = document.createElement("script");
  6458. script2.type = "text/javascript";
  6459. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6460. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6461. const script3 = document.createElement("script");
  6462. script3.type = "text/javascript";
  6463. script3.charset = "UTF-8";
  6464. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6465. const script4 = document.createElement("script");
  6466. script4.type = "text/javascript";
  6467. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6468. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu4.js";
  6469. if (_iframe) {
  6470. if (str == 'doc') {
  6471. _iframe = _formdiv.querySelector('iframe')
  6472. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6473. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6474. _iframe.contentWindow.document.body.appendChild(script1);
  6475. _iframe.contentWindow.document.body.appendChild(script2);
  6476. // _iframe.contentWindow.document.body.appendChild(script3);
  6477. _iframe.contentWindow.document.body.appendChild(script4);
  6478. })
  6479. if (onloadListener) {
  6480. _iframe.contentDocument.location.reload()
  6481. } else {
  6482. _iframe.contentDocument.location.reload()
  6483. }
  6484. } else if (str == 'mind') {
  6485. _iframe = _formdiv.querySelector('iframe')
  6486. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6487. _iframe.contentWindow.document.body.appendChild(script1);
  6488. _iframe.contentWindow.document.body.appendChild(script2);
  6489. _iframe.contentWindow.document.body.appendChild(script4);
  6490. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6491. })
  6492. if (onloadListener) {
  6493. _iframe.contentDocument.location.reload()
  6494. } else {
  6495. _iframe.contentDocument.location.reload()
  6496. }
  6497. } else {
  6498. _iframe.onload = () => {
  6499. _iframe.contentWindow.document.body.appendChild(script1);
  6500. _iframe.contentWindow.document.body.appendChild(script2);
  6501. // _iframe.contentWindow.document.body.appendChild(script3);
  6502. _iframe.contentWindow.document.body.appendChild(script4);
  6503. };
  6504. }
  6505. _jie.onclick = async () => {
  6506. let text = ''
  6507. if (aTool == 6) {
  6508. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6509. } else if (aTool == 3) {
  6510. text = await U.MD.D.I.getEditorContent(_iframe);
  6511. }
  6512. _loading.style.display = 'flex'
  6513. console.log(_loading);
  6514. var _ajs = _iframe.contentWindow.document.createElement("script");
  6515. _ajs.type = "text/javascript";
  6516. _ajs.innerHTML =
  6517. // 'console.log(' + _loading + ');\n' +
  6518. 'var _js = document.createElement("script");\n' +
  6519. '_js.type="text/javascript";\n' +
  6520. '_js.charset="UTF-8";\n' +
  6521. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6522. "_js.onload = function(){\n" +
  6523. ' var a = document.getElementsByTagName("img")\n' +
  6524. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6525. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6526. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6527. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6528. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6529. "beforeUpload_shishi(file," +
  6530. "'" +
  6531. _userid +
  6532. "'" +
  6533. ", " +
  6534. "'" +
  6535. _cid +
  6536. "'" +
  6537. ", " +
  6538. "'" +
  6539. _stage +
  6540. "'" +
  6541. ", " +
  6542. "'" +
  6543. _task +
  6544. "'" +
  6545. ", " +
  6546. "'" +
  6547. _tool +
  6548. "'" +
  6549. ", " +
  6550. "'" +
  6551. (str + '_loadLi_JieS' + cid + stage + task + tool + _userid) +
  6552. "'" +
  6553. ", " +
  6554. "'" +
  6555. aTool +
  6556. "'" +
  6557. ", " +
  6558. "`" +
  6559. text +
  6560. "`" +
  6561. ")\n" +
  6562. " });\n" +
  6563. "}\n" +
  6564. "document.head.appendChild(_js);\n";
  6565. _iframe.contentWindow.document.head.appendChild(_ajs);
  6566. }
  6567. }
  6568. //U.MD.D.I.openClick(str);
  6569. //如果有任務欄信息
  6570. // if (_taskbar) {
  6571. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6572. // }
  6573. }
  6574. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  6575. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6576. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6577. _userinfo = US.userInfo, //登錄用戶信息
  6578. _userid = US.userInfo.userid //登錄用戶id
  6579. let _iframe;
  6580. let _cid = cid,
  6581. _stage = stage,
  6582. _task = task,
  6583. _tool = tool;
  6584. var _jie = $$("div", {
  6585. "style": {
  6586. "position": "absolute",
  6587. "bottom": "50px",
  6588. "right": "50px",
  6589. "zIndex": "9999",
  6590. "backgroundColor": "#2268bc",
  6591. "color": "#fff",
  6592. "padding": "12px 20px",
  6593. "cursor": "pointer",
  6594. "borderRadius": "4px",
  6595. },
  6596. "innerHTML": "確認並提交"
  6597. })
  6598. let aTool = ''
  6599. let _loading = document.createElement('div')
  6600. _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;"
  6601. // _loading.id = "";
  6602. let _lchild = document.createElement('div')
  6603. let _limg = document.createElement('img')
  6604. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6605. _limg.style = "width: 26px;margin-right: 10px;"
  6606. _lchild.appendChild(_limg)
  6607. let _lspan = document.createElement('span')
  6608. _lspan.innerHTML = "上傳中..."
  6609. _lchild.appendChild(_lspan)
  6610. _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%);"
  6611. _loading.appendChild(_lchild)
  6612. var _box = $$('div', {
  6613. "style": {
  6614. "position": "relative",
  6615. "width": "100%",
  6616. "height": "100%",
  6617. },
  6618. })
  6619. _box.appendChild(_loading)
  6620. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid
  6621. switch (str) {
  6622. case "whiteboard":
  6623. aTool = 1;
  6624. _iframe = $$("iframe", {
  6625. "frameborder": "no",
  6626. "border": "0",
  6627. "scrolling ": "no",
  6628. "style": {
  6629. "cssText": "border:0;width:100%;height:100%"
  6630. },
  6631. "src": "https://iwb.cocorobo.hk/"
  6632. })
  6633. _box.appendChild(_iframe);
  6634. _box.appendChild(_jie);
  6635. _formdiv = new U.UF.UI.form(
  6636. "電子白板",
  6637. _box, {
  6638. "id": "whiteboards" + cid + stage + task + tool,
  6639. "style": {
  6640. "width": "90%",
  6641. "height": "90%",
  6642. "overflow": 'hidden'
  6643. },
  6644. "onresize": function () { }
  6645. }, {
  6646. closecallback: function () { }
  6647. }, {
  6648. "style": {
  6649. "height": "36px"
  6650. }
  6651. }).form; //創建窗體
  6652. _taskbar = {
  6653. "id": str + _formdiv.id,
  6654. "style": {
  6655. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6656. },
  6657. "name": "電子白板",
  6658. "forms": _formdiv,
  6659. "click": function () {
  6660. U.MD.D.I.openApplication(str, obj, info);
  6661. }
  6662. }
  6663. break;
  6664. case "mind":
  6665. aTool = 3;
  6666. _iframe = $$("iframe", {
  6667. "frameborder": "no",
  6668. "border": "0",
  6669. "scrolling ": "no",
  6670. "style": {
  6671. "cssText": "border:0;width:100%;height:100%"
  6672. },
  6673. "src": "/kityminder-editor/dist/index.html"
  6674. });
  6675. _box.appendChild(_iframe);
  6676. _box.appendChild(_jie);
  6677. _formdiv = new U.UF.UI.form(
  6678. "思維導圖",
  6679. _box, { //"/jsmind/example/demo.html"
  6680. "id": "minds" + cid + stage + task + tool,
  6681. "style": {
  6682. "width": "90%",
  6683. "height": "90%",
  6684. "overflow": 'hidden'
  6685. },
  6686. "onresize": function () { }
  6687. }, {
  6688. closecallback: function () { }
  6689. }, {
  6690. "style": {
  6691. "height": "36px"
  6692. }
  6693. }).form; //創建窗體
  6694. _taskbar = {
  6695. "id": str + _formdiv.id,
  6696. "style": {
  6697. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6698. },
  6699. "name": "思維導圖",
  6700. "forms": _formdiv,
  6701. "click": function () {
  6702. U.MD.D.I.openApplication(str, obj, info);
  6703. }
  6704. }
  6705. break;
  6706. case "doc":
  6707. aTool = 6;
  6708. _iframe = $$("iframe", {
  6709. "frameborder": "no",
  6710. "border": "0",
  6711. "scrolling ": "no",
  6712. "style": {
  6713. "cssText": "border:0;width:100%;height:100%"
  6714. },
  6715. "src": "/Office/Word/WordEditArea.htm"
  6716. })
  6717. _box.appendChild(_iframe);
  6718. _box.appendChild(_jie);
  6719. _formdiv = new U.UF.UI.form(
  6720. "協同文檔",
  6721. _box, {
  6722. "id": "docs" + cid + stage + task + tool,
  6723. "style": {
  6724. "width": "90%",
  6725. "height": "90%",
  6726. "overflow": 'hidden'
  6727. },
  6728. "onresize": function () { }
  6729. }, {
  6730. closecallback: function () { }
  6731. }, {
  6732. "style": {
  6733. "height": "36px"
  6734. }
  6735. }).form; //創建窗體
  6736. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6737. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6738. })
  6739. _taskbar = {
  6740. "id": str + _formdiv.id,
  6741. "style": {
  6742. "backgroundImage": "url(/img/icon/doc.png)"
  6743. },
  6744. "name": "協同文檔",
  6745. "forms": _formdiv,
  6746. "click": function () {
  6747. U.MD.D.I.openApplication(str, obj, info);
  6748. }
  6749. }
  6750. break;
  6751. }
  6752. const script1 = document.createElement("script");
  6753. script1.type = "text/javascript";
  6754. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6755. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6756. const script2 = document.createElement("script");
  6757. script2.type = "text/javascript";
  6758. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6759. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6760. const script3 = document.createElement("script");
  6761. script3.type = "text/javascript";
  6762. script3.charset = "UTF-8";
  6763. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6764. const script4 = document.createElement("script");
  6765. script4.type = "text/javascript";
  6766. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6767. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu5.js";
  6768. if (_iframe) {
  6769. if (str == 'doc') {
  6770. _iframe = _formdiv.querySelector('iframe')
  6771. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6772. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6773. _iframe.contentWindow.document.body.appendChild(script1);
  6774. _iframe.contentWindow.document.body.appendChild(script2);
  6775. // _iframe.contentWindow.document.body.appendChild(script3);
  6776. _iframe.contentWindow.document.body.appendChild(script4);
  6777. })
  6778. if (onloadListener) {
  6779. _iframe.contentDocument.location.reload()
  6780. } else {
  6781. _iframe.contentDocument.location.reload()
  6782. }
  6783. } else if (str == 'mind') {
  6784. _iframe = _formdiv.querySelector('iframe')
  6785. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6786. _iframe.contentWindow.document.body.appendChild(script1);
  6787. _iframe.contentWindow.document.body.appendChild(script2);
  6788. _iframe.contentWindow.document.body.appendChild(script4);
  6789. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6790. })
  6791. if (onloadListener) {
  6792. _iframe.contentDocument.location.reload()
  6793. } else {
  6794. _iframe.contentDocument.location.reload()
  6795. }
  6796. } else {
  6797. _iframe.onload = () => {
  6798. _iframe.contentWindow.document.body.appendChild(script1);
  6799. _iframe.contentWindow.document.body.appendChild(script2);
  6800. // _iframe.contentWindow.document.body.appendChild(script3);
  6801. _iframe.contentWindow.document.body.appendChild(script4);
  6802. };
  6803. }
  6804. _jie.onclick = async () => {
  6805. let text = ''
  6806. if (aTool == 6) {
  6807. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6808. } else if (aTool == 3) {
  6809. text = await U.MD.D.I.getEditorContent(_iframe);
  6810. }
  6811. _loading.style.display = 'flex'
  6812. console.log(_loading);
  6813. var _ajs = _iframe.contentWindow.document.createElement("script");
  6814. _ajs.type = "text/javascript";
  6815. _ajs.innerHTML =
  6816. // 'console.log(' + _loading + ');\n' +
  6817. 'var _js = document.createElement("script");\n' +
  6818. '_js.type="text/javascript";\n' +
  6819. '_js.charset="UTF-8";\n' +
  6820. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6821. "_js.onload = function(){\n" +
  6822. ' var a = document.getElementsByTagName("img")\n' +
  6823. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6824. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6825. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6826. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6827. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6828. "beforeUpload_shishi(file," +
  6829. "'" +
  6830. _userid +
  6831. "'" +
  6832. ", " +
  6833. "'" +
  6834. _cid +
  6835. "'" +
  6836. ", " +
  6837. "'" +
  6838. _stage +
  6839. "'" +
  6840. ", " +
  6841. "'" +
  6842. _task +
  6843. "'" +
  6844. ", " +
  6845. "'" +
  6846. _tool +
  6847. "'" +
  6848. ", " +
  6849. "'" +
  6850. (str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid) +
  6851. "'" +
  6852. ", " +
  6853. "'" +
  6854. aTool +
  6855. "'" +
  6856. ", " +
  6857. "`" +
  6858. text +
  6859. "`" +
  6860. ")\n" +
  6861. " });\n" +
  6862. "}\n" +
  6863. "document.head.appendChild(_js);\n";
  6864. _iframe.contentWindow.document.head.appendChild(_ajs);
  6865. }
  6866. }
  6867. //U.MD.D.I.openClick(str);
  6868. //如果有任務欄信息
  6869. // if (_taskbar) {
  6870. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6871. // }
  6872. }
  6873. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6874. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6875. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6876. _userinfo = US.userInfo, //登錄用戶信息
  6877. _userid = US.userInfo.userid //登錄用戶id
  6878. let _iframe;
  6879. let _cid = cid,
  6880. _stage = stage,
  6881. _task = task,
  6882. _tool = tool;
  6883. var _jie = $$("div", {
  6884. "style": {
  6885. "position": "absolute",
  6886. "bottom": "50px",
  6887. "right": "50px",
  6888. "zIndex": "9999",
  6889. "backgroundColor": "#2268bc",
  6890. "color": "#fff",
  6891. "padding": "12px 20px",
  6892. "cursor": "pointer",
  6893. "borderRadius": "4px",
  6894. },
  6895. "innerHTML": "上傳模板"
  6896. })
  6897. let aTool = ''
  6898. let _loading = document.createElement('div')
  6899. _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;"
  6900. // _loading.id = "";
  6901. let _lchild = document.createElement('div')
  6902. let _limg = document.createElement('img')
  6903. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6904. _limg.style = "width: 26px;margin-right: 10px;"
  6905. _lchild.appendChild(_limg)
  6906. let _lspan = document.createElement('span')
  6907. _lspan.innerHTML = "上傳中..."
  6908. _lchild.appendChild(_lspan)
  6909. _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%);"
  6910. _loading.appendChild(_lchild)
  6911. var _box = $$('div', {
  6912. "style": {
  6913. "position": "relative",
  6914. "width": "100%",
  6915. "height": "100%",
  6916. },
  6917. })
  6918. _box.appendChild(_loading)
  6919. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool + _userid
  6920. switch (str) {
  6921. case "whiteboard":
  6922. aTool = 1;
  6923. _iframe = $$("iframe", {
  6924. "frameborder": "no",
  6925. "border": "0",
  6926. "scrolling ": "no",
  6927. "style": {
  6928. "cssText": "border:0;width:100%;height:100%"
  6929. },
  6930. "src": "https://iwb.cocorobo.hk/"
  6931. })
  6932. _box.appendChild(_iframe);
  6933. _box.appendChild(_jie);
  6934. _formdiv = new U.UF.UI.form(
  6935. "電子白板",
  6936. _box, {
  6937. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6938. "style": {
  6939. "width": "90%",
  6940. "height": "90%",
  6941. "overflow": 'hidden'
  6942. },
  6943. "onresize": function () { }
  6944. }, {
  6945. closecallback: function () { }
  6946. }, {
  6947. "style": {
  6948. "height": "36px"
  6949. }
  6950. }).form; //創建窗體
  6951. _taskbar = {
  6952. "id": str + _formdiv.id,
  6953. "style": {
  6954. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6955. },
  6956. "name": "電子白板",
  6957. "forms": _formdiv,
  6958. "click": function () {
  6959. U.MD.D.I.openApplication(str, obj, info);
  6960. }
  6961. }
  6962. break;
  6963. case "mind":
  6964. aTool = 3;
  6965. _iframe = $$("iframe", {
  6966. "frameborder": "no",
  6967. "border": "0",
  6968. "scrolling ": "no",
  6969. "style": {
  6970. "cssText": "border:0;width:100%;height:100%"
  6971. },
  6972. "src": "/kityminder-editor/dist/index.html"
  6973. });
  6974. _box.appendChild(_iframe);
  6975. _box.appendChild(_jie);
  6976. _formdiv = new U.UF.UI.form(
  6977. "思維導圖",
  6978. _box, { //"/jsmind/example/demo.html"
  6979. "id": "minds_Yu" + cid + stage + task + tool,
  6980. "style": {
  6981. "width": "90%",
  6982. "height": "90%",
  6983. "overflow": 'hidden'
  6984. },
  6985. "onresize": function () { }
  6986. }, {
  6987. closecallback: function () { }
  6988. }, {
  6989. "style": {
  6990. "height": "36px"
  6991. }
  6992. }).form; //創建窗體
  6993. _taskbar = {
  6994. "id": str + _formdiv.id,
  6995. "style": {
  6996. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6997. },
  6998. "name": "思維導圖",
  6999. "forms": _formdiv,
  7000. "click": function () {
  7001. U.MD.D.I.openApplication(str, obj, info);
  7002. }
  7003. }
  7004. break;
  7005. case "doc":
  7006. aTool = 6;
  7007. _iframe = $$("iframe", {
  7008. "frameborder": "no",
  7009. "border": "0",
  7010. "scrolling ": "no",
  7011. "style": {
  7012. "cssText": "border:0;width:100%;height:100%"
  7013. },
  7014. "src": "/Office/Word/WordEditArea.htm"
  7015. })
  7016. _box.appendChild(_iframe);
  7017. _box.appendChild(_jie);
  7018. _formdiv = new U.UF.UI.form(
  7019. "協同文檔",
  7020. _box, {
  7021. "id": "docs_Yu" + cid + stage + task + tool,
  7022. "style": {
  7023. "width": "90%",
  7024. "height": "90%",
  7025. "overflow": 'hidden'
  7026. },
  7027. "onresize": function () { }
  7028. }, {
  7029. closecallback: function () { }
  7030. }, {
  7031. "style": {
  7032. "height": "36px"
  7033. }
  7034. }).form; //創建窗體
  7035. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  7036. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  7037. })
  7038. _taskbar = {
  7039. "id": str + _formdiv.id,
  7040. "style": {
  7041. "backgroundImage": "url(/img/icon/doc.png)"
  7042. },
  7043. "name": "協同文檔",
  7044. "forms": _formdiv,
  7045. "click": function () {
  7046. U.MD.D.I.openApplication(str, obj, info);
  7047. }
  7048. }
  7049. break;
  7050. case "CocoPi":
  7051. aTool = 57;
  7052. _iframe = $$("iframe", {
  7053. "allowpaymentrequest": "allowpaymentrequest",
  7054. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7055. "webkitallowfullscreen": "",
  7056. "mozallowfullscreen": "",
  7057. "frameborder": "no",
  7058. "border": "0",
  7059. "scrolling ": "no",
  7060. "style": {
  7061. "cssText": "border:0;width:100%;height:100%"
  7062. },
  7063. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7064. })
  7065. _box.appendChild(_iframe);
  7066. _box.appendChild(_jie);
  7067. _formdiv = new U.UF.UI.form(
  7068. "CocoPi",
  7069. _box, {
  7070. "id": "CocoPi_Yu" + cid + stage + task + tool,
  7071. "style": {
  7072. "width": "90%",
  7073. "height": "90%",
  7074. "overflow": 'hidden'
  7075. },
  7076. "onresize": function () { }
  7077. }, {
  7078. closecallback: function () { }
  7079. }, {
  7080. "style": {
  7081. "height": "36px"
  7082. }
  7083. }).form; //創建窗體
  7084. _taskbar = {
  7085. "id": str + _formdiv.id,
  7086. "style": {
  7087. "backgroundImage": "url(/img/icon/cocopi.png)"
  7088. },
  7089. "name": "CocoPi",
  7090. "forms": _formdiv,
  7091. "click": function () {
  7092. U.MD.D.I.openApplication(str, obj, info);
  7093. }
  7094. }
  7095. break;
  7096. }
  7097. if (_iframe) {
  7098. if (str == 'doc') {
  7099. _iframe = _formdiv.querySelector('iframe')
  7100. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7101. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  7102. })
  7103. if (onloadListener) {
  7104. _iframe.contentDocument.location.reload()
  7105. } else {
  7106. _iframe.contentDocument.location.reload()
  7107. }
  7108. } else if (str == 'mind') {
  7109. _iframe = _formdiv.querySelector('iframe')
  7110. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7111. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  7112. })
  7113. if (onloadListener) {
  7114. _iframe.contentDocument.location.reload()
  7115. } else {
  7116. _iframe.contentDocument.location.reload()
  7117. }
  7118. } else if (str == 'whiteboard') {
  7119. _iframe = _formdiv.querySelector('iframe')
  7120. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7121. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  7122. })
  7123. if (onloadListener) {
  7124. _iframe.contentDocument.location.reload()
  7125. } else {
  7126. _iframe.contentDocument.location.reload()
  7127. }
  7128. } else if (str == 'CocoPi') {
  7129. _iframe = _formdiv.querySelector('iframe')
  7130. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7131. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  7132. })
  7133. if (onloadListener) {
  7134. _iframe.contentDocument.location.reload()
  7135. } else {
  7136. _iframe.contentDocument.location.reload()
  7137. }
  7138. } else {
  7139. _iframe.onload = () => { };
  7140. }
  7141. _jie.onclick = async () => {
  7142. let text = ''
  7143. let type = '2'
  7144. if (aTool == 1) {
  7145. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  7146. type = '3'
  7147. } else if (aTool == 6) {
  7148. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  7149. type = '1'
  7150. } else if (aTool == 3) {
  7151. text = await U.MD.D.I.getEditorContent(_iframe);
  7152. type = '2'
  7153. } else if (aTool == 57) {
  7154. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  7155. type = '4'
  7156. }
  7157. _loading.style.display = 'flex'
  7158. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  7159. }
  7160. }
  7161. //U.MD.D.I.openClick(str);
  7162. //如果有任務欄信息
  7163. // if (_taskbar) {
  7164. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  7165. // }
  7166. }
  7167. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  7168. var xmlhttp;
  7169. var Mac, Sn, DeviceId
  7170. if (window.XMLHttpRequest) {
  7171. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7172. xmlhttp = new XMLHttpRequest();
  7173. }
  7174. else {
  7175. // IE6, IE5 瀏覽器執行代碼
  7176. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7177. }
  7178. xmlhttp.onreadystatechange = function () {
  7179. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7180. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7181. // resolve(res.value[0][0].text);
  7182. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7183. }
  7184. }
  7185. }
  7186. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7187. xmlhttp.send();
  7188. }
  7189. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  7190. var xmlhttp;
  7191. var Mac, Sn, DeviceId
  7192. if (window.XMLHttpRequest) {
  7193. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7194. xmlhttp = new XMLHttpRequest();
  7195. }
  7196. else {
  7197. // IE6, IE5 瀏覽器執行代碼
  7198. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7199. }
  7200. xmlhttp.onreadystatechange = function () {
  7201. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7202. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7203. // resolve(res.value[0][0].text);
  7204. if (type == '2') {
  7205. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7206. } else if (type == '3') {
  7207. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  7208. } else if (type == '4') {
  7209. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  7210. }
  7211. } else {
  7212. if (type == '2') {
  7213. iframe.contentWindow.editor.minder.importData('json', '')
  7214. } else if (type == '3') {
  7215. iframe.contentWindow.h.app.updateScene({ elements: [] })
  7216. } else if (type == '4') {
  7217. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7218. }
  7219. }
  7220. }
  7221. }
  7222. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7223. xmlhttp.send();
  7224. }
  7225. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  7226. var xmlhttp;
  7227. var Mac, Sn, DeviceId
  7228. if (window.XMLHttpRequest) {
  7229. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7230. xmlhttp = new XMLHttpRequest();
  7231. }
  7232. else {
  7233. // IE6, IE5 瀏覽器執行代碼
  7234. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7235. }
  7236. xmlhttp.onreadystatechange = function () {
  7237. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7238. if (xmlhttp.response) {
  7239. // resolve(res.value[0][0].text);
  7240. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  7241. // $(fileInput).val('');
  7242. // });
  7243. span.innerHTML = '上傳成功'
  7244. setTimeout(() => {
  7245. loading.style.display = 'none'
  7246. }, 1000);
  7247. }
  7248. }
  7249. }
  7250. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  7251. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  7252. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  7253. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  7254. // 設置請求頭,表示請求體的編碼格式
  7255. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  7256. // 設置請求體,使用url-encoded格式的數據
  7257. }
  7258. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  7259. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7260. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7261. _userinfo = US.userInfo, //登錄用戶信息
  7262. _userid = US.userInfo.userid //登錄用戶id
  7263. let _iframe;
  7264. let _cid = cid,
  7265. _stage = stage,
  7266. _task = task,
  7267. _tool = tool;
  7268. var _jie = $$("div", {
  7269. "style": {
  7270. "position": "absolute",
  7271. "bottom": "50px",
  7272. "right": "50px",
  7273. "zIndex": "9999",
  7274. "backgroundColor": "#2268bc",
  7275. "color": "#fff",
  7276. "padding": "12px 20px",
  7277. "cursor": "pointer",
  7278. "borderRadius": "4px",
  7279. },
  7280. "innerHTML": "提交作業"
  7281. })
  7282. let aTool = ''
  7283. let _loading = document.createElement('div')
  7284. _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;"
  7285. // _loading.id = "";
  7286. let _lchild = document.createElement('div')
  7287. let _limg = document.createElement('img')
  7288. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7289. _limg.style = "width: 26px;margin-right: 10px;"
  7290. _lchild.appendChild(_limg)
  7291. let _lspan = document.createElement('span')
  7292. _lspan.innerHTML = "上傳中..."
  7293. _lchild.appendChild(_lspan)
  7294. _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%);"
  7295. _loading.appendChild(_lchild)
  7296. var _box = $$('div', {
  7297. "style": {
  7298. "position": "relative",
  7299. "width": "100%",
  7300. "height": "100%",
  7301. },
  7302. })
  7303. _box.appendChild(_loading)
  7304. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool + _userid
  7305. switch (str) {
  7306. case "CocoPi":
  7307. aTool = 57;
  7308. _iframe = $$("iframe", {
  7309. "allowpaymentrequest": "allowpaymentrequest",
  7310. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7311. "webkitallowfullscreen": "",
  7312. "mozallowfullscreen": "",
  7313. "frameborder": "no",
  7314. "border": "0",
  7315. "scrolling ": "no",
  7316. "style": {
  7317. "cssText": "border:0;width:100%;height:100%"
  7318. },
  7319. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7320. })
  7321. _box.appendChild(_iframe);
  7322. _box.appendChild(_jie);
  7323. _formdiv = new U.UF.UI.form(
  7324. "CocoPi",
  7325. _box, {
  7326. "id": "CocoPi_Upload" + cid + stage + task + tool,
  7327. "style": {
  7328. "width": "90%",
  7329. "height": "90%",
  7330. "overflow": 'hidden'
  7331. },
  7332. "onresize": function () { }
  7333. }, {
  7334. closecallback: function () { }
  7335. }, {
  7336. "style": {
  7337. "height": "36px"
  7338. }
  7339. }).form; //創建窗體
  7340. _taskbar = {
  7341. "id": str + _formdiv.id,
  7342. "style": {
  7343. "backgroundImage": "url(/img/icon/cocopi.png)"
  7344. },
  7345. "name": "CocoPi",
  7346. "forms": _formdiv,
  7347. "click": function () {
  7348. U.MD.D.I.openApplication(str, obj, info);
  7349. }
  7350. }
  7351. break;
  7352. }
  7353. if (_iframe) {
  7354. if (str == 'CocoPi') {
  7355. _iframe = _formdiv.querySelector('iframe')
  7356. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7357. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7358. })
  7359. if (onloadListener) {
  7360. _iframe.contentDocument.location.reload()
  7361. } else {
  7362. _iframe.contentDocument.location.reload()
  7363. }
  7364. }
  7365. _jie.onclick = async () => {
  7366. let text = ''
  7367. if (aTool == 57) {
  7368. text = _iframe.contentWindow.getLoadXmlStr()
  7369. }
  7370. _loading.style.display = 'flex'
  7371. console.log(_loading);
  7372. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  7373. _loading.style.display = 'none'
  7374. let _div = document.createElement('div')
  7375. _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;"
  7376. let _inner = document.createElement('div')
  7377. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7378. _inner.innerHTML = "上傳成功"
  7379. _div.appendChild(_inner)
  7380. _iframe.contentWindow.window.document.body.appendChild(_div)
  7381. _div.onclick = () => {
  7382. _iframe.contentWindow.window.document.body.removeChild(_div)
  7383. }
  7384. setTimeout(() => {
  7385. _iframe.contentWindow.window.document.body.removeChild(_div)
  7386. }, 1000);
  7387. }, [], { "type": "POST", "withCredentials": true });
  7388. }
  7389. }
  7390. }
  7391. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  7392. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7393. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7394. _userid = student.userid, //登錄用戶id
  7395. _username = student.student //用戶名字
  7396. let _iframe;
  7397. let _cid = cid,
  7398. _stage = stage,
  7399. _task = task,
  7400. _tool = tool;
  7401. var _jie = $$("div", {
  7402. "style": {
  7403. "position": "absolute",
  7404. "bottom": "50px",
  7405. "right": "50px",
  7406. "zIndex": "9999",
  7407. "backgroundColor": "#2268bc",
  7408. "color": "#fff",
  7409. "padding": "12px 20px",
  7410. "cursor": "pointer",
  7411. "borderRadius": "4px",
  7412. },
  7413. "innerHTML": "提交作業"
  7414. })
  7415. let aTool = ''
  7416. let _loading = document.createElement('div')
  7417. _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;"
  7418. // _loading.id = "";
  7419. let _lchild = document.createElement('div')
  7420. let _limg = document.createElement('img')
  7421. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7422. _limg.style = "width: 26px;margin-right: 10px;"
  7423. _lchild.appendChild(_limg)
  7424. let _lspan = document.createElement('span')
  7425. _lspan.innerHTML = "上傳中..."
  7426. _lchild.appendChild(_lspan)
  7427. _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%);"
  7428. _loading.appendChild(_lchild)
  7429. var _box = $$('div', {
  7430. "style": {
  7431. "position": "relative",
  7432. "width": "100%",
  7433. "height": "100%",
  7434. },
  7435. })
  7436. _box.appendChild(_loading)
  7437. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool + _userid
  7438. switch (str) {
  7439. case "CocoPi":
  7440. aTool = 57;
  7441. _iframe = $$("iframe", {
  7442. "allowpaymentrequest": "allowpaymentrequest",
  7443. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7444. "webkitallowfullscreen": "",
  7445. "mozallowfullscreen": "",
  7446. "frameborder": "no",
  7447. "border": "0",
  7448. "scrolling ": "no",
  7449. "style": {
  7450. "cssText": "border:0;width:100%;height:100%"
  7451. },
  7452. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7453. })
  7454. _box.appendChild(_iframe);
  7455. _box.appendChild(_jie);
  7456. _formdiv = new U.UF.UI.form(
  7457. "CocoPi-" + _username,
  7458. _box, {
  7459. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  7460. "style": {
  7461. "width": "90%",
  7462. "height": "90%",
  7463. "overflow": 'hidden'
  7464. },
  7465. "onresize": function () { }
  7466. }, {
  7467. closecallback: function () { }
  7468. }, {
  7469. "style": {
  7470. "height": "36px"
  7471. }
  7472. }).form; //創建窗體
  7473. _taskbar = {
  7474. "id": str + _formdiv.id,
  7475. "style": {
  7476. "backgroundImage": "url(/img/icon/cocopi.png)"
  7477. },
  7478. "name": "CocoPi",
  7479. "forms": _formdiv,
  7480. "click": function () {
  7481. U.MD.D.I.openApplication(str, obj, info);
  7482. }
  7483. }
  7484. break;
  7485. }
  7486. if (_iframe) {
  7487. if (str == 'CocoPi') {
  7488. _iframe = _formdiv.querySelector('iframe')
  7489. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7490. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7491. })
  7492. if (onloadListener) {
  7493. _iframe.contentDocument.location.reload()
  7494. } else {
  7495. _iframe.contentDocument.location.reload()
  7496. }
  7497. }
  7498. _jie.onclick = async () => {
  7499. let text = ''
  7500. if (aTool == 57) {
  7501. text = _iframe.contentWindow.getLoadXmlStr()
  7502. }
  7503. _loading.style.display = 'flex'
  7504. console.log(_loading);
  7505. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  7506. _loading.style.display = 'none'
  7507. let _div = document.createElement('div')
  7508. _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;"
  7509. let _inner = document.createElement('div')
  7510. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7511. _inner.innerHTML = "上傳成功"
  7512. _div.appendChild(_inner)
  7513. _iframe.contentWindow.window.document.body.appendChild(_div)
  7514. _div.onclick = () => {
  7515. _iframe.contentWindow.window.document.body.removeChild(_div)
  7516. }
  7517. setTimeout(() => {
  7518. _iframe.contentWindow.window.document.body.removeChild(_div)
  7519. }, 1000);
  7520. }, [], { "type": "POST", "withCredentials": true });
  7521. }
  7522. }
  7523. }
  7524. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  7525. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  7526. if (res.value[0].length > 0) {
  7527. if (atool == 57) {
  7528. iframe.contentWindow.loadingXml(res.value[0][0].content)
  7529. }
  7530. } else {
  7531. if (atool == 57) {
  7532. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  7533. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7534. }
  7535. }
  7536. }, [], { "type": "POST", "withCredentials": true });
  7537. }