DeskTop.js 413 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275
  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": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  175. ];
  176. U.MD.D.I.orgStemDeskIcon = [
  177. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  178. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  179. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  180. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  181. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  182. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  183. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  184. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  185. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  186. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  187. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  188. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  189. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  190. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  191. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  192. ];
  193. U.MD.D.I.szulsDeskIcon = [
  194. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  195. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  196. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  197. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  198. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  199. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  200. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  201. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  202. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  203. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  204. ];
  205. U.MD.D.I.hanDeskIcon = [
  206. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  207. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  208. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  209. { "Name": "漢字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  210. { "Name": "國學經典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  211. { "Name": "筆畫訓練", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  212. { "Name": "書法課堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  213. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  214. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  215. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  216. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  217. ];
  218. U.MD.D.I.GMteacherDeskIcon = [
  219. { "Name": "課程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  220. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  221. { "Name": "學生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  222. { "Name": "學生評價", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  223. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  224. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  225. { "Name": "班級管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  226. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  227. { "Name": "課程進展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  228. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  229. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  230. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  231. ];
  232. U.MD.D.I.GMstudentDeskIcon = [
  233. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  234. { "Name": "我的評價", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  235. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  236. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  237. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  238. ];
  239. //北師大
  240. U.MD.D.I.BSDNSteacherDeskIcon = [
  241. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  242. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  243. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  244. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  245. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  246. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  247. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  248. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  249. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  250. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  251. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  252. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  253. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  254. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  255. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  256. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  257. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  258. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  259. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  260. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  261. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  262. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  263. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  264. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  265. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  266. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  267. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  268. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  269. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  270. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  271. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  272. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  273. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  274. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  275. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  276. { "Name": "數字實驗室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  277. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  278. ];
  279. //松山湖
  280. U.MD.D.I.SONGteacherDeskIcon = [
  281. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  282. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  283. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  284. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  285. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  286. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  287. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  288. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  289. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  290. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  291. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  292. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  293. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  294. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  295. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  296. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  297. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  298. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  299. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  300. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  301. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  302. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  303. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  304. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  305. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  306. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  307. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  308. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  309. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  310. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  311. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  312. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  313. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  314. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  315. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  316. ];
  317. U.MD.D.I.tcStudentDeskIcon = [
  318. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  319. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  320. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  321. ];
  322. U.MD.D.I.tcTeacherDeskIcon = [
  323. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  324. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  325. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  326. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  327. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  328. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  329. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  330. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  331. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  332. ];
  333. U.MD.D.I.tcOrganizerDeskIcon = [
  334. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  335. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  336. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  337. { "Name": "師生項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  338. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  339. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  340. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  341. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  342. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  343. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  344. ];
  345. U.MD.D.I.szscStudentDeskIcon = [
  346. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  347. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.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. ];
  351. U.MD.D.I.szscTeacherDeskIcon = [
  352. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  353. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  354. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  355. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  356. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  357. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  358. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  359. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  360. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  361. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  362. ];
  363. U.MD.D.I.szscOrganizerDeskIcon = [
  364. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  365. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  366. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  367. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  368. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  369. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  370. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  371. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  372. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  373. ];
  374. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  375. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  376. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  377. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  378. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  379. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  380. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  381. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  382. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  383. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  384. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  385. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  386. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  387. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  388. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  389. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  390. ];
  391. U.MD.D.I.wankeAdminDeskIcon = [
  392. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  393. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  394. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  395. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  396. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  397. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  398. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  399. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  400. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  401. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  402. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  403. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  404. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  405. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  406. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  407. ];
  408. U.MD.D.I.lhsTeacherDeskIcon = [//未來小學
  409. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  410. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  411. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  412. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  413. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  414. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  415. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  416. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  417. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  418. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  419. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  420. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  421. ];
  422. U.MD.D.I.lhsAdminDeskIcon = [//未來小學admin
  423. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  424. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  425. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  426. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  427. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  428. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  429. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  430. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  431. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  432. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  433. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  434. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  435. ];
  436. //明德教師桌面圖標的全局變量
  437. U.MD.D.I.MingdeTeacherDeskIcon = [
  438. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  439. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  440. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  441. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  442. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  443. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  444. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  445. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  446. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  447. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  448. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  449. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  450. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  451. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  452. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  453. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  454. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  455. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  456. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  457. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  458. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  459. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  460. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  461. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  462. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  463. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  464. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  465. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  466. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  467. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  468. ];
  469. //97c4ee8b-d010-4042-986d-e9d3c217264f
  470. //教師桌面圖標的全局變量
  471. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  472. { "Name": "工作項目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  473. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  474. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  475. // { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  476. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  477. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  478. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  479. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  480. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  481. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  482. ];
  483. //福田
  484. U.MD.D.I.futianTeacherDeskIcon = [
  485. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  486. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  487. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  488. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  489. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  490. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  491. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  492. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  493. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  494. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  495. ];
  496. //福田
  497. U.MD.D.I.futianAdminDeskIcon = [
  498. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  499. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  500. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  501. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  502. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  503. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  504. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  505. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  506. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  507. ];
  508. //lotech
  509. U.MD.D.I.lotechTeacherDeskIcon = [
  510. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  511. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  512. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  513. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  514. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  515. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  516. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  517. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  518. ];
  519. //龍華中心小學教師桌面圖標的全局變量
  520. U.MD.D.I.longhuateacherDeskIcon = [
  521. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  522. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  523. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  524. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  525. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  526. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.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": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  531. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  532. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  533. ];
  534. //教科院實小教師桌面圖標的全局變量
  535. U.MD.D.I.siesteacherDeskIcon = [
  536. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  537. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  538. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  539. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  540. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  541. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  542. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  543. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  544. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  545. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  546. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  547. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  548. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  549. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  550. ];
  551. //福田
  552. U.MD.D.I.gdjgTeacherDeskIcon = [
  553. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  554. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  555. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  556. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  557. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  558. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  559. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  560. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  561. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  562. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  563. ];
  564. //gdjg
  565. U.MD.D.I.gdjgAdminDeskIcon = [
  566. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  567. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  568. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  569. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  570. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  571. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  572. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  573. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  574. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  575. ];
  576. //hk
  577. U.MD.D.I.hkteacherDeskIcon = [
  578. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  579. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  580. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  581. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  582. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  583. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  584. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  585. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  586. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  587. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  588. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  589. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  590. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  591. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  592. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  593. ];
  594. //hk
  595. U.MD.D.I.hkStudentDeskIcon = [
  596. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  597. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  598. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  599. ];
  600. //香海正覺蓮社佛教正覺中學
  601. U.MD.D.I.hkZJLSteacherDeskIcon = [
  602. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  603. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  604. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  605. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  606. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  607. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  608. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  609. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  610. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  611. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  612. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  613. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  614. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  615. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  616. ];
  617. //香海正覺蓮社佛教正覺中學
  618. U.MD.D.I.hkZJLSStudentDeskIcon = [
  619. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  620. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  621. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  622. ];
  623. //雲海
  624. U.MD.D.I.yunhaiTeacherDeskIcon = [
  625. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  626. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  627. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  628. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  629. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  630. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  631. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  632. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  633. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  634. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  635. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  636. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  637. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  638. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  639. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  640. ];
  641. //福田
  642. U.MD.D.I.heyuanTeacherDeskIcon = [
  643. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  644. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  645. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  646. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  647. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  648. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  649. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  650. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  651. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  652. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  653. ];
  654. //福田
  655. U.MD.D.I.heyuanAdminDeskIcon = [
  656. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  657. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  658. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  659. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  660. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  661. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  662. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  663. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  664. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  665. ];
  666. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  667. U.MD.D.I.szherTeacherDeskIcon = [
  668. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  669. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  670. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  671. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  672. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  673. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  674. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  675. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  676. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  677. ];
  678. //dsei
  679. U.MD.D.I.dseiTeacherDeskIcon = [
  680. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  681. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  682. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  683. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.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": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  689. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  690. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  691. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  692. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  693. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  694. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  695. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  696. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  697. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  698. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  699. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  700. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  701. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  702. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  703. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  704. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  705. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  706. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  707. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  708. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  709. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  710. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  711. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  712. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  713. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  714. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  715. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  716. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  717. ];
  718. //dsei
  719. U.MD.D.I.dseiAdminDeskIcon = [
  720. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  721. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  722. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  723. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  724. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  725. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  726. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  727. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  728. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  729. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  730. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  731. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  732. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  733. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  734. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  735. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  736. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  737. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  738. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  739. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  740. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  741. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  742. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  743. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  744. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  745. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  746. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  747. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  748. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  749. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  750. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  751. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  752. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  753. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  754. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  755. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  756. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  757. ];
  758. //#region 桌面初始化a
  759. /**
  760. * 初始化桌面的起始函數
  761. *
  762. */
  763. U.MD.D.I.init = function () {
  764. if ($("#U_MD_D_K")[0]) {
  765. //初始化桌面圖標
  766. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  767. // var clickUrl = ':12588/requestIp.php';
  768. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  769. // U.MD.D.I.Ip = data;
  770. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  771. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  772. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  773. // })
  774. // //初始化任務欄,因為是靜態的,所以直接改變樣式即可.
  775. // })
  776. }
  777. }
  778. /**
  779. * 模式切換
  780. *
  781. */
  782. U.MD.D.I.ModeCheck = function (type) {
  783. if (US.Config.type == type) {
  784. return
  785. }
  786. US.Config.type = type
  787. $('.U_PBL_Check .active')[0].className = ''
  788. if (type == 1) {
  789. $('.U_PBL_Check div')[0].className = 'active'
  790. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  791. } else {
  792. $('.U_PBL_Check div')[1].className = 'active'
  793. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  794. }
  795. //初始化桌面圖標
  796. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  797. if(type == 2){
  798. U.MD.D.I.openApplication("project")
  799. }
  800. }
  801. /**
  802. * 隱藏任務欄
  803. *
  804. * @param {element} 桌面元素
  805. */
  806. U.MD.D.I.hiddenTaskbar = function (el) {
  807. //任務欄位置變小
  808. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  809. //桌面的位置變大
  810. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  811. }
  812. /**
  813. * 隱藏任務欄
  814. *
  815. * @param {element} 桌面元素
  816. */
  817. U.MD.D.I.hiddenTaskbarout = function (el) {
  818. //任務欄位置變小
  819. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  820. //任務欄位置變化
  821. U.selectEl(el).css({ "bottom": "-60px" });
  822. //桌面的位置變大
  823. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  824. }
  825. }
  826. /**
  827. * 初始化打印桌面圖標
  828. *
  829. * @param {element} 桌面元素
  830. */
  831. U.MD.D.I.initDesktopIcons = function (el, type) {
  832. var i, //用於循環
  833. _content, //桌面圖標元素
  834. _iconcontent, //桌面圖標元素
  835. _frag = $$("frag"), //定義一個碎片元素
  836. _type = US.userInfo.type,
  837. _org = US.userInfo.org,
  838. _oid = US.userInfo.organizeid,
  839. _role = US.userInfo.role,
  840. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //獲取教師端桌面圖標
  841. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //極簡模式桌面圖標
  842. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //獲取教師端桌面圖標
  843. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //獲取學生端桌面圖標
  844. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //獲取學生端桌面圖標
  845. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //獲取學生端桌面圖標
  846. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //獲取組織桌面圖標
  847. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  848. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  849. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  850. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //獲取測試學校桌面圖標
  851. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//獲取北師大
  852. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//獲取周佳名工作室
  853. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//獲取松山湖
  854. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//獲取萬科雙語
  855. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//獲取萬科雙語
  856. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//獲取萬科雙語
  857. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//獲取未來小學
  858. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//獲取未來小學
  859. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //獲取光明學校桌面圖標
  860. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //獲取光明學校桌面圖標
  861. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//騰訊學生
  862. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//騰訊學生
  863. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  864. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  865. _dseiTeacherDeskIconInfo = U.MD.D.I.dseiTeacherDeskIcon,//福田
  866. _dseiAdminDeskIconInfo = U.MD.D.I.dseiAdminDeskIcon,//福田
  867. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon,//福田
  868. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon,//福田
  869. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon,//szher
  870. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//
  871. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//
  872. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  873. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龍華中心
  874. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龍華中心
  875. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//騰訊學生
  876. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon,//hk
  877. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon,//hk
  878. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon,//hk
  879. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon,//hk
  880. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon,//雲海
  881. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//網絡夏令營
  882. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//網絡夏令營
  883. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//網絡夏令營
  884. 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'];
  885. 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'];
  886. //清楚桌面圖標
  887. el.innerHTML = "";
  888. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  889. _teacherDesktopIconInfo.push(
  890. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  891. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  892. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  893. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  894. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  895. )
  896. _easyDesktopIconInfo.push(
  897. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  898. )
  899. }
  900. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  901. _teacherDesktopIconInfo.push(
  902. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  903. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  904. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  905. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  906. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  907. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  908. )
  909. }
  910. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  911. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  912. if(el.Name == '項目管理'){
  913. el.Name = 'PBL項目'
  914. }
  915. return el
  916. })
  917. }
  918. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  919. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  920. return el.Name != '魔盒識字' && el.Name != '24點'
  921. })
  922. }
  923. 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) {
  924. _studentDesktopIconInfo.push(
  925. { "Name": "我的評價", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  926. )
  927. }
  928. //循環創建桌面圖標
  929. if (type == 1) {
  930. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  931. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  932. _content = $$("div", {
  933. className: "U_MD_D_KO",
  934. "onmousedown": U.UF.C.closure(function (obj) {
  935. //防止拖動圖標即打開了桌面應用
  936. U.MD.D.click(this, obj);
  937. }, [_studentDesktopIconInfo[i]]),
  938. "onclick": U.UF.C.closure(function (obj) {
  939. //防止拖動圖標即打開了桌面應用
  940. U.MD.D.click(this, obj);
  941. }, [_studentDesktopIconInfo[i]])
  942. }, _frag); //
  943. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  944. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  945. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  946. }
  947. }else if (_type == 2 && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  948. for (i = 0; i < _hkZJLSStudentDeskIconInfo.length; i++) {
  949. _content = $$("div", {
  950. className: "U_MD_D_KO",
  951. "onmousedown": U.UF.C.closure(function (obj) {
  952. //防止拖動圖標即打開了桌面應用
  953. U.MD.D.click(this, obj);
  954. }, [_hkZJLSStudentDeskIconInfo[i]]),
  955. "onclick": U.UF.C.closure(function (obj) {
  956. //防止拖動圖標即打開了桌面應用
  957. U.MD.D.click(this, obj);
  958. }, [_hkZJLSStudentDeskIconInfo[i]])
  959. }, _frag); //
  960. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  961. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  962. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  963. }
  964. }else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  965. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  966. _content = $$("div", {
  967. className: "U_MD_D_KO",
  968. "onmousedown": U.UF.C.closure(function (obj) {
  969. //防止拖動圖標即打開了桌面應用
  970. U.MD.D.click(this, obj);
  971. }, [_hkStudentDeskIconInfo[i]]),
  972. "onclick": U.UF.C.closure(function (obj) {
  973. //防止拖動圖標即打開了桌面應用
  974. U.MD.D.click(this, obj);
  975. }, [_hkStudentDeskIconInfo[i]])
  976. }, _frag); //
  977. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  978. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  979. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  980. }
  981. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  982. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  983. _content = $$("div", {
  984. className: "U_MD_D_KO",
  985. "onmousedown": U.UF.C.closure(function (obj) {
  986. //防止拖動圖標即打開了桌面應用
  987. U.MD.D.click(this, obj);
  988. }, [_studentDesktopIconInfo[i]]),
  989. "onclick": U.UF.C.closure(function (obj) {
  990. //防止拖動圖標即打開了桌面應用
  991. U.MD.D.click(this, obj);
  992. }, [_studentDesktopIconInfo[i]])
  993. }, _frag); //
  994. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  995. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  996. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  997. }
  998. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  999. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  1000. _content = $$("div", {
  1001. className: "U_MD_D_KO",
  1002. "onmousedown": U.UF.C.closure(function (obj) {
  1003. //防止拖動圖標即打開了桌面應用
  1004. U.MD.D.click(this, obj);
  1005. }, [_tcStudentDeskIconInfo[i]]),
  1006. "onclick": U.UF.C.closure(function (obj) {
  1007. //防止拖動圖標即打開了桌面應用
  1008. U.MD.D.click(this, obj);
  1009. }, [_tcStudentDeskIconInfo[i]])
  1010. }, _frag); //
  1011. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1012. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  1013. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  1014. }
  1015. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  1016. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  1017. _content = $$("div", {
  1018. className: "U_MD_D_KO",
  1019. "onmousedown": U.UF.C.closure(function (obj) {
  1020. //防止拖動圖標即打開了桌面應用
  1021. U.MD.D.click(this, obj);
  1022. }, [_szscStudentDeskIconInfo[i]]),
  1023. "onclick": U.UF.C.closure(function (obj) {
  1024. //防止拖動圖標即打開了桌面應用
  1025. U.MD.D.click(this, obj);
  1026. }, [_szscStudentDeskIconInfo[i]])
  1027. }, _frag); //
  1028. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1029. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  1030. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  1031. }
  1032. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  1033. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  1034. _content = $$("div", {
  1035. className: "U_MD_D_KO",
  1036. "onmousedown": U.UF.C.closure(function (obj) {
  1037. //防止拖動圖標即打開了桌面應用
  1038. U.MD.D.click(this, obj);
  1039. }, [_studentDesktopIconInfo3[i]]),
  1040. "onclick": U.UF.C.closure(function (obj) {
  1041. //防止拖動圖標即打開了桌面應用
  1042. U.MD.D.click(this, obj);
  1043. }, [_studentDesktopIconInfo3[i]])
  1044. }, _frag); //
  1045. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1046. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  1047. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  1048. }
  1049. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  1050. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  1051. _content = $$("div", {
  1052. className: "U_MD_D_KO",
  1053. "onmousedown": U.UF.C.closure(function (obj) {
  1054. //防止拖動圖標即打開了桌面應用
  1055. U.MD.D.click(this, obj);
  1056. }, [_studentDesktopIconInfo2[i]]),
  1057. "onclick": U.UF.C.closure(function (obj) {
  1058. //防止拖動圖標即打開了桌面應用
  1059. U.MD.D.click(this, obj);
  1060. }, [_studentDesktopIconInfo2[i]])
  1061. }, _frag); //
  1062. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1063. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  1064. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  1065. }
  1066. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  1067. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  1068. _content = $$("div", {
  1069. className: "U_MD_D_KO",
  1070. "onmousedown": U.UF.C.closure(function (obj) {
  1071. //防止拖動圖標即打開了桌面應用
  1072. U.MD.D.click(this, obj);
  1073. }, [_wanketeacherDesktopIconInfo[i]]),
  1074. "onclick": U.UF.C.closure(function (obj) {
  1075. //防止拖動圖標即打開了桌面應用
  1076. U.MD.D.click(this, obj);
  1077. }, [_wanketeacherDesktopIconInfo[i]])
  1078. }, _frag); //
  1079. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1080. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  1081. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  1082. }
  1083. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1084. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  1085. _content = $$("div", {
  1086. className: "U_MD_D_KO",
  1087. "onmousedown": U.UF.C.closure(function (obj) {
  1088. //防止拖動圖標即打開了桌面應用
  1089. U.MD.D.click(this, obj);
  1090. }, [_wankeAdminDesktopIconInfo[i]]),
  1091. "onclick": U.UF.C.closure(function (obj) {
  1092. //防止拖動圖標即打開了桌面應用
  1093. U.MD.D.click(this, obj);
  1094. }, [_wankeAdminDesktopIconInfo[i]])
  1095. }, _frag); //
  1096. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1097. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1098. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1099. }
  1100. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1101. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  1102. _content = $$("div", {
  1103. className: "U_MD_D_KO",
  1104. "onmousedown": U.UF.C.closure(function (obj) {
  1105. //防止拖動圖標即打開了桌面應用
  1106. U.MD.D.click(this, obj);
  1107. }, [_teacherDesktopIconInfo2[i]]),
  1108. "onclick": U.UF.C.closure(function (obj) {
  1109. //防止拖動圖標即打開了桌面應用
  1110. U.MD.D.click(this, obj);
  1111. }, [_teacherDesktopIconInfo2[i]])
  1112. }, _frag); //
  1113. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1114. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1115. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1116. }
  1117. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1118. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  1119. _content = $$("div", {
  1120. className: "U_MD_D_KO",
  1121. "onmousedown": U.UF.C.closure(function (obj) {
  1122. //防止拖動圖標即打開了桌面應用
  1123. U.MD.D.click(this, obj);
  1124. }, [_lotechTeacherDeskIconInfo[i]]),
  1125. "onclick": U.UF.C.closure(function (obj) {
  1126. //防止拖動圖標即打開了桌面應用
  1127. U.MD.D.click(this, obj);
  1128. }, [_lotechTeacherDeskIconInfo[i]])
  1129. }, _frag); //
  1130. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1131. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1132. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1133. }
  1134. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1135. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1136. _content = $$("div", {
  1137. className: "U_MD_D_KO",
  1138. "onmousedown": U.UF.C.closure(function (obj) {
  1139. //防止拖動圖標即打開了桌面應用
  1140. U.MD.D.click(this, obj);
  1141. }, [_siesTeacherDeskIconInfo[i]]),
  1142. "onclick": U.UF.C.closure(function (obj) {
  1143. //防止拖動圖標即打開了桌面應用
  1144. U.MD.D.click(this, obj);
  1145. }, [_siesTeacherDeskIconInfo[i]])
  1146. }, _frag); //
  1147. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1148. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1149. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1150. }
  1151. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1152. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1153. _content = $$("div", {
  1154. className: "U_MD_D_KO",
  1155. "onmousedown": U.UF.C.closure(function (obj) {
  1156. //防止拖動圖標即打開了桌面應用
  1157. U.MD.D.click(this, obj);
  1158. }, [_longhuaTeacherDeskIconInfo[i]]),
  1159. "onclick": U.UF.C.closure(function (obj) {
  1160. //防止拖動圖標即打開了桌面應用
  1161. U.MD.D.click(this, obj);
  1162. }, [_longhuaTeacherDeskIconInfo[i]])
  1163. }, _frag); //
  1164. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1165. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1166. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1167. }
  1168. }else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1169. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1170. _content = $$("div", {
  1171. className: "U_MD_D_KO",
  1172. "onmousedown": U.UF.C.closure(function (obj) {
  1173. //防止拖動圖標即打開了桌面應用
  1174. U.MD.D.click(this, obj);
  1175. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1176. "onclick": U.UF.C.closure(function (obj) {
  1177. //防止拖動圖標即打開了桌面應用
  1178. U.MD.D.click(this, obj);
  1179. }, [_yunhaiTeacherDeskIconInfo[i]])
  1180. }, _frag); //
  1181. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1182. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1183. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1184. }//_hkStudentDeskIconInfo
  1185. }else if ((_type == 1 || _type == 4) && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1186. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.length; i++) {
  1187. _content = $$("div", {
  1188. className: "U_MD_D_KO",
  1189. "onmousedown": U.UF.C.closure(function (obj) {
  1190. //防止拖動圖標即打開了桌面應用
  1191. U.MD.D.click(this, obj);
  1192. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1193. "onclick": U.UF.C.closure(function (obj) {
  1194. //防止拖動圖標即打開了桌面應用
  1195. U.MD.D.click(this, obj);
  1196. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1197. }, _frag); //
  1198. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1199. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1200. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1201. }
  1202. }else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1203. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1204. _content = $$("div", {
  1205. className: "U_MD_D_KO",
  1206. "onmousedown": U.UF.C.closure(function (obj) {
  1207. //防止拖動圖標即打開了桌面應用
  1208. U.MD.D.click(this, obj);
  1209. }, [_hkTeacherDeskIconInfo[i]]),
  1210. "onclick": U.UF.C.closure(function (obj) {
  1211. //防止拖動圖標即打開了桌面應用
  1212. U.MD.D.click(this, obj);
  1213. }, [_hkTeacherDeskIconInfo[i]])
  1214. }, _frag); //
  1215. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1216. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1217. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1218. }
  1219. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1220. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1221. _content = $$("div", {
  1222. className: "U_MD_D_KO",
  1223. "onmousedown": U.UF.C.closure(function (obj) {
  1224. //防止拖動圖標即打開了桌面應用
  1225. U.MD.D.click(this, obj);
  1226. }, [_gdjgAdminDeskIconInfo[i]]),
  1227. "onclick": U.UF.C.closure(function (obj) {
  1228. //防止拖動圖標即打開了桌面應用
  1229. U.MD.D.click(this, obj);
  1230. }, [_gdjgAdminDeskIconInfo[i]])
  1231. }, _frag); //
  1232. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1233. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1234. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1235. }
  1236. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1237. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1238. _content = $$("div", {
  1239. className: "U_MD_D_KO",
  1240. "onmousedown": U.UF.C.closure(function (obj) {
  1241. //防止拖動圖標即打開了桌面應用
  1242. U.MD.D.click(this, obj);
  1243. }, [_gdjgTeacherDeskIconInfo[i]]),
  1244. "onclick": U.UF.C.closure(function (obj) {
  1245. //防止拖動圖標即打開了桌面應用
  1246. U.MD.D.click(this, obj);
  1247. }, [_gdjgTeacherDeskIconInfo[i]])
  1248. }, _frag); //
  1249. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1250. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1251. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1252. }
  1253. }else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1254. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1255. _content = $$("div", {
  1256. className: "U_MD_D_KO",
  1257. "onmousedown": U.UF.C.closure(function (obj) {
  1258. //防止拖動圖標即打開了桌面應用
  1259. U.MD.D.click(this, obj);
  1260. }, [_szherTeacherDeskIconInfo[i]]),
  1261. "onclick": U.UF.C.closure(function (obj) {
  1262. //防止拖動圖標即打開了桌面應用
  1263. U.MD.D.click(this, obj);
  1264. }, [_szherTeacherDeskIconInfo[i]])
  1265. }, _frag); //
  1266. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1267. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1268. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1269. }
  1270. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1271. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1272. _content = $$("div", {
  1273. className: "U_MD_D_KO",
  1274. "onmousedown": U.UF.C.closure(function (obj) {
  1275. //防止拖動圖標即打開了桌面應用
  1276. U.MD.D.click(this, obj);
  1277. }, [_heyuannAdminDeskIconInfo[i]]),
  1278. "onclick": U.UF.C.closure(function (obj) {
  1279. //防止拖動圖標即打開了桌面應用
  1280. U.MD.D.click(this, obj);
  1281. }, [_heyuannAdminDeskIconInfo[i]])
  1282. }, _frag); //
  1283. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1284. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1285. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1286. }
  1287. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1288. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1289. _content = $$("div", {
  1290. className: "U_MD_D_KO",
  1291. "onmousedown": U.UF.C.closure(function (obj) {
  1292. //防止拖動圖標即打開了桌面應用
  1293. U.MD.D.click(this, obj);
  1294. }, [_heyuanTeacherDeskIconInfo[i]]),
  1295. "onclick": U.UF.C.closure(function (obj) {
  1296. //防止拖動圖標即打開了桌面應用
  1297. U.MD.D.click(this, obj);
  1298. }, [_heyuanTeacherDeskIconInfo[i]])
  1299. }, _frag); //
  1300. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1301. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1302. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1303. }//
  1304. }else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 1) {
  1305. for (i = 0; i < _dseiAdminDeskIconInfo.length; i++) {
  1306. _content = $$("div", {
  1307. className: "U_MD_D_KO",
  1308. "onmousedown": U.UF.C.closure(function (obj) {
  1309. //防止拖動圖標即打開了桌面應用
  1310. U.MD.D.click(this, obj);
  1311. }, [_dseiAdminDeskIconInfo[i]]),
  1312. "onclick": U.UF.C.closure(function (obj) {
  1313. //防止拖動圖標即打開了桌面應用
  1314. U.MD.D.click(this, obj);
  1315. }, [_dseiAdminDeskIconInfo[i]])
  1316. }, _frag); //
  1317. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1318. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiAdminDeskIconInfo[i].style }, _iconcontent);
  1319. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiAdminDeskIconInfo[i].Name }, _iconcontent);
  1320. }
  1321. }else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 0) {
  1322. for (i = 0; i < _dseiTeacherDeskIconInfo.length; i++) {
  1323. _content = $$("div", {
  1324. className: "U_MD_D_KO",
  1325. "onmousedown": U.UF.C.closure(function (obj) {
  1326. //防止拖動圖標即打開了桌面應用
  1327. U.MD.D.click(this, obj);
  1328. }, [_dseiTeacherDeskIconInfo[i]]),
  1329. "onclick": U.UF.C.closure(function (obj) {
  1330. //防止拖動圖標即打開了桌面應用
  1331. U.MD.D.click(this, obj);
  1332. }, [_dseiTeacherDeskIconInfo[i]])
  1333. }, _frag); //
  1334. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1335. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiTeacherDeskIconInfo[i].style }, _iconcontent);
  1336. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1337. }
  1338. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1339. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1340. _content = $$("div", {
  1341. className: "U_MD_D_KO",
  1342. "onmousedown": U.UF.C.closure(function (obj) {
  1343. //防止拖動圖標即打開了桌面應用
  1344. U.MD.D.click(this, obj);
  1345. }, [_futianAdminDeskIconInfo[i]]),
  1346. "onclick": U.UF.C.closure(function (obj) {
  1347. //防止拖動圖標即打開了桌面應用
  1348. U.MD.D.click(this, obj);
  1349. }, [_futianAdminDeskIconInfo[i]])
  1350. }, _frag); //
  1351. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1352. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1353. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1354. }
  1355. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1356. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1357. _content = $$("div", {
  1358. className: "U_MD_D_KO",
  1359. "onmousedown": U.UF.C.closure(function (obj) {
  1360. //防止拖動圖標即打開了桌面應用
  1361. U.MD.D.click(this, obj);
  1362. }, [_futianTeacherDeskIconInfo[i]]),
  1363. "onclick": U.UF.C.closure(function (obj) {
  1364. //防止拖動圖標即打開了桌面應用
  1365. U.MD.D.click(this, obj);
  1366. }, [_futianTeacherDeskIconInfo[i]])
  1367. }, _frag); //
  1368. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1369. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1370. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1371. }
  1372. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1373. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1374. _content = $$("div", {
  1375. className: "U_MD_D_KO",
  1376. "onmousedown": U.UF.C.closure(function (obj) {
  1377. //防止拖動圖標即打開了桌面應用
  1378. U.MD.D.click(this, obj);
  1379. }, [_MingdeTeacherDeskIcon[i]]),
  1380. "onclick": U.UF.C.closure(function (obj) {
  1381. //防止拖動圖標即打開了桌面應用
  1382. U.MD.D.click(this, obj);
  1383. }, [_MingdeTeacherDeskIcon[i]])
  1384. }, _frag); //
  1385. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1386. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1387. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1388. }
  1389. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1390. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1391. _content = $$("div", {
  1392. className: "U_MD_D_KO",
  1393. "onmousedown": U.UF.C.closure(function (obj) {
  1394. //防止拖動圖標即打開了桌面應用
  1395. U.MD.D.click(this, obj);
  1396. }, [_lhsAdminDesktopIconInfo[i]]),
  1397. "onclick": U.UF.C.closure(function (obj) {
  1398. //防止拖動圖標即打開了桌面應用
  1399. U.MD.D.click(this, obj);
  1400. }, [_lhsAdminDesktopIconInfo[i]])
  1401. }, _frag); //
  1402. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1403. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1404. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1405. }
  1406. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1407. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1408. _content = $$("div", {
  1409. className: "U_MD_D_KO",
  1410. "onmousedown": U.UF.C.closure(function (obj) {
  1411. //防止拖動圖標即打開了桌面應用
  1412. U.MD.D.click(this, obj);
  1413. }, [_lhsteacherDesktopIconInfo[i]]),
  1414. "onclick": U.UF.C.closure(function (obj) {
  1415. //防止拖動圖標即打開了桌面應用
  1416. U.MD.D.click(this, obj);
  1417. }, [_lhsteacherDesktopIconInfo[i]])
  1418. }, _frag); //
  1419. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1420. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1421. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1422. }
  1423. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1424. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1425. _content = $$("div", {
  1426. className: "U_MD_D_KO",
  1427. "onmousedown": U.UF.C.closure(function (obj) {
  1428. //防止拖動圖標即打開了桌面應用
  1429. U.MD.D.click(this, obj);
  1430. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1431. "onclick": U.UF.C.closure(function (obj) {
  1432. //防止拖動圖標即打開了桌面應用
  1433. U.MD.D.click(this, obj);
  1434. }, [_zhoujiateacherDesktopIconInfo[i]])
  1435. }, _frag); //
  1436. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1437. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1438. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1439. }
  1440. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1441. for (i = 0; i < _hanDeskIcon.length; i++) {
  1442. _content = $$("div", {
  1443. className: "U_MD_D_KO",
  1444. "onmousedown": U.UF.C.closure(function (obj) {
  1445. //防止拖動圖標即打開了桌面應用
  1446. U.MD.D.click(this, obj);
  1447. }, [_hanDeskIcon[i]]),
  1448. "onclick": U.UF.C.closure(function (obj) {
  1449. //防止拖動圖標即打開了桌面應用
  1450. U.MD.D.click(this, obj);
  1451. }, [_hanDeskIcon[i]])
  1452. }, _frag); //
  1453. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1454. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1455. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1456. }
  1457. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1458. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1459. _content = $$("div", {
  1460. className: "U_MD_D_KO",
  1461. "onmousedown": U.UF.C.closure(function (obj) {
  1462. //防止拖動圖標即打開了桌面應用
  1463. U.MD.D.click(this, obj);
  1464. }, [_orgStemDeskIcon[i]]),
  1465. "onclick": U.UF.C.closure(function (obj) {
  1466. //防止拖動圖標即打開了桌面應用
  1467. U.MD.D.click(this, obj);
  1468. }, [_orgStemDeskIcon[i]])
  1469. }, _frag); //
  1470. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1471. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1472. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1473. }
  1474. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1475. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1476. _content = $$("div", {
  1477. className: "U_MD_D_KO",
  1478. "onmousedown": U.UF.C.closure(function (obj) {
  1479. //防止拖動圖標即打開了桌面應用
  1480. U.MD.D.click(this, obj);
  1481. }, [_szulsDeskIcon[i]]),
  1482. "onclick": U.UF.C.closure(function (obj) {
  1483. //防止拖動圖標即打開了桌面應用
  1484. U.MD.D.click(this, obj);
  1485. }, [_szulsDeskIcon[i]])
  1486. }, _frag); //
  1487. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1488. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1489. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1490. }
  1491. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1492. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1493. _content = $$("div", {
  1494. className: "U_MD_D_KO",
  1495. "onmousedown": U.UF.C.closure(function (obj) {
  1496. //防止拖動圖標即打開了桌面應用
  1497. U.MD.D.click(this, obj);
  1498. }, [_orgDesktopIconInfo[i]]),
  1499. "onclick": U.UF.C.closure(function (obj) {
  1500. //防止拖動圖標即打開了桌面應用
  1501. U.MD.D.click(this, obj);
  1502. }, [_orgDesktopIconInfo[i]])
  1503. }, _frag); //
  1504. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1505. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1506. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1507. }
  1508. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1509. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1510. _content = $$("div", {
  1511. className: "U_MD_D_KO",
  1512. "onmousedown": U.UF.C.closure(function (obj) {
  1513. //防止拖動圖標即打開了桌面應用
  1514. U.MD.D.click(this, obj);
  1515. }, [_schoolDesktopIconInfo[i]]),
  1516. "onclick": U.UF.C.closure(function (obj) {
  1517. //防止拖動圖標即打開了桌面應用
  1518. U.MD.D.click(this, obj);
  1519. }, [_schoolDesktopIconInfo[i]])
  1520. }, _frag); //
  1521. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1522. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1523. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1524. }
  1525. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1526. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1527. _content = $$("div", {
  1528. className: "U_MD_D_KO",
  1529. "onmousedown": U.UF.C.closure(function (obj) {
  1530. //防止拖動圖標即打開了桌面應用
  1531. U.MD.D.click(this, obj);
  1532. }, [_GMteacherDesktopIconInfo[i]]),
  1533. "onclick": U.UF.C.closure(function (obj) {
  1534. //防止拖動圖標即打開了桌面應用
  1535. U.MD.D.click(this, obj);
  1536. }, [_GMteacherDesktopIconInfo[i]])
  1537. }, _frag); //
  1538. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1539. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1540. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1541. }
  1542. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1543. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1544. _content = $$("div", {
  1545. className: "U_MD_D_KO",
  1546. "onmousedown": U.UF.C.closure(function (obj) {
  1547. //防止拖動圖標即打開了桌面應用
  1548. U.MD.D.click(this, obj);
  1549. }, [_SONGteacherDesktopIconInfo[i]]),
  1550. "onclick": U.UF.C.closure(function (obj) {
  1551. //防止拖動圖標即打開了桌面應用
  1552. U.MD.D.click(this, obj);
  1553. }, [_SONGteacherDesktopIconInfo[i]])
  1554. }, _frag); //
  1555. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1556. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1557. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1558. }
  1559. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1560. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1561. _content = $$("div", {
  1562. className: "U_MD_D_KO",
  1563. "onmousedown": U.UF.C.closure(function (obj) {
  1564. //防止拖動圖標即打開了桌面應用
  1565. U.MD.D.click(this, obj);
  1566. }, [_GMstudentDesktopIconInfo[i]]),
  1567. "onclick": U.UF.C.closure(function (obj) {
  1568. //防止拖動圖標即打開了桌面應用
  1569. U.MD.D.click(this, obj);
  1570. }, [_GMstudentDesktopIconInfo[i]])
  1571. }, _frag); //
  1572. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1573. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1574. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1575. }
  1576. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1577. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1578. _content = $$("div", {
  1579. className: "U_MD_D_KO",
  1580. "onmousedown": U.UF.C.closure(function (obj) {
  1581. //防止拖動圖標即打開了桌面應用
  1582. U.MD.D.click(this, obj);
  1583. }, [_tcTeacherDeskIconInfo[i]]),
  1584. "onclick": U.UF.C.closure(function (obj) {
  1585. //防止拖動圖標即打開了桌面應用
  1586. U.MD.D.click(this, obj);
  1587. }, [_tcTeacherDeskIconInfo[i]])
  1588. }, _frag); //
  1589. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1590. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1591. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1592. }
  1593. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1594. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1595. _content = $$("div", {
  1596. className: "U_MD_D_KO",
  1597. "onmousedown": U.UF.C.closure(function (obj) {
  1598. //防止拖動圖標即打開了桌面應用
  1599. U.MD.D.click(this, obj);
  1600. }, [_tcOrganizerDeskIconInfo[i]]),
  1601. "onclick": U.UF.C.closure(function (obj) {
  1602. //防止拖動圖標即打開了桌面應用
  1603. U.MD.D.click(this, obj);
  1604. }, [_tcOrganizerDeskIconInfo[i]])
  1605. }, _frag); //
  1606. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1607. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1608. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1609. }
  1610. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1611. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1612. _content = $$("div", {
  1613. className: "U_MD_D_KO",
  1614. "onmousedown": U.UF.C.closure(function (obj) {
  1615. //防止拖動圖標即打開了桌面應用
  1616. U.MD.D.click(this, obj);
  1617. }, [_szscTeacherDeskIconInfo[i]]),
  1618. "onclick": U.UF.C.closure(function (obj) {
  1619. //防止拖動圖標即打開了桌面應用
  1620. U.MD.D.click(this, obj);
  1621. }, [_szscTeacherDeskIconInfo[i]])
  1622. }, _frag); //
  1623. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1624. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1625. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1626. }
  1627. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1628. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1629. _content = $$("div", {
  1630. className: "U_MD_D_KO",
  1631. "onmousedown": U.UF.C.closure(function (obj) {
  1632. //防止拖動圖標即打開了桌面應用
  1633. U.MD.D.click(this, obj);
  1634. }, [_szscOrganizerDeskIconInfo[i]]),
  1635. "onclick": U.UF.C.closure(function (obj) {
  1636. //防止拖動圖標即打開了桌面應用
  1637. U.MD.D.click(this, obj);
  1638. }, [_szscOrganizerDeskIconInfo[i]])
  1639. }, _frag); //
  1640. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1641. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1642. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1643. }
  1644. } else {
  1645. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1646. _content = $$("div", {
  1647. className: "U_MD_D_KO",
  1648. "onmousedown": U.UF.C.closure(function (obj) {
  1649. //防止拖動圖標即打開了桌面應用
  1650. U.MD.D.click(this, obj);
  1651. }, [_teacherDesktopIconInfo[i]]),
  1652. "onclick": U.UF.C.closure(function (obj) {
  1653. //防止拖動圖標即打開了桌面應用
  1654. U.MD.D.click(this, obj);
  1655. }, [_teacherDesktopIconInfo[i]])
  1656. }, _frag); //
  1657. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1658. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1659. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1660. }
  1661. }
  1662. } else {
  1663. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1664. _content = $$("div", {
  1665. className: "U_MD_D_KO",
  1666. style: { 'width': '124px', 'height': '145px' },
  1667. "onmousedown": U.UF.C.closure(function (obj) {
  1668. //防止拖動圖標即打開了桌面應用
  1669. U.MD.D.click(this, obj);
  1670. }, [_easyDesktopIconInfo[i]]),
  1671. "onclick": U.UF.C.closure(function (obj) {
  1672. //防止拖動圖標即打開了桌面應用
  1673. U.MD.D.click(this, obj);
  1674. }, [_easyDesktopIconInfo[i]])
  1675. }, _frag); //
  1676. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1677. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1678. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1679. }
  1680. }
  1681. if (type == 1) {
  1682. //加載好後給圖標定位
  1683. U.MD.D.iconPostion($(_frag).Child());
  1684. } else {
  1685. //加載好後給圖標定位
  1686. U.MD.D.iconPostion2($(_frag).Child());
  1687. }
  1688. //把圖標加載到頁面
  1689. el.appendChild(_frag);
  1690. }
  1691. /**
  1692. * 顯示任務欄
  1693. *
  1694. * @param {element} 桌面元素
  1695. */
  1696. U.MD.D.I.displayTaskbar = function (el) {
  1697. //判斷是否需要形式任務欄,由於用了mouseover事件會冒泡響應多次,這裏做了過濾
  1698. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1699. //任務欄位置變化
  1700. U.selectEl(el).css({ "bottom": "0px" });
  1701. //桌面位置變話
  1702. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1703. }
  1704. }
  1705. //#region 桌面圖標拖動邏輯
  1706. /**
  1707. * 桌面排列圖標
  1708. *
  1709. * @param {element} 桌面元素
  1710. * @param {object} 上下相距的距離
  1711. * @param {object} 左右相距的距離
  1712. * @return {object} 命名空間
  1713. */
  1714. U.MD.D.iconPostion = function (childs, top, left) {
  1715. var i; //用於循環處理
  1716. top = top || 15; //如果沒有設置元素的間距處理默認上間距為15
  1717. left = left || 20; //如果沒有設置元素的間距處理默認左間距為15
  1718. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  1719. for (i = 0; i < childs.length; i++) {
  1720. //如果豎排top超過了範圍處理
  1721. if (top + 95 > US.height - 10) {
  1722. //left超過了頁面範圍處理,則向上重疊打印處理
  1723. if ((left + 180) > US.width) {
  1724. top -= 110;
  1725. left -= 90;
  1726. }
  1727. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  1728. else {
  1729. left += 90;
  1730. top = 15;
  1731. };
  1732. }
  1733. //給圖標的位置賦值
  1734. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1735. if (i < childs.length - 1) {
  1736. //頁面圖標每次向下加95
  1737. top += 95;
  1738. }
  1739. }
  1740. //返回最後調用的圖標的位置
  1741. return [top, left];
  1742. }
  1743. /**
  1744. * 桌面排列圖標
  1745. *
  1746. * @param {element} 桌面元素
  1747. * @param {object} 上下相距的距離
  1748. * @param {object} 左右相距的距離
  1749. * @return {object} 命名空間
  1750. */
  1751. U.MD.D.iconPostion2 = function (childs, top, left) {
  1752. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用於循環處理
  1753. top = top || 70; //如果沒有設置元素的間距處理默認上間距為15
  1754. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果沒有設置元素的間距處理默認左間距為15
  1755. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  1756. for (i = 0; i < childs.length; i++) {
  1757. //如果豎排top超過了範圍處理
  1758. if (left + 150 > US.width - 10) {
  1759. //left超過了頁面範圍處理,則向上重疊打印處理
  1760. if ((top + 180) > US.Height) {
  1761. top -= 150;
  1762. left -= 150;
  1763. }
  1764. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  1765. else {
  1766. top += 150;
  1767. left = ol;
  1768. };
  1769. }
  1770. //給圖標的位置賦值
  1771. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1772. if (i < childs.length - 1) {
  1773. //頁面圖標每次向下加95
  1774. left += 150;
  1775. }
  1776. }
  1777. //返回最後調用的圖標的位置
  1778. return [top, left];
  1779. }
  1780. /**
  1781. * 桌面點擊事件邏輯
  1782. *
  1783. * @param {element} 桌面元素
  1784. * @param {object} 上下相距的距離
  1785. * @param {object} 左右相距的距離
  1786. * @return {object} 命名空間
  1787. */
  1788. U.MD.D.click = function (el, obj) {
  1789. var _buttonnumber = event.button; //點擊的按鈕的事件值
  1790. var _userinfo = US.userInfo;
  1791. U.UF.EV.stopBubble(); //阻止向上冒泡
  1792. //onmousedown 包含了左鍵和右鍵 這裏大於2是為了兼容 所有瀏覽器的右鍵處理
  1793. if (_buttonnumber < 2) {
  1794. //如果是click事件的處理
  1795. if (event.type == "click") {
  1796. //如果元素在mousemove事件中沒有移動則出發click事件
  1797. if (!U.MD.D.I.IsDrag) {
  1798. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1799. U.alert("請先登錄您的賬號!");
  1800. setTimeout(() => {
  1801. U.MD.U.L.login();
  1802. }, 2000);
  1803. } else {
  1804. //打開應用處理
  1805. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1806. }
  1807. }
  1808. }
  1809. //如果是mouse事件的處理
  1810. else {
  1811. if (US.Config.type == '1') {
  1812. //拖動處理,添加拖動和拖動結束事件
  1813. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1814. }
  1815. }
  1816. U.MD.D.I.IsDrag = false;
  1817. }
  1818. }
  1819. /**
  1820. * 拖動的處理
  1821. *
  1822. */
  1823. U.MD.D.iconMove = function () {
  1824. //如果當前位置點擊初始化的位置出現了變化,則設置是否拖動的屬性 U.MD.D.I.IsDrag為true
  1825. U.MD.D.I.IsDrag = true;
  1826. }
  1827. /**
  1828. * 拖動結束後,這裏是定位處理,以網狀的形式定位
  1829. *
  1830. * @param {element} 拖動的元素
  1831. * @return {object} 命名空間
  1832. */
  1833. U.MD.D.iconUp = function (el) {
  1834. var _top = 15,
  1835. _left = 20,
  1836. _margin,
  1837. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的圖標
  1838. _positioninfo = U.UF.EL.getElementInfo(el); //獲取拖動結束的元素的位置
  1839. if (_positioninfo["OT"] > 15) {
  1840. //網狀的形式定位,如果差超過了55,那麼向下定位,否則向上定位
  1841. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1842. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1843. }
  1844. if (_positioninfo["OL"] > 20) {
  1845. //網狀的形式定位,如果差超過了90,那麼向右定位,否則向左定位
  1846. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1847. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1848. }
  1849. //while循環判斷麼一個重疊的元素
  1850. do {
  1851. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //給重疊的元素向下定位
  1852. _top = _positioninfo[0] + 95; //得到定位後的top
  1853. _left = _positioninfo[1]; //得到定位後的left
  1854. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1855. }
  1856. /**
  1857. * 判斷拖動後圖標是否重疊
  1858. *
  1859. * @param {element} 拖動的元素
  1860. * @param {element} 桌面所有的元素
  1861. * @param {array} 拖動元素的位置
  1862. ----------[0] 上 top
  1863. ----------[1] 左 left
  1864. * @return {object} 命名空間
  1865. */
  1866. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1867. //循環所有的圖標
  1868. for (var i = 0; i < childs.length; i++) {
  1869. //判斷有沒有和該圖標誒子重疊的元素
  1870. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1871. return childs[i]; //如果有返回
  1872. }
  1873. }
  1874. }
  1875. //#endregion
  1876. //#endregion
  1877. //#region 桌面應用
  1878. /**
  1879. * 打開應用
  1880. *
  1881. * @param {string} 類型
  1882. -----------------Disk 網盤系統
  1883. -----------------PDisk 學習系統網盤
  1884. -----------------Poto 圖片
  1885. -----------------Video 視頻
  1886. -----------------Music 音樂
  1887. -----------------Word word
  1888. -----------------Excel excel
  1889. -----------------Txt 記事本
  1890. -----------------PB 學習系統
  1891. -----------------Blog 朋友圈系統
  1892. -----------------FTP ftp系統
  1893. -----------------Group 好友群
  1894. -----------------SY 首頁系統
  1895. -----------------Set 個人設置
  1896. -----------------XSet 系統設置
  1897. -----------------App 我們所有的app
  1898. -----------------BC c.1473.cn 平臺
  1899. -----------------CWeb d.1473.cn 變成平臺
  1900. -----------------其他的外聯系統 我們統一用iframe打開
  1901. * @param {array} 類型
  1902. 如果第一個參數為"disk",則第二個參數為object,裏面包含了用戶id和目錄id{userid:"",directoryid:""}
  1903. 如果第一個參數為"word"或者"excel","txt",則第二個參數為文件信息fileinfo。
  1904. 如果第一個參數為"blog"或者"PDisk"。建議刪除。
  1905. 如果第一個參數為其他,則無第二個參數
  1906. * @returns {array}
  1907. */
  1908. window.addEventListener('message', function (e) { // 監聽 message 事件
  1909. // alert(e.data.type);
  1910. if (e.data.screenType && e.data.screenType == "2") { //課程管理傳入
  1911. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1912. //3是展示全部階段 2學生 1老師 4專家
  1913. } else if (e.data.screenType && e.data.screenType == "2s") { //課程管理傳入
  1914. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1915. //3是展示全部階段 2學生 1老師 4專家
  1916. } else if (e.data.screenType && e.data.screenType == "2studio") { //課程管理傳入
  1917. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1918. //3是展示全部階段 2學生 1老師 4專家
  1919. } else if (e.data.screenType && e.data.screenType == "3") { //課程管理傳入
  1920. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1921. } else if (e.data.screenType && e.data.screenType == "3NT") { //課程管理傳入
  1922. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1923. } else if (e.data.screenType && e.data.screenType == "3s") { //課程管理傳入
  1924. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1925. } else if (e.data.screenType && e.data.screenType == "3studio") { //課程管理傳入
  1926. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1927. } else if (e.data.screenType && e.data.screenType == "3s2") { //課程管理傳入
  1928. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1929. } else if (e.data.screenType && e.data.screenType == "2gm") { //課程管理傳入
  1930. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1931. //3是展示全部階段 2學生 1老師 4專家
  1932. } else if (e.data.screenType && e.data.screenType == "3gm") { //課程管理傳入
  1933. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1934. } else if (e.data.close && e.data.close == "1") { //更新用戶信息
  1935. U.MD.D.I.selectUser();
  1936. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1937. var _formel = document.getElementById("study");
  1938. U.UF.F.windowZooming(_formel);
  1939. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1940. var _formel = document.getElementById("studyDetail");
  1941. U.UF.F.windowZooming(_formel);
  1942. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1943. var _formel = document.getElementById("studyDetail");
  1944. U.UF.F.windowZooming(_formel);
  1945. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1946. var _formel = document.getElementById("studentStudy");
  1947. U.UF.F.windowZooming(_formel);
  1948. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1949. // var _formel = document.getElementById("study");
  1950. //如果最大化了,那麼就把他縮小
  1951. // if (_formel.ismaximize) {
  1952. // return;
  1953. // }
  1954. // U.UF.F.windowZooming(_formel);
  1955. // U.UF.F.topWindow(_formel);
  1956. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1957. // var _formel = document.getElementById("studyDetail");
  1958. //如果最大化了,那麼就把他縮小
  1959. // if (_formel.ismaximize) {
  1960. // return;
  1961. // }
  1962. // U.UF.F.windowZooming(_formel);
  1963. // U.UF.F.topWindow(_formel);
  1964. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1965. // var _formel = document.getElementById("studentStudy");
  1966. // if (_formel.ismaximize) {
  1967. // return;
  1968. // }
  1969. // U.UF.F.windowZooming(_formel);
  1970. // U.UF.F.topWindow(_formel);
  1971. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1972. var _formel = document.getElementById("study");
  1973. // if (_formel.ismaximize) {
  1974. // return;
  1975. // }
  1976. // U.UF.F.windowZooming(_formel);
  1977. U.UF.F.topWindow(_formel);
  1978. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1979. var _formel = document.getElementById("studentIndex");
  1980. U.UF.F.windowZooming(_formel);
  1981. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1982. var _formel = document.getElementById("studyDetailS");
  1983. U.UF.F.windowZooming(_formel);
  1984. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1985. var _formel = document.getElementById("studioIndex");
  1986. U.UF.F.windowZooming(_formel);
  1987. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1988. var _formel = document.getElementById("studyDetailStudio");
  1989. U.UF.F.windowZooming(_formel);
  1990. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1991. var _formel = document.getElementById("studyDetailStudio");
  1992. U.UF.F.windowZooming(_formel);
  1993. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1994. var _formel = document.getElementById("studyDetailNT");
  1995. U.UF.F.windowZooming(_formel);
  1996. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1997. var _formel = document.getElementById("studyDetailS");
  1998. U.UF.F.windowZooming(_formel);
  1999. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  2000. var _formel = document.getElementById("studyDetailS");
  2001. U.UF.F.topWindow(_formel);
  2002. } else if (e.data.tools && e.data.tools == "1") {
  2003. // U.MD.D.I.openApplication("whiteboard")
  2004. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2005. } else if (e.data.tools && e.data.tools == "2") {
  2006. U.MD.D.I.openApplication("note")
  2007. } else if (e.data.tools && e.data.tools == "3") {
  2008. // U.MD.D.I.openApplication("mind")
  2009. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2010. } else if (e.data.tools && e.data.tools == "4") {
  2011. U.MD.D.I.openApplication("investigation")
  2012. } else if (e.data.tools && e.data.tools == "6") {
  2013. // U.MD.D.I.openApplication("doc")
  2014. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2015. } else if (e.data.tools && e.data.tools == "7") {
  2016. // U.MD.D.I.openApplication("mindNetwork")
  2017. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2018. } else if (e.data.tools && e.data.tools == "8") {
  2019. U.MD.D.I.openApplication("library")
  2020. } else if (e.data.tools && e.data.tools == "17") {
  2021. U.MD.D.I.openApplication("stuLibrary")
  2022. } else if (e.data.tools && e.data.tools == "18") {
  2023. U.MD.D.I.openApplication("train")
  2024. } else if (e.data.tools && e.data.tools == "21") {
  2025. U.MD.D.I.openApplication("program")
  2026. } else if (e.data.tools && e.data.tools == "22") {
  2027. U.MD.D.I.openApplication("AIprogram2")
  2028. } else if (e.data.tools && e.data.tools == "23") {
  2029. U.MD.D.I.openApplication("Pythonprogram")
  2030. } else if (e.data.tools && e.data.tools == "24") {
  2031. U.MD.D.I.openApplication("AIprogram")
  2032. } else if (e.data.tools && e.data.tools == "25") {
  2033. U.MD.D.I.openApplication("sys")
  2034. } else if (e.data.tools && e.data.tools == "26") {
  2035. // U.MD.D.I.openApplication("courseDesign")
  2036. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2037. } else if (e.data.tools && e.data.tools == "31") {
  2038. U.MD.D.I.openApplication("netWorkPanel")
  2039. } else if (e.data.tools && e.data.tools == "32") {
  2040. U.MD.D.I.openApplication("codeEdit")
  2041. } else if (e.data.tools && e.data.tools == "57") {
  2042. U.MD.D.I.openApplication("CocoPi")
  2043. } else if (e.data.tools && e.data.tools == "63") {
  2044. U.MD.D.I.openApplication("Wood")
  2045. } else if (e.data.tools && e.data.tools == "58") {
  2046. U.MD.D.I.openApplication("car")
  2047. } else if (e.data.tools && e.data.tools == "59") {
  2048. U.MD.D.I.openApplication("lineSearch")
  2049. } else if (e.data.tools && e.data.tools == "60") {
  2050. U.MD.D.I.openApplication("deepLearning")
  2051. } else if (e.data.tools && e.data.tools == "61") {
  2052. U.MD.D.I.openApplication("allHistory")
  2053. } else if (e.data.tools && e.data.tools == "28") {
  2054. U.MD.D.I.openApplication("translation")
  2055. } else if (e.data.tools && e.data.tools == "37") {
  2056. U.MD.D.I.openApplication("mohe")
  2057. } else if (e.data.tools && e.data.tools == "38") {
  2058. U.MD.D.I.openApplication("24game")
  2059. } else if (e.data.tools && e.data.tools == "39") {
  2060. U.MD.D.I.openApplication("GeoGebra")
  2061. } else if (e.data.tools && e.data.tools == "43") {
  2062. U.MD.D.I.openApplication("studentEvaluate")
  2063. } else if (e.data.tools && e.data.tools == "44") {
  2064. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  2065. } else if (e.data.tools && e.data.tools == "46") {
  2066. U.MD.D.I.openApplication("project")
  2067. } else if (e.data.tools && e.data.tools == "1s") {
  2068. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2069. } else if (e.data.tools && e.data.tools == "3s") {
  2070. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2071. } else if (e.data.tools && e.data.tools == "6s") {
  2072. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2073. } else if (e.data.tools && e.data.tools == "1studio") {
  2074. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2075. } else if (e.data.tools && e.data.tools == "3studio") {
  2076. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2077. } else if (e.data.tools && e.data.tools == "6studio") {
  2078. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2079. } else if (e.data.tools && e.data.tools == "3y") {
  2080. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2081. } else if (e.data.tools && e.data.tools == "1y") {
  2082. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2083. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  2084. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  2085. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  2086. U.MD.D.I.openApplication("AIAnalyse")
  2087. } else if (e.data.tools && e.data.tools == "1teacher") {
  2088. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2089. } else if (e.data.tools && e.data.tools == "3teacher") {
  2090. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2091. } else if (e.data.tools && e.data.tools == "7teacher") {
  2092. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2093. } else if (e.data.tools && e.data.tools == "1teacherE") {
  2094. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2095. } else if (e.data.tools && e.data.tools == "3teacherE") {
  2096. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2097. } else if (e.data.tools && e.data.tools == "1E") {
  2098. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2099. } else if (e.data.tools && e.data.tools == "3E") {
  2100. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2101. } else if (e.data.tools && e.data.tools == "57y") {
  2102. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2103. } else if (e.data.tools && e.data.tools == "57u") {
  2104. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2105. } else if (e.data.tools && e.data.tools == "57teacher") {
  2106. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2107. } else if (e.data.tools && e.data.tools == "64") {
  2108. U.MD.D.I.openApplication("AIChat")
  2109. }
  2110. });
  2111. U.MD.D.I.selectUser = function () {
  2112. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  2113. if (res.value[0].length > 0) {
  2114. US.userInfo = res.value[0][0];
  2115. $(".userName")[0].innerHTML = US.userInfo.username;
  2116. }
  2117. }, [], { "type": "GET", "withCredentials": true });
  2118. }
  2119. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  2120. var _userinfo = US.userInfo, //登錄用戶信息
  2121. _userid = US.userInfo.userid, //登錄用戶id
  2122. _oid = _userinfo.organizeid,
  2123. _type = US.userInfo.type,
  2124. _org = US.userInfo.org,
  2125. _role = US.userInfo.role,
  2126. _classId = US.userInfo.classid;
  2127. if (_type == 4) {
  2128. tType = 4
  2129. }
  2130. switch (str) {
  2131. case "studyDetailNT"://無終端模式
  2132. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2133. setTimeout(() => {
  2134. U.MD.U.L.login();
  2135. }, 2000);
  2136. } else {
  2137. _formdiv = new U.UF.UI.form(
  2138. "課程詳情",
  2139. $$("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 }), {
  2140. "id": "studyDetailNT",
  2141. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2142. "onresize": function () { }
  2143. }, {
  2144. closecallback: function () { }
  2145. }, { "style": { "height": "36px" } }).form; //創建窗體
  2146. _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); } }
  2147. break;
  2148. }
  2149. case "studyDetail":
  2150. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2151. setTimeout(() => {
  2152. U.MD.U.L.login();
  2153. }, 2000);
  2154. } else {
  2155. _formdiv = new U.UF.UI.form(
  2156. "課程詳情",
  2157. $$("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 }), {
  2158. "id": "studyDetail",
  2159. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2160. "onresize": function () { }
  2161. }, {
  2162. closecallback: function () { }
  2163. }, { "style": { "height": "36px" } }).form; //創建窗體
  2164. _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); } }
  2165. break;
  2166. }
  2167. case "studyDetailS":
  2168. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2169. setTimeout(() => {
  2170. U.MD.U.L.login();
  2171. }, 2000);
  2172. } else {
  2173. _formdiv = new U.UF.UI.form(
  2174. "項目詳情",
  2175. $$("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 }), {
  2176. "id": "studyDetailS",
  2177. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2178. "onresize": function () { }
  2179. }, {
  2180. closecallback: function () { }
  2181. }, { "style": { "height": "36px" } }).form; //創建窗體
  2182. _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); } }
  2183. break;
  2184. }
  2185. case "studyDetailStudio":
  2186. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2187. setTimeout(() => {
  2188. U.MD.U.L.login();
  2189. }, 2000);
  2190. } else {
  2191. _formdiv = new U.UF.UI.form(
  2192. "工作詳情",
  2193. $$("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 }), {
  2194. "id": "studyDetailStudio",
  2195. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2196. "onresize": function () { }
  2197. }, {
  2198. closecallback: function () { }
  2199. }, { "style": { "height": "36px" } }).form; //創建窗體
  2200. _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); } }
  2201. break;
  2202. }
  2203. case "studyDetailS5":
  2204. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2205. setTimeout(() => {
  2206. U.MD.U.L.login();
  2207. }, 2000);
  2208. } else {
  2209. _formdiv = new U.UF.UI.form(
  2210. "項目詳情",
  2211. $$("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 }), {
  2212. "id": "studyDetailS",
  2213. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2214. "onresize": function () { }
  2215. }, {
  2216. closecallback: function () { }
  2217. }, { "style": { "height": "36px" } }).form; //創建窗體
  2218. _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); } }
  2219. break;
  2220. }
  2221. case "studyDetailGM":
  2222. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2223. setTimeout(() => {
  2224. U.MD.U.L.login();
  2225. }, 2000);
  2226. } else {
  2227. _formdiv = new U.UF.UI.form(
  2228. "課程詳情",
  2229. $$("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 }), {
  2230. "id": "studyDetail",
  2231. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2232. "onresize": function () { }
  2233. }, {
  2234. closecallback: function () { }
  2235. }, { "style": { "height": "36px" } }).form; //創建窗體
  2236. _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); } }
  2237. break;
  2238. }
  2239. case "hanUrl":
  2240. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2241. setTimeout(() => {
  2242. U.MD.U.L.login();
  2243. }, 2000);
  2244. } else {
  2245. _formdiv = new U.UF.UI.form(
  2246. "漢字宮",
  2247. $$("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" }), {
  2248. "id": "hanUrl",
  2249. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2250. "onresize": function () { }
  2251. }, {
  2252. closecallback: function () { }
  2253. }, { "style": { "height": "36px" } }).form; //創建窗體
  2254. _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); } }
  2255. break;
  2256. }
  2257. }
  2258. }
  2259. U.MD.D.I.openApplication = function (str, obj, info) {
  2260. obj = obj || {};
  2261. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  2262. _formdiv, //創建任務欄時同時彈出的窗體元素。
  2263. _userinfo = US.userInfo, //登錄用戶信息
  2264. _userid = obj.userid || US.userInfo.userid, //登錄用戶id
  2265. _oid = obj.organizeid || _userinfo.organizeid,
  2266. _type = US.userInfo.type,
  2267. _org = US.userInfo.org,
  2268. _role = US.userInfo.role,
  2269. _classId = US.userInfo.classid,
  2270. _TscreenType = 1
  2271. _screenType = 2,
  2272. _SscreenType = 3;
  2273. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2274. return;
  2275. }
  2276. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2277. switch (str) {
  2278. case "studnetProject": //好友打開
  2279. _formdiv = new U.UF.UI.form(
  2280. "我的項目",
  2281. $$("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 }), {
  2282. "id": "studnetProject",
  2283. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2284. "onresize": function () { }
  2285. }, {
  2286. closecallback: function () { }
  2287. }, { "style": { "height": "36px" } }).form; //創建窗體
  2288. _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); } }
  2289. break;
  2290. case "studentEvaluate": //好友打開
  2291. _formdiv = new U.UF.UI.form(
  2292. "我的評價",
  2293. $$("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 }), {
  2294. "id": "studentEvaluate",
  2295. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2296. "onresize": function () { }
  2297. }, {
  2298. closecallback: function () { }
  2299. }, { "style": { "height": "36px" } }).form; //創建窗體
  2300. _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); } }
  2301. break;
  2302. case "my":
  2303. _formdiv = new U.UF.UI.form(
  2304. "我的資料",
  2305. $$("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 }), {
  2306. "id": "my",
  2307. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2308. "onresize": function () { }
  2309. }, {
  2310. closecallback: function () { }
  2311. }, { "style": { "height": "36px" } }).form; //創建窗體
  2312. _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); } }
  2313. break;
  2314. case "program":
  2315. _formdiv = new U.UF.UI.form(
  2316. "編程平臺",
  2317. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2318. "id": "program",
  2319. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2320. "onresize": function () { }
  2321. }, {
  2322. closecallback: function () { }
  2323. }, { "style": { "height": "36px" } }).form; //創建窗體
  2324. _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); } }
  2325. break;
  2326. case "library":
  2327. _formdiv = new U.UF.UI.form(
  2328. "素材庫",
  2329. $$("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 }), {
  2330. "id": "library",
  2331. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2332. "onresize": function () { }
  2333. }, {
  2334. closecallback: function () { }
  2335. }, { "style": { "height": "36px" } }).form; //創建窗體
  2336. _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); } }
  2337. break;
  2338. case "whiteboard":
  2339. _formdiv = new U.UF.UI.form(
  2340. "電子白板",
  2341. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2342. "id": "whiteboard",
  2343. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2344. "onresize": function () { }
  2345. }, {
  2346. closecallback: function () { }
  2347. }, { "style": { "height": "36px" } }).form; //創建窗體
  2348. _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); } }
  2349. break;
  2350. case "investigation":
  2351. _formdiv = new U.UF.UI.form(
  2352. "問卷調查",
  2353. $$("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 }), {
  2354. "id": "investigation",
  2355. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2356. "onresize": function () { }
  2357. }, {
  2358. closecallback: function () { }
  2359. }, { "style": { "height": "36px" } }).form; //創建窗體
  2360. _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); } }
  2361. break;
  2362. case "note":
  2363. _formdiv = new U.UF.UI.form(
  2364. "便簽分類",
  2365. $$("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 }), {
  2366. "id": "note",
  2367. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2368. "onresize": function () { }
  2369. }, {
  2370. closecallback: function () { }
  2371. }, { "style": { "height": "36px" } }).form; //創建窗體
  2372. _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); } }
  2373. break;
  2374. // case "score":
  2375. // _formdiv = new U.UF.UI.form(
  2376. // "量規評分",
  2377. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2378. // "id": "score",
  2379. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2380. // "onresize": function() {}
  2381. // }, {
  2382. // closecallback: function() {}
  2383. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2384. // _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); } }
  2385. // break;
  2386. case "mind":
  2387. _formdiv = new U.UF.UI.form(
  2388. "思維導圖",
  2389. $$("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"
  2390. "id": "mind",
  2391. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2392. "onresize": function () { }
  2393. }, {
  2394. closecallback: function () { }
  2395. }, { "style": { "height": "36px" } }).form; //創建窗體
  2396. _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); } }
  2397. break;
  2398. case "doc":
  2399. // U.MD.D.I.isRoom();
  2400. _formdiv = new U.UF.UI.form(
  2401. "協同文檔",
  2402. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2403. "id": "doc",
  2404. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2405. "onresize": function () { }
  2406. }, {
  2407. closecallback: function () { }
  2408. }, { "style": { "height": "36px" } }).form; //創建窗體
  2409. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2410. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2411. // })
  2412. _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); } }
  2413. break;
  2414. case "studentStudy":
  2415. _formdiv = new U.UF.UI.form(
  2416. "課程中心",
  2417. $$("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
  2418. "id": "studentStudy",
  2419. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2420. "onresize": function () { }
  2421. }, {
  2422. closecallback: function () { }
  2423. }, { "style": { "height": "36px" } }).form; //創建窗體
  2424. _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); } }
  2425. break;
  2426. case "train": //好友打開
  2427. _formdiv = new U.UF.UI.form(
  2428. "訓練平臺",
  2429. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2430. "id": "train",
  2431. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2432. "onresize": function () { }
  2433. }, {
  2434. closecallback: function () { }
  2435. }, { "style": { "height": "36px" } }).form; //創建窗體
  2436. _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); } }
  2437. break;
  2438. case "mindNetwork": //好友打開
  2439. _formdiv = new U.UF.UI.form(
  2440. "思維網格",
  2441. $$("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 }), {
  2442. "id": "mindNetwork",
  2443. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2444. "onresize": function () { }
  2445. }, {
  2446. closecallback: function () { }
  2447. }, { "style": { "height": "36px" } }).form; //創建窗體
  2448. _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); } }
  2449. break;
  2450. case "studentClassRoom": //好友打開
  2451. _formdiv = new U.UF.UI.form(
  2452. "實時課堂",
  2453. $$("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 }), {
  2454. "id": "studentClassRoom",
  2455. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2456. "onresize": function () { }
  2457. }, {
  2458. closecallback: function () { }
  2459. }, { "style": { "height": "36px" } }).form; //創建窗體
  2460. _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); } }
  2461. setTimeout(() => {
  2462. U.UF.F.windowZooming(_formdiv)
  2463. }, 0);
  2464. break;
  2465. }
  2466. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2467. switch (str) {
  2468. case "studnetProject": //好友打開
  2469. _formdiv = new U.UF.UI.form(
  2470. "我的項目",
  2471. $$("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 }), {
  2472. "id": "studnetProject",
  2473. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2474. "onresize": function () { }
  2475. }, {
  2476. closecallback: function () { }
  2477. }, { "style": { "height": "36px" } }).form; //創建窗體
  2478. _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); } }
  2479. break;
  2480. case "studentEvaluate": //好友打開
  2481. _formdiv = new U.UF.UI.form(
  2482. "我的評價",
  2483. $$("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 }), {
  2484. "id": "studentEvaluate",
  2485. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2486. "onresize": function () { }
  2487. }, {
  2488. closecallback: function () { }
  2489. }, { "style": { "height": "36px" } }).form; //創建窗體
  2490. _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); } }
  2491. break;
  2492. case "my":
  2493. _formdiv = new U.UF.UI.form(
  2494. "我的資料",
  2495. $$("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 }), {
  2496. "id": "my",
  2497. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2498. "onresize": function () { }
  2499. }, {
  2500. closecallback: function () { }
  2501. }, { "style": { "height": "36px" } }).form; //創建窗體
  2502. _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); } }
  2503. break;
  2504. case "program":
  2505. _formdiv = new U.UF.UI.form(
  2506. "編程平臺",
  2507. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2508. "id": "program",
  2509. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2510. "onresize": function () { }
  2511. }, {
  2512. closecallback: function () { }
  2513. }, { "style": { "height": "36px" } }).form; //創建窗體
  2514. _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); } }
  2515. break;
  2516. case "library":
  2517. _formdiv = new U.UF.UI.form(
  2518. "素材庫",
  2519. $$("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 }), {
  2520. "id": "library",
  2521. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2522. "onresize": function () { }
  2523. }, {
  2524. closecallback: function () { }
  2525. }, { "style": { "height": "36px" } }).form; //創建窗體
  2526. _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); } }
  2527. break;
  2528. case "whiteboard":
  2529. _formdiv = new U.UF.UI.form(
  2530. "電子白板",
  2531. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2532. "id": "whiteboard",
  2533. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2534. "onresize": function () { }
  2535. }, {
  2536. closecallback: function () { }
  2537. }, { "style": { "height": "36px" } }).form; //創建窗體
  2538. _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); } }
  2539. break;
  2540. case "investigation":
  2541. _formdiv = new U.UF.UI.form(
  2542. "問卷調查",
  2543. $$("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 }), {
  2544. "id": "investigation",
  2545. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2546. "onresize": function () { }
  2547. }, {
  2548. closecallback: function () { }
  2549. }, { "style": { "height": "36px" } }).form; //創建窗體
  2550. _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); } }
  2551. break;
  2552. case "note":
  2553. _formdiv = new U.UF.UI.form(
  2554. "便簽分類",
  2555. $$("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 }), {
  2556. "id": "note",
  2557. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2558. "onresize": function () { }
  2559. }, {
  2560. closecallback: function () { }
  2561. }, { "style": { "height": "36px" } }).form; //創建窗體
  2562. _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); } }
  2563. break;
  2564. // case "score":
  2565. // _formdiv = new U.UF.UI.form(
  2566. // "量規評分",
  2567. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2568. // "id": "score",
  2569. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2570. // "onresize": function() {}
  2571. // }, {
  2572. // closecallback: function() {}
  2573. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2574. // _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); } }
  2575. // break;
  2576. case "mind":
  2577. _formdiv = new U.UF.UI.form(
  2578. "思維導圖",
  2579. $$("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"
  2580. "id": "mind",
  2581. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2582. "onresize": function () { }
  2583. }, {
  2584. closecallback: function () { }
  2585. }, { "style": { "height": "36px" } }).form; //創建窗體
  2586. _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); } }
  2587. break;
  2588. case "doc":
  2589. // U.MD.D.I.isRoom();
  2590. _formdiv = new U.UF.UI.form(
  2591. "協同文檔",
  2592. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2593. "id": "doc",
  2594. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2595. "onresize": function () { }
  2596. }, {
  2597. closecallback: function () { }
  2598. }, { "style": { "height": "36px" } }).form; //創建窗體
  2599. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2600. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2601. })
  2602. _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); } }
  2603. break;
  2604. case "train": //好友打開
  2605. _formdiv = new U.UF.UI.form(
  2606. "訓練平臺",
  2607. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2608. "id": "train",
  2609. "style": { "width": "90%", "height": "90%", "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/trainPlatform.png)" }, "name": "訓練平臺", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2615. break;
  2616. case "studentStudy":
  2617. _formdiv = new U.UF.UI.form(
  2618. "課程中心",
  2619. $$("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
  2620. "id": "studentStudy",
  2621. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2622. "onresize": function () { }
  2623. }, {
  2624. closecallback: function () { }
  2625. }, { "style": { "height": "36px" } }).form; //創建窗體
  2626. _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); } }
  2627. break;
  2628. case "mindNetwork": //好友打開
  2629. _formdiv = new U.UF.UI.form(
  2630. "思維網格",
  2631. $$("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 }), {
  2632. "id": "mindNetwork",
  2633. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2634. "onresize": function () { }
  2635. }, {
  2636. closecallback: function () { }
  2637. }, { "style": { "height": "36px" } }).form; //創建窗體
  2638. _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); } }
  2639. break;
  2640. case "studentClassRoom": //好友打開
  2641. _formdiv = new U.UF.UI.form(
  2642. "實時課堂",
  2643. $$("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 }), {
  2644. "id": "studentClassRoom",
  2645. "style": { "width": "90%", "height": "90%", "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/classRoom.png)" }, "name": "實時課堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2651. setTimeout(() => {
  2652. U.UF.F.windowZooming(_formdiv)
  2653. }, 0);
  2654. break;
  2655. }
  2656. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2657. //選擇應用處理
  2658. switch (str) {
  2659. case "project": //好友打開
  2660. _formdiv = new U.UF.UI.form(
  2661. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目':"課程管理",
  2662. $$("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 }), {
  2663. "id": "project",
  2664. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2665. "onresize": function () { }
  2666. }, {
  2667. closecallback: function () { }
  2668. }, { "style": { "height": "36px" } }).form; //創建窗體
  2669. _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); } }
  2670. break;
  2671. case "student":
  2672. _formdiv = new U.UF.UI.form(
  2673. "學生管理",
  2674. $$("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 }), {
  2675. "id": "student",
  2676. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2677. "onresize": function () { }
  2678. }, {
  2679. closecallback: function () { }
  2680. }, { "style": { "height": "36px" } }).form; //創建窗體
  2681. _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); } }
  2682. break;
  2683. case "evaluate":
  2684. _formdiv = new U.UF.UI.form(
  2685. "學生評價",
  2686. $$("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 }), {
  2687. "id": "evaluate",
  2688. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2689. "onresize": function () { }
  2690. }, {
  2691. closecallback: function () { }
  2692. }, { "style": { "height": "36px" } }).form; //創建窗體
  2693. _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); } }
  2694. break;
  2695. case "sys":
  2696. _formdiv = new U.UF.UI.form(
  2697. "目標管理",
  2698. $$("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 }), {
  2699. "id": "sys",
  2700. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2701. "onresize": function () { }
  2702. }, {
  2703. closecallback: function () { }
  2704. }, { "style": { "height": "36px" } }).form; //創建窗體
  2705. _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); } }
  2706. break;
  2707. case "courseDesign":
  2708. _formdiv = new U.UF.UI.form(
  2709. "項目設計",
  2710. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2711. "id": "courseDesign",
  2712. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2713. "onresize": function () { }
  2714. }, {
  2715. closecallback: function () { }
  2716. }, { "style": { "height": "36px" } }).form; //創建窗體
  2717. _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); } }
  2718. break;
  2719. case "program":
  2720. _formdiv = new U.UF.UI.form(
  2721. "編程平臺",
  2722. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2723. "id": "program",
  2724. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2725. "onresize": function () { }
  2726. }, {
  2727. closecallback: function () { }
  2728. }, { "style": { "height": "36px" } }).form; //創建窗體
  2729. _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); } }
  2730. break;
  2731. case "class":
  2732. _formdiv = new U.UF.UI.form(
  2733. "班級管理",
  2734. $$("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 }), {
  2735. "id": "class",
  2736. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2737. "onresize": function () { }
  2738. }, {
  2739. closecallback: function () { }
  2740. }, { "style": { "height": "36px" } }).form; //創建窗體
  2741. _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); } }
  2742. break;
  2743. case "Grade":
  2744. _formdiv = new U.UF.UI.form(
  2745. "年級管理",
  2746. $$("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 }), {
  2747. "id": "Grade",
  2748. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2749. "onresize": function () { }
  2750. }, {
  2751. closecallback: function () { }
  2752. }, { "style": { "height": "36px" } }).form; //創建窗體
  2753. _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); } }
  2754. break;
  2755. case "teacherOffice":
  2756. _formdiv = new U.UF.UI.form(
  2757. "教研室",
  2758. $$("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 }), {
  2759. "id": "teacherOffice",
  2760. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2761. "onresize": function () { }
  2762. }, {
  2763. closecallback: function () { }
  2764. }, { "style": { "height": "36px" } }).form; //創建窗體
  2765. _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); } }
  2766. break;
  2767. case "my":
  2768. _formdiv = new U.UF.UI.form(
  2769. "我的資料",
  2770. $$("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 }), {
  2771. "id": "my",
  2772. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2773. "onresize": function () { }
  2774. }, {
  2775. closecallback: function () { }
  2776. }, { "style": { "height": "36px" } }).form; //創建窗體
  2777. _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); } }
  2778. break;
  2779. case "notice":
  2780. _formdiv = new U.UF.UI.form(
  2781. "通知公告",
  2782. $$("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 }), {
  2783. "id": "notice",
  2784. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2785. "onresize": function () { }
  2786. }, {
  2787. closecallback: function () { }
  2788. }, { "style": { "height": "36px" } }).form; //創建窗體
  2789. _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); } }
  2790. break;
  2791. case "library":
  2792. _formdiv = new U.UF.UI.form(
  2793. "素材庫",
  2794. $$("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 }), {
  2795. "id": "library",
  2796. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2797. "onresize": function () { }
  2798. }, {
  2799. closecallback: function () { }
  2800. }, { "style": { "height": "36px" } }).form; //創建窗體
  2801. _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); } }
  2802. break;
  2803. case "whiteboard":
  2804. _formdiv = new U.UF.UI.form(
  2805. "電子白板",
  2806. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2807. "id": "whiteboard",
  2808. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2809. "onresize": function () { }
  2810. }, {
  2811. closecallback: function () { }
  2812. }, { "style": { "height": "36px" } }).form; //創建窗體
  2813. _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); } }
  2814. break;
  2815. case "investigation":
  2816. _formdiv = new U.UF.UI.form(
  2817. "問卷調查",
  2818. $$("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 }), {
  2819. "id": "investigation",
  2820. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2821. "onresize": function () { }
  2822. }, {
  2823. closecallback: function () { }
  2824. }, { "style": { "height": "36px" } }).form; //創建窗體
  2825. _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); } }
  2826. break;
  2827. case "note":
  2828. _formdiv = new U.UF.UI.form(
  2829. "便簽分類",
  2830. $$("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 }), {
  2831. "id": "note",
  2832. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2833. "onresize": function () { }
  2834. }, {
  2835. closecallback: function () { }
  2836. }, { "style": { "height": "36px" } }).form; //創建窗體
  2837. _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); } }
  2838. break;
  2839. // case "score":
  2840. // _formdiv = new U.UF.UI.form(
  2841. // "量規評分",
  2842. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2843. // "id": "score",
  2844. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2845. // "onresize": function() {}
  2846. // }, {
  2847. // closecallback: function() {}
  2848. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2849. // _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); } }
  2850. // break;
  2851. case "mind":
  2852. _formdiv = new U.UF.UI.form(
  2853. "思維導圖",
  2854. $$("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"
  2855. "id": "mind",
  2856. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2857. "onresize": function () { }
  2858. }, {
  2859. closecallback: function () { }
  2860. }, { "style": { "height": "36px" } }).form; //創建窗體
  2861. _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); } }
  2862. break;
  2863. case "doc":
  2864. // U.MD.D.I.isRoom();
  2865. _formdiv = new U.UF.UI.form(
  2866. "協同文檔",
  2867. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2868. "id": "doc",
  2869. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2870. "onresize": function () { }
  2871. }, {
  2872. closecallback: function () { }
  2873. }, { "style": { "height": "36px" } }).form; //創建窗體
  2874. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2875. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2876. })
  2877. _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); } }
  2878. break;
  2879. case "study":
  2880. _formdiv = new U.UF.UI.form(
  2881. "課程中心",
  2882. $$("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
  2883. "id": "study",
  2884. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2885. "onresize": function () { }
  2886. }, {
  2887. closecallback: function () { }
  2888. }, { "style": { "height": "36px" } }).form; //創建窗體
  2889. _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); } }
  2890. break;
  2891. case "mindNetwork": //好友打開
  2892. _formdiv = new U.UF.UI.form(
  2893. "思維網格",
  2894. $$("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 }), {
  2895. "id": "mindNetwork",
  2896. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2897. "onresize": function () { }
  2898. }, {
  2899. closecallback: function () { }
  2900. }, { "style": { "height": "36px" } }).form; //創建窗體
  2901. _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); } }
  2902. break;
  2903. case "train": //好友打開
  2904. _formdiv = new U.UF.UI.form(
  2905. "訓練平臺",
  2906. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2907. "id": "mindNetwork",
  2908. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2909. "onresize": function () { }
  2910. }, {
  2911. closecallback: function () { }
  2912. }, { "style": { "height": "36px" } }).form; //創建窗體
  2913. _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); } }
  2914. break;
  2915. case "teacherClassRoom": //好友打開
  2916. _formdiv = new U.UF.UI.form(
  2917. "實時課堂",
  2918. $$("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 }), {
  2919. "id": "teacherClassRoom",
  2920. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2921. "onresize": function () { }
  2922. }, {
  2923. closecallback: function () { }
  2924. }, { "style": { "height": "36px" } }).form; //創建窗體
  2925. _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); } }
  2926. setTimeout(() => {
  2927. U.UF.F.windowZooming(_formdiv)
  2928. }, 0);
  2929. break;
  2930. }
  2931. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2932. switch (str) {
  2933. case "project": //好友打開
  2934. _formdiv = new U.UF.UI.form(
  2935. "課程管理",
  2936. $$("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 }), {
  2937. "id": "project",
  2938. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2939. "onresize": function () { }
  2940. }, {
  2941. closecallback: function () { }
  2942. }, { "style": { "height": "36px" } }).form; //創建窗體
  2943. _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); } }
  2944. break;
  2945. case "evaluate":
  2946. _formdiv = new U.UF.UI.form(
  2947. "學生評價",
  2948. $$("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 }), {
  2949. "id": "evaluate",
  2950. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2951. "onresize": function () { }
  2952. }, {
  2953. closecallback: function () { }
  2954. }, { "style": { "height": "36px" } }).form; //創建窗體
  2955. _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); } }
  2956. break;
  2957. case "notice":
  2958. _formdiv = new U.UF.UI.form(
  2959. "通知公告",
  2960. $$("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 }), {
  2961. "id": "notice",
  2962. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2963. "onresize": function () { }
  2964. }, {
  2965. closecallback: function () { }
  2966. }, { "style": { "height": "36px" } }).form; //創建窗體
  2967. _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); } }
  2968. break;
  2969. case "stuLibrary":
  2970. _formdiv = new U.UF.UI.form(
  2971. "學習資料",
  2972. $$("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 }), {
  2973. "id": "stuLibrary",
  2974. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2975. "onresize": function () { }
  2976. }, {
  2977. closecallback: function () { }
  2978. }, { "style": { "height": "36px" } }).form; //創建窗體
  2979. _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); } }
  2980. break;
  2981. case "program":
  2982. _formdiv = new U.UF.UI.form(
  2983. "編程平臺",
  2984. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2985. "id": "program",
  2986. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2987. "onresize": function () { }
  2988. }, {
  2989. closecallback: function () { }
  2990. }, { "style": { "height": "36px" } }).form; //創建窗體
  2991. _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); } }
  2992. break;
  2993. case "whiteboard":
  2994. _formdiv = new U.UF.UI.form(
  2995. "電子白板",
  2996. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2997. "id": "whiteboard",
  2998. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2999. "onresize": function () { }
  3000. }, {
  3001. closecallback: function () { }
  3002. }, { "style": { "height": "36px" } }).form; //創建窗體
  3003. _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); } }
  3004. break;
  3005. case "investigation":
  3006. _formdiv = new U.UF.UI.form(
  3007. "問卷調查",
  3008. $$("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 }), {
  3009. "id": "investigation",
  3010. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3011. "onresize": function () { }
  3012. }, {
  3013. closecallback: function () { }
  3014. }, { "style": { "height": "36px" } }).form; //創建窗體
  3015. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "問卷調查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3016. break;
  3017. case "mind":
  3018. _formdiv = new U.UF.UI.form(
  3019. "思維導圖",
  3020. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  3021. "id": "mind",
  3022. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3023. "onresize": function () { }
  3024. }, {
  3025. closecallback: function () { }
  3026. }, { "style": { "height": "36px" } }).form; //創建窗體
  3027. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思維導圖", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3028. break;
  3029. case "doc":
  3030. // U.MD.D.I.isRoom();
  3031. _formdiv = new U.UF.UI.form(
  3032. "協同文檔",
  3033. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3034. "id": "doc",
  3035. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3036. "onresize": function () { }
  3037. }, {
  3038. closecallback: function () { }
  3039. }, { "style": { "height": "36px" } }).form; //創建窗體
  3040. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3041. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3042. })
  3043. _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); } }
  3044. break;
  3045. case "study":
  3046. _formdiv = new U.UF.UI.form(
  3047. "課程中心",
  3048. $$("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
  3049. "id": "study",
  3050. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3051. "onresize": function () { }
  3052. }, {
  3053. closecallback: function () { }
  3054. }, { "style": { "height": "36px" } }).form; //創建窗體
  3055. _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); } }
  3056. break;
  3057. case "mindNetwork": //好友打開
  3058. _formdiv = new U.UF.UI.form(
  3059. "思維網格",
  3060. $$("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 }), {
  3061. "id": "mindNetwork",
  3062. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3063. "onresize": function () { }
  3064. }, {
  3065. closecallback: function () { }
  3066. }, { "style": { "height": "36px" } }).form; //創建窗體
  3067. _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); } }
  3068. break;
  3069. case "train": //好友打開
  3070. _formdiv = new U.UF.UI.form(
  3071. "訓練平臺",
  3072. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3073. "id": "train",
  3074. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3075. "onresize": function () { }
  3076. }, {
  3077. closecallback: function () { }
  3078. }, { "style": { "height": "36px" } }).form; //創建窗體
  3079. _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); } }
  3080. break;
  3081. case "sys":
  3082. _formdiv = new U.UF.UI.form(
  3083. "目標管理",
  3084. $$("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 }), {
  3085. "id": "sys",
  3086. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3087. "onresize": function () { }
  3088. }, {
  3089. closecallback: function () { }
  3090. }, { "style": { "height": "36px" } }).form; //創建窗體
  3091. _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); } }
  3092. break;
  3093. case "courseDesign":
  3094. _formdiv = new U.UF.UI.form(
  3095. "項目設計",
  3096. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3097. "id": "courseDesign",
  3098. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3099. "onresize": function () { }
  3100. }, {
  3101. closecallback: function () { }
  3102. }, { "style": { "height": "36px" } }).form; //創建窗體
  3103. _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); } }
  3104. break;
  3105. }
  3106. } else if (!_type) {
  3107. switch (str) {
  3108. case "my":
  3109. _formdiv = new U.UF.UI.form(
  3110. "我的資料",
  3111. $$("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 }), {
  3112. "id": "my",
  3113. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3114. "onresize": function () { }
  3115. }, {
  3116. closecallback: function () { }
  3117. }, { "style": { "height": "36px" } }).form; //創建窗體
  3118. _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); } }
  3119. break;
  3120. }
  3121. }
  3122. switch (str) {
  3123. // AIprogram2 AI體驗 aihub.cocorobo.cn
  3124. // Pythonprogram Python編程 python-blockly.cocorobo.cn
  3125. // AIprogram AI編程 ai-blockly.cocorobo.cn
  3126. case "AIprogram2": //AI體驗
  3127. _formdiv = new U.UF.UI.form(
  3128. "AI體驗",
  3129. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3130. "id": "AIprogram2",
  3131. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3132. "onresize": function () { }
  3133. }, {
  3134. closecallback: function () { }
  3135. }, { "style": { "height": "36px" } }).form; //創建窗體
  3136. _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); } }
  3137. break;
  3138. case "Pythonprogram": //python編程
  3139. _formdiv = new U.UF.UI.form(
  3140. "Python編程",
  3141. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3142. "id": "Pythonprogram",
  3143. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3144. "onresize": function () { }
  3145. }, {
  3146. closecallback: function () { }
  3147. }, { "style": { "height": "36px" } }).form; //創建窗體
  3148. _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); } }
  3149. break;
  3150. case "AIprogram": //ai編程
  3151. _formdiv = new U.UF.UI.form(
  3152. "AI編程平臺",
  3153. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3154. "id": "AIprogram",
  3155. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3156. "onresize": function () { }
  3157. }, {
  3158. closecallback: function () { }
  3159. }, { "style": { "height": "36px" } }).form; //創建窗體
  3160. _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); } }
  3161. break;
  3162. case "CocoPi": //CocoPi
  3163. _formdiv = new U.UF.UI.form(
  3164. "CocoPi",
  3165. $$("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" }), {
  3166. "id": "CocoPi",
  3167. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3168. "onresize": function () { }
  3169. }, {
  3170. closecallback: function () { }
  3171. }, { "style": { "height": "36px" } }).form; //創建窗體
  3172. _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); } }
  3173. break;
  3174. case "Wood": //Wood
  3175. _formdiv = new U.UF.UI.form(
  3176. "海龜編程",
  3177. $$("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/" }), {
  3178. "id": "Wood",
  3179. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3180. "onresize": function () { }
  3181. }, {
  3182. closecallback: function () { }
  3183. }, { "style": { "height": "36px" } }).form; //創建窗體
  3184. _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); } }
  3185. break;
  3186. case "car": //模擬駕駛
  3187. _formdiv = new U.UF.UI.form(
  3188. "模擬駕駛",
  3189. $$("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/" }), {
  3190. "id": "car",
  3191. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3192. "onresize": function () { }
  3193. }, {
  3194. closecallback: function () { }
  3195. }, { "style": { "height": "36px" } }).form; //創建窗體
  3196. _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); } }
  3197. break;
  3198. case "lineSearch": //路徑搜索
  3199. _formdiv = new U.UF.UI.form(
  3200. "路徑搜索",
  3201. $$("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/" }), {
  3202. "id": "lineSearch",
  3203. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3204. "onresize": function () { }
  3205. }, {
  3206. closecallback: function () { }
  3207. }, { "style": { "height": "36px" } }).form; //創建窗體
  3208. _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); } }
  3209. break;
  3210. case "deepLearning": //深度學習
  3211. _formdiv = new U.UF.UI.form(
  3212. "深度學習",
  3213. $$("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/#" }), {
  3214. "id": "deepLearning",
  3215. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3216. "onresize": function () { }
  3217. }, {
  3218. closecallback: function () { }
  3219. }, { "style": { "height": "36px" } }).form; //創建窗體
  3220. _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); } }
  3221. break;
  3222. case "allHistory": //深度學習
  3223. _formdiv = new U.UF.UI.form(
  3224. "全歷史",
  3225. $$("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/" }), {
  3226. "id": "allHistory",
  3227. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3228. "onresize": function () { }
  3229. }, {
  3230. closecallback: function () { }
  3231. }, { "style": { "height": "36px" } }).form; //創建窗體
  3232. _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); } }
  3233. break;
  3234. case "chatPDF": //ai編程
  3235. _formdiv = new U.UF.UI.form(
  3236. "chatPDF",
  3237. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3238. "id": "chatPDF",
  3239. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3240. "onresize": function () { }
  3241. }, {
  3242. closecallback: function () { }
  3243. }, { "style": { "height": "36px" } }).form; //創建窗體
  3244. _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); } }
  3245. break;
  3246. case "resources": //國家教育
  3247. _formdiv = new U.UF.UI.form(
  3248. "國家教育",
  3249. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3250. "id": "resources",
  3251. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3252. "onresize": function () { }
  3253. }, {
  3254. closecallback: function () { }
  3255. }, { "style": { "height": "36px" } }).form; //創建窗體
  3256. _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); } }
  3257. break;
  3258. case "codeEdit": //源碼編輯
  3259. _formdiv = new U.UF.UI.form(
  3260. "源碼編輯",
  3261. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3262. "id": "codeEdit",
  3263. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3264. "onresize": function () { }
  3265. }, {
  3266. closecallback: function () { }
  3267. }, { "style": { "height": "36px" } }).form; //創建窗體
  3268. _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); } }
  3269. break; //
  3270. case "MindMap": //MindMap
  3271. _formdiv = new U.UF.UI.form(
  3272. "MindMap",
  3273. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.hk/mind/" }), {
  3274. "id": "MindMap",
  3275. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3276. "onresize": function () { }
  3277. }, {
  3278. closecallback: function () { }
  3279. }, { "style": { "height": "36px" } }).form; //創建窗體
  3280. _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); } }
  3281. break;
  3282. case "netWorkPanel": //netWorkPanel
  3283. _formdiv = new U.UF.UI.form(
  3284. "netWorkPanel",
  3285. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3286. "id": "netWorkPanel",
  3287. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3288. "onresize": function () { }
  3289. }, {
  3290. closecallback: function () { }
  3291. }, { "style": { "height": "36px" } }).form; //創建窗體
  3292. _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); } }
  3293. break;
  3294. case "GeoGebra": //GeoGebra
  3295. _formdiv = new U.UF.UI.form(
  3296. "GeoGebra",
  3297. $$("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" }), {
  3298. "id": "GeoGebra",
  3299. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3300. "onresize": function () { }
  3301. }, {
  3302. closecallback: function () { }
  3303. }, { "style": { "height": "36px" } }).form; //創建窗體
  3304. _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); } }
  3305. break;
  3306. case "translation": //翻譯
  3307. _formdiv = new U.UF.UI.form(
  3308. "翻譯",
  3309. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3310. "id": "translation",
  3311. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3312. "onresize": function () { }
  3313. }, {
  3314. closecallback: function () { }
  3315. }, { "style": { "height": "36px" } }).form; //創建窗體
  3316. _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); } }
  3317. break;
  3318. case "mohe": //魔盒
  3319. _formdiv = new U.UF.UI.form(
  3320. "魔盒識字",
  3321. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3322. "id": "mohe",
  3323. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3324. "onresize": function () { }
  3325. }, {
  3326. closecallback: function () { }
  3327. }, { "style": { "height": "36px" } }).form; //創建窗體
  3328. _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); } }
  3329. break;
  3330. case "24game": //24點
  3331. _formdiv = new U.UF.UI.form(
  3332. "24點",
  3333. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3334. "id": "24game",
  3335. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3336. "onresize": function () { }
  3337. }, {
  3338. closecallback: function () { }
  3339. }, { "style": { "height": "36px" } }).form; //創建窗體
  3340. _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); } }
  3341. break;
  3342. case "case":
  3343. _formdiv = new U.UF.UI.form(
  3344. "課程進展",
  3345. $$("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 }), {
  3346. "id": "case",
  3347. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3348. "onresize": function () { }
  3349. }, {
  3350. closecallback: function () { }
  3351. }, { "style": { "height": "36px" } }).form; //創建窗體
  3352. _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); } }
  3353. break;
  3354. case "snf":
  3355. _formdiv = new U.UF.UI.form(
  3356. "賽諾梵",
  3357. $$("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" }), {
  3358. "id": "snf",
  3359. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3360. "onresize": function () { }
  3361. }, {
  3362. closecallback: function () { }
  3363. }, { "style": { "height": "36px" } }).form; //創建窗體
  3364. _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); } }
  3365. break;
  3366. case "hanFamily":
  3367. _formdiv = new U.UF.UI.form(
  3368. "漢字家族",
  3369. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3370. "id": "hanFamily",
  3371. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3372. "onresize": function () { }
  3373. }, {
  3374. closecallback: function () { }
  3375. }, { "style": { "height": "36px" } }).form; //創建窗體
  3376. _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); } }
  3377. break;
  3378. case "hanClassics":
  3379. _formdiv = new U.UF.UI.form(
  3380. "國學經典",
  3381. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3382. "id": "hanClassics",
  3383. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3384. "onresize": function () { }
  3385. }, {
  3386. closecallback: function () { }
  3387. }, { "style": { "height": "36px" } }).form; //創建窗體
  3388. _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); } }
  3389. break;
  3390. case "hanTraining":
  3391. _formdiv = new U.UF.UI.form(
  3392. "筆畫訓練",
  3393. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3394. "id": "hanTraining",
  3395. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3396. "onresize": function () { }
  3397. }, {
  3398. closecallback: function () { }
  3399. }, { "style": { "height": "36px" } }).form; //創建窗體
  3400. _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); } }
  3401. break;
  3402. case "hanClass":
  3403. _formdiv = new U.UF.UI.form(
  3404. "書法課堂",
  3405. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3406. "id": "hanClass",
  3407. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3408. "onresize": function () { }
  3409. }, {
  3410. closecallback: function () { }
  3411. }, { "style": { "height": "36px" } }).form; //創建窗體
  3412. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "書法課堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3413. break;
  3414. case "han":
  3415. _formdiv = new U.UF.UI.form(
  3416. "漢字宮",
  3417. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3418. "id": "han",
  3419. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3420. "onresize": function () { }
  3421. }, {
  3422. closecallback: function () { }
  3423. }, { "style": { "height": "36px" } }).form; //創建窗體
  3424. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/han.png)" }, "name": "漢字宮", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3425. break;
  3426. case "projectGM": //課程管理
  3427. _formdiv = new U.UF.UI.form(
  3428. "課程管理",
  3429. $$("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 }), {
  3430. "id": "projectGM",
  3431. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3432. "onresize": function () { }
  3433. }, {
  3434. closecallback: function () { }
  3435. }, { "style": { "height": "36px" } }).form; //創建窗體
  3436. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/courseMange.png)" }, "name": "課程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3437. break;
  3438. case "studyGM"://課程中心
  3439. _formdiv = new U.UF.UI.form(
  3440. "課程中心",
  3441. $$("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
  3442. "id": "study",
  3443. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3444. "onresize": function () { }
  3445. }, {
  3446. closecallback: function () { }
  3447. }, { "style": { "height": "36px" } }).form; //創建窗體
  3448. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "課程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3449. break;
  3450. // studentGM
  3451. case "studentGM"://學生管理
  3452. _formdiv = new U.UF.UI.form(
  3453. "學生管理",
  3454. $$("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 }), {
  3455. "id": "studentGM",
  3456. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3457. "onresize": function () { }
  3458. }, {
  3459. closecallback: function () { }
  3460. }, { "style": { "height": "36px" } }).form; //創建窗體
  3461. _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); } }
  3462. break;
  3463. case "evaluateGM"://學生評價
  3464. _formdiv = new U.UF.UI.form(
  3465. "學生評價",
  3466. $$("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 }), {
  3467. "id": "evaluateGM",
  3468. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3469. "onresize": function () { }
  3470. }, {
  3471. closecallback: function () { }
  3472. }, { "style": { "height": "36px" } }).form; //創建窗體
  3473. _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); } }
  3474. break;
  3475. // classGM
  3476. case "classGM"://班級管理
  3477. _formdiv = new U.UF.UI.form(
  3478. "班級管理",
  3479. $$("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 }), {
  3480. "id": "classGM",
  3481. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3482. "onresize": function () { }
  3483. }, {
  3484. closecallback: function () { }
  3485. }, { "style": { "height": "36px" } }).form; //創建窗體
  3486. _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); } }
  3487. break;
  3488. // dataGM
  3489. case "dataGM":
  3490. _formdiv = new U.UF.UI.form(
  3491. "我的資料",
  3492. $$("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 }), {
  3493. "id": "dataGM",
  3494. "style": { "width": "42%", "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/gm/data.png)" }, "name": "我的資料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3500. break;
  3501. // caseGM
  3502. case "caseGM"://課程進展
  3503. _formdiv = new U.UF.UI.form(
  3504. "課程進展",
  3505. $$("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 }), {
  3506. "id": "caseGM",
  3507. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3508. "onresize": function () { }
  3509. }, {
  3510. closecallback: function () { }
  3511. }, { "style": { "height": "36px" } }).form; //創建窗體
  3512. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/case.png)" }, "name": "課程進展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3513. break;
  3514. // meterialGM
  3515. case "meterialGM"://素材庫
  3516. _formdiv = new U.UF.UI.form(
  3517. "素材庫",
  3518. $$("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 }), {
  3519. "id": "meterialGM",
  3520. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3521. "onresize": function () { }
  3522. }, {
  3523. closecallback: function () { }
  3524. }, { "style": { "height": "36px" } }).form; //創建窗體
  3525. _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); } }
  3526. break;
  3527. // evaluateSGM
  3528. case "evaluateSGM": //我的評價
  3529. _formdiv = new U.UF.UI.form(
  3530. "我的評價",
  3531. $$("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 }), {
  3532. "id": "evaluateSGM",
  3533. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3534. "onresize": function () { }
  3535. }, {
  3536. closecallback: function () { }
  3537. }, { "style": { "height": "36px" } }).form; //創建窗體
  3538. _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); } }
  3539. break;
  3540. case "jupyter": //jupyter
  3541. _formdiv = new U.UF.UI.form(
  3542. "jupyter",
  3543. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3544. "id": "jupyter",
  3545. "style": { "width": "90%", "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/jupyter.png)" }, "name": "jupyter", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3551. break;
  3552. case "number": //數字實驗室
  3553. _formdiv = new U.UF.UI.form(
  3554. "數字實驗室",
  3555. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3556. "id": "number",
  3557. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3558. "onresize": function () { }
  3559. }, {
  3560. closecallback: function () { }
  3561. }, { "style": { "height": "36px" } }).form; //創建窗體
  3562. _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); } }
  3563. break;
  3564. case "studentCourse": //項目管理 學生
  3565. _formdiv = new U.UF.UI.form(
  3566. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  3567. $$("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/#/studentCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3568. "id": "studentCourse",
  3569. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3570. "onresize": function () { }
  3571. }, {
  3572. closecallback: function () { }
  3573. }, { "style": { "height": "36px" } }).form; //創建窗體
  3574. _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); } }
  3575. break;
  3576. case "studentCourseS": //項目管理 老師
  3577. _formdiv = new U.UF.UI.form(
  3578. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  3579. $$("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/#/scourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3580. "id": "studentCourseS",
  3581. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3582. "onresize": function () { }
  3583. }, {
  3584. closecallback: function () { }
  3585. }, { "style": { "height": "36px" } }).form; //創建窗體
  3586. _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); } }
  3587. break;
  3588. case "studentIndex": //項目中心
  3589. _formdiv = new U.UF.UI.form(
  3590. "項目中心",
  3591. $$("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 }), {
  3592. "id": "studentIndex",
  3593. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3594. "onresize": function () { }
  3595. }, {
  3596. closecallback: function () { }
  3597. }, { "style": { "height": "36px" } }).form; //創建窗體
  3598. _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); } }
  3599. break;
  3600. case "CaseDesignS":
  3601. _formdiv = new U.UF.UI.form(
  3602. "項目進展",
  3603. $$("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 }), {
  3604. "id": "case",
  3605. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3606. "onresize": function () { }
  3607. }, {
  3608. closecallback: function () { }
  3609. }, { "style": { "height": "36px" } }).form; //創建窗體
  3610. _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); } }
  3611. break;
  3612. case "tcStudent": //騰訊學生管理
  3613. _formdiv = new U.UF.UI.form(
  3614. "學生管理",
  3615. $$("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 }), {
  3616. "id": "tcStudent",
  3617. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3618. "onresize": function () { }
  3619. }, {
  3620. closecallback: function () { }
  3621. }, { "style": { "height": "36px" } }).form; //創建窗體
  3622. _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); } }
  3623. break;
  3624. case "tcSchool": //騰訊學校管理
  3625. _formdiv = new U.UF.UI.form(
  3626. "學校管理",
  3627. $$("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 }), {
  3628. "id": "tcSchool",
  3629. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3630. "onresize": function () { }
  3631. }, {
  3632. closecallback: function () { }
  3633. }, { "style": { "height": "36px" } }).form; //創建窗體
  3634. _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); } }
  3635. break;
  3636. case "tcTeacher": //騰訊學校管理
  3637. _formdiv = new U.UF.UI.form(
  3638. "教師管理",
  3639. $$("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 }), {
  3640. "id": "tcTeacher",
  3641. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3642. "onresize": function () { }
  3643. }, {
  3644. closecallback: function () { }
  3645. }, { "style": { "height": "36px" } }).form; //創建窗體
  3646. _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); } }
  3647. break;
  3648. case "tcData": //騰訊我的資料
  3649. _formdiv = new U.UF.UI.form(
  3650. "我的資料",
  3651. $$("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 }), {
  3652. "id": "tcData",
  3653. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3654. "onresize": function () { }
  3655. }, {
  3656. closecallback: function () { }
  3657. }, { "style": { "height": "36px" } }).form; //創建窗體
  3658. _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); } }
  3659. break;
  3660. case "tcNotice": //騰訊消息通知
  3661. _formdiv = new U.UF.UI.form(
  3662. "消息通知",
  3663. $$("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 }), {
  3664. "id": "tcNotice",
  3665. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3666. "onresize": function () { }
  3667. }, {
  3668. closecallback: function () { }
  3669. }, { "style": { "height": "36px" } }).form; //創建窗體
  3670. _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); } }
  3671. break;
  3672. case "myReport": //好友打開
  3673. _formdiv = new U.UF.UI.form(
  3674. "我的評價",
  3675. $$("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 }), {
  3676. "id": "myReport",
  3677. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3678. "onresize": function () { }
  3679. }, {
  3680. closecallback: function () { }
  3681. }, { "style": { "height": "36px" } }).form; //創建窗體
  3682. _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); } }
  3683. break;
  3684. case "learnAna": //好友打開
  3685. _formdiv = new U.UF.UI.form(
  3686. "學習分析",
  3687. $$("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 }), {
  3688. "id": "learnAna",
  3689. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3690. "onresize": function () { }
  3691. }, {
  3692. closecallback: function () { }
  3693. }, { "style": { "height": "36px" } }).form; //創建窗體
  3694. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/learnAna.png)" }, "name": "學習分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3695. break;
  3696. case "AIChat": //AI共創
  3697. _formdiv = new U.UF.UI.form(
  3698. "AI共創",
  3699. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/aichat/" }), {
  3700. "id": "AIChat",
  3701. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3702. "onresize": function () { }
  3703. }, {
  3704. istop: true,
  3705. closecallback: function () { $("#aichat_icon").remove(); },
  3706. narrowcallback: function () {
  3707. if (!$("#aichat_icon")[0]) {
  3708. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3709. }
  3710. },
  3711. }, { "style": { "height": "36px" } }).form; //創建窗體
  3712. _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); } }
  3713. break;
  3714. case "ainew": //AI共創
  3715. _formdiv = new U.UF.UI.form(
  3716. "AI協同",
  3717. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ainew/" }), {
  3718. "id": "ainew",
  3719. "style": { "width": "100%", "height": "100%", "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/AIChat.png)" }, "name": "AI協同", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3725. break;
  3726. case "AIAnalyse": //AI共創
  3727. _formdiv = new U.UF.UI.form(
  3728. "AI分析",
  3729. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ai/" }), {
  3730. "id": "AIAnalyse",
  3731. "style": { "width": "100%", "height": "100%", "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/AIChat.png)" }, "name": "AI分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3737. break;
  3738. case "studioCourse": //AI共創
  3739. _formdiv = new U.UF.UI.form(
  3740. "工作管理",
  3741. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studioCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3742. "id": "studioCourse",
  3743. "style": { "width": "100%", "height": "100%", "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/studioCourse.png)" }, "name": "工作管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3749. break;
  3750. case "studioIndex": //AI共創
  3751. _formdiv = new U.UF.UI.form(
  3752. "工作中心",
  3753. $$("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 }), {
  3754. "id": "studioIndex",
  3755. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3756. "onresize": function () { }
  3757. }, {
  3758. closecallback: function () { }
  3759. }, { "style": { "height": "36px" } }).form; //創建窗體
  3760. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioIndex.png)" }, "name": "工作中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3761. break;
  3762. case "source":
  3763. _formdiv = new U.UF.UI.form(
  3764. "教學資源",
  3765. $$("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 }), {
  3766. "id": "source",
  3767. "style": { "width": "80%", "height": "80%", "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/source.png)" }, "name": "教學資源", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3773. break;
  3774. }
  3775. //U.MD.D.I.openClick(str);
  3776. //如果有任務欄信息
  3777. if (_taskbar) {
  3778. U.MD.D.T.taskbar(_taskbar); //創建任務處理
  3779. }
  3780. }
  3781. // U.MD.D.I.openClick = function(str){
  3782. // var click = '';
  3783. // switch(str){
  3784. // case 'friend':
  3785. // click = '我的好友';
  3786. // break;
  3787. // case 'domain':
  3788. // click = '域名管理';
  3789. // break;
  3790. // case 'disk':
  3791. // click = '我的雲盤';
  3792. // break;
  3793. // case 'word':
  3794. // click = 'Word';
  3795. // break;
  3796. // case 'excel':
  3797. // click = 'Execl';
  3798. // break;
  3799. // case 'txt':
  3800. // click = '文本文件';
  3801. // break;
  3802. // case 'lookupFriend':
  3803. // click = '查找好友';
  3804. // break;
  3805. // case 'ftp':
  3806. // click = 'FTP';
  3807. // break;
  3808. // case 'group':
  3809. // click = '群組';
  3810. // break;
  3811. // case 'set':
  3812. // click = '我的設置';
  3813. // break;
  3814. // case 'systemSet':
  3815. // click = '系統設置';
  3816. // break;
  3817. // case 'boomYun':
  3818. // click = '互聯辦公';
  3819. // break;
  3820. // case 'xz':
  3821. // click = '雲端下載';
  3822. // break;
  3823. // case 'client':
  3824. // click = '有思瀏覽器';
  3825. // break;
  3826. // case 'backEndProgramming':
  3827. // click = '在線後臺編程';
  3828. // break;
  3829. // case 'frontEndProgramming':
  3830. // click = '在線前端編程';
  3831. // break;
  3832. // default: break;
  3833. // }
  3834. // if(U.MD.D.I.Ip && click){
  3835. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3836. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3837. // })
  3838. // }
  3839. // }
  3840. /**
  3841. *函數作用:ajax簡易函數,使用post格式
  3842. *@param url {data} 後臺地址
  3843. *@param data {data} 參數json
  3844. *@param fn {data} 回調函數
  3845. *
  3846. */
  3847. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3848. // var xhr = new XMLHttpRequest();
  3849. // xhr.open("GET",url,true);
  3850. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3851. // xhr.onreadystatechange = function(){
  3852. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3853. // fn.call(this,xhr.responseText);
  3854. // }
  3855. // };
  3856. // xhr.send();
  3857. // }
  3858. /*判斷是否是內網IP*/
  3859. // U.MD.D.I.isInnerIPFn = function(str){
  3860. // var curPageUrl = str;
  3861. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前綴
  3862. // curPageUrl =curPageUrl.replace(reg1,'');
  3863. // // console.log('curPageUrl-1 '+curPageUrl);
  3864. // var reg2 = /\:+/g;//替換冒號為一點
  3865. // curPageUrl =curPageUrl.replace(reg2,'.');
  3866. // // console.log('curPageUrl-2 '+curPageUrl);
  3867. // curPageUrl = curPageUrl.split('.');//通過一點來劃分數組
  3868. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3869. // if(curPageUrl[2] != '16'){
  3870. // return ipAddress;
  3871. // }else{
  3872. // return false;
  3873. // }
  3874. // }
  3875. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3876. // //compatibility for firefox and chrome
  3877. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3878. // var pc = new myPeerConnection({
  3879. // iceServers: []
  3880. // }),
  3881. // noop = function() {},
  3882. // localIPs = {},
  3883. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3884. // key;
  3885. // function iterateIP(ip) {
  3886. // if (!localIPs[ip]) onNewIP(ip);
  3887. // localIPs[ip] = true;
  3888. // }
  3889. // //create a bogus data channel
  3890. // pc.createDataChannel("");
  3891. // // create offer and set local description
  3892. // pc.createOffer().then(function(sdp) {
  3893. // sdp.sdp.split('\n').forEach(function(line) {
  3894. // if (line.indexOf('candidate') < 0) return;
  3895. // line.match(ipRegex).forEach(iterateIP);
  3896. // });
  3897. // pc.setLocalDescription(sdp, noop, noop);
  3898. // }).catch(function(reason) {
  3899. // // An error occurred, so handle the failure to connect
  3900. // });
  3901. // //sten for candidate events
  3902. // pc.onicecandidate = function(ice) {
  3903. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3904. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3905. // };
  3906. // }
  3907. // U.MD.D.I.getUserIpBool = function(callback){
  3908. // U.MD.D.I.getUserIP(function(ip){
  3909. // alert("Got IP! :" + ip);
  3910. // });
  3911. //}
  3912. //#endregion
  3913. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3914. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  3915. _formdiv, //創建任務欄時同時彈出的窗體元素。
  3916. _userinfo = US.userInfo, //登錄用戶信息
  3917. _userid = US.userInfo.userid //登錄用戶id
  3918. let _iframe;
  3919. let _cid = cid,
  3920. _stage = stage,
  3921. _task = task,
  3922. _tool = tool;
  3923. var _jie = $$("div", {
  3924. "style": {
  3925. "position": "absolute",
  3926. "bottom": "50px",
  3927. "right": "50px",
  3928. "zIndex": "9999",
  3929. "backgroundColor": "#2268bc",
  3930. "color": "#fff",
  3931. "padding": "12px 20px",
  3932. "cursor": "pointer",
  3933. "borderRadius": "4px",
  3934. },
  3935. "innerHTML": "提交作業"
  3936. })
  3937. let aTool = ''
  3938. let _loading = document.createElement('div')
  3939. _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;"
  3940. // _loading.id = "";
  3941. let _lchild = document.createElement('div')
  3942. let _limg = document.createElement('img')
  3943. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3944. _limg.style = "width: 26px;margin-right: 10px;"
  3945. _lchild.appendChild(_limg)
  3946. let _lspan = document.createElement('span')
  3947. _lspan.innerHTML = "上傳中..."
  3948. _lchild.appendChild(_lspan)
  3949. _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%);"
  3950. _loading.appendChild(_lchild)
  3951. var _box = $$('div', {
  3952. "style": {
  3953. "position": "relative",
  3954. "width": "100%",
  3955. "height": "100%",
  3956. },
  3957. })
  3958. _box.appendChild(_loading)
  3959. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool+_userid
  3960. switch (str) {
  3961. case "whiteboard":
  3962. aTool = 1;
  3963. _iframe = $$("iframe", {
  3964. "frameborder": "no",
  3965. "border": "0",
  3966. "scrolling ": "no",
  3967. "style": {
  3968. "cssText": "border:0;width:100%;height:100%"
  3969. },
  3970. "src": "https://iwb.cocorobo.hk/"
  3971. })
  3972. _box.appendChild(_iframe);
  3973. _box.appendChild(_jie);
  3974. _formdiv = new U.UF.UI.form(
  3975. "電子白板",
  3976. _box, {
  3977. "id": "whiteboard" + cid + stage + task + tool,
  3978. "style": {
  3979. "width": "90%",
  3980. "height": "90%",
  3981. "overflow": 'hidden'
  3982. },
  3983. "onresize": function () { }
  3984. }, {
  3985. closecallback: function () { }
  3986. }, {
  3987. "style": {
  3988. "height": "36px"
  3989. }
  3990. }).form; //創建窗體
  3991. _taskbar = {
  3992. "id": str + _formdiv.id,
  3993. "style": {
  3994. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3995. },
  3996. "name": "電子白板",
  3997. "forms": _formdiv,
  3998. "click": function () {
  3999. U.MD.D.I.openApplication(str, obj, info);
  4000. }
  4001. }
  4002. break;
  4003. case "mind":
  4004. aTool = 3;
  4005. _iframe = $$("iframe", {
  4006. "frameborder": "no",
  4007. "border": "0",
  4008. "scrolling ": "no",
  4009. "style": {
  4010. "cssText": "border:0;width:100%;height:100%"
  4011. },
  4012. "src": "/kityminder-editor/dist/index.html"
  4013. })
  4014. _box.appendChild(_iframe);
  4015. _box.appendChild(_jie);
  4016. _formdiv = new U.UF.UI.form(
  4017. "思維導圖",
  4018. _box, { //"/jsmind/example/demo.html"
  4019. "id": "mind" + cid + stage + task + tool,
  4020. "style": {
  4021. "width": "90%",
  4022. "height": "90%",
  4023. "overflow": 'hidden'
  4024. },
  4025. "onresize": function () { }
  4026. }, {
  4027. closecallback: function () { }
  4028. }, {
  4029. "style": {
  4030. "height": "36px"
  4031. }
  4032. }).form; //創建窗體
  4033. _taskbar = {
  4034. "id": str + _formdiv.id,
  4035. "style": {
  4036. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4037. },
  4038. "name": "思維導圖",
  4039. "forms": _formdiv,
  4040. "click": function () {
  4041. U.MD.D.I.openApplication(str, obj, info);
  4042. }
  4043. }
  4044. break;
  4045. case "MindMap":
  4046. aTool = 3;
  4047. _iframe = $$("iframe", {
  4048. "frameborder": "no",
  4049. "border": "0",
  4050. "scrolling ": "no",
  4051. "style": {
  4052. "cssText": "border:0;width:100%;height:100%"
  4053. },
  4054. "src": "//cloud.cocorobo.hk/mind/"
  4055. })
  4056. _box.appendChild(_iframe);
  4057. _box.appendChild(_jie);
  4058. _formdiv = new U.UF.UI.form(
  4059. "思維導圖",
  4060. _box, { //"/jsmind/example/demo.html"
  4061. "id": "mind" + cid + stage + task + tool,
  4062. "style": {
  4063. "width": "90%",
  4064. "height": "90%",
  4065. "overflow": 'hidden'
  4066. },
  4067. "onresize": function () { }
  4068. }, {
  4069. closecallback: function () { }
  4070. }, {
  4071. "style": {
  4072. "height": "36px"
  4073. }
  4074. }).form; //創建窗體
  4075. _taskbar = {
  4076. "id": str + _formdiv.id,
  4077. "style": {
  4078. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4079. },
  4080. "name": "思維導圖",
  4081. "forms": _formdiv,
  4082. "click": function () {
  4083. U.MD.D.I.openApplication(str, obj, info);
  4084. }
  4085. }
  4086. break;
  4087. case "doc":
  4088. aTool = 6;
  4089. _iframe = $$("iframe", {
  4090. "frameborder": "no",
  4091. "border": "0",
  4092. "scrolling ": "no",
  4093. "style": {
  4094. "cssText": "border:0;width:100%;height:100%"
  4095. },
  4096. "src": "/Office/Word/WordEditArea.htm"
  4097. })
  4098. _box.appendChild(_iframe);
  4099. _box.appendChild(_jie);
  4100. _formdiv = new U.UF.UI.form(
  4101. "協同文檔",
  4102. _box, {
  4103. "id": "doc" + cid + stage + task + tool,
  4104. "style": {
  4105. "width": "90%",
  4106. "height": "90%",
  4107. "overflow": 'hidden'
  4108. },
  4109. "onresize": function () { }
  4110. }, {
  4111. closecallback: function () { }
  4112. }, {
  4113. "style": {
  4114. "height": "36px"
  4115. }
  4116. }).form; //創建窗體
  4117. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4118. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4119. })
  4120. _taskbar = {
  4121. "id": str + _formdiv.id,
  4122. "style": {
  4123. "backgroundImage": "url(/img/icon/doc.png)"
  4124. },
  4125. "name": "協同文檔",
  4126. "forms": _formdiv,
  4127. "click": function () {
  4128. U.MD.D.I.openApplication(str, obj, info);
  4129. }
  4130. }
  4131. break;
  4132. case "mindNetwork": //好友打開
  4133. aTool = 7;
  4134. _iframe = $$("iframe", {
  4135. "webkitallowfullscreen": "",
  4136. "mozallowfullscreen": "",
  4137. "allowfullscreen": "",
  4138. "frameborder": "no",
  4139. "border": "0",
  4140. "scrolling ": "no",
  4141. "style": {
  4142. "cssText": "border:0; width:100%; height:100%;"
  4143. },
  4144. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4145. })
  4146. _box.appendChild(_iframe);
  4147. _box.appendChild(_jie);
  4148. _formdiv = new U.UF.UI.form(
  4149. "思維網格",
  4150. _box, {
  4151. "id": "mindNetwork" + cid + stage + task + tool,
  4152. "style": {
  4153. "width": "90%",
  4154. "height": "90%",
  4155. "overflow": 'hidden'
  4156. },
  4157. "onresize": function () { }
  4158. }, {
  4159. closecallback: function () { }
  4160. }, {
  4161. "style": {
  4162. "height": "36px"
  4163. }
  4164. }).form; //創建窗體
  4165. _taskbar = {
  4166. "id": str + _formdiv.id,
  4167. "style": {
  4168. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4169. },
  4170. "name": "思維網格",
  4171. "forms": _formdiv,
  4172. "click": function () {
  4173. U.MD.D.I.openApplication(str, obj, info);
  4174. }
  4175. }
  4176. break;
  4177. case "courseDesign":
  4178. _iframe = $$("iframe", {
  4179. "webkitallowfullscreen": "",
  4180. "mozallowfullscreen": "",
  4181. "allowfullscreen": "",
  4182. "frameborder": "no",
  4183. "border": "0",
  4184. "scrolling ": "no",
  4185. "style": {
  4186. "cssText": "border:0; width:100%; height:100%;"
  4187. },
  4188. "src": "/course-design-vue"
  4189. })
  4190. _box.appendChild(_iframe);
  4191. _box.appendChild(_jie);
  4192. _formdiv = new U.UF.UI.form(
  4193. "項目設計",
  4194. _box, {
  4195. "id": "courseDesign" + cid + stage + task + tool,
  4196. "style": {
  4197. "width": "90%",
  4198. "height": "90%",
  4199. "overflow": 'hidden'
  4200. },
  4201. "onresize": function () { }
  4202. }, {
  4203. closecallback: function () { }
  4204. }, {
  4205. "style": {
  4206. "height": "36px"
  4207. }
  4208. }).form; //創建窗體
  4209. _taskbar = {
  4210. "id": str + _formdiv.id,
  4211. "style": {
  4212. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4213. },
  4214. "name": "項目設計",
  4215. "forms": _formdiv,
  4216. "click": function () {
  4217. U.MD.D.I.openApplication(str, obj, info);
  4218. }
  4219. }
  4220. break;
  4221. }
  4222. const script1 = document.createElement("script");
  4223. script1.type = "text/javascript";
  4224. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4225. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  4226. const script2 = document.createElement("script");
  4227. script2.type = "text/javascript";
  4228. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4229. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  4230. const script3 = document.createElement("script");
  4231. script3.type = "text/javascript";
  4232. script3.charset = "UTF-8";
  4233. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  4234. const script4 = document.createElement("script");
  4235. script4.type = "text/javascript";
  4236. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4237. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  4238. if (_iframe) {
  4239. if (str == 'doc') {
  4240. _iframe = _formdiv.querySelector('iframe')
  4241. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4242. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4243. _iframe.contentWindow.document.body.appendChild(script1);
  4244. _iframe.contentWindow.document.body.appendChild(script2);
  4245. // _iframe.contentWindow.document.body.appendChild(script3);
  4246. _iframe.contentWindow.document.body.appendChild(script4);
  4247. })
  4248. if (onloadListener) {
  4249. _iframe.contentDocument.location.reload()
  4250. } else {
  4251. _iframe.contentDocument.location.reload()
  4252. }
  4253. } else if (str == 'courseDesign') {
  4254. U.UF.DL.iframeLoad(_iframe, function () {
  4255. // _iframe.contentWindow.U.MD.O.W.load();
  4256. // _iframe.contentWindow.document.body.appendChild(script1);
  4257. _iframe.contentWindow.document.body.appendChild(script2);
  4258. _iframe.contentWindow.document.body.appendChild(script4);
  4259. })
  4260. } else if (str == 'mind') {
  4261. _iframe = _formdiv.querySelector('iframe')
  4262. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4263. //
  4264. _iframe.contentWindow.document.body.appendChild(script1);
  4265. _iframe.contentWindow.document.body.appendChild(script2);
  4266. _iframe.contentWindow.document.body.appendChild(script4);
  4267. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4268. })
  4269. if (onloadListener) {
  4270. _iframe.contentDocument.location.reload()
  4271. } else {
  4272. _iframe.contentDocument.location.reload()
  4273. }
  4274. } else if (str == 'whiteboard') {
  4275. _iframe = _formdiv.querySelector('iframe')
  4276. let onloadListener = _iframe.onload = () => {
  4277. _iframe.contentWindow.document.body.appendChild(script1);
  4278. _iframe.contentWindow.document.body.appendChild(script2);
  4279. _iframe.contentWindow.document.body.appendChild(script4);
  4280. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4281. };
  4282. if (onloadListener) {
  4283. _iframe.contentDocument.location.reload()
  4284. } else {
  4285. _iframe.contentDocument.location.reload()
  4286. }
  4287. } else {
  4288. _iframe.onload = () => {
  4289. _iframe.contentWindow.document.body.appendChild(script1);
  4290. _iframe.contentWindow.document.body.appendChild(script2);
  4291. // _iframe.contentWindow.document.body.appendChild(script3);
  4292. _iframe.contentWindow.document.body.appendChild(script4);
  4293. };
  4294. }
  4295. _jie.onclick = async () => {
  4296. let text = ''
  4297. if (aTool == 1) {
  4298. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4299. } else if (aTool == 6) {
  4300. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4301. } else if (aTool == 3) {
  4302. text = await U.MD.D.I.getEditorContent(_iframe);
  4303. }
  4304. _loading.style.display = 'flex'
  4305. console.log(_loading);
  4306. var _ajs = _iframe.contentWindow.document.createElement("script");
  4307. _ajs.type = "text/javascript";
  4308. _ajs.innerHTML =
  4309. // 'console.log(' + _loading + ');\n' +
  4310. 'var _js = document.createElement("script");\n' +
  4311. '_js.type="text/javascript";\n' +
  4312. '_js.charset="UTF-8";\n' +
  4313. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  4314. "_js.onload = function(){\n" +
  4315. ' var a = document.getElementsByTagName("img")\n' +
  4316. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4317. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4318. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4319. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4320. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  4321. "beforeUpload_shishi(file," +
  4322. "'" +
  4323. _userid +
  4324. "'" +
  4325. ", " +
  4326. "'" +
  4327. _cid +
  4328. "'" +
  4329. ", " +
  4330. "'" +
  4331. _stage +
  4332. "'" +
  4333. ", " +
  4334. "'" +
  4335. _task +
  4336. "'" +
  4337. ", " +
  4338. "'" +
  4339. _tool +
  4340. "'" +
  4341. ", " +
  4342. "'" +
  4343. (str + '_loadLi_Jie' + cid + stage + task + tool+_userid) +
  4344. "'" +
  4345. ", " +
  4346. "'" +
  4347. aTool +
  4348. "'" +
  4349. ", " +
  4350. "`" +
  4351. text +
  4352. "`" +
  4353. ")\n" +
  4354. " });\n" +
  4355. "}\n" +
  4356. "document.head.appendChild(_js);\n";
  4357. _iframe.contentWindow.document.head.appendChild(_ajs);
  4358. }
  4359. }
  4360. //U.MD.D.I.openClick(str);
  4361. //如果有任務欄信息
  4362. // if (_taskbar) {
  4363. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4364. // }
  4365. }
  4366. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4367. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4368. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4369. _userinfo = US.userInfo, //登錄用戶信息
  4370. _userid = US.userInfo.userid //登錄用戶id
  4371. let _iframe;
  4372. let _cid = cid,
  4373. _stage = stage,
  4374. _task = task,
  4375. _tool = tool;
  4376. var _jie = $$("div", {
  4377. "style": {
  4378. "position": "absolute",
  4379. "bottom": "50px",
  4380. "right": "50px",
  4381. "zIndex": "9999",
  4382. "backgroundColor": "#2268bc",
  4383. "color": "#fff",
  4384. "padding": "12px 20px",
  4385. "cursor": "pointer",
  4386. "borderRadius": "4px",
  4387. },
  4388. "innerHTML": "提交作業"
  4389. })
  4390. let aTool = ''
  4391. let _loading = document.createElement('div')
  4392. _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;"
  4393. // _loading.id = "";
  4394. let _lchild = document.createElement('div')
  4395. let _limg = document.createElement('img')
  4396. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4397. _limg.style = "width: 26px;margin-right: 10px;"
  4398. _lchild.appendChild(_limg)
  4399. let _lspan = document.createElement('span')
  4400. _lspan.innerHTML = "上傳中..."
  4401. _lchild.appendChild(_lspan)
  4402. _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%);"
  4403. _loading.appendChild(_lchild)
  4404. var _box = $$('div', {
  4405. "style": {
  4406. "position": "relative",
  4407. "width": "100%",
  4408. "height": "100%",
  4409. },
  4410. })
  4411. _box.appendChild(_loading)
  4412. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool+_userid
  4413. switch (str) {
  4414. case "whiteboard":
  4415. aTool = 1;
  4416. _iframe = $$("iframe", {
  4417. "frameborder": "no",
  4418. "border": "0",
  4419. "scrolling ": "no",
  4420. "style": {
  4421. "cssText": "border:0;width:100%;height:100%"
  4422. },
  4423. "src": "https://iwb.cocorobo.hk/"
  4424. })
  4425. _box.appendChild(_iframe);
  4426. _box.appendChild(_jie);
  4427. _formdiv = new U.UF.UI.form(
  4428. "電子白板",
  4429. _box, {
  4430. "id": "whiteboard" + cid + stage + task + tool,
  4431. "style": {
  4432. "width": "90%",
  4433. "height": "90%",
  4434. "overflow": 'hidden'
  4435. },
  4436. "onresize": function () { }
  4437. }, {
  4438. closecallback: function () { }
  4439. }, {
  4440. "style": {
  4441. "height": "36px"
  4442. }
  4443. }).form; //創建窗體
  4444. _taskbar = {
  4445. "id": str + _formdiv.id,
  4446. "style": {
  4447. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4448. },
  4449. "name": "電子白板",
  4450. "forms": _formdiv,
  4451. "click": function () {
  4452. U.MD.D.I.openApplication(str, obj, info);
  4453. }
  4454. }
  4455. break;
  4456. case "mind":
  4457. aTool = 3;
  4458. _iframe = $$("iframe", {
  4459. "frameborder": "no",
  4460. "border": "0",
  4461. "scrolling ": "no",
  4462. "style": {
  4463. "cssText": "border:0;width:100%;height:100%"
  4464. },
  4465. "src": "/kityminder-editor/dist/index.html"
  4466. })
  4467. _box.appendChild(_iframe);
  4468. _box.appendChild(_jie);
  4469. _formdiv = new U.UF.UI.form(
  4470. "思維導圖",
  4471. _box, { //"/jsmind/example/demo.html"
  4472. "id": "mind" + cid + stage + task + tool,
  4473. "style": {
  4474. "width": "90%",
  4475. "height": "90%",
  4476. "overflow": 'hidden'
  4477. },
  4478. "onresize": function () { }
  4479. }, {
  4480. closecallback: function () { }
  4481. }, {
  4482. "style": {
  4483. "height": "36px"
  4484. }
  4485. }).form; //創建窗體
  4486. _taskbar = {
  4487. "id": str + _formdiv.id,
  4488. "style": {
  4489. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4490. },
  4491. "name": "思維導圖",
  4492. "forms": _formdiv,
  4493. "click": function () {
  4494. U.MD.D.I.openApplication(str, obj, info);
  4495. }
  4496. }
  4497. break;
  4498. case "MindMap":
  4499. aTool = 3;
  4500. _iframe = $$("iframe", {
  4501. "frameborder": "no",
  4502. "border": "0",
  4503. "scrolling ": "no",
  4504. "style": {
  4505. "cssText": "border:0;width:100%;height:100%"
  4506. },
  4507. "src": "//cloud.cocorobo.hk/mind/"
  4508. })
  4509. _box.appendChild(_iframe);
  4510. _box.appendChild(_jie);
  4511. _formdiv = new U.UF.UI.form(
  4512. "思維導圖",
  4513. _box, { //"/jsmind/example/demo.html"
  4514. "id": "mind" + cid + stage + task + tool,
  4515. "style": {
  4516. "width": "90%",
  4517. "height": "90%",
  4518. "overflow": 'hidden'
  4519. },
  4520. "onresize": function () { }
  4521. }, {
  4522. closecallback: function () { }
  4523. }, {
  4524. "style": {
  4525. "height": "36px"
  4526. }
  4527. }).form; //創建窗體
  4528. _taskbar = {
  4529. "id": str + _formdiv.id,
  4530. "style": {
  4531. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4532. },
  4533. "name": "思維導圖",
  4534. "forms": _formdiv,
  4535. "click": function () {
  4536. U.MD.D.I.openApplication(str, obj, info);
  4537. }
  4538. }
  4539. break;
  4540. case "doc":
  4541. aTool = 6;
  4542. _iframe = $$("iframe", {
  4543. "frameborder": "no",
  4544. "border": "0",
  4545. "scrolling ": "no",
  4546. "style": {
  4547. "cssText": "border:0;width:100%;height:100%"
  4548. },
  4549. "src": "/Office/Word/WordEditArea.htm"
  4550. })
  4551. _box.appendChild(_iframe);
  4552. _box.appendChild(_jie);
  4553. _formdiv = new U.UF.UI.form(
  4554. "協同文檔",
  4555. _box, {
  4556. "id": "doc" + cid + stage + task + tool,
  4557. "style": {
  4558. "width": "90%",
  4559. "height": "90%",
  4560. "overflow": 'hidden'
  4561. },
  4562. "onresize": function () { }
  4563. }, {
  4564. closecallback: function () { }
  4565. }, {
  4566. "style": {
  4567. "height": "36px"
  4568. }
  4569. }).form; //創建窗體
  4570. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4571. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4572. })
  4573. _taskbar = {
  4574. "id": str + _formdiv.id,
  4575. "style": {
  4576. "backgroundImage": "url(/img/icon/doc.png)"
  4577. },
  4578. "name": "協同文檔",
  4579. "forms": _formdiv,
  4580. "click": function () {
  4581. U.MD.D.I.openApplication(str, obj, info);
  4582. }
  4583. }
  4584. break;
  4585. case "mindNetwork": //好友打開
  4586. aTool = 7;
  4587. _iframe = $$("iframe", {
  4588. "webkitallowfullscreen": "",
  4589. "mozallowfullscreen": "",
  4590. "allowfullscreen": "",
  4591. "frameborder": "no",
  4592. "border": "0",
  4593. "scrolling ": "no",
  4594. "style": {
  4595. "cssText": "border:0; width:100%; height:100%;"
  4596. },
  4597. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4598. })
  4599. _box.appendChild(_iframe);
  4600. _box.appendChild(_jie);
  4601. _formdiv = new U.UF.UI.form(
  4602. "思維網格",
  4603. _box, {
  4604. "id": "mindNetwork" + cid + stage + task + tool,
  4605. "style": {
  4606. "width": "90%",
  4607. "height": "90%",
  4608. "overflow": 'hidden'
  4609. },
  4610. "onresize": function () { }
  4611. }, {
  4612. closecallback: function () { }
  4613. }, {
  4614. "style": {
  4615. "height": "36px"
  4616. }
  4617. }).form; //創建窗體
  4618. _taskbar = {
  4619. "id": str + _formdiv.id,
  4620. "style": {
  4621. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4622. },
  4623. "name": "思維網格",
  4624. "forms": _formdiv,
  4625. "click": function () {
  4626. U.MD.D.I.openApplication(str, obj, info);
  4627. }
  4628. }
  4629. break;
  4630. case "courseDesign":
  4631. _iframe = $$("iframe", {
  4632. "webkitallowfullscreen": "",
  4633. "mozallowfullscreen": "",
  4634. "allowfullscreen": "",
  4635. "frameborder": "no",
  4636. "border": "0",
  4637. "scrolling ": "no",
  4638. "style": {
  4639. "cssText": "border:0; width:100%; height:100%;"
  4640. },
  4641. "src": "/course-design-vue"
  4642. })
  4643. _box.appendChild(_iframe);
  4644. _box.appendChild(_jie);
  4645. _formdiv = new U.UF.UI.form(
  4646. "項目設計",
  4647. _box, {
  4648. "id": "courseDesign" + cid + stage + task + tool,
  4649. "style": {
  4650. "width": "90%",
  4651. "height": "90%",
  4652. "overflow": 'hidden'
  4653. },
  4654. "onresize": function () { }
  4655. }, {
  4656. closecallback: function () { }
  4657. }, {
  4658. "style": {
  4659. "height": "36px"
  4660. }
  4661. }).form; //創建窗體
  4662. _taskbar = {
  4663. "id": str + _formdiv.id,
  4664. "style": {
  4665. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4666. },
  4667. "name": "項目設計",
  4668. "forms": _formdiv,
  4669. "click": function () {
  4670. U.MD.D.I.openApplication(str, obj, info);
  4671. }
  4672. }
  4673. break;
  4674. }
  4675. const script1 = document.createElement("script");
  4676. script1.type = "text/javascript";
  4677. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4678. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  4679. const script2 = document.createElement("script");
  4680. script2.type = "text/javascript";
  4681. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4682. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  4683. const script3 = document.createElement("script");
  4684. script3.type = "text/javascript";
  4685. script3.charset = "UTF-8";
  4686. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  4687. const script4 = document.createElement("script");
  4688. script4.type = "text/javascript";
  4689. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4690. script4.src = window.origin + "/js/Common/jietu2E.js";
  4691. if (_iframe) {
  4692. if (str == 'doc') {
  4693. _iframe = _formdiv.querySelector('iframe')
  4694. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4695. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4696. _iframe.contentWindow.document.body.appendChild(script1);
  4697. _iframe.contentWindow.document.body.appendChild(script2);
  4698. // _iframe.contentWindow.document.body.appendChild(script3);
  4699. _iframe.contentWindow.document.body.appendChild(script4);
  4700. })
  4701. if (onloadListener) {
  4702. _iframe.contentDocument.location.reload()
  4703. } else {
  4704. _iframe.contentDocument.location.reload()
  4705. }
  4706. } else if (str == 'courseDesign') {
  4707. U.UF.DL.iframeLoad(_iframe, function () {
  4708. // _iframe.contentWindow.U.MD.O.W.load();
  4709. // _iframe.contentWindow.document.body.appendChild(script1);
  4710. _iframe.contentWindow.document.body.appendChild(script2);
  4711. _iframe.contentWindow.document.body.appendChild(script4);
  4712. })
  4713. } else if (str == 'mind') {
  4714. _iframe = _formdiv.querySelector('iframe')
  4715. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4716. //
  4717. _iframe.contentWindow.document.body.appendChild(script1);
  4718. _iframe.contentWindow.document.body.appendChild(script2);
  4719. _iframe.contentWindow.document.body.appendChild(script4);
  4720. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4721. })
  4722. if (onloadListener) {
  4723. _iframe.contentDocument.location.reload()
  4724. } else {
  4725. _iframe.contentDocument.location.reload()
  4726. }
  4727. } else if (str == 'whiteboard') {
  4728. _iframe = _formdiv.querySelector('iframe')
  4729. let onloadListener = _iframe.onload = () => {
  4730. _iframe.contentWindow.document.body.appendChild(script1);
  4731. _iframe.contentWindow.document.body.appendChild(script2);
  4732. _iframe.contentWindow.document.body.appendChild(script4);
  4733. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4734. };
  4735. if (onloadListener) {
  4736. _iframe.contentDocument.location.reload()
  4737. } else {
  4738. _iframe.contentDocument.location.reload()
  4739. }
  4740. } else {
  4741. _iframe.onload = () => {
  4742. _iframe.contentWindow.document.body.appendChild(script1);
  4743. _iframe.contentWindow.document.body.appendChild(script2);
  4744. // _iframe.contentWindow.document.body.appendChild(script3);
  4745. _iframe.contentWindow.document.body.appendChild(script4);
  4746. };
  4747. }
  4748. _jie.onclick = async () => {
  4749. let text = ''
  4750. if (aTool == 1) {
  4751. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4752. } else if (aTool == 6) {
  4753. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4754. } else if (aTool == 3) {
  4755. text = await U.MD.D.I.getEditorContent(_iframe);
  4756. }
  4757. _loading.style.display = 'flex'
  4758. console.log(_loading);
  4759. var _ajs = _iframe.contentWindow.document.createElement("script");
  4760. _ajs.type = "text/javascript";
  4761. _ajs.innerHTML =
  4762. // 'console.log(' + _loading + ');\n' +
  4763. 'var _js = document.createElement("script");\n' +
  4764. '_js.type="text/javascript";\n' +
  4765. '_js.charset="UTF-8";\n' +
  4766. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  4767. "_js.onload = function(){\n" +
  4768. ' var a = document.getElementsByTagName("img")\n' +
  4769. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4770. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4771. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4772. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4773. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  4774. "beforeUpload_shishi(file," +
  4775. "'" +
  4776. _userid +
  4777. "'" +
  4778. ", " +
  4779. "'" +
  4780. _cid +
  4781. "'" +
  4782. ", " +
  4783. "'" +
  4784. _stage +
  4785. "'" +
  4786. ", " +
  4787. "'" +
  4788. _task +
  4789. "'" +
  4790. ", " +
  4791. "'" +
  4792. _tool +
  4793. "'" +
  4794. ", " +
  4795. "'" +
  4796. (str + '_loadLi_JieE' + cid + stage + task + tool+_userid) +
  4797. "'" +
  4798. ", " +
  4799. "'" +
  4800. aTool +
  4801. "'" +
  4802. ", " +
  4803. "`" +
  4804. text +
  4805. "`" +
  4806. ")\n" +
  4807. " });\n" +
  4808. "}\n" +
  4809. "document.head.appendChild(_js);\n";
  4810. _iframe.contentWindow.document.head.appendChild(_ajs);
  4811. }
  4812. }
  4813. //U.MD.D.I.openClick(str);
  4814. //如果有任務欄信息
  4815. // if (_taskbar) {
  4816. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4817. // }
  4818. }
  4819. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4820. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4821. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4822. _userid = student.userid, //登錄用戶id
  4823. _username = student.student //用戶名字
  4824. let _iframe;
  4825. let _cid = cid,
  4826. _stage = stage,
  4827. _task = task,
  4828. _tool = tool;
  4829. var _jie = $$("div", {
  4830. "style": {
  4831. "position": "absolute",
  4832. "bottom": "50px",
  4833. "right": "50px",
  4834. "zIndex": "9999",
  4835. "backgroundColor": "#2268bc",
  4836. "color": "#fff",
  4837. "padding": "12px 20px",
  4838. "cursor": "pointer",
  4839. "borderRadius": "4px",
  4840. },
  4841. "innerHTML": "提交作業"
  4842. })
  4843. let aTool = ''
  4844. let _loading = document.createElement('div')
  4845. _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;"
  4846. // _loading.id = "";
  4847. let _lchild = document.createElement('div')
  4848. let _limg = document.createElement('img')
  4849. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4850. _limg.style = "width: 26px;margin-right: 10px;"
  4851. _lchild.appendChild(_limg)
  4852. let _lspan = document.createElement('span')
  4853. _lspan.innerHTML = "上傳中..."
  4854. _lchild.appendChild(_lspan)
  4855. _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%);"
  4856. _loading.appendChild(_lchild)
  4857. var _box = $$('div', {
  4858. "style": {
  4859. "position": "relative",
  4860. "width": "100%",
  4861. "height": "100%",
  4862. },
  4863. })
  4864. _box.appendChild(_loading)
  4865. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid
  4866. switch (str) {
  4867. case "whiteboard":
  4868. aTool = 1;
  4869. _iframe = $$("iframe", {
  4870. "frameborder": "no",
  4871. "border": "0",
  4872. "scrolling ": "no",
  4873. "style": {
  4874. "cssText": "border:0;width:100%;height:100%"
  4875. },
  4876. "src": "https://iwb.cocorobo.hk/"
  4877. })
  4878. _box.appendChild(_iframe);
  4879. _box.appendChild(_jie);
  4880. _formdiv = new U.UF.UI.form(
  4881. "電子白板-" + _username,
  4882. _box, {
  4883. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4884. "style": {
  4885. "width": "90%",
  4886. "height": "90%",
  4887. "overflow": 'hidden'
  4888. },
  4889. "onresize": function () { }
  4890. }, {
  4891. closecallback: function () { }
  4892. }, {
  4893. "style": {
  4894. "height": "36px"
  4895. }
  4896. }).form; //創建窗體
  4897. _taskbar = {
  4898. "id": str + _formdiv.id,
  4899. "style": {
  4900. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4901. },
  4902. "name": "電子白板",
  4903. "forms": _formdiv,
  4904. "click": function () {
  4905. U.MD.D.I.openApplication(str, obj, info);
  4906. }
  4907. }
  4908. break;
  4909. case "mind":
  4910. aTool = 3;
  4911. _iframe = $$("iframe", {
  4912. "frameborder": "no",
  4913. "border": "0",
  4914. "scrolling ": "no",
  4915. "style": {
  4916. "cssText": "border:0;width:100%;height:100%"
  4917. },
  4918. "src": "/kityminder-editor/dist/index.html"
  4919. })
  4920. _box.appendChild(_iframe);
  4921. _box.appendChild(_jie);
  4922. _formdiv = new U.UF.UI.form(
  4923. "思維導圖-" + _username,
  4924. _box, { //"/jsmind/example/demo.html"
  4925. "id": "mind" + cid + stage + task + tool + _userid,
  4926. "style": {
  4927. "width": "90%",
  4928. "height": "90%",
  4929. "overflow": 'hidden'
  4930. },
  4931. "onresize": function () { }
  4932. }, {
  4933. closecallback: function () { }
  4934. }, {
  4935. "style": {
  4936. "height": "36px"
  4937. }
  4938. }).form; //創建窗體
  4939. _taskbar = {
  4940. "id": str + _formdiv.id,
  4941. "style": {
  4942. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4943. },
  4944. "name": "思維導圖",
  4945. "forms": _formdiv,
  4946. "click": function () {
  4947. U.MD.D.I.openApplication(str, obj, info);
  4948. }
  4949. }
  4950. break;
  4951. case "MindMap":
  4952. aTool = 3;
  4953. _iframe = $$("iframe", {
  4954. "frameborder": "no",
  4955. "border": "0",
  4956. "scrolling ": "no",
  4957. "style": {
  4958. "cssText": "border:0;width:100%;height:100%"
  4959. },
  4960. "src": "//cloud.cocorobo.hk/mind/"
  4961. })
  4962. _box.appendChild(_iframe);
  4963. _box.appendChild(_jie);
  4964. _formdiv = new U.UF.UI.form(
  4965. "思維導圖-" + _username,
  4966. _box, { //"/jsmind/example/demo.html"
  4967. "id": "mind" + cid + stage + task + tool + _userid,
  4968. "style": {
  4969. "width": "90%",
  4970. "height": "90%",
  4971. "overflow": 'hidden'
  4972. },
  4973. "onresize": function () { }
  4974. }, {
  4975. closecallback: function () { }
  4976. }, {
  4977. "style": {
  4978. "height": "36px"
  4979. }
  4980. }).form; //創建窗體
  4981. _taskbar = {
  4982. "id": str + _formdiv.id,
  4983. "style": {
  4984. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4985. },
  4986. "name": "思維導圖",
  4987. "forms": _formdiv,
  4988. "click": function () {
  4989. U.MD.D.I.openApplication(str, obj, info);
  4990. }
  4991. }
  4992. break;
  4993. case "doc":
  4994. aTool = 6;
  4995. _iframe = $$("iframe", {
  4996. "frameborder": "no",
  4997. "border": "0",
  4998. "scrolling ": "no",
  4999. "style": {
  5000. "cssText": "border:0;width:100%;height:100%"
  5001. },
  5002. "src": "/Office/Word/WordEditArea.htm"
  5003. })
  5004. _box.appendChild(_iframe);
  5005. _box.appendChild(_jie);
  5006. _formdiv = new U.UF.UI.form(
  5007. "協同文檔-" + _username,
  5008. _box, {
  5009. "id": "doc" + cid + stage + task + tool + _userid,
  5010. "style": {
  5011. "width": "90%",
  5012. "height": "90%",
  5013. "overflow": 'hidden'
  5014. },
  5015. "onresize": function () { }
  5016. }, {
  5017. closecallback: function () { }
  5018. }, {
  5019. "style": {
  5020. "height": "36px"
  5021. }
  5022. }).form; //創建窗體
  5023. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5024. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5025. })
  5026. _taskbar = {
  5027. "id": str + _formdiv.id,
  5028. "style": {
  5029. "backgroundImage": "url(/img/icon/doc.png)"
  5030. },
  5031. "name": "協同文檔",
  5032. "forms": _formdiv,
  5033. "click": function () {
  5034. U.MD.D.I.openApplication(str, obj, info);
  5035. }
  5036. }
  5037. break;
  5038. case "mindNetwork": //好友打開
  5039. aTool = 7;
  5040. _iframe = $$("iframe", {
  5041. "webkitallowfullscreen": "",
  5042. "mozallowfullscreen": "",
  5043. "allowfullscreen": "",
  5044. "frameborder": "no",
  5045. "border": "0",
  5046. "scrolling ": "no",
  5047. "style": {
  5048. "cssText": "border:0; width:100%; height:100%;"
  5049. },
  5050. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5051. })
  5052. _box.appendChild(_iframe);
  5053. _box.appendChild(_jie);
  5054. _formdiv = new U.UF.UI.form(
  5055. "思維網格-" + _username,
  5056. _box, {
  5057. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5058. "style": {
  5059. "width": "90%",
  5060. "height": "90%",
  5061. "overflow": 'hidden'
  5062. },
  5063. "onresize": function () { }
  5064. }, {
  5065. closecallback: function () { }
  5066. }, {
  5067. "style": {
  5068. "height": "36px"
  5069. }
  5070. }).form; //創建窗體
  5071. _taskbar = {
  5072. "id": str + _formdiv.id,
  5073. "style": {
  5074. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5075. },
  5076. "name": "思維網格",
  5077. "forms": _formdiv,
  5078. "click": function () {
  5079. U.MD.D.I.openApplication(str, obj, info);
  5080. }
  5081. }
  5082. break;
  5083. case "courseDesign":
  5084. _iframe = $$("iframe", {
  5085. "webkitallowfullscreen": "",
  5086. "mozallowfullscreen": "",
  5087. "allowfullscreen": "",
  5088. "frameborder": "no",
  5089. "border": "0",
  5090. "scrolling ": "no",
  5091. "style": {
  5092. "cssText": "border:0; width:100%; height:100%;"
  5093. },
  5094. "src": "/course-design-vue"
  5095. })
  5096. _box.appendChild(_iframe);
  5097. _box.appendChild(_jie);
  5098. _formdiv = new U.UF.UI.form(
  5099. "項目設計-" + _username,
  5100. _box, {
  5101. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5102. "style": {
  5103. "width": "90%",
  5104. "height": "90%",
  5105. "overflow": 'hidden'
  5106. },
  5107. "onresize": function () { }
  5108. }, {
  5109. closecallback: function () { }
  5110. }, {
  5111. "style": {
  5112. "height": "36px"
  5113. }
  5114. }).form; //創建窗體
  5115. _taskbar = {
  5116. "id": str + _formdiv.id,
  5117. "style": {
  5118. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5119. },
  5120. "name": "項目設計",
  5121. "forms": _formdiv,
  5122. "click": function () {
  5123. U.MD.D.I.openApplication(str, obj, info);
  5124. }
  5125. }
  5126. break;
  5127. }
  5128. const script1 = document.createElement("script");
  5129. script1.type = "text/javascript";
  5130. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5131. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5132. const script2 = document.createElement("script");
  5133. script2.type = "text/javascript";
  5134. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5135. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5136. const script3 = document.createElement("script");
  5137. script3.type = "text/javascript";
  5138. script3.charset = "UTF-8";
  5139. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5140. const script4 = document.createElement("script");
  5141. script4.type = "text/javascript";
  5142. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5143. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  5144. if (_iframe) {
  5145. if (str == 'doc') {
  5146. _iframe = _formdiv.querySelector('iframe')
  5147. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5148. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5149. _iframe.contentWindow.document.body.appendChild(script1);
  5150. _iframe.contentWindow.document.body.appendChild(script2);
  5151. // _iframe.contentWindow.document.body.appendChild(script3);
  5152. _iframe.contentWindow.document.body.appendChild(script4);
  5153. })
  5154. if (onloadListener) {
  5155. _iframe.contentDocument.location.reload()
  5156. } else {
  5157. _iframe.contentDocument.location.reload()
  5158. }
  5159. } else if (str == 'courseDesign') {
  5160. U.UF.DL.iframeLoad(_iframe, function () {
  5161. // _iframe.contentWindow.U.MD.O.W.load();
  5162. // _iframe.contentWindow.document.body.appendChild(script1);
  5163. _iframe.contentWindow.document.body.appendChild(script2);
  5164. _iframe.contentWindow.document.body.appendChild(script4);
  5165. })
  5166. } else if (str == 'mind') {
  5167. _iframe = _formdiv.querySelector('iframe')
  5168. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5169. //
  5170. _iframe.contentWindow.document.body.appendChild(script1);
  5171. _iframe.contentWindow.document.body.appendChild(script2);
  5172. _iframe.contentWindow.document.body.appendChild(script4);
  5173. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5174. })
  5175. if (onloadListener) {
  5176. _iframe.contentDocument.location.reload()
  5177. } else {
  5178. _iframe.contentDocument.location.reload()
  5179. }
  5180. } else if (str == 'whiteboard') {
  5181. _iframe = _formdiv.querySelector('iframe')
  5182. let onloadListener = _iframe.onload = () => {
  5183. _iframe.contentWindow.document.body.appendChild(script1);
  5184. _iframe.contentWindow.document.body.appendChild(script2);
  5185. _iframe.contentWindow.document.body.appendChild(script4);
  5186. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5187. };
  5188. if (onloadListener) {
  5189. _iframe.contentDocument.location.reload()
  5190. } else {
  5191. _iframe.contentDocument.location.reload()
  5192. }
  5193. } else {
  5194. _iframe.onload = () => {
  5195. _iframe.contentWindow.document.body.appendChild(script1);
  5196. _iframe.contentWindow.document.body.appendChild(script2);
  5197. // _iframe.contentWindow.document.body.appendChild(script3);
  5198. _iframe.contentWindow.document.body.appendChild(script4);
  5199. };
  5200. }
  5201. _jie.onclick = async () => {
  5202. let text = ''
  5203. if (aTool == 1) {
  5204. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5205. } else if (aTool == 6) {
  5206. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5207. } else if (aTool == 3) {
  5208. text = await U.MD.D.I.getEditorContent(_iframe);
  5209. }
  5210. _loading.style.display = 'flex'
  5211. console.log(_loading);
  5212. var _ajs = _iframe.contentWindow.document.createElement("script");
  5213. _ajs.type = "text/javascript";
  5214. _ajs.innerHTML =
  5215. // 'console.log(' + _loading + ');\n' +
  5216. 'var _js = document.createElement("script");\n' +
  5217. '_js.type="text/javascript";\n' +
  5218. '_js.charset="UTF-8";\n' +
  5219. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5220. "_js.onload = function(){\n" +
  5221. ' var a = document.getElementsByTagName("img")\n' +
  5222. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5223. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5224. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5225. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5226. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5227. "beforeUpload_shishi(file," +
  5228. "'" +
  5229. _userid +
  5230. "'" +
  5231. ", " +
  5232. "'" +
  5233. _cid +
  5234. "'" +
  5235. ", " +
  5236. "'" +
  5237. _stage +
  5238. "'" +
  5239. ", " +
  5240. "'" +
  5241. _task +
  5242. "'" +
  5243. ", " +
  5244. "'" +
  5245. _tool +
  5246. "'" +
  5247. ", " +
  5248. "'" +
  5249. (str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid) +
  5250. "'" +
  5251. ", " +
  5252. "'" +
  5253. aTool +
  5254. "'" +
  5255. ", " +
  5256. "`" +
  5257. text +
  5258. "`" +
  5259. ")\n" +
  5260. " });\n" +
  5261. "}\n" +
  5262. "document.head.appendChild(_js);\n";
  5263. _iframe.contentWindow.document.head.appendChild(_ajs);
  5264. }
  5265. }
  5266. }
  5267. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5268. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5269. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5270. _userid = student.userid, //登錄用戶id
  5271. _username = student.student //用戶名字
  5272. let _iframe;
  5273. let _cid = cid,
  5274. _stage = stage,
  5275. _task = task,
  5276. _tool = tool;
  5277. var _jie = $$("div", {
  5278. "style": {
  5279. "position": "absolute",
  5280. "bottom": "50px",
  5281. "right": "50px",
  5282. "zIndex": "9999",
  5283. "backgroundColor": "#2268bc",
  5284. "color": "#fff",
  5285. "padding": "12px 20px",
  5286. "cursor": "pointer",
  5287. "borderRadius": "4px",
  5288. },
  5289. "innerHTML": "提交作業"
  5290. })
  5291. let aTool = ''
  5292. let _loading = document.createElement('div')
  5293. _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;"
  5294. // _loading.id = "";
  5295. let _lchild = document.createElement('div')
  5296. let _limg = document.createElement('img')
  5297. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5298. _limg.style = "width: 26px;margin-right: 10px;"
  5299. _lchild.appendChild(_limg)
  5300. let _lspan = document.createElement('span')
  5301. _lspan.innerHTML = "上傳中..."
  5302. _lchild.appendChild(_lspan)
  5303. _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%);"
  5304. _loading.appendChild(_lchild)
  5305. var _box = $$('div', {
  5306. "style": {
  5307. "position": "relative",
  5308. "width": "100%",
  5309. "height": "100%",
  5310. },
  5311. })
  5312. _box.appendChild(_loading)
  5313. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5314. switch (str) {
  5315. case "whiteboard":
  5316. aTool = 1;
  5317. _iframe = $$("iframe", {
  5318. "frameborder": "no",
  5319. "border": "0",
  5320. "scrolling ": "no",
  5321. "style": {
  5322. "cssText": "border:0;width:100%;height:100%"
  5323. },
  5324. "src": "https://iwb.cocorobo.hk/"
  5325. })
  5326. _box.appendChild(_iframe);
  5327. _box.appendChild(_jie);
  5328. _formdiv = new U.UF.UI.form(
  5329. "電子白板-" + _username,
  5330. _box, {
  5331. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5332. "style": {
  5333. "width": "90%",
  5334. "height": "90%",
  5335. "overflow": 'hidden'
  5336. },
  5337. "onresize": function () { }
  5338. }, {
  5339. closecallback: function () { }
  5340. }, {
  5341. "style": {
  5342. "height": "36px"
  5343. }
  5344. }).form; //創建窗體
  5345. _taskbar = {
  5346. "id": str + _formdiv.id,
  5347. "style": {
  5348. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5349. },
  5350. "name": "電子白板",
  5351. "forms": _formdiv,
  5352. "click": function () {
  5353. U.MD.D.I.openApplication(str, obj, info);
  5354. }
  5355. }
  5356. break;
  5357. case "mind":
  5358. aTool = 3;
  5359. _iframe = $$("iframe", {
  5360. "frameborder": "no",
  5361. "border": "0",
  5362. "scrolling ": "no",
  5363. "style": {
  5364. "cssText": "border:0;width:100%;height:100%"
  5365. },
  5366. "src": "/kityminder-editor/dist/index.html"
  5367. })
  5368. _box.appendChild(_iframe);
  5369. _box.appendChild(_jie);
  5370. _formdiv = new U.UF.UI.form(
  5371. "思維導圖-" + _username,
  5372. _box, { //"/jsmind/example/demo.html"
  5373. "id": "mind" + cid + stage + task + tool + _userid,
  5374. "style": {
  5375. "width": "90%",
  5376. "height": "90%",
  5377. "overflow": 'hidden'
  5378. },
  5379. "onresize": function () { }
  5380. }, {
  5381. closecallback: function () { }
  5382. }, {
  5383. "style": {
  5384. "height": "36px"
  5385. }
  5386. }).form; //創建窗體
  5387. _taskbar = {
  5388. "id": str + _formdiv.id,
  5389. "style": {
  5390. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5391. },
  5392. "name": "思維導圖",
  5393. "forms": _formdiv,
  5394. "click": function () {
  5395. U.MD.D.I.openApplication(str, obj, info);
  5396. }
  5397. }
  5398. break;
  5399. case "MindMap":
  5400. aTool = 3;
  5401. _iframe = $$("iframe", {
  5402. "frameborder": "no",
  5403. "border": "0",
  5404. "scrolling ": "no",
  5405. "style": {
  5406. "cssText": "border:0;width:100%;height:100%"
  5407. },
  5408. "src": "//cloud.cocorobo.hk/mind/"
  5409. })
  5410. _box.appendChild(_iframe);
  5411. _box.appendChild(_jie);
  5412. _formdiv = new U.UF.UI.form(
  5413. "思維導圖-" + _username,
  5414. _box, { //"/jsmind/example/demo.html"
  5415. "id": "mind" + cid + stage + task + tool + _userid,
  5416. "style": {
  5417. "width": "90%",
  5418. "height": "90%",
  5419. "overflow": 'hidden'
  5420. },
  5421. "onresize": function () { }
  5422. }, {
  5423. closecallback: function () { }
  5424. }, {
  5425. "style": {
  5426. "height": "36px"
  5427. }
  5428. }).form; //創建窗體
  5429. _taskbar = {
  5430. "id": str + _formdiv.id,
  5431. "style": {
  5432. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5433. },
  5434. "name": "思維導圖",
  5435. "forms": _formdiv,
  5436. "click": function () {
  5437. U.MD.D.I.openApplication(str, obj, info);
  5438. }
  5439. }
  5440. break;
  5441. case "doc":
  5442. aTool = 6;
  5443. _iframe = $$("iframe", {
  5444. "frameborder": "no",
  5445. "border": "0",
  5446. "scrolling ": "no",
  5447. "style": {
  5448. "cssText": "border:0;width:100%;height:100%"
  5449. },
  5450. "src": "/Office/Word/WordEditArea.htm"
  5451. })
  5452. _box.appendChild(_iframe);
  5453. _box.appendChild(_jie);
  5454. _formdiv = new U.UF.UI.form(
  5455. "協同文檔-" + _username,
  5456. _box, {
  5457. "id": "doc" + cid + stage + task + tool + _userid,
  5458. "style": {
  5459. "width": "90%",
  5460. "height": "90%",
  5461. "overflow": 'hidden'
  5462. },
  5463. "onresize": function () { }
  5464. }, {
  5465. closecallback: function () { }
  5466. }, {
  5467. "style": {
  5468. "height": "36px"
  5469. }
  5470. }).form; //創建窗體
  5471. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5472. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5473. })
  5474. _taskbar = {
  5475. "id": str + _formdiv.id,
  5476. "style": {
  5477. "backgroundImage": "url(/img/icon/doc.png)"
  5478. },
  5479. "name": "協同文檔",
  5480. "forms": _formdiv,
  5481. "click": function () {
  5482. U.MD.D.I.openApplication(str, obj, info);
  5483. }
  5484. }
  5485. break;
  5486. case "mindNetwork": //好友打開
  5487. aTool = 7;
  5488. _iframe = $$("iframe", {
  5489. "webkitallowfullscreen": "",
  5490. "mozallowfullscreen": "",
  5491. "allowfullscreen": "",
  5492. "frameborder": "no",
  5493. "border": "0",
  5494. "scrolling ": "no",
  5495. "style": {
  5496. "cssText": "border:0; width:100%; height:100%;"
  5497. },
  5498. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5499. })
  5500. _box.appendChild(_iframe);
  5501. _box.appendChild(_jie);
  5502. _formdiv = new U.UF.UI.form(
  5503. "思維網格-" + _username,
  5504. _box, {
  5505. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5506. "style": {
  5507. "width": "90%",
  5508. "height": "90%",
  5509. "overflow": 'hidden'
  5510. },
  5511. "onresize": function () { }
  5512. }, {
  5513. closecallback: function () { }
  5514. }, {
  5515. "style": {
  5516. "height": "36px"
  5517. }
  5518. }).form; //創建窗體
  5519. _taskbar = {
  5520. "id": str + _formdiv.id,
  5521. "style": {
  5522. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5523. },
  5524. "name": "思維網格",
  5525. "forms": _formdiv,
  5526. "click": function () {
  5527. U.MD.D.I.openApplication(str, obj, info);
  5528. }
  5529. }
  5530. break;
  5531. case "courseDesign":
  5532. _iframe = $$("iframe", {
  5533. "webkitallowfullscreen": "",
  5534. "mozallowfullscreen": "",
  5535. "allowfullscreen": "",
  5536. "frameborder": "no",
  5537. "border": "0",
  5538. "scrolling ": "no",
  5539. "style": {
  5540. "cssText": "border:0; width:100%; height:100%;"
  5541. },
  5542. "src": "/course-design-vue"
  5543. })
  5544. _box.appendChild(_iframe);
  5545. _box.appendChild(_jie);
  5546. _formdiv = new U.UF.UI.form(
  5547. "項目設計-" + _username,
  5548. _box, {
  5549. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5550. "style": {
  5551. "width": "90%",
  5552. "height": "90%",
  5553. "overflow": 'hidden'
  5554. },
  5555. "onresize": function () { }
  5556. }, {
  5557. closecallback: function () { }
  5558. }, {
  5559. "style": {
  5560. "height": "36px"
  5561. }
  5562. }).form; //創建窗體
  5563. _taskbar = {
  5564. "id": str + _formdiv.id,
  5565. "style": {
  5566. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5567. },
  5568. "name": "項目設計",
  5569. "forms": _formdiv,
  5570. "click": function () {
  5571. U.MD.D.I.openApplication(str, obj, info);
  5572. }
  5573. }
  5574. break;
  5575. }
  5576. const script1 = document.createElement("script");
  5577. script1.type = "text/javascript";
  5578. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5579. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5580. const script2 = document.createElement("script");
  5581. script2.type = "text/javascript";
  5582. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5583. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5584. const script3 = document.createElement("script");
  5585. script3.type = "text/javascript";
  5586. script3.charset = "UTF-8";
  5587. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5588. const script4 = document.createElement("script");
  5589. script4.type = "text/javascript";
  5590. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5591. script4.src = window.origin + "/js/Common/jietu2E.js";
  5592. if (_iframe) {
  5593. if (str == 'doc') {
  5594. _iframe = _formdiv.querySelector('iframe')
  5595. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5596. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5597. _iframe.contentWindow.document.body.appendChild(script1);
  5598. _iframe.contentWindow.document.body.appendChild(script2);
  5599. // _iframe.contentWindow.document.body.appendChild(script3);
  5600. _iframe.contentWindow.document.body.appendChild(script4);
  5601. })
  5602. if (onloadListener) {
  5603. _iframe.contentDocument.location.reload()
  5604. } else {
  5605. _iframe.contentDocument.location.reload()
  5606. }
  5607. } else if (str == 'courseDesign') {
  5608. U.UF.DL.iframeLoad(_iframe, function () {
  5609. // _iframe.contentWindow.U.MD.O.W.load();
  5610. // _iframe.contentWindow.document.body.appendChild(script1);
  5611. _iframe.contentWindow.document.body.appendChild(script2);
  5612. _iframe.contentWindow.document.body.appendChild(script4);
  5613. })
  5614. } else if (str == 'mind') {
  5615. _iframe = _formdiv.querySelector('iframe')
  5616. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5617. //
  5618. _iframe.contentWindow.document.body.appendChild(script1);
  5619. _iframe.contentWindow.document.body.appendChild(script2);
  5620. _iframe.contentWindow.document.body.appendChild(script4);
  5621. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5622. })
  5623. if (onloadListener) {
  5624. _iframe.contentDocument.location.reload()
  5625. } else {
  5626. _iframe.contentDocument.location.reload()
  5627. }
  5628. } else if (str == 'whiteboard') {
  5629. _iframe = _formdiv.querySelector('iframe')
  5630. let onloadListener = _iframe.onload = () => {
  5631. _iframe.contentWindow.document.body.appendChild(script1);
  5632. _iframe.contentWindow.document.body.appendChild(script2);
  5633. _iframe.contentWindow.document.body.appendChild(script4);
  5634. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5635. };
  5636. if (onloadListener) {
  5637. _iframe.contentDocument.location.reload()
  5638. } else {
  5639. _iframe.contentDocument.location.reload()
  5640. }
  5641. } else {
  5642. _iframe.onload = () => {
  5643. _iframe.contentWindow.document.body.appendChild(script1);
  5644. _iframe.contentWindow.document.body.appendChild(script2);
  5645. // _iframe.contentWindow.document.body.appendChild(script3);
  5646. _iframe.contentWindow.document.body.appendChild(script4);
  5647. };
  5648. }
  5649. _jie.onclick = async () => {
  5650. let text = ''
  5651. if (aTool == 1) {
  5652. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5653. } else if (aTool == 6) {
  5654. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5655. } else if (aTool == 3) {
  5656. text = await U.MD.D.I.getEditorContent(_iframe);
  5657. }
  5658. _loading.style.display = 'flex'
  5659. console.log(_loading);
  5660. var _ajs = _iframe.contentWindow.document.createElement("script");
  5661. _ajs.type = "text/javascript";
  5662. _ajs.innerHTML =
  5663. // 'console.log(' + _loading + ');\n' +
  5664. 'var _js = document.createElement("script");\n' +
  5665. '_js.type="text/javascript";\n' +
  5666. '_js.charset="UTF-8";\n' +
  5667. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5668. "_js.onload = function(){\n" +
  5669. ' var a = document.getElementsByTagName("img")\n' +
  5670. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5671. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5672. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5673. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5674. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5675. "beforeUpload_shishi(file," +
  5676. "'" +
  5677. _userid +
  5678. "'" +
  5679. ", " +
  5680. "'" +
  5681. _cid +
  5682. "'" +
  5683. ", " +
  5684. "'" +
  5685. _stage +
  5686. "'" +
  5687. ", " +
  5688. "'" +
  5689. _task +
  5690. "'" +
  5691. ", " +
  5692. "'" +
  5693. _tool +
  5694. "'" +
  5695. ", " +
  5696. "'" +
  5697. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool+_userid) +
  5698. "'" +
  5699. ", " +
  5700. "'" +
  5701. aTool +
  5702. "'" +
  5703. ", " +
  5704. "`" +
  5705. text +
  5706. "`" +
  5707. ")\n" +
  5708. " });\n" +
  5709. "}\n" +
  5710. "document.head.appendChild(_js);\n";
  5711. _iframe.contentWindow.document.head.appendChild(_ajs);
  5712. }
  5713. }
  5714. }
  5715. U.MD.D.I.getEditorContent = function (iframe) {
  5716. return new Promise((resolve, reject) => {
  5717. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5718. console.log(content);
  5719. resolve(content)
  5720. });
  5721. });
  5722. }
  5723. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5724. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5725. // if (res.value[0].length > 0) {
  5726. // // resolve(res.value[0][0].text);
  5727. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5728. // $(fileInput).val('');
  5729. // });
  5730. // }
  5731. // }, [], { "type": "GET", "withCredentials": true });
  5732. var xmlhttp;
  5733. var Mac, Sn, DeviceId
  5734. if (window.XMLHttpRequest) {
  5735. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  5736. xmlhttp = new XMLHttpRequest();
  5737. }
  5738. else {
  5739. // IE6, IE5 瀏覽器執行代碼
  5740. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5741. }
  5742. xmlhttp.onreadystatechange = function () {
  5743. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5744. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5745. // resolve(res.value[0][0].text);
  5746. if (type == '2') {
  5747. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  5748. } else if (type == '3') {
  5749. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5750. }
  5751. } else {
  5752. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5753. }
  5754. }
  5755. }
  5756. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5757. xmlhttp.send();
  5758. }
  5759. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5760. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5761. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5762. _userinfo = US.userInfo, //登錄用戶信息
  5763. _userid = US.userInfo.userid //登錄用戶id
  5764. let _iframe;
  5765. let _cid = cid,
  5766. _stage = stage,
  5767. _task = task,
  5768. _tool = tool;
  5769. var _jie = $$("div", {
  5770. "style": {
  5771. "position": "absolute",
  5772. "bottom": "50px",
  5773. "right": "50px",
  5774. "zIndex": "9999",
  5775. "backgroundColor": "#2268bc",
  5776. "color": "#fff",
  5777. "padding": "12px 20px",
  5778. "cursor": "pointer",
  5779. "borderRadius": "4px",
  5780. },
  5781. "innerHTML": "確認並提交"
  5782. })
  5783. let aTool = ''
  5784. let _loading = document.createElement('div')
  5785. _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;"
  5786. // _loading.id = "";
  5787. let _lchild = document.createElement('div')
  5788. let _limg = document.createElement('img')
  5789. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5790. _limg.style = "width: 26px;margin-right: 10px;"
  5791. _lchild.appendChild(_limg)
  5792. let _lspan = document.createElement('span')
  5793. _lspan.innerHTML = "上傳中..."
  5794. _lchild.appendChild(_lspan)
  5795. _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%);"
  5796. _loading.appendChild(_lchild)
  5797. var _box = $$('div', {
  5798. "style": {
  5799. "position": "relative",
  5800. "width": "100%",
  5801. "height": "100%",
  5802. },
  5803. })
  5804. _box.appendChild(_loading)
  5805. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool+_userid
  5806. switch (str) {
  5807. case "whiteboard":
  5808. aTool = 1;
  5809. _iframe = $$("iframe", {
  5810. "frameborder": "no",
  5811. "border": "0",
  5812. "scrolling ": "no",
  5813. "style": {
  5814. "cssText": "border:0;width:100%;height:100%"
  5815. },
  5816. "src": "https://iwb.cocorobo.hk/"
  5817. })
  5818. _box.appendChild(_iframe);
  5819. _box.appendChild(_jie);
  5820. _formdiv = new U.UF.UI.form(
  5821. "電子白板",
  5822. _box, {
  5823. "id": "whiteboards" + cid + stage + task + tool,
  5824. "style": {
  5825. "width": "90%",
  5826. "height": "90%",
  5827. "overflow": 'hidden'
  5828. },
  5829. "onresize": function () { }
  5830. }, {
  5831. closecallback: function () { }
  5832. }, {
  5833. "style": {
  5834. "height": "36px"
  5835. }
  5836. }).form; //創建窗體
  5837. _taskbar = {
  5838. "id": str + _formdiv.id,
  5839. "style": {
  5840. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5841. },
  5842. "name": "電子白板",
  5843. "forms": _formdiv,
  5844. "click": function () {
  5845. U.MD.D.I.openApplication(str, obj, info);
  5846. }
  5847. }
  5848. break;
  5849. case "mind":
  5850. aTool = 3;
  5851. _iframe = $$("iframe", {
  5852. "frameborder": "no",
  5853. "border": "0",
  5854. "scrolling ": "no",
  5855. "style": {
  5856. "cssText": "border:0;width:100%;height:100%"
  5857. },
  5858. "src": "/kityminder-editor/dist/index.html"
  5859. });
  5860. _box.appendChild(_iframe);
  5861. _box.appendChild(_jie);
  5862. _formdiv = new U.UF.UI.form(
  5863. "思維導圖",
  5864. _box, { //"/jsmind/example/demo.html"
  5865. "id": "minds" + cid + stage + task + tool,
  5866. "style": {
  5867. "width": "90%",
  5868. "height": "90%",
  5869. "overflow": 'hidden'
  5870. },
  5871. "onresize": function () { }
  5872. }, {
  5873. closecallback: function () { }
  5874. }, {
  5875. "style": {
  5876. "height": "36px"
  5877. }
  5878. }).form; //創建窗體
  5879. _taskbar = {
  5880. "id": str + _formdiv.id,
  5881. "style": {
  5882. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5883. },
  5884. "name": "思維導圖",
  5885. "forms": _formdiv,
  5886. "click": function () {
  5887. U.MD.D.I.openApplication(str, obj, info);
  5888. }
  5889. }
  5890. break;
  5891. case "doc":
  5892. aTool = 6;
  5893. _iframe = $$("iframe", {
  5894. "frameborder": "no",
  5895. "border": "0",
  5896. "scrolling ": "no",
  5897. "style": {
  5898. "cssText": "border:0;width:100%;height:100%"
  5899. },
  5900. "src": "/Office/Word/WordEditArea.htm"
  5901. })
  5902. _box.appendChild(_iframe);
  5903. _box.appendChild(_jie);
  5904. _formdiv = new U.UF.UI.form(
  5905. "協同文檔",
  5906. _box, {
  5907. "id": "docs" + cid + stage + task + tool,
  5908. "style": {
  5909. "width": "90%",
  5910. "height": "90%",
  5911. "overflow": 'hidden'
  5912. },
  5913. "onresize": function () { }
  5914. }, {
  5915. closecallback: function () { }
  5916. }, {
  5917. "style": {
  5918. "height": "36px"
  5919. }
  5920. }).form; //創建窗體
  5921. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5922. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5923. })
  5924. _taskbar = {
  5925. "id": str + _formdiv.id,
  5926. "style": {
  5927. "backgroundImage": "url(/img/icon/doc.png)"
  5928. },
  5929. "name": "協同文檔",
  5930. "forms": _formdiv,
  5931. "click": function () {
  5932. U.MD.D.I.openApplication(str, obj, info);
  5933. }
  5934. }
  5935. break;
  5936. }
  5937. const script1 = document.createElement("script");
  5938. script1.type = "text/javascript";
  5939. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5940. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5941. const script2 = document.createElement("script");
  5942. script2.type = "text/javascript";
  5943. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5944. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5945. const script3 = document.createElement("script");
  5946. script3.type = "text/javascript";
  5947. script3.charset = "UTF-8";
  5948. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5949. const script4 = document.createElement("script");
  5950. script4.type = "text/javascript";
  5951. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5952. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu4.js";
  5953. if (_iframe) {
  5954. if (str == 'doc') {
  5955. _iframe = _formdiv.querySelector('iframe')
  5956. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5957. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5958. _iframe.contentWindow.document.body.appendChild(script1);
  5959. _iframe.contentWindow.document.body.appendChild(script2);
  5960. // _iframe.contentWindow.document.body.appendChild(script3);
  5961. _iframe.contentWindow.document.body.appendChild(script4);
  5962. })
  5963. if (onloadListener) {
  5964. _iframe.contentDocument.location.reload()
  5965. } else {
  5966. _iframe.contentDocument.location.reload()
  5967. }
  5968. } else if (str == 'mind') {
  5969. _iframe = _formdiv.querySelector('iframe')
  5970. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5971. _iframe.contentWindow.document.body.appendChild(script1);
  5972. _iframe.contentWindow.document.body.appendChild(script2);
  5973. _iframe.contentWindow.document.body.appendChild(script4);
  5974. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5975. })
  5976. if (onloadListener) {
  5977. _iframe.contentDocument.location.reload()
  5978. } else {
  5979. _iframe.contentDocument.location.reload()
  5980. }
  5981. } else {
  5982. _iframe.onload = () => {
  5983. _iframe.contentWindow.document.body.appendChild(script1);
  5984. _iframe.contentWindow.document.body.appendChild(script2);
  5985. // _iframe.contentWindow.document.body.appendChild(script3);
  5986. _iframe.contentWindow.document.body.appendChild(script4);
  5987. };
  5988. }
  5989. _jie.onclick = async () => {
  5990. let text = ''
  5991. if (aTool == 6) {
  5992. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5993. } else if (aTool == 3) {
  5994. text = await U.MD.D.I.getEditorContent(_iframe);
  5995. }
  5996. _loading.style.display = 'flex'
  5997. console.log(_loading);
  5998. var _ajs = _iframe.contentWindow.document.createElement("script");
  5999. _ajs.type = "text/javascript";
  6000. _ajs.innerHTML =
  6001. // 'console.log(' + _loading + ');\n' +
  6002. 'var _js = document.createElement("script");\n' +
  6003. '_js.type="text/javascript";\n' +
  6004. '_js.charset="UTF-8";\n' +
  6005. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6006. "_js.onload = function(){\n" +
  6007. ' var a = document.getElementsByTagName("img")\n' +
  6008. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6009. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6010. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6011. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6012. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6013. "beforeUpload_shishi(file," +
  6014. "'" +
  6015. _userid +
  6016. "'" +
  6017. ", " +
  6018. "'" +
  6019. _cid +
  6020. "'" +
  6021. ", " +
  6022. "'" +
  6023. _stage +
  6024. "'" +
  6025. ", " +
  6026. "'" +
  6027. _task +
  6028. "'" +
  6029. ", " +
  6030. "'" +
  6031. _tool +
  6032. "'" +
  6033. ", " +
  6034. "'" +
  6035. (str + '_loadLi_JieS' + cid + stage + task + tool+_userid) +
  6036. "'" +
  6037. ", " +
  6038. "'" +
  6039. aTool +
  6040. "'" +
  6041. ", " +
  6042. "`" +
  6043. text +
  6044. "`" +
  6045. ")\n" +
  6046. " });\n" +
  6047. "}\n" +
  6048. "document.head.appendChild(_js);\n";
  6049. _iframe.contentWindow.document.head.appendChild(_ajs);
  6050. }
  6051. }
  6052. //U.MD.D.I.openClick(str);
  6053. //如果有任務欄信息
  6054. // if (_taskbar) {
  6055. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6056. // }
  6057. }
  6058. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  6059. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6060. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6061. _userinfo = US.userInfo, //登錄用戶信息
  6062. _userid = US.userInfo.userid //登錄用戶id
  6063. let _iframe;
  6064. let _cid = cid,
  6065. _stage = stage,
  6066. _task = task,
  6067. _tool = tool;
  6068. var _jie = $$("div", {
  6069. "style": {
  6070. "position": "absolute",
  6071. "bottom": "50px",
  6072. "right": "50px",
  6073. "zIndex": "9999",
  6074. "backgroundColor": "#2268bc",
  6075. "color": "#fff",
  6076. "padding": "12px 20px",
  6077. "cursor": "pointer",
  6078. "borderRadius": "4px",
  6079. },
  6080. "innerHTML": "確認並提交"
  6081. })
  6082. let aTool = ''
  6083. let _loading = document.createElement('div')
  6084. _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;"
  6085. // _loading.id = "";
  6086. let _lchild = document.createElement('div')
  6087. let _limg = document.createElement('img')
  6088. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6089. _limg.style = "width: 26px;margin-right: 10px;"
  6090. _lchild.appendChild(_limg)
  6091. let _lspan = document.createElement('span')
  6092. _lspan.innerHTML = "上傳中..."
  6093. _lchild.appendChild(_lspan)
  6094. _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%);"
  6095. _loading.appendChild(_lchild)
  6096. var _box = $$('div', {
  6097. "style": {
  6098. "position": "relative",
  6099. "width": "100%",
  6100. "height": "100%",
  6101. },
  6102. })
  6103. _box.appendChild(_loading)
  6104. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid
  6105. switch (str) {
  6106. case "whiteboard":
  6107. aTool = 1;
  6108. _iframe = $$("iframe", {
  6109. "frameborder": "no",
  6110. "border": "0",
  6111. "scrolling ": "no",
  6112. "style": {
  6113. "cssText": "border:0;width:100%;height:100%"
  6114. },
  6115. "src": "https://iwb.cocorobo.hk/"
  6116. })
  6117. _box.appendChild(_iframe);
  6118. _box.appendChild(_jie);
  6119. _formdiv = new U.UF.UI.form(
  6120. "電子白板",
  6121. _box, {
  6122. "id": "whiteboards" + cid + stage + task + tool,
  6123. "style": {
  6124. "width": "90%",
  6125. "height": "90%",
  6126. "overflow": 'hidden'
  6127. },
  6128. "onresize": function () { }
  6129. }, {
  6130. closecallback: function () { }
  6131. }, {
  6132. "style": {
  6133. "height": "36px"
  6134. }
  6135. }).form; //創建窗體
  6136. _taskbar = {
  6137. "id": str + _formdiv.id,
  6138. "style": {
  6139. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6140. },
  6141. "name": "電子白板",
  6142. "forms": _formdiv,
  6143. "click": function () {
  6144. U.MD.D.I.openApplication(str, obj, info);
  6145. }
  6146. }
  6147. break;
  6148. case "mind":
  6149. aTool = 3;
  6150. _iframe = $$("iframe", {
  6151. "frameborder": "no",
  6152. "border": "0",
  6153. "scrolling ": "no",
  6154. "style": {
  6155. "cssText": "border:0;width:100%;height:100%"
  6156. },
  6157. "src": "/kityminder-editor/dist/index.html"
  6158. });
  6159. _box.appendChild(_iframe);
  6160. _box.appendChild(_jie);
  6161. _formdiv = new U.UF.UI.form(
  6162. "思維導圖",
  6163. _box, { //"/jsmind/example/demo.html"
  6164. "id": "minds" + cid + stage + task + tool,
  6165. "style": {
  6166. "width": "90%",
  6167. "height": "90%",
  6168. "overflow": 'hidden'
  6169. },
  6170. "onresize": function () { }
  6171. }, {
  6172. closecallback: function () { }
  6173. }, {
  6174. "style": {
  6175. "height": "36px"
  6176. }
  6177. }).form; //創建窗體
  6178. _taskbar = {
  6179. "id": str + _formdiv.id,
  6180. "style": {
  6181. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6182. },
  6183. "name": "思維導圖",
  6184. "forms": _formdiv,
  6185. "click": function () {
  6186. U.MD.D.I.openApplication(str, obj, info);
  6187. }
  6188. }
  6189. break;
  6190. case "doc":
  6191. aTool = 6;
  6192. _iframe = $$("iframe", {
  6193. "frameborder": "no",
  6194. "border": "0",
  6195. "scrolling ": "no",
  6196. "style": {
  6197. "cssText": "border:0;width:100%;height:100%"
  6198. },
  6199. "src": "/Office/Word/WordEditArea.htm"
  6200. })
  6201. _box.appendChild(_iframe);
  6202. _box.appendChild(_jie);
  6203. _formdiv = new U.UF.UI.form(
  6204. "協同文檔",
  6205. _box, {
  6206. "id": "docs" + cid + stage + task + tool,
  6207. "style": {
  6208. "width": "90%",
  6209. "height": "90%",
  6210. "overflow": 'hidden'
  6211. },
  6212. "onresize": function () { }
  6213. }, {
  6214. closecallback: function () { }
  6215. }, {
  6216. "style": {
  6217. "height": "36px"
  6218. }
  6219. }).form; //創建窗體
  6220. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6221. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6222. })
  6223. _taskbar = {
  6224. "id": str + _formdiv.id,
  6225. "style": {
  6226. "backgroundImage": "url(/img/icon/doc.png)"
  6227. },
  6228. "name": "協同文檔",
  6229. "forms": _formdiv,
  6230. "click": function () {
  6231. U.MD.D.I.openApplication(str, obj, info);
  6232. }
  6233. }
  6234. break;
  6235. }
  6236. const script1 = document.createElement("script");
  6237. script1.type = "text/javascript";
  6238. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6239. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6240. const script2 = document.createElement("script");
  6241. script2.type = "text/javascript";
  6242. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6243. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6244. const script3 = document.createElement("script");
  6245. script3.type = "text/javascript";
  6246. script3.charset = "UTF-8";
  6247. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6248. const script4 = document.createElement("script");
  6249. script4.type = "text/javascript";
  6250. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6251. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu5.js";
  6252. if (_iframe) {
  6253. if (str == 'doc') {
  6254. _iframe = _formdiv.querySelector('iframe')
  6255. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6256. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6257. _iframe.contentWindow.document.body.appendChild(script1);
  6258. _iframe.contentWindow.document.body.appendChild(script2);
  6259. // _iframe.contentWindow.document.body.appendChild(script3);
  6260. _iframe.contentWindow.document.body.appendChild(script4);
  6261. })
  6262. if (onloadListener) {
  6263. _iframe.contentDocument.location.reload()
  6264. } else {
  6265. _iframe.contentDocument.location.reload()
  6266. }
  6267. } else if (str == 'mind') {
  6268. _iframe = _formdiv.querySelector('iframe')
  6269. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6270. _iframe.contentWindow.document.body.appendChild(script1);
  6271. _iframe.contentWindow.document.body.appendChild(script2);
  6272. _iframe.contentWindow.document.body.appendChild(script4);
  6273. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6274. })
  6275. if (onloadListener) {
  6276. _iframe.contentDocument.location.reload()
  6277. } else {
  6278. _iframe.contentDocument.location.reload()
  6279. }
  6280. } else {
  6281. _iframe.onload = () => {
  6282. _iframe.contentWindow.document.body.appendChild(script1);
  6283. _iframe.contentWindow.document.body.appendChild(script2);
  6284. // _iframe.contentWindow.document.body.appendChild(script3);
  6285. _iframe.contentWindow.document.body.appendChild(script4);
  6286. };
  6287. }
  6288. _jie.onclick = async () => {
  6289. let text = ''
  6290. if (aTool == 6) {
  6291. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6292. } else if (aTool == 3) {
  6293. text = await U.MD.D.I.getEditorContent(_iframe);
  6294. }
  6295. _loading.style.display = 'flex'
  6296. console.log(_loading);
  6297. var _ajs = _iframe.contentWindow.document.createElement("script");
  6298. _ajs.type = "text/javascript";
  6299. _ajs.innerHTML =
  6300. // 'console.log(' + _loading + ');\n' +
  6301. 'var _js = document.createElement("script");\n' +
  6302. '_js.type="text/javascript";\n' +
  6303. '_js.charset="UTF-8";\n' +
  6304. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6305. "_js.onload = function(){\n" +
  6306. ' var a = document.getElementsByTagName("img")\n' +
  6307. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6308. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6309. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6310. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6311. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6312. "beforeUpload_shishi(file," +
  6313. "'" +
  6314. _userid +
  6315. "'" +
  6316. ", " +
  6317. "'" +
  6318. _cid +
  6319. "'" +
  6320. ", " +
  6321. "'" +
  6322. _stage +
  6323. "'" +
  6324. ", " +
  6325. "'" +
  6326. _task +
  6327. "'" +
  6328. ", " +
  6329. "'" +
  6330. _tool +
  6331. "'" +
  6332. ", " +
  6333. "'" +
  6334. (str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid) +
  6335. "'" +
  6336. ", " +
  6337. "'" +
  6338. aTool +
  6339. "'" +
  6340. ", " +
  6341. "`" +
  6342. text +
  6343. "`" +
  6344. ")\n" +
  6345. " });\n" +
  6346. "}\n" +
  6347. "document.head.appendChild(_js);\n";
  6348. _iframe.contentWindow.document.head.appendChild(_ajs);
  6349. }
  6350. }
  6351. //U.MD.D.I.openClick(str);
  6352. //如果有任務欄信息
  6353. // if (_taskbar) {
  6354. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6355. // }
  6356. }
  6357. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6358. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6359. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6360. _userinfo = US.userInfo, //登錄用戶信息
  6361. _userid = US.userInfo.userid //登錄用戶id
  6362. let _iframe;
  6363. let _cid = cid,
  6364. _stage = stage,
  6365. _task = task,
  6366. _tool = tool;
  6367. var _jie = $$("div", {
  6368. "style": {
  6369. "position": "absolute",
  6370. "bottom": "50px",
  6371. "right": "50px",
  6372. "zIndex": "9999",
  6373. "backgroundColor": "#2268bc",
  6374. "color": "#fff",
  6375. "padding": "12px 20px",
  6376. "cursor": "pointer",
  6377. "borderRadius": "4px",
  6378. },
  6379. "innerHTML": "上傳模板"
  6380. })
  6381. let aTool = ''
  6382. let _loading = document.createElement('div')
  6383. _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;"
  6384. // _loading.id = "";
  6385. let _lchild = document.createElement('div')
  6386. let _limg = document.createElement('img')
  6387. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6388. _limg.style = "width: 26px;margin-right: 10px;"
  6389. _lchild.appendChild(_limg)
  6390. let _lspan = document.createElement('span')
  6391. _lspan.innerHTML = "上傳中..."
  6392. _lchild.appendChild(_lspan)
  6393. _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%);"
  6394. _loading.appendChild(_lchild)
  6395. var _box = $$('div', {
  6396. "style": {
  6397. "position": "relative",
  6398. "width": "100%",
  6399. "height": "100%",
  6400. },
  6401. })
  6402. _box.appendChild(_loading)
  6403. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool+_userid
  6404. switch (str) {
  6405. case "whiteboard":
  6406. aTool = 1;
  6407. _iframe = $$("iframe", {
  6408. "frameborder": "no",
  6409. "border": "0",
  6410. "scrolling ": "no",
  6411. "style": {
  6412. "cssText": "border:0;width:100%;height:100%"
  6413. },
  6414. "src": "https://iwb.cocorobo.hk/"
  6415. })
  6416. _box.appendChild(_iframe);
  6417. _box.appendChild(_jie);
  6418. _formdiv = new U.UF.UI.form(
  6419. "電子白板",
  6420. _box, {
  6421. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6422. "style": {
  6423. "width": "90%",
  6424. "height": "90%",
  6425. "overflow": 'hidden'
  6426. },
  6427. "onresize": function () { }
  6428. }, {
  6429. closecallback: function () { }
  6430. }, {
  6431. "style": {
  6432. "height": "36px"
  6433. }
  6434. }).form; //創建窗體
  6435. _taskbar = {
  6436. "id": str + _formdiv.id,
  6437. "style": {
  6438. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6439. },
  6440. "name": "電子白板",
  6441. "forms": _formdiv,
  6442. "click": function () {
  6443. U.MD.D.I.openApplication(str, obj, info);
  6444. }
  6445. }
  6446. break;
  6447. case "mind":
  6448. aTool = 3;
  6449. _iframe = $$("iframe", {
  6450. "frameborder": "no",
  6451. "border": "0",
  6452. "scrolling ": "no",
  6453. "style": {
  6454. "cssText": "border:0;width:100%;height:100%"
  6455. },
  6456. "src": "/kityminder-editor/dist/index.html"
  6457. });
  6458. _box.appendChild(_iframe);
  6459. _box.appendChild(_jie);
  6460. _formdiv = new U.UF.UI.form(
  6461. "思維導圖",
  6462. _box, { //"/jsmind/example/demo.html"
  6463. "id": "minds_Yu" + cid + stage + task + tool,
  6464. "style": {
  6465. "width": "90%",
  6466. "height": "90%",
  6467. "overflow": 'hidden'
  6468. },
  6469. "onresize": function () { }
  6470. }, {
  6471. closecallback: function () { }
  6472. }, {
  6473. "style": {
  6474. "height": "36px"
  6475. }
  6476. }).form; //創建窗體
  6477. _taskbar = {
  6478. "id": str + _formdiv.id,
  6479. "style": {
  6480. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6481. },
  6482. "name": "思維導圖",
  6483. "forms": _formdiv,
  6484. "click": function () {
  6485. U.MD.D.I.openApplication(str, obj, info);
  6486. }
  6487. }
  6488. break;
  6489. case "doc":
  6490. aTool = 6;
  6491. _iframe = $$("iframe", {
  6492. "frameborder": "no",
  6493. "border": "0",
  6494. "scrolling ": "no",
  6495. "style": {
  6496. "cssText": "border:0;width:100%;height:100%"
  6497. },
  6498. "src": "/Office/Word/WordEditArea.htm"
  6499. })
  6500. _box.appendChild(_iframe);
  6501. _box.appendChild(_jie);
  6502. _formdiv = new U.UF.UI.form(
  6503. "協同文檔",
  6504. _box, {
  6505. "id": "docs_Yu" + cid + stage + task + tool,
  6506. "style": {
  6507. "width": "90%",
  6508. "height": "90%",
  6509. "overflow": 'hidden'
  6510. },
  6511. "onresize": function () { }
  6512. }, {
  6513. closecallback: function () { }
  6514. }, {
  6515. "style": {
  6516. "height": "36px"
  6517. }
  6518. }).form; //創建窗體
  6519. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6520. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6521. })
  6522. _taskbar = {
  6523. "id": str + _formdiv.id,
  6524. "style": {
  6525. "backgroundImage": "url(/img/icon/doc.png)"
  6526. },
  6527. "name": "協同文檔",
  6528. "forms": _formdiv,
  6529. "click": function () {
  6530. U.MD.D.I.openApplication(str, obj, info);
  6531. }
  6532. }
  6533. break;
  6534. case "CocoPi":
  6535. aTool = 57;
  6536. _iframe = $$("iframe", {
  6537. "allowpaymentrequest":"allowpaymentrequest",
  6538. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6539. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6540. "frameborder": "no",
  6541. "border": "0",
  6542. "scrolling ": "no",
  6543. "style": {
  6544. "cssText": "border:0;width:100%;height:100%"
  6545. },
  6546. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  6547. })
  6548. _box.appendChild(_iframe);
  6549. _box.appendChild(_jie);
  6550. _formdiv = new U.UF.UI.form(
  6551. "CocoPi",
  6552. _box, {
  6553. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6554. "style": {
  6555. "width": "90%",
  6556. "height": "90%",
  6557. "overflow": 'hidden'
  6558. },
  6559. "onresize": function () { }
  6560. }, {
  6561. closecallback: function () { }
  6562. }, {
  6563. "style": {
  6564. "height": "36px"
  6565. }
  6566. }).form; //創建窗體
  6567. _taskbar = {
  6568. "id": str + _formdiv.id,
  6569. "style": {
  6570. "backgroundImage": "url(/img/icon/cocopi.png)"
  6571. },
  6572. "name": "CocoPi",
  6573. "forms": _formdiv,
  6574. "click": function () {
  6575. U.MD.D.I.openApplication(str, obj, info);
  6576. }
  6577. }
  6578. break;
  6579. }
  6580. if (_iframe) {
  6581. if (str == 'doc') {
  6582. _iframe = _formdiv.querySelector('iframe')
  6583. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6584. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6585. })
  6586. if (onloadListener) {
  6587. _iframe.contentDocument.location.reload()
  6588. } else {
  6589. _iframe.contentDocument.location.reload()
  6590. }
  6591. } else if (str == 'mind') {
  6592. _iframe = _formdiv.querySelector('iframe')
  6593. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6594. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6595. })
  6596. if (onloadListener) {
  6597. _iframe.contentDocument.location.reload()
  6598. } else {
  6599. _iframe.contentDocument.location.reload()
  6600. }
  6601. } else if (str == 'whiteboard') {
  6602. _iframe = _formdiv.querySelector('iframe')
  6603. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6604. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6605. })
  6606. if (onloadListener) {
  6607. _iframe.contentDocument.location.reload()
  6608. } else {
  6609. _iframe.contentDocument.location.reload()
  6610. }
  6611. } else if (str == 'CocoPi') {
  6612. _iframe = _formdiv.querySelector('iframe')
  6613. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6614. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6615. })
  6616. if (onloadListener) {
  6617. _iframe.contentDocument.location.reload()
  6618. } else {
  6619. _iframe.contentDocument.location.reload()
  6620. }
  6621. } else {
  6622. _iframe.onload = () => {
  6623. };
  6624. }
  6625. _jie.onclick = async () => {
  6626. let text = ''
  6627. let type = '2'
  6628. if (aTool == 1) {
  6629. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6630. type = '3'
  6631. } else if (aTool == 6) {
  6632. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6633. type = '1'
  6634. } else if (aTool == 3) {
  6635. text = await U.MD.D.I.getEditorContent(_iframe);
  6636. type = '2'
  6637. } else if (aTool == 57) {
  6638. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6639. type = '4'
  6640. }
  6641. _loading.style.display = 'flex'
  6642. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6643. }
  6644. }
  6645. //U.MD.D.I.openClick(str);
  6646. //如果有任務欄信息
  6647. // if (_taskbar) {
  6648. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6649. // }
  6650. }
  6651. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6652. var xmlhttp;
  6653. var Mac, Sn, DeviceId
  6654. if (window.XMLHttpRequest) {
  6655. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6656. xmlhttp = new XMLHttpRequest();
  6657. }
  6658. else {
  6659. // IE6, IE5 瀏覽器執行代碼
  6660. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6661. }
  6662. xmlhttp.onreadystatechange = function () {
  6663. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6664. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6665. // resolve(res.value[0][0].text);
  6666. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6667. }
  6668. }
  6669. }
  6670. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6671. xmlhttp.send();
  6672. }
  6673. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6674. var xmlhttp;
  6675. var Mac, Sn, DeviceId
  6676. if (window.XMLHttpRequest) {
  6677. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6678. xmlhttp = new XMLHttpRequest();
  6679. }
  6680. else {
  6681. // IE6, IE5 瀏覽器執行代碼
  6682. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6683. }
  6684. xmlhttp.onreadystatechange = function () {
  6685. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6686. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6687. // resolve(res.value[0][0].text);
  6688. if (type == '2') {
  6689. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6690. } else if (type == '3') {
  6691. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6692. } else if (type == '4') {
  6693. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  6694. }
  6695. } else {
  6696. if (type == '2') {
  6697. iframe.contentWindow.editor.minder.importData('json', '')
  6698. } else if (type == '3') {
  6699. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6700. } else if (type == '4') {
  6701. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6702. }
  6703. }
  6704. }
  6705. }
  6706. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6707. xmlhttp.send();
  6708. }
  6709. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6710. var xmlhttp;
  6711. var Mac, Sn, DeviceId
  6712. if (window.XMLHttpRequest) {
  6713. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6714. xmlhttp = new XMLHttpRequest();
  6715. }
  6716. else {
  6717. // IE6, IE5 瀏覽器執行代碼
  6718. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6719. }
  6720. xmlhttp.onreadystatechange = function () {
  6721. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6722. if (xmlhttp.response) {
  6723. // resolve(res.value[0][0].text);
  6724. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6725. // $(fileInput).val('');
  6726. // });
  6727. span.innerHTML = '上傳成功'
  6728. setTimeout(() => {
  6729. loading.style.display = 'none'
  6730. }, 1000);
  6731. }
  6732. }
  6733. }
  6734. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6735. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6736. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6737. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6738. // 設置請求頭,表示請求體的編碼格式
  6739. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  6740. // 設置請求體,使用url-encoded格式的數據
  6741. }
  6742. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6743. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6744. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6745. _userinfo = US.userInfo, //登錄用戶信息
  6746. _userid = US.userInfo.userid //登錄用戶id
  6747. let _iframe;
  6748. let _cid = cid,
  6749. _stage = stage,
  6750. _task = task,
  6751. _tool = tool;
  6752. var _jie = $$("div", {
  6753. "style": {
  6754. "position": "absolute",
  6755. "bottom": "50px",
  6756. "right": "50px",
  6757. "zIndex": "9999",
  6758. "backgroundColor": "#2268bc",
  6759. "color": "#fff",
  6760. "padding": "12px 20px",
  6761. "cursor": "pointer",
  6762. "borderRadius": "4px",
  6763. },
  6764. "innerHTML": "提交作業"
  6765. })
  6766. let aTool = ''
  6767. let _loading = document.createElement('div')
  6768. _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;"
  6769. // _loading.id = "";
  6770. let _lchild = document.createElement('div')
  6771. let _limg = document.createElement('img')
  6772. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6773. _limg.style = "width: 26px;margin-right: 10px;"
  6774. _lchild.appendChild(_limg)
  6775. let _lspan = document.createElement('span')
  6776. _lspan.innerHTML = "上傳中..."
  6777. _lchild.appendChild(_lspan)
  6778. _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%);"
  6779. _loading.appendChild(_lchild)
  6780. var _box = $$('div', {
  6781. "style": {
  6782. "position": "relative",
  6783. "width": "100%",
  6784. "height": "100%",
  6785. },
  6786. })
  6787. _box.appendChild(_loading)
  6788. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool+_userid
  6789. switch (str) {
  6790. case "CocoPi":
  6791. aTool = 57;
  6792. _iframe = $$("iframe", {
  6793. "allowpaymentrequest":"allowpaymentrequest",
  6794. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6795. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6796. "frameborder": "no",
  6797. "border": "0",
  6798. "scrolling ": "no",
  6799. "style": {
  6800. "cssText": "border:0;width:100%;height:100%"
  6801. },
  6802. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  6803. })
  6804. _box.appendChild(_iframe);
  6805. _box.appendChild(_jie);
  6806. _formdiv = new U.UF.UI.form(
  6807. "CocoPi",
  6808. _box, {
  6809. "id": "CocoPi_Upload" + cid + stage + task + tool,
  6810. "style": {
  6811. "width": "90%",
  6812. "height": "90%",
  6813. "overflow": 'hidden'
  6814. },
  6815. "onresize": function () { }
  6816. }, {
  6817. closecallback: function () { }
  6818. }, {
  6819. "style": {
  6820. "height": "36px"
  6821. }
  6822. }).form; //創建窗體
  6823. _taskbar = {
  6824. "id": str + _formdiv.id,
  6825. "style": {
  6826. "backgroundImage": "url(/img/icon/cocopi.png)"
  6827. },
  6828. "name": "CocoPi",
  6829. "forms": _formdiv,
  6830. "click": function () {
  6831. U.MD.D.I.openApplication(str, obj, info);
  6832. }
  6833. }
  6834. break;
  6835. }
  6836. if (_iframe) {
  6837. if (str == 'CocoPi') {
  6838. _iframe = _formdiv.querySelector('iframe')
  6839. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6840. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6841. })
  6842. if (onloadListener) {
  6843. _iframe.contentDocument.location.reload()
  6844. } else {
  6845. _iframe.contentDocument.location.reload()
  6846. }
  6847. }
  6848. _jie.onclick = async () => {
  6849. let text = ''
  6850. if (aTool == 57) {
  6851. text = _iframe.contentWindow.getLoadXmlStr()
  6852. }
  6853. _loading.style.display = 'flex'
  6854. console.log(_loading);
  6855. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6856. _loading.style.display = 'none'
  6857. let _div = document.createElement('div')
  6858. _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;"
  6859. let _inner = document.createElement('div')
  6860. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6861. _inner.innerHTML = "上傳成功"
  6862. _div.appendChild(_inner)
  6863. _iframe.contentWindow.window.document.body.appendChild(_div)
  6864. _div.onclick = () => {
  6865. _iframe.contentWindow.window.document.body.removeChild(_div)
  6866. }
  6867. setTimeout(() => {
  6868. _iframe.contentWindow.window.document.body.removeChild(_div)
  6869. }, 1000);
  6870. }, [], { "type": "POST", "withCredentials": true });
  6871. }
  6872. }
  6873. }
  6874. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  6875. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6876. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6877. _userid = student.userid, //登錄用戶id
  6878. _username = student.student //用戶名字
  6879. let _iframe;
  6880. let _cid = cid,
  6881. _stage = stage,
  6882. _task = task,
  6883. _tool = tool;
  6884. var _jie = $$("div", {
  6885. "style": {
  6886. "position": "absolute",
  6887. "bottom": "50px",
  6888. "right": "50px",
  6889. "zIndex": "9999",
  6890. "backgroundColor": "#2268bc",
  6891. "color": "#fff",
  6892. "padding": "12px 20px",
  6893. "cursor": "pointer",
  6894. "borderRadius": "4px",
  6895. },
  6896. "innerHTML": "提交作業"
  6897. })
  6898. let aTool = ''
  6899. let _loading = document.createElement('div')
  6900. _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;"
  6901. // _loading.id = "";
  6902. let _lchild = document.createElement('div')
  6903. let _limg = document.createElement('img')
  6904. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6905. _limg.style = "width: 26px;margin-right: 10px;"
  6906. _lchild.appendChild(_limg)
  6907. let _lspan = document.createElement('span')
  6908. _lspan.innerHTML = "上傳中..."
  6909. _lchild.appendChild(_lspan)
  6910. _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%);"
  6911. _loading.appendChild(_lchild)
  6912. var _box = $$('div', {
  6913. "style": {
  6914. "position": "relative",
  6915. "width": "100%",
  6916. "height": "100%",
  6917. },
  6918. })
  6919. _box.appendChild(_loading)
  6920. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool+_userid
  6921. switch (str) {
  6922. case "CocoPi":
  6923. aTool = 57;
  6924. _iframe = $$("iframe", {
  6925. "allowpaymentrequest":"allowpaymentrequest",
  6926. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6927. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6928. "frameborder": "no",
  6929. "border": "0",
  6930. "scrolling ": "no",
  6931. "style": {
  6932. "cssText": "border:0;width:100%;height:100%"
  6933. },
  6934. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  6935. })
  6936. _box.appendChild(_iframe);
  6937. _box.appendChild(_jie);
  6938. _formdiv = new U.UF.UI.form(
  6939. "CocoPi-" + _username,
  6940. _box, {
  6941. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  6942. "style": {
  6943. "width": "90%",
  6944. "height": "90%",
  6945. "overflow": 'hidden'
  6946. },
  6947. "onresize": function () { }
  6948. }, {
  6949. closecallback: function () { }
  6950. }, {
  6951. "style": {
  6952. "height": "36px"
  6953. }
  6954. }).form; //創建窗體
  6955. _taskbar = {
  6956. "id": str + _formdiv.id,
  6957. "style": {
  6958. "backgroundImage": "url(/img/icon/cocopi.png)"
  6959. },
  6960. "name": "CocoPi",
  6961. "forms": _formdiv,
  6962. "click": function () {
  6963. U.MD.D.I.openApplication(str, obj, info);
  6964. }
  6965. }
  6966. break;
  6967. }
  6968. if (_iframe) {
  6969. if (str == 'CocoPi') {
  6970. _iframe = _formdiv.querySelector('iframe')
  6971. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6972. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6973. })
  6974. if (onloadListener) {
  6975. _iframe.contentDocument.location.reload()
  6976. } else {
  6977. _iframe.contentDocument.location.reload()
  6978. }
  6979. }
  6980. _jie.onclick = async () => {
  6981. let text = ''
  6982. if (aTool == 57) {
  6983. text = _iframe.contentWindow.getLoadXmlStr()
  6984. }
  6985. _loading.style.display = 'flex'
  6986. console.log(_loading);
  6987. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6988. _loading.style.display = 'none'
  6989. let _div = document.createElement('div')
  6990. _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;"
  6991. let _inner = document.createElement('div')
  6992. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6993. _inner.innerHTML = "上傳成功"
  6994. _div.appendChild(_inner)
  6995. _iframe.contentWindow.window.document.body.appendChild(_div)
  6996. _div.onclick = () => {
  6997. _iframe.contentWindow.window.document.body.removeChild(_div)
  6998. }
  6999. setTimeout(() => {
  7000. _iframe.contentWindow.window.document.body.removeChild(_div)
  7001. }, 1000);
  7002. }, [], { "type": "POST", "withCredentials": true });
  7003. }
  7004. }
  7005. }
  7006. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  7007. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  7008. if (res.value[0].length > 0) {
  7009. if (atool == 57) {
  7010. iframe.contentWindow.loadingXml(res.value[0][0].content)
  7011. }
  7012. } else {
  7013. if (atool == 57) {
  7014. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  7015. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7016. }
  7017. }
  7018. }, [], { "type": "POST", "withCredentials": true });
  7019. }