DeskTop.js 373 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783
  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": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  17. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  18. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  19. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  20. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  21. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  22. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  23. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  24. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  25. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  26. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  27. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  28. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  29. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  30. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  31. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  32. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  33. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  34. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  35. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  36. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  37. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  38. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  39. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  40. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  41. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  42. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  43. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  44. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  45. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  46. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  47. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  48. ];
  49. //極簡模式
  50. U.MD.D.I.easyDeskIcon = [
  51. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  52. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  55. // { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  56. ];
  57. //教師桌面圖標的全局變量
  58. U.MD.D.I.teacherDeskIcon2 = [
  59. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  60. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  61. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  62. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  63. // { "Name": "項目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  64. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  65. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  66. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  67. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  68. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  69. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  70. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  71. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  72. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  73. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  74. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  75. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  76. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  77. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  78. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  79. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  80. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  81. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  82. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  83. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  84. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  85. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  86. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  87. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  88. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  89. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  90. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  91. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  92. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  93. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  94. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  95. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  96. ];
  97. U.MD.D.I.studentDeskIcon = [
  98. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  99. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  100. // { "Name": "我的項目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  101. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  102. // { "Name": "我的評價", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  103. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  104. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  105. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  106. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  107. // { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  108. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  109. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  110. // { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  111. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  112. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  113. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  114. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  115. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  116. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  117. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  118. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  119. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  120. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  121. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  122. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  123. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  124. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  125. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  126. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  127. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  128. ];
  129. U.MD.D.I.studentDeskIcon2 = [
  130. // { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  131. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  132. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  133. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  134. ]
  135. U.MD.D.I.studentDeskIcon3 = [
  136. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  137. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  138. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  139. ]
  140. U.MD.D.I.schoolDeskIcon = [
  141. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  142. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  144. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  145. { "Name": "學習資料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  146. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  147. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  148. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  149. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  150. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  151. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  152. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  153. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  154. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  155. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  156. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  157. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  158. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  159. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  160. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  161. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  162. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  163. ];
  164. U.MD.D.I.orgDeskIcon = [
  165. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  166. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  167. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  168. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  169. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  170. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  171. ];
  172. U.MD.D.I.orgStemDeskIcon = [
  173. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  174. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  175. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  176. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  177. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  178. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  179. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  180. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  181. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  182. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  183. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  184. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  185. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  186. ];
  187. U.MD.D.I.szulsDeskIcon = [
  188. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  189. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  190. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  191. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  192. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  193. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  194. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  195. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  196. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  197. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  198. ];
  199. U.MD.D.I.hanDeskIcon = [
  200. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  201. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  202. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "漢字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  204. { "Name": "國學經典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  205. { "Name": "筆畫訓練", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  206. { "Name": "書法課堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  207. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  209. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  210. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  211. ];
  212. U.MD.D.I.GMteacherDeskIcon = [
  213. { "Name": "課程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  214. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  215. { "Name": "學生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  216. { "Name": "學生評價", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  217. { "Name": "班級管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  218. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  219. { "Name": "課程進展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  220. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  221. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  222. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  223. ];
  224. U.MD.D.I.GMstudentDeskIcon = [
  225. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "我的評價", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  227. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  228. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  229. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  230. ];
  231. //北師大
  232. U.MD.D.I.BSDNSteacherDeskIcon = [
  233. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  234. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  235. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  236. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  237. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  238. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  239. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  240. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  241. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  242. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  243. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  244. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  245. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  246. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  247. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  248. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  249. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  250. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  251. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  252. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  253. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  254. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  255. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  256. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  257. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  258. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  259. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  260. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  261. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  262. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  263. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  264. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  265. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  266. { "Name": "數字實驗室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  267. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  268. ];
  269. //松山湖
  270. U.MD.D.I.SONGteacherDeskIcon = [
  271. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  272. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  273. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  274. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  275. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  276. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  277. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  278. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  279. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  280. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  281. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  282. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  283. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  284. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  285. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  286. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  287. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  288. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  289. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  290. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  291. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  292. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  293. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  294. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  295. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  296. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  297. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  298. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  299. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  300. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  301. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  302. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  303. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  304. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  305. ];
  306. U.MD.D.I.tcStudentDeskIcon = [
  307. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  308. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  309. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  310. ];
  311. U.MD.D.I.tcTeacherDeskIcon = [
  312. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  313. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  314. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  315. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  316. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  317. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  318. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  319. ];
  320. U.MD.D.I.tcOrganizerDeskIcon = [
  321. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  322. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  323. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  324. { "Name": "師生項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  325. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  326. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  327. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  328. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  329. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  330. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  331. ];
  332. U.MD.D.I.szscStudentDeskIcon = [
  333. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  334. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  335. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. ];
  338. U.MD.D.I.szscTeacherDeskIcon = [
  339. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  340. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  341. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  342. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  343. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  344. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  345. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  346. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  347. ];
  348. U.MD.D.I.szscOrganizerDeskIcon = [
  349. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  350. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  351. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  352. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  353. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  354. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  355. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  356. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  357. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  358. ];
  359. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  360. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  361. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  362. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  363. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  364. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  365. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  366. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  367. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  368. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  369. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  370. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  371. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  372. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  373. ];
  374. U.MD.D.I.wankeAdminDeskIcon = [
  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": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  382. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  383. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  384. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  385. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  386. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  387. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  388. ];
  389. U.MD.D.I.lhsTeacherDeskIcon = [//未來小學
  390. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  391. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  392. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  393. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  394. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  395. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  396. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  397. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  398. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  399. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  400. ];
  401. U.MD.D.I.lhsAdminDeskIcon = [//未來小學admin
  402. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  403. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  404. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  405. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  406. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  407. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  408. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  409. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  410. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  411. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  412. ];
  413. //明德教師桌面圖標的全局變量
  414. U.MD.D.I.MingdeTeacherDeskIcon = [
  415. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  416. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  417. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  418. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  419. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  420. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  421. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  422. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  423. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  424. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  425. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  426. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  427. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  428. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  429. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  430. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  431. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  432. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  433. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  434. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  435. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  436. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  437. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  438. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  439. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  440. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  441. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  442. ];
  443. //97c4ee8b-d010-4042-986d-e9d3c217264f
  444. //教師桌面圖標的全局變量
  445. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  446. { "Name": "工作項目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  447. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  448. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  449. // { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  450. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  451. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  452. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  453. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  454. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  455. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  456. ];
  457. //福田
  458. U.MD.D.I.futianTeacherDeskIcon = [
  459. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  460. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  461. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  462. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  463. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  464. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  465. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  466. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  467. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  468. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  469. ];
  470. //福田
  471. U.MD.D.I.futianAdminDeskIcon = [
  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": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  475. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  476. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  477. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  478. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  479. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  480. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  481. ];
  482. //lotech
  483. U.MD.D.I.lotechTeacherDeskIcon = [
  484. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  485. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  486. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  487. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  488. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  489. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  490. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  491. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  492. ];
  493. //龍華中心小學教師桌面圖標的全局變量
  494. U.MD.D.I.longhuateacherDeskIcon = [
  495. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  496. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  497. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  498. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  499. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  500. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  501. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  502. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  503. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  504. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  505. ];
  506. //教科院實小教師桌面圖標的全局變量
  507. U.MD.D.I.siesteacherDeskIcon = [
  508. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  509. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  510. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  511. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.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": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  515. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  516. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  517. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  518. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  519. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  520. ];
  521. //福田
  522. U.MD.D.I.gdjgTeacherDeskIcon = [
  523. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  524. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.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": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  528. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  529. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  530. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  531. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  532. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  533. ];
  534. //gdjg
  535. U.MD.D.I.gdjgAdminDeskIcon = [
  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": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  539. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  540. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  541. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  542. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  543. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  544. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  545. ];
  546. //hk
  547. U.MD.D.I.hkteacherDeskIcon = [
  548. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  549. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  550. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  551. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  552. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  553. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  554. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  555. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  556. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  557. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  558. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  559. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  560. ];
  561. //#region 桌面初始化a
  562. /**
  563. * 初始化桌面的起始函數
  564. *
  565. */
  566. U.MD.D.I.init = function () {
  567. if ($("#U_MD_D_K")[0]) {
  568. //初始化桌面圖標
  569. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  570. // var clickUrl = ':12588/requestIp.php';
  571. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  572. // U.MD.D.I.Ip = data;
  573. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  574. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  575. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  576. // })
  577. // //初始化任務欄,因為是靜態的,所以直接改變樣式即可.
  578. // })
  579. }
  580. }
  581. /**
  582. * 模式切換
  583. *
  584. */
  585. U.MD.D.I.ModeCheck = function (type) {
  586. if (US.Config.type == type) {
  587. return
  588. }
  589. US.Config.type = type
  590. $('.U_PBL_Check .active')[0].className = ''
  591. if (type == 1) {
  592. $('.U_PBL_Check div')[0].className = 'active'
  593. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  594. } else {
  595. $('.U_PBL_Check div')[1].className = 'active'
  596. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  597. }
  598. //初始化桌面圖標
  599. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  600. if(type == 2){
  601. U.MD.D.I.openApplication("project")
  602. }
  603. }
  604. /**
  605. * 隱藏任務欄
  606. *
  607. * @param {element} 桌面元素
  608. */
  609. U.MD.D.I.hiddenTaskbar = function (el) {
  610. //任務欄位置變小
  611. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  612. //桌面的位置變大
  613. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  614. }
  615. /**
  616. * 隱藏任務欄
  617. *
  618. * @param {element} 桌面元素
  619. */
  620. U.MD.D.I.hiddenTaskbarout = function (el) {
  621. //任務欄位置變小
  622. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  623. //任務欄位置變化
  624. U.selectEl(el).css({ "bottom": "-60px" });
  625. //桌面的位置變大
  626. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  627. }
  628. }
  629. /**
  630. * 初始化打印桌面圖標
  631. *
  632. * @param {element} 桌面元素
  633. */
  634. U.MD.D.I.initDesktopIcons = function (el, type) {
  635. var i, //用於循環
  636. _content, //桌面圖標元素
  637. _iconcontent, //桌面圖標元素
  638. _frag = $$("frag"), //定義一個碎片元素
  639. _type = US.userInfo.type,
  640. _org = US.userInfo.org,
  641. _oid = US.userInfo.organizeid,
  642. _role = US.userInfo.role,
  643. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //獲取教師端桌面圖標
  644. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //極簡模式桌面圖標
  645. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //獲取教師端桌面圖標
  646. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //獲取學生端桌面圖標
  647. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //獲取學生端桌面圖標
  648. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //獲取學生端桌面圖標
  649. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //獲取組織桌面圖標
  650. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  651. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  652. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  653. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //獲取測試學校桌面圖標
  654. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//獲取北師大
  655. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//獲取周佳名工作室
  656. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//獲取松山湖
  657. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//獲取萬科雙語
  658. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//獲取萬科雙語
  659. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//獲取萬科雙語
  660. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//獲取未來小學
  661. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//獲取未來小學
  662. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //獲取光明學校桌面圖標
  663. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //獲取光明學校桌面圖標
  664. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//騰訊學生
  665. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//騰訊學生
  666. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  667. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  668. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//福田
  669. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//福田
  670. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  671. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龍華中心
  672. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龍華中心
  673. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//騰訊學生
  674. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon,//hk
  675. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//網絡夏令營
  676. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//網絡夏令營
  677. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//網絡夏令營
  678. 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'];
  679. 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'];
  680. //清楚桌面圖標
  681. el.innerHTML = "";
  682. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  683. _teacherDesktopIconInfo.push(
  684. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  685. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  686. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  687. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  688. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  689. )
  690. _easyDesktopIconInfo.push(
  691. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  692. )
  693. }
  694. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  695. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  696. if(el.Name == '項目管理'){
  697. el.Name = 'PBL項目'
  698. }
  699. return el
  700. })
  701. }
  702. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  703. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  704. return el.Name != '魔盒識字' && el.Name != '24點'
  705. })
  706. }
  707. 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) {
  708. _studentDesktopIconInfo.push(
  709. { "Name": "我的評價", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  710. )
  711. }
  712. //循環創建桌面圖標
  713. if (type == 1) {
  714. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  715. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  716. _content = $$("div", {
  717. className: "U_MD_D_KO",
  718. "onmousedown": U.UF.C.closure(function (obj) {
  719. //防止拖動圖標即打開了桌面應用
  720. U.MD.D.click(this, obj);
  721. }, [_studentDesktopIconInfo[i]]),
  722. "onclick": U.UF.C.closure(function (obj) {
  723. //防止拖動圖標即打開了桌面應用
  724. U.MD.D.click(this, obj);
  725. }, [_studentDesktopIconInfo[i]])
  726. }, _frag); //
  727. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  728. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  729. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  730. }
  731. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  732. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  733. _content = $$("div", {
  734. className: "U_MD_D_KO",
  735. "onmousedown": U.UF.C.closure(function (obj) {
  736. //防止拖動圖標即打開了桌面應用
  737. U.MD.D.click(this, obj);
  738. }, [_studentDesktopIconInfo[i]]),
  739. "onclick": U.UF.C.closure(function (obj) {
  740. //防止拖動圖標即打開了桌面應用
  741. U.MD.D.click(this, obj);
  742. }, [_studentDesktopIconInfo[i]])
  743. }, _frag); //
  744. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  745. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  746. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  747. }
  748. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  749. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  750. _content = $$("div", {
  751. className: "U_MD_D_KO",
  752. "onmousedown": U.UF.C.closure(function (obj) {
  753. //防止拖動圖標即打開了桌面應用
  754. U.MD.D.click(this, obj);
  755. }, [_tcStudentDeskIconInfo[i]]),
  756. "onclick": U.UF.C.closure(function (obj) {
  757. //防止拖動圖標即打開了桌面應用
  758. U.MD.D.click(this, obj);
  759. }, [_tcStudentDeskIconInfo[i]])
  760. }, _frag); //
  761. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  762. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  763. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  764. }
  765. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  766. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  767. _content = $$("div", {
  768. className: "U_MD_D_KO",
  769. "onmousedown": U.UF.C.closure(function (obj) {
  770. //防止拖動圖標即打開了桌面應用
  771. U.MD.D.click(this, obj);
  772. }, [_szscStudentDeskIconInfo[i]]),
  773. "onclick": U.UF.C.closure(function (obj) {
  774. //防止拖動圖標即打開了桌面應用
  775. U.MD.D.click(this, obj);
  776. }, [_szscStudentDeskIconInfo[i]])
  777. }, _frag); //
  778. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  779. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  780. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  781. }
  782. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  783. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  784. _content = $$("div", {
  785. className: "U_MD_D_KO",
  786. "onmousedown": U.UF.C.closure(function (obj) {
  787. //防止拖動圖標即打開了桌面應用
  788. U.MD.D.click(this, obj);
  789. }, [_studentDesktopIconInfo3[i]]),
  790. "onclick": U.UF.C.closure(function (obj) {
  791. //防止拖動圖標即打開了桌面應用
  792. U.MD.D.click(this, obj);
  793. }, [_studentDesktopIconInfo3[i]])
  794. }, _frag); //
  795. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  796. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  797. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  798. }
  799. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  800. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  801. _content = $$("div", {
  802. className: "U_MD_D_KO",
  803. "onmousedown": U.UF.C.closure(function (obj) {
  804. //防止拖動圖標即打開了桌面應用
  805. U.MD.D.click(this, obj);
  806. }, [_studentDesktopIconInfo2[i]]),
  807. "onclick": U.UF.C.closure(function (obj) {
  808. //防止拖動圖標即打開了桌面應用
  809. U.MD.D.click(this, obj);
  810. }, [_studentDesktopIconInfo2[i]])
  811. }, _frag); //
  812. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  813. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  814. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  815. }
  816. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  817. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  818. _content = $$("div", {
  819. className: "U_MD_D_KO",
  820. "onmousedown": U.UF.C.closure(function (obj) {
  821. //防止拖動圖標即打開了桌面應用
  822. U.MD.D.click(this, obj);
  823. }, [_wanketeacherDesktopIconInfo[i]]),
  824. "onclick": U.UF.C.closure(function (obj) {
  825. //防止拖動圖標即打開了桌面應用
  826. U.MD.D.click(this, obj);
  827. }, [_wanketeacherDesktopIconInfo[i]])
  828. }, _frag); //
  829. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  830. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  831. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  832. }
  833. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  834. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  835. _content = $$("div", {
  836. className: "U_MD_D_KO",
  837. "onmousedown": U.UF.C.closure(function (obj) {
  838. //防止拖動圖標即打開了桌面應用
  839. U.MD.D.click(this, obj);
  840. }, [_wankeAdminDesktopIconInfo[i]]),
  841. "onclick": U.UF.C.closure(function (obj) {
  842. //防止拖動圖標即打開了桌面應用
  843. U.MD.D.click(this, obj);
  844. }, [_wankeAdminDesktopIconInfo[i]])
  845. }, _frag); //
  846. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  847. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  848. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  849. }
  850. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  851. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  852. _content = $$("div", {
  853. className: "U_MD_D_KO",
  854. "onmousedown": U.UF.C.closure(function (obj) {
  855. //防止拖動圖標即打開了桌面應用
  856. U.MD.D.click(this, obj);
  857. }, [_teacherDesktopIconInfo2[i]]),
  858. "onclick": U.UF.C.closure(function (obj) {
  859. //防止拖動圖標即打開了桌面應用
  860. U.MD.D.click(this, obj);
  861. }, [_teacherDesktopIconInfo2[i]])
  862. }, _frag); //
  863. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  864. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  865. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  866. }
  867. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  868. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  869. _content = $$("div", {
  870. className: "U_MD_D_KO",
  871. "onmousedown": U.UF.C.closure(function (obj) {
  872. //防止拖動圖標即打開了桌面應用
  873. U.MD.D.click(this, obj);
  874. }, [_lotechTeacherDeskIconInfo[i]]),
  875. "onclick": U.UF.C.closure(function (obj) {
  876. //防止拖動圖標即打開了桌面應用
  877. U.MD.D.click(this, obj);
  878. }, [_lotechTeacherDeskIconInfo[i]])
  879. }, _frag); //
  880. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  881. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  882. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  883. }
  884. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  885. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  886. _content = $$("div", {
  887. className: "U_MD_D_KO",
  888. "onmousedown": U.UF.C.closure(function (obj) {
  889. //防止拖動圖標即打開了桌面應用
  890. U.MD.D.click(this, obj);
  891. }, [_siesTeacherDeskIconInfo[i]]),
  892. "onclick": U.UF.C.closure(function (obj) {
  893. //防止拖動圖標即打開了桌面應用
  894. U.MD.D.click(this, obj);
  895. }, [_siesTeacherDeskIconInfo[i]])
  896. }, _frag); //
  897. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  898. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  899. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  900. }
  901. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  902. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  903. _content = $$("div", {
  904. className: "U_MD_D_KO",
  905. "onmousedown": U.UF.C.closure(function (obj) {
  906. //防止拖動圖標即打開了桌面應用
  907. U.MD.D.click(this, obj);
  908. }, [_longhuaTeacherDeskIconInfo[i]]),
  909. "onclick": U.UF.C.closure(function (obj) {
  910. //防止拖動圖標即打開了桌面應用
  911. U.MD.D.click(this, obj);
  912. }, [_longhuaTeacherDeskIconInfo[i]])
  913. }, _frag); //
  914. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  915. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  916. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  917. }
  918. }else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  919. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  920. _content = $$("div", {
  921. className: "U_MD_D_KO",
  922. "onmousedown": U.UF.C.closure(function (obj) {
  923. //防止拖動圖標即打開了桌面應用
  924. U.MD.D.click(this, obj);
  925. }, [_hkTeacherDeskIconInfo[i]]),
  926. "onclick": U.UF.C.closure(function (obj) {
  927. //防止拖動圖標即打開了桌面應用
  928. U.MD.D.click(this, obj);
  929. }, [_hkTeacherDeskIconInfo[i]])
  930. }, _frag); //
  931. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  932. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  933. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  934. }
  935. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  936. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  937. _content = $$("div", {
  938. className: "U_MD_D_KO",
  939. "onmousedown": U.UF.C.closure(function (obj) {
  940. //防止拖動圖標即打開了桌面應用
  941. U.MD.D.click(this, obj);
  942. }, [_gdjgAdminDeskIconInfo[i]]),
  943. "onclick": U.UF.C.closure(function (obj) {
  944. //防止拖動圖標即打開了桌面應用
  945. U.MD.D.click(this, obj);
  946. }, [_gdjgAdminDeskIconInfo[i]])
  947. }, _frag); //
  948. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  949. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  950. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  951. }
  952. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  953. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  954. _content = $$("div", {
  955. className: "U_MD_D_KO",
  956. "onmousedown": U.UF.C.closure(function (obj) {
  957. //防止拖動圖標即打開了桌面應用
  958. U.MD.D.click(this, obj);
  959. }, [_gdjgTeacherDeskIconInfo[i]]),
  960. "onclick": U.UF.C.closure(function (obj) {
  961. //防止拖動圖標即打開了桌面應用
  962. U.MD.D.click(this, obj);
  963. }, [_gdjgTeacherDeskIconInfo[i]])
  964. }, _frag); //
  965. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  966. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  967. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  968. }
  969. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  970. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  971. _content = $$("div", {
  972. className: "U_MD_D_KO",
  973. "onmousedown": U.UF.C.closure(function (obj) {
  974. //防止拖動圖標即打開了桌面應用
  975. U.MD.D.click(this, obj);
  976. }, [_futianAdminDeskIconInfo[i]]),
  977. "onclick": U.UF.C.closure(function (obj) {
  978. //防止拖動圖標即打開了桌面應用
  979. U.MD.D.click(this, obj);
  980. }, [_futianAdminDeskIconInfo[i]])
  981. }, _frag); //
  982. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  983. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  984. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  985. }
  986. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  987. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  988. _content = $$("div", {
  989. className: "U_MD_D_KO",
  990. "onmousedown": U.UF.C.closure(function (obj) {
  991. //防止拖動圖標即打開了桌面應用
  992. U.MD.D.click(this, obj);
  993. }, [_futianTeacherDeskIconInfo[i]]),
  994. "onclick": U.UF.C.closure(function (obj) {
  995. //防止拖動圖標即打開了桌面應用
  996. U.MD.D.click(this, obj);
  997. }, [_futianTeacherDeskIconInfo[i]])
  998. }, _frag); //
  999. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1000. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1001. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1002. }
  1003. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1004. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1005. _content = $$("div", {
  1006. className: "U_MD_D_KO",
  1007. "onmousedown": U.UF.C.closure(function (obj) {
  1008. //防止拖動圖標即打開了桌面應用
  1009. U.MD.D.click(this, obj);
  1010. }, [_MingdeTeacherDeskIcon[i]]),
  1011. "onclick": U.UF.C.closure(function (obj) {
  1012. //防止拖動圖標即打開了桌面應用
  1013. U.MD.D.click(this, obj);
  1014. }, [_MingdeTeacherDeskIcon[i]])
  1015. }, _frag); //
  1016. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1017. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1018. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1019. }
  1020. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1021. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1022. _content = $$("div", {
  1023. className: "U_MD_D_KO",
  1024. "onmousedown": U.UF.C.closure(function (obj) {
  1025. //防止拖動圖標即打開了桌面應用
  1026. U.MD.D.click(this, obj);
  1027. }, [_lhsAdminDesktopIconInfo[i]]),
  1028. "onclick": U.UF.C.closure(function (obj) {
  1029. //防止拖動圖標即打開了桌面應用
  1030. U.MD.D.click(this, obj);
  1031. }, [_lhsAdminDesktopIconInfo[i]])
  1032. }, _frag); //
  1033. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1034. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1035. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1036. }
  1037. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1038. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1039. _content = $$("div", {
  1040. className: "U_MD_D_KO",
  1041. "onmousedown": U.UF.C.closure(function (obj) {
  1042. //防止拖動圖標即打開了桌面應用
  1043. U.MD.D.click(this, obj);
  1044. }, [_lhsteacherDesktopIconInfo[i]]),
  1045. "onclick": U.UF.C.closure(function (obj) {
  1046. //防止拖動圖標即打開了桌面應用
  1047. U.MD.D.click(this, obj);
  1048. }, [_lhsteacherDesktopIconInfo[i]])
  1049. }, _frag); //
  1050. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1051. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1052. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1053. }
  1054. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1055. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1056. _content = $$("div", {
  1057. className: "U_MD_D_KO",
  1058. "onmousedown": U.UF.C.closure(function (obj) {
  1059. //防止拖動圖標即打開了桌面應用
  1060. U.MD.D.click(this, obj);
  1061. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1062. "onclick": U.UF.C.closure(function (obj) {
  1063. //防止拖動圖標即打開了桌面應用
  1064. U.MD.D.click(this, obj);
  1065. }, [_zhoujiateacherDesktopIconInfo[i]])
  1066. }, _frag); //
  1067. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1068. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1069. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1070. }
  1071. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1072. for (i = 0; i < _hanDeskIcon.length; i++) {
  1073. _content = $$("div", {
  1074. className: "U_MD_D_KO",
  1075. "onmousedown": U.UF.C.closure(function (obj) {
  1076. //防止拖動圖標即打開了桌面應用
  1077. U.MD.D.click(this, obj);
  1078. }, [_hanDeskIcon[i]]),
  1079. "onclick": U.UF.C.closure(function (obj) {
  1080. //防止拖動圖標即打開了桌面應用
  1081. U.MD.D.click(this, obj);
  1082. }, [_hanDeskIcon[i]])
  1083. }, _frag); //
  1084. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1085. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1086. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1087. }
  1088. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1089. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1090. _content = $$("div", {
  1091. className: "U_MD_D_KO",
  1092. "onmousedown": U.UF.C.closure(function (obj) {
  1093. //防止拖動圖標即打開了桌面應用
  1094. U.MD.D.click(this, obj);
  1095. }, [_orgStemDeskIcon[i]]),
  1096. "onclick": U.UF.C.closure(function (obj) {
  1097. //防止拖動圖標即打開了桌面應用
  1098. U.MD.D.click(this, obj);
  1099. }, [_orgStemDeskIcon[i]])
  1100. }, _frag); //
  1101. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1102. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1103. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1104. }
  1105. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1106. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1107. _content = $$("div", {
  1108. className: "U_MD_D_KO",
  1109. "onmousedown": U.UF.C.closure(function (obj) {
  1110. //防止拖動圖標即打開了桌面應用
  1111. U.MD.D.click(this, obj);
  1112. }, [_szulsDeskIcon[i]]),
  1113. "onclick": U.UF.C.closure(function (obj) {
  1114. //防止拖動圖標即打開了桌面應用
  1115. U.MD.D.click(this, obj);
  1116. }, [_szulsDeskIcon[i]])
  1117. }, _frag); //
  1118. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1119. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1120. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1121. }
  1122. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1123. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1124. _content = $$("div", {
  1125. className: "U_MD_D_KO",
  1126. "onmousedown": U.UF.C.closure(function (obj) {
  1127. //防止拖動圖標即打開了桌面應用
  1128. U.MD.D.click(this, obj);
  1129. }, [_orgDesktopIconInfo[i]]),
  1130. "onclick": U.UF.C.closure(function (obj) {
  1131. //防止拖動圖標即打開了桌面應用
  1132. U.MD.D.click(this, obj);
  1133. }, [_orgDesktopIconInfo[i]])
  1134. }, _frag); //
  1135. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1136. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1137. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1138. }
  1139. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1140. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1141. _content = $$("div", {
  1142. className: "U_MD_D_KO",
  1143. "onmousedown": U.UF.C.closure(function (obj) {
  1144. //防止拖動圖標即打開了桌面應用
  1145. U.MD.D.click(this, obj);
  1146. }, [_schoolDesktopIconInfo[i]]),
  1147. "onclick": U.UF.C.closure(function (obj) {
  1148. //防止拖動圖標即打開了桌面應用
  1149. U.MD.D.click(this, obj);
  1150. }, [_schoolDesktopIconInfo[i]])
  1151. }, _frag); //
  1152. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1153. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1154. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1155. }
  1156. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1157. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1158. _content = $$("div", {
  1159. className: "U_MD_D_KO",
  1160. "onmousedown": U.UF.C.closure(function (obj) {
  1161. //防止拖動圖標即打開了桌面應用
  1162. U.MD.D.click(this, obj);
  1163. }, [_GMteacherDesktopIconInfo[i]]),
  1164. "onclick": U.UF.C.closure(function (obj) {
  1165. //防止拖動圖標即打開了桌面應用
  1166. U.MD.D.click(this, obj);
  1167. }, [_GMteacherDesktopIconInfo[i]])
  1168. }, _frag); //
  1169. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1170. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1171. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1172. }
  1173. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1174. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1175. _content = $$("div", {
  1176. className: "U_MD_D_KO",
  1177. "onmousedown": U.UF.C.closure(function (obj) {
  1178. //防止拖動圖標即打開了桌面應用
  1179. U.MD.D.click(this, obj);
  1180. }, [_SONGteacherDesktopIconInfo[i]]),
  1181. "onclick": U.UF.C.closure(function (obj) {
  1182. //防止拖動圖標即打開了桌面應用
  1183. U.MD.D.click(this, obj);
  1184. }, [_SONGteacherDesktopIconInfo[i]])
  1185. }, _frag); //
  1186. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1187. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1188. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1189. }
  1190. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1191. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1192. _content = $$("div", {
  1193. className: "U_MD_D_KO",
  1194. "onmousedown": U.UF.C.closure(function (obj) {
  1195. //防止拖動圖標即打開了桌面應用
  1196. U.MD.D.click(this, obj);
  1197. }, [_GMstudentDesktopIconInfo[i]]),
  1198. "onclick": U.UF.C.closure(function (obj) {
  1199. //防止拖動圖標即打開了桌面應用
  1200. U.MD.D.click(this, obj);
  1201. }, [_GMstudentDesktopIconInfo[i]])
  1202. }, _frag); //
  1203. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1204. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1205. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1206. }
  1207. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1208. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1209. _content = $$("div", {
  1210. className: "U_MD_D_KO",
  1211. "onmousedown": U.UF.C.closure(function (obj) {
  1212. //防止拖動圖標即打開了桌面應用
  1213. U.MD.D.click(this, obj);
  1214. }, [_tcTeacherDeskIconInfo[i]]),
  1215. "onclick": U.UF.C.closure(function (obj) {
  1216. //防止拖動圖標即打開了桌面應用
  1217. U.MD.D.click(this, obj);
  1218. }, [_tcTeacherDeskIconInfo[i]])
  1219. }, _frag); //
  1220. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1221. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1222. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1223. }
  1224. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1225. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1226. _content = $$("div", {
  1227. className: "U_MD_D_KO",
  1228. "onmousedown": U.UF.C.closure(function (obj) {
  1229. //防止拖動圖標即打開了桌面應用
  1230. U.MD.D.click(this, obj);
  1231. }, [_tcOrganizerDeskIconInfo[i]]),
  1232. "onclick": U.UF.C.closure(function (obj) {
  1233. //防止拖動圖標即打開了桌面應用
  1234. U.MD.D.click(this, obj);
  1235. }, [_tcOrganizerDeskIconInfo[i]])
  1236. }, _frag); //
  1237. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1238. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1239. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1240. }
  1241. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1242. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1243. _content = $$("div", {
  1244. className: "U_MD_D_KO",
  1245. "onmousedown": U.UF.C.closure(function (obj) {
  1246. //防止拖動圖標即打開了桌面應用
  1247. U.MD.D.click(this, obj);
  1248. }, [_szscTeacherDeskIconInfo[i]]),
  1249. "onclick": U.UF.C.closure(function (obj) {
  1250. //防止拖動圖標即打開了桌面應用
  1251. U.MD.D.click(this, obj);
  1252. }, [_szscTeacherDeskIconInfo[i]])
  1253. }, _frag); //
  1254. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1255. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1256. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1257. }
  1258. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1259. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1260. _content = $$("div", {
  1261. className: "U_MD_D_KO",
  1262. "onmousedown": U.UF.C.closure(function (obj) {
  1263. //防止拖動圖標即打開了桌面應用
  1264. U.MD.D.click(this, obj);
  1265. }, [_szscOrganizerDeskIconInfo[i]]),
  1266. "onclick": U.UF.C.closure(function (obj) {
  1267. //防止拖動圖標即打開了桌面應用
  1268. U.MD.D.click(this, obj);
  1269. }, [_szscOrganizerDeskIconInfo[i]])
  1270. }, _frag); //
  1271. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1272. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1273. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1274. }
  1275. } else {
  1276. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1277. _content = $$("div", {
  1278. className: "U_MD_D_KO",
  1279. "onmousedown": U.UF.C.closure(function (obj) {
  1280. //防止拖動圖標即打開了桌面應用
  1281. U.MD.D.click(this, obj);
  1282. }, [_teacherDesktopIconInfo[i]]),
  1283. "onclick": U.UF.C.closure(function (obj) {
  1284. //防止拖動圖標即打開了桌面應用
  1285. U.MD.D.click(this, obj);
  1286. }, [_teacherDesktopIconInfo[i]])
  1287. }, _frag); //
  1288. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1289. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1290. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1291. }
  1292. }
  1293. } else {
  1294. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1295. _content = $$("div", {
  1296. className: "U_MD_D_KO",
  1297. style: { 'width': '124px', 'height': '145px' },
  1298. "onmousedown": U.UF.C.closure(function (obj) {
  1299. //防止拖動圖標即打開了桌面應用
  1300. U.MD.D.click(this, obj);
  1301. }, [_easyDesktopIconInfo[i]]),
  1302. "onclick": U.UF.C.closure(function (obj) {
  1303. //防止拖動圖標即打開了桌面應用
  1304. U.MD.D.click(this, obj);
  1305. }, [_easyDesktopIconInfo[i]])
  1306. }, _frag); //
  1307. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1308. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1309. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1310. }
  1311. }
  1312. if (type == 1) {
  1313. //加載好後給圖標定位
  1314. U.MD.D.iconPostion($(_frag).Child());
  1315. } else {
  1316. //加載好後給圖標定位
  1317. U.MD.D.iconPostion2($(_frag).Child());
  1318. }
  1319. //把圖標加載到頁面
  1320. el.appendChild(_frag);
  1321. }
  1322. /**
  1323. * 顯示任務欄
  1324. *
  1325. * @param {element} 桌面元素
  1326. */
  1327. U.MD.D.I.displayTaskbar = function (el) {
  1328. //判斷是否需要形式任務欄,由於用了mouseover事件會冒泡響應多次,這裏做了過濾
  1329. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1330. //任務欄位置變化
  1331. U.selectEl(el).css({ "bottom": "0px" });
  1332. //桌面位置變話
  1333. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1334. }
  1335. }
  1336. //#region 桌面圖標拖動邏輯
  1337. /**
  1338. * 桌面排列圖標
  1339. *
  1340. * @param {element} 桌面元素
  1341. * @param {object} 上下相距的距離
  1342. * @param {object} 左右相距的距離
  1343. * @return {object} 命名空間
  1344. */
  1345. U.MD.D.iconPostion = function (childs, top, left) {
  1346. var i; //用於循環處理
  1347. top = top || 15; //如果沒有設置元素的間距處理默認上間距為15
  1348. left = left || 20; //如果沒有設置元素的間距處理默認左間距為15
  1349. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  1350. for (i = 0; i < childs.length; i++) {
  1351. //如果豎排top超過了範圍處理
  1352. if (top + 95 > US.height - 10) {
  1353. //left超過了頁面範圍處理,則向上重疊打印處理
  1354. if ((left + 180) > US.width) {
  1355. top -= 110;
  1356. left -= 90;
  1357. }
  1358. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  1359. else {
  1360. left += 90;
  1361. top = 15;
  1362. };
  1363. }
  1364. //給圖標的位置賦值
  1365. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1366. if (i < childs.length - 1) {
  1367. //頁面圖標每次向下加95
  1368. top += 95;
  1369. }
  1370. }
  1371. //返回最後調用的圖標的位置
  1372. return [top, left];
  1373. }
  1374. /**
  1375. * 桌面排列圖標
  1376. *
  1377. * @param {element} 桌面元素
  1378. * @param {object} 上下相距的距離
  1379. * @param {object} 左右相距的距離
  1380. * @return {object} 命名空間
  1381. */
  1382. U.MD.D.iconPostion2 = function (childs, top, left) {
  1383. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用於循環處理
  1384. top = top || 70; //如果沒有設置元素的間距處理默認上間距為15
  1385. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果沒有設置元素的間距處理默認左間距為15
  1386. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  1387. for (i = 0; i < childs.length; i++) {
  1388. //如果豎排top超過了範圍處理
  1389. if (left + 150 > US.width - 10) {
  1390. //left超過了頁面範圍處理,則向上重疊打印處理
  1391. if ((top + 180) > US.Height) {
  1392. top -= 150;
  1393. left -= 150;
  1394. }
  1395. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  1396. else {
  1397. top += 150;
  1398. left = ol;
  1399. };
  1400. }
  1401. //給圖標的位置賦值
  1402. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1403. if (i < childs.length - 1) {
  1404. //頁面圖標每次向下加95
  1405. left += 150;
  1406. }
  1407. }
  1408. //返回最後調用的圖標的位置
  1409. return [top, left];
  1410. }
  1411. /**
  1412. * 桌面點擊事件邏輯
  1413. *
  1414. * @param {element} 桌面元素
  1415. * @param {object} 上下相距的距離
  1416. * @param {object} 左右相距的距離
  1417. * @return {object} 命名空間
  1418. */
  1419. U.MD.D.click = function (el, obj) {
  1420. var _buttonnumber = event.button; //點擊的按鈕的事件值
  1421. var _userinfo = US.userInfo;
  1422. U.UF.EV.stopBubble(); //阻止向上冒泡
  1423. //onmousedown 包含了左鍵和右鍵 這裏大於2是為了兼容 所有瀏覽器的右鍵處理
  1424. if (_buttonnumber < 2) {
  1425. //如果是click事件的處理
  1426. if (event.type == "click") {
  1427. //如果元素在mousemove事件中沒有移動則出發click事件
  1428. if (!U.MD.D.I.IsDrag) {
  1429. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1430. U.alert("請先登錄您的賬號!");
  1431. setTimeout(() => {
  1432. U.MD.U.L.login();
  1433. }, 2000);
  1434. } else {
  1435. //打開應用處理
  1436. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1437. }
  1438. }
  1439. }
  1440. //如果是mouse事件的處理
  1441. else {
  1442. if (US.Config.type == '1') {
  1443. //拖動處理,添加拖動和拖動結束事件
  1444. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1445. }
  1446. }
  1447. U.MD.D.I.IsDrag = false;
  1448. }
  1449. }
  1450. /**
  1451. * 拖動的處理
  1452. *
  1453. */
  1454. U.MD.D.iconMove = function () {
  1455. //如果當前位置點擊初始化的位置出現了變化,則設置是否拖動的屬性 U.MD.D.I.IsDrag為true
  1456. U.MD.D.I.IsDrag = true;
  1457. }
  1458. /**
  1459. * 拖動結束後,這裏是定位處理,以網狀的形式定位
  1460. *
  1461. * @param {element} 拖動的元素
  1462. * @return {object} 命名空間
  1463. */
  1464. U.MD.D.iconUp = function (el) {
  1465. var _top = 15,
  1466. _left = 20,
  1467. _margin,
  1468. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的圖標
  1469. _positioninfo = U.UF.EL.getElementInfo(el); //獲取拖動結束的元素的位置
  1470. if (_positioninfo["OT"] > 15) {
  1471. //網狀的形式定位,如果差超過了55,那麼向下定位,否則向上定位
  1472. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1473. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1474. }
  1475. if (_positioninfo["OL"] > 20) {
  1476. //網狀的形式定位,如果差超過了90,那麼向右定位,否則向左定位
  1477. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1478. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1479. }
  1480. //while循環判斷麼一個重疊的元素
  1481. do {
  1482. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //給重疊的元素向下定位
  1483. _top = _positioninfo[0] + 95; //得到定位後的top
  1484. _left = _positioninfo[1]; //得到定位後的left
  1485. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1486. }
  1487. /**
  1488. * 判斷拖動後圖標是否重疊
  1489. *
  1490. * @param {element} 拖動的元素
  1491. * @param {element} 桌面所有的元素
  1492. * @param {array} 拖動元素的位置
  1493. ----------[0] 上 top
  1494. ----------[1] 左 left
  1495. * @return {object} 命名空間
  1496. */
  1497. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1498. //循環所有的圖標
  1499. for (var i = 0; i < childs.length; i++) {
  1500. //判斷有沒有和該圖標誒子重疊的元素
  1501. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1502. return childs[i]; //如果有返回
  1503. }
  1504. }
  1505. }
  1506. //#endregion
  1507. //#endregion
  1508. //#region 桌面應用
  1509. /**
  1510. * 打開應用
  1511. *
  1512. * @param {string} 類型
  1513. -----------------Disk 網盤系統
  1514. -----------------PDisk 學習系統網盤
  1515. -----------------Poto 圖片
  1516. -----------------Video 視頻
  1517. -----------------Music 音樂
  1518. -----------------Word word
  1519. -----------------Excel excel
  1520. -----------------Txt 記事本
  1521. -----------------PB 學習系統
  1522. -----------------Blog 朋友圈系統
  1523. -----------------FTP ftp系統
  1524. -----------------Group 好友群
  1525. -----------------SY 首頁系統
  1526. -----------------Set 個人設置
  1527. -----------------XSet 系統設置
  1528. -----------------App 我們所有的app
  1529. -----------------BC c.1473.cn 平臺
  1530. -----------------CWeb d.1473.cn 變成平臺
  1531. -----------------其他的外聯系統 我們統一用iframe打開
  1532. * @param {array} 類型
  1533. 如果第一個參數為"disk",則第二個參數為object,裏面包含了用戶id和目錄id{userid:"",directoryid:""}
  1534. 如果第一個參數為"word"或者"excel","txt",則第二個參數為文件信息fileinfo。
  1535. 如果第一個參數為"blog"或者"PDisk"。建議刪除。
  1536. 如果第一個參數為其他,則無第二個參數
  1537. * @returns {array}
  1538. */
  1539. window.addEventListener('message', function (e) { // 監聽 message 事件
  1540. // alert(e.data.type);
  1541. if (e.data.screenType && e.data.screenType == "2") { //課程管理傳入
  1542. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1543. //3是展示全部階段 2學生 1老師 4專家
  1544. } else if (e.data.screenType && e.data.screenType == "2s") { //課程管理傳入
  1545. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1546. //3是展示全部階段 2學生 1老師 4專家
  1547. } else if (e.data.screenType && e.data.screenType == "2studio") { //課程管理傳入
  1548. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1549. //3是展示全部階段 2學生 1老師 4專家
  1550. } else if (e.data.screenType && e.data.screenType == "3") { //課程管理傳入
  1551. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1552. } else if (e.data.screenType && e.data.screenType == "3NT") { //課程管理傳入
  1553. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1554. } else if (e.data.screenType && e.data.screenType == "3s") { //課程管理傳入
  1555. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1556. } else if (e.data.screenType && e.data.screenType == "3studio") { //課程管理傳入
  1557. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1558. } else if (e.data.screenType && e.data.screenType == "3s2") { //課程管理傳入
  1559. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1560. } else if (e.data.screenType && e.data.screenType == "2gm") { //課程管理傳入
  1561. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1562. //3是展示全部階段 2學生 1老師 4專家
  1563. } else if (e.data.screenType && e.data.screenType == "3gm") { //課程管理傳入
  1564. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1565. } else if (e.data.close && e.data.close == "1") { //更新用戶信息
  1566. U.MD.D.I.selectUser();
  1567. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1568. var _formel = document.getElementById("study");
  1569. U.UF.F.windowZooming(_formel);
  1570. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1571. var _formel = document.getElementById("studyDetail");
  1572. U.UF.F.windowZooming(_formel);
  1573. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1574. var _formel = document.getElementById("studyDetail");
  1575. U.UF.F.windowZooming(_formel);
  1576. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1577. var _formel = document.getElementById("studentStudy");
  1578. U.UF.F.windowZooming(_formel);
  1579. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1580. // var _formel = document.getElementById("study");
  1581. //如果最大化了,那麼就把他縮小
  1582. // if (_formel.ismaximize) {
  1583. // return;
  1584. // }
  1585. // U.UF.F.windowZooming(_formel);
  1586. // U.UF.F.topWindow(_formel);
  1587. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1588. // var _formel = document.getElementById("studyDetail");
  1589. //如果最大化了,那麼就把他縮小
  1590. // if (_formel.ismaximize) {
  1591. // return;
  1592. // }
  1593. // U.UF.F.windowZooming(_formel);
  1594. // U.UF.F.topWindow(_formel);
  1595. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1596. // var _formel = document.getElementById("studentStudy");
  1597. // if (_formel.ismaximize) {
  1598. // return;
  1599. // }
  1600. // U.UF.F.windowZooming(_formel);
  1601. // U.UF.F.topWindow(_formel);
  1602. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1603. var _formel = document.getElementById("study");
  1604. // if (_formel.ismaximize) {
  1605. // return;
  1606. // }
  1607. // U.UF.F.windowZooming(_formel);
  1608. U.UF.F.topWindow(_formel);
  1609. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1610. var _formel = document.getElementById("studentIndex");
  1611. U.UF.F.windowZooming(_formel);
  1612. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1613. var _formel = document.getElementById("studyDetailS");
  1614. U.UF.F.windowZooming(_formel);
  1615. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1616. var _formel = document.getElementById("studioIndex");
  1617. U.UF.F.windowZooming(_formel);
  1618. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1619. var _formel = document.getElementById("studyDetailStudio");
  1620. U.UF.F.windowZooming(_formel);
  1621. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1622. var _formel = document.getElementById("studyDetailStudio");
  1623. U.UF.F.windowZooming(_formel);
  1624. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1625. var _formel = document.getElementById("studyDetailNT");
  1626. U.UF.F.windowZooming(_formel);
  1627. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1628. var _formel = document.getElementById("studyDetailS");
  1629. U.UF.F.windowZooming(_formel);
  1630. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1631. var _formel = document.getElementById("studyDetailS");
  1632. U.UF.F.topWindow(_formel);
  1633. } else if (e.data.tools && e.data.tools == "1") {
  1634. // U.MD.D.I.openApplication("whiteboard")
  1635. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1636. } else if (e.data.tools && e.data.tools == "2") {
  1637. U.MD.D.I.openApplication("note")
  1638. } else if (e.data.tools && e.data.tools == "3") {
  1639. // U.MD.D.I.openApplication("mind")
  1640. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1641. } else if (e.data.tools && e.data.tools == "4") {
  1642. U.MD.D.I.openApplication("investigation")
  1643. } else if (e.data.tools && e.data.tools == "6") {
  1644. // U.MD.D.I.openApplication("doc")
  1645. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1646. } else if (e.data.tools && e.data.tools == "7") {
  1647. // U.MD.D.I.openApplication("mindNetwork")
  1648. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1649. } else if (e.data.tools && e.data.tools == "8") {
  1650. U.MD.D.I.openApplication("library")
  1651. } else if (e.data.tools && e.data.tools == "17") {
  1652. U.MD.D.I.openApplication("stuLibrary")
  1653. } else if (e.data.tools && e.data.tools == "18") {
  1654. U.MD.D.I.openApplication("train")
  1655. } else if (e.data.tools && e.data.tools == "21") {
  1656. U.MD.D.I.openApplication("program")
  1657. } else if (e.data.tools && e.data.tools == "22") {
  1658. U.MD.D.I.openApplication("AIprogram2")
  1659. } else if (e.data.tools && e.data.tools == "23") {
  1660. U.MD.D.I.openApplication("Pythonprogram")
  1661. } else if (e.data.tools && e.data.tools == "24") {
  1662. U.MD.D.I.openApplication("AIprogram")
  1663. } else if (e.data.tools && e.data.tools == "25") {
  1664. U.MD.D.I.openApplication("sys")
  1665. } else if (e.data.tools && e.data.tools == "26") {
  1666. // U.MD.D.I.openApplication("courseDesign")
  1667. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1668. } else if (e.data.tools && e.data.tools == "31") {
  1669. U.MD.D.I.openApplication("netWorkPanel")
  1670. } else if (e.data.tools && e.data.tools == "32") {
  1671. U.MD.D.I.openApplication("codeEdit")
  1672. } else if (e.data.tools && e.data.tools == "57") {
  1673. U.MD.D.I.openApplication("CocoPi")
  1674. } else if (e.data.tools && e.data.tools == "63") {
  1675. U.MD.D.I.openApplication("Wood")
  1676. } else if (e.data.tools && e.data.tools == "58") {
  1677. U.MD.D.I.openApplication("car")
  1678. } else if (e.data.tools && e.data.tools == "59") {
  1679. U.MD.D.I.openApplication("lineSearch")
  1680. } else if (e.data.tools && e.data.tools == "60") {
  1681. U.MD.D.I.openApplication("deepLearning")
  1682. } else if (e.data.tools && e.data.tools == "61") {
  1683. U.MD.D.I.openApplication("allHistory")
  1684. } else if (e.data.tools && e.data.tools == "28") {
  1685. U.MD.D.I.openApplication("translation")
  1686. } else if (e.data.tools && e.data.tools == "37") {
  1687. U.MD.D.I.openApplication("mohe")
  1688. } else if (e.data.tools && e.data.tools == "38") {
  1689. U.MD.D.I.openApplication("24game")
  1690. } else if (e.data.tools && e.data.tools == "39") {
  1691. U.MD.D.I.openApplication("GeoGebra")
  1692. } else if (e.data.tools && e.data.tools == "43") {
  1693. U.MD.D.I.openApplication("studentEvaluate")
  1694. } else if (e.data.tools && e.data.tools == "44") {
  1695. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1696. } else if (e.data.tools && e.data.tools == "46") {
  1697. U.MD.D.I.openApplication("project")
  1698. } else if (e.data.tools && e.data.tools == "1s") {
  1699. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1700. } else if (e.data.tools && e.data.tools == "3s") {
  1701. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1702. } else if (e.data.tools && e.data.tools == "6s") {
  1703. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1704. } else if (e.data.tools && e.data.tools == "1studio") {
  1705. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1706. } else if (e.data.tools && e.data.tools == "3studio") {
  1707. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1708. } else if (e.data.tools && e.data.tools == "6studio") {
  1709. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1710. } else if (e.data.tools && e.data.tools == "3y") {
  1711. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1712. } else if (e.data.tools && e.data.tools == "1y") {
  1713. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1714. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1715. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1716. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1717. U.MD.D.I.openApplication("AIAnalyse")
  1718. } else if (e.data.tools && e.data.tools == "1teacher") {
  1719. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1720. } else if (e.data.tools && e.data.tools == "3teacher") {
  1721. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1722. } else if (e.data.tools && e.data.tools == "7teacher") {
  1723. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1724. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1725. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1726. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1727. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1728. } else if (e.data.tools && e.data.tools == "1E") {
  1729. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1730. } else if (e.data.tools && e.data.tools == "3E") {
  1731. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1732. } else if (e.data.tools && e.data.tools == "57u") {
  1733. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1734. } else if (e.data.tools && e.data.tools == "57teacher") {
  1735. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1736. }
  1737. });
  1738. U.MD.D.I.selectUser = function () {
  1739. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1740. if (res.value[0].length > 0) {
  1741. US.userInfo = res.value[0][0];
  1742. $(".userName")[0].innerHTML = US.userInfo.username;
  1743. }
  1744. }, [], { "type": "GET", "withCredentials": true });
  1745. }
  1746. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1747. var _userinfo = US.userInfo, //登錄用戶信息
  1748. _userid = US.userInfo.userid, //登錄用戶id
  1749. _oid = _userinfo.organizeid,
  1750. _type = US.userInfo.type,
  1751. _org = US.userInfo.org,
  1752. _role = US.userInfo.role,
  1753. _classId = US.userInfo.classid;
  1754. if (_type == 4) {
  1755. tType = 4
  1756. }
  1757. switch (str) {
  1758. case "studyDetailNT"://無終端模式
  1759. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1760. setTimeout(() => {
  1761. U.MD.U.L.login();
  1762. }, 2000);
  1763. } else {
  1764. _formdiv = new U.UF.UI.form(
  1765. "課程詳情",
  1766. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  1767. "id": "studyDetailNT",
  1768. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1769. "onresize": function () { }
  1770. }, {
  1771. closecallback: function () { }
  1772. }, { "style": { "height": "36px" } }).form; //創建窗體
  1773. _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); } }
  1774. break;
  1775. }
  1776. case "studyDetail":
  1777. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1778. setTimeout(() => {
  1779. U.MD.U.L.login();
  1780. }, 2000);
  1781. } else {
  1782. _formdiv = new U.UF.UI.form(
  1783. "課程詳情",
  1784. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  1785. "id": "studyDetail",
  1786. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1787. "onresize": function () { }
  1788. }, {
  1789. closecallback: function () { }
  1790. }, { "style": { "height": "36px" } }).form; //創建窗體
  1791. _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); } }
  1792. break;
  1793. }
  1794. case "studyDetailS":
  1795. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1796. setTimeout(() => {
  1797. U.MD.U.L.login();
  1798. }, 2000);
  1799. } else {
  1800. _formdiv = new U.UF.UI.form(
  1801. "項目詳情",
  1802. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  1803. "id": "studyDetailS",
  1804. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1805. "onresize": function () { }
  1806. }, {
  1807. closecallback: function () { }
  1808. }, { "style": { "height": "36px" } }).form; //創建窗體
  1809. _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); } }
  1810. break;
  1811. }
  1812. case "studyDetailStudio":
  1813. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1814. setTimeout(() => {
  1815. U.MD.U.L.login();
  1816. }, 2000);
  1817. } else {
  1818. _formdiv = new U.UF.UI.form(
  1819. "工作詳情",
  1820. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  1821. "id": "studyDetailStudio",
  1822. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1823. "onresize": function () { }
  1824. }, {
  1825. closecallback: function () { }
  1826. }, { "style": { "height": "36px" } }).form; //創建窗體
  1827. _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); } }
  1828. break;
  1829. }
  1830. case "studyDetailS5":
  1831. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1832. setTimeout(() => {
  1833. U.MD.U.L.login();
  1834. }, 2000);
  1835. } else {
  1836. _formdiv = new U.UF.UI.form(
  1837. "項目詳情",
  1838. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  1839. "id": "studyDetailS",
  1840. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1841. "onresize": function () { }
  1842. }, {
  1843. closecallback: function () { }
  1844. }, { "style": { "height": "36px" } }).form; //創建窗體
  1845. _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); } }
  1846. break;
  1847. }
  1848. case "studyDetailGM":
  1849. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1850. setTimeout(() => {
  1851. U.MD.U.L.login();
  1852. }, 2000);
  1853. } else {
  1854. _formdiv = new U.UF.UI.form(
  1855. "課程詳情",
  1856. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  1857. "id": "studyDetail",
  1858. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1859. "onresize": function () { }
  1860. }, {
  1861. closecallback: function () { }
  1862. }, { "style": { "height": "36px" } }).form; //創建窗體
  1863. _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); } }
  1864. break;
  1865. }
  1866. case "hanUrl":
  1867. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1868. setTimeout(() => {
  1869. U.MD.U.L.login();
  1870. }, 2000);
  1871. } else {
  1872. _formdiv = new U.UF.UI.form(
  1873. "漢字宮",
  1874. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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" }), {
  1875. "id": "hanUrl",
  1876. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1877. "onresize": function () { }
  1878. }, {
  1879. closecallback: function () { }
  1880. }, { "style": { "height": "36px" } }).form; //創建窗體
  1881. _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); } }
  1882. break;
  1883. }
  1884. }
  1885. }
  1886. U.MD.D.I.openApplication = function (str, obj, info) {
  1887. obj = obj || {};
  1888. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  1889. _formdiv, //創建任務欄時同時彈出的窗體元素。
  1890. _userinfo = US.userInfo, //登錄用戶信息
  1891. _userid = obj.userid || US.userInfo.userid, //登錄用戶id
  1892. _oid = obj.organizeid || _userinfo.organizeid,
  1893. _type = US.userInfo.type,
  1894. _org = US.userInfo.org,
  1895. _role = US.userInfo.role,
  1896. _classId = US.userInfo.classid,
  1897. _TscreenType = 1
  1898. _screenType = 2,
  1899. _SscreenType = 3;
  1900. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1901. return;
  1902. }
  1903. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1904. switch (str) {
  1905. case "studnetProject": //好友打開
  1906. _formdiv = new U.UF.UI.form(
  1907. "我的項目",
  1908. $$("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 }), {
  1909. "id": "studnetProject",
  1910. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1911. "onresize": function () { }
  1912. }, {
  1913. closecallback: function () { }
  1914. }, { "style": { "height": "36px" } }).form; //創建窗體
  1915. _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); } }
  1916. break;
  1917. case "studentEvaluate": //好友打開
  1918. _formdiv = new U.UF.UI.form(
  1919. "我的評價",
  1920. $$("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 }), {
  1921. "id": "studentEvaluate",
  1922. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1923. "onresize": function () { }
  1924. }, {
  1925. closecallback: function () { }
  1926. }, { "style": { "height": "36px" } }).form; //創建窗體
  1927. _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); } }
  1928. break;
  1929. case "my":
  1930. _formdiv = new U.UF.UI.form(
  1931. "我的資料",
  1932. $$("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 }), {
  1933. "id": "my",
  1934. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1935. "onresize": function () { }
  1936. }, {
  1937. closecallback: function () { }
  1938. }, { "style": { "height": "36px" } }).form; //創建窗體
  1939. _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); } }
  1940. break;
  1941. case "program":
  1942. _formdiv = new U.UF.UI.form(
  1943. "編程平臺",
  1944. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1945. "id": "program",
  1946. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1947. "onresize": function () { }
  1948. }, {
  1949. closecallback: function () { }
  1950. }, { "style": { "height": "36px" } }).form; //創建窗體
  1951. _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); } }
  1952. break;
  1953. case "library":
  1954. _formdiv = new U.UF.UI.form(
  1955. "素材庫",
  1956. $$("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 }), {
  1957. "id": "library",
  1958. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1959. "onresize": function () { }
  1960. }, {
  1961. closecallback: function () { }
  1962. }, { "style": { "height": "36px" } }).form; //創建窗體
  1963. _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); } }
  1964. break;
  1965. case "whiteboard":
  1966. _formdiv = new U.UF.UI.form(
  1967. "電子白板",
  1968. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  1969. "id": "whiteboard",
  1970. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1971. "onresize": function () { }
  1972. }, {
  1973. closecallback: function () { }
  1974. }, { "style": { "height": "36px" } }).form; //創建窗體
  1975. _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); } }
  1976. break;
  1977. case "investigation":
  1978. _formdiv = new U.UF.UI.form(
  1979. "問卷調查",
  1980. $$("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 }), {
  1981. "id": "investigation",
  1982. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1983. "onresize": function () { }
  1984. }, {
  1985. closecallback: function () { }
  1986. }, { "style": { "height": "36px" } }).form; //創建窗體
  1987. _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); } }
  1988. break;
  1989. case "note":
  1990. _formdiv = new U.UF.UI.form(
  1991. "便簽分類",
  1992. $$("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 }), {
  1993. "id": "note",
  1994. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1995. "onresize": function () { }
  1996. }, {
  1997. closecallback: function () { }
  1998. }, { "style": { "height": "36px" } }).form; //創建窗體
  1999. _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); } }
  2000. break;
  2001. // case "score":
  2002. // _formdiv = new U.UF.UI.form(
  2003. // "量規評分",
  2004. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2005. // "id": "score",
  2006. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2007. // "onresize": function() {}
  2008. // }, {
  2009. // closecallback: function() {}
  2010. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2011. // _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); } }
  2012. // break;
  2013. case "mind":
  2014. _formdiv = new U.UF.UI.form(
  2015. "思維導圖",
  2016. $$("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"
  2017. "id": "mind",
  2018. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2019. "onresize": function () { }
  2020. }, {
  2021. closecallback: function () { }
  2022. }, { "style": { "height": "36px" } }).form; //創建窗體
  2023. _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); } }
  2024. break;
  2025. case "doc":
  2026. // U.MD.D.I.isRoom();
  2027. _formdiv = new U.UF.UI.form(
  2028. "協同文檔",
  2029. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2030. "id": "doc",
  2031. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2032. "onresize": function () { }
  2033. }, {
  2034. closecallback: function () { }
  2035. }, { "style": { "height": "36px" } }).form; //創建窗體
  2036. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2037. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2038. // })
  2039. _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); } }
  2040. break;
  2041. case "studentStudy":
  2042. _formdiv = new U.UF.UI.form(
  2043. "課程中心",
  2044. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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
  2045. "id": "studentStudy",
  2046. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2047. "onresize": function () { }
  2048. }, {
  2049. closecallback: function () { }
  2050. }, { "style": { "height": "36px" } }).form; //創建窗體
  2051. _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); } }
  2052. break;
  2053. case "train": //好友打開
  2054. _formdiv = new U.UF.UI.form(
  2055. "訓練平臺",
  2056. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2057. "id": "train",
  2058. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2059. "onresize": function () { }
  2060. }, {
  2061. closecallback: function () { }
  2062. }, { "style": { "height": "36px" } }).form; //創建窗體
  2063. _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); } }
  2064. break;
  2065. case "mindNetwork": //好友打開
  2066. _formdiv = new U.UF.UI.form(
  2067. "思維網格",
  2068. $$("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 }), {
  2069. "id": "mindNetwork",
  2070. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2071. "onresize": function () { }
  2072. }, {
  2073. closecallback: function () { }
  2074. }, { "style": { "height": "36px" } }).form; //創建窗體
  2075. _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); } }
  2076. break;
  2077. case "studentClassRoom": //好友打開
  2078. _formdiv = new U.UF.UI.form(
  2079. "實時課堂",
  2080. $$("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 }), {
  2081. "id": "studentClassRoom",
  2082. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2083. "onresize": function () { }
  2084. }, {
  2085. closecallback: function () { }
  2086. }, { "style": { "height": "36px" } }).form; //創建窗體
  2087. _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); } }
  2088. setTimeout(() => {
  2089. U.UF.F.windowZooming(_formdiv)
  2090. }, 0);
  2091. break;
  2092. }
  2093. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2094. switch (str) {
  2095. case "studnetProject": //好友打開
  2096. _formdiv = new U.UF.UI.form(
  2097. "我的項目",
  2098. $$("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 }), {
  2099. "id": "studnetProject",
  2100. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2101. "onresize": function () { }
  2102. }, {
  2103. closecallback: function () { }
  2104. }, { "style": { "height": "36px" } }).form; //創建窗體
  2105. _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); } }
  2106. break;
  2107. case "studentEvaluate": //好友打開
  2108. _formdiv = new U.UF.UI.form(
  2109. "我的評價",
  2110. $$("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 }), {
  2111. "id": "studentEvaluate",
  2112. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2113. "onresize": function () { }
  2114. }, {
  2115. closecallback: function () { }
  2116. }, { "style": { "height": "36px" } }).form; //創建窗體
  2117. _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); } }
  2118. break;
  2119. case "my":
  2120. _formdiv = new U.UF.UI.form(
  2121. "我的資料",
  2122. $$("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 }), {
  2123. "id": "my",
  2124. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2125. "onresize": function () { }
  2126. }, {
  2127. closecallback: function () { }
  2128. }, { "style": { "height": "36px" } }).form; //創建窗體
  2129. _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); } }
  2130. break;
  2131. case "program":
  2132. _formdiv = new U.UF.UI.form(
  2133. "編程平臺",
  2134. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2135. "id": "program",
  2136. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2137. "onresize": function () { }
  2138. }, {
  2139. closecallback: function () { }
  2140. }, { "style": { "height": "36px" } }).form; //創建窗體
  2141. _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); } }
  2142. break;
  2143. case "library":
  2144. _formdiv = new U.UF.UI.form(
  2145. "素材庫",
  2146. $$("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 }), {
  2147. "id": "library",
  2148. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2149. "onresize": function () { }
  2150. }, {
  2151. closecallback: function () { }
  2152. }, { "style": { "height": "36px" } }).form; //創建窗體
  2153. _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); } }
  2154. break;
  2155. case "whiteboard":
  2156. _formdiv = new U.UF.UI.form(
  2157. "電子白板",
  2158. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2159. "id": "whiteboard",
  2160. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2161. "onresize": function () { }
  2162. }, {
  2163. closecallback: function () { }
  2164. }, { "style": { "height": "36px" } }).form; //創建窗體
  2165. _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); } }
  2166. break;
  2167. case "investigation":
  2168. _formdiv = new U.UF.UI.form(
  2169. "問卷調查",
  2170. $$("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 }), {
  2171. "id": "investigation",
  2172. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2173. "onresize": function () { }
  2174. }, {
  2175. closecallback: function () { }
  2176. }, { "style": { "height": "36px" } }).form; //創建窗體
  2177. _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); } }
  2178. break;
  2179. case "note":
  2180. _formdiv = new U.UF.UI.form(
  2181. "便簽分類",
  2182. $$("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 }), {
  2183. "id": "note",
  2184. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2185. "onresize": function () { }
  2186. }, {
  2187. closecallback: function () { }
  2188. }, { "style": { "height": "36px" } }).form; //創建窗體
  2189. _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); } }
  2190. break;
  2191. // case "score":
  2192. // _formdiv = new U.UF.UI.form(
  2193. // "量規評分",
  2194. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2195. // "id": "score",
  2196. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2197. // "onresize": function() {}
  2198. // }, {
  2199. // closecallback: function() {}
  2200. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2201. // _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); } }
  2202. // break;
  2203. case "mind":
  2204. _formdiv = new U.UF.UI.form(
  2205. "思維導圖",
  2206. $$("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"
  2207. "id": "mind",
  2208. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2209. "onresize": function () { }
  2210. }, {
  2211. closecallback: function () { }
  2212. }, { "style": { "height": "36px" } }).form; //創建窗體
  2213. _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); } }
  2214. break;
  2215. case "doc":
  2216. // U.MD.D.I.isRoom();
  2217. _formdiv = new U.UF.UI.form(
  2218. "協同文檔",
  2219. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2220. "id": "doc",
  2221. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2222. "onresize": function () { }
  2223. }, {
  2224. closecallback: function () { }
  2225. }, { "style": { "height": "36px" } }).form; //創建窗體
  2226. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2227. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2228. })
  2229. _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); } }
  2230. break;
  2231. case "train": //好友打開
  2232. _formdiv = new U.UF.UI.form(
  2233. "訓練平臺",
  2234. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2235. "id": "train",
  2236. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2237. "onresize": function () { }
  2238. }, {
  2239. closecallback: function () { }
  2240. }, { "style": { "height": "36px" } }).form; //創建窗體
  2241. _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); } }
  2242. break;
  2243. case "studentStudy":
  2244. _formdiv = new U.UF.UI.form(
  2245. "課程中心",
  2246. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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
  2247. "id": "studentStudy",
  2248. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2249. "onresize": function () { }
  2250. }, {
  2251. closecallback: function () { }
  2252. }, { "style": { "height": "36px" } }).form; //創建窗體
  2253. _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); } }
  2254. break;
  2255. case "mindNetwork": //好友打開
  2256. _formdiv = new U.UF.UI.form(
  2257. "思維網格",
  2258. $$("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 }), {
  2259. "id": "mindNetwork",
  2260. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2261. "onresize": function () { }
  2262. }, {
  2263. closecallback: function () { }
  2264. }, { "style": { "height": "36px" } }).form; //創建窗體
  2265. _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); } }
  2266. break;
  2267. case "studentClassRoom": //好友打開
  2268. _formdiv = new U.UF.UI.form(
  2269. "實時課堂",
  2270. $$("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 }), {
  2271. "id": "studentClassRoom",
  2272. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2273. "onresize": function () { }
  2274. }, {
  2275. closecallback: function () { }
  2276. }, { "style": { "height": "36px" } }).form; //創建窗體
  2277. _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); } }
  2278. setTimeout(() => {
  2279. U.UF.F.windowZooming(_formdiv)
  2280. }, 0);
  2281. break;
  2282. }
  2283. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2284. //選擇應用處理
  2285. switch (str) {
  2286. case "project": //好友打開
  2287. _formdiv = new U.UF.UI.form(
  2288. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目':"課程管理",
  2289. $$("iframe", { "allow": "camera *; microphone *;display-capture;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 }), {
  2290. "id": "project",
  2291. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2292. "onresize": function () { }
  2293. }, {
  2294. closecallback: function () { }
  2295. }, { "style": { "height": "36px" } }).form; //創建窗體
  2296. _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); } }
  2297. break;
  2298. case "student":
  2299. _formdiv = new U.UF.UI.form(
  2300. "學生管理",
  2301. $$("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 }), {
  2302. "id": "student",
  2303. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2304. "onresize": function () { }
  2305. }, {
  2306. closecallback: function () { }
  2307. }, { "style": { "height": "36px" } }).form; //創建窗體
  2308. _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); } }
  2309. break;
  2310. case "evaluate":
  2311. _formdiv = new U.UF.UI.form(
  2312. "學生評價",
  2313. $$("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 }), {
  2314. "id": "evaluate",
  2315. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2316. "onresize": function () { }
  2317. }, {
  2318. closecallback: function () { }
  2319. }, { "style": { "height": "36px" } }).form; //創建窗體
  2320. _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); } }
  2321. break;
  2322. case "sys":
  2323. _formdiv = new U.UF.UI.form(
  2324. "目標管理",
  2325. $$("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 }), {
  2326. "id": "sys",
  2327. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2328. "onresize": function () { }
  2329. }, {
  2330. closecallback: function () { }
  2331. }, { "style": { "height": "36px" } }).form; //創建窗體
  2332. _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); } }
  2333. break;
  2334. case "courseDesign":
  2335. _formdiv = new U.UF.UI.form(
  2336. "項目設計",
  2337. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2338. "id": "courseDesign",
  2339. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2340. "onresize": function () { }
  2341. }, {
  2342. closecallback: function () { }
  2343. }, { "style": { "height": "36px" } }).form; //創建窗體
  2344. _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); } }
  2345. break;
  2346. case "program":
  2347. _formdiv = new U.UF.UI.form(
  2348. "編程平臺",
  2349. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2350. "id": "program",
  2351. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2352. "onresize": function () { }
  2353. }, {
  2354. closecallback: function () { }
  2355. }, { "style": { "height": "36px" } }).form; //創建窗體
  2356. _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); } }
  2357. break;
  2358. case "class":
  2359. _formdiv = new U.UF.UI.form(
  2360. "班級管理",
  2361. $$("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 }), {
  2362. "id": "class",
  2363. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2364. "onresize": function () { }
  2365. }, {
  2366. closecallback: function () { }
  2367. }, { "style": { "height": "36px" } }).form; //創建窗體
  2368. _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); } }
  2369. break;
  2370. case "my":
  2371. _formdiv = new U.UF.UI.form(
  2372. "我的資料",
  2373. $$("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 }), {
  2374. "id": "my",
  2375. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2376. "onresize": function () { }
  2377. }, {
  2378. closecallback: function () { }
  2379. }, { "style": { "height": "36px" } }).form; //創建窗體
  2380. _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); } }
  2381. break;
  2382. case "notice":
  2383. _formdiv = new U.UF.UI.form(
  2384. "通知公告",
  2385. $$("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 }), {
  2386. "id": "notice",
  2387. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2388. "onresize": function () { }
  2389. }, {
  2390. closecallback: function () { }
  2391. }, { "style": { "height": "36px" } }).form; //創建窗體
  2392. _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); } }
  2393. break;
  2394. case "library":
  2395. _formdiv = new U.UF.UI.form(
  2396. "素材庫",
  2397. $$("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 }), {
  2398. "id": "library",
  2399. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2400. "onresize": function () { }
  2401. }, {
  2402. closecallback: function () { }
  2403. }, { "style": { "height": "36px" } }).form; //創建窗體
  2404. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材庫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2405. break;
  2406. case "whiteboard":
  2407. _formdiv = new U.UF.UI.form(
  2408. "電子白板",
  2409. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2410. "id": "whiteboard",
  2411. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2412. "onresize": function () { }
  2413. }, {
  2414. closecallback: function () { }
  2415. }, { "style": { "height": "36px" } }).form; //創建窗體
  2416. _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); } }
  2417. break;
  2418. case "investigation":
  2419. _formdiv = new U.UF.UI.form(
  2420. "問卷調查",
  2421. $$("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 }), {
  2422. "id": "investigation",
  2423. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2424. "onresize": function () { }
  2425. }, {
  2426. closecallback: function () { }
  2427. }, { "style": { "height": "36px" } }).form; //創建窗體
  2428. _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); } }
  2429. break;
  2430. case "note":
  2431. _formdiv = new U.UF.UI.form(
  2432. "便簽分類",
  2433. $$("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 }), {
  2434. "id": "note",
  2435. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2436. "onresize": function () { }
  2437. }, {
  2438. closecallback: function () { }
  2439. }, { "style": { "height": "36px" } }).form; //創建窗體
  2440. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便簽分類", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2441. break;
  2442. // case "score":
  2443. // _formdiv = new U.UF.UI.form(
  2444. // "量規評分",
  2445. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2446. // "id": "score",
  2447. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2448. // "onresize": function() {}
  2449. // }, {
  2450. // closecallback: function() {}
  2451. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2452. // _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); } }
  2453. // break;
  2454. case "mind":
  2455. _formdiv = new U.UF.UI.form(
  2456. "思維導圖",
  2457. $$("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"
  2458. "id": "mind",
  2459. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2460. "onresize": function () { }
  2461. }, {
  2462. closecallback: function () { }
  2463. }, { "style": { "height": "36px" } }).form; //創建窗體
  2464. _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); } }
  2465. break;
  2466. case "doc":
  2467. // U.MD.D.I.isRoom();
  2468. _formdiv = new U.UF.UI.form(
  2469. "協同文檔",
  2470. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2471. "id": "doc",
  2472. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2473. "onresize": function () { }
  2474. }, {
  2475. closecallback: function () { }
  2476. }, { "style": { "height": "36px" } }).form; //創建窗體
  2477. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2478. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2479. })
  2480. _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); } }
  2481. break;
  2482. case "study":
  2483. _formdiv = new U.UF.UI.form(
  2484. "課程中心",
  2485. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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
  2486. "id": "study",
  2487. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2488. "onresize": function () { }
  2489. }, {
  2490. closecallback: function () { }
  2491. }, { "style": { "height": "36px" } }).form; //創建窗體
  2492. _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); } }
  2493. break;
  2494. case "mindNetwork": //好友打開
  2495. _formdiv = new U.UF.UI.form(
  2496. "思維網格",
  2497. $$("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 }), {
  2498. "id": "mindNetwork",
  2499. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2500. "onresize": function () { }
  2501. }, {
  2502. closecallback: function () { }
  2503. }, { "style": { "height": "36px" } }).form; //創建窗體
  2504. _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); } }
  2505. break;
  2506. case "train": //好友打開
  2507. _formdiv = new U.UF.UI.form(
  2508. "訓練平臺",
  2509. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2510. "id": "mindNetwork",
  2511. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2512. "onresize": function () { }
  2513. }, {
  2514. closecallback: function () { }
  2515. }, { "style": { "height": "36px" } }).form; //創建窗體
  2516. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "訓練平臺", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2517. break;
  2518. case "teacherClassRoom": //好友打開
  2519. _formdiv = new U.UF.UI.form(
  2520. "實時課堂",
  2521. $$("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 }), {
  2522. "id": "teacherClassRoom",
  2523. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2524. "onresize": function () { }
  2525. }, {
  2526. closecallback: function () { }
  2527. }, { "style": { "height": "36px" } }).form; //創建窗體
  2528. _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); } }
  2529. setTimeout(() => {
  2530. U.UF.F.windowZooming(_formdiv)
  2531. }, 0);
  2532. break;
  2533. }
  2534. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2535. switch (str) {
  2536. case "project": //好友打開
  2537. _formdiv = new U.UF.UI.form(
  2538. "課程管理",
  2539. $$("iframe", { "allow": "camera *; microphone *;display-capture;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 }), {
  2540. "id": "project",
  2541. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2542. "onresize": function () { }
  2543. }, {
  2544. closecallback: function () { }
  2545. }, { "style": { "height": "36px" } }).form; //創建窗體
  2546. _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); } }
  2547. break;
  2548. case "evaluate":
  2549. _formdiv = new U.UF.UI.form(
  2550. "學生評價",
  2551. $$("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 }), {
  2552. "id": "evaluate",
  2553. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2554. "onresize": function () { }
  2555. }, {
  2556. closecallback: function () { }
  2557. }, { "style": { "height": "36px" } }).form; //創建窗體
  2558. _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); } }
  2559. break;
  2560. case "notice":
  2561. _formdiv = new U.UF.UI.form(
  2562. "通知公告",
  2563. $$("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 }), {
  2564. "id": "notice",
  2565. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2566. "onresize": function () { }
  2567. }, {
  2568. closecallback: function () { }
  2569. }, { "style": { "height": "36px" } }).form; //創建窗體
  2570. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2571. break;
  2572. case "stuLibrary":
  2573. _formdiv = new U.UF.UI.form(
  2574. "學習資料",
  2575. $$("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 }), {
  2576. "id": "stuLibrary",
  2577. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2578. "onresize": function () { }
  2579. }, {
  2580. closecallback: function () { }
  2581. }, { "style": { "height": "36px" } }).form; //創建窗體
  2582. _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); } }
  2583. break;
  2584. case "program":
  2585. _formdiv = new U.UF.UI.form(
  2586. "編程平臺",
  2587. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2588. "id": "program",
  2589. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2590. "onresize": function () { }
  2591. }, {
  2592. closecallback: function () { }
  2593. }, { "style": { "height": "36px" } }).form; //創建窗體
  2594. _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); } }
  2595. break;
  2596. case "whiteboard":
  2597. _formdiv = new U.UF.UI.form(
  2598. "電子白板",
  2599. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2600. "id": "whiteboard",
  2601. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2602. "onresize": function () { }
  2603. }, {
  2604. closecallback: function () { }
  2605. }, { "style": { "height": "36px" } }).form; //創建窗體
  2606. _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); } }
  2607. break;
  2608. case "investigation":
  2609. _formdiv = new U.UF.UI.form(
  2610. "問卷調查",
  2611. $$("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 }), {
  2612. "id": "investigation",
  2613. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2614. "onresize": function () { }
  2615. }, {
  2616. closecallback: function () { }
  2617. }, { "style": { "height": "36px" } }).form; //創建窗體
  2618. _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); } }
  2619. break;
  2620. case "mind":
  2621. _formdiv = new U.UF.UI.form(
  2622. "思維導圖",
  2623. $$("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"
  2624. "id": "mind",
  2625. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2626. "onresize": function () { }
  2627. }, {
  2628. closecallback: function () { }
  2629. }, { "style": { "height": "36px" } }).form; //創建窗體
  2630. _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); } }
  2631. break;
  2632. case "doc":
  2633. // U.MD.D.I.isRoom();
  2634. _formdiv = new U.UF.UI.form(
  2635. "協同文檔",
  2636. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2637. "id": "doc",
  2638. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2639. "onresize": function () { }
  2640. }, {
  2641. closecallback: function () { }
  2642. }, { "style": { "height": "36px" } }).form; //創建窗體
  2643. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2644. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2645. })
  2646. _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); } }
  2647. break;
  2648. case "study":
  2649. _formdiv = new U.UF.UI.form(
  2650. "課程中心",
  2651. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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
  2652. "id": "study",
  2653. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2654. "onresize": function () { }
  2655. }, {
  2656. closecallback: function () { }
  2657. }, { "style": { "height": "36px" } }).form; //創建窗體
  2658. _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); } }
  2659. break;
  2660. case "mindNetwork": //好友打開
  2661. _formdiv = new U.UF.UI.form(
  2662. "思維網格",
  2663. $$("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 }), {
  2664. "id": "mindNetwork",
  2665. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2666. "onresize": function () { }
  2667. }, {
  2668. closecallback: function () { }
  2669. }, { "style": { "height": "36px" } }).form; //創建窗體
  2670. _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); } }
  2671. break;
  2672. case "train": //好友打開
  2673. _formdiv = new U.UF.UI.form(
  2674. "訓練平臺",
  2675. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2676. "id": "train",
  2677. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2678. "onresize": function () { }
  2679. }, {
  2680. closecallback: function () { }
  2681. }, { "style": { "height": "36px" } }).form; //創建窗體
  2682. _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); } }
  2683. break;
  2684. case "sys":
  2685. _formdiv = new U.UF.UI.form(
  2686. "目標管理",
  2687. $$("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 }), {
  2688. "id": "sys",
  2689. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2690. "onresize": function () { }
  2691. }, {
  2692. closecallback: function () { }
  2693. }, { "style": { "height": "36px" } }).form; //創建窗體
  2694. _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); } }
  2695. break;
  2696. case "courseDesign":
  2697. _formdiv = new U.UF.UI.form(
  2698. "項目設計",
  2699. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2700. "id": "courseDesign",
  2701. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2702. "onresize": function () { }
  2703. }, {
  2704. closecallback: function () { }
  2705. }, { "style": { "height": "36px" } }).form; //創建窗體
  2706. _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); } }
  2707. break;
  2708. }
  2709. } else if (!_type) {
  2710. switch (str) {
  2711. case "my":
  2712. _formdiv = new U.UF.UI.form(
  2713. "我的資料",
  2714. $$("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 }), {
  2715. "id": "my",
  2716. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2717. "onresize": function () { }
  2718. }, {
  2719. closecallback: function () { }
  2720. }, { "style": { "height": "36px" } }).form; //創建窗體
  2721. _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); } }
  2722. break;
  2723. }
  2724. }
  2725. switch (str) {
  2726. // AIprogram2 AI體驗 aihub.cocorobo.cn
  2727. // Pythonprogram Python編程 python-blockly.cocorobo.cn
  2728. // AIprogram AI編程 ai-blockly.cocorobo.cn
  2729. case "AIprogram2": //AI體驗
  2730. _formdiv = new U.UF.UI.form(
  2731. "AI體驗",
  2732. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2733. "id": "AIprogram2",
  2734. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2735. "onresize": function () { }
  2736. }, {
  2737. closecallback: function () { }
  2738. }, { "style": { "height": "36px" } }).form; //創建窗體
  2739. _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); } }
  2740. break;
  2741. case "Pythonprogram": //python編程
  2742. _formdiv = new U.UF.UI.form(
  2743. "Python編程",
  2744. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2745. "id": "Pythonprogram",
  2746. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2747. "onresize": function () { }
  2748. }, {
  2749. closecallback: function () { }
  2750. }, { "style": { "height": "36px" } }).form; //創建窗體
  2751. _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); } }
  2752. break;
  2753. case "AIprogram": //ai編程
  2754. _formdiv = new U.UF.UI.form(
  2755. "AI編程平臺",
  2756. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2757. "id": "AIprogram",
  2758. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2759. "onresize": function () { }
  2760. }, {
  2761. closecallback: function () { }
  2762. }, { "style": { "height": "36px" } }).form; //創建窗體
  2763. _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); } }
  2764. break;
  2765. case "CocoPi": //CocoPi
  2766. _formdiv = new U.UF.UI.form(
  2767. "CocoPi",
  2768. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pi.cocorobo.hk" }), {
  2769. "id": "CocoPi",
  2770. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2771. "onresize": function () { }
  2772. }, {
  2773. closecallback: function () { }
  2774. }, { "style": { "height": "36px" } }).form; //創建窗體
  2775. _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); } }
  2776. break;
  2777. case "Wood": //Wood
  2778. _formdiv = new U.UF.UI.form(
  2779. "海龜編程",
  2780. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://wood.codemao.cn/" }), {
  2781. "id": "Wood",
  2782. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2783. "onresize": function () { }
  2784. }, {
  2785. closecallback: function () { }
  2786. }, { "style": { "height": "36px" } }).form; //創建窗體
  2787. _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); } }
  2788. break;
  2789. case "car": //模擬駕駛
  2790. _formdiv = new U.UF.UI.form(
  2791. "模擬駕駛",
  2792. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://slowroads.io/" }), {
  2793. "id": "car",
  2794. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2795. "onresize": function () { }
  2796. }, {
  2797. closecallback: function () { }
  2798. }, { "style": { "height": "36px" } }).form; //創建窗體
  2799. _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); } }
  2800. break;
  2801. case "lineSearch": //路徑搜索
  2802. _formdiv = new U.UF.UI.form(
  2803. "路徑搜索",
  2804. $$("iframe", { "allow": "camera *; microphone *;display-capture;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/" }), {
  2805. "id": "lineSearch",
  2806. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2807. "onresize": function () { }
  2808. }, {
  2809. closecallback: function () { }
  2810. }, { "style": { "height": "36px" } }).form; //創建窗體
  2811. _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); } }
  2812. break;
  2813. case "deepLearning": //深度學習
  2814. _formdiv = new U.UF.UI.form(
  2815. "深度學習",
  2816. $$("iframe", { "allow": "camera *; microphone *;display-capture;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/#" }), {
  2817. "id": "deepLearning",
  2818. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2819. "onresize": function () { }
  2820. }, {
  2821. closecallback: function () { }
  2822. }, { "style": { "height": "36px" } }).form; //創建窗體
  2823. _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); } }
  2824. break;
  2825. case "allHistory": //深度學習
  2826. _formdiv = new U.UF.UI.form(
  2827. "全歷史",
  2828. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.allhistory.com/" }), {
  2829. "id": "allHistory",
  2830. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2831. "onresize": function () { }
  2832. }, {
  2833. closecallback: function () { }
  2834. }, { "style": { "height": "36px" } }).form; //創建窗體
  2835. _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); } }
  2836. break;
  2837. case "chatPDF": //ai編程
  2838. _formdiv = new U.UF.UI.form(
  2839. "chatPDF",
  2840. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2841. "id": "chatPDF",
  2842. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2843. "onresize": function () { }
  2844. }, {
  2845. closecallback: function () { }
  2846. }, { "style": { "height": "36px" } }).form; //創建窗體
  2847. _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); } }
  2848. break;
  2849. case "resources": //國家教育
  2850. _formdiv = new U.UF.UI.form(
  2851. "國家教育",
  2852. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2853. "id": "resources",
  2854. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2855. "onresize": function () { }
  2856. }, {
  2857. closecallback: function () { }
  2858. }, { "style": { "height": "36px" } }).form; //創建窗體
  2859. _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); } }
  2860. break;
  2861. case "codeEdit": //源碼編輯
  2862. _formdiv = new U.UF.UI.form(
  2863. "源碼編輯",
  2864. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2865. "id": "codeEdit",
  2866. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2867. "onresize": function () { }
  2868. }, {
  2869. closecallback: function () { }
  2870. }, { "style": { "height": "36px" } }).form; //創建窗體
  2871. _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); } }
  2872. break; //
  2873. case "MindMap": //MindMap
  2874. _formdiv = new U.UF.UI.form(
  2875. "MindMap",
  2876. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.hk/mind/" }), {
  2877. "id": "MindMap",
  2878. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2879. "onresize": function () { }
  2880. }, {
  2881. closecallback: function () { }
  2882. }, { "style": { "height": "36px" } }).form; //創建窗體
  2883. _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); } }
  2884. break;
  2885. case "netWorkPanel": //netWorkPanel
  2886. _formdiv = new U.UF.UI.form(
  2887. "netWorkPanel",
  2888. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2889. "id": "netWorkPanel",
  2890. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2891. "onresize": function () { }
  2892. }, {
  2893. closecallback: function () { }
  2894. }, { "style": { "height": "36px" } }).form; //創建窗體
  2895. _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); } }
  2896. break;
  2897. case "GeoGebra": //GeoGebra
  2898. _formdiv = new U.UF.UI.form(
  2899. "GeoGebra",
  2900. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  2901. "id": "GeoGebra",
  2902. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2903. "onresize": function () { }
  2904. }, {
  2905. closecallback: function () { }
  2906. }, { "style": { "height": "36px" } }).form; //創建窗體
  2907. _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); } }
  2908. break;
  2909. case "translation": //翻譯
  2910. _formdiv = new U.UF.UI.form(
  2911. "翻譯",
  2912. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2913. "id": "translation",
  2914. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2915. "onresize": function () { }
  2916. }, {
  2917. closecallback: function () { }
  2918. }, { "style": { "height": "36px" } }).form; //創建窗體
  2919. _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); } }
  2920. break;
  2921. case "mohe": //魔盒
  2922. _formdiv = new U.UF.UI.form(
  2923. "魔盒識字",
  2924. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2925. "id": "mohe",
  2926. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2927. "onresize": function () { }
  2928. }, {
  2929. closecallback: function () { }
  2930. }, { "style": { "height": "36px" } }).form; //創建窗體
  2931. _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); } }
  2932. break;
  2933. case "24game": //24點
  2934. _formdiv = new U.UF.UI.form(
  2935. "24點",
  2936. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2937. "id": "24game",
  2938. "style": { "width": "375px", "height": "667px", "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/24game.png)" }, "name": "24點", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2944. break;
  2945. case "case":
  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/#/CaseDesign?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2949. "id": "case",
  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/case.png)" }, "name": "課程進展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2956. break;
  2957. case "snf":
  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": "//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" }), {
  2961. "id": "snf",
  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/snf.png)" }, "name": "賽諾梵", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2968. break;
  2969. case "hanFamily":
  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": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2973. "id": "hanFamily",
  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/hanFamily.png)" }, "name": "漢字家族", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2980. break;
  2981. case "hanClassics":
  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://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2985. "id": "hanClassics",
  2986. "style": { "width": "90%", "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/hanClassics.png)" }, "name": "國學經典", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2992. break;
  2993. case "hanTraining":
  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://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2997. "id": "hanTraining",
  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/hanTraining.png)" }, "name": "筆畫訓練", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3004. break;
  3005. case "hanClass":
  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": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3009. "id": "hanClass",
  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/hanClass.png)" }, "name": "書法課堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3016. break;
  3017. case "han":
  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": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3021. "id": "han",
  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/han.png)" }, "name": "漢字宮", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3028. break;
  3029. case "projectGM": //課程管理
  3030. _formdiv = new U.UF.UI.form(
  3031. "課程管理",
  3032. $$("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 }), {
  3033. "id": "projectGM",
  3034. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3035. "onresize": function () { }
  3036. }, {
  3037. closecallback: function () { }
  3038. }, { "style": { "height": "36px" } }).form; //創建窗體
  3039. _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); } }
  3040. break;
  3041. case "studyGM"://課程中心
  3042. _formdiv = new U.UF.UI.form(
  3043. "課程中心",
  3044. $$("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
  3045. "id": "study",
  3046. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3047. "onresize": function () { }
  3048. }, {
  3049. closecallback: function () { }
  3050. }, { "style": { "height": "36px" } }).form; //創建窗體
  3051. _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); } }
  3052. break;
  3053. // studentGM
  3054. case "studentGM"://學生管理
  3055. _formdiv = new U.UF.UI.form(
  3056. "學生管理",
  3057. $$("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 }), {
  3058. "id": "studentGM",
  3059. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3060. "onresize": function () { }
  3061. }, {
  3062. closecallback: function () { }
  3063. }, { "style": { "height": "36px" } }).form; //創建窗體
  3064. _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); } }
  3065. break;
  3066. case "evaluateGM"://學生評價
  3067. _formdiv = new U.UF.UI.form(
  3068. "學生評價",
  3069. $$("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 }), {
  3070. "id": "evaluateGM",
  3071. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3072. "onresize": function () { }
  3073. }, {
  3074. closecallback: function () { }
  3075. }, { "style": { "height": "36px" } }).form; //創建窗體
  3076. _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); } }
  3077. break;
  3078. // classGM
  3079. case "classGM"://班級管理
  3080. _formdiv = new U.UF.UI.form(
  3081. "班級管理",
  3082. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/classGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3083. "id": "classGM",
  3084. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3085. "onresize": function () { }
  3086. }, {
  3087. closecallback: function () { }
  3088. }, { "style": { "height": "36px" } }).form; //創建窗體
  3089. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/class.png)" }, "name": "班級管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3090. break;
  3091. // dataGM
  3092. case "dataGM":
  3093. _formdiv = new U.UF.UI.form(
  3094. "我的資料",
  3095. $$("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 }), {
  3096. "id": "dataGM",
  3097. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3098. "onresize": function () { }
  3099. }, {
  3100. closecallback: function () { }
  3101. }, { "style": { "height": "36px" } }).form; //創建窗體
  3102. _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); } }
  3103. break;
  3104. // caseGM
  3105. case "caseGM"://課程進展
  3106. _formdiv = new U.UF.UI.form(
  3107. "課程進展",
  3108. $$("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 }), {
  3109. "id": "caseGM",
  3110. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3111. "onresize": function () { }
  3112. }, {
  3113. closecallback: function () { }
  3114. }, { "style": { "height": "36px" } }).form; //創建窗體
  3115. _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); } }
  3116. break;
  3117. // meterialGM
  3118. case "meterialGM"://素材庫
  3119. _formdiv = new U.UF.UI.form(
  3120. "素材庫",
  3121. $$("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 }), {
  3122. "id": "meterialGM",
  3123. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3124. "onresize": function () { }
  3125. }, {
  3126. closecallback: function () { }
  3127. }, { "style": { "height": "36px" } }).form; //創建窗體
  3128. _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); } }
  3129. break;
  3130. // evaluateSGM
  3131. case "evaluateSGM": //我的評價
  3132. _formdiv = new U.UF.UI.form(
  3133. "我的評價",
  3134. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3135. "id": "evaluateSGM",
  3136. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3137. "onresize": function () { }
  3138. }, {
  3139. closecallback: function () { }
  3140. }, { "style": { "height": "36px" } }).form; //創建窗體
  3141. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/evaluate.png)" }, "name": "我的評價", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3142. break;
  3143. case "jupyter": //jupyter
  3144. _formdiv = new U.UF.UI.form(
  3145. "jupyter",
  3146. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3147. "id": "jupyter",
  3148. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3149. "onresize": function () { }
  3150. }, {
  3151. closecallback: function () { }
  3152. }, { "style": { "height": "36px" } }).form; //創建窗體
  3153. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/jupyter.png)" }, "name": "jupyter", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3154. break;
  3155. case "number": //數字實驗室
  3156. _formdiv = new U.UF.UI.form(
  3157. "數字實驗室",
  3158. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3159. "id": "number",
  3160. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3161. "onresize": function () { }
  3162. }, {
  3163. closecallback: function () { }
  3164. }, { "style": { "height": "36px" } }).form; //創建窗體
  3165. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/number.png)" }, "name": "數字實驗室", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3166. break;
  3167. case "studentCourse": //項目管理 學生
  3168. _formdiv = new U.UF.UI.form(
  3169. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  3170. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  3171. "id": "studentCourse",
  3172. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3173. "onresize": function () { }
  3174. }, {
  3175. closecallback: function () { }
  3176. }, { "style": { "height": "36px" } }).form; //創建窗體
  3177. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "項目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3178. break;
  3179. case "studentCourseS": //項目管理 老師
  3180. _formdiv = new U.UF.UI.form(
  3181. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  3182. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  3183. "id": "studentCourseS",
  3184. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3185. "onresize": function () { }
  3186. }, {
  3187. closecallback: function () { }
  3188. }, { "style": { "height": "36px" } }).form; //創建窗體
  3189. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "項目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3190. break;
  3191. case "studentIndex": //項目中心
  3192. _formdiv = new U.UF.UI.form(
  3193. "項目中心",
  3194. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  3195. "id": "studentIndex",
  3196. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3197. "onresize": function () { }
  3198. }, {
  3199. closecallback: function () { }
  3200. }, { "style": { "height": "36px" } }).form; //創建窗體
  3201. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentIndex.png)" }, "name": "項目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3202. break;
  3203. case "CaseDesignS":
  3204. _formdiv = new U.UF.UI.form(
  3205. "項目進展",
  3206. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesignS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3207. "id": "case",
  3208. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3209. "onresize": function () { }
  3210. }, {
  3211. closecallback: function () { }
  3212. }, { "style": { "height": "36px" } }).form; //創建窗體
  3213. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/CaseDesignS.png)" }, "name": "項目進展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3214. break;
  3215. case "tcStudent": //騰訊學生管理
  3216. _formdiv = new U.UF.UI.form(
  3217. "學生管理",
  3218. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcStudent?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3219. "id": "tcStudent",
  3220. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3221. "onresize": function () { }
  3222. }, {
  3223. closecallback: function () { }
  3224. }, { "style": { "height": "36px" } }).form; //創建窗體
  3225. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "學生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3226. break;
  3227. case "tcSchool": //騰訊學校管理
  3228. _formdiv = new U.UF.UI.form(
  3229. "學校管理",
  3230. $$("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 }), {
  3231. "id": "tcSchool",
  3232. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3233. "onresize": function () { }
  3234. }, {
  3235. closecallback: function () { }
  3236. }, { "style": { "height": "36px" } }).form; //創建窗體
  3237. _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); } }
  3238. break;
  3239. case "tcTeacher": //騰訊學校管理
  3240. _formdiv = new U.UF.UI.form(
  3241. "教師管理",
  3242. $$("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 }), {
  3243. "id": "tcTeacher",
  3244. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3245. "onresize": function () { }
  3246. }, {
  3247. closecallback: function () { }
  3248. }, { "style": { "height": "36px" } }).form; //創建窗體
  3249. _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); } }
  3250. break;
  3251. case "tcData": //騰訊我的資料
  3252. _formdiv = new U.UF.UI.form(
  3253. "我的資料",
  3254. $$("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 }), {
  3255. "id": "tcData",
  3256. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3257. "onresize": function () { }
  3258. }, {
  3259. closecallback: function () { }
  3260. }, { "style": { "height": "36px" } }).form; //創建窗體
  3261. _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); } }
  3262. break;
  3263. case "tcNotice": //騰訊消息通知
  3264. _formdiv = new U.UF.UI.form(
  3265. "消息通知",
  3266. $$("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 }), {
  3267. "id": "tcNotice",
  3268. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3269. "onresize": function () { }
  3270. }, {
  3271. closecallback: function () { }
  3272. }, { "style": { "height": "36px" } }).form; //創建窗體
  3273. _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); } }
  3274. break;
  3275. case "myReport": //好友打開
  3276. _formdiv = new U.UF.UI.form(
  3277. "我的評價",
  3278. $$("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 }), {
  3279. "id": "myReport",
  3280. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3281. "onresize": function () { }
  3282. }, {
  3283. closecallback: function () { }
  3284. }, { "style": { "height": "36px" } }).form; //創建窗體
  3285. _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); } }
  3286. break;
  3287. case "learnAna": //好友打開
  3288. _formdiv = new U.UF.UI.form(
  3289. "學習分析",
  3290. $$("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 }), {
  3291. "id": "learnAna",
  3292. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3293. "onresize": function () { }
  3294. }, {
  3295. closecallback: function () { }
  3296. }, { "style": { "height": "36px" } }).form; //創建窗體
  3297. _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); } }
  3298. break;
  3299. case "AIChat": //AI共創
  3300. _formdiv = new U.UF.UI.form(
  3301. "AI共創",
  3302. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/aichat/" }), {
  3303. "id": "AIChat",
  3304. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3305. "onresize": function () { }
  3306. }, {
  3307. istop: true,
  3308. closecallback: function () { $("#aichat_icon").remove(); },
  3309. narrowcallback: function () {
  3310. if (!$("#aichat_icon")[0]) {
  3311. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3312. }
  3313. },
  3314. }, { "style": { "height": "36px" } }).form; //創建窗體
  3315. _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); } }
  3316. break;
  3317. case "AIAnalyse": //AI共創
  3318. _formdiv = new U.UF.UI.form(
  3319. "AI分析",
  3320. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3321. "id": "AIAnalyse",
  3322. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3323. "onresize": function () { }
  3324. }, {
  3325. closecallback: function () { }
  3326. }, { "style": { "height": "36px" } }).form; //創建窗體
  3327. _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); } }
  3328. break;
  3329. case "studioCourse": //AI共創
  3330. _formdiv = new U.UF.UI.form(
  3331. "工作管理",
  3332. $$("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 }), {
  3333. "id": "studioCourse",
  3334. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3335. "onresize": function () { }
  3336. }, {
  3337. closecallback: function () { }
  3338. }, { "style": { "height": "36px" } }).form; //創建窗體
  3339. _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); } }
  3340. break;
  3341. case "studioIndex": //AI共創
  3342. _formdiv = new U.UF.UI.form(
  3343. "工作中心",
  3344. $$("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 }), {
  3345. "id": "studioIndex",
  3346. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3347. "onresize": function () { }
  3348. }, {
  3349. closecallback: function () { }
  3350. }, { "style": { "height": "36px" } }).form; //創建窗體
  3351. _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); } }
  3352. break;
  3353. case "source":
  3354. _formdiv = new U.UF.UI.form(
  3355. "教學資源",
  3356. $$("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 }), {
  3357. "id": "source",
  3358. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3359. "onresize": function () { }
  3360. }, {
  3361. closecallback: function () { }
  3362. }, { "style": { "height": "36px" } }).form; //創建窗體
  3363. _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); } }
  3364. break;
  3365. }
  3366. //U.MD.D.I.openClick(str);
  3367. //如果有任務欄信息
  3368. if (_taskbar) {
  3369. U.MD.D.T.taskbar(_taskbar); //創建任務處理
  3370. }
  3371. }
  3372. // U.MD.D.I.openClick = function(str){
  3373. // var click = '';
  3374. // switch(str){
  3375. // case 'friend':
  3376. // click = '我的好友';
  3377. // break;
  3378. // case 'domain':
  3379. // click = '域名管理';
  3380. // break;
  3381. // case 'disk':
  3382. // click = '我的雲盤';
  3383. // break;
  3384. // case 'word':
  3385. // click = 'Word';
  3386. // break;
  3387. // case 'excel':
  3388. // click = 'Execl';
  3389. // break;
  3390. // case 'txt':
  3391. // click = '文本文件';
  3392. // break;
  3393. // case 'lookupFriend':
  3394. // click = '查找好友';
  3395. // break;
  3396. // case 'ftp':
  3397. // click = 'FTP';
  3398. // break;
  3399. // case 'group':
  3400. // click = '群組';
  3401. // break;
  3402. // case 'set':
  3403. // click = '我的設置';
  3404. // break;
  3405. // case 'systemSet':
  3406. // click = '系統設置';
  3407. // break;
  3408. // case 'boomYun':
  3409. // click = '互聯辦公';
  3410. // break;
  3411. // case 'xz':
  3412. // click = '雲端下載';
  3413. // break;
  3414. // case 'client':
  3415. // click = '有思瀏覽器';
  3416. // break;
  3417. // case 'backEndProgramming':
  3418. // click = '在線後臺編程';
  3419. // break;
  3420. // case 'frontEndProgramming':
  3421. // click = '在線前端編程';
  3422. // break;
  3423. // default: break;
  3424. // }
  3425. // if(U.MD.D.I.Ip && click){
  3426. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3427. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3428. // })
  3429. // }
  3430. // }
  3431. /**
  3432. *函數作用:ajax簡易函數,使用post格式
  3433. *@param url {data} 後臺地址
  3434. *@param data {data} 參數json
  3435. *@param fn {data} 回調函數
  3436. *
  3437. */
  3438. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3439. // var xhr = new XMLHttpRequest();
  3440. // xhr.open("GET",url,true);
  3441. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3442. // xhr.onreadystatechange = function(){
  3443. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3444. // fn.call(this,xhr.responseText);
  3445. // }
  3446. // };
  3447. // xhr.send();
  3448. // }
  3449. /*判斷是否是內網IP*/
  3450. // U.MD.D.I.isInnerIPFn = function(str){
  3451. // var curPageUrl = str;
  3452. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前綴
  3453. // curPageUrl =curPageUrl.replace(reg1,'');
  3454. // // console.log('curPageUrl-1 '+curPageUrl);
  3455. // var reg2 = /\:+/g;//替換冒號為一點
  3456. // curPageUrl =curPageUrl.replace(reg2,'.');
  3457. // // console.log('curPageUrl-2 '+curPageUrl);
  3458. // curPageUrl = curPageUrl.split('.');//通過一點來劃分數組
  3459. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3460. // if(curPageUrl[2] != '16'){
  3461. // return ipAddress;
  3462. // }else{
  3463. // return false;
  3464. // }
  3465. // }
  3466. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3467. // //compatibility for firefox and chrome
  3468. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3469. // var pc = new myPeerConnection({
  3470. // iceServers: []
  3471. // }),
  3472. // noop = function() {},
  3473. // localIPs = {},
  3474. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3475. // key;
  3476. // function iterateIP(ip) {
  3477. // if (!localIPs[ip]) onNewIP(ip);
  3478. // localIPs[ip] = true;
  3479. // }
  3480. // //create a bogus data channel
  3481. // pc.createDataChannel("");
  3482. // // create offer and set local description
  3483. // pc.createOffer().then(function(sdp) {
  3484. // sdp.sdp.split('\n').forEach(function(line) {
  3485. // if (line.indexOf('candidate') < 0) return;
  3486. // line.match(ipRegex).forEach(iterateIP);
  3487. // });
  3488. // pc.setLocalDescription(sdp, noop, noop);
  3489. // }).catch(function(reason) {
  3490. // // An error occurred, so handle the failure to connect
  3491. // });
  3492. // //sten for candidate events
  3493. // pc.onicecandidate = function(ice) {
  3494. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3495. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3496. // };
  3497. // }
  3498. // U.MD.D.I.getUserIpBool = function(callback){
  3499. // U.MD.D.I.getUserIP(function(ip){
  3500. // alert("Got IP! :" + ip);
  3501. // });
  3502. //}
  3503. //#endregion
  3504. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3505. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  3506. _formdiv, //創建任務欄時同時彈出的窗體元素。
  3507. _userinfo = US.userInfo, //登錄用戶信息
  3508. _userid = US.userInfo.userid //登錄用戶id
  3509. let _iframe;
  3510. let _cid = cid,
  3511. _stage = stage,
  3512. _task = task,
  3513. _tool = tool;
  3514. var _jie = $$("div", {
  3515. "style": {
  3516. "position": "absolute",
  3517. "bottom": "50px",
  3518. "right": "50px",
  3519. "zIndex": "9999",
  3520. "backgroundColor": "#2268bc",
  3521. "color": "#fff",
  3522. "padding": "12px 20px",
  3523. "cursor": "pointer",
  3524. "borderRadius": "4px",
  3525. },
  3526. "innerHTML": "提交作業"
  3527. })
  3528. let aTool = ''
  3529. let _loading = document.createElement('div')
  3530. _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;"
  3531. // _loading.id = "";
  3532. let _lchild = document.createElement('div')
  3533. let _limg = document.createElement('img')
  3534. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3535. _limg.style = "width: 26px;margin-right: 10px;"
  3536. _lchild.appendChild(_limg)
  3537. let _lspan = document.createElement('span')
  3538. _lspan.innerHTML = "上傳中..."
  3539. _lchild.appendChild(_lspan)
  3540. _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%);"
  3541. _loading.appendChild(_lchild)
  3542. var _box = $$('div', {
  3543. "style": {
  3544. "position": "relative",
  3545. "width": "100%",
  3546. "height": "100%",
  3547. },
  3548. })
  3549. _box.appendChild(_loading)
  3550. _box.id = str + '_loadLi'
  3551. switch (str) {
  3552. case "whiteboard":
  3553. aTool = 1;
  3554. _iframe = $$("iframe", {
  3555. "frameborder": "no",
  3556. "border": "0",
  3557. "scrolling ": "no",
  3558. "style": {
  3559. "cssText": "border:0;width:100%;height:100%"
  3560. },
  3561. "src": "https://iwb.cocorobo.hk/"
  3562. })
  3563. _box.appendChild(_iframe);
  3564. _box.appendChild(_jie);
  3565. _formdiv = new U.UF.UI.form(
  3566. "電子白板",
  3567. _box, {
  3568. "id": "whiteboard" + cid + stage + task + tool,
  3569. "style": {
  3570. "width": "90%",
  3571. "height": "90%",
  3572. "overflow": 'hidden'
  3573. },
  3574. "onresize": function () { }
  3575. }, {
  3576. closecallback: function () { }
  3577. }, {
  3578. "style": {
  3579. "height": "36px"
  3580. }
  3581. }).form; //創建窗體
  3582. _taskbar = {
  3583. "id": str + _formdiv.id,
  3584. "style": {
  3585. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3586. },
  3587. "name": "電子白板",
  3588. "forms": _formdiv,
  3589. "click": function () {
  3590. U.MD.D.I.openApplication(str, obj, info);
  3591. }
  3592. }
  3593. break;
  3594. case "mind":
  3595. aTool = 3;
  3596. _iframe = $$("iframe", {
  3597. "frameborder": "no",
  3598. "border": "0",
  3599. "scrolling ": "no",
  3600. "style": {
  3601. "cssText": "border:0;width:100%;height:100%"
  3602. },
  3603. "src": "/kityminder-editor/dist/index.html"
  3604. })
  3605. _box.appendChild(_iframe);
  3606. _box.appendChild(_jie);
  3607. _formdiv = new U.UF.UI.form(
  3608. "思維導圖",
  3609. _box, { //"/jsmind/example/demo.html"
  3610. "id": "mind" + cid + stage + task + tool,
  3611. "style": {
  3612. "width": "90%",
  3613. "height": "90%",
  3614. "overflow": 'hidden'
  3615. },
  3616. "onresize": function () { }
  3617. }, {
  3618. closecallback: function () { }
  3619. }, {
  3620. "style": {
  3621. "height": "36px"
  3622. }
  3623. }).form; //創建窗體
  3624. _taskbar = {
  3625. "id": str + _formdiv.id,
  3626. "style": {
  3627. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3628. },
  3629. "name": "思維導圖",
  3630. "forms": _formdiv,
  3631. "click": function () {
  3632. U.MD.D.I.openApplication(str, obj, info);
  3633. }
  3634. }
  3635. break;
  3636. case "MindMap":
  3637. aTool = 3;
  3638. _iframe = $$("iframe", {
  3639. "frameborder": "no",
  3640. "border": "0",
  3641. "scrolling ": "no",
  3642. "style": {
  3643. "cssText": "border:0;width:100%;height:100%"
  3644. },
  3645. "src": "//cloud.cocorobo.hk/mind/"
  3646. })
  3647. _box.appendChild(_iframe);
  3648. _box.appendChild(_jie);
  3649. _formdiv = new U.UF.UI.form(
  3650. "思維導圖",
  3651. _box, { //"/jsmind/example/demo.html"
  3652. "id": "mind" + cid + stage + task + tool,
  3653. "style": {
  3654. "width": "90%",
  3655. "height": "90%",
  3656. "overflow": 'hidden'
  3657. },
  3658. "onresize": function () { }
  3659. }, {
  3660. closecallback: function () { }
  3661. }, {
  3662. "style": {
  3663. "height": "36px"
  3664. }
  3665. }).form; //創建窗體
  3666. _taskbar = {
  3667. "id": str + _formdiv.id,
  3668. "style": {
  3669. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3670. },
  3671. "name": "思維導圖",
  3672. "forms": _formdiv,
  3673. "click": function () {
  3674. U.MD.D.I.openApplication(str, obj, info);
  3675. }
  3676. }
  3677. break;
  3678. case "doc":
  3679. aTool = 6;
  3680. _iframe = $$("iframe", {
  3681. "frameborder": "no",
  3682. "border": "0",
  3683. "scrolling ": "no",
  3684. "style": {
  3685. "cssText": "border:0;width:100%;height:100%"
  3686. },
  3687. "src": "/Office/Word/WordEditArea.htm"
  3688. })
  3689. _box.appendChild(_iframe);
  3690. _box.appendChild(_jie);
  3691. _formdiv = new U.UF.UI.form(
  3692. "協同文檔",
  3693. _box, {
  3694. "id": "doc" + cid + stage + task + tool,
  3695. "style": {
  3696. "width": "90%",
  3697. "height": "90%",
  3698. "overflow": 'hidden'
  3699. },
  3700. "onresize": function () { }
  3701. }, {
  3702. closecallback: function () { }
  3703. }, {
  3704. "style": {
  3705. "height": "36px"
  3706. }
  3707. }).form; //創建窗體
  3708. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3709. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3710. })
  3711. _taskbar = {
  3712. "id": str + _formdiv.id,
  3713. "style": {
  3714. "backgroundImage": "url(/img/icon/doc.png)"
  3715. },
  3716. "name": "協同文檔",
  3717. "forms": _formdiv,
  3718. "click": function () {
  3719. U.MD.D.I.openApplication(str, obj, info);
  3720. }
  3721. }
  3722. break;
  3723. case "mindNetwork": //好友打開
  3724. aTool = 7;
  3725. _iframe = $$("iframe", {
  3726. "webkitallowfullscreen": "",
  3727. "mozallowfullscreen": "",
  3728. "allowfullscreen": "",
  3729. "frameborder": "no",
  3730. "border": "0",
  3731. "scrolling ": "no",
  3732. "style": {
  3733. "cssText": "border:0; width:100%; height:100%;"
  3734. },
  3735. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3736. })
  3737. _box.appendChild(_iframe);
  3738. _box.appendChild(_jie);
  3739. _formdiv = new U.UF.UI.form(
  3740. "思維網格",
  3741. _box, {
  3742. "id": "mindNetwork" + cid + stage + task + tool,
  3743. "style": {
  3744. "width": "90%",
  3745. "height": "90%",
  3746. "overflow": 'hidden'
  3747. },
  3748. "onresize": function () { }
  3749. }, {
  3750. closecallback: function () { }
  3751. }, {
  3752. "style": {
  3753. "height": "36px"
  3754. }
  3755. }).form; //創建窗體
  3756. _taskbar = {
  3757. "id": str + _formdiv.id,
  3758. "style": {
  3759. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3760. },
  3761. "name": "思維網格",
  3762. "forms": _formdiv,
  3763. "click": function () {
  3764. U.MD.D.I.openApplication(str, obj, info);
  3765. }
  3766. }
  3767. break;
  3768. case "courseDesign":
  3769. _iframe = $$("iframe", {
  3770. "webkitallowfullscreen": "",
  3771. "mozallowfullscreen": "",
  3772. "allowfullscreen": "",
  3773. "frameborder": "no",
  3774. "border": "0",
  3775. "scrolling ": "no",
  3776. "style": {
  3777. "cssText": "border:0; width:100%; height:100%;"
  3778. },
  3779. "src": "/course-design-vue"
  3780. })
  3781. _box.appendChild(_iframe);
  3782. _box.appendChild(_jie);
  3783. _formdiv = new U.UF.UI.form(
  3784. "項目設計",
  3785. _box, {
  3786. "id": "courseDesign" + cid + stage + task + tool,
  3787. "style": {
  3788. "width": "90%",
  3789. "height": "90%",
  3790. "overflow": 'hidden'
  3791. },
  3792. "onresize": function () { }
  3793. }, {
  3794. closecallback: function () { }
  3795. }, {
  3796. "style": {
  3797. "height": "36px"
  3798. }
  3799. }).form; //創建窗體
  3800. _taskbar = {
  3801. "id": str + _formdiv.id,
  3802. "style": {
  3803. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3804. },
  3805. "name": "項目設計",
  3806. "forms": _formdiv,
  3807. "click": function () {
  3808. U.MD.D.I.openApplication(str, obj, info);
  3809. }
  3810. }
  3811. break;
  3812. }
  3813. const script1 = document.createElement("script");
  3814. script1.type = "text/javascript";
  3815. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3816. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3817. const script2 = document.createElement("script");
  3818. script2.type = "text/javascript";
  3819. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3820. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3821. const script3 = document.createElement("script");
  3822. script3.type = "text/javascript";
  3823. script3.charset = "UTF-8";
  3824. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3825. const script4 = document.createElement("script");
  3826. script4.type = "text/javascript";
  3827. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3828. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3829. if (_iframe) {
  3830. if (str == 'doc') {
  3831. _iframe = _formdiv.querySelector('iframe')
  3832. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3833. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3834. _iframe.contentWindow.document.body.appendChild(script1);
  3835. _iframe.contentWindow.document.body.appendChild(script2);
  3836. // _iframe.contentWindow.document.body.appendChild(script3);
  3837. _iframe.contentWindow.document.body.appendChild(script4);
  3838. })
  3839. if (onloadListener) {
  3840. _iframe.contentDocument.location.reload()
  3841. } else {
  3842. _iframe.contentDocument.location.reload()
  3843. }
  3844. } else if (str == 'courseDesign') {
  3845. U.UF.DL.iframeLoad(_iframe, function () {
  3846. // _iframe.contentWindow.U.MD.O.W.load();
  3847. // _iframe.contentWindow.document.body.appendChild(script1);
  3848. _iframe.contentWindow.document.body.appendChild(script2);
  3849. _iframe.contentWindow.document.body.appendChild(script4);
  3850. })
  3851. } else if (str == 'mind') {
  3852. _iframe = _formdiv.querySelector('iframe')
  3853. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3854. //
  3855. _iframe.contentWindow.document.body.appendChild(script1);
  3856. _iframe.contentWindow.document.body.appendChild(script2);
  3857. _iframe.contentWindow.document.body.appendChild(script4);
  3858. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3859. })
  3860. if (onloadListener) {
  3861. _iframe.contentDocument.location.reload()
  3862. } else {
  3863. _iframe.contentDocument.location.reload()
  3864. }
  3865. } else if (str == 'whiteboard') {
  3866. _iframe = _formdiv.querySelector('iframe')
  3867. let onloadListener = _iframe.onload = () => {
  3868. _iframe.contentWindow.document.body.appendChild(script1);
  3869. _iframe.contentWindow.document.body.appendChild(script2);
  3870. _iframe.contentWindow.document.body.appendChild(script4);
  3871. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3872. };
  3873. if (onloadListener) {
  3874. _iframe.contentDocument.location.reload()
  3875. } else {
  3876. _iframe.contentDocument.location.reload()
  3877. }
  3878. } else {
  3879. _iframe.onload = () => {
  3880. _iframe.contentWindow.document.body.appendChild(script1);
  3881. _iframe.contentWindow.document.body.appendChild(script2);
  3882. // _iframe.contentWindow.document.body.appendChild(script3);
  3883. _iframe.contentWindow.document.body.appendChild(script4);
  3884. };
  3885. }
  3886. _jie.onclick = async () => {
  3887. let text = ''
  3888. if (aTool == 1) {
  3889. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3890. } else if (aTool == 6) {
  3891. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3892. } else if (aTool == 3) {
  3893. text = await U.MD.D.I.getEditorContent(_iframe);
  3894. }
  3895. _loading.style.display = 'flex'
  3896. console.log(_loading);
  3897. var _ajs = _iframe.contentWindow.document.createElement("script");
  3898. _ajs.type = "text/javascript";
  3899. _ajs.innerHTML =
  3900. // 'console.log(' + _loading + ');\n' +
  3901. 'var _js = document.createElement("script");\n' +
  3902. '_js.type="text/javascript";\n' +
  3903. '_js.charset="UTF-8";\n' +
  3904. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3905. "_js.onload = function(){\n" +
  3906. ' var a = document.getElementsByTagName("img")\n' +
  3907. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3908. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3909. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3910. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3911. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  3912. "beforeUpload_shishi(file," +
  3913. "'" +
  3914. _userid +
  3915. "'" +
  3916. ", " +
  3917. "'" +
  3918. _cid +
  3919. "'" +
  3920. ", " +
  3921. "'" +
  3922. _stage +
  3923. "'" +
  3924. ", " +
  3925. "'" +
  3926. _task +
  3927. "'" +
  3928. ", " +
  3929. "'" +
  3930. _tool +
  3931. "'" +
  3932. ", " +
  3933. "'" +
  3934. str + '_loadLi' +
  3935. "'" +
  3936. ", " +
  3937. "'" +
  3938. aTool +
  3939. "'" +
  3940. ", " +
  3941. "`" +
  3942. text +
  3943. "`" +
  3944. ")\n" +
  3945. " });\n" +
  3946. "}\n" +
  3947. "document.head.appendChild(_js);\n";
  3948. _iframe.contentWindow.document.head.appendChild(_ajs);
  3949. }
  3950. }
  3951. //U.MD.D.I.openClick(str);
  3952. //如果有任務欄信息
  3953. // if (_taskbar) {
  3954. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  3955. // }
  3956. }
  3957. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  3958. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  3959. _formdiv, //創建任務欄時同時彈出的窗體元素。
  3960. _userinfo = US.userInfo, //登錄用戶信息
  3961. _userid = US.userInfo.userid //登錄用戶id
  3962. let _iframe;
  3963. let _cid = cid,
  3964. _stage = stage,
  3965. _task = task,
  3966. _tool = tool;
  3967. var _jie = $$("div", {
  3968. "style": {
  3969. "position": "absolute",
  3970. "bottom": "50px",
  3971. "right": "50px",
  3972. "zIndex": "9999",
  3973. "backgroundColor": "#2268bc",
  3974. "color": "#fff",
  3975. "padding": "12px 20px",
  3976. "cursor": "pointer",
  3977. "borderRadius": "4px",
  3978. },
  3979. "innerHTML": "提交作業"
  3980. })
  3981. let aTool = ''
  3982. let _loading = document.createElement('div')
  3983. _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;"
  3984. // _loading.id = "";
  3985. let _lchild = document.createElement('div')
  3986. let _limg = document.createElement('img')
  3987. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3988. _limg.style = "width: 26px;margin-right: 10px;"
  3989. _lchild.appendChild(_limg)
  3990. let _lspan = document.createElement('span')
  3991. _lspan.innerHTML = "上傳中..."
  3992. _lchild.appendChild(_lspan)
  3993. _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%);"
  3994. _loading.appendChild(_lchild)
  3995. var _box = $$('div', {
  3996. "style": {
  3997. "position": "relative",
  3998. "width": "100%",
  3999. "height": "100%",
  4000. },
  4001. })
  4002. _box.appendChild(_loading)
  4003. _box.id = str + '_loadLi'
  4004. switch (str) {
  4005. case "whiteboard":
  4006. aTool = 1;
  4007. _iframe = $$("iframe", {
  4008. "frameborder": "no",
  4009. "border": "0",
  4010. "scrolling ": "no",
  4011. "style": {
  4012. "cssText": "border:0;width:100%;height:100%"
  4013. },
  4014. "src": "https://iwb.cocorobo.hk/"
  4015. })
  4016. _box.appendChild(_iframe);
  4017. _box.appendChild(_jie);
  4018. _formdiv = new U.UF.UI.form(
  4019. "電子白板",
  4020. _box, {
  4021. "id": "whiteboard" + cid + stage + task + tool,
  4022. "style": {
  4023. "width": "90%",
  4024. "height": "90%",
  4025. "overflow": 'hidden'
  4026. },
  4027. "onresize": function () { }
  4028. }, {
  4029. closecallback: function () { }
  4030. }, {
  4031. "style": {
  4032. "height": "36px"
  4033. }
  4034. }).form; //創建窗體
  4035. _taskbar = {
  4036. "id": str + _formdiv.id,
  4037. "style": {
  4038. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4039. },
  4040. "name": "電子白板",
  4041. "forms": _formdiv,
  4042. "click": function () {
  4043. U.MD.D.I.openApplication(str, obj, info);
  4044. }
  4045. }
  4046. break;
  4047. case "mind":
  4048. aTool = 3;
  4049. _iframe = $$("iframe", {
  4050. "frameborder": "no",
  4051. "border": "0",
  4052. "scrolling ": "no",
  4053. "style": {
  4054. "cssText": "border:0;width:100%;height:100%"
  4055. },
  4056. "src": "/kityminder-editor/dist/index.html"
  4057. })
  4058. _box.appendChild(_iframe);
  4059. _box.appendChild(_jie);
  4060. _formdiv = new U.UF.UI.form(
  4061. "思維導圖",
  4062. _box, { //"/jsmind/example/demo.html"
  4063. "id": "mind" + cid + stage + task + tool,
  4064. "style": {
  4065. "width": "90%",
  4066. "height": "90%",
  4067. "overflow": 'hidden'
  4068. },
  4069. "onresize": function () { }
  4070. }, {
  4071. closecallback: function () { }
  4072. }, {
  4073. "style": {
  4074. "height": "36px"
  4075. }
  4076. }).form; //創建窗體
  4077. _taskbar = {
  4078. "id": str + _formdiv.id,
  4079. "style": {
  4080. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4081. },
  4082. "name": "思維導圖",
  4083. "forms": _formdiv,
  4084. "click": function () {
  4085. U.MD.D.I.openApplication(str, obj, info);
  4086. }
  4087. }
  4088. break;
  4089. case "MindMap":
  4090. aTool = 3;
  4091. _iframe = $$("iframe", {
  4092. "frameborder": "no",
  4093. "border": "0",
  4094. "scrolling ": "no",
  4095. "style": {
  4096. "cssText": "border:0;width:100%;height:100%"
  4097. },
  4098. "src": "//cloud.cocorobo.hk/mind/"
  4099. })
  4100. _box.appendChild(_iframe);
  4101. _box.appendChild(_jie);
  4102. _formdiv = new U.UF.UI.form(
  4103. "思維導圖",
  4104. _box, { //"/jsmind/example/demo.html"
  4105. "id": "mind" + cid + stage + task + tool,
  4106. "style": {
  4107. "width": "90%",
  4108. "height": "90%",
  4109. "overflow": 'hidden'
  4110. },
  4111. "onresize": function () { }
  4112. }, {
  4113. closecallback: function () { }
  4114. }, {
  4115. "style": {
  4116. "height": "36px"
  4117. }
  4118. }).form; //創建窗體
  4119. _taskbar = {
  4120. "id": str + _formdiv.id,
  4121. "style": {
  4122. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4123. },
  4124. "name": "思維導圖",
  4125. "forms": _formdiv,
  4126. "click": function () {
  4127. U.MD.D.I.openApplication(str, obj, info);
  4128. }
  4129. }
  4130. break;
  4131. case "doc":
  4132. aTool = 6;
  4133. _iframe = $$("iframe", {
  4134. "frameborder": "no",
  4135. "border": "0",
  4136. "scrolling ": "no",
  4137. "style": {
  4138. "cssText": "border:0;width:100%;height:100%"
  4139. },
  4140. "src": "/Office/Word/WordEditArea.htm"
  4141. })
  4142. _box.appendChild(_iframe);
  4143. _box.appendChild(_jie);
  4144. _formdiv = new U.UF.UI.form(
  4145. "協同文檔",
  4146. _box, {
  4147. "id": "doc" + cid + stage + task + tool,
  4148. "style": {
  4149. "width": "90%",
  4150. "height": "90%",
  4151. "overflow": 'hidden'
  4152. },
  4153. "onresize": function () { }
  4154. }, {
  4155. closecallback: function () { }
  4156. }, {
  4157. "style": {
  4158. "height": "36px"
  4159. }
  4160. }).form; //創建窗體
  4161. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4162. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4163. })
  4164. _taskbar = {
  4165. "id": str + _formdiv.id,
  4166. "style": {
  4167. "backgroundImage": "url(/img/icon/doc.png)"
  4168. },
  4169. "name": "協同文檔",
  4170. "forms": _formdiv,
  4171. "click": function () {
  4172. U.MD.D.I.openApplication(str, obj, info);
  4173. }
  4174. }
  4175. break;
  4176. case "mindNetwork": //好友打開
  4177. aTool = 7;
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4189. })
  4190. _box.appendChild(_iframe);
  4191. _box.appendChild(_jie);
  4192. _formdiv = new U.UF.UI.form(
  4193. "思維網格",
  4194. _box, {
  4195. "id": "mindNetwork" + 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/mindNetwork.png)"
  4213. },
  4214. "name": "思維網格",
  4215. "forms": _formdiv,
  4216. "click": function () {
  4217. U.MD.D.I.openApplication(str, obj, info);
  4218. }
  4219. }
  4220. break;
  4221. case "courseDesign":
  4222. _iframe = $$("iframe", {
  4223. "webkitallowfullscreen": "",
  4224. "mozallowfullscreen": "",
  4225. "allowfullscreen": "",
  4226. "frameborder": "no",
  4227. "border": "0",
  4228. "scrolling ": "no",
  4229. "style": {
  4230. "cssText": "border:0; width:100%; height:100%;"
  4231. },
  4232. "src": "/course-design-vue"
  4233. })
  4234. _box.appendChild(_iframe);
  4235. _box.appendChild(_jie);
  4236. _formdiv = new U.UF.UI.form(
  4237. "項目設計",
  4238. _box, {
  4239. "id": "courseDesign" + cid + stage + task + tool,
  4240. "style": {
  4241. "width": "90%",
  4242. "height": "90%",
  4243. "overflow": 'hidden'
  4244. },
  4245. "onresize": function () { }
  4246. }, {
  4247. closecallback: function () { }
  4248. }, {
  4249. "style": {
  4250. "height": "36px"
  4251. }
  4252. }).form; //創建窗體
  4253. _taskbar = {
  4254. "id": str + _formdiv.id,
  4255. "style": {
  4256. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4257. },
  4258. "name": "項目設計",
  4259. "forms": _formdiv,
  4260. "click": function () {
  4261. U.MD.D.I.openApplication(str, obj, info);
  4262. }
  4263. }
  4264. break;
  4265. }
  4266. const script1 = document.createElement("script");
  4267. script1.type = "text/javascript";
  4268. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4269. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4270. const script2 = document.createElement("script");
  4271. script2.type = "text/javascript";
  4272. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4273. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4274. const script3 = document.createElement("script");
  4275. script3.type = "text/javascript";
  4276. script3.charset = "UTF-8";
  4277. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4278. const script4 = document.createElement("script");
  4279. script4.type = "text/javascript";
  4280. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4281. script4.src = window.origin + "/js/Common/jietu2E.js";
  4282. if (_iframe) {
  4283. if (str == 'doc') {
  4284. _iframe = _formdiv.querySelector('iframe')
  4285. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4286. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4287. _iframe.contentWindow.document.body.appendChild(script1);
  4288. _iframe.contentWindow.document.body.appendChild(script2);
  4289. // _iframe.contentWindow.document.body.appendChild(script3);
  4290. _iframe.contentWindow.document.body.appendChild(script4);
  4291. })
  4292. if (onloadListener) {
  4293. _iframe.contentDocument.location.reload()
  4294. } else {
  4295. _iframe.contentDocument.location.reload()
  4296. }
  4297. } else if (str == 'courseDesign') {
  4298. U.UF.DL.iframeLoad(_iframe, function () {
  4299. // _iframe.contentWindow.U.MD.O.W.load();
  4300. // _iframe.contentWindow.document.body.appendChild(script1);
  4301. _iframe.contentWindow.document.body.appendChild(script2);
  4302. _iframe.contentWindow.document.body.appendChild(script4);
  4303. })
  4304. } else if (str == 'mind') {
  4305. _iframe = _formdiv.querySelector('iframe')
  4306. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4307. //
  4308. _iframe.contentWindow.document.body.appendChild(script1);
  4309. _iframe.contentWindow.document.body.appendChild(script2);
  4310. _iframe.contentWindow.document.body.appendChild(script4);
  4311. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4312. })
  4313. if (onloadListener) {
  4314. _iframe.contentDocument.location.reload()
  4315. } else {
  4316. _iframe.contentDocument.location.reload()
  4317. }
  4318. } else if (str == 'whiteboard') {
  4319. _iframe = _formdiv.querySelector('iframe')
  4320. let onloadListener = _iframe.onload = () => {
  4321. _iframe.contentWindow.document.body.appendChild(script1);
  4322. _iframe.contentWindow.document.body.appendChild(script2);
  4323. _iframe.contentWindow.document.body.appendChild(script4);
  4324. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4325. };
  4326. if (onloadListener) {
  4327. _iframe.contentDocument.location.reload()
  4328. } else {
  4329. _iframe.contentDocument.location.reload()
  4330. }
  4331. } else {
  4332. _iframe.onload = () => {
  4333. _iframe.contentWindow.document.body.appendChild(script1);
  4334. _iframe.contentWindow.document.body.appendChild(script2);
  4335. // _iframe.contentWindow.document.body.appendChild(script3);
  4336. _iframe.contentWindow.document.body.appendChild(script4);
  4337. };
  4338. }
  4339. _jie.onclick = async () => {
  4340. let text = ''
  4341. if (aTool == 1) {
  4342. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4343. } else if (aTool == 6) {
  4344. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4345. } else if (aTool == 3) {
  4346. text = await U.MD.D.I.getEditorContent(_iframe);
  4347. }
  4348. _loading.style.display = 'flex'
  4349. console.log(_loading);
  4350. var _ajs = _iframe.contentWindow.document.createElement("script");
  4351. _ajs.type = "text/javascript";
  4352. _ajs.innerHTML =
  4353. // 'console.log(' + _loading + ');\n' +
  4354. 'var _js = document.createElement("script");\n' +
  4355. '_js.type="text/javascript";\n' +
  4356. '_js.charset="UTF-8";\n' +
  4357. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4358. "_js.onload = function(){\n" +
  4359. ' var a = document.getElementsByTagName("img")\n' +
  4360. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4361. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4362. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4363. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4364. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  4365. "beforeUpload_shishi(file," +
  4366. "'" +
  4367. _userid +
  4368. "'" +
  4369. ", " +
  4370. "'" +
  4371. _cid +
  4372. "'" +
  4373. ", " +
  4374. "'" +
  4375. _stage +
  4376. "'" +
  4377. ", " +
  4378. "'" +
  4379. _task +
  4380. "'" +
  4381. ", " +
  4382. "'" +
  4383. _tool +
  4384. "'" +
  4385. ", " +
  4386. "'" +
  4387. str + '_loadLi' +
  4388. "'" +
  4389. ", " +
  4390. "'" +
  4391. aTool +
  4392. "'" +
  4393. ", " +
  4394. "`" +
  4395. text +
  4396. "`" +
  4397. ")\n" +
  4398. " });\n" +
  4399. "}\n" +
  4400. "document.head.appendChild(_js);\n";
  4401. _iframe.contentWindow.document.head.appendChild(_ajs);
  4402. }
  4403. }
  4404. //U.MD.D.I.openClick(str);
  4405. //如果有任務欄信息
  4406. // if (_taskbar) {
  4407. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4408. // }
  4409. }
  4410. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4411. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4412. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4413. _userid = student.userid, //登錄用戶id
  4414. _username = student.student //用戶名字
  4415. let _iframe;
  4416. let _cid = cid,
  4417. _stage = stage,
  4418. _task = task,
  4419. _tool = tool;
  4420. var _jie = $$("div", {
  4421. "style": {
  4422. "position": "absolute",
  4423. "bottom": "50px",
  4424. "right": "50px",
  4425. "zIndex": "9999",
  4426. "backgroundColor": "#2268bc",
  4427. "color": "#fff",
  4428. "padding": "12px 20px",
  4429. "cursor": "pointer",
  4430. "borderRadius": "4px",
  4431. },
  4432. "innerHTML": "提交作業"
  4433. })
  4434. let aTool = ''
  4435. let _loading = document.createElement('div')
  4436. _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;"
  4437. // _loading.id = "";
  4438. let _lchild = document.createElement('div')
  4439. let _limg = document.createElement('img')
  4440. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4441. _limg.style = "width: 26px;margin-right: 10px;"
  4442. _lchild.appendChild(_limg)
  4443. let _lspan = document.createElement('span')
  4444. _lspan.innerHTML = "上傳中..."
  4445. _lchild.appendChild(_lspan)
  4446. _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%);"
  4447. _loading.appendChild(_lchild)
  4448. var _box = $$('div', {
  4449. "style": {
  4450. "position": "relative",
  4451. "width": "100%",
  4452. "height": "100%",
  4453. },
  4454. })
  4455. _box.appendChild(_loading)
  4456. _box.id = str + '_loadLi' + _userid
  4457. switch (str) {
  4458. case "whiteboard":
  4459. aTool = 1;
  4460. _iframe = $$("iframe", {
  4461. "frameborder": "no",
  4462. "border": "0",
  4463. "scrolling ": "no",
  4464. "style": {
  4465. "cssText": "border:0;width:100%;height:100%"
  4466. },
  4467. "src": "https://iwb.cocorobo.hk/"
  4468. })
  4469. _box.appendChild(_iframe);
  4470. _box.appendChild(_jie);
  4471. _formdiv = new U.UF.UI.form(
  4472. "電子白板-" + _username,
  4473. _box, {
  4474. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4475. "style": {
  4476. "width": "90%",
  4477. "height": "90%",
  4478. "overflow": 'hidden'
  4479. },
  4480. "onresize": function () { }
  4481. }, {
  4482. closecallback: function () { }
  4483. }, {
  4484. "style": {
  4485. "height": "36px"
  4486. }
  4487. }).form; //創建窗體
  4488. _taskbar = {
  4489. "id": str + _formdiv.id,
  4490. "style": {
  4491. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4492. },
  4493. "name": "電子白板",
  4494. "forms": _formdiv,
  4495. "click": function () {
  4496. U.MD.D.I.openApplication(str, obj, info);
  4497. }
  4498. }
  4499. break;
  4500. case "mind":
  4501. aTool = 3;
  4502. _iframe = $$("iframe", {
  4503. "frameborder": "no",
  4504. "border": "0",
  4505. "scrolling ": "no",
  4506. "style": {
  4507. "cssText": "border:0;width:100%;height:100%"
  4508. },
  4509. "src": "/kityminder-editor/dist/index.html"
  4510. })
  4511. _box.appendChild(_iframe);
  4512. _box.appendChild(_jie);
  4513. _formdiv = new U.UF.UI.form(
  4514. "思維導圖-" + _username,
  4515. _box, { //"/jsmind/example/demo.html"
  4516. "id": "mind" + cid + stage + task + tool + _userid,
  4517. "style": {
  4518. "width": "90%",
  4519. "height": "90%",
  4520. "overflow": 'hidden'
  4521. },
  4522. "onresize": function () { }
  4523. }, {
  4524. closecallback: function () { }
  4525. }, {
  4526. "style": {
  4527. "height": "36px"
  4528. }
  4529. }).form; //創建窗體
  4530. _taskbar = {
  4531. "id": str + _formdiv.id,
  4532. "style": {
  4533. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4534. },
  4535. "name": "思維導圖",
  4536. "forms": _formdiv,
  4537. "click": function () {
  4538. U.MD.D.I.openApplication(str, obj, info);
  4539. }
  4540. }
  4541. break;
  4542. case "MindMap":
  4543. aTool = 3;
  4544. _iframe = $$("iframe", {
  4545. "frameborder": "no",
  4546. "border": "0",
  4547. "scrolling ": "no",
  4548. "style": {
  4549. "cssText": "border:0;width:100%;height:100%"
  4550. },
  4551. "src": "//cloud.cocorobo.hk/mind/"
  4552. })
  4553. _box.appendChild(_iframe);
  4554. _box.appendChild(_jie);
  4555. _formdiv = new U.UF.UI.form(
  4556. "思維導圖-" + _username,
  4557. _box, { //"/jsmind/example/demo.html"
  4558. "id": "mind" + cid + stage + task + tool + _userid,
  4559. "style": {
  4560. "width": "90%",
  4561. "height": "90%",
  4562. "overflow": 'hidden'
  4563. },
  4564. "onresize": function () { }
  4565. }, {
  4566. closecallback: function () { }
  4567. }, {
  4568. "style": {
  4569. "height": "36px"
  4570. }
  4571. }).form; //創建窗體
  4572. _taskbar = {
  4573. "id": str + _formdiv.id,
  4574. "style": {
  4575. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4576. },
  4577. "name": "思維導圖",
  4578. "forms": _formdiv,
  4579. "click": function () {
  4580. U.MD.D.I.openApplication(str, obj, info);
  4581. }
  4582. }
  4583. break;
  4584. case "doc":
  4585. aTool = 6;
  4586. _iframe = $$("iframe", {
  4587. "frameborder": "no",
  4588. "border": "0",
  4589. "scrolling ": "no",
  4590. "style": {
  4591. "cssText": "border:0;width:100%;height:100%"
  4592. },
  4593. "src": "/Office/Word/WordEditArea.htm"
  4594. })
  4595. _box.appendChild(_iframe);
  4596. _box.appendChild(_jie);
  4597. _formdiv = new U.UF.UI.form(
  4598. "協同文檔-" + _username,
  4599. _box, {
  4600. "id": "doc" + cid + stage + task + tool + _userid,
  4601. "style": {
  4602. "width": "90%",
  4603. "height": "90%",
  4604. "overflow": 'hidden'
  4605. },
  4606. "onresize": function () { }
  4607. }, {
  4608. closecallback: function () { }
  4609. }, {
  4610. "style": {
  4611. "height": "36px"
  4612. }
  4613. }).form; //創建窗體
  4614. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4615. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4616. })
  4617. _taskbar = {
  4618. "id": str + _formdiv.id,
  4619. "style": {
  4620. "backgroundImage": "url(/img/icon/doc.png)"
  4621. },
  4622. "name": "協同文檔",
  4623. "forms": _formdiv,
  4624. "click": function () {
  4625. U.MD.D.I.openApplication(str, obj, info);
  4626. }
  4627. }
  4628. break;
  4629. case "mindNetwork": //好友打開
  4630. aTool = 7;
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4642. })
  4643. _box.appendChild(_iframe);
  4644. _box.appendChild(_jie);
  4645. _formdiv = new U.UF.UI.form(
  4646. "思維網格-" + _username,
  4647. _box, {
  4648. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  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/mindNetwork.png)"
  4666. },
  4667. "name": "思維網格",
  4668. "forms": _formdiv,
  4669. "click": function () {
  4670. U.MD.D.I.openApplication(str, obj, info);
  4671. }
  4672. }
  4673. break;
  4674. case "courseDesign":
  4675. _iframe = $$("iframe", {
  4676. "webkitallowfullscreen": "",
  4677. "mozallowfullscreen": "",
  4678. "allowfullscreen": "",
  4679. "frameborder": "no",
  4680. "border": "0",
  4681. "scrolling ": "no",
  4682. "style": {
  4683. "cssText": "border:0; width:100%; height:100%;"
  4684. },
  4685. "src": "/course-design-vue"
  4686. })
  4687. _box.appendChild(_iframe);
  4688. _box.appendChild(_jie);
  4689. _formdiv = new U.UF.UI.form(
  4690. "項目設計-" + _username,
  4691. _box, {
  4692. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4693. "style": {
  4694. "width": "90%",
  4695. "height": "90%",
  4696. "overflow": 'hidden'
  4697. },
  4698. "onresize": function () { }
  4699. }, {
  4700. closecallback: function () { }
  4701. }, {
  4702. "style": {
  4703. "height": "36px"
  4704. }
  4705. }).form; //創建窗體
  4706. _taskbar = {
  4707. "id": str + _formdiv.id,
  4708. "style": {
  4709. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4710. },
  4711. "name": "項目設計",
  4712. "forms": _formdiv,
  4713. "click": function () {
  4714. U.MD.D.I.openApplication(str, obj, info);
  4715. }
  4716. }
  4717. break;
  4718. }
  4719. const script1 = document.createElement("script");
  4720. script1.type = "text/javascript";
  4721. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4722. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4723. const script2 = document.createElement("script");
  4724. script2.type = "text/javascript";
  4725. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4726. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4727. const script3 = document.createElement("script");
  4728. script3.type = "text/javascript";
  4729. script3.charset = "UTF-8";
  4730. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4731. const script4 = document.createElement("script");
  4732. script4.type = "text/javascript";
  4733. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4734. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4735. if (_iframe) {
  4736. if (str == 'doc') {
  4737. _iframe = _formdiv.querySelector('iframe')
  4738. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4739. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4740. _iframe.contentWindow.document.body.appendChild(script1);
  4741. _iframe.contentWindow.document.body.appendChild(script2);
  4742. // _iframe.contentWindow.document.body.appendChild(script3);
  4743. _iframe.contentWindow.document.body.appendChild(script4);
  4744. })
  4745. if (onloadListener) {
  4746. _iframe.contentDocument.location.reload()
  4747. } else {
  4748. _iframe.contentDocument.location.reload()
  4749. }
  4750. } else if (str == 'courseDesign') {
  4751. U.UF.DL.iframeLoad(_iframe, function () {
  4752. // _iframe.contentWindow.U.MD.O.W.load();
  4753. // _iframe.contentWindow.document.body.appendChild(script1);
  4754. _iframe.contentWindow.document.body.appendChild(script2);
  4755. _iframe.contentWindow.document.body.appendChild(script4);
  4756. })
  4757. } else if (str == 'mind') {
  4758. _iframe = _formdiv.querySelector('iframe')
  4759. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4760. //
  4761. _iframe.contentWindow.document.body.appendChild(script1);
  4762. _iframe.contentWindow.document.body.appendChild(script2);
  4763. _iframe.contentWindow.document.body.appendChild(script4);
  4764. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4765. })
  4766. if (onloadListener) {
  4767. _iframe.contentDocument.location.reload()
  4768. } else {
  4769. _iframe.contentDocument.location.reload()
  4770. }
  4771. } else if (str == 'whiteboard') {
  4772. _iframe = _formdiv.querySelector('iframe')
  4773. let onloadListener = _iframe.onload = () => {
  4774. _iframe.contentWindow.document.body.appendChild(script1);
  4775. _iframe.contentWindow.document.body.appendChild(script2);
  4776. _iframe.contentWindow.document.body.appendChild(script4);
  4777. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4778. };
  4779. if (onloadListener) {
  4780. _iframe.contentDocument.location.reload()
  4781. } else {
  4782. _iframe.contentDocument.location.reload()
  4783. }
  4784. } else {
  4785. _iframe.onload = () => {
  4786. _iframe.contentWindow.document.body.appendChild(script1);
  4787. _iframe.contentWindow.document.body.appendChild(script2);
  4788. // _iframe.contentWindow.document.body.appendChild(script3);
  4789. _iframe.contentWindow.document.body.appendChild(script4);
  4790. };
  4791. }
  4792. _jie.onclick = async () => {
  4793. let text = ''
  4794. if (aTool == 1) {
  4795. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4796. } else if (aTool == 6) {
  4797. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4798. } else if (aTool == 3) {
  4799. text = await U.MD.D.I.getEditorContent(_iframe);
  4800. }
  4801. _loading.style.display = 'flex'
  4802. console.log(_loading);
  4803. var _ajs = _iframe.contentWindow.document.createElement("script");
  4804. _ajs.type = "text/javascript";
  4805. _ajs.innerHTML =
  4806. // 'console.log(' + _loading + ');\n' +
  4807. 'var _js = document.createElement("script");\n' +
  4808. '_js.type="text/javascript";\n' +
  4809. '_js.charset="UTF-8";\n' +
  4810. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4811. "_js.onload = function(){\n" +
  4812. ' var a = document.getElementsByTagName("img")\n' +
  4813. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4814. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4815. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4816. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4817. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  4818. "beforeUpload_shishi(file," +
  4819. "'" +
  4820. _userid +
  4821. "'" +
  4822. ", " +
  4823. "'" +
  4824. _cid +
  4825. "'" +
  4826. ", " +
  4827. "'" +
  4828. _stage +
  4829. "'" +
  4830. ", " +
  4831. "'" +
  4832. _task +
  4833. "'" +
  4834. ", " +
  4835. "'" +
  4836. _tool +
  4837. "'" +
  4838. ", " +
  4839. "'" +
  4840. str + '_loadLi' + _userid +
  4841. "'" +
  4842. ", " +
  4843. "'" +
  4844. aTool +
  4845. "'" +
  4846. ", " +
  4847. "`" +
  4848. text +
  4849. "`" +
  4850. ")\n" +
  4851. " });\n" +
  4852. "}\n" +
  4853. "document.head.appendChild(_js);\n";
  4854. _iframe.contentWindow.document.head.appendChild(_ajs);
  4855. }
  4856. }
  4857. }
  4858. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  4859. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4860. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4861. _userid = student.userid, //登錄用戶id
  4862. _username = student.student //用戶名字
  4863. let _iframe;
  4864. let _cid = cid,
  4865. _stage = stage,
  4866. _task = task,
  4867. _tool = tool;
  4868. var _jie = $$("div", {
  4869. "style": {
  4870. "position": "absolute",
  4871. "bottom": "50px",
  4872. "right": "50px",
  4873. "zIndex": "9999",
  4874. "backgroundColor": "#2268bc",
  4875. "color": "#fff",
  4876. "padding": "12px 20px",
  4877. "cursor": "pointer",
  4878. "borderRadius": "4px",
  4879. },
  4880. "innerHTML": "提交作業"
  4881. })
  4882. let aTool = ''
  4883. let _loading = document.createElement('div')
  4884. _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;"
  4885. // _loading.id = "";
  4886. let _lchild = document.createElement('div')
  4887. let _limg = document.createElement('img')
  4888. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4889. _limg.style = "width: 26px;margin-right: 10px;"
  4890. _lchild.appendChild(_limg)
  4891. let _lspan = document.createElement('span')
  4892. _lspan.innerHTML = "上傳中..."
  4893. _lchild.appendChild(_lspan)
  4894. _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%);"
  4895. _loading.appendChild(_lchild)
  4896. var _box = $$('div', {
  4897. "style": {
  4898. "position": "relative",
  4899. "width": "100%",
  4900. "height": "100%",
  4901. },
  4902. })
  4903. _box.appendChild(_loading)
  4904. _box.id = str + '_loadLi' + _userid
  4905. switch (str) {
  4906. case "whiteboard":
  4907. aTool = 1;
  4908. _iframe = $$("iframe", {
  4909. "frameborder": "no",
  4910. "border": "0",
  4911. "scrolling ": "no",
  4912. "style": {
  4913. "cssText": "border:0;width:100%;height:100%"
  4914. },
  4915. "src": "https://iwb.cocorobo.hk/"
  4916. })
  4917. _box.appendChild(_iframe);
  4918. _box.appendChild(_jie);
  4919. _formdiv = new U.UF.UI.form(
  4920. "電子白板-" + _username,
  4921. _box, {
  4922. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4923. "style": {
  4924. "width": "90%",
  4925. "height": "90%",
  4926. "overflow": 'hidden'
  4927. },
  4928. "onresize": function () { }
  4929. }, {
  4930. closecallback: function () { }
  4931. }, {
  4932. "style": {
  4933. "height": "36px"
  4934. }
  4935. }).form; //創建窗體
  4936. _taskbar = {
  4937. "id": str + _formdiv.id,
  4938. "style": {
  4939. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4940. },
  4941. "name": "電子白板",
  4942. "forms": _formdiv,
  4943. "click": function () {
  4944. U.MD.D.I.openApplication(str, obj, info);
  4945. }
  4946. }
  4947. break;
  4948. case "mind":
  4949. aTool = 3;
  4950. _iframe = $$("iframe", {
  4951. "frameborder": "no",
  4952. "border": "0",
  4953. "scrolling ": "no",
  4954. "style": {
  4955. "cssText": "border:0;width:100%;height:100%"
  4956. },
  4957. "src": "/kityminder-editor/dist/index.html"
  4958. })
  4959. _box.appendChild(_iframe);
  4960. _box.appendChild(_jie);
  4961. _formdiv = new U.UF.UI.form(
  4962. "思維導圖-" + _username,
  4963. _box, { //"/jsmind/example/demo.html"
  4964. "id": "mind" + cid + stage + task + tool + _userid,
  4965. "style": {
  4966. "width": "90%",
  4967. "height": "90%",
  4968. "overflow": 'hidden'
  4969. },
  4970. "onresize": function () { }
  4971. }, {
  4972. closecallback: function () { }
  4973. }, {
  4974. "style": {
  4975. "height": "36px"
  4976. }
  4977. }).form; //創建窗體
  4978. _taskbar = {
  4979. "id": str + _formdiv.id,
  4980. "style": {
  4981. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4982. },
  4983. "name": "思維導圖",
  4984. "forms": _formdiv,
  4985. "click": function () {
  4986. U.MD.D.I.openApplication(str, obj, info);
  4987. }
  4988. }
  4989. break;
  4990. case "MindMap":
  4991. aTool = 3;
  4992. _iframe = $$("iframe", {
  4993. "frameborder": "no",
  4994. "border": "0",
  4995. "scrolling ": "no",
  4996. "style": {
  4997. "cssText": "border:0;width:100%;height:100%"
  4998. },
  4999. "src": "//cloud.cocorobo.hk/mind/"
  5000. })
  5001. _box.appendChild(_iframe);
  5002. _box.appendChild(_jie);
  5003. _formdiv = new U.UF.UI.form(
  5004. "思維導圖-" + _username,
  5005. _box, { //"/jsmind/example/demo.html"
  5006. "id": "mind" + cid + stage + task + tool + _userid,
  5007. "style": {
  5008. "width": "90%",
  5009. "height": "90%",
  5010. "overflow": 'hidden'
  5011. },
  5012. "onresize": function () { }
  5013. }, {
  5014. closecallback: function () { }
  5015. }, {
  5016. "style": {
  5017. "height": "36px"
  5018. }
  5019. }).form; //創建窗體
  5020. _taskbar = {
  5021. "id": str + _formdiv.id,
  5022. "style": {
  5023. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5024. },
  5025. "name": "思維導圖",
  5026. "forms": _formdiv,
  5027. "click": function () {
  5028. U.MD.D.I.openApplication(str, obj, info);
  5029. }
  5030. }
  5031. break;
  5032. case "doc":
  5033. aTool = 6;
  5034. _iframe = $$("iframe", {
  5035. "frameborder": "no",
  5036. "border": "0",
  5037. "scrolling ": "no",
  5038. "style": {
  5039. "cssText": "border:0;width:100%;height:100%"
  5040. },
  5041. "src": "/Office/Word/WordEditArea.htm"
  5042. })
  5043. _box.appendChild(_iframe);
  5044. _box.appendChild(_jie);
  5045. _formdiv = new U.UF.UI.form(
  5046. "協同文檔-" + _username,
  5047. _box, {
  5048. "id": "doc" + cid + stage + task + tool + _userid,
  5049. "style": {
  5050. "width": "90%",
  5051. "height": "90%",
  5052. "overflow": 'hidden'
  5053. },
  5054. "onresize": function () { }
  5055. }, {
  5056. closecallback: function () { }
  5057. }, {
  5058. "style": {
  5059. "height": "36px"
  5060. }
  5061. }).form; //創建窗體
  5062. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5063. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5064. })
  5065. _taskbar = {
  5066. "id": str + _formdiv.id,
  5067. "style": {
  5068. "backgroundImage": "url(/img/icon/doc.png)"
  5069. },
  5070. "name": "協同文檔",
  5071. "forms": _formdiv,
  5072. "click": function () {
  5073. U.MD.D.I.openApplication(str, obj, info);
  5074. }
  5075. }
  5076. break;
  5077. case "mindNetwork": //好友打開
  5078. aTool = 7;
  5079. _iframe = $$("iframe", {
  5080. "webkitallowfullscreen": "",
  5081. "mozallowfullscreen": "",
  5082. "allowfullscreen": "",
  5083. "frameborder": "no",
  5084. "border": "0",
  5085. "scrolling ": "no",
  5086. "style": {
  5087. "cssText": "border:0; width:100%; height:100%;"
  5088. },
  5089. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5090. })
  5091. _box.appendChild(_iframe);
  5092. _box.appendChild(_jie);
  5093. _formdiv = new U.UF.UI.form(
  5094. "思維網格-" + _username,
  5095. _box, {
  5096. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5097. "style": {
  5098. "width": "90%",
  5099. "height": "90%",
  5100. "overflow": 'hidden'
  5101. },
  5102. "onresize": function () { }
  5103. }, {
  5104. closecallback: function () { }
  5105. }, {
  5106. "style": {
  5107. "height": "36px"
  5108. }
  5109. }).form; //創建窗體
  5110. _taskbar = {
  5111. "id": str + _formdiv.id,
  5112. "style": {
  5113. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5114. },
  5115. "name": "思維網格",
  5116. "forms": _formdiv,
  5117. "click": function () {
  5118. U.MD.D.I.openApplication(str, obj, info);
  5119. }
  5120. }
  5121. break;
  5122. case "courseDesign":
  5123. _iframe = $$("iframe", {
  5124. "webkitallowfullscreen": "",
  5125. "mozallowfullscreen": "",
  5126. "allowfullscreen": "",
  5127. "frameborder": "no",
  5128. "border": "0",
  5129. "scrolling ": "no",
  5130. "style": {
  5131. "cssText": "border:0; width:100%; height:100%;"
  5132. },
  5133. "src": "/course-design-vue"
  5134. })
  5135. _box.appendChild(_iframe);
  5136. _box.appendChild(_jie);
  5137. _formdiv = new U.UF.UI.form(
  5138. "項目設計-" + _username,
  5139. _box, {
  5140. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5141. "style": {
  5142. "width": "90%",
  5143. "height": "90%",
  5144. "overflow": 'hidden'
  5145. },
  5146. "onresize": function () { }
  5147. }, {
  5148. closecallback: function () { }
  5149. }, {
  5150. "style": {
  5151. "height": "36px"
  5152. }
  5153. }).form; //創建窗體
  5154. _taskbar = {
  5155. "id": str + _formdiv.id,
  5156. "style": {
  5157. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5158. },
  5159. "name": "項目設計",
  5160. "forms": _formdiv,
  5161. "click": function () {
  5162. U.MD.D.I.openApplication(str, obj, info);
  5163. }
  5164. }
  5165. break;
  5166. }
  5167. const script1 = document.createElement("script");
  5168. script1.type = "text/javascript";
  5169. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5170. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5171. const script2 = document.createElement("script");
  5172. script2.type = "text/javascript";
  5173. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5174. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5175. const script3 = document.createElement("script");
  5176. script3.type = "text/javascript";
  5177. script3.charset = "UTF-8";
  5178. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5179. const script4 = document.createElement("script");
  5180. script4.type = "text/javascript";
  5181. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5182. script4.src = window.origin + "/js/Common/jietu2E.js";
  5183. if (_iframe) {
  5184. if (str == 'doc') {
  5185. _iframe = _formdiv.querySelector('iframe')
  5186. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5187. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5188. _iframe.contentWindow.document.body.appendChild(script1);
  5189. _iframe.contentWindow.document.body.appendChild(script2);
  5190. // _iframe.contentWindow.document.body.appendChild(script3);
  5191. _iframe.contentWindow.document.body.appendChild(script4);
  5192. })
  5193. if (onloadListener) {
  5194. _iframe.contentDocument.location.reload()
  5195. } else {
  5196. _iframe.contentDocument.location.reload()
  5197. }
  5198. } else if (str == 'courseDesign') {
  5199. U.UF.DL.iframeLoad(_iframe, function () {
  5200. // _iframe.contentWindow.U.MD.O.W.load();
  5201. // _iframe.contentWindow.document.body.appendChild(script1);
  5202. _iframe.contentWindow.document.body.appendChild(script2);
  5203. _iframe.contentWindow.document.body.appendChild(script4);
  5204. })
  5205. } else if (str == 'mind') {
  5206. _iframe = _formdiv.querySelector('iframe')
  5207. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5208. //
  5209. _iframe.contentWindow.document.body.appendChild(script1);
  5210. _iframe.contentWindow.document.body.appendChild(script2);
  5211. _iframe.contentWindow.document.body.appendChild(script4);
  5212. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5213. })
  5214. if (onloadListener) {
  5215. _iframe.contentDocument.location.reload()
  5216. } else {
  5217. _iframe.contentDocument.location.reload()
  5218. }
  5219. } else if (str == 'whiteboard') {
  5220. _iframe = _formdiv.querySelector('iframe')
  5221. let onloadListener = _iframe.onload = () => {
  5222. _iframe.contentWindow.document.body.appendChild(script1);
  5223. _iframe.contentWindow.document.body.appendChild(script2);
  5224. _iframe.contentWindow.document.body.appendChild(script4);
  5225. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5226. };
  5227. if (onloadListener) {
  5228. _iframe.contentDocument.location.reload()
  5229. } else {
  5230. _iframe.contentDocument.location.reload()
  5231. }
  5232. } else {
  5233. _iframe.onload = () => {
  5234. _iframe.contentWindow.document.body.appendChild(script1);
  5235. _iframe.contentWindow.document.body.appendChild(script2);
  5236. // _iframe.contentWindow.document.body.appendChild(script3);
  5237. _iframe.contentWindow.document.body.appendChild(script4);
  5238. };
  5239. }
  5240. _jie.onclick = async () => {
  5241. let text = ''
  5242. if (aTool == 1) {
  5243. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5244. } else if (aTool == 6) {
  5245. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5246. } else if (aTool == 3) {
  5247. text = await U.MD.D.I.getEditorContent(_iframe);
  5248. }
  5249. _loading.style.display = 'flex'
  5250. console.log(_loading);
  5251. var _ajs = _iframe.contentWindow.document.createElement("script");
  5252. _ajs.type = "text/javascript";
  5253. _ajs.innerHTML =
  5254. // 'console.log(' + _loading + ');\n' +
  5255. 'var _js = document.createElement("script");\n' +
  5256. '_js.type="text/javascript";\n' +
  5257. '_js.charset="UTF-8";\n' +
  5258. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5259. "_js.onload = function(){\n" +
  5260. ' var a = document.getElementsByTagName("img")\n' +
  5261. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5262. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5263. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5264. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5265. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5266. "beforeUpload_shishi(file," +
  5267. "'" +
  5268. _userid +
  5269. "'" +
  5270. ", " +
  5271. "'" +
  5272. _cid +
  5273. "'" +
  5274. ", " +
  5275. "'" +
  5276. _stage +
  5277. "'" +
  5278. ", " +
  5279. "'" +
  5280. _task +
  5281. "'" +
  5282. ", " +
  5283. "'" +
  5284. _tool +
  5285. "'" +
  5286. ", " +
  5287. "'" +
  5288. str + '_loadLi' + _userid +
  5289. "'" +
  5290. ", " +
  5291. "'" +
  5292. aTool +
  5293. "'" +
  5294. ", " +
  5295. "`" +
  5296. text +
  5297. "`" +
  5298. ")\n" +
  5299. " });\n" +
  5300. "}\n" +
  5301. "document.head.appendChild(_js);\n";
  5302. _iframe.contentWindow.document.head.appendChild(_ajs);
  5303. }
  5304. }
  5305. }
  5306. U.MD.D.I.getEditorContent = function (iframe) {
  5307. return new Promise((resolve, reject) => {
  5308. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5309. console.log(content);
  5310. resolve(content)
  5311. });
  5312. });
  5313. }
  5314. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5315. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5316. // if (res.value[0].length > 0) {
  5317. // // resolve(res.value[0][0].text);
  5318. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5319. // $(fileInput).val('');
  5320. // });
  5321. // }
  5322. // }, [], { "type": "GET", "withCredentials": true });
  5323. var xmlhttp;
  5324. var Mac, Sn, DeviceId
  5325. if (window.XMLHttpRequest) {
  5326. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  5327. xmlhttp = new XMLHttpRequest();
  5328. }
  5329. else {
  5330. // IE6, IE5 瀏覽器執行代碼
  5331. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5332. }
  5333. xmlhttp.onreadystatechange = function () {
  5334. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5335. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5336. // resolve(res.value[0][0].text);
  5337. if (type == '2') {
  5338. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5339. $(fileInput).val('');
  5340. });
  5341. } else if (type == '3') {
  5342. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5343. }
  5344. } else {
  5345. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5346. }
  5347. }
  5348. }
  5349. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5350. xmlhttp.send();
  5351. }
  5352. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5353. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5354. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5355. _userinfo = US.userInfo, //登錄用戶信息
  5356. _userid = US.userInfo.userid //登錄用戶id
  5357. let _iframe;
  5358. let _cid = cid,
  5359. _stage = stage,
  5360. _task = task,
  5361. _tool = tool;
  5362. var _jie = $$("div", {
  5363. "style": {
  5364. "position": "absolute",
  5365. "bottom": "50px",
  5366. "right": "50px",
  5367. "zIndex": "9999",
  5368. "backgroundColor": "#2268bc",
  5369. "color": "#fff",
  5370. "padding": "12px 20px",
  5371. "cursor": "pointer",
  5372. "borderRadius": "4px",
  5373. },
  5374. "innerHTML": "確認並提交"
  5375. })
  5376. let aTool = ''
  5377. let _loading = document.createElement('div')
  5378. _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;"
  5379. // _loading.id = "";
  5380. let _lchild = document.createElement('div')
  5381. let _limg = document.createElement('img')
  5382. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5383. _limg.style = "width: 26px;margin-right: 10px;"
  5384. _lchild.appendChild(_limg)
  5385. let _lspan = document.createElement('span')
  5386. _lspan.innerHTML = "上傳中..."
  5387. _lchild.appendChild(_lspan)
  5388. _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%);"
  5389. _loading.appendChild(_lchild)
  5390. var _box = $$('div', {
  5391. "style": {
  5392. "position": "relative",
  5393. "width": "100%",
  5394. "height": "100%",
  5395. },
  5396. })
  5397. _box.appendChild(_loading)
  5398. _box.id = str + '_loadLi'
  5399. switch (str) {
  5400. case "whiteboard":
  5401. aTool = 1;
  5402. _iframe = $$("iframe", {
  5403. "frameborder": "no",
  5404. "border": "0",
  5405. "scrolling ": "no",
  5406. "style": {
  5407. "cssText": "border:0;width:100%;height:100%"
  5408. },
  5409. "src": "https://iwb.cocorobo.hk/"
  5410. })
  5411. _box.appendChild(_iframe);
  5412. _box.appendChild(_jie);
  5413. _formdiv = new U.UF.UI.form(
  5414. "電子白板",
  5415. _box, {
  5416. "id": "whiteboards" + cid + stage + task + tool,
  5417. "style": {
  5418. "width": "90%",
  5419. "height": "90%",
  5420. "overflow": 'hidden'
  5421. },
  5422. "onresize": function () { }
  5423. }, {
  5424. closecallback: function () { }
  5425. }, {
  5426. "style": {
  5427. "height": "36px"
  5428. }
  5429. }).form; //創建窗體
  5430. _taskbar = {
  5431. "id": str + _formdiv.id,
  5432. "style": {
  5433. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5434. },
  5435. "name": "電子白板",
  5436. "forms": _formdiv,
  5437. "click": function () {
  5438. U.MD.D.I.openApplication(str, obj, info);
  5439. }
  5440. }
  5441. break;
  5442. case "mind":
  5443. aTool = 3;
  5444. _iframe = $$("iframe", {
  5445. "frameborder": "no",
  5446. "border": "0",
  5447. "scrolling ": "no",
  5448. "style": {
  5449. "cssText": "border:0;width:100%;height:100%"
  5450. },
  5451. "src": "/kityminder-editor/dist/index.html"
  5452. });
  5453. _box.appendChild(_iframe);
  5454. _box.appendChild(_jie);
  5455. _formdiv = new U.UF.UI.form(
  5456. "思維導圖",
  5457. _box, { //"/jsmind/example/demo.html"
  5458. "id": "minds" + cid + stage + task + tool,
  5459. "style": {
  5460. "width": "90%",
  5461. "height": "90%",
  5462. "overflow": 'hidden'
  5463. },
  5464. "onresize": function () { }
  5465. }, {
  5466. closecallback: function () { }
  5467. }, {
  5468. "style": {
  5469. "height": "36px"
  5470. }
  5471. }).form; //創建窗體
  5472. _taskbar = {
  5473. "id": str + _formdiv.id,
  5474. "style": {
  5475. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5476. },
  5477. "name": "思維導圖",
  5478. "forms": _formdiv,
  5479. "click": function () {
  5480. U.MD.D.I.openApplication(str, obj, info);
  5481. }
  5482. }
  5483. break;
  5484. case "doc":
  5485. aTool = 6;
  5486. _iframe = $$("iframe", {
  5487. "frameborder": "no",
  5488. "border": "0",
  5489. "scrolling ": "no",
  5490. "style": {
  5491. "cssText": "border:0;width:100%;height:100%"
  5492. },
  5493. "src": "/Office/Word/WordEditArea.htm"
  5494. })
  5495. _box.appendChild(_iframe);
  5496. _box.appendChild(_jie);
  5497. _formdiv = new U.UF.UI.form(
  5498. "協同文檔",
  5499. _box, {
  5500. "id": "docs" + cid + stage + task + tool,
  5501. "style": {
  5502. "width": "90%",
  5503. "height": "90%",
  5504. "overflow": 'hidden'
  5505. },
  5506. "onresize": function () { }
  5507. }, {
  5508. closecallback: function () { }
  5509. }, {
  5510. "style": {
  5511. "height": "36px"
  5512. }
  5513. }).form; //創建窗體
  5514. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5515. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5516. })
  5517. _taskbar = {
  5518. "id": str + _formdiv.id,
  5519. "style": {
  5520. "backgroundImage": "url(/img/icon/doc.png)"
  5521. },
  5522. "name": "協同文檔",
  5523. "forms": _formdiv,
  5524. "click": function () {
  5525. U.MD.D.I.openApplication(str, obj, info);
  5526. }
  5527. }
  5528. break;
  5529. }
  5530. const script1 = document.createElement("script");
  5531. script1.type = "text/javascript";
  5532. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5533. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5534. const script2 = document.createElement("script");
  5535. script2.type = "text/javascript";
  5536. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5537. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5538. const script3 = document.createElement("script");
  5539. script3.type = "text/javascript";
  5540. script3.charset = "UTF-8";
  5541. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5542. const script4 = document.createElement("script");
  5543. script4.type = "text/javascript";
  5544. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5545. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5546. if (_iframe) {
  5547. if (str == 'doc') {
  5548. _iframe = _formdiv.querySelector('iframe')
  5549. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5550. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5551. _iframe.contentWindow.document.body.appendChild(script1);
  5552. _iframe.contentWindow.document.body.appendChild(script2);
  5553. // _iframe.contentWindow.document.body.appendChild(script3);
  5554. _iframe.contentWindow.document.body.appendChild(script4);
  5555. })
  5556. if (onloadListener) {
  5557. _iframe.contentDocument.location.reload()
  5558. } else {
  5559. _iframe.contentDocument.location.reload()
  5560. }
  5561. } else if (str == 'mind') {
  5562. _iframe = _formdiv.querySelector('iframe')
  5563. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5564. _iframe.contentWindow.document.body.appendChild(script1);
  5565. _iframe.contentWindow.document.body.appendChild(script2);
  5566. _iframe.contentWindow.document.body.appendChild(script4);
  5567. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5568. })
  5569. if (onloadListener) {
  5570. _iframe.contentDocument.location.reload()
  5571. } else {
  5572. _iframe.contentDocument.location.reload()
  5573. }
  5574. } else {
  5575. _iframe.onload = () => {
  5576. _iframe.contentWindow.document.body.appendChild(script1);
  5577. _iframe.contentWindow.document.body.appendChild(script2);
  5578. // _iframe.contentWindow.document.body.appendChild(script3);
  5579. _iframe.contentWindow.document.body.appendChild(script4);
  5580. };
  5581. }
  5582. _jie.onclick = async () => {
  5583. let text = ''
  5584. if (aTool == 6) {
  5585. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5586. } else if (aTool == 3) {
  5587. text = await U.MD.D.I.getEditorContent(_iframe);
  5588. }
  5589. _loading.style.display = 'flex'
  5590. console.log(_loading);
  5591. var _ajs = _iframe.contentWindow.document.createElement("script");
  5592. _ajs.type = "text/javascript";
  5593. _ajs.innerHTML =
  5594. // 'console.log(' + _loading + ');\n' +
  5595. 'var _js = document.createElement("script");\n' +
  5596. '_js.type="text/javascript";\n' +
  5597. '_js.charset="UTF-8";\n' +
  5598. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5599. "_js.onload = function(){\n" +
  5600. ' var a = document.getElementsByTagName("img")\n' +
  5601. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5602. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5603. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5604. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5605. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5606. "beforeUpload_shishi(file," +
  5607. "'" +
  5608. _userid +
  5609. "'" +
  5610. ", " +
  5611. "'" +
  5612. _cid +
  5613. "'" +
  5614. ", " +
  5615. "'" +
  5616. _stage +
  5617. "'" +
  5618. ", " +
  5619. "'" +
  5620. _task +
  5621. "'" +
  5622. ", " +
  5623. "'" +
  5624. _tool +
  5625. "'" +
  5626. ", " +
  5627. "'" +
  5628. str + '_loadLi' +
  5629. "'" +
  5630. ", " +
  5631. "'" +
  5632. aTool +
  5633. "'" +
  5634. ", " +
  5635. "`" +
  5636. text +
  5637. "`" +
  5638. ")\n" +
  5639. " });\n" +
  5640. "}\n" +
  5641. "document.head.appendChild(_js);\n";
  5642. _iframe.contentWindow.document.head.appendChild(_ajs);
  5643. }
  5644. }
  5645. //U.MD.D.I.openClick(str);
  5646. //如果有任務欄信息
  5647. // if (_taskbar) {
  5648. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  5649. // }
  5650. }
  5651. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5652. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5653. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5654. _userinfo = US.userInfo, //登錄用戶信息
  5655. _userid = US.userInfo.userid //登錄用戶id
  5656. let _iframe;
  5657. let _cid = cid,
  5658. _stage = stage,
  5659. _task = task,
  5660. _tool = tool;
  5661. var _jie = $$("div", {
  5662. "style": {
  5663. "position": "absolute",
  5664. "bottom": "50px",
  5665. "right": "50px",
  5666. "zIndex": "9999",
  5667. "backgroundColor": "#2268bc",
  5668. "color": "#fff",
  5669. "padding": "12px 20px",
  5670. "cursor": "pointer",
  5671. "borderRadius": "4px",
  5672. },
  5673. "innerHTML": "確認並提交"
  5674. })
  5675. let aTool = ''
  5676. let _loading = document.createElement('div')
  5677. _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;"
  5678. // _loading.id = "";
  5679. let _lchild = document.createElement('div')
  5680. let _limg = document.createElement('img')
  5681. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5682. _limg.style = "width: 26px;margin-right: 10px;"
  5683. _lchild.appendChild(_limg)
  5684. let _lspan = document.createElement('span')
  5685. _lspan.innerHTML = "上傳中..."
  5686. _lchild.appendChild(_lspan)
  5687. _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%);"
  5688. _loading.appendChild(_lchild)
  5689. var _box = $$('div', {
  5690. "style": {
  5691. "position": "relative",
  5692. "width": "100%",
  5693. "height": "100%",
  5694. },
  5695. })
  5696. _box.appendChild(_loading)
  5697. _box.id = str + '_loadLi'
  5698. switch (str) {
  5699. case "whiteboard":
  5700. aTool = 1;
  5701. _iframe = $$("iframe", {
  5702. "frameborder": "no",
  5703. "border": "0",
  5704. "scrolling ": "no",
  5705. "style": {
  5706. "cssText": "border:0;width:100%;height:100%"
  5707. },
  5708. "src": "https://iwb.cocorobo.hk/"
  5709. })
  5710. _box.appendChild(_iframe);
  5711. _box.appendChild(_jie);
  5712. _formdiv = new U.UF.UI.form(
  5713. "電子白板",
  5714. _box, {
  5715. "id": "whiteboards" + cid + stage + task + tool,
  5716. "style": {
  5717. "width": "90%",
  5718. "height": "90%",
  5719. "overflow": 'hidden'
  5720. },
  5721. "onresize": function () { }
  5722. }, {
  5723. closecallback: function () { }
  5724. }, {
  5725. "style": {
  5726. "height": "36px"
  5727. }
  5728. }).form; //創建窗體
  5729. _taskbar = {
  5730. "id": str + _formdiv.id,
  5731. "style": {
  5732. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5733. },
  5734. "name": "電子白板",
  5735. "forms": _formdiv,
  5736. "click": function () {
  5737. U.MD.D.I.openApplication(str, obj, info);
  5738. }
  5739. }
  5740. break;
  5741. case "mind":
  5742. aTool = 3;
  5743. _iframe = $$("iframe", {
  5744. "frameborder": "no",
  5745. "border": "0",
  5746. "scrolling ": "no",
  5747. "style": {
  5748. "cssText": "border:0;width:100%;height:100%"
  5749. },
  5750. "src": "/kityminder-editor/dist/index.html"
  5751. });
  5752. _box.appendChild(_iframe);
  5753. _box.appendChild(_jie);
  5754. _formdiv = new U.UF.UI.form(
  5755. "思維導圖",
  5756. _box, { //"/jsmind/example/demo.html"
  5757. "id": "minds" + cid + stage + task + tool,
  5758. "style": {
  5759. "width": "90%",
  5760. "height": "90%",
  5761. "overflow": 'hidden'
  5762. },
  5763. "onresize": function () { }
  5764. }, {
  5765. closecallback: function () { }
  5766. }, {
  5767. "style": {
  5768. "height": "36px"
  5769. }
  5770. }).form; //創建窗體
  5771. _taskbar = {
  5772. "id": str + _formdiv.id,
  5773. "style": {
  5774. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5775. },
  5776. "name": "思維導圖",
  5777. "forms": _formdiv,
  5778. "click": function () {
  5779. U.MD.D.I.openApplication(str, obj, info);
  5780. }
  5781. }
  5782. break;
  5783. case "doc":
  5784. aTool = 6;
  5785. _iframe = $$("iframe", {
  5786. "frameborder": "no",
  5787. "border": "0",
  5788. "scrolling ": "no",
  5789. "style": {
  5790. "cssText": "border:0;width:100%;height:100%"
  5791. },
  5792. "src": "/Office/Word/WordEditArea.htm"
  5793. })
  5794. _box.appendChild(_iframe);
  5795. _box.appendChild(_jie);
  5796. _formdiv = new U.UF.UI.form(
  5797. "協同文檔",
  5798. _box, {
  5799. "id": "docs" + cid + stage + task + tool,
  5800. "style": {
  5801. "width": "90%",
  5802. "height": "90%",
  5803. "overflow": 'hidden'
  5804. },
  5805. "onresize": function () { }
  5806. }, {
  5807. closecallback: function () { }
  5808. }, {
  5809. "style": {
  5810. "height": "36px"
  5811. }
  5812. }).form; //創建窗體
  5813. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5814. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5815. })
  5816. _taskbar = {
  5817. "id": str + _formdiv.id,
  5818. "style": {
  5819. "backgroundImage": "url(/img/icon/doc.png)"
  5820. },
  5821. "name": "協同文檔",
  5822. "forms": _formdiv,
  5823. "click": function () {
  5824. U.MD.D.I.openApplication(str, obj, info);
  5825. }
  5826. }
  5827. break;
  5828. }
  5829. const script1 = document.createElement("script");
  5830. script1.type = "text/javascript";
  5831. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5832. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5833. const script2 = document.createElement("script");
  5834. script2.type = "text/javascript";
  5835. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5836. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5837. const script3 = document.createElement("script");
  5838. script3.type = "text/javascript";
  5839. script3.charset = "UTF-8";
  5840. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5841. const script4 = document.createElement("script");
  5842. script4.type = "text/javascript";
  5843. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5844. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  5845. if (_iframe) {
  5846. if (str == 'doc') {
  5847. _iframe = _formdiv.querySelector('iframe')
  5848. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5849. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5850. _iframe.contentWindow.document.body.appendChild(script1);
  5851. _iframe.contentWindow.document.body.appendChild(script2);
  5852. // _iframe.contentWindow.document.body.appendChild(script3);
  5853. _iframe.contentWindow.document.body.appendChild(script4);
  5854. })
  5855. if (onloadListener) {
  5856. _iframe.contentDocument.location.reload()
  5857. } else {
  5858. _iframe.contentDocument.location.reload()
  5859. }
  5860. } else if (str == 'mind') {
  5861. _iframe = _formdiv.querySelector('iframe')
  5862. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5863. _iframe.contentWindow.document.body.appendChild(script1);
  5864. _iframe.contentWindow.document.body.appendChild(script2);
  5865. _iframe.contentWindow.document.body.appendChild(script4);
  5866. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5867. })
  5868. if (onloadListener) {
  5869. _iframe.contentDocument.location.reload()
  5870. } else {
  5871. _iframe.contentDocument.location.reload()
  5872. }
  5873. } else {
  5874. _iframe.onload = () => {
  5875. _iframe.contentWindow.document.body.appendChild(script1);
  5876. _iframe.contentWindow.document.body.appendChild(script2);
  5877. // _iframe.contentWindow.document.body.appendChild(script3);
  5878. _iframe.contentWindow.document.body.appendChild(script4);
  5879. };
  5880. }
  5881. _jie.onclick = async () => {
  5882. let text = ''
  5883. if (aTool == 6) {
  5884. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5885. } else if (aTool == 3) {
  5886. text = await U.MD.D.I.getEditorContent(_iframe);
  5887. }
  5888. _loading.style.display = 'flex'
  5889. console.log(_loading);
  5890. var _ajs = _iframe.contentWindow.document.createElement("script");
  5891. _ajs.type = "text/javascript";
  5892. _ajs.innerHTML =
  5893. // 'console.log(' + _loading + ');\n' +
  5894. 'var _js = document.createElement("script");\n' +
  5895. '_js.type="text/javascript";\n' +
  5896. '_js.charset="UTF-8";\n' +
  5897. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5898. "_js.onload = function(){\n" +
  5899. ' var a = document.getElementsByTagName("img")\n' +
  5900. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5901. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5902. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5903. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5904. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5905. "beforeUpload_shishi(file," +
  5906. "'" +
  5907. _userid +
  5908. "'" +
  5909. ", " +
  5910. "'" +
  5911. _cid +
  5912. "'" +
  5913. ", " +
  5914. "'" +
  5915. _stage +
  5916. "'" +
  5917. ", " +
  5918. "'" +
  5919. _task +
  5920. "'" +
  5921. ", " +
  5922. "'" +
  5923. _tool +
  5924. "'" +
  5925. ", " +
  5926. "'" +
  5927. str + '_loadLi' +
  5928. "'" +
  5929. ", " +
  5930. "'" +
  5931. aTool +
  5932. "'" +
  5933. ", " +
  5934. "`" +
  5935. text +
  5936. "`" +
  5937. ")\n" +
  5938. " });\n" +
  5939. "}\n" +
  5940. "document.head.appendChild(_js);\n";
  5941. _iframe.contentWindow.document.head.appendChild(_ajs);
  5942. }
  5943. }
  5944. //U.MD.D.I.openClick(str);
  5945. //如果有任務欄信息
  5946. // if (_taskbar) {
  5947. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  5948. // }
  5949. }
  5950. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  5951. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5952. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5953. _userinfo = US.userInfo, //登錄用戶信息
  5954. _userid = US.userInfo.userid //登錄用戶id
  5955. let _iframe;
  5956. let _cid = cid,
  5957. _stage = stage,
  5958. _task = task,
  5959. _tool = tool;
  5960. var _jie = $$("div", {
  5961. "style": {
  5962. "position": "absolute",
  5963. "bottom": "50px",
  5964. "right": "50px",
  5965. "zIndex": "9999",
  5966. "backgroundColor": "#2268bc",
  5967. "color": "#fff",
  5968. "padding": "12px 20px",
  5969. "cursor": "pointer",
  5970. "borderRadius": "4px",
  5971. },
  5972. "innerHTML": "上傳模板"
  5973. })
  5974. let aTool = ''
  5975. let _loading = document.createElement('div')
  5976. _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;"
  5977. // _loading.id = "";
  5978. let _lchild = document.createElement('div')
  5979. let _limg = document.createElement('img')
  5980. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5981. _limg.style = "width: 26px;margin-right: 10px;"
  5982. _lchild.appendChild(_limg)
  5983. let _lspan = document.createElement('span')
  5984. _lspan.innerHTML = "上傳中..."
  5985. _lchild.appendChild(_lspan)
  5986. _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%);"
  5987. _loading.appendChild(_lchild)
  5988. var _box = $$('div', {
  5989. "style": {
  5990. "position": "relative",
  5991. "width": "100%",
  5992. "height": "100%",
  5993. },
  5994. })
  5995. _box.appendChild(_loading)
  5996. _box.id = str + '_loadLi'
  5997. switch (str) {
  5998. case "whiteboard":
  5999. aTool = 1;
  6000. _iframe = $$("iframe", {
  6001. "frameborder": "no",
  6002. "border": "0",
  6003. "scrolling ": "no",
  6004. "style": {
  6005. "cssText": "border:0;width:100%;height:100%"
  6006. },
  6007. "src": "https://iwb.cocorobo.hk/"
  6008. })
  6009. _box.appendChild(_iframe);
  6010. _box.appendChild(_jie);
  6011. _formdiv = new U.UF.UI.form(
  6012. "電子白板",
  6013. _box, {
  6014. "id": "whiteboards" + cid + stage + task + tool,
  6015. "style": {
  6016. "width": "90%",
  6017. "height": "90%",
  6018. "overflow": 'hidden'
  6019. },
  6020. "onresize": function () { }
  6021. }, {
  6022. closecallback: function () { }
  6023. }, {
  6024. "style": {
  6025. "height": "36px"
  6026. }
  6027. }).form; //創建窗體
  6028. _taskbar = {
  6029. "id": str + _formdiv.id,
  6030. "style": {
  6031. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6032. },
  6033. "name": "電子白板",
  6034. "forms": _formdiv,
  6035. "click": function () {
  6036. U.MD.D.I.openApplication(str, obj, info);
  6037. }
  6038. }
  6039. break;
  6040. case "mind":
  6041. aTool = 3;
  6042. _iframe = $$("iframe", {
  6043. "frameborder": "no",
  6044. "border": "0",
  6045. "scrolling ": "no",
  6046. "style": {
  6047. "cssText": "border:0;width:100%;height:100%"
  6048. },
  6049. "src": "/kityminder-editor/dist/index.html"
  6050. });
  6051. _box.appendChild(_iframe);
  6052. _box.appendChild(_jie);
  6053. _formdiv = new U.UF.UI.form(
  6054. "思維導圖",
  6055. _box, { //"/jsmind/example/demo.html"
  6056. "id": "minds" + cid + stage + task + tool,
  6057. "style": {
  6058. "width": "90%",
  6059. "height": "90%",
  6060. "overflow": 'hidden'
  6061. },
  6062. "onresize": function () { }
  6063. }, {
  6064. closecallback: function () { }
  6065. }, {
  6066. "style": {
  6067. "height": "36px"
  6068. }
  6069. }).form; //創建窗體
  6070. _taskbar = {
  6071. "id": str + _formdiv.id,
  6072. "style": {
  6073. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6074. },
  6075. "name": "思維導圖",
  6076. "forms": _formdiv,
  6077. "click": function () {
  6078. U.MD.D.I.openApplication(str, obj, info);
  6079. }
  6080. }
  6081. break;
  6082. case "doc":
  6083. aTool = 6;
  6084. _iframe = $$("iframe", {
  6085. "frameborder": "no",
  6086. "border": "0",
  6087. "scrolling ": "no",
  6088. "style": {
  6089. "cssText": "border:0;width:100%;height:100%"
  6090. },
  6091. "src": "/Office/Word/WordEditArea.htm"
  6092. })
  6093. _box.appendChild(_iframe);
  6094. _box.appendChild(_jie);
  6095. _formdiv = new U.UF.UI.form(
  6096. "協同文檔",
  6097. _box, {
  6098. "id": "docs" + cid + stage + task + tool,
  6099. "style": {
  6100. "width": "90%",
  6101. "height": "90%",
  6102. "overflow": 'hidden'
  6103. },
  6104. "onresize": function () { }
  6105. }, {
  6106. closecallback: function () { }
  6107. }, {
  6108. "style": {
  6109. "height": "36px"
  6110. }
  6111. }).form; //創建窗體
  6112. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6113. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6114. })
  6115. _taskbar = {
  6116. "id": str + _formdiv.id,
  6117. "style": {
  6118. "backgroundImage": "url(/img/icon/doc.png)"
  6119. },
  6120. "name": "協同文檔",
  6121. "forms": _formdiv,
  6122. "click": function () {
  6123. U.MD.D.I.openApplication(str, obj, info);
  6124. }
  6125. }
  6126. break;
  6127. }
  6128. if (_iframe) {
  6129. if (str == 'doc') {
  6130. _iframe = _formdiv.querySelector('iframe')
  6131. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6132. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6133. })
  6134. if (onloadListener) {
  6135. _iframe.contentDocument.location.reload()
  6136. } else {
  6137. _iframe.contentDocument.location.reload()
  6138. }
  6139. } else if (str == 'mind') {
  6140. _iframe = _formdiv.querySelector('iframe')
  6141. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6142. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6143. })
  6144. if (onloadListener) {
  6145. _iframe.contentDocument.location.reload()
  6146. } else {
  6147. _iframe.contentDocument.location.reload()
  6148. }
  6149. } else if (str == 'whiteboard') {
  6150. _iframe = _formdiv.querySelector('iframe')
  6151. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6152. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6153. })
  6154. if (onloadListener) {
  6155. _iframe.contentDocument.location.reload()
  6156. } else {
  6157. _iframe.contentDocument.location.reload()
  6158. }
  6159. } else {
  6160. _iframe.onload = () => {
  6161. };
  6162. }
  6163. _jie.onclick = async () => {
  6164. let text = ''
  6165. let type = '2'
  6166. if (aTool == 1) {
  6167. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6168. type = '3'
  6169. } else if (aTool == 6) {
  6170. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6171. type = '1'
  6172. } else if (aTool == 3) {
  6173. text = await U.MD.D.I.getEditorContent(_iframe);
  6174. type = '2'
  6175. }
  6176. _loading.style.display = 'flex'
  6177. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
  6178. }
  6179. }
  6180. //U.MD.D.I.openClick(str);
  6181. //如果有任務欄信息
  6182. // if (_taskbar) {
  6183. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6184. // }
  6185. }
  6186. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6187. var xmlhttp;
  6188. var Mac, Sn, DeviceId
  6189. if (window.XMLHttpRequest) {
  6190. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6191. xmlhttp = new XMLHttpRequest();
  6192. }
  6193. else {
  6194. // IE6, IE5 瀏覽器執行代碼
  6195. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6196. }
  6197. xmlhttp.onreadystatechange = function () {
  6198. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6199. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6200. // resolve(res.value[0][0].text);
  6201. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6202. $(fileInput).val('');
  6203. });
  6204. }
  6205. }
  6206. }
  6207. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6208. xmlhttp.send();
  6209. }
  6210. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6211. var xmlhttp;
  6212. var Mac, Sn, DeviceId
  6213. if (window.XMLHttpRequest) {
  6214. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6215. xmlhttp = new XMLHttpRequest();
  6216. }
  6217. else {
  6218. // IE6, IE5 瀏覽器執行代碼
  6219. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6220. }
  6221. xmlhttp.onreadystatechange = function () {
  6222. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6223. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6224. // resolve(res.value[0][0].text);
  6225. if (type == '2') {
  6226. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6227. $(fileInput).val('');
  6228. });
  6229. } else if (type == '3') {
  6230. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6231. }
  6232. } else {
  6233. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6234. }
  6235. }
  6236. }
  6237. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6238. xmlhttp.send();
  6239. }
  6240. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6241. var xmlhttp;
  6242. var Mac, Sn, DeviceId
  6243. if (window.XMLHttpRequest) {
  6244. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6245. xmlhttp = new XMLHttpRequest();
  6246. }
  6247. else {
  6248. // IE6, IE5 瀏覽器執行代碼
  6249. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6250. }
  6251. xmlhttp.onreadystatechange = function () {
  6252. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6253. if (xmlhttp.response) {
  6254. // resolve(res.value[0][0].text);
  6255. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6256. // $(fileInput).val('');
  6257. // });
  6258. span.innerHTML = '上傳成功'
  6259. setTimeout(() => {
  6260. loading.style.display = 'none'
  6261. }, 1000);
  6262. }
  6263. }
  6264. }
  6265. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6266. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6267. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6268. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6269. // 設置請求頭,表示請求體的編碼格式
  6270. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
  6271. // 設置請求體,使用url-encoded格式的數據
  6272. }
  6273. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6274. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6275. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6276. _userinfo = US.userInfo, //登錄用戶信息
  6277. _userid = US.userInfo.userid //登錄用戶id
  6278. let _iframe;
  6279. let _cid = cid,
  6280. _stage = stage,
  6281. _task = task,
  6282. _tool = tool;
  6283. var _jie = $$("div", {
  6284. "style": {
  6285. "position": "absolute",
  6286. "bottom": "50px",
  6287. "right": "50px",
  6288. "zIndex": "9999",
  6289. "backgroundColor": "#2268bc",
  6290. "color": "#fff",
  6291. "padding": "12px 20px",
  6292. "cursor": "pointer",
  6293. "borderRadius": "4px",
  6294. },
  6295. "innerHTML": "提交作業"
  6296. })
  6297. let aTool = ''
  6298. let _loading = document.createElement('div')
  6299. _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;"
  6300. // _loading.id = "";
  6301. let _lchild = document.createElement('div')
  6302. let _limg = document.createElement('img')
  6303. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6304. _limg.style = "width: 26px;margin-right: 10px;"
  6305. _lchild.appendChild(_limg)
  6306. let _lspan = document.createElement('span')
  6307. _lspan.innerHTML = "上傳中..."
  6308. _lchild.appendChild(_lspan)
  6309. _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%);"
  6310. _loading.appendChild(_lchild)
  6311. var _box = $$('div', {
  6312. "style": {
  6313. "position": "relative",
  6314. "width": "100%",
  6315. "height": "100%",
  6316. },
  6317. })
  6318. _box.appendChild(_loading)
  6319. _box.id = str + '_loadLi'
  6320. switch (str) {
  6321. case "CocoPi":
  6322. aTool = 57;
  6323. _iframe = $$("iframe", {
  6324. "frameborder": "no",
  6325. "border": "0",
  6326. "scrolling ": "no",
  6327. "style": {
  6328. "cssText": "border:0;width:100%;height:100%"
  6329. },
  6330. "src": "https://pi.cocorobo.hk/"
  6331. })
  6332. _box.appendChild(_iframe);
  6333. _box.appendChild(_jie);
  6334. _formdiv = new U.UF.UI.form(
  6335. "CocoPi",
  6336. _box, {
  6337. "id": "CocoPi" + cid + stage + task + tool,
  6338. "style": {
  6339. "width": "90%",
  6340. "height": "90%",
  6341. "overflow": 'hidden'
  6342. },
  6343. "onresize": function () { }
  6344. }, {
  6345. closecallback: function () { }
  6346. }, {
  6347. "style": {
  6348. "height": "36px"
  6349. }
  6350. }).form; //創建窗體
  6351. _taskbar = {
  6352. "id": str + _formdiv.id,
  6353. "style": {
  6354. "backgroundImage": "url(/img/icon/cocopi.png)"
  6355. },
  6356. "name": "CocoPi",
  6357. "forms": _formdiv,
  6358. "click": function () {
  6359. U.MD.D.I.openApplication(str, obj, info);
  6360. }
  6361. }
  6362. break;
  6363. }
  6364. if (_iframe) {
  6365. if (str == 'CocoPi') {
  6366. _iframe = _formdiv.querySelector('iframe')
  6367. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6368. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6369. })
  6370. if (onloadListener) {
  6371. _iframe.contentDocument.location.reload()
  6372. } else {
  6373. _iframe.contentDocument.location.reload()
  6374. }
  6375. }
  6376. _jie.onclick = async () => {
  6377. let text = ''
  6378. if (aTool == 57) {
  6379. text = _iframe.contentWindow.getLoadXmlStr()
  6380. }
  6381. _loading.style.display = 'flex'
  6382. console.log(_loading);
  6383. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6384. _loading.style.display = 'none'
  6385. let _div = document.createElement('div')
  6386. _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;"
  6387. let _inner = document.createElement('div')
  6388. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6389. _inner.innerHTML = "上傳成功"
  6390. _div.appendChild(_inner)
  6391. _iframe.contentWindow.window.document.body.appendChild(_div)
  6392. _div.onclick = () => {
  6393. _iframe.contentWindow.window.document.body.removeChild(_div)
  6394. }
  6395. setTimeout(() => {
  6396. _iframe.contentWindow.window.document.body.removeChild(_div)
  6397. }, 1000);
  6398. }, [], { "type": "POST", "withCredentials": true });
  6399. }
  6400. }
  6401. }
  6402. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  6403. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6404. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6405. _userid = student.userid, //登錄用戶id
  6406. _username = student.student //用戶名字
  6407. let _iframe;
  6408. let _cid = cid,
  6409. _stage = stage,
  6410. _task = task,
  6411. _tool = tool;
  6412. var _jie = $$("div", {
  6413. "style": {
  6414. "position": "absolute",
  6415. "bottom": "50px",
  6416. "right": "50px",
  6417. "zIndex": "9999",
  6418. "backgroundColor": "#2268bc",
  6419. "color": "#fff",
  6420. "padding": "12px 20px",
  6421. "cursor": "pointer",
  6422. "borderRadius": "4px",
  6423. },
  6424. "innerHTML": "提交作業"
  6425. })
  6426. let aTool = ''
  6427. let _loading = document.createElement('div')
  6428. _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;"
  6429. // _loading.id = "";
  6430. let _lchild = document.createElement('div')
  6431. let _limg = document.createElement('img')
  6432. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6433. _limg.style = "width: 26px;margin-right: 10px;"
  6434. _lchild.appendChild(_limg)
  6435. let _lspan = document.createElement('span')
  6436. _lspan.innerHTML = "上傳中..."
  6437. _lchild.appendChild(_lspan)
  6438. _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%);"
  6439. _loading.appendChild(_lchild)
  6440. var _box = $$('div', {
  6441. "style": {
  6442. "position": "relative",
  6443. "width": "100%",
  6444. "height": "100%",
  6445. },
  6446. })
  6447. _box.appendChild(_loading)
  6448. _box.id = str + '_loadLi'
  6449. switch (str) {
  6450. case "CocoPi":
  6451. aTool = 57;
  6452. _iframe = $$("iframe", {
  6453. "frameborder": "no",
  6454. "border": "0",
  6455. "scrolling ": "no",
  6456. "style": {
  6457. "cssText": "border:0;width:100%;height:100%"
  6458. },
  6459. "src": "https://pi.cocorobo.hk/"
  6460. })
  6461. _box.appendChild(_iframe);
  6462. _box.appendChild(_jie);
  6463. _formdiv = new U.UF.UI.form(
  6464. "CocoPi-" + _username,
  6465. _box, {
  6466. "id": "CocoPi" + cid + stage + task + tool + _userid,
  6467. "style": {
  6468. "width": "90%",
  6469. "height": "90%",
  6470. "overflow": 'hidden'
  6471. },
  6472. "onresize": function () { }
  6473. }, {
  6474. closecallback: function () { }
  6475. }, {
  6476. "style": {
  6477. "height": "36px"
  6478. }
  6479. }).form; //創建窗體
  6480. _taskbar = {
  6481. "id": str + _formdiv.id,
  6482. "style": {
  6483. "backgroundImage": "url(/img/icon/cocopi.png)"
  6484. },
  6485. "name": "CocoPi",
  6486. "forms": _formdiv,
  6487. "click": function () {
  6488. U.MD.D.I.openApplication(str, obj, info);
  6489. }
  6490. }
  6491. break;
  6492. }
  6493. if (_iframe) {
  6494. if (str == 'CocoPi') {
  6495. _iframe = _formdiv.querySelector('iframe')
  6496. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6497. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6498. })
  6499. if (onloadListener) {
  6500. _iframe.contentDocument.location.reload()
  6501. } else {
  6502. _iframe.contentDocument.location.reload()
  6503. }
  6504. }
  6505. _jie.onclick = async () => {
  6506. let text = ''
  6507. if (aTool == 57) {
  6508. text = _iframe.contentWindow.getLoadXmlStr()
  6509. }
  6510. _loading.style.display = 'flex'
  6511. console.log(_loading);
  6512. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6513. _loading.style.display = 'none'
  6514. let _div = document.createElement('div')
  6515. _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;"
  6516. let _inner = document.createElement('div')
  6517. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6518. _inner.innerHTML = "上傳成功"
  6519. _div.appendChild(_inner)
  6520. _iframe.contentWindow.window.document.body.appendChild(_div)
  6521. _div.onclick = () => {
  6522. _iframe.contentWindow.window.document.body.removeChild(_div)
  6523. }
  6524. setTimeout(() => {
  6525. _iframe.contentWindow.window.document.body.removeChild(_div)
  6526. }, 1000);
  6527. }, [], { "type": "POST", "withCredentials": true });
  6528. }
  6529. }
  6530. }
  6531. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  6532. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  6533. if (res.value[0].length > 0) {
  6534. if (atool == 57) {
  6535. iframe.contentWindow.loadingXml(res.value[0][0].content)
  6536. }
  6537. } else {
  6538. if (atool == 57) {
  6539. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6540. }
  6541. }
  6542. }, [], { "type": "POST", "withCredentials": true });
  6543. }