DeskTop.js 471 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039
  1. /*
  2. 此處為桌面系統啟動應用區域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面應用處理
  5. //判斷圖片是否在拖拽,如果是拖拽圖標的過程是不會打開圖片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教師桌面圖標的全局變量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  17. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  18. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  19. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  20. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  21. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  22. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  23. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  24. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  25. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  26. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  27. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  28. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  29. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  30. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  31. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  32. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  33. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  34. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  35. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  36. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  37. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  38. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  39. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  40. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  41. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  42. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  43. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  44. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  45. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  46. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  47. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  48. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  49. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  50. ];
  51. //極簡模式
  52. U.MD.D.I.easyDeskIcon = [
  53. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  55. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  56. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  57. // { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  58. ];
  59. //教師桌面圖標的全局變量
  60. U.MD.D.I.teacherDeskIcon2 = [
  61. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  62. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  63. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  64. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  65. // { "Name": "項目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  66. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  67. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  68. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  69. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  70. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  71. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  72. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  73. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  74. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  75. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  76. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  77. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  78. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  79. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  80. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  81. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  82. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  83. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  84. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  85. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  86. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  87. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  88. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  89. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  90. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  91. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  92. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  93. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  94. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  95. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  96. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  97. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  98. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  99. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  100. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  101. ];
  102. U.MD.D.I.studentDeskIcon = [
  103. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  104. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  105. // { "Name": "我的項目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  106. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  107. // { "Name": "我的評價", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  108. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  109. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  110. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  111. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  112. // { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  113. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  114. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  115. // { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  116. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  117. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  118. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  119. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  120. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  121. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  122. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  123. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  124. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  125. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  126. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  127. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  128. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  129. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  130. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  131. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  132. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  133. ];
  134. U.MD.D.I.studentDeskIcon2 = [
  135. // { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  136. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  137. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  138. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  139. ]
  140. U.MD.D.I.studentDeskIcon3 = [
  141. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  142. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  143. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  144. ]
  145. U.MD.D.I.schoolDeskIcon = [
  146. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  147. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  148. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  149. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  150. { "Name": "學習資料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  151. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  152. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  153. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  154. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  155. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  156. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  157. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  158. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  159. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  160. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  161. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  162. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  163. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  164. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  165. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  166. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  167. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  168. ];
  169. U.MD.D.I.orgDeskIcon = [
  170. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  171. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  172. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  173. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  174. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  175. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  176. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  177. ];
  178. U.MD.D.I.orgStemDeskIcon = [
  179. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  180. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  181. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  182. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  183. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  184. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  185. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  186. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  187. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  188. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  189. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  190. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  191. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  192. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  193. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  194. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  195. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  196. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  197. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  198. ];
  199. U.MD.D.I.szulsDeskIcon = [
  200. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  201. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  202. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  203. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  204. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  205. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  206. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  207. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  208. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  209. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  210. ];
  211. U.MD.D.I.hanDeskIcon = [
  212. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  213. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  214. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  215. { "Name": "漢字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  216. { "Name": "國學經典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  217. { "Name": "筆畫訓練", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  218. { "Name": "書法課堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  219. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  220. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  221. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  222. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  223. ];
  224. U.MD.D.I.GMteacherDeskIcon = [
  225. { "Name": "課程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  226. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  227. { "Name": "學生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  228. { "Name": "學生評價", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  229. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  230. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  231. { "Name": "班級管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  232. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  233. { "Name": "課程進展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  234. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  235. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  236. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  237. ];
  238. U.MD.D.I.GMstudentDeskIcon = [
  239. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  240. { "Name": "我的評價", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  241. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  242. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  243. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  244. ];
  245. //北師大
  246. U.MD.D.I.BSDNSteacherDeskIcon = [
  247. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  248. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  249. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  250. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  251. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  252. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  253. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  254. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  255. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  256. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  257. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  258. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  259. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  260. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  261. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  262. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  263. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  264. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  265. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  266. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  267. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  268. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  269. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  270. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  271. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  272. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  273. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  274. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  275. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  276. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  277. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  278. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  279. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  280. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  281. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  282. { "Name": "數字實驗室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  283. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  284. ];
  285. //松山湖
  286. U.MD.D.I.SONGteacherDeskIcon = [
  287. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  288. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  289. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  290. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  291. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  292. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  293. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  294. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  295. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  296. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  297. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  298. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  299. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  300. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  301. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  302. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  303. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  304. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  305. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  306. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  307. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  308. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  309. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  310. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  311. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  312. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  313. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  314. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  315. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  316. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  317. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  318. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  319. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  320. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  321. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  322. ];
  323. U.MD.D.I.tcStudentDeskIcon = [
  324. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  325. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  326. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  327. ];
  328. U.MD.D.I.tcTeacherDeskIcon = [
  329. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  330. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  331. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  332. // { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  333. // { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  334. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  335. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  336. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  337. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  338. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  339. ];
  340. U.MD.D.I.tcOrganizerDeskIcon = [
  341. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  342. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  343. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  344. { "Name": "師生項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  345. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  346. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  347. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  348. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  349. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  350. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  351. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  352. ];
  353. U.MD.D.I.szscStudentDeskIcon = [
  354. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  355. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  356. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  357. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  358. ];
  359. U.MD.D.I.szscTeacherDeskIcon = [
  360. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  361. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  362. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  363. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  364. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  365. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  366. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  367. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  368. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  369. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  370. ];
  371. U.MD.D.I.szscOrganizerDeskIcon = [
  372. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  373. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  374. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  375. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  376. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  377. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  378. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  379. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  380. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  381. ];
  382. U.MD.D.I.wankeTeacherDeskIcon = [ //1c3b9def-8fbe-11ed-b13d-005056b86db5
  383. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  384. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  385. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  386. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  387. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  388. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  389. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  390. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  391. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  392. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  393. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  394. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  395. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  396. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  397. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  398. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  399. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } }
  400. ];
  401. U.MD.D.I.wankeAdminDeskIcon = [
  402. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  403. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  404. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  405. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  406. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  407. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  408. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  409. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  410. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  411. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  412. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  413. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  414. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  415. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  416. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  417. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  418. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } }
  419. ];
  420. U.MD.D.I.lhsTeacherDeskIcon = [ //未來小學
  421. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  422. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  423. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  424. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  425. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  426. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  427. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  428. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  429. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  430. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  431. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  432. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  433. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  434. ];
  435. U.MD.D.I.lhsAdminDeskIcon = [ //未來小學admin
  436. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  437. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  438. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  439. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  440. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  441. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  442. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  443. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  444. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  445. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  446. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  447. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  448. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  449. ];
  450. //明德教師桌面圖標的全局變量
  451. U.MD.D.I.MingdeTeacherDeskIcon = [
  452. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  453. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  454. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  455. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  456. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  457. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  458. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  459. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  460. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  461. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  462. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  463. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  464. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  465. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  466. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  467. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  468. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  469. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  470. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  471. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  472. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  473. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  474. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  475. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  476. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  477. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  478. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  479. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  480. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  481. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  482. ];
  483. //97c4ee8b-d010-4042-986d-e9d3c217264f
  484. //教師桌面圖標的全局變量
  485. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  486. { "Name": "工作項目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  487. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  488. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  489. // { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  490. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  491. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  492. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  493. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  494. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  495. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  496. ];
  497. //福田
  498. U.MD.D.I.futianTeacherDeskIcon = [
  499. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  500. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  501. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  502. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  503. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  504. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  505. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  506. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  507. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  508. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  509. ];
  510. //福田
  511. U.MD.D.I.futianAdminDeskIcon = [
  512. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  513. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  514. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  515. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  516. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  517. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  518. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  519. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  520. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  521. ];
  522. //lotech
  523. U.MD.D.I.lotechTeacherDeskIcon = [
  524. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  525. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  526. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  527. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  528. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  529. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  530. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  531. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  532. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  533. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  534. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  535. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  536. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  537. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  538. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  539. ];
  540. //龍華中心小學教師桌面圖標的全局變量
  541. U.MD.D.I.longhuateacherDeskIcon = [
  542. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  543. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  544. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  545. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  546. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  547. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  548. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  549. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  550. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  551. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  552. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  553. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  554. ];
  555. //教科院實小教師桌面圖標的全局變量
  556. U.MD.D.I.siesteacherDeskIcon = [
  557. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  558. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  559. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  560. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  561. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  562. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  563. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  564. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  565. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  566. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  567. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  568. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  569. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  570. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  571. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  572. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  573. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  574. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  575. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  576. { "Name": "數據看板", "Url": "dataBoardSies", "style": { "cssText": "background-image:url(/img/icon/dataBoardSies.png)" } },
  577. ];
  578. //教科院實小教師桌面圖標的全局變量
  579. U.MD.D.I.siesStudentDeskIcon = [
  580. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  581. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  582. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  583. ];
  584. //福田
  585. U.MD.D.I.gdjgTeacherDeskIcon = [
  586. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  587. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  588. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  589. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  590. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  591. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  592. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  593. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  594. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  595. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  596. ];
  597. //gdjg
  598. U.MD.D.I.gdjgAdminDeskIcon = [
  599. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  600. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  601. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  602. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  603. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  604. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  605. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  606. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  607. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  608. ];
  609. //hk
  610. U.MD.D.I.hkteacherDeskIcon = [
  611. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  612. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  613. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  614. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  615. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  616. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  617. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  618. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  619. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  620. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  621. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  622. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  623. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  624. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  625. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  626. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  627. { "Name": "AI Agent", "Url": "aiagent", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  628. ];
  629. //hk
  630. U.MD.D.I.hkStudentDeskIcon = [
  631. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  632. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  633. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  634. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  635. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  636. ];
  637. //香海正覺蓮社佛教正覺中學
  638. U.MD.D.I.hkZJLSteacherDeskIcon = [
  639. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  640. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  641. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  642. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  643. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  644. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  645. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  646. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  647. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  648. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  649. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  650. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  651. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  652. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  653. ];
  654. //香海正覺蓮社佛教正覺中學
  655. U.MD.D.I.hkZJLSStudentDeskIcon = [
  656. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  657. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  658. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  659. ];
  660. //雲海
  661. U.MD.D.I.yunhaiTeacherDeskIcon = [
  662. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  663. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  664. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  665. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  666. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  667. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  668. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  669. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  670. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  671. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  672. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  673. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  674. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  675. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  676. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  677. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  678. ];
  679. //福田
  680. U.MD.D.I.heyuanTeacherDeskIcon = [
  681. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  682. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  683. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  684. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  685. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  686. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  687. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  688. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  689. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  690. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  691. ];
  692. //福田
  693. U.MD.D.I.heyuanAdminDeskIcon = [
  694. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  695. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  696. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  697. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  698. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  699. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  700. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  701. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  702. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  703. ];
  704. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  705. U.MD.D.I.szherTeacherDeskIcon = [
  706. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  707. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  708. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  709. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  710. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  711. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  712. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  713. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  714. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  715. ];
  716. //dsei
  717. U.MD.D.I.dseiTeacherDeskIcon = [
  718. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  719. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  720. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  721. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  722. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  723. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  724. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  725. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  726. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  727. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  728. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  729. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  730. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  731. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  732. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  733. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  734. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  735. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  736. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  737. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  738. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  739. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  740. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  741. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  742. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  743. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  744. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  745. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  746. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  747. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  748. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  749. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  750. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  751. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  752. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  753. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  754. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  755. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  756. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  757. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  758. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  759. ];
  760. //dsei
  761. U.MD.D.I.dseiAdminDeskIcon = [
  762. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  763. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  764. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  765. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  766. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  767. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  768. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  769. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  770. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  771. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  772. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  773. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  774. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  775. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  776. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  777. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  778. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  779. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  780. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  781. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  782. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  783. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  784. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  785. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  786. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  787. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  788. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  789. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  790. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  791. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  792. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  793. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  794. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  795. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  796. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  797. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  798. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  799. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  800. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  801. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  802. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  803. ];
  804. //dsei
  805. U.MD.D.I.dseiStudentDeskIcon = [
  806. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  807. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  808. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  809. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  810. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  811. ];
  812. //未來教育基地
  813. U.MD.D.I.szjkyTeacherDeskIcon = [
  814. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  815. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  816. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  817. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  818. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  819. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  820. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  821. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  822. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  823. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  824. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  825. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  826. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  827. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  828. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  829. ];
  830. //未來教育基地
  831. U.MD.D.I.szjkyAdminDeskIcon = [
  832. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  833. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  834. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  835. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  836. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  837. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  838. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  839. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  840. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  841. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  842. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  843. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  844. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  845. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  846. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  847. ];
  848. //未來教育基地
  849. U.MD.D.I.szjkyStudentDeskIcon = [
  850. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  851. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  852. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  853. ];
  854. //成華教育局
  855. U.MD.D.I.chjyjTeacherDeskIcon = [
  856. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  857. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  858. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  859. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  860. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  861. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  862. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  863. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  864. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  865. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  866. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  867. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  868. ];
  869. //成華教育局chjyj
  870. U.MD.D.I.chjyjAdminDeskIcon = [
  871. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  872. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  873. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  874. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  875. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  876. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  877. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  878. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  879. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  880. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  881. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  882. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  883. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  884. ];
  885. //成華教育局chjyj
  886. U.MD.D.I.chjyjStudentDeskIcon = [
  887. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  888. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  889. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  890. ];
  891. //tpc
  892. U.MD.D.I.tpcStudentDeskIcon = [
  893. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  894. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  895. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  896. ];
  897. //tpc
  898. U.MD.D.I.tpcTeacherDeskIcon = [
  899. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  900. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  901. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  902. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  903. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  904. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  905. ];
  906. //tpc
  907. U.MD.D.I.tpcAdminDeskIcon = [
  908. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  909. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  910. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  911. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  912. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  913. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  914. ];
  915. //THU-IOE
  916. U.MD.D.I.thuioeTeacherDeskIcon = [
  917. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  918. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  919. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  920. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  921. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  922. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  923. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  924. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  925. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  926. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  927. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  928. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  929. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  930. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  931. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  932. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  933. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  934. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  935. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  936. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  937. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  938. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  939. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  940. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  941. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  942. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  943. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  944. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  945. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  946. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  947. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  948. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  949. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  950. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  951. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  952. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  953. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  954. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  955. ];
  956. //THU-IOE
  957. U.MD.D.I.thuioeStudentDeskIcon = [
  958. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  959. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  960. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  961. ];
  962. //jccssyl
  963. U.MD.D.I.jccssylTeacherDeskIcon = [
  964. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  965. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  966. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  967. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  968. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  969. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  970. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  971. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  972. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  973. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  974. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  975. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  976. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  977. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  978. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  979. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  980. { "Name": "AI Agent", "Url": "aiagent", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  981. ];
  982. //jccssyl
  983. U.MD.D.I.jccssylStudentDeskIcon = [
  984. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  985. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  986. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  987. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  988. ];
  989. //#region 桌面初始化a
  990. /**
  991. * 初始化桌面的起始函數
  992. *
  993. */
  994. U.MD.D.I.init = function () {
  995. if ($("#U_MD_D_K")[0]) {
  996. //初始化桌面圖標
  997. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  998. // var clickUrl = ':12588/requestIp.php';
  999. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  1000. // U.MD.D.I.Ip = data;
  1001. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  1002. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  1003. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  1004. // })
  1005. // //初始化任務欄,因為是靜態的,所以直接改變樣式即可.
  1006. // })
  1007. }
  1008. }
  1009. /**
  1010. * 模式切換
  1011. *
  1012. */
  1013. U.MD.D.I.ModeCheck = function (type) {
  1014. if (US.Config.type == type) {
  1015. return
  1016. }
  1017. US.Config.type = type
  1018. $('.U_PBL_Check .active')[0].className = ''
  1019. if (type == 1) {
  1020. $('.U_PBL_Check div')[0].className = 'active'
  1021. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  1022. } else {
  1023. $('.U_PBL_Check div')[1].className = 'active'
  1024. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  1025. }
  1026. //初始化桌面圖標
  1027. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  1028. if (type == 2) {
  1029. U.MD.D.I.openApplication("project")
  1030. }
  1031. }
  1032. /**
  1033. * 隱藏任務欄
  1034. *
  1035. * @param {element} 桌面元素
  1036. */
  1037. U.MD.D.I.hiddenTaskbar = function (el) {
  1038. //任務欄位置變小
  1039. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  1040. //桌面的位置變大
  1041. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  1042. }
  1043. /**
  1044. * 隱藏任務欄
  1045. *
  1046. * @param {element} 桌面元素
  1047. */
  1048. U.MD.D.I.hiddenTaskbarout = function (el) {
  1049. //任務欄位置變小
  1050. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  1051. //任務欄位置變化
  1052. U.selectEl(el).css({ "bottom": "-60px" });
  1053. //桌面的位置變大
  1054. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  1055. }
  1056. }
  1057. /**
  1058. * 初始化打印桌面圖標
  1059. *
  1060. * @param {element} 桌面元素
  1061. */
  1062. U.MD.D.I.initDesktopIcons = function (el, type) {
  1063. var i, //用於循環
  1064. _content, //桌面圖標元素
  1065. _iconcontent, //桌面圖標元素
  1066. _frag = $$("frag"), //定義一個碎片元素
  1067. _type = US.userInfo.type,
  1068. _org = US.userInfo.org,
  1069. _oid = US.userInfo.organizeid,
  1070. _role = US.userInfo.role,
  1071. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //獲取教師端桌面圖標
  1072. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //極簡模式桌面圖標
  1073. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //獲取教師端桌面圖標
  1074. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //獲取學生端桌面圖標
  1075. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //獲取學生端桌面圖標
  1076. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //獲取學生端桌面圖標
  1077. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //獲取組織桌面圖標
  1078. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  1079. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  1080. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  1081. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //獲取測試學校桌面圖標
  1082. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon, //獲取北師大
  1083. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon, //獲取周佳名工作室
  1084. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon, //獲取松山湖
  1085. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon, //獲取萬科雙語
  1086. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon, //獲取萬科雙語
  1087. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon, //獲取萬科雙語
  1088. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon, //獲取未來小學
  1089. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon, //獲取未來小學
  1090. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //獲取光明學校桌面圖標
  1091. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //獲取光明學校桌面圖標
  1092. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon, //騰訊學生
  1093. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon, //騰訊學生
  1094. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon, //福田
  1095. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon, //福田
  1096. _szjkyTeacherDeskIconInfo = U.MD.D.I.szjkyTeacherDeskIcon, //未來教育基地
  1097. _szjkyAdminDeskIconInfo = U.MD.D.I.szjkyAdminDeskIcon, //未來教育基地
  1098. _szjkyStudentDeskIconInfo = U.MD.D.I.szjkyStudentDeskIcon, //未來教育基地
  1099. _chjyjTeacherDeskIconInfo = U.MD.D.I.chjyjTeacherDeskIcon, //成華教育局
  1100. _chjyjAdminDeskIconInfo = U.MD.D.I.chjyjAdminDeskIcon, //成華教育局
  1101. _chjyjStudentDeskIconInfo = U.MD.D.I.chjyjStudentDeskIcon, //成華教育局
  1102. _dseiTeacherDeskIconInfo = U.MD.D.I.dseiTeacherDeskIcon, //dsei
  1103. _dseiAdminDeskIconInfo = U.MD.D.I.dseiAdminDeskIcon, //dsei
  1104. _dseiStudentDeskIconInfo = U.MD.D.I.dseiStudentDeskIcon, //dsei
  1105. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon, //福田
  1106. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon, //福田
  1107. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon, //szher
  1108. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon, //
  1109. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon, //
  1110. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon, //lotech
  1111. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon, //龍華中心
  1112. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon, //sies
  1113. _siesStudentDeskIconInfo = U.MD.D.I.siesStudentDeskIcon, //sies
  1114. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon, //騰訊學生
  1115. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon, //hk
  1116. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon, //hk
  1117. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon, //hk
  1118. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon, //hk
  1119. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon, //雲海
  1120. _tpcStudentDeskIconInfo = U.MD.D.I.tpcStudentDeskIcon,
  1121. _tpcTeacherDeskIconInfo = U.MD.D.I.tpcTeacherDeskIcon,
  1122. _tpcOrganizerDeskIconInfo = U.MD.D.I.tpcAdminDeskIcon,
  1123. _thuioeStudentDeskIconInfo = U.MD.D.I.thuioeStudentDeskIcon, // thu-ioe
  1124. _thuioeTeacherDeskIconInfo = U.MD.D.I.thuioeTeacherDeskIcon, // thu-ioe
  1125. _jccssylStudentDeskIconInfo = U.MD.D.I.jccssylStudentDeskIcon, // jccssyl
  1126. _jccssylTeacherDeskIconInfo = U.MD.D.I.jccssylTeacherDeskIcon, // jccssyl
  1127. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon, //網絡夏令營
  1128. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon, //網絡夏令營
  1129. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon; //網絡夏令營
  1130. var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5", "05b62310-8cda-11ed-b13d-005056b86db5", '1c3b9def-8fbe-11ed-b13d-005056b86db5', '91305d49-01ba-11ed-8c78-005056b86db4', 'ea2a8c65-f38c-11ed-91d8-005056b86db5', '4c686762-1d0a-11ed-8c78-005056b86db5', 'b1095a3c-1d06-4ac8-854f-7c0d97f4ab41', '206c38d2-0cbe-11ee-91d8-005056b86db5'];
  1131. var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d", "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b", "150e3120-9195-11ed-b13d-005056b86db5", "ee40e8e3-e36c-4872-8105-cf395481012s", '97c4ee8b-d010-4042-986d-e9d3c217264f', 'ec0af97a-7c10-4259-a7eb-db9cc8174cdc', '4df1b570-f6ac-48fc-8d50-d0b157dae776', 'e632b86c-f89d-11ed-91d8-005056b86db5', 'b50cf65a-001c-11ee-91d8-005056b86db5', '578de748-05d2-11ee-91d8-005056b86db5', '54f09f1e-09f0-11ee-91d8-005056b86db5', '7b016f69-0f4f-11ee-91d8-005056b86db5', '1973f6c7-1561-11ee-91d8-005056b86db5', '2fa75e51-189a-11ee-91d8-005056b86db5', 'a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956','fbb00cc1-380b-4173-add4-59b3cf7682b5','63060b4a-89dc-4f0c-bf04-a1de22d479ff'];
  1132. //清楚桌面圖標
  1133. el.innerHTML = "";
  1134. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  1135. _teacherDesktopIconInfo.push(
  1136. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1137. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } }, { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } }, { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } }, { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  1138. )
  1139. _easyDesktopIconInfo.push({ "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } })
  1140. }
  1141. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  1142. _teacherDesktopIconInfo.push(
  1143. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1144. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  1145. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1146. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1147. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  1148. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  1149. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1150. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1151. { "Name": "評測管理", "Url": "testTeacher", "style": { "cssText": "background-image:url(/img/icon/testTeacher.png)" } },
  1152. { "Name": "評測中心", "Url": "testStudent", "style": { "cssText": "background-image:url(/img/icon/testStudent.png)" } },
  1153. )
  1154. }
  1155. if (_oid == 'c69c43a6-515a-11ee-91d8-005056b86db5') {
  1156. _teacherDesktopIconInfo.push(
  1157. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1158. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1159. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1160. )
  1161. }
  1162. if (_org == '03d24cf9-4fbc-4aeb-bb02-6f84f66e6344') {
  1163. _teacherDesktopIconInfo.push(
  1164. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1165. )
  1166. }
  1167. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5') {
  1168. _teacherDesktopIconInfo.push(
  1169. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1170. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1171. )
  1172. _studentDesktopIconInfo.push(
  1173. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1174. )
  1175. }
  1176. //麒麟二中 和 民新小學
  1177. if (_oid == 'cf8841e8-c7c0-11ed-9546-005056b86db5' || _oid == "d67940a5-510c-40ea-9c9a-2631ab03013a") {
  1178. _teacherDesktopIconInfo.push(
  1179. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1180. )
  1181. }
  1182. // 馬巒小學 和 龍華區教育科學研究院附屬學校 和 僑香學校
  1183. if (_oid == "602a1e3d-d031-11ed-9546-005056b86db5" || _oid == "f30a6615-5379-11ed-8c78-005056b86db5" || _oid == "82fcb5c7-c13b-11ed-8d51-005056b86db5") {
  1184. _teacherDesktopIconInfo.push(
  1185. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1186. )
  1187. }
  1188. //麒麟二中
  1189. if (_oid == 'cf8841e8-c7c0-11ed-9546-005056b86db5') {
  1190. _studentDesktopIconInfo.push(
  1191. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1192. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1193. )
  1194. }
  1195. //萬科雙語
  1196. if (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
  1197. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  1198. if (el.Name == '項目管理') {
  1199. el.Name = 'PBL項目'
  1200. }
  1201. return el
  1202. })
  1203. _studentDesktopIconInfo3.push(
  1204. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1205. )
  1206. }
  1207. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  1208. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  1209. return el.Name != '魔盒識字' && el.Name != '24點'
  1210. })
  1211. }
  1212. 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) {
  1213. _studentDesktopIconInfo.push({ "Name": "我的評價", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },)
  1214. }
  1215. //循環創建桌面圖標
  1216. if (type == 1) {
  1217. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  1218. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1219. _content = $$("div", {
  1220. className: "U_MD_D_KO",
  1221. "onmousedown": U.UF.C.closure(function (obj) {
  1222. //防止拖動圖標即打開了桌面應用
  1223. U.MD.D.click(this, obj);
  1224. }, [_studentDesktopIconInfo[i]]),
  1225. "onclick": U.UF.C.closure(function (obj) {
  1226. //防止拖動圖標即打開了桌面應用
  1227. U.MD.D.click(this, obj);
  1228. }, [_studentDesktopIconInfo[i]])
  1229. }, _frag); //
  1230. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1231. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1232. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1233. }
  1234. } else if (_type == 2 && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1235. for (i = 0; i < _hkZJLSStudentDeskIconInfo.length; i++) {
  1236. _content = $$("div", {
  1237. className: "U_MD_D_KO",
  1238. "onmousedown": U.UF.C.closure(function (obj) {
  1239. //防止拖動圖標即打開了桌面應用
  1240. U.MD.D.click(this, obj);
  1241. }, [_hkZJLSStudentDeskIconInfo[i]]),
  1242. "onclick": U.UF.C.closure(function (obj) {
  1243. //防止拖動圖標即打開了桌面應用
  1244. U.MD.D.click(this, obj);
  1245. }, [_hkZJLSStudentDeskIconInfo[i]])
  1246. }, _frag); //
  1247. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1248. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  1249. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  1250. } //
  1251. } else if (_type == 2 && (_org == "63060b4a-89dc-4f0c-bf04-a1de22d479ff")) {
  1252. for (i = 0; i < _jccssylStudentDeskIconInfo.length; i++) {
  1253. _content = $$("div", {
  1254. className: "U_MD_D_KO",
  1255. "onmousedown": U.UF.C.closure(function (obj) {
  1256. //防止拖動圖標即打開了桌面應用
  1257. U.MD.D.click(this, obj);
  1258. }, [_jccssylStudentDeskIconInfo[i]]),
  1259. "onclick": U.UF.C.closure(function (obj) {
  1260. //防止拖動圖標即打開了桌面應用
  1261. U.MD.D.click(this, obj);
  1262. }, [_jccssylStudentDeskIconInfo[i]])
  1263. }, _frag); //
  1264. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1265. $$("div", { className: "U_MD_D_KOS U_Img", "style": _jccssylStudentDeskIconInfo[i].style }, _iconcontent);
  1266. $$("div", { className: "U_MD_D_KOX", "innerHTML": _jccssylStudentDeskIconInfo[i].Name }, _iconcontent);
  1267. }
  1268. } else if (_type == 2 && (_org == "fbb00cc1-380b-4173-add4-59b3cf7682b5")) {
  1269. for (i = 0; i < _thuioeStudentDeskIconInfo.length; i++) {
  1270. _content = $$("div", {
  1271. className: "U_MD_D_KO",
  1272. "onmousedown": U.UF.C.closure(function (obj) {
  1273. //防止拖動圖標即打開了桌面應用
  1274. U.MD.D.click(this, obj);
  1275. }, [_thuioeStudentDeskIconInfo[i]]),
  1276. "onclick": U.UF.C.closure(function (obj) {
  1277. //防止拖動圖標即打開了桌面應用
  1278. U.MD.D.click(this, obj);
  1279. }, [_thuioeStudentDeskIconInfo[i]])
  1280. }, _frag); //
  1281. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1282. $$("div", { className: "U_MD_D_KOS U_Img", "style": _thuioeStudentDeskIconInfo[i].style }, _iconcontent);
  1283. $$("div", { className: "U_MD_D_KOX", "innerHTML": _thuioeStudentDeskIconInfo[i].Name }, _iconcontent);
  1284. }
  1285. } else if (_type == 2 && (_org == "a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956")) {
  1286. for (i = 0; i < _tpcStudentDeskIconInfo.length; i++) {
  1287. _content = $$("div", {
  1288. className: "U_MD_D_KO",
  1289. "onmousedown": U.UF.C.closure(function (obj) {
  1290. //防止拖動圖標即打開了桌面應用
  1291. U.MD.D.click(this, obj);
  1292. }, [_tpcStudentDeskIconInfo[i]]),
  1293. "onclick": U.UF.C.closure(function (obj) {
  1294. //防止拖動圖標即打開了桌面應用
  1295. U.MD.D.click(this, obj);
  1296. }, [_tpcStudentDeskIconInfo[i]])
  1297. }, _frag); //
  1298. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1299. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tpcStudentDeskIconInfo[i].style }, _iconcontent);
  1300. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tpcStudentDeskIconInfo[i].Name }, _iconcontent);
  1301. } //
  1302. } else if (_type == 2 && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5")) {
  1303. for (i = 0; i < _chjyjStudentDeskIconInfo.length; i++) {
  1304. _content = $$("div", {
  1305. className: "U_MD_D_KO",
  1306. "onmousedown": U.UF.C.closure(function (obj) {
  1307. //防止拖動圖標即打開了桌面應用
  1308. U.MD.D.click(this, obj);
  1309. }, [_chjyjStudentDeskIconInfo[i]]),
  1310. "onclick": U.UF.C.closure(function (obj) {
  1311. //防止拖動圖標即打開了桌面應用
  1312. U.MD.D.click(this, obj);
  1313. }, [_chjyjStudentDeskIconInfo[i]])
  1314. }, _frag); //
  1315. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1316. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjStudentDeskIconInfo[i].style }, _iconcontent);
  1317. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjStudentDeskIconInfo[i].Name }, _iconcontent);
  1318. }
  1319. } else if (_type == 2 && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5")) {
  1320. for (i = 0; i < _szjkyStudentDeskIconInfo.length; i++) {
  1321. _content = $$("div", {
  1322. className: "U_MD_D_KO",
  1323. "onmousedown": U.UF.C.closure(function (obj) {
  1324. //防止拖動圖標即打開了桌面應用
  1325. U.MD.D.click(this, obj);
  1326. }, [_szjkyStudentDeskIconInfo[i]]),
  1327. "onclick": U.UF.C.closure(function (obj) {
  1328. //防止拖動圖標即打開了桌面應用
  1329. U.MD.D.click(this, obj);
  1330. }, [_szjkyStudentDeskIconInfo[i]])
  1331. }, _frag); //
  1332. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1333. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyStudentDeskIconInfo[i].style }, _iconcontent);
  1334. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyStudentDeskIconInfo[i].Name }, _iconcontent);
  1335. }
  1336. } else if (_type == 2 && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5")) {
  1337. for (i = 0; i < _dseiStudentDeskIconInfo.length; i++) {
  1338. _content = $$("div", {
  1339. className: "U_MD_D_KO",
  1340. "onmousedown": U.UF.C.closure(function (obj) {
  1341. //防止拖動圖標即打開了桌面應用
  1342. U.MD.D.click(this, obj);
  1343. }, [_dseiStudentDeskIconInfo[i]]),
  1344. "onclick": U.UF.C.closure(function (obj) {
  1345. //防止拖動圖標即打開了桌面應用
  1346. U.MD.D.click(this, obj);
  1347. }, [_dseiStudentDeskIconInfo[i]])
  1348. }, _frag); //
  1349. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1350. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiStudentDeskIconInfo[i].style }, _iconcontent);
  1351. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiStudentDeskIconInfo[i].Name }, _iconcontent);
  1352. }
  1353. } else if (_type == 2 && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1354. for (i = 0; i < _siesStudentDeskIconInfo.length; i++) {
  1355. _content = $$("div", {
  1356. className: "U_MD_D_KO",
  1357. "onmousedown": U.UF.C.closure(function (obj) {
  1358. //防止拖動圖標即打開了桌面應用
  1359. U.MD.D.click(this, obj);
  1360. }, [_siesStudentDeskIconInfo[i]]),
  1361. "onclick": U.UF.C.closure(function (obj) {
  1362. //防止拖動圖標即打開了桌面應用
  1363. U.MD.D.click(this, obj);
  1364. }, [_siesStudentDeskIconInfo[i]])
  1365. }, _frag); //
  1366. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1367. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesStudentDeskIconInfo[i].style }, _iconcontent);
  1368. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesStudentDeskIconInfo[i].Name }, _iconcontent);
  1369. }
  1370. } else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1371. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  1372. _content = $$("div", {
  1373. className: "U_MD_D_KO",
  1374. "onmousedown": U.UF.C.closure(function (obj) {
  1375. //防止拖動圖標即打開了桌面應用
  1376. U.MD.D.click(this, obj);
  1377. }, [_hkStudentDeskIconInfo[i]]),
  1378. "onclick": U.UF.C.closure(function (obj) {
  1379. //防止拖動圖標即打開了桌面應用
  1380. U.MD.D.click(this, obj);
  1381. }, [_hkStudentDeskIconInfo[i]])
  1382. }, _frag); //
  1383. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1384. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  1385. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  1386. }
  1387. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  1388. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1389. _content = $$("div", {
  1390. className: "U_MD_D_KO",
  1391. "onmousedown": U.UF.C.closure(function (obj) {
  1392. //防止拖動圖標即打開了桌面應用
  1393. U.MD.D.click(this, obj);
  1394. }, [_studentDesktopIconInfo[i]]),
  1395. "onclick": U.UF.C.closure(function (obj) {
  1396. //防止拖動圖標即打開了桌面應用
  1397. U.MD.D.click(this, obj);
  1398. }, [_studentDesktopIconInfo[i]])
  1399. }, _frag); //
  1400. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1401. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1402. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1403. }
  1404. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  1405. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  1406. _content = $$("div", {
  1407. className: "U_MD_D_KO",
  1408. "onmousedown": U.UF.C.closure(function (obj) {
  1409. //防止拖動圖標即打開了桌面應用
  1410. U.MD.D.click(this, obj);
  1411. }, [_tcStudentDeskIconInfo[i]]),
  1412. "onclick": U.UF.C.closure(function (obj) {
  1413. //防止拖動圖標即打開了桌面應用
  1414. U.MD.D.click(this, obj);
  1415. }, [_tcStudentDeskIconInfo[i]])
  1416. }, _frag); //
  1417. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1418. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  1419. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  1420. }
  1421. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  1422. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  1423. _content = $$("div", {
  1424. className: "U_MD_D_KO",
  1425. "onmousedown": U.UF.C.closure(function (obj) {
  1426. //防止拖動圖標即打開了桌面應用
  1427. U.MD.D.click(this, obj);
  1428. }, [_szscStudentDeskIconInfo[i]]),
  1429. "onclick": U.UF.C.closure(function (obj) {
  1430. //防止拖動圖標即打開了桌面應用
  1431. U.MD.D.click(this, obj);
  1432. }, [_szscStudentDeskIconInfo[i]])
  1433. }, _frag); //
  1434. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1435. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  1436. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  1437. }
  1438. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  1439. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  1440. _content = $$("div", {
  1441. className: "U_MD_D_KO",
  1442. "onmousedown": U.UF.C.closure(function (obj) {
  1443. //防止拖動圖標即打開了桌面應用
  1444. U.MD.D.click(this, obj);
  1445. }, [_studentDesktopIconInfo3[i]]),
  1446. "onclick": U.UF.C.closure(function (obj) {
  1447. //防止拖動圖標即打開了桌面應用
  1448. U.MD.D.click(this, obj);
  1449. }, [_studentDesktopIconInfo3[i]])
  1450. }, _frag); //
  1451. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1452. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  1453. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  1454. }
  1455. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  1456. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  1457. _content = $$("div", {
  1458. className: "U_MD_D_KO",
  1459. "onmousedown": U.UF.C.closure(function (obj) {
  1460. //防止拖動圖標即打開了桌面應用
  1461. U.MD.D.click(this, obj);
  1462. }, [_studentDesktopIconInfo2[i]]),
  1463. "onclick": U.UF.C.closure(function (obj) {
  1464. //防止拖動圖標即打開了桌面應用
  1465. U.MD.D.click(this, obj);
  1466. }, [_studentDesktopIconInfo2[i]])
  1467. }, _frag); //
  1468. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1469. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  1470. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  1471. }
  1472. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  1473. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  1474. _content = $$("div", {
  1475. className: "U_MD_D_KO",
  1476. "onmousedown": U.UF.C.closure(function (obj) {
  1477. //防止拖動圖標即打開了桌面應用
  1478. U.MD.D.click(this, obj);
  1479. }, [_wanketeacherDesktopIconInfo[i]]),
  1480. "onclick": U.UF.C.closure(function (obj) {
  1481. //防止拖動圖標即打開了桌面應用
  1482. U.MD.D.click(this, obj);
  1483. }, [_wanketeacherDesktopIconInfo[i]])
  1484. }, _frag); //
  1485. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1486. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  1487. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  1488. }
  1489. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1490. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  1491. _content = $$("div", {
  1492. className: "U_MD_D_KO",
  1493. "onmousedown": U.UF.C.closure(function (obj) {
  1494. //防止拖動圖標即打開了桌面應用
  1495. U.MD.D.click(this, obj);
  1496. }, [_wankeAdminDesktopIconInfo[i]]),
  1497. "onclick": U.UF.C.closure(function (obj) {
  1498. //防止拖動圖標即打開了桌面應用
  1499. U.MD.D.click(this, obj);
  1500. }, [_wankeAdminDesktopIconInfo[i]])
  1501. }, _frag); //
  1502. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1503. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1504. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1505. }
  1506. } else if ((_type == 1 || _type == 4) && _org == "63060b4a-89dc-4f0c-bf04-a1de22d479ff") {
  1507. for (i = 0; i < _jccssylTeacherDeskIconInfo.length; i++) {
  1508. _content = $$("div", {
  1509. className: "U_MD_D_KO",
  1510. "onmousedown": U.UF.C.closure(function (obj) {
  1511. //防止拖動圖標即打開了桌面應用
  1512. U.MD.D.click(this, obj);
  1513. }, [_jccssylTeacherDeskIconInfo[i]]),
  1514. "onclick": U.UF.C.closure(function (obj) {
  1515. //防止拖動圖標即打開了桌面應用
  1516. U.MD.D.click(this, obj);
  1517. }, [_jccssylTeacherDeskIconInfo[i]])
  1518. }, _frag); //
  1519. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1520. $$("div", { className: "U_MD_D_KOS U_Img", "style": _jccssylTeacherDeskIconInfo[i].style }, _iconcontent);
  1521. $$("div", { className: "U_MD_D_KOX", "innerHTML": _jccssylTeacherDeskIconInfo[i].Name }, _iconcontent);
  1522. }
  1523. } else if ((_type == 1 || _type == 4) && _org == "a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956" && _role == 1) {
  1524. for (i = 0; i < _tpcOrganizerDeskIconInfo.length; i++) {
  1525. _content = $$("div", {
  1526. className: "U_MD_D_KO",
  1527. "onmousedown": U.UF.C.closure(function (obj) {
  1528. //防止拖動圖標即打開了桌面應用
  1529. U.MD.D.click(this, obj);
  1530. }, [_tpcOrganizerDeskIconInfo[i]]),
  1531. "onclick": U.UF.C.closure(function (obj) {
  1532. //防止拖動圖標即打開了桌面應用
  1533. U.MD.D.click(this, obj);
  1534. }, [_tpcOrganizerDeskIconInfo[i]])
  1535. }, _frag); //
  1536. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1537. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tpcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1538. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tpcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1539. }
  1540. } else if ((_type == 1 || _type == 4) && _org == "a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956" && _role == 0) {
  1541. for (i = 0; i < _tpcTeacherDeskIconInfo.length; i++) {
  1542. _content = $$("div", {
  1543. className: "U_MD_D_KO",
  1544. "onmousedown": U.UF.C.closure(function (obj) {
  1545. //防止拖動圖標即打開了桌面應用
  1546. U.MD.D.click(this, obj);
  1547. }, [_tpcTeacherDeskIconInfo[i]]),
  1548. "onclick": U.UF.C.closure(function (obj) {
  1549. //防止拖動圖標即打開了桌面應用
  1550. U.MD.D.click(this, obj);
  1551. }, [_tpcTeacherDeskIconInfo[i]])
  1552. }, _frag); //
  1553. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1554. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tpcTeacherDeskIconInfo[i].style }, _iconcontent);
  1555. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tpcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1556. }
  1557. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1558. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  1559. _content = $$("div", {
  1560. className: "U_MD_D_KO",
  1561. "onmousedown": U.UF.C.closure(function (obj) {
  1562. //防止拖動圖標即打開了桌面應用
  1563. U.MD.D.click(this, obj);
  1564. }, [_teacherDesktopIconInfo2[i]]),
  1565. "onclick": U.UF.C.closure(function (obj) {
  1566. //防止拖動圖標即打開了桌面應用
  1567. U.MD.D.click(this, obj);
  1568. }, [_teacherDesktopIconInfo2[i]])
  1569. }, _frag); //
  1570. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1571. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1572. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1573. }
  1574. } else if ((_type == 1 || _type == 4) && (_org == "fbb00cc1-380b-4173-add4-59b3cf7682b5")) {
  1575. for (i = 0; i < _thuioeTeacherDeskIconInfo.length; i++) {
  1576. _content = $$("div", {
  1577. className: "U_MD_D_KO",
  1578. "onmousedown": U.UF.C.closure(function (obj) {
  1579. //防止拖動圖標即打開了桌面應用
  1580. U.MD.D.click(this, obj);
  1581. }, [_thuioeTeacherDeskIconInfo[i]]),
  1582. "onclick": U.UF.C.closure(function (obj) {
  1583. //防止拖動圖標即打開了桌面應用
  1584. U.MD.D.click(this, obj);
  1585. }, [_thuioeTeacherDeskIconInfo[i]])
  1586. }, _frag); //
  1587. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1588. $$("div", { className: "U_MD_D_KOS U_Img", "style": _thuioeTeacherDeskIconInfo[i].style }, _iconcontent);
  1589. $$("div", { className: "U_MD_D_KOX", "innerHTML": _thuioeTeacherDeskIconInfo[i].Name }, _iconcontent);
  1590. }
  1591. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1592. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  1593. _content = $$("div", {
  1594. className: "U_MD_D_KO",
  1595. "onmousedown": U.UF.C.closure(function (obj) {
  1596. //防止拖動圖標即打開了桌面應用
  1597. U.MD.D.click(this, obj);
  1598. }, [_lotechTeacherDeskIconInfo[i]]),
  1599. "onclick": U.UF.C.closure(function (obj) {
  1600. //防止拖動圖標即打開了桌面應用
  1601. U.MD.D.click(this, obj);
  1602. }, [_lotechTeacherDeskIconInfo[i]])
  1603. }, _frag); //
  1604. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1605. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1606. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1607. }//
  1608. } else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1609. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1610. _content = $$("div", {
  1611. className: "U_MD_D_KO",
  1612. "onmousedown": U.UF.C.closure(function (obj) {
  1613. //防止拖動圖標即打開了桌面應用
  1614. U.MD.D.click(this, obj);
  1615. }, [_siesTeacherDeskIconInfo[i]]),
  1616. "onclick": U.UF.C.closure(function (obj) {
  1617. //防止拖動圖標即打開了桌面應用
  1618. U.MD.D.click(this, obj);
  1619. }, [_siesTeacherDeskIconInfo[i]])
  1620. }, _frag); //
  1621. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1622. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1623. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1624. }
  1625. } else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1626. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1627. _content = $$("div", {
  1628. className: "U_MD_D_KO",
  1629. "onmousedown": U.UF.C.closure(function (obj) {
  1630. //防止拖動圖標即打開了桌面應用
  1631. U.MD.D.click(this, obj);
  1632. }, [_longhuaTeacherDeskIconInfo[i]]),
  1633. "onclick": U.UF.C.closure(function (obj) {
  1634. //防止拖動圖標即打開了桌面應用
  1635. U.MD.D.click(this, obj);
  1636. }, [_longhuaTeacherDeskIconInfo[i]])
  1637. }, _frag); //
  1638. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1639. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1640. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1641. }
  1642. } else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1643. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1644. _content = $$("div", {
  1645. className: "U_MD_D_KO",
  1646. "onmousedown": U.UF.C.closure(function (obj) {
  1647. //防止拖動圖標即打開了桌面應用
  1648. U.MD.D.click(this, obj);
  1649. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1650. "onclick": U.UF.C.closure(function (obj) {
  1651. //防止拖動圖標即打開了桌面應用
  1652. U.MD.D.click(this, obj);
  1653. }, [_yunhaiTeacherDeskIconInfo[i]])
  1654. }, _frag); //
  1655. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1656. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1657. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1658. } //_hkStudentDeskIconInfo
  1659. } else if ((_type == 1 || _type == 4) && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1660. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.length; i++) {
  1661. _content = $$("div", {
  1662. className: "U_MD_D_KO",
  1663. "onmousedown": U.UF.C.closure(function (obj) {
  1664. //防止拖動圖標即打開了桌面應用
  1665. U.MD.D.click(this, obj);
  1666. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1667. "onclick": U.UF.C.closure(function (obj) {
  1668. //防止拖動圖標即打開了桌面應用
  1669. U.MD.D.click(this, obj);
  1670. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1671. }, _frag); //
  1672. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1673. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1674. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1675. }
  1676. } else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1677. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1678. _content = $$("div", {
  1679. className: "U_MD_D_KO",
  1680. "onmousedown": U.UF.C.closure(function (obj) {
  1681. //防止拖動圖標即打開了桌面應用
  1682. U.MD.D.click(this, obj);
  1683. }, [_hkTeacherDeskIconInfo[i]]),
  1684. "onclick": U.UF.C.closure(function (obj) {
  1685. //防止拖動圖標即打開了桌面應用
  1686. U.MD.D.click(this, obj);
  1687. }, [_hkTeacherDeskIconInfo[i]])
  1688. }, _frag); //
  1689. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1690. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1691. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1692. }
  1693. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1694. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1695. _content = $$("div", {
  1696. className: "U_MD_D_KO",
  1697. "onmousedown": U.UF.C.closure(function (obj) {
  1698. //防止拖動圖標即打開了桌面應用
  1699. U.MD.D.click(this, obj);
  1700. }, [_gdjgAdminDeskIconInfo[i]]),
  1701. "onclick": U.UF.C.closure(function (obj) {
  1702. //防止拖動圖標即打開了桌面應用
  1703. U.MD.D.click(this, obj);
  1704. }, [_gdjgAdminDeskIconInfo[i]])
  1705. }, _frag); //
  1706. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1707. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1708. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1709. }
  1710. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1711. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1712. _content = $$("div", {
  1713. className: "U_MD_D_KO",
  1714. "onmousedown": U.UF.C.closure(function (obj) {
  1715. //防止拖動圖標即打開了桌面應用
  1716. U.MD.D.click(this, obj);
  1717. }, [_gdjgTeacherDeskIconInfo[i]]),
  1718. "onclick": U.UF.C.closure(function (obj) {
  1719. //防止拖動圖標即打開了桌面應用
  1720. U.MD.D.click(this, obj);
  1721. }, [_gdjgTeacherDeskIconInfo[i]])
  1722. }, _frag); //
  1723. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1724. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1725. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1726. }
  1727. } else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1728. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1729. _content = $$("div", {
  1730. className: "U_MD_D_KO",
  1731. "onmousedown": U.UF.C.closure(function (obj) {
  1732. //防止拖動圖標即打開了桌面應用
  1733. U.MD.D.click(this, obj);
  1734. }, [_szherTeacherDeskIconInfo[i]]),
  1735. "onclick": U.UF.C.closure(function (obj) {
  1736. //防止拖動圖標即打開了桌面應用
  1737. U.MD.D.click(this, obj);
  1738. }, [_szherTeacherDeskIconInfo[i]])
  1739. }, _frag); //
  1740. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1741. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1742. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1743. }
  1744. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1745. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1746. _content = $$("div", {
  1747. className: "U_MD_D_KO",
  1748. "onmousedown": U.UF.C.closure(function (obj) {
  1749. //防止拖動圖標即打開了桌面應用
  1750. U.MD.D.click(this, obj);
  1751. }, [_heyuannAdminDeskIconInfo[i]]),
  1752. "onclick": U.UF.C.closure(function (obj) {
  1753. //防止拖動圖標即打開了桌面應用
  1754. U.MD.D.click(this, obj);
  1755. }, [_heyuannAdminDeskIconInfo[i]])
  1756. }, _frag); //
  1757. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1758. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1759. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1760. }
  1761. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1762. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1763. _content = $$("div", {
  1764. className: "U_MD_D_KO",
  1765. "onmousedown": U.UF.C.closure(function (obj) {
  1766. //防止拖動圖標即打開了桌面應用
  1767. U.MD.D.click(this, obj);
  1768. }, [_heyuanTeacherDeskIconInfo[i]]),
  1769. "onclick": U.UF.C.closure(function (obj) {
  1770. //防止拖動圖標即打開了桌面應用
  1771. U.MD.D.click(this, obj);
  1772. }, [_heyuanTeacherDeskIconInfo[i]])
  1773. }, _frag); //
  1774. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1775. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1776. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1777. } //
  1778. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 1) {
  1779. for (i = 0; i < _dseiAdminDeskIconInfo.length; i++) {
  1780. _content = $$("div", {
  1781. className: "U_MD_D_KO",
  1782. "onmousedown": U.UF.C.closure(function (obj) {
  1783. //防止拖動圖標即打開了桌面應用
  1784. U.MD.D.click(this, obj);
  1785. }, [_dseiAdminDeskIconInfo[i]]),
  1786. "onclick": U.UF.C.closure(function (obj) {
  1787. //防止拖動圖標即打開了桌面應用
  1788. U.MD.D.click(this, obj);
  1789. }, [_dseiAdminDeskIconInfo[i]])
  1790. }, _frag); //
  1791. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1792. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiAdminDeskIconInfo[i].style }, _iconcontent);
  1793. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiAdminDeskIconInfo[i].Name }, _iconcontent);
  1794. }
  1795. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 0) {
  1796. for (i = 0; i < _dseiTeacherDeskIconInfo.length; i++) {
  1797. _content = $$("div", {
  1798. className: "U_MD_D_KO",
  1799. "onmousedown": U.UF.C.closure(function (obj) {
  1800. //防止拖動圖標即打開了桌面應用
  1801. U.MD.D.click(this, obj);
  1802. }, [_dseiTeacherDeskIconInfo[i]]),
  1803. "onclick": U.UF.C.closure(function (obj) {
  1804. //防止拖動圖標即打開了桌面應用
  1805. U.MD.D.click(this, obj);
  1806. }, [_dseiTeacherDeskIconInfo[i]])
  1807. }, _frag); //
  1808. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1809. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiTeacherDeskIconInfo[i].style }, _iconcontent);
  1810. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1811. } //
  1812. } else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 1) {
  1813. for (i = 0; i < _chjyjAdminDeskIconInfo.length; i++) {
  1814. _content = $$("div", {
  1815. className: "U_MD_D_KO",
  1816. "onmousedown": U.UF.C.closure(function (obj) {
  1817. //防止拖動圖標即打開了桌面應用
  1818. U.MD.D.click(this, obj);
  1819. }, [_chjyjAdminDeskIconInfo[i]]),
  1820. "onclick": U.UF.C.closure(function (obj) {
  1821. //防止拖動圖標即打開了桌面應用
  1822. U.MD.D.click(this, obj);
  1823. }, [_chjyjAdminDeskIconInfo[i]])
  1824. }, _frag); //
  1825. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1826. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjAdminDeskIconInfo[i].style }, _iconcontent);
  1827. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjAdminDeskIconInfo[i].Name }, _iconcontent);
  1828. }//
  1829. } else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 0) {
  1830. for (i = 0; i < _chjyjTeacherDeskIconInfo.length; i++) {
  1831. _content = $$("div", {
  1832. className: "U_MD_D_KO",
  1833. "onmousedown": U.UF.C.closure(function (obj) {
  1834. //防止拖動圖標即打開了桌面應用
  1835. U.MD.D.click(this, obj);
  1836. }, [_chjyjTeacherDeskIconInfo[i]]),
  1837. "onclick": U.UF.C.closure(function (obj) {
  1838. //防止拖動圖標即打開了桌面應用
  1839. U.MD.D.click(this, obj);
  1840. }, [_chjyjTeacherDeskIconInfo[i]])
  1841. }, _frag); //
  1842. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1843. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjTeacherDeskIconInfo[i].style }, _iconcontent);
  1844. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjTeacherDeskIconInfo[i].Name }, _iconcontent);
  1845. }
  1846. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 1) {
  1847. for (i = 0; i < _szjkyAdminDeskIconInfo.length; i++) {
  1848. _content = $$("div", {
  1849. className: "U_MD_D_KO",
  1850. "onmousedown": U.UF.C.closure(function (obj) {
  1851. //防止拖動圖標即打開了桌面應用
  1852. U.MD.D.click(this, obj);
  1853. }, [_szjkyAdminDeskIconInfo[i]]),
  1854. "onclick": U.UF.C.closure(function (obj) {
  1855. //防止拖動圖標即打開了桌面應用
  1856. U.MD.D.click(this, obj);
  1857. }, [_szjkyAdminDeskIconInfo[i]])
  1858. }, _frag); //
  1859. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1860. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyAdminDeskIconInfo[i].style }, _iconcontent);
  1861. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyAdminDeskIconInfo[i].Name }, _iconcontent);
  1862. }//
  1863. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 0) {
  1864. for (i = 0; i < _szjkyTeacherDeskIconInfo.length; i++) {
  1865. _content = $$("div", {
  1866. className: "U_MD_D_KO",
  1867. "onmousedown": U.UF.C.closure(function (obj) {
  1868. //防止拖動圖標即打開了桌面應用
  1869. U.MD.D.click(this, obj);
  1870. }, [_szjkyTeacherDeskIconInfo[i]]),
  1871. "onclick": U.UF.C.closure(function (obj) {
  1872. //防止拖動圖標即打開了桌面應用
  1873. U.MD.D.click(this, obj);
  1874. }, [_szjkyTeacherDeskIconInfo[i]])
  1875. }, _frag); //
  1876. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1877. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyTeacherDeskIconInfo[i].style }, _iconcontent);
  1878. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyTeacherDeskIconInfo[i].Name }, _iconcontent);
  1879. }
  1880. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1881. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1882. _content = $$("div", {
  1883. className: "U_MD_D_KO",
  1884. "onmousedown": U.UF.C.closure(function (obj) {
  1885. //防止拖動圖標即打開了桌面應用
  1886. U.MD.D.click(this, obj);
  1887. }, [_futianAdminDeskIconInfo[i]]),
  1888. "onclick": U.UF.C.closure(function (obj) {
  1889. //防止拖動圖標即打開了桌面應用
  1890. U.MD.D.click(this, obj);
  1891. }, [_futianAdminDeskIconInfo[i]])
  1892. }, _frag); //
  1893. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1894. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1895. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1896. }
  1897. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1898. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1899. _content = $$("div", {
  1900. className: "U_MD_D_KO",
  1901. "onmousedown": U.UF.C.closure(function (obj) {
  1902. //防止拖動圖標即打開了桌面應用
  1903. U.MD.D.click(this, obj);
  1904. }, [_futianTeacherDeskIconInfo[i]]),
  1905. "onclick": U.UF.C.closure(function (obj) {
  1906. //防止拖動圖標即打開了桌面應用
  1907. U.MD.D.click(this, obj);
  1908. }, [_futianTeacherDeskIconInfo[i]])
  1909. }, _frag); //
  1910. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1911. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1912. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1913. }
  1914. } else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1915. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1916. _content = $$("div", {
  1917. className: "U_MD_D_KO",
  1918. "onmousedown": U.UF.C.closure(function (obj) {
  1919. //防止拖動圖標即打開了桌面應用
  1920. U.MD.D.click(this, obj);
  1921. }, [_MingdeTeacherDeskIcon[i]]),
  1922. "onclick": U.UF.C.closure(function (obj) {
  1923. //防止拖動圖標即打開了桌面應用
  1924. U.MD.D.click(this, obj);
  1925. }, [_MingdeTeacherDeskIcon[i]])
  1926. }, _frag); //
  1927. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1928. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1929. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1930. }
  1931. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1932. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1933. _content = $$("div", {
  1934. className: "U_MD_D_KO",
  1935. "onmousedown": U.UF.C.closure(function (obj) {
  1936. //防止拖動圖標即打開了桌面應用
  1937. U.MD.D.click(this, obj);
  1938. }, [_lhsAdminDesktopIconInfo[i]]),
  1939. "onclick": U.UF.C.closure(function (obj) {
  1940. //防止拖動圖標即打開了桌面應用
  1941. U.MD.D.click(this, obj);
  1942. }, [_lhsAdminDesktopIconInfo[i]])
  1943. }, _frag); //
  1944. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1945. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1946. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1947. }
  1948. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1949. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1950. _content = $$("div", {
  1951. className: "U_MD_D_KO",
  1952. "onmousedown": U.UF.C.closure(function (obj) {
  1953. //防止拖動圖標即打開了桌面應用
  1954. U.MD.D.click(this, obj);
  1955. }, [_lhsteacherDesktopIconInfo[i]]),
  1956. "onclick": U.UF.C.closure(function (obj) {
  1957. //防止拖動圖標即打開了桌面應用
  1958. U.MD.D.click(this, obj);
  1959. }, [_lhsteacherDesktopIconInfo[i]])
  1960. }, _frag); //
  1961. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1962. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1963. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1964. }
  1965. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1966. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1967. _content = $$("div", {
  1968. className: "U_MD_D_KO",
  1969. "onmousedown": U.UF.C.closure(function (obj) {
  1970. //防止拖動圖標即打開了桌面應用
  1971. U.MD.D.click(this, obj);
  1972. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1973. "onclick": U.UF.C.closure(function (obj) {
  1974. //防止拖動圖標即打開了桌面應用
  1975. U.MD.D.click(this, obj);
  1976. }, [_zhoujiateacherDesktopIconInfo[i]])
  1977. }, _frag); //
  1978. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1979. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1980. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1981. }
  1982. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1983. for (i = 0; i < _hanDeskIcon.length; i++) {
  1984. _content = $$("div", {
  1985. className: "U_MD_D_KO",
  1986. "onmousedown": U.UF.C.closure(function (obj) {
  1987. //防止拖動圖標即打開了桌面應用
  1988. U.MD.D.click(this, obj);
  1989. }, [_hanDeskIcon[i]]),
  1990. "onclick": U.UF.C.closure(function (obj) {
  1991. //防止拖動圖標即打開了桌面應用
  1992. U.MD.D.click(this, obj);
  1993. }, [_hanDeskIcon[i]])
  1994. }, _frag); //
  1995. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1996. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1997. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1998. }
  1999. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  2000. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  2001. _content = $$("div", {
  2002. className: "U_MD_D_KO",
  2003. "onmousedown": U.UF.C.closure(function (obj) {
  2004. //防止拖動圖標即打開了桌面應用
  2005. U.MD.D.click(this, obj);
  2006. }, [_orgStemDeskIcon[i]]),
  2007. "onclick": U.UF.C.closure(function (obj) {
  2008. //防止拖動圖標即打開了桌面應用
  2009. U.MD.D.click(this, obj);
  2010. }, [_orgStemDeskIcon[i]])
  2011. }, _frag); //
  2012. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2013. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  2014. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  2015. }
  2016. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  2017. for (i = 0; i < _szulsDeskIcon.length; i++) {
  2018. _content = $$("div", {
  2019. className: "U_MD_D_KO",
  2020. "onmousedown": U.UF.C.closure(function (obj) {
  2021. //防止拖動圖標即打開了桌面應用
  2022. U.MD.D.click(this, obj);
  2023. }, [_szulsDeskIcon[i]]),
  2024. "onclick": U.UF.C.closure(function (obj) {
  2025. //防止拖動圖標即打開了桌面應用
  2026. U.MD.D.click(this, obj);
  2027. }, [_szulsDeskIcon[i]])
  2028. }, _frag); //
  2029. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2030. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  2031. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  2032. }
  2033. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  2034. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  2035. _content = $$("div", {
  2036. className: "U_MD_D_KO",
  2037. "onmousedown": U.UF.C.closure(function (obj) {
  2038. //防止拖動圖標即打開了桌面應用
  2039. U.MD.D.click(this, obj);
  2040. }, [_orgDesktopIconInfo[i]]),
  2041. "onclick": U.UF.C.closure(function (obj) {
  2042. //防止拖動圖標即打開了桌面應用
  2043. U.MD.D.click(this, obj);
  2044. }, [_orgDesktopIconInfo[i]])
  2045. }, _frag); //
  2046. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2047. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  2048. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  2049. }
  2050. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2051. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  2052. _content = $$("div", {
  2053. className: "U_MD_D_KO",
  2054. "onmousedown": U.UF.C.closure(function (obj) {
  2055. //防止拖動圖標即打開了桌面應用
  2056. U.MD.D.click(this, obj);
  2057. }, [_schoolDesktopIconInfo[i]]),
  2058. "onclick": U.UF.C.closure(function (obj) {
  2059. //防止拖動圖標即打開了桌面應用
  2060. U.MD.D.click(this, obj);
  2061. }, [_schoolDesktopIconInfo[i]])
  2062. }, _frag); //
  2063. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2064. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  2065. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  2066. }
  2067. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  2068. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  2069. _content = $$("div", {
  2070. className: "U_MD_D_KO",
  2071. "onmousedown": U.UF.C.closure(function (obj) {
  2072. //防止拖動圖標即打開了桌面應用
  2073. U.MD.D.click(this, obj);
  2074. }, [_GMteacherDesktopIconInfo[i]]),
  2075. "onclick": U.UF.C.closure(function (obj) {
  2076. //防止拖動圖標即打開了桌面應用
  2077. U.MD.D.click(this, obj);
  2078. }, [_GMteacherDesktopIconInfo[i]])
  2079. }, _frag); //
  2080. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2081. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  2082. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  2083. }
  2084. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  2085. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  2086. _content = $$("div", {
  2087. className: "U_MD_D_KO",
  2088. "onmousedown": U.UF.C.closure(function (obj) {
  2089. //防止拖動圖標即打開了桌面應用
  2090. U.MD.D.click(this, obj);
  2091. }, [_SONGteacherDesktopIconInfo[i]]),
  2092. "onclick": U.UF.C.closure(function (obj) {
  2093. //防止拖動圖標即打開了桌面應用
  2094. U.MD.D.click(this, obj);
  2095. }, [_SONGteacherDesktopIconInfo[i]])
  2096. }, _frag); //
  2097. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2098. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  2099. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  2100. }
  2101. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  2102. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  2103. _content = $$("div", {
  2104. className: "U_MD_D_KO",
  2105. "onmousedown": U.UF.C.closure(function (obj) {
  2106. //防止拖動圖標即打開了桌面應用
  2107. U.MD.D.click(this, obj);
  2108. }, [_GMstudentDesktopIconInfo[i]]),
  2109. "onclick": U.UF.C.closure(function (obj) {
  2110. //防止拖動圖標即打開了桌面應用
  2111. U.MD.D.click(this, obj);
  2112. }, [_GMstudentDesktopIconInfo[i]])
  2113. }, _frag); //
  2114. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2115. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  2116. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  2117. }
  2118. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  2119. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  2120. _content = $$("div", {
  2121. className: "U_MD_D_KO",
  2122. "onmousedown": U.UF.C.closure(function (obj) {
  2123. //防止拖動圖標即打開了桌面應用
  2124. U.MD.D.click(this, obj);
  2125. }, [_tcTeacherDeskIconInfo[i]]),
  2126. "onclick": U.UF.C.closure(function (obj) {
  2127. //防止拖動圖標即打開了桌面應用
  2128. U.MD.D.click(this, obj);
  2129. }, [_tcTeacherDeskIconInfo[i]])
  2130. }, _frag); //
  2131. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2132. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  2133. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  2134. }
  2135. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  2136. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  2137. _content = $$("div", {
  2138. className: "U_MD_D_KO",
  2139. "onmousedown": U.UF.C.closure(function (obj) {
  2140. //防止拖動圖標即打開了桌面應用
  2141. U.MD.D.click(this, obj);
  2142. }, [_tcOrganizerDeskIconInfo[i]]),
  2143. "onclick": U.UF.C.closure(function (obj) {
  2144. //防止拖動圖標即打開了桌面應用
  2145. U.MD.D.click(this, obj);
  2146. }, [_tcOrganizerDeskIconInfo[i]])
  2147. }, _frag); //
  2148. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2149. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  2150. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  2151. }
  2152. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  2153. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  2154. _content = $$("div", {
  2155. className: "U_MD_D_KO",
  2156. "onmousedown": U.UF.C.closure(function (obj) {
  2157. //防止拖動圖標即打開了桌面應用
  2158. U.MD.D.click(this, obj);
  2159. }, [_szscTeacherDeskIconInfo[i]]),
  2160. "onclick": U.UF.C.closure(function (obj) {
  2161. //防止拖動圖標即打開了桌面應用
  2162. U.MD.D.click(this, obj);
  2163. }, [_szscTeacherDeskIconInfo[i]])
  2164. }, _frag); //
  2165. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2166. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  2167. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  2168. }
  2169. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  2170. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  2171. _content = $$("div", {
  2172. className: "U_MD_D_KO",
  2173. "onmousedown": U.UF.C.closure(function (obj) {
  2174. //防止拖動圖標即打開了桌面應用
  2175. U.MD.D.click(this, obj);
  2176. }, [_szscOrganizerDeskIconInfo[i]]),
  2177. "onclick": U.UF.C.closure(function (obj) {
  2178. //防止拖動圖標即打開了桌面應用
  2179. U.MD.D.click(this, obj);
  2180. }, [_szscOrganizerDeskIconInfo[i]])
  2181. }, _frag); //
  2182. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2183. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  2184. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  2185. }
  2186. } else {
  2187. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  2188. _content = $$("div", {
  2189. className: "U_MD_D_KO",
  2190. "onmousedown": U.UF.C.closure(function (obj) {
  2191. //防止拖動圖標即打開了桌面應用
  2192. U.MD.D.click(this, obj);
  2193. }, [_teacherDesktopIconInfo[i]]),
  2194. "onclick": U.UF.C.closure(function (obj) {
  2195. //防止拖動圖標即打開了桌面應用
  2196. U.MD.D.click(this, obj);
  2197. }, [_teacherDesktopIconInfo[i]])
  2198. }, _frag); //
  2199. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2200. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  2201. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  2202. }
  2203. }
  2204. } else {
  2205. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  2206. _content = $$("div", {
  2207. className: "U_MD_D_KO",
  2208. style: { 'width': '124px', 'height': '145px' },
  2209. "onmousedown": U.UF.C.closure(function (obj) {
  2210. //防止拖動圖標即打開了桌面應用
  2211. U.MD.D.click(this, obj);
  2212. }, [_easyDesktopIconInfo[i]]),
  2213. "onclick": U.UF.C.closure(function (obj) {
  2214. //防止拖動圖標即打開了桌面應用
  2215. U.MD.D.click(this, obj);
  2216. }, [_easyDesktopIconInfo[i]])
  2217. }, _frag); //
  2218. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  2219. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  2220. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  2221. }
  2222. }
  2223. if (type == 1) {
  2224. //加載好後給圖標定位
  2225. U.MD.D.iconPostion($(_frag).Child());
  2226. } else {
  2227. //加載好後給圖標定位
  2228. U.MD.D.iconPostion2($(_frag).Child());
  2229. }
  2230. //把圖標加載到頁面
  2231. el.appendChild(_frag);
  2232. }
  2233. /**
  2234. * 顯示任務欄
  2235. *
  2236. * @param {element} 桌面元素
  2237. */
  2238. U.MD.D.I.displayTaskbar = function (el) {
  2239. //判斷是否需要形式任務欄,由於用了mouseover事件會冒泡響應多次,這裏做了過濾
  2240. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  2241. //任務欄位置變化
  2242. U.selectEl(el).css({ "bottom": "0px" });
  2243. //桌面位置變話
  2244. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  2245. }
  2246. }
  2247. //#region 桌面圖標拖動邏輯
  2248. /**
  2249. * 桌面排列圖標
  2250. *
  2251. * @param {element} 桌面元素
  2252. * @param {object} 上下相距的距離
  2253. * @param {object} 左右相距的距離
  2254. * @return {object} 命名空間
  2255. */
  2256. U.MD.D.iconPostion = function (childs, top, left) {
  2257. var i; //用於循環處理
  2258. top = top || 15; //如果沒有設置元素的間距處理默認上間距為15
  2259. left = left || 20; //如果沒有設置元素的間距處理默認左間距為15
  2260. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  2261. for (i = 0; i < childs.length; i++) {
  2262. //如果豎排top超過了範圍處理
  2263. if (top + 95 > US.height - 10) {
  2264. //left超過了頁面範圍處理,則向上重疊打印處理
  2265. if ((left + 180) > US.width) {
  2266. top -= 110;
  2267. left -= 90;
  2268. }
  2269. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  2270. else {
  2271. left += 90;
  2272. top = 15;
  2273. };
  2274. }
  2275. //給圖標的位置賦值
  2276. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  2277. if (i < childs.length - 1) {
  2278. //頁面圖標每次向下加95
  2279. top += 95;
  2280. }
  2281. }
  2282. //返回最後調用的圖標的位置
  2283. return [top, left];
  2284. }
  2285. /**
  2286. * 桌面排列圖標
  2287. *
  2288. * @param {element} 桌面元素
  2289. * @param {object} 上下相距的距離
  2290. * @param {object} 左右相距的距離
  2291. * @return {object} 命名空間
  2292. */
  2293. U.MD.D.iconPostion2 = function (childs, top, left) {
  2294. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用於循環處理
  2295. top = top || 70; //如果沒有設置元素的間距處理默認上間距為15
  2296. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果沒有設置元素的間距處理默認左間距為15
  2297. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  2298. for (i = 0; i < childs.length; i++) {
  2299. //如果豎排top超過了範圍處理
  2300. if (left + 150 > US.width - 10) {
  2301. //left超過了頁面範圍處理,則向上重疊打印處理
  2302. if ((top + 180) > US.Height) {
  2303. top -= 150;
  2304. left -= 150;
  2305. }
  2306. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  2307. else {
  2308. top += 150;
  2309. left = ol;
  2310. };
  2311. }
  2312. //給圖標的位置賦值
  2313. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  2314. if (i < childs.length - 1) {
  2315. //頁面圖標每次向下加95
  2316. left += 150;
  2317. }
  2318. }
  2319. //返回最後調用的圖標的位置
  2320. return [top, left];
  2321. }
  2322. /**
  2323. * 桌面點擊事件邏輯
  2324. *
  2325. * @param {element} 桌面元素
  2326. * @param {object} 上下相距的距離
  2327. * @param {object} 左右相距的距離
  2328. * @return {object} 命名空間
  2329. */
  2330. U.MD.D.click = function (el, obj) {
  2331. var _buttonnumber = event.button; //點擊的按鈕的事件值
  2332. var _userinfo = US.userInfo;
  2333. U.UF.EV.stopBubble(); //阻止向上冒泡
  2334. //onmousedown 包含了左鍵和右鍵 這裏大於2是為了兼容 所有瀏覽器的右鍵處理
  2335. if (_buttonnumber < 2) {
  2336. //如果是click事件的處理
  2337. if (event.type == "click") {
  2338. //如果元素在mousemove事件中沒有移動則出發click事件
  2339. if (!U.MD.D.I.IsDrag) {
  2340. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2341. U.alert("請先登錄您的賬號!");
  2342. setTimeout(() => {
  2343. U.MD.U.L.login();
  2344. }, 2000);
  2345. } else {
  2346. //打開應用處理
  2347. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  2348. }
  2349. }
  2350. }
  2351. //如果是mouse事件的處理
  2352. else {
  2353. if (US.Config.type == '1') {
  2354. //拖動處理,添加拖動和拖動結束事件
  2355. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  2356. }
  2357. }
  2358. U.MD.D.I.IsDrag = false;
  2359. }
  2360. }
  2361. /**
  2362. * 拖動的處理
  2363. *
  2364. */
  2365. U.MD.D.iconMove = function () {
  2366. //如果當前位置點擊初始化的位置出現了變化,則設置是否拖動的屬性 U.MD.D.I.IsDrag為true
  2367. U.MD.D.I.IsDrag = true;
  2368. }
  2369. /**
  2370. * 拖動結束後,這裏是定位處理,以網狀的形式定位
  2371. *
  2372. * @param {element} 拖動的元素
  2373. * @return {object} 命名空間
  2374. */
  2375. U.MD.D.iconUp = function (el) {
  2376. var _top = 15,
  2377. _left = 20,
  2378. _margin,
  2379. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的圖標
  2380. _positioninfo = U.UF.EL.getElementInfo(el); //獲取拖動結束的元素的位置
  2381. if (_positioninfo["OT"] > 15) {
  2382. //網狀的形式定位,如果差超過了55,那麼向下定位,否則向上定位
  2383. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  2384. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  2385. }
  2386. if (_positioninfo["OL"] > 20) {
  2387. //網狀的形式定位,如果差超過了90,那麼向右定位,否則向左定位
  2388. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  2389. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  2390. }
  2391. //while循環判斷麼一個重疊的元素
  2392. do {
  2393. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //給重疊的元素向下定位
  2394. _top = _positioninfo[0] + 95; //得到定位後的top
  2395. _left = _positioninfo[1]; //得到定位後的left
  2396. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  2397. }
  2398. /**
  2399. * 判斷拖動後圖標是否重疊
  2400. *
  2401. * @param {element} 拖動的元素
  2402. * @param {element} 桌面所有的元素
  2403. * @param {array} 拖動元素的位置
  2404. ----------[0] 上 top
  2405. ----------[1] 左 left
  2406. * @return {object} 命名空間
  2407. */
  2408. U.MD.D.isOverlap = function (el, childs, postionarray) {
  2409. //循環所有的圖標
  2410. for (var i = 0; i < childs.length; i++) {
  2411. //判斷有沒有和該圖標誒子重疊的元素
  2412. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  2413. return childs[i]; //如果有返回
  2414. }
  2415. }
  2416. }
  2417. //#endregion
  2418. //#endregion
  2419. //#region 桌面應用
  2420. /**
  2421. * 打開應用
  2422. *
  2423. * @param {string} 類型
  2424. -----------------Disk 網盤系統
  2425. -----------------PDisk 學習系統網盤
  2426. -----------------Poto 圖片
  2427. -----------------Video 視頻
  2428. -----------------Music 音樂
  2429. -----------------Word word
  2430. -----------------Excel excel
  2431. -----------------Txt 記事本
  2432. -----------------PB 學習系統
  2433. -----------------Blog 朋友圈系統
  2434. -----------------FTP ftp系統
  2435. -----------------Group 好友群
  2436. -----------------SY 首頁系統
  2437. -----------------Set 個人設置
  2438. -----------------XSet 系統設置
  2439. -----------------App 我們所有的app
  2440. -----------------BC c.1473.cn 平臺
  2441. -----------------CWeb d.1473.cn 變成平臺
  2442. -----------------其他的外聯系統 我們統一用iframe打開
  2443. * @param {array} 類型
  2444. 如果第一個參數為"disk",則第二個參數為object,裏面包含了用戶id和目錄id{userid:"",directoryid:""}
  2445. 如果第一個參數為"word"或者"excel","txt",則第二個參數為文件信息fileinfo。
  2446. 如果第一個參數為"blog"或者"PDisk"。建議刪除。
  2447. 如果第一個參數為其他,則無第二個參數
  2448. * @returns {array}
  2449. */
  2450. window.addEventListener('message', function (e) { // 監聽 message 事件
  2451. // alert(e.data.type);
  2452. if (e.data.screenType && e.data.screenType == "2") { //課程管理傳入
  2453. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  2454. //3是展示全部階段 2學生 1老師 4專家
  2455. } else if (e.data.screenType && e.data.screenType == "2s") { //課程管理傳入
  2456. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  2457. //3是展示全部階段 2學生 1老師 4專家
  2458. } else if (e.data.screenType && e.data.screenType == "2studio") { //課程管理傳入
  2459. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  2460. //3是展示全部階段 2學生 1老師 4專家
  2461. } else if (e.data.screenType && e.data.screenType == "3") { //課程管理傳入
  2462. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  2463. } else if (e.data.screenType && e.data.screenType == "3NT") { //課程管理傳入
  2464. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  2465. } else if (e.data.screenType && e.data.screenType == "3s") { //課程管理傳入
  2466. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  2467. } else if (e.data.screenType && e.data.screenType == "3studio") { //課程管理傳入
  2468. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  2469. } else if (e.data.screenType && e.data.screenType == "3s2") { //課程管理傳入
  2470. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  2471. } else if (e.data.screenType && e.data.screenType == "2gm") { //課程管理傳入
  2472. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  2473. //3是展示全部階段 2學生 1老師 4專家
  2474. } else if (e.data.screenType && e.data.screenType == "3gm") { //課程管理傳入
  2475. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  2476. } else if (e.data.close && e.data.close == "1") { //更新用戶信息
  2477. U.MD.D.I.selectUser();
  2478. } else if (e.data.allScreen && e.data.allScreen == "1") {
  2479. var _formel = document.getElementById("study");
  2480. U.UF.F.windowZooming(_formel);
  2481. } else if (e.data.allScreen && e.data.allScreen == "2") {
  2482. var _formel = document.getElementById("studyDetail");
  2483. U.UF.F.windowZooming(_formel);
  2484. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  2485. var _formel = document.getElementById("studyDetail");
  2486. U.UF.F.windowZooming(_formel);
  2487. } else if (e.data.allScreen && e.data.allScreen == "3") {
  2488. var _formel = document.getElementById("studentStudy");
  2489. U.UF.F.windowZooming(_formel);
  2490. } else if (e.data.allScreen && e.data.allScreen == "6") {
  2491. // var _formel = document.getElementById("study");
  2492. //如果最大化了,那麼就把他縮小
  2493. // if (_formel.ismaximize) {
  2494. // return;
  2495. // }
  2496. // U.UF.F.windowZooming(_formel);
  2497. // U.UF.F.topWindow(_formel);
  2498. } else if (e.data.allScreen && e.data.allScreen == "4") {
  2499. // var _formel = document.getElementById("studyDetail");
  2500. //如果最大化了,那麼就把他縮小
  2501. // if (_formel.ismaximize) {
  2502. // return;
  2503. // }
  2504. // U.UF.F.windowZooming(_formel);
  2505. // U.UF.F.topWindow(_formel);
  2506. } else if (e.data.allScreen && e.data.allScreen == "5") {
  2507. // var _formel = document.getElementById("studentStudy");
  2508. // if (_formel.ismaximize) {
  2509. // return;
  2510. // }
  2511. // U.UF.F.windowZooming(_formel);
  2512. // U.UF.F.topWindow(_formel);
  2513. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  2514. var _formel = document.getElementById("study");
  2515. // if (_formel.ismaximize) {
  2516. // return;
  2517. // }
  2518. // U.UF.F.windowZooming(_formel);
  2519. U.UF.F.topWindow(_formel);
  2520. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  2521. var _formel = document.getElementById("studentIndex");
  2522. U.UF.F.windowZooming(_formel);
  2523. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  2524. var _formel = document.getElementById("studyDetailS");
  2525. U.UF.F.windowZooming(_formel);
  2526. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  2527. var _formel = document.getElementById("studioIndex");
  2528. U.UF.F.windowZooming(_formel);
  2529. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  2530. var _formel = document.getElementById("studyDetailStudio");
  2531. U.UF.F.windowZooming(_formel);
  2532. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  2533. var _formel = document.getElementById("studyDetailStudio");
  2534. U.UF.F.windowZooming(_formel);
  2535. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  2536. var _formel = document.getElementById("studyDetailNT");
  2537. U.UF.F.windowZooming(_formel);
  2538. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  2539. var _formel = document.getElementById("studyDetailS");
  2540. U.UF.F.windowZooming(_formel);
  2541. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  2542. var _formel = document.getElementById("studyDetailS");
  2543. U.UF.F.topWindow(_formel);
  2544. } else if (e.data.tools && e.data.tools == "1") {
  2545. // U.MD.D.I.openApplication("whiteboard")
  2546. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2547. } else if (e.data.tools && e.data.tools == "2") {
  2548. U.MD.D.I.openApplication("note")
  2549. } else if (e.data.tools && e.data.tools == "3") {
  2550. // U.MD.D.I.openApplication("mind")
  2551. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2552. } else if (e.data.tools && e.data.tools == "4") {
  2553. U.MD.D.I.openApplication("investigation")
  2554. } else if (e.data.tools && e.data.tools == "6") {
  2555. // U.MD.D.I.openApplication("doc")
  2556. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2557. } else if (e.data.tools && e.data.tools == "7") {
  2558. // U.MD.D.I.openApplication("mindNetwork")
  2559. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2560. } else if (e.data.tools && e.data.tools == "8") {
  2561. U.MD.D.I.openApplication("library")
  2562. } else if (e.data.tools && e.data.tools == "17") {
  2563. U.MD.D.I.openApplication("stuLibrary")
  2564. } else if (e.data.tools && e.data.tools == "18") {
  2565. U.MD.D.I.openApplication("train")
  2566. } else if (e.data.tools && e.data.tools == "21") {
  2567. U.MD.D.I.openApplication("program")
  2568. } else if (e.data.tools && e.data.tools == "22") {
  2569. U.MD.D.I.openApplication("AIprogram2")
  2570. } else if (e.data.tools && e.data.tools == "23") {
  2571. U.MD.D.I.openApplication("Pythonprogram")
  2572. } else if (e.data.tools && e.data.tools == "24") {
  2573. U.MD.D.I.openApplication("AIprogram")
  2574. } else if (e.data.tools && e.data.tools == "25") {
  2575. U.MD.D.I.openApplication("sys")
  2576. } else if (e.data.tools && e.data.tools == "26") {
  2577. // U.MD.D.I.openApplication("courseDesign")
  2578. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2579. } else if (e.data.tools && e.data.tools == "31") {
  2580. U.MD.D.I.openApplication("netWorkPanel")
  2581. } else if (e.data.tools && e.data.tools == "32") {
  2582. U.MD.D.I.openApplication("codeEdit")
  2583. } else if (e.data.tools && e.data.tools == "57") {
  2584. U.MD.D.I.openApplication("CocoPi")
  2585. } else if (e.data.tools && e.data.tools == "63") {
  2586. U.MD.D.I.openApplication("Wood")
  2587. } else if (e.data.tools && e.data.tools == "58") {
  2588. U.MD.D.I.openApplication("car")
  2589. } else if (e.data.tools && e.data.tools == "59") {
  2590. U.MD.D.I.openApplication("lineSearch")
  2591. } else if (e.data.tools && e.data.tools == "60") {
  2592. U.MD.D.I.openApplication("deepLearning")
  2593. } else if (e.data.tools && e.data.tools == "61") {
  2594. U.MD.D.I.openApplication("allHistory")
  2595. } else if (e.data.tools && e.data.tools == "28") {
  2596. U.MD.D.I.openApplication("translation")
  2597. } else if (e.data.tools && e.data.tools == "37") {
  2598. U.MD.D.I.openApplication("mohe")
  2599. } else if (e.data.tools && e.data.tools == "38") {
  2600. U.MD.D.I.openApplication("24game")
  2601. } else if (e.data.tools && e.data.tools == "39") {
  2602. U.MD.D.I.openApplication("GeoGebra")
  2603. } else if (e.data.tools && e.data.tools == "43") {
  2604. U.MD.D.I.openApplication("studentEvaluate")
  2605. } else if (e.data.tools && e.data.tools == "44") {
  2606. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  2607. } else if (e.data.tools && e.data.tools == "46") {
  2608. U.MD.D.I.openApplication("project")
  2609. } else if (e.data.tools && e.data.tools == "1s") {
  2610. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2611. } else if (e.data.tools && e.data.tools == "3s") {
  2612. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2613. } else if (e.data.tools && e.data.tools == "6s") {
  2614. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2615. } else if (e.data.tools && e.data.tools == "1studio") {
  2616. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2617. } else if (e.data.tools && e.data.tools == "3studio") {
  2618. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2619. } else if (e.data.tools && e.data.tools == "6studio") {
  2620. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2621. } else if (e.data.tools && e.data.tools == "3y") {
  2622. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2623. } else if (e.data.tools && e.data.tools == "1y") {
  2624. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2625. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  2626. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  2627. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  2628. U.MD.D.I.openApplication("AIAnalyse")
  2629. } else if (e.data.tools && e.data.tools == "1teacher") {
  2630. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2631. } else if (e.data.tools && e.data.tools == "3teacher") {
  2632. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2633. } else if (e.data.tools && e.data.tools == "7teacher") {
  2634. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2635. } else if (e.data.tools && e.data.tools == "1teacherE") {
  2636. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2637. } else if (e.data.tools && e.data.tools == "3teacherE") {
  2638. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2639. } else if (e.data.tools && e.data.tools == "1E") {
  2640. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2641. } else if (e.data.tools && e.data.tools == "3E") {
  2642. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2643. } else if (e.data.tools && e.data.tools == "57y") {
  2644. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2645. } else if (e.data.tools && e.data.tools == "57u") {
  2646. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2647. } else if (e.data.tools && e.data.tools == "57teacher") {
  2648. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2649. } else if (e.data.tools && e.data.tools == "64") {
  2650. U.MD.D.I.openApplication("AIChat")
  2651. } else if (e.data.tools && e.data.tools == "66") {
  2652. U.MD.D.I.openApplication("formulaEdi")
  2653. } else if (e.data.tools && e.data.tools == "67") {
  2654. U.MD.D.I.openApplication("molStr")
  2655. } else if (e.data.tools && e.data.tools == "68") {
  2656. U.MD.D.I.openApplication("timeAxis")
  2657. } else if (e.data.tools && e.data.tools == "openCourse") {
  2658. let _data = {
  2659. typea: e.data.typea || '',
  2660. typeb: e.data.typeb || '',
  2661. typed: e.data.typed || '',
  2662. }
  2663. U.MD.D.I.openInApplication("index", _data)
  2664. } else if (e.data.tools && e.data.tools == "openDataClass") {
  2665. let _data = {
  2666. classid: e.data.classid || '',
  2667. }
  2668. U.MD.D.I.openInApplication("dataClass", _data)
  2669. } else if (e.data.tools && e.data.tools == "opencCscl") {
  2670. let _data = {
  2671. cid: e.data.cid || '',
  2672. gid: e.data.gid || '',
  2673. }
  2674. U.MD.D.I.openInApplication("opencCscl", _data)
  2675. }
  2676. });
  2677. U.MD.D.I.selectUser = function () {
  2678. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  2679. if (res.value[0].length > 0) {
  2680. US.userInfo = res.value[0][0];
  2681. $(".userName")[0].innerHTML = US.userInfo.username;
  2682. }
  2683. }, [], { "type": "GET", "withCredentials": true });
  2684. }
  2685. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  2686. var _userinfo = US.userInfo, //登錄用戶信息
  2687. _userid = US.userInfo.userid, //登錄用戶id
  2688. _oid = _userinfo.organizeid,
  2689. _type = US.userInfo.type,
  2690. _org = US.userInfo.org,
  2691. _role = US.userInfo.role,
  2692. _classId = US.userInfo.classid;
  2693. if (_type == 4) {
  2694. tType = 4
  2695. }
  2696. switch (str) {
  2697. case "studyDetailNT": //無終端模式
  2698. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2699. setTimeout(() => {
  2700. U.MD.U.L.login();
  2701. }, 2000);
  2702. } else {
  2703. _formdiv = new U.UF.UI.form(
  2704. "課程詳情",
  2705. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailNT?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2706. "id": "studyDetailNT",
  2707. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2708. "onresize": function () { }
  2709. }, {
  2710. closecallback: function () { }
  2711. }, { "style": { "height": "36px" } }).form; //創建窗體
  2712. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "課程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2713. break;
  2714. }
  2715. case "studyDetail":
  2716. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2717. setTimeout(() => {
  2718. U.MD.U.L.login();
  2719. }, 2000);
  2720. } else {
  2721. _formdiv = new U.UF.UI.form(
  2722. "課程詳情",
  2723. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2724. "id": "studyDetail",
  2725. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2726. "onresize": function () { }
  2727. }, {
  2728. closecallback: function () { }
  2729. }, { "style": { "height": "36px" } }).form; //創建窗體
  2730. _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); } }
  2731. break;
  2732. }
  2733. case "studyDetailS":
  2734. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2735. setTimeout(() => {
  2736. U.MD.U.L.login();
  2737. }, 2000);
  2738. } else {
  2739. _formdiv = new U.UF.UI.form(
  2740. "項目詳情",
  2741. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2742. "id": "studyDetailS",
  2743. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2744. "onresize": function () { }
  2745. }, {
  2746. closecallback: function () { }
  2747. }, { "style": { "height": "36px" } }).form; //創建窗體
  2748. _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); } }
  2749. break;
  2750. }
  2751. case "studyDetailStudio":
  2752. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2753. setTimeout(() => {
  2754. U.MD.U.L.login();
  2755. }, 2000);
  2756. } else {
  2757. _formdiv = new U.UF.UI.form(
  2758. "工作詳情",
  2759. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailStudio?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2760. "id": "studyDetailStudio",
  2761. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2762. "onresize": function () { }
  2763. }, {
  2764. closecallback: function () { }
  2765. }, { "style": { "height": "36px" } }).form; //創建窗體
  2766. _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); } }
  2767. break;
  2768. }
  2769. case "studyDetailS5":
  2770. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2771. setTimeout(() => {
  2772. U.MD.U.L.login();
  2773. }, 2000);
  2774. } else {
  2775. _formdiv = new U.UF.UI.form(
  2776. "項目詳情",
  2777. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studyStudentS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2778. "id": "studyDetailS",
  2779. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2780. "onresize": function () { }
  2781. }, {
  2782. closecallback: function () { }
  2783. }, { "style": { "height": "36px" } }).form; //創建窗體
  2784. _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); } }
  2785. break;
  2786. }
  2787. case "studyDetailGM":
  2788. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2789. setTimeout(() => {
  2790. U.MD.U.L.login();
  2791. }, 2000);
  2792. } else {
  2793. _formdiv = new U.UF.UI.form(
  2794. "課程詳情",
  2795. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2796. "id": "studyDetail",
  2797. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2798. "onresize": function () { }
  2799. }, {
  2800. closecallback: function () { }
  2801. }, { "style": { "height": "36px" } }).form; //創建窗體
  2802. _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); } }
  2803. break;
  2804. }
  2805. case "hanUrl":
  2806. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2807. setTimeout(() => {
  2808. U.MD.U.L.login();
  2809. }, 2000);
  2810. } else {
  2811. _formdiv = new U.UF.UI.form(
  2812. "漢字宮",
  2813. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//school.hanzigon.cn/?appid=734714090237947#/material/video?grade_id=62&lesson_code=621&id=2432" }), {
  2814. "id": "hanUrl",
  2815. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2816. "onresize": function () { }
  2817. }, {
  2818. closecallback: function () { }
  2819. }, { "style": { "height": "36px" } }).form; //創建窗體
  2820. _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); } }
  2821. break;
  2822. }
  2823. case "index":
  2824. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2825. setTimeout(() => {
  2826. U.MD.U.L.login();
  2827. }, 2000);
  2828. } else {
  2829. _formdiv = new U.UF.UI.form(
  2830. "課程中心",
  2831. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=2" + "&typea=" + data.typea + "&typeb=" + data.typeb + "&typed=" + data.typed }), {
  2832. "id": "study",
  2833. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2834. "onresize": function () { }
  2835. }, {
  2836. closecallback: function () { }
  2837. }, { "style": { "height": "36px" } }).form; //創建窗體
  2838. _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); } }
  2839. break;
  2840. }
  2841. case "dataClass":
  2842. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2843. setTimeout(() => {
  2844. U.MD.U.L.login();
  2845. }, 2000);
  2846. } else {
  2847. _formdiv = new U.UF.UI.form(
  2848. "數據報告",
  2849. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/worksReport?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&cid=" + _classId + "&checkid=" + data.classid }), {
  2850. "id": "dataClass",
  2851. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2852. "onresize": function () { }
  2853. }, {
  2854. closecallback: function () { }
  2855. }, { "style": { "height": "36px" } }).form; //創建窗體
  2856. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "數據報告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2857. break;
  2858. }
  2859. case "opencCscl":
  2860. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2861. setTimeout(() => {
  2862. U.MD.U.L.login();
  2863. }, 2000);
  2864. } else {
  2865. _formdiv = new U.UF.UI.form(
  2866. "協同建構",
  2867. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cscl.cocorobo.hk?cid=" + data.cid + "&gid=" + data.gid }), {
  2868. "id": "futureClass",
  2869. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2870. "onresize": function () { }
  2871. }, {
  2872. closecallback: function () { $("iframe", _formdiv)[0].contentWindow.loginout(); }
  2873. }, { "style": { "height": "36px" } }).form; //創建窗體
  2874. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/futureClass.png)" }, "name": "協同建構", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2875. break;
  2876. }
  2877. }
  2878. }
  2879. U.MD.D.I.openApplication = function (str, obj, info) {
  2880. obj = obj || {};
  2881. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  2882. _formdiv, //創建任務欄時同時彈出的窗體元素。
  2883. _userinfo = US.userInfo, //登錄用戶信息
  2884. _userid = obj.userid || US.userInfo.userid, //登錄用戶id
  2885. _oid = obj.organizeid || _userinfo.organizeid,
  2886. _type = US.userInfo.type,
  2887. _org = US.userInfo.org,
  2888. _role = US.userInfo.role,
  2889. _classId = US.userInfo.classid,
  2890. _TscreenType = 1
  2891. _screenType = 2,
  2892. _SscreenType = 3;
  2893. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2894. return;
  2895. }
  2896. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2897. switch (str) {
  2898. case "studnetProject": //好友打開
  2899. _formdiv = new U.UF.UI.form(
  2900. "我的項目",
  2901. $$("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 }), {
  2902. "id": "studnetProject",
  2903. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2904. "onresize": function () { }
  2905. }, {
  2906. closecallback: function () { }
  2907. }, { "style": { "height": "36px" } }).form; //創建窗體
  2908. _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); } }
  2909. break;
  2910. case "studentEvaluate": //好友打開
  2911. _formdiv = new U.UF.UI.form(
  2912. "我的評價",
  2913. $$("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 }), {
  2914. "id": "studentEvaluate",
  2915. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2916. "onresize": function () { }
  2917. }, {
  2918. closecallback: function () { }
  2919. }, { "style": { "height": "36px" } }).form; //創建窗體
  2920. _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); } }
  2921. break;
  2922. case "my":
  2923. _formdiv = new U.UF.UI.form(
  2924. "我的資料",
  2925. $$("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 }), {
  2926. "id": "my",
  2927. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2928. "onresize": function () { }
  2929. }, {
  2930. closecallback: function () { }
  2931. }, { "style": { "height": "36px" } }).form; //創建窗體
  2932. _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); } }
  2933. break;
  2934. case "program":
  2935. _formdiv = new U.UF.UI.form(
  2936. "編程平臺",
  2937. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2938. "id": "program",
  2939. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2940. "onresize": function () { }
  2941. }, {
  2942. closecallback: function () { }
  2943. }, { "style": { "height": "36px" } }).form; //創建窗體
  2944. _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); } }
  2945. break;
  2946. case "library":
  2947. _formdiv = new U.UF.UI.form(
  2948. "素材庫",
  2949. $$("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 }), {
  2950. "id": "library",
  2951. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2952. "onresize": function () { }
  2953. }, {
  2954. closecallback: function () { }
  2955. }, { "style": { "height": "36px" } }).form; //創建窗體
  2956. _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); } }
  2957. break;
  2958. case "whiteboard":
  2959. _formdiv = new U.UF.UI.form(
  2960. "電子白板",
  2961. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2962. "id": "whiteboard",
  2963. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2964. "onresize": function () { }
  2965. }, {
  2966. closecallback: function () { }
  2967. }, { "style": { "height": "36px" } }).form; //創建窗體
  2968. _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); } }
  2969. break;
  2970. case "investigation":
  2971. _formdiv = new U.UF.UI.form(
  2972. "問卷調查",
  2973. $$("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 }), {
  2974. "id": "investigation",
  2975. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2976. "onresize": function () { }
  2977. }, {
  2978. closecallback: function () { }
  2979. }, { "style": { "height": "36px" } }).form; //創建窗體
  2980. _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); } }
  2981. break;
  2982. case "note":
  2983. _formdiv = new U.UF.UI.form(
  2984. "便簽分類",
  2985. $$("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 }), {
  2986. "id": "note",
  2987. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2988. "onresize": function () { }
  2989. }, {
  2990. closecallback: function () { }
  2991. }, { "style": { "height": "36px" } }).form; //創建窗體
  2992. _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); } }
  2993. break;
  2994. // case "score":
  2995. // _formdiv = new U.UF.UI.form(
  2996. // "量規評分",
  2997. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2998. // "id": "score",
  2999. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3000. // "onresize": function() {}
  3001. // }, {
  3002. // closecallback: function() {}
  3003. // }, { "style": { "height": "36px" } }).form; //創建窗體
  3004. // _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); } }
  3005. // break;
  3006. case "mind":
  3007. _formdiv = new U.UF.UI.form(
  3008. "思維導圖",
  3009. $$("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"
  3010. "id": "mind",
  3011. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3012. "onresize": function () { }
  3013. }, {
  3014. closecallback: function () { }
  3015. }, { "style": { "height": "36px" } }).form; //創建窗體
  3016. _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); } }
  3017. break;
  3018. case "doc":
  3019. // U.MD.D.I.isRoom();
  3020. _formdiv = new U.UF.UI.form(
  3021. "協同文檔",
  3022. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  3023. "id": "doc",
  3024. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3025. "onresize": function () { }
  3026. }, {
  3027. closecallback: function () { }
  3028. }, { "style": { "height": "36px" } }).form; //創建窗體
  3029. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3030. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3031. // })
  3032. _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); } }
  3033. break;
  3034. case "studentStudy":
  3035. _formdiv = new U.UF.UI.form(
  3036. "課程中心",
  3037. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  3038. "id": "studentStudy",
  3039. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3040. "onresize": function () { }
  3041. }, {
  3042. closecallback: function () { }
  3043. }, { "style": { "height": "36px" } }).form; //創建窗體
  3044. _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); } }
  3045. break;
  3046. case "train": //好友打開
  3047. _formdiv = new U.UF.UI.form(
  3048. "訓練平臺",
  3049. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3050. "id": "train",
  3051. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3052. "onresize": function () { }
  3053. }, {
  3054. closecallback: function () { }
  3055. }, { "style": { "height": "36px" } }).form; //創建窗體
  3056. _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); } }
  3057. break;
  3058. case "mindNetwork": //好友打開
  3059. _formdiv = new U.UF.UI.form(
  3060. "思維網格",
  3061. $$("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 }), {
  3062. "id": "mindNetwork",
  3063. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3064. "onresize": function () { }
  3065. }, {
  3066. closecallback: function () { }
  3067. }, { "style": { "height": "36px" } }).form; //創建窗體
  3068. _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); } }
  3069. break;
  3070. case "studentClassRoom": //好友打開
  3071. _formdiv = new U.UF.UI.form(
  3072. "實時課堂",
  3073. $$("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 }), {
  3074. "id": "studentClassRoom",
  3075. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3076. "onresize": function () { }
  3077. }, {
  3078. closecallback: function () { }
  3079. }, { "style": { "height": "36px" } }).form; //創建窗體
  3080. _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); } }
  3081. setTimeout(() => {
  3082. U.UF.F.windowZooming(_formdiv)
  3083. }, 0);
  3084. break;
  3085. }
  3086. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  3087. switch (str) {
  3088. case "studnetProject": //好友打開
  3089. _formdiv = new U.UF.UI.form(
  3090. "我的項目",
  3091. $$("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 }), {
  3092. "id": "studnetProject",
  3093. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3094. "onresize": function () { }
  3095. }, {
  3096. closecallback: function () { }
  3097. }, { "style": { "height": "36px" } }).form; //創建窗體
  3098. _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); } }
  3099. break;
  3100. case "studentEvaluate": //好友打開
  3101. _formdiv = new U.UF.UI.form(
  3102. "我的評價",
  3103. $$("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 }), {
  3104. "id": "studentEvaluate",
  3105. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3106. "onresize": function () { }
  3107. }, {
  3108. closecallback: function () { }
  3109. }, { "style": { "height": "36px" } }).form; //創建窗體
  3110. _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); } }
  3111. break;
  3112. case "my":
  3113. _formdiv = new U.UF.UI.form(
  3114. "我的資料",
  3115. $$("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 }), {
  3116. "id": "my",
  3117. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3118. "onresize": function () { }
  3119. }, {
  3120. closecallback: function () { }
  3121. }, { "style": { "height": "36px" } }).form; //創建窗體
  3122. _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); } }
  3123. break;
  3124. case "program":
  3125. _formdiv = new U.UF.UI.form(
  3126. "編程平臺",
  3127. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3128. "id": "program",
  3129. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3130. "onresize": function () { }
  3131. }, {
  3132. closecallback: function () { }
  3133. }, { "style": { "height": "36px" } }).form; //創建窗體
  3134. _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); } }
  3135. break;
  3136. case "library":
  3137. _formdiv = new U.UF.UI.form(
  3138. "素材庫",
  3139. $$("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 }), {
  3140. "id": "library",
  3141. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3142. "onresize": function () { }
  3143. }, {
  3144. closecallback: function () { }
  3145. }, { "style": { "height": "36px" } }).form; //創建窗體
  3146. _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); } }
  3147. break;
  3148. case "whiteboard":
  3149. _formdiv = new U.UF.UI.form(
  3150. "電子白板",
  3151. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3152. "id": "whiteboard",
  3153. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3154. "onresize": function () { }
  3155. }, {
  3156. closecallback: function () { }
  3157. }, { "style": { "height": "36px" } }).form; //創建窗體
  3158. _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); } }
  3159. break;
  3160. case "investigation":
  3161. _formdiv = new U.UF.UI.form(
  3162. "問卷調查",
  3163. $$("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 }), {
  3164. "id": "investigation",
  3165. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3166. "onresize": function () { }
  3167. }, {
  3168. closecallback: function () { }
  3169. }, { "style": { "height": "36px" } }).form; //創建窗體
  3170. _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); } }
  3171. break;
  3172. case "note":
  3173. _formdiv = new U.UF.UI.form(
  3174. "便簽分類",
  3175. $$("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 }), {
  3176. "id": "note",
  3177. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  3178. "onresize": function () { }
  3179. }, {
  3180. closecallback: function () { }
  3181. }, { "style": { "height": "36px" } }).form; //創建窗體
  3182. _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); } }
  3183. break;
  3184. // case "score":
  3185. // _formdiv = new U.UF.UI.form(
  3186. // "量規評分",
  3187. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  3188. // "id": "score",
  3189. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3190. // "onresize": function() {}
  3191. // }, {
  3192. // closecallback: function() {}
  3193. // }, { "style": { "height": "36px" } }).form; //創建窗體
  3194. // _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); } }
  3195. // break;
  3196. case "mind":
  3197. _formdiv = new U.UF.UI.form(
  3198. "思維導圖",
  3199. $$("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"
  3200. "id": "mind",
  3201. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3202. "onresize": function () { }
  3203. }, {
  3204. closecallback: function () { }
  3205. }, { "style": { "height": "36px" } }).form; //創建窗體
  3206. _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); } }
  3207. break;
  3208. case "doc":
  3209. // U.MD.D.I.isRoom();
  3210. _formdiv = new U.UF.UI.form(
  3211. "協同文檔",
  3212. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3213. "id": "doc",
  3214. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3215. "onresize": function () { }
  3216. }, {
  3217. closecallback: function () { }
  3218. }, { "style": { "height": "36px" } }).form; //創建窗體
  3219. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3220. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3221. })
  3222. _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); } }
  3223. break;
  3224. case "train": //好友打開
  3225. _formdiv = new U.UF.UI.form(
  3226. "訓練平臺",
  3227. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3228. "id": "train",
  3229. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3230. "onresize": function () { }
  3231. }, {
  3232. closecallback: function () { }
  3233. }, { "style": { "height": "36px" } }).form; //創建窗體
  3234. _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); } }
  3235. break;
  3236. case "studentStudy":
  3237. _formdiv = new U.UF.UI.form(
  3238. "課程中心",
  3239. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  3240. "id": "studentStudy",
  3241. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3242. "onresize": function () { }
  3243. }, {
  3244. closecallback: function () { }
  3245. }, { "style": { "height": "36px" } }).form; //創建窗體
  3246. _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); } }
  3247. break;
  3248. case "mindNetwork": //好友打開
  3249. _formdiv = new U.UF.UI.form(
  3250. "思維網格",
  3251. $$("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 }), {
  3252. "id": "mindNetwork",
  3253. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3254. "onresize": function () { }
  3255. }, {
  3256. closecallback: function () { }
  3257. }, { "style": { "height": "36px" } }).form; //創建窗體
  3258. _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); } }
  3259. break;
  3260. case "studentClassRoom": //好友打開
  3261. _formdiv = new U.UF.UI.form(
  3262. "實時課堂",
  3263. $$("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 }), {
  3264. "id": "studentClassRoom",
  3265. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3266. "onresize": function () { }
  3267. }, {
  3268. closecallback: function () { }
  3269. }, { "style": { "height": "36px" } }).form; //創建窗體
  3270. _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); } }
  3271. setTimeout(() => {
  3272. U.UF.F.windowZooming(_formdiv)
  3273. }, 0);
  3274. break;
  3275. }
  3276. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  3277. //選擇應用處理
  3278. switch (str) {
  3279. case "project": //好友打開
  3280. _formdiv = new U.UF.UI.form(
  3281. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目' : "課程管理",
  3282. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;clipboard-write;clipboard-read", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3283. "id": "project",
  3284. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3285. "onresize": function () { }
  3286. }, {
  3287. closecallback: function () { }
  3288. }, { "style": { "height": "36px" } }).form; //創建窗體
  3289. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目' : "課程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3290. break;
  3291. case "student":
  3292. _formdiv = new U.UF.UI.form(
  3293. "學生管理",
  3294. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org + "&role=" + _role }), {
  3295. "id": "student",
  3296. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3297. "onresize": function () { }
  3298. }, {
  3299. closecallback: function () { }
  3300. }, { "style": { "height": "36px" } }).form; //創建窗體
  3301. _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); } }
  3302. break;
  3303. case "evaluate":
  3304. _formdiv = new U.UF.UI.form(
  3305. "學生評價",
  3306. $$("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 }), {
  3307. "id": "evaluate",
  3308. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3309. "onresize": function () { }
  3310. }, {
  3311. closecallback: function () { }
  3312. }, { "style": { "height": "36px" } }).form; //創建窗體
  3313. _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); } }
  3314. break;
  3315. case "sys":
  3316. _formdiv = new U.UF.UI.form(
  3317. "目標管理",
  3318. $$("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 }), {
  3319. "id": "sys",
  3320. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3321. "onresize": function () { }
  3322. }, {
  3323. closecallback: function () { }
  3324. }, { "style": { "height": "36px" } }).form; //創建窗體
  3325. _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); } }
  3326. break;
  3327. case "courseDesign":
  3328. _formdiv = new U.UF.UI.form(
  3329. "項目設計",
  3330. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3331. "id": "courseDesign",
  3332. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3333. "onresize": function () { }
  3334. }, {
  3335. closecallback: function () { }
  3336. }, { "style": { "height": "36px" } }).form; //創建窗體
  3337. _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); } }
  3338. break;
  3339. case "program":
  3340. _formdiv = new U.UF.UI.form(
  3341. "編程平臺",
  3342. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3343. "id": "program",
  3344. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3345. "onresize": function () { }
  3346. }, {
  3347. closecallback: function () { }
  3348. }, { "style": { "height": "36px" } }).form; //創建窗體
  3349. _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); } }
  3350. break;
  3351. case "class":
  3352. _formdiv = new U.UF.UI.form(
  3353. "班級管理",
  3354. $$("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 }), {
  3355. "id": "class",
  3356. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3357. "onresize": function () { }
  3358. }, {
  3359. closecallback: function () { }
  3360. }, { "style": { "height": "36px" } }).form; //創建窗體
  3361. _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); } }
  3362. break;
  3363. case "Grade":
  3364. _formdiv = new U.UF.UI.form(
  3365. "年級管理",
  3366. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/grade?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3367. "id": "Grade",
  3368. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3369. "onresize": function () { }
  3370. }, {
  3371. closecallback: function () { }
  3372. }, { "style": { "height": "36px" } }).form; //創建窗體
  3373. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Grade.png)" }, "name": "年級管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3374. break;
  3375. case "teacherOffice":
  3376. _formdiv = new U.UF.UI.form(
  3377. "教研室",
  3378. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/teacherOffice?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3379. "id": "teacherOffice",
  3380. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3381. "onresize": function () { }
  3382. }, {
  3383. closecallback: function () { }
  3384. }, { "style": { "height": "36px" } }).form; //創建窗體
  3385. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/teacherOffice.png)" }, "name": "教研室", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3386. break;
  3387. case "my":
  3388. _formdiv = new U.UF.UI.form(
  3389. "我的資料",
  3390. $$("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 }), {
  3391. "id": "my",
  3392. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3393. "onresize": function () { }
  3394. }, {
  3395. closecallback: function () { }
  3396. }, { "style": { "height": "36px" } }).form; //創建窗體
  3397. _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); } }
  3398. break;
  3399. case "notice":
  3400. _formdiv = new U.UF.UI.form(
  3401. "通知公告",
  3402. $$("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 }), {
  3403. "id": "notice",
  3404. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3405. "onresize": function () { }
  3406. }, {
  3407. closecallback: function () { }
  3408. }, { "style": { "height": "36px" } }).form; //創建窗體
  3409. _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); } }
  3410. break;
  3411. case "library":
  3412. _formdiv = new U.UF.UI.form(
  3413. "素材庫",
  3414. $$("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 }), {
  3415. "id": "library",
  3416. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3417. "onresize": function () { }
  3418. }, {
  3419. closecallback: function () { }
  3420. }, { "style": { "height": "36px" } }).form; //創建窗體
  3421. _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); } }
  3422. break;
  3423. case "whiteboard":
  3424. _formdiv = new U.UF.UI.form(
  3425. "電子白板",
  3426. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3427. "id": "whiteboard",
  3428. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3429. "onresize": function () { }
  3430. }, {
  3431. closecallback: function () { }
  3432. }, { "style": { "height": "36px" } }).form; //創建窗體
  3433. _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); } }
  3434. break;
  3435. case "investigation":
  3436. _formdiv = new U.UF.UI.form(
  3437. "問卷調查",
  3438. $$("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 }), {
  3439. "id": "investigation",
  3440. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3441. "onresize": function () { }
  3442. }, {
  3443. closecallback: function () { }
  3444. }, { "style": { "height": "36px" } }).form; //創建窗體
  3445. _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); } }
  3446. break;
  3447. case "note":
  3448. _formdiv = new U.UF.UI.form(
  3449. "便簽分類",
  3450. $$("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 }), {
  3451. "id": "note",
  3452. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  3453. "onresize": function () { }
  3454. }, {
  3455. closecallback: function () { }
  3456. }, { "style": { "height": "36px" } }).form; //創建窗體
  3457. _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); } }
  3458. break;
  3459. // case "score":
  3460. // _formdiv = new U.UF.UI.form(
  3461. // "量規評分",
  3462. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  3463. // "id": "score",
  3464. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3465. // "onresize": function() {}
  3466. // }, {
  3467. // closecallback: function() {}
  3468. // }, { "style": { "height": "36px" } }).form; //創建窗體
  3469. // _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); } }
  3470. // break;
  3471. case "mind":
  3472. _formdiv = new U.UF.UI.form(
  3473. "思維導圖",
  3474. $$("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"
  3475. "id": "mind",
  3476. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3477. "onresize": function () { }
  3478. }, {
  3479. closecallback: function () { }
  3480. }, { "style": { "height": "36px" } }).form; //創建窗體
  3481. _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); } }
  3482. break;
  3483. case "doc":
  3484. // U.MD.D.I.isRoom();
  3485. _formdiv = new U.UF.UI.form(
  3486. "協同文檔",
  3487. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3488. "id": "doc",
  3489. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3490. "onresize": function () { }
  3491. }, {
  3492. closecallback: function () { }
  3493. }, { "style": { "height": "36px" } }).form; //創建窗體
  3494. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3495. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3496. })
  3497. _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); } }
  3498. break;
  3499. case "study":
  3500. _formdiv = new U.UF.UI.form(
  3501. "課程中心",
  3502. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  3503. "id": "study",
  3504. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3505. "onresize": function () { }
  3506. }, {
  3507. closecallback: function () { }
  3508. }, { "style": { "height": "36px" } }).form; //創建窗體
  3509. _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); } }
  3510. break;
  3511. case "mindNetwork": //好友打開
  3512. _formdiv = new U.UF.UI.form(
  3513. "思維網格",
  3514. $$("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 }), {
  3515. "id": "mindNetwork",
  3516. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3517. "onresize": function () { }
  3518. }, {
  3519. closecallback: function () { }
  3520. }, { "style": { "height": "36px" } }).form; //創建窗體
  3521. _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); } }
  3522. break;
  3523. case "train": //好友打開
  3524. _formdiv = new U.UF.UI.form(
  3525. "訓練平臺",
  3526. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3527. "id": "mindNetwork",
  3528. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3529. "onresize": function () { }
  3530. }, {
  3531. closecallback: function () { }
  3532. }, { "style": { "height": "36px" } }).form; //創建窗體
  3533. _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); } }
  3534. break;
  3535. case "teacherClassRoom": //好友打開
  3536. _formdiv = new U.UF.UI.form(
  3537. "實時課堂",
  3538. $$("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 }), {
  3539. "id": "teacherClassRoom",
  3540. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3541. "onresize": function () { }
  3542. }, {
  3543. closecallback: function () { }
  3544. }, { "style": { "height": "36px" } }).form; //創建窗體
  3545. _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); } }
  3546. setTimeout(() => {
  3547. U.UF.F.windowZooming(_formdiv)
  3548. }, 0);
  3549. break;
  3550. }
  3551. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  3552. switch (str) {
  3553. case "project": //好友打開
  3554. _formdiv = new U.UF.UI.form(
  3555. "課程管理",
  3556. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;clipboard-write;clipboard-read", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3557. "id": "project",
  3558. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3559. "onresize": function () { }
  3560. }, {
  3561. closecallback: function () { }
  3562. }, { "style": { "height": "36px" } }).form; //創建窗體
  3563. _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); } }
  3564. break;
  3565. case "evaluate":
  3566. _formdiv = new U.UF.UI.form(
  3567. "學生評價",
  3568. $$("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 }), {
  3569. "id": "evaluate",
  3570. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3571. "onresize": function () { }
  3572. }, {
  3573. closecallback: function () { }
  3574. }, { "style": { "height": "36px" } }).form; //創建窗體
  3575. _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); } }
  3576. break;
  3577. case "notice":
  3578. _formdiv = new U.UF.UI.form(
  3579. "通知公告",
  3580. $$("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 }), {
  3581. "id": "notice",
  3582. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3583. "onresize": function () { }
  3584. }, {
  3585. closecallback: function () { }
  3586. }, { "style": { "height": "36px" } }).form; //創建窗體
  3587. _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); } }
  3588. break;
  3589. case "stuLibrary":
  3590. _formdiv = new U.UF.UI.form(
  3591. "學習資料",
  3592. $$("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 }), {
  3593. "id": "stuLibrary",
  3594. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3595. "onresize": function () { }
  3596. }, {
  3597. closecallback: function () { }
  3598. }, { "style": { "height": "36px" } }).form; //創建窗體
  3599. _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); } }
  3600. break;
  3601. case "program":
  3602. _formdiv = new U.UF.UI.form(
  3603. "編程平臺",
  3604. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3605. "id": "program",
  3606. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3607. "onresize": function () { }
  3608. }, {
  3609. closecallback: function () { }
  3610. }, { "style": { "height": "36px" } }).form; //創建窗體
  3611. _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); } }
  3612. break;
  3613. case "whiteboard":
  3614. _formdiv = new U.UF.UI.form(
  3615. "電子白板",
  3616. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3617. "id": "whiteboard",
  3618. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3619. "onresize": function () { }
  3620. }, {
  3621. closecallback: function () { }
  3622. }, { "style": { "height": "36px" } }).form; //創建窗體
  3623. _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); } }
  3624. break;
  3625. case "investigation":
  3626. _formdiv = new U.UF.UI.form(
  3627. "問卷調查",
  3628. $$("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 }), {
  3629. "id": "investigation",
  3630. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3631. "onresize": function () { }
  3632. }, {
  3633. closecallback: function () { }
  3634. }, { "style": { "height": "36px" } }).form; //創建窗體
  3635. _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); } }
  3636. break;
  3637. case "mind":
  3638. _formdiv = new U.UF.UI.form(
  3639. "思維導圖",
  3640. $$("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"
  3641. "id": "mind",
  3642. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3643. "onresize": function () { }
  3644. }, {
  3645. closecallback: function () { }
  3646. }, { "style": { "height": "36px" } }).form; //創建窗體
  3647. _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); } }
  3648. break;
  3649. case "doc":
  3650. // U.MD.D.I.isRoom();
  3651. _formdiv = new U.UF.UI.form(
  3652. "協同文檔",
  3653. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3654. "id": "doc",
  3655. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3656. "onresize": function () { }
  3657. }, {
  3658. closecallback: function () { }
  3659. }, { "style": { "height": "36px" } }).form; //創建窗體
  3660. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3661. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3662. })
  3663. _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); } }
  3664. break;
  3665. case "study":
  3666. _formdiv = new U.UF.UI.form(
  3667. "課程中心",
  3668. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  3669. "id": "study",
  3670. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3671. "onresize": function () { }
  3672. }, {
  3673. closecallback: function () { }
  3674. }, { "style": { "height": "36px" } }).form; //創建窗體
  3675. _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); } }
  3676. break;
  3677. case "mindNetwork": //好友打開
  3678. _formdiv = new U.UF.UI.form(
  3679. "思維網格",
  3680. $$("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 }), {
  3681. "id": "mindNetwork",
  3682. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3683. "onresize": function () { }
  3684. }, {
  3685. closecallback: function () { }
  3686. }, { "style": { "height": "36px" } }).form; //創建窗體
  3687. _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); } }
  3688. break;
  3689. case "train": //好友打開
  3690. _formdiv = new U.UF.UI.form(
  3691. "訓練平臺",
  3692. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3693. "id": "train",
  3694. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3695. "onresize": function () { }
  3696. }, {
  3697. closecallback: function () { }
  3698. }, { "style": { "height": "36px" } }).form; //創建窗體
  3699. _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); } }
  3700. break;
  3701. case "sys":
  3702. _formdiv = new U.UF.UI.form(
  3703. "目標管理",
  3704. $$("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 }), {
  3705. "id": "sys",
  3706. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3707. "onresize": function () { }
  3708. }, {
  3709. closecallback: function () { }
  3710. }, { "style": { "height": "36px" } }).form; //創建窗體
  3711. _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); } }
  3712. break;
  3713. case "courseDesign":
  3714. _formdiv = new U.UF.UI.form(
  3715. "項目設計",
  3716. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3717. "id": "courseDesign",
  3718. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3719. "onresize": function () { }
  3720. }, {
  3721. closecallback: function () { }
  3722. }, { "style": { "height": "36px" } }).form; //創建窗體
  3723. _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); } }
  3724. break;
  3725. }
  3726. } else if (!_type) {
  3727. switch (str) {
  3728. case "my":
  3729. _formdiv = new U.UF.UI.form(
  3730. "我的資料",
  3731. $$("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 }), {
  3732. "id": "my",
  3733. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3734. "onresize": function () { }
  3735. }, {
  3736. closecallback: function () { }
  3737. }, { "style": { "height": "36px" } }).form; //創建窗體
  3738. _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); } }
  3739. break;
  3740. }
  3741. }
  3742. switch (str) {
  3743. // AIprogram2 AI體驗 aihub.cocorobo.cn
  3744. // Pythonprogram Python編程 python-blockly.cocorobo.cn
  3745. // AIprogram AI編程 ai-blockly.cocorobo.cn
  3746. case "formulaEdi": //公式編輯
  3747. _formdiv = new U.UF.UI.form(
  3748. "公式編輯",
  3749. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.latexlive.com/" }), {
  3750. "id": "formulaEdi",
  3751. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3752. "onresize": function () { }
  3753. }, {
  3754. closecallback: function () { }
  3755. }, { "style": { "height": "36px" } }).form; //創建窗體
  3756. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/formulaEdi.png)" }, "name": "公式編輯", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3757. break;
  3758. case "molStr": //分子結構
  3759. _formdiv = new U.UF.UI.form(
  3760. "分子結構",
  3761. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://molview.org/" }), {
  3762. "id": "molStr",
  3763. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3764. "onresize": function () { }
  3765. }, {
  3766. closecallback: function () { }
  3767. }, { "style": { "height": "36px" } }).form; //創建窗體
  3768. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/molStr.png)" }, "name": "分子結構", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3769. break;
  3770. case "timeAxis": //時間軸
  3771. _formdiv = new U.UF.UI.form(
  3772. "時間軸",
  3773. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://time.graphics/editor" }), {
  3774. "id": "timeAxis",
  3775. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3776. "onresize": function () { }
  3777. }, {
  3778. closecallback: function () { }
  3779. }, { "style": { "height": "36px" } }).form; //創建窗體
  3780. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/timeAxis.png)" }, "name": "時間軸", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3781. break;
  3782. case "AIprogram2": //AI體驗
  3783. _formdiv = new U.UF.UI.form(
  3784. "AI體驗",
  3785. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3786. "id": "AIprogram2",
  3787. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3788. "onresize": function () { }
  3789. }, {
  3790. closecallback: function () { }
  3791. }, { "style": { "height": "36px" } }).form; //創建窗體
  3792. _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); } }
  3793. break;
  3794. case "Pythonprogram": //python編程
  3795. _formdiv = new U.UF.UI.form(
  3796. "Python編程",
  3797. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3798. "id": "Pythonprogram",
  3799. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3800. "onresize": function () { }
  3801. }, {
  3802. closecallback: function () { }
  3803. }, { "style": { "height": "36px" } }).form; //創建窗體
  3804. _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); } }
  3805. break;
  3806. case "AIprogram": //ai編程
  3807. _formdiv = new U.UF.UI.form(
  3808. "AI編程平臺",
  3809. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3810. "id": "AIprogram",
  3811. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3812. "onresize": function () { }
  3813. }, {
  3814. closecallback: function () { }
  3815. }, { "style": { "height": "36px" } }).form; //創建窗體
  3816. _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); } }
  3817. break;
  3818. case "CocoPi": //CocoPi
  3819. _formdiv = new U.UF.UI.form(
  3820. "CocoPi",
  3821. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pi.cocorobo.hk/?lang=zh-hant" }), {
  3822. "id": "CocoPi",
  3823. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3824. "onresize": function () { }
  3825. }, {
  3826. closecallback: function () { }
  3827. }, { "style": { "height": "36px" } }).form; //創建窗體
  3828. _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); } }
  3829. break;
  3830. case "Wood": //Wood
  3831. _formdiv = new U.UF.UI.form(
  3832. "海龜編程",
  3833. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://wood.codemao.cn/" }), {
  3834. "id": "Wood",
  3835. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3836. "onresize": function () { }
  3837. }, {
  3838. closecallback: function () { }
  3839. }, { "style": { "height": "36px" } }).form; //創建窗體
  3840. _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); } }
  3841. break;
  3842. case "car": //模擬駕駛
  3843. _formdiv = new U.UF.UI.form(
  3844. "模擬駕駛",
  3845. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://slowroads.io/" }), {
  3846. "id": "car",
  3847. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3848. "onresize": function () { }
  3849. }, {
  3850. closecallback: function () { }
  3851. }, { "style": { "height": "36px" } }).form; //創建窗體
  3852. _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); } }
  3853. break;
  3854. case "lineSearch": //路徑搜索
  3855. _formdiv = new U.UF.UI.form(
  3856. "路徑搜索",
  3857. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://qiao.github.io/PathFinding.js/visual/" }), {
  3858. "id": "lineSearch",
  3859. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3860. "onresize": function () { }
  3861. }, {
  3862. closecallback: function () { }
  3863. }, { "style": { "height": "36px" } }).form; //創建窗體
  3864. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/lineSearch.png)" }, "name": "路徑搜索", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3865. break;
  3866. case "deepLearning": //深度學習
  3867. _formdiv = new U.UF.UI.form(
  3868. "深度學習",
  3869. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-demos.cocorobo.cn/teachable-machine/public/#" }), {
  3870. "id": "deepLearning",
  3871. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3872. "onresize": function () { }
  3873. }, {
  3874. closecallback: function () { }
  3875. }, { "style": { "height": "36px" } }).form; //創建窗體
  3876. _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); } }
  3877. break;
  3878. case "allHistory": //深度學習
  3879. _formdiv = new U.UF.UI.form(
  3880. "全歷史",
  3881. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.allhistory.com/" }), {
  3882. "id": "allHistory",
  3883. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3884. "onresize": function () { }
  3885. }, {
  3886. closecallback: function () { }
  3887. }, { "style": { "height": "36px" } }).form; //創建窗體
  3888. _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); } }
  3889. break;
  3890. case "chatPDF": //ai編程
  3891. _formdiv = new U.UF.UI.form(
  3892. "chatPDF",
  3893. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3894. "id": "chatPDF",
  3895. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3896. "onresize": function () { }
  3897. }, {
  3898. closecallback: function () { }
  3899. }, { "style": { "height": "36px" } }).form; //創建窗體
  3900. _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); } }
  3901. break;
  3902. case "resources": //國家教育
  3903. _formdiv = new U.UF.UI.form(
  3904. "國家教育",
  3905. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3906. "id": "resources",
  3907. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3908. "onresize": function () { }
  3909. }, {
  3910. closecallback: function () { }
  3911. }, { "style": { "height": "36px" } }).form; //創建窗體
  3912. _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); } }
  3913. break;
  3914. case "codeEdit": //源碼編輯
  3915. _formdiv = new U.UF.UI.form(
  3916. "源碼編輯",
  3917. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3918. "id": "codeEdit",
  3919. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3920. "onresize": function () { }
  3921. }, {
  3922. closecallback: function () { }
  3923. }, { "style": { "height": "36px" } }).form; //創建窗體
  3924. _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); } }
  3925. break; //
  3926. case "MindMap": //MindMap
  3927. _formdiv = new U.UF.UI.form(
  3928. "MindMap",
  3929. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3930. "id": "MindMap",
  3931. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3932. "onresize": function () { }
  3933. }, {
  3934. closecallback: function () { }
  3935. }, { "style": { "height": "36px" } }).form; //創建窗體
  3936. _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); } }
  3937. break;
  3938. case "netWorkPanel": //netWorkPanel
  3939. _formdiv = new U.UF.UI.form(
  3940. "netWorkPanel",
  3941. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3942. "id": "netWorkPanel",
  3943. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3944. "onresize": function () { }
  3945. }, {
  3946. closecallback: function () { }
  3947. }, { "style": { "height": "36px" } }).form; //創建窗體
  3948. _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); } }
  3949. break;
  3950. case "GeoGebra": //GeoGebra
  3951. _formdiv = new U.UF.UI.form(
  3952. "GeoGebra",
  3953. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  3954. "id": "GeoGebra",
  3955. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3956. "onresize": function () { }
  3957. }, {
  3958. closecallback: function () { }
  3959. }, { "style": { "height": "36px" } }).form; //創建窗體
  3960. _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); } }
  3961. break;
  3962. case "translation": //翻譯
  3963. _formdiv = new U.UF.UI.form(
  3964. "翻譯",
  3965. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3966. "id": "translation",
  3967. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3968. "onresize": function () { }
  3969. }, {
  3970. closecallback: function () { }
  3971. }, { "style": { "height": "36px" } }).form; //創建窗體
  3972. _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); } }
  3973. break;
  3974. case "mohe": //魔盒
  3975. _formdiv = new U.UF.UI.form(
  3976. "魔盒識字",
  3977. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3978. "id": "mohe",
  3979. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3980. "onresize": function () { }
  3981. }, {
  3982. closecallback: function () { }
  3983. }, { "style": { "height": "36px" } }).form; //創建窗體
  3984. _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); } }
  3985. break;
  3986. case "24game": //24點
  3987. _formdiv = new U.UF.UI.form(
  3988. "24點",
  3989. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3990. "id": "24game",
  3991. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3992. "onresize": function () { }
  3993. }, {
  3994. closecallback: function () { }
  3995. }, { "style": { "height": "36px" } }).form; //創建窗體
  3996. _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); } }
  3997. break;
  3998. case "case":
  3999. _formdiv = new U.UF.UI.form(
  4000. "課程進展",
  4001. $$("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 }), {
  4002. "id": "case",
  4003. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4004. "onresize": function () { }
  4005. }, {
  4006. closecallback: function () { }
  4007. }, { "style": { "height": "36px" } }).form; //創建窗體
  4008. _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); } }
  4009. break;
  4010. case "snf":
  4011. _formdiv = new U.UF.UI.form(
  4012. "賽諾梵",
  4013. $$("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" }), {
  4014. "id": "snf",
  4015. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4016. "onresize": function () { }
  4017. }, {
  4018. closecallback: function () { }
  4019. }, { "style": { "height": "36px" } }).form; //創建窗體
  4020. _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); } }
  4021. break;
  4022. case "hanFamily":
  4023. _formdiv = new U.UF.UI.form(
  4024. "漢字家族",
  4025. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  4026. "id": "hanFamily",
  4027. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4028. "onresize": function () { }
  4029. }, {
  4030. closecallback: function () { }
  4031. }, { "style": { "height": "36px" } }).form; //創建窗體
  4032. _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); } }
  4033. break;
  4034. case "hanClassics":
  4035. _formdiv = new U.UF.UI.form(
  4036. "國學經典",
  4037. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  4038. "id": "hanClassics",
  4039. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4040. "onresize": function () { }
  4041. }, {
  4042. closecallback: function () { }
  4043. }, { "style": { "height": "36px" } }).form; //創建窗體
  4044. _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); } }
  4045. break;
  4046. case "hanTraining":
  4047. _formdiv = new U.UF.UI.form(
  4048. "筆畫訓練",
  4049. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  4050. "id": "hanTraining",
  4051. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4052. "onresize": function () { }
  4053. }, {
  4054. closecallback: function () { }
  4055. }, { "style": { "height": "36px" } }).form; //創建窗體
  4056. _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); } }
  4057. break;
  4058. case "hanClass":
  4059. _formdiv = new U.UF.UI.form(
  4060. "書法課堂",
  4061. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  4062. "id": "hanClass",
  4063. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4064. "onresize": function () { }
  4065. }, {
  4066. closecallback: function () { }
  4067. }, { "style": { "height": "36px" } }).form; //創建窗體
  4068. _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); } }
  4069. break;
  4070. case "han":
  4071. _formdiv = new U.UF.UI.form(
  4072. "漢字宮",
  4073. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  4074. "id": "han",
  4075. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4076. "onresize": function () { }
  4077. }, {
  4078. closecallback: function () { }
  4079. }, { "style": { "height": "36px" } }).form; //創建窗體
  4080. _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); } }
  4081. break;
  4082. case "projectGM": //課程管理
  4083. _formdiv = new U.UF.UI.form(
  4084. "課程管理",
  4085. $$("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 }), {
  4086. "id": "projectGM",
  4087. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4088. "onresize": function () { }
  4089. }, {
  4090. closecallback: function () { }
  4091. }, { "style": { "height": "36px" } }).form; //創建窗體
  4092. _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); } }
  4093. break;
  4094. case "studyGM": //課程中心
  4095. _formdiv = new U.UF.UI.form(
  4096. "課程中心",
  4097. $$("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
  4098. "id": "study",
  4099. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4100. "onresize": function () { }
  4101. }, {
  4102. closecallback: function () { }
  4103. }, { "style": { "height": "36px" } }).form; //創建窗體
  4104. _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); } }
  4105. break;
  4106. // studentGM
  4107. case "studentGM": //學生管理
  4108. _formdiv = new U.UF.UI.form(
  4109. "學生管理",
  4110. $$("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 }), {
  4111. "id": "studentGM",
  4112. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4113. "onresize": function () { }
  4114. }, {
  4115. closecallback: function () { }
  4116. }, { "style": { "height": "36px" } }).form; //創建窗體
  4117. _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); } }
  4118. break;
  4119. case "evaluateGM": //學生評價
  4120. _formdiv = new U.UF.UI.form(
  4121. "學生評價",
  4122. $$("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 }), {
  4123. "id": "evaluateGM",
  4124. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4125. "onresize": function () { }
  4126. }, {
  4127. closecallback: function () { }
  4128. }, { "style": { "height": "36px" } }).form; //創建窗體
  4129. _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); } }
  4130. break;
  4131. // classGM
  4132. case "classGM": //班級管理
  4133. _formdiv = new U.UF.UI.form(
  4134. "班級管理",
  4135. $$("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 }), {
  4136. "id": "classGM",
  4137. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4138. "onresize": function () { }
  4139. }, {
  4140. closecallback: function () { }
  4141. }, { "style": { "height": "36px" } }).form; //創建窗體
  4142. _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); } }
  4143. break;
  4144. // dataGM
  4145. case "dataGM":
  4146. _formdiv = new U.UF.UI.form(
  4147. "我的資料",
  4148. $$("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 }), {
  4149. "id": "dataGM",
  4150. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  4151. "onresize": function () { }
  4152. }, {
  4153. closecallback: function () { }
  4154. }, { "style": { "height": "36px" } }).form; //創建窗體
  4155. _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); } }
  4156. break;
  4157. // caseGM
  4158. case "caseGM": //課程進展
  4159. _formdiv = new U.UF.UI.form(
  4160. "課程進展",
  4161. $$("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 }), {
  4162. "id": "caseGM",
  4163. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4164. "onresize": function () { }
  4165. }, {
  4166. closecallback: function () { }
  4167. }, { "style": { "height": "36px" } }).form; //創建窗體
  4168. _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); } }
  4169. break;
  4170. // meterialGM
  4171. case "meterialGM": //素材庫
  4172. _formdiv = new U.UF.UI.form(
  4173. "素材庫",
  4174. $$("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 }), {
  4175. "id": "meterialGM",
  4176. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4177. "onresize": function () { }
  4178. }, {
  4179. closecallback: function () { }
  4180. }, { "style": { "height": "36px" } }).form; //創建窗體
  4181. _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); } }
  4182. break;
  4183. // evaluateSGM
  4184. case "evaluateSGM": //我的評價
  4185. _formdiv = new U.UF.UI.form(
  4186. "我的評價",
  4187. $$("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 }), {
  4188. "id": "evaluateSGM",
  4189. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  4190. "onresize": function () { }
  4191. }, {
  4192. closecallback: function () { }
  4193. }, { "style": { "height": "36px" } }).form; //創建窗體
  4194. _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); } }
  4195. break;
  4196. case "jupyter": //jupyter
  4197. _formdiv = new U.UF.UI.form(
  4198. "jupyter",
  4199. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  4200. "id": "jupyter",
  4201. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4202. "onresize": function () { }
  4203. }, {
  4204. closecallback: function () { }
  4205. }, { "style": { "height": "36px" } }).form; //創建窗體
  4206. _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); } }
  4207. break;
  4208. case "number": //數字實驗室
  4209. _formdiv = new U.UF.UI.form(
  4210. "數字實驗室",
  4211. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  4212. "id": "number",
  4213. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4214. "onresize": function () { }
  4215. }, {
  4216. closecallback: function () { }
  4217. }, { "style": { "height": "36px" } }).form; //創建窗體
  4218. _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); } }
  4219. break;
  4220. case "studentCourse": //項目管理 學生
  4221. _formdiv = new U.UF.UI.form(
  4222. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  4223. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;clipboard-write;clipboard-read;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studentCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  4224. "id": "studentCourse",
  4225. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4226. "onresize": function () { }
  4227. }, {
  4228. closecallback: function () { }
  4229. }, { "style": { "height": "36px" } }).form; //創建窗體
  4230. _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); } }
  4231. break;
  4232. case "studentCourseS": //項目管理 老師
  4233. _formdiv = new U.UF.UI.form(
  4234. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  4235. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;clipboard-write;clipboard-read;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/scourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4236. "id": "studentCourseS",
  4237. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4238. "onresize": function () { }
  4239. }, {
  4240. closecallback: function () { }
  4241. }, { "style": { "height": "36px" } }).form; //創建窗體
  4242. _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); } }
  4243. break;
  4244. case "studentIndex": //項目中心
  4245. _formdiv = new U.UF.UI.form(
  4246. "項目中心",
  4247. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studentIndex?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType + "&role=" + _role }), {
  4248. "id": "studentIndex",
  4249. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4250. "onresize": function () { }
  4251. }, {
  4252. closecallback: function () { }
  4253. }, { "style": { "height": "36px" } }).form; //創建窗體
  4254. _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); } }
  4255. break;
  4256. case "CaseDesignS":
  4257. _formdiv = new U.UF.UI.form(
  4258. "項目進展",
  4259. $$("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 }), {
  4260. "id": "case",
  4261. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4262. "onresize": function () { }
  4263. }, {
  4264. closecallback: function () { }
  4265. }, { "style": { "height": "36px" } }).form; //創建窗體
  4266. _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); } }
  4267. break;
  4268. case "tcStudent": //騰訊學生管理
  4269. _formdiv = new U.UF.UI.form(
  4270. "學生管理",
  4271. $$("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 }), {
  4272. "id": "tcStudent",
  4273. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4274. "onresize": function () { }
  4275. }, {
  4276. closecallback: function () { }
  4277. }, { "style": { "height": "36px" } }).form; //創建窗體
  4278. _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); } }
  4279. break;
  4280. case "tcSchool": //騰訊學校管理
  4281. _formdiv = new U.UF.UI.form(
  4282. "學校管理",
  4283. $$("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 }), {
  4284. "id": "tcSchool",
  4285. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4286. "onresize": function () { }
  4287. }, {
  4288. closecallback: function () { }
  4289. }, { "style": { "height": "36px" } }).form; //創建窗體
  4290. _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); } }
  4291. break;
  4292. case "tcTeacher": //騰訊學校管理
  4293. _formdiv = new U.UF.UI.form(
  4294. "教師管理",
  4295. $$("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 }), {
  4296. "id": "tcTeacher",
  4297. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4298. "onresize": function () { }
  4299. }, {
  4300. closecallback: function () { }
  4301. }, { "style": { "height": "36px" } }).form; //創建窗體
  4302. _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); } }
  4303. break;
  4304. case "tcData": //騰訊我的資料
  4305. _formdiv = new U.UF.UI.form(
  4306. "我的資料",
  4307. $$("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 }), {
  4308. "id": "tcData",
  4309. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  4310. "onresize": function () { }
  4311. }, {
  4312. closecallback: function () { }
  4313. }, { "style": { "height": "36px" } }).form; //創建窗體
  4314. _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); } }
  4315. break;
  4316. case "tcNotice": //騰訊消息通知
  4317. _formdiv = new U.UF.UI.form(
  4318. "消息通知",
  4319. $$("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 }), {
  4320. "id": "tcNotice",
  4321. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4322. "onresize": function () { }
  4323. }, {
  4324. closecallback: function () { }
  4325. }, { "style": { "height": "36px" } }).form; //創建窗體
  4326. _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); } }
  4327. break;
  4328. case "myReport": //好友打開
  4329. _formdiv = new U.UF.UI.form(
  4330. "我的評價",
  4331. $$("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 }), {
  4332. "id": "myReport",
  4333. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4334. "onresize": function () { }
  4335. }, {
  4336. closecallback: function () { }
  4337. }, { "style": { "height": "36px" } }).form; //創建窗體
  4338. _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); } }
  4339. break;
  4340. case "learnAna": //好友打開
  4341. _formdiv = new U.UF.UI.form(
  4342. "學習分析",
  4343. $$("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 }), {
  4344. "id": "learnAna",
  4345. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4346. "onresize": function () { }
  4347. }, {
  4348. closecallback: function () { }
  4349. }, { "style": { "height": "36px" } }).form; //創建窗體
  4350. _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); } }
  4351. break;
  4352. case "AIChat": //AI共創
  4353. _formdiv = new U.UF.UI.form(
  4354. "AI共創",
  4355. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/aichat/" }), {
  4356. "id": "AIChat",
  4357. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  4358. "onresize": function () { }
  4359. }, {
  4360. istop: true,
  4361. closecallback: function () { $("#aichat_icon").remove(); },
  4362. narrowcallback: function () {
  4363. if (!$("#aichat_icon")[0]) {
  4364. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  4365. }
  4366. },
  4367. }, { "style": { "height": "36px" } }).form; //創建窗體
  4368. _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); } }
  4369. break;
  4370. case "ainew": //AI共創
  4371. _formdiv = new U.UF.UI.form(
  4372. "AI協同",
  4373. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ainew/" }), {
  4374. "id": "ainew",
  4375. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4376. "onresize": function () { }
  4377. }, {
  4378. closecallback: function () { }
  4379. }, { "style": { "height": "36px" } }).form; //創建窗體
  4380. _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); } }
  4381. break;
  4382. case "futureClass": //AI共創
  4383. _formdiv = new U.UF.UI.form(
  4384. "協同建構",
  4385. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/synergyCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {//https://cscl.cocorobo.hk
  4386. "id": "synergyCourse",
  4387. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4388. "onresize": function () { }
  4389. }, {
  4390. closecallback: function () {
  4391. $("iframe", _formdiv)[0].contentWindow.loginout();
  4392. }
  4393. }, { "style": { "height": "36px" } }).form; //創建窗體
  4394. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/futureClass.png)" }, "name": "協同建構", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4395. break;
  4396. case "aiagent": //ai agent
  4397. _formdiv = new U.UF.UI.form(
  4398. "AI Agent",
  4399. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://metagpt.cocorobo.cn/dist/index.html" }), {
  4400. "id": "AIAgent",
  4401. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4402. "onresize": function () { }
  4403. }, {
  4404. closecallback: function () { }
  4405. }, { "style": { "height": "36px" } }).form; //創建窗體
  4406. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram2.png)" }, "name": "AI Agent", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4407. break;
  4408. case "dataBoard": //數據看板
  4409. _formdiv = new U.UF.UI.form(
  4410. "數據看板",
  4411. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataBoard?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4412. "id": "dataBoard",
  4413. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4414. "onresize": function () { }
  4415. }, {
  4416. closecallback: function () { }
  4417. }, { "style": { "height": "36px" } }).form; //創建窗體
  4418. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/dataBoard.png)" }, "name": "數據看板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4419. break;
  4420. case "dataBoardSies": //數據看板
  4421. _formdiv = new U.UF.UI.form(
  4422. "數據看板",
  4423. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataBoardSies?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4424. "id": "dataBoardSies",
  4425. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4426. "onresize": function () { }
  4427. }, {
  4428. closecallback: function () { }
  4429. }, { "style": { "height": "36px" } }).form; //創建窗體
  4430. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/dataBoardSies.png)" }, "name": "數據看板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4431. break;
  4432. case "AIAnalyse": //AI共創
  4433. _formdiv = new U.UF.UI.form(
  4434. "AI分析",
  4435. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ai/" }), {
  4436. "id": "AIAnalyse",
  4437. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4438. "onresize": function () { }
  4439. }, {
  4440. closecallback: function () { }
  4441. }, { "style": { "height": "36px" } }).form; //創建窗體
  4442. _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); } }
  4443. break;
  4444. case "studioCourse": //AI共創
  4445. _formdiv = new U.UF.UI.form(
  4446. "工作管理",
  4447. $$("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 }), {
  4448. "id": "studioCourse",
  4449. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4450. "onresize": function () { }
  4451. }, {
  4452. closecallback: function () { }
  4453. }, { "style": { "height": "36px" } }).form; //創建窗體
  4454. _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); } }
  4455. break;
  4456. case "studioIndex": //AI共創
  4457. _formdiv = new U.UF.UI.form(
  4458. "工作中心",
  4459. $$("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 }), {
  4460. "id": "studioIndex",
  4461. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4462. "onresize": function () { }
  4463. }, {
  4464. closecallback: function () { }
  4465. }, { "style": { "height": "36px" } }).form; //創建窗體
  4466. _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); } }
  4467. break;
  4468. case "source":
  4469. _formdiv = new U.UF.UI.form(
  4470. "教學資源",
  4471. $$("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 }), {
  4472. "id": "source",
  4473. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4474. "onresize": function () { }
  4475. }, {
  4476. closecallback: function () { }
  4477. }, { "style": { "height": "36px" } }).form; //創建窗體
  4478. _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); } }
  4479. break;
  4480. case "testTeacher":
  4481. _formdiv = new U.UF.UI.form(
  4482. "評測管理",
  4483. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/test?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4484. "id": "testTeacher",
  4485. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4486. "onresize": function () { }
  4487. }, {
  4488. closecallback: function () { }
  4489. }, { "style": { "height": "36px" } }).form; //創建窗體
  4490. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/testTeacher.png)" }, "name": "評測管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4491. break;
  4492. case "testStudent":
  4493. _formdiv = new U.UF.UI.form(
  4494. "評測中心",
  4495. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/testStudent?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&classid=" + _classId + "&role=" + _role }), {
  4496. "id": "testStudent",
  4497. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4498. "onresize": function () { }
  4499. }, {
  4500. closecallback: function () { }
  4501. }, { "style": { "height": "36px" } }).form; //創建窗體
  4502. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/testStudent.png)" }, "name": "評測管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4503. break;
  4504. }
  4505. //U.MD.D.I.openClick(str);
  4506. //如果有任務欄信息
  4507. if (_taskbar) {
  4508. U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4509. }
  4510. }
  4511. // U.MD.D.I.openClick = function(str){
  4512. // var click = '';
  4513. // switch(str){
  4514. // case 'friend':
  4515. // click = '我的好友';
  4516. // break;
  4517. // case 'domain':
  4518. // click = '域名管理';
  4519. // break;
  4520. // case 'disk':
  4521. // click = '我的雲盤';
  4522. // break;
  4523. // case 'word':
  4524. // click = 'Word';
  4525. // break;
  4526. // case 'excel':
  4527. // click = 'Execl';
  4528. // break;
  4529. // case 'txt':
  4530. // click = '文本文件';
  4531. // break;
  4532. // case 'lookupFriend':
  4533. // click = '查找好友';
  4534. // break;
  4535. // case 'ftp':
  4536. // click = 'FTP';
  4537. // break;
  4538. // case 'group':
  4539. // click = '群組';
  4540. // break;
  4541. // case 'set':
  4542. // click = '我的設置';
  4543. // break;
  4544. // case 'systemSet':
  4545. // click = '系統設置';
  4546. // break;
  4547. // case 'boomYun':
  4548. // click = '互聯辦公';
  4549. // break;
  4550. // case 'xz':
  4551. // click = '雲端下載';
  4552. // break;
  4553. // case 'client':
  4554. // click = '有思瀏覽器';
  4555. // break;
  4556. // case 'backEndProgramming':
  4557. // click = '在線後臺編程';
  4558. // break;
  4559. // case 'frontEndProgramming':
  4560. // click = '在線前端編程';
  4561. // break;
  4562. // default: break;
  4563. // }
  4564. // if(U.MD.D.I.Ip && click){
  4565. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  4566. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  4567. // })
  4568. // }
  4569. // }
  4570. /**
  4571. *函數作用:ajax簡易函數,使用post格式
  4572. *@param url {data} 後臺地址
  4573. *@param data {data} 參數json
  4574. *@param fn {data} 回調函數
  4575. *
  4576. */
  4577. // U.MD.D.I.Mysqlrequest = function(url,fn){
  4578. // var xhr = new XMLHttpRequest();
  4579. // xhr.open("GET",url,true);
  4580. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  4581. // xhr.onreadystatechange = function(){
  4582. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  4583. // fn.call(this,xhr.responseText);
  4584. // }
  4585. // };
  4586. // xhr.send();
  4587. // }
  4588. /*判斷是否是內網IP*/
  4589. // U.MD.D.I.isInnerIPFn = function(str){
  4590. // var curPageUrl = str;
  4591. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前綴
  4592. // curPageUrl =curPageUrl.replace(reg1,'');
  4593. // // console.log('curPageUrl-1 '+curPageUrl);
  4594. // var reg2 = /\:+/g;//替換冒號為一點
  4595. // curPageUrl =curPageUrl.replace(reg2,'.');
  4596. // // console.log('curPageUrl-2 '+curPageUrl);
  4597. // curPageUrl = curPageUrl.split('.');//通過一點來劃分數組
  4598. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  4599. // if(curPageUrl[2] != '16'){
  4600. // return ipAddress;
  4601. // }else{
  4602. // return false;
  4603. // }
  4604. // }
  4605. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  4606. // //compatibility for firefox and chrome
  4607. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  4608. // var pc = new myPeerConnection({
  4609. // iceServers: []
  4610. // }),
  4611. // noop = function() {},
  4612. // localIPs = {},
  4613. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  4614. // key;
  4615. // function iterateIP(ip) {
  4616. // if (!localIPs[ip]) onNewIP(ip);
  4617. // localIPs[ip] = true;
  4618. // }
  4619. // //create a bogus data channel
  4620. // pc.createDataChannel("");
  4621. // // create offer and set local description
  4622. // pc.createOffer().then(function(sdp) {
  4623. // sdp.sdp.split('\n').forEach(function(line) {
  4624. // if (line.indexOf('candidate') < 0) return;
  4625. // line.match(ipRegex).forEach(iterateIP);
  4626. // });
  4627. // pc.setLocalDescription(sdp, noop, noop);
  4628. // }).catch(function(reason) {
  4629. // // An error occurred, so handle the failure to connect
  4630. // });
  4631. // //sten for candidate events
  4632. // pc.onicecandidate = function(ice) {
  4633. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  4634. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  4635. // };
  4636. // }
  4637. // U.MD.D.I.getUserIpBool = function(callback){
  4638. // U.MD.D.I.getUserIP(function(ip){
  4639. // alert("Got IP! :" + ip);
  4640. // });
  4641. //}
  4642. //#endregion
  4643. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  4644. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4645. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4646. _userinfo = US.userInfo, //登錄用戶信息
  4647. _userid = US.userInfo.userid //登錄用戶id
  4648. let _iframe;
  4649. let _cid = cid,
  4650. _stage = stage,
  4651. _task = task,
  4652. _tool = tool;
  4653. var _jie = $$("div", {
  4654. "style": {
  4655. "position": "absolute",
  4656. "bottom": "50px",
  4657. "right": "50px",
  4658. "zIndex": "9999",
  4659. "backgroundColor": "#2268bc",
  4660. "color": "#fff",
  4661. "padding": "12px 20px",
  4662. "cursor": "pointer",
  4663. "borderRadius": "4px",
  4664. },
  4665. "innerHTML": "提交作業"
  4666. })
  4667. let aTool = ''
  4668. let _loading = document.createElement('div')
  4669. _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;"
  4670. // _loading.id = "";
  4671. let _lchild = document.createElement('div')
  4672. let _limg = document.createElement('img')
  4673. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4674. _limg.style = "width: 26px;margin-right: 10px;"
  4675. _lchild.appendChild(_limg)
  4676. let _lspan = document.createElement('span')
  4677. _lspan.innerHTML = "上傳中..."
  4678. _lchild.appendChild(_lspan)
  4679. _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%);"
  4680. _loading.appendChild(_lchild)
  4681. var _box = $$('div', {
  4682. "style": {
  4683. "position": "relative",
  4684. "width": "100%",
  4685. "height": "100%",
  4686. },
  4687. })
  4688. _box.appendChild(_loading)
  4689. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool + _userid
  4690. switch (str) {
  4691. case "whiteboard":
  4692. aTool = 1;
  4693. _iframe = $$("iframe", {
  4694. "frameborder": "no",
  4695. "border": "0",
  4696. "scrolling ": "no",
  4697. "style": {
  4698. "cssText": "border:0;width:100%;height:100%"
  4699. },
  4700. "src": "https://iwb.cocorobo.hk/"
  4701. })
  4702. _box.appendChild(_iframe);
  4703. _box.appendChild(_jie);
  4704. _formdiv = new U.UF.UI.form(
  4705. "電子白板",
  4706. _box, {
  4707. "id": "whiteboard" + cid + stage + task + tool,
  4708. "style": {
  4709. "width": "90%",
  4710. "height": "90%",
  4711. "overflow": 'hidden'
  4712. },
  4713. "onresize": function () { }
  4714. }, {
  4715. closecallback: function () { }
  4716. }, {
  4717. "style": {
  4718. "height": "36px"
  4719. }
  4720. }).form; //創建窗體
  4721. _taskbar = {
  4722. "id": str + _formdiv.id,
  4723. "style": {
  4724. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4725. },
  4726. "name": "電子白板",
  4727. "forms": _formdiv,
  4728. "click": function () {
  4729. U.MD.D.I.openApplication(str, obj, info);
  4730. }
  4731. }
  4732. break;
  4733. case "mind":
  4734. aTool = 3;
  4735. _iframe = $$("iframe", {
  4736. "frameborder": "no",
  4737. "border": "0",
  4738. "scrolling ": "no",
  4739. "style": {
  4740. "cssText": "border:0;width:100%;height:100%"
  4741. },
  4742. "src": "/kityminder-editor/dist/index.html"
  4743. })
  4744. _box.appendChild(_iframe);
  4745. _box.appendChild(_jie);
  4746. _formdiv = new U.UF.UI.form(
  4747. "思維導圖",
  4748. _box, { //"/jsmind/example/demo.html"
  4749. "id": "mind" + cid + stage + task + tool,
  4750. "style": {
  4751. "width": "90%",
  4752. "height": "90%",
  4753. "overflow": 'hidden'
  4754. },
  4755. "onresize": function () { }
  4756. }, {
  4757. closecallback: function () { }
  4758. }, {
  4759. "style": {
  4760. "height": "36px"
  4761. }
  4762. }).form; //創建窗體
  4763. _taskbar = {
  4764. "id": str + _formdiv.id,
  4765. "style": {
  4766. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4767. },
  4768. "name": "思維導圖",
  4769. "forms": _formdiv,
  4770. "click": function () {
  4771. U.MD.D.I.openApplication(str, obj, info);
  4772. }
  4773. }
  4774. break;
  4775. case "MindMap":
  4776. aTool = 3;
  4777. _iframe = $$("iframe", {
  4778. "frameborder": "no",
  4779. "border": "0",
  4780. "scrolling ": "no",
  4781. "style": {
  4782. "cssText": "border:0;width:100%;height:100%"
  4783. },
  4784. "src": "//cloud.cocorobo.hk/mind/"
  4785. })
  4786. _box.appendChild(_iframe);
  4787. _box.appendChild(_jie);
  4788. _formdiv = new U.UF.UI.form(
  4789. "思維導圖",
  4790. _box, { //"/jsmind/example/demo.html"
  4791. "id": "mind" + cid + stage + task + tool,
  4792. "style": {
  4793. "width": "90%",
  4794. "height": "90%",
  4795. "overflow": 'hidden'
  4796. },
  4797. "onresize": function () { }
  4798. }, {
  4799. closecallback: function () { }
  4800. }, {
  4801. "style": {
  4802. "height": "36px"
  4803. }
  4804. }).form; //創建窗體
  4805. _taskbar = {
  4806. "id": str + _formdiv.id,
  4807. "style": {
  4808. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4809. },
  4810. "name": "思維導圖",
  4811. "forms": _formdiv,
  4812. "click": function () {
  4813. U.MD.D.I.openApplication(str, obj, info);
  4814. }
  4815. }
  4816. break;
  4817. case "doc":
  4818. aTool = 6;
  4819. _iframe = $$("iframe", {
  4820. "frameborder": "no",
  4821. "border": "0",
  4822. "scrolling ": "no",
  4823. "style": {
  4824. "cssText": "border:0;width:100%;height:100%"
  4825. },
  4826. "src": "/Office/Word/WordEditArea.htm"
  4827. })
  4828. _box.appendChild(_iframe);
  4829. _box.appendChild(_jie);
  4830. _formdiv = new U.UF.UI.form(
  4831. "協同文檔",
  4832. _box, {
  4833. "id": "doc" + cid + stage + task + tool,
  4834. "style": {
  4835. "width": "90%",
  4836. "height": "90%",
  4837. "overflow": 'hidden'
  4838. },
  4839. "onresize": function () { }
  4840. }, {
  4841. closecallback: function () { }
  4842. }, {
  4843. "style": {
  4844. "height": "36px"
  4845. }
  4846. }).form; //創建窗體
  4847. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4848. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4849. })
  4850. _taskbar = {
  4851. "id": str + _formdiv.id,
  4852. "style": {
  4853. "backgroundImage": "url(/img/icon/doc.png)"
  4854. },
  4855. "name": "協同文檔",
  4856. "forms": _formdiv,
  4857. "click": function () {
  4858. U.MD.D.I.openApplication(str, obj, info);
  4859. }
  4860. }
  4861. break;
  4862. case "mindNetwork": //好友打開
  4863. aTool = 7;
  4864. _iframe = $$("iframe", {
  4865. "webkitallowfullscreen": "",
  4866. "mozallowfullscreen": "",
  4867. "allowfullscreen": "",
  4868. "frameborder": "no",
  4869. "border": "0",
  4870. "scrolling ": "no",
  4871. "style": {
  4872. "cssText": "border:0; width:100%; height:100%;"
  4873. },
  4874. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4875. })
  4876. _box.appendChild(_iframe);
  4877. _box.appendChild(_jie);
  4878. _formdiv = new U.UF.UI.form(
  4879. "思維網格",
  4880. _box, {
  4881. "id": "mindNetwork" + cid + stage + task + tool,
  4882. "style": {
  4883. "width": "90%",
  4884. "height": "90%",
  4885. "overflow": 'hidden'
  4886. },
  4887. "onresize": function () { }
  4888. }, {
  4889. closecallback: function () { }
  4890. }, {
  4891. "style": {
  4892. "height": "36px"
  4893. }
  4894. }).form; //創建窗體
  4895. _taskbar = {
  4896. "id": str + _formdiv.id,
  4897. "style": {
  4898. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4899. },
  4900. "name": "思維網格",
  4901. "forms": _formdiv,
  4902. "click": function () {
  4903. U.MD.D.I.openApplication(str, obj, info);
  4904. }
  4905. }
  4906. break;
  4907. case "courseDesign":
  4908. _iframe = $$("iframe", {
  4909. "webkitallowfullscreen": "",
  4910. "mozallowfullscreen": "",
  4911. "allowfullscreen": "",
  4912. "frameborder": "no",
  4913. "border": "0",
  4914. "scrolling ": "no",
  4915. "style": {
  4916. "cssText": "border:0; width:100%; height:100%;"
  4917. },
  4918. "src": "/course-design-vue"
  4919. })
  4920. _box.appendChild(_iframe);
  4921. _box.appendChild(_jie);
  4922. _formdiv = new U.UF.UI.form(
  4923. "項目設計",
  4924. _box, {
  4925. "id": "courseDesign" + cid + stage + task + tool,
  4926. "style": {
  4927. "width": "90%",
  4928. "height": "90%",
  4929. "overflow": 'hidden'
  4930. },
  4931. "onresize": function () { }
  4932. }, {
  4933. closecallback: function () { }
  4934. }, {
  4935. "style": {
  4936. "height": "36px"
  4937. }
  4938. }).form; //創建窗體
  4939. _taskbar = {
  4940. "id": str + _formdiv.id,
  4941. "style": {
  4942. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4943. },
  4944. "name": "項目設計",
  4945. "forms": _formdiv,
  4946. "click": function () {
  4947. U.MD.D.I.openApplication(str, obj, info);
  4948. }
  4949. }
  4950. break;
  4951. }
  4952. const script1 = document.createElement("script");
  4953. script1.type = "text/javascript";
  4954. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4955. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  4956. const script2 = document.createElement("script");
  4957. script2.type = "text/javascript";
  4958. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4959. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  4960. const script3 = document.createElement("script");
  4961. script3.type = "text/javascript";
  4962. script3.charset = "UTF-8";
  4963. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  4964. const script4 = document.createElement("script");
  4965. script4.type = "text/javascript";
  4966. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4967. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  4968. if (_iframe) {
  4969. if (str == 'doc') {
  4970. _iframe = _formdiv.querySelector('iframe')
  4971. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4972. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4973. _iframe.contentWindow.document.body.appendChild(script1);
  4974. _iframe.contentWindow.document.body.appendChild(script2);
  4975. // _iframe.contentWindow.document.body.appendChild(script3);
  4976. _iframe.contentWindow.document.body.appendChild(script4);
  4977. })
  4978. if (onloadListener) {
  4979. _iframe.contentDocument.location.reload()
  4980. } else {
  4981. _iframe.contentDocument.location.reload()
  4982. }
  4983. } else if (str == 'courseDesign') {
  4984. U.UF.DL.iframeLoad(_iframe, function () {
  4985. // _iframe.contentWindow.U.MD.O.W.load();
  4986. // _iframe.contentWindow.document.body.appendChild(script1);
  4987. _iframe.contentWindow.document.body.appendChild(script2);
  4988. _iframe.contentWindow.document.body.appendChild(script4);
  4989. })
  4990. } else if (str == 'mind') {
  4991. _iframe = _formdiv.querySelector('iframe')
  4992. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4993. //
  4994. _iframe.contentWindow.document.body.appendChild(script1);
  4995. _iframe.contentWindow.document.body.appendChild(script2);
  4996. _iframe.contentWindow.document.body.appendChild(script4);
  4997. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4998. })
  4999. if (onloadListener) {
  5000. _iframe.contentDocument.location.reload()
  5001. } else {
  5002. _iframe.contentDocument.location.reload()
  5003. }
  5004. } else if (str == 'whiteboard') {
  5005. _iframe = _formdiv.querySelector('iframe')
  5006. let onloadListener = _iframe.onload = () => {
  5007. _iframe.contentWindow.document.body.appendChild(script1);
  5008. _iframe.contentWindow.document.body.appendChild(script2);
  5009. _iframe.contentWindow.document.body.appendChild(script4);
  5010. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5011. };
  5012. if (onloadListener) {
  5013. _iframe.contentDocument.location.reload()
  5014. } else {
  5015. _iframe.contentDocument.location.reload()
  5016. }
  5017. } else {
  5018. _iframe.onload = () => {
  5019. _iframe.contentWindow.document.body.appendChild(script1);
  5020. _iframe.contentWindow.document.body.appendChild(script2);
  5021. // _iframe.contentWindow.document.body.appendChild(script3);
  5022. _iframe.contentWindow.document.body.appendChild(script4);
  5023. };
  5024. }
  5025. _jie.onclick = async () => {
  5026. let text = ''
  5027. if (aTool == 1) {
  5028. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5029. } else if (aTool == 6) {
  5030. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5031. } else if (aTool == 3) {
  5032. text = await U.MD.D.I.getEditorContent(_iframe);
  5033. }
  5034. _loading.style.display = 'flex'
  5035. console.log(_loading);
  5036. var _ajs = _iframe.contentWindow.document.createElement("script");
  5037. _ajs.type = "text/javascript";
  5038. _ajs.innerHTML =
  5039. // 'console.log(' + _loading + ');\n' +
  5040. 'var _js = document.createElement("script");\n' +
  5041. '_js.type="text/javascript";\n' +
  5042. '_js.charset="UTF-8";\n' +
  5043. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5044. "_js.onload = function(){\n" +
  5045. ' var a = document.getElementsByTagName("img")\n' +
  5046. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5047. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5048. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5049. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5050. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5051. "beforeUpload_shishi(file," +
  5052. "'" +
  5053. _userid +
  5054. "'" +
  5055. ", " +
  5056. "'" +
  5057. _cid +
  5058. "'" +
  5059. ", " +
  5060. "'" +
  5061. _stage +
  5062. "'" +
  5063. ", " +
  5064. "'" +
  5065. _task +
  5066. "'" +
  5067. ", " +
  5068. "'" +
  5069. _tool +
  5070. "'" +
  5071. ", " +
  5072. "'" +
  5073. (str + '_loadLi_Jie' + cid + stage + task + tool + _userid) +
  5074. "'" +
  5075. ", " +
  5076. "'" +
  5077. aTool +
  5078. "'" +
  5079. ", " +
  5080. "`" +
  5081. text +
  5082. "`" +
  5083. ")\n" +
  5084. " });\n" +
  5085. "}\n" +
  5086. "document.head.appendChild(_js);\n";
  5087. _iframe.contentWindow.document.head.appendChild(_ajs);
  5088. }
  5089. }
  5090. //U.MD.D.I.openClick(str);
  5091. //如果有任務欄信息
  5092. // if (_taskbar) {
  5093. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  5094. // }
  5095. }
  5096. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  5097. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5098. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5099. _userinfo = US.userInfo, //登錄用戶信息
  5100. _userid = US.userInfo.userid //登錄用戶id
  5101. let _iframe;
  5102. let _cid = cid,
  5103. _stage = stage,
  5104. _task = task,
  5105. _tool = tool;
  5106. var _jie = $$("div", {
  5107. "style": {
  5108. "position": "absolute",
  5109. "bottom": "50px",
  5110. "right": "50px",
  5111. "zIndex": "9999",
  5112. "backgroundColor": "#2268bc",
  5113. "color": "#fff",
  5114. "padding": "12px 20px",
  5115. "cursor": "pointer",
  5116. "borderRadius": "4px",
  5117. },
  5118. "innerHTML": "提交作業"
  5119. })
  5120. let aTool = ''
  5121. let _loading = document.createElement('div')
  5122. _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;"
  5123. // _loading.id = "";
  5124. let _lchild = document.createElement('div')
  5125. let _limg = document.createElement('img')
  5126. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5127. _limg.style = "width: 26px;margin-right: 10px;"
  5128. _lchild.appendChild(_limg)
  5129. let _lspan = document.createElement('span')
  5130. _lspan.innerHTML = "上傳中..."
  5131. _lchild.appendChild(_lspan)
  5132. _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%);"
  5133. _loading.appendChild(_lchild)
  5134. var _box = $$('div', {
  5135. "style": {
  5136. "position": "relative",
  5137. "width": "100%",
  5138. "height": "100%",
  5139. },
  5140. })
  5141. _box.appendChild(_loading)
  5142. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool + _userid
  5143. switch (str) {
  5144. case "whiteboard":
  5145. aTool = 1;
  5146. _iframe = $$("iframe", {
  5147. "frameborder": "no",
  5148. "border": "0",
  5149. "scrolling ": "no",
  5150. "style": {
  5151. "cssText": "border:0;width:100%;height:100%"
  5152. },
  5153. "src": "https://iwb.cocorobo.hk/"
  5154. })
  5155. _box.appendChild(_iframe);
  5156. _box.appendChild(_jie);
  5157. _formdiv = new U.UF.UI.form(
  5158. "電子白板",
  5159. _box, {
  5160. "id": "whiteboard" + cid + stage + task + tool,
  5161. "style": {
  5162. "width": "90%",
  5163. "height": "90%",
  5164. "overflow": 'hidden'
  5165. },
  5166. "onresize": function () { }
  5167. }, {
  5168. closecallback: function () { }
  5169. }, {
  5170. "style": {
  5171. "height": "36px"
  5172. }
  5173. }).form; //創建窗體
  5174. _taskbar = {
  5175. "id": str + _formdiv.id,
  5176. "style": {
  5177. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5178. },
  5179. "name": "電子白板",
  5180. "forms": _formdiv,
  5181. "click": function () {
  5182. U.MD.D.I.openApplication(str, obj, info);
  5183. }
  5184. }
  5185. break;
  5186. case "mind":
  5187. aTool = 3;
  5188. _iframe = $$("iframe", {
  5189. "frameborder": "no",
  5190. "border": "0",
  5191. "scrolling ": "no",
  5192. "style": {
  5193. "cssText": "border:0;width:100%;height:100%"
  5194. },
  5195. "src": "/kityminder-editor/dist/index.html"
  5196. })
  5197. _box.appendChild(_iframe);
  5198. _box.appendChild(_jie);
  5199. _formdiv = new U.UF.UI.form(
  5200. "思維導圖",
  5201. _box, { //"/jsmind/example/demo.html"
  5202. "id": "mind" + cid + stage + task + tool,
  5203. "style": {
  5204. "width": "90%",
  5205. "height": "90%",
  5206. "overflow": 'hidden'
  5207. },
  5208. "onresize": function () { }
  5209. }, {
  5210. closecallback: function () { }
  5211. }, {
  5212. "style": {
  5213. "height": "36px"
  5214. }
  5215. }).form; //創建窗體
  5216. _taskbar = {
  5217. "id": str + _formdiv.id,
  5218. "style": {
  5219. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5220. },
  5221. "name": "思維導圖",
  5222. "forms": _formdiv,
  5223. "click": function () {
  5224. U.MD.D.I.openApplication(str, obj, info);
  5225. }
  5226. }
  5227. break;
  5228. case "MindMap":
  5229. aTool = 3;
  5230. _iframe = $$("iframe", {
  5231. "frameborder": "no",
  5232. "border": "0",
  5233. "scrolling ": "no",
  5234. "style": {
  5235. "cssText": "border:0;width:100%;height:100%"
  5236. },
  5237. "src": "//cloud.cocorobo.hk/mind/"
  5238. })
  5239. _box.appendChild(_iframe);
  5240. _box.appendChild(_jie);
  5241. _formdiv = new U.UF.UI.form(
  5242. "思維導圖",
  5243. _box, { //"/jsmind/example/demo.html"
  5244. "id": "mind" + cid + stage + task + tool,
  5245. "style": {
  5246. "width": "90%",
  5247. "height": "90%",
  5248. "overflow": 'hidden'
  5249. },
  5250. "onresize": function () { }
  5251. }, {
  5252. closecallback: function () { }
  5253. }, {
  5254. "style": {
  5255. "height": "36px"
  5256. }
  5257. }).form; //創建窗體
  5258. _taskbar = {
  5259. "id": str + _formdiv.id,
  5260. "style": {
  5261. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5262. },
  5263. "name": "思維導圖",
  5264. "forms": _formdiv,
  5265. "click": function () {
  5266. U.MD.D.I.openApplication(str, obj, info);
  5267. }
  5268. }
  5269. break;
  5270. case "doc":
  5271. aTool = 6;
  5272. _iframe = $$("iframe", {
  5273. "frameborder": "no",
  5274. "border": "0",
  5275. "scrolling ": "no",
  5276. "style": {
  5277. "cssText": "border:0;width:100%;height:100%"
  5278. },
  5279. "src": "/Office/Word/WordEditArea.htm"
  5280. })
  5281. _box.appendChild(_iframe);
  5282. _box.appendChild(_jie);
  5283. _formdiv = new U.UF.UI.form(
  5284. "協同文檔",
  5285. _box, {
  5286. "id": "doc" + cid + stage + task + tool,
  5287. "style": {
  5288. "width": "90%",
  5289. "height": "90%",
  5290. "overflow": 'hidden'
  5291. },
  5292. "onresize": function () { }
  5293. }, {
  5294. closecallback: function () { }
  5295. }, {
  5296. "style": {
  5297. "height": "36px"
  5298. }
  5299. }).form; //創建窗體
  5300. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5301. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5302. })
  5303. _taskbar = {
  5304. "id": str + _formdiv.id,
  5305. "style": {
  5306. "backgroundImage": "url(/img/icon/doc.png)"
  5307. },
  5308. "name": "協同文檔",
  5309. "forms": _formdiv,
  5310. "click": function () {
  5311. U.MD.D.I.openApplication(str, obj, info);
  5312. }
  5313. }
  5314. break;
  5315. case "mindNetwork": //好友打開
  5316. aTool = 7;
  5317. _iframe = $$("iframe", {
  5318. "webkitallowfullscreen": "",
  5319. "mozallowfullscreen": "",
  5320. "allowfullscreen": "",
  5321. "frameborder": "no",
  5322. "border": "0",
  5323. "scrolling ": "no",
  5324. "style": {
  5325. "cssText": "border:0; width:100%; height:100%;"
  5326. },
  5327. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5328. })
  5329. _box.appendChild(_iframe);
  5330. _box.appendChild(_jie);
  5331. _formdiv = new U.UF.UI.form(
  5332. "思維網格",
  5333. _box, {
  5334. "id": "mindNetwork" + cid + stage + task + tool,
  5335. "style": {
  5336. "width": "90%",
  5337. "height": "90%",
  5338. "overflow": 'hidden'
  5339. },
  5340. "onresize": function () { }
  5341. }, {
  5342. closecallback: function () { }
  5343. }, {
  5344. "style": {
  5345. "height": "36px"
  5346. }
  5347. }).form; //創建窗體
  5348. _taskbar = {
  5349. "id": str + _formdiv.id,
  5350. "style": {
  5351. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5352. },
  5353. "name": "思維網格",
  5354. "forms": _formdiv,
  5355. "click": function () {
  5356. U.MD.D.I.openApplication(str, obj, info);
  5357. }
  5358. }
  5359. break;
  5360. case "courseDesign":
  5361. _iframe = $$("iframe", {
  5362. "webkitallowfullscreen": "",
  5363. "mozallowfullscreen": "",
  5364. "allowfullscreen": "",
  5365. "frameborder": "no",
  5366. "border": "0",
  5367. "scrolling ": "no",
  5368. "style": {
  5369. "cssText": "border:0; width:100%; height:100%;"
  5370. },
  5371. "src": "/course-design-vue"
  5372. })
  5373. _box.appendChild(_iframe);
  5374. _box.appendChild(_jie);
  5375. _formdiv = new U.UF.UI.form(
  5376. "項目設計",
  5377. _box, {
  5378. "id": "courseDesign" + cid + stage + task + tool,
  5379. "style": {
  5380. "width": "90%",
  5381. "height": "90%",
  5382. "overflow": 'hidden'
  5383. },
  5384. "onresize": function () { }
  5385. }, {
  5386. closecallback: function () { }
  5387. }, {
  5388. "style": {
  5389. "height": "36px"
  5390. }
  5391. }).form; //創建窗體
  5392. _taskbar = {
  5393. "id": str + _formdiv.id,
  5394. "style": {
  5395. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5396. },
  5397. "name": "項目設計",
  5398. "forms": _formdiv,
  5399. "click": function () {
  5400. U.MD.D.I.openApplication(str, obj, info);
  5401. }
  5402. }
  5403. break;
  5404. }
  5405. const script1 = document.createElement("script");
  5406. script1.type = "text/javascript";
  5407. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5408. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5409. const script2 = document.createElement("script");
  5410. script2.type = "text/javascript";
  5411. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5412. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5413. const script3 = document.createElement("script");
  5414. script3.type = "text/javascript";
  5415. script3.charset = "UTF-8";
  5416. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5417. const script4 = document.createElement("script");
  5418. script4.type = "text/javascript";
  5419. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5420. script4.src = window.origin + "/js/Common/jietu2E.js";
  5421. if (_iframe) {
  5422. if (str == 'doc') {
  5423. _iframe = _formdiv.querySelector('iframe')
  5424. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5425. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5426. _iframe.contentWindow.document.body.appendChild(script1);
  5427. _iframe.contentWindow.document.body.appendChild(script2);
  5428. // _iframe.contentWindow.document.body.appendChild(script3);
  5429. _iframe.contentWindow.document.body.appendChild(script4);
  5430. })
  5431. if (onloadListener) {
  5432. _iframe.contentDocument.location.reload()
  5433. } else {
  5434. _iframe.contentDocument.location.reload()
  5435. }
  5436. } else if (str == 'courseDesign') {
  5437. U.UF.DL.iframeLoad(_iframe, function () {
  5438. // _iframe.contentWindow.U.MD.O.W.load();
  5439. // _iframe.contentWindow.document.body.appendChild(script1);
  5440. _iframe.contentWindow.document.body.appendChild(script2);
  5441. _iframe.contentWindow.document.body.appendChild(script4);
  5442. })
  5443. } else if (str == 'mind') {
  5444. _iframe = _formdiv.querySelector('iframe')
  5445. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5446. //
  5447. _iframe.contentWindow.document.body.appendChild(script1);
  5448. _iframe.contentWindow.document.body.appendChild(script2);
  5449. _iframe.contentWindow.document.body.appendChild(script4);
  5450. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5451. })
  5452. if (onloadListener) {
  5453. _iframe.contentDocument.location.reload()
  5454. } else {
  5455. _iframe.contentDocument.location.reload()
  5456. }
  5457. } else if (str == 'whiteboard') {
  5458. _iframe = _formdiv.querySelector('iframe')
  5459. let onloadListener = _iframe.onload = () => {
  5460. _iframe.contentWindow.document.body.appendChild(script1);
  5461. _iframe.contentWindow.document.body.appendChild(script2);
  5462. _iframe.contentWindow.document.body.appendChild(script4);
  5463. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5464. };
  5465. if (onloadListener) {
  5466. _iframe.contentDocument.location.reload()
  5467. } else {
  5468. _iframe.contentDocument.location.reload()
  5469. }
  5470. } else {
  5471. _iframe.onload = () => {
  5472. _iframe.contentWindow.document.body.appendChild(script1);
  5473. _iframe.contentWindow.document.body.appendChild(script2);
  5474. // _iframe.contentWindow.document.body.appendChild(script3);
  5475. _iframe.contentWindow.document.body.appendChild(script4);
  5476. };
  5477. }
  5478. _jie.onclick = async () => {
  5479. let text = ''
  5480. if (aTool == 1) {
  5481. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5482. } else if (aTool == 6) {
  5483. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5484. } else if (aTool == 3) {
  5485. text = await U.MD.D.I.getEditorContent(_iframe);
  5486. }
  5487. _loading.style.display = 'flex'
  5488. console.log(_loading);
  5489. var _ajs = _iframe.contentWindow.document.createElement("script");
  5490. _ajs.type = "text/javascript";
  5491. _ajs.innerHTML =
  5492. // 'console.log(' + _loading + ');\n' +
  5493. 'var _js = document.createElement("script");\n' +
  5494. '_js.type="text/javascript";\n' +
  5495. '_js.charset="UTF-8";\n' +
  5496. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5497. "_js.onload = function(){\n" +
  5498. ' var a = document.getElementsByTagName("img")\n' +
  5499. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5500. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5501. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5502. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5503. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5504. "beforeUpload_shishi(file," +
  5505. "'" +
  5506. _userid +
  5507. "'" +
  5508. ", " +
  5509. "'" +
  5510. _cid +
  5511. "'" +
  5512. ", " +
  5513. "'" +
  5514. _stage +
  5515. "'" +
  5516. ", " +
  5517. "'" +
  5518. _task +
  5519. "'" +
  5520. ", " +
  5521. "'" +
  5522. _tool +
  5523. "'" +
  5524. ", " +
  5525. "'" +
  5526. (str + '_loadLi_JieE' + cid + stage + task + tool + _userid) +
  5527. "'" +
  5528. ", " +
  5529. "'" +
  5530. aTool +
  5531. "'" +
  5532. ", " +
  5533. "`" +
  5534. text +
  5535. "`" +
  5536. ")\n" +
  5537. " });\n" +
  5538. "}\n" +
  5539. "document.head.appendChild(_js);\n";
  5540. _iframe.contentWindow.document.head.appendChild(_ajs);
  5541. }
  5542. }
  5543. //U.MD.D.I.openClick(str);
  5544. //如果有任務欄信息
  5545. // if (_taskbar) {
  5546. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  5547. // }
  5548. }
  5549. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  5550. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5551. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5552. _userid = student.userid, //登錄用戶id
  5553. _username = student.student //用戶名字
  5554. let _iframe;
  5555. let _cid = cid,
  5556. _stage = stage,
  5557. _task = task,
  5558. _tool = tool;
  5559. var _jie = $$("div", {
  5560. "style": {
  5561. "position": "absolute",
  5562. "bottom": "50px",
  5563. "right": "50px",
  5564. "zIndex": "9999",
  5565. "backgroundColor": "#2268bc",
  5566. "color": "#fff",
  5567. "padding": "12px 20px",
  5568. "cursor": "pointer",
  5569. "borderRadius": "4px",
  5570. },
  5571. "innerHTML": "提交作業"
  5572. })
  5573. let aTool = ''
  5574. let _loading = document.createElement('div')
  5575. _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;"
  5576. // _loading.id = "";
  5577. let _lchild = document.createElement('div')
  5578. let _limg = document.createElement('img')
  5579. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5580. _limg.style = "width: 26px;margin-right: 10px;"
  5581. _lchild.appendChild(_limg)
  5582. let _lspan = document.createElement('span')
  5583. _lspan.innerHTML = "上傳中..."
  5584. _lchild.appendChild(_lspan)
  5585. _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%);"
  5586. _loading.appendChild(_lchild)
  5587. var _box = $$('div', {
  5588. "style": {
  5589. "position": "relative",
  5590. "width": "100%",
  5591. "height": "100%",
  5592. },
  5593. })
  5594. _box.appendChild(_loading)
  5595. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid
  5596. switch (str) {
  5597. case "whiteboard":
  5598. aTool = 1;
  5599. _iframe = $$("iframe", {
  5600. "frameborder": "no",
  5601. "border": "0",
  5602. "scrolling ": "no",
  5603. "style": {
  5604. "cssText": "border:0;width:100%;height:100%"
  5605. },
  5606. "src": "https://iwb.cocorobo.hk/"
  5607. })
  5608. _box.appendChild(_iframe);
  5609. _box.appendChild(_jie);
  5610. _formdiv = new U.UF.UI.form(
  5611. "電子白板-" + _username,
  5612. _box, {
  5613. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5614. "style": {
  5615. "width": "90%",
  5616. "height": "90%",
  5617. "overflow": 'hidden'
  5618. },
  5619. "onresize": function () { }
  5620. }, {
  5621. closecallback: function () { }
  5622. }, {
  5623. "style": {
  5624. "height": "36px"
  5625. }
  5626. }).form; //創建窗體
  5627. _taskbar = {
  5628. "id": str + _formdiv.id,
  5629. "style": {
  5630. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5631. },
  5632. "name": "電子白板",
  5633. "forms": _formdiv,
  5634. "click": function () {
  5635. U.MD.D.I.openApplication(str, obj, info);
  5636. }
  5637. }
  5638. break;
  5639. case "mind":
  5640. aTool = 3;
  5641. _iframe = $$("iframe", {
  5642. "frameborder": "no",
  5643. "border": "0",
  5644. "scrolling ": "no",
  5645. "style": {
  5646. "cssText": "border:0;width:100%;height:100%"
  5647. },
  5648. "src": "/kityminder-editor/dist/index.html"
  5649. })
  5650. _box.appendChild(_iframe);
  5651. _box.appendChild(_jie);
  5652. _formdiv = new U.UF.UI.form(
  5653. "思維導圖-" + _username,
  5654. _box, { //"/jsmind/example/demo.html"
  5655. "id": "mind" + cid + stage + task + tool + _userid,
  5656. "style": {
  5657. "width": "90%",
  5658. "height": "90%",
  5659. "overflow": 'hidden'
  5660. },
  5661. "onresize": function () { }
  5662. }, {
  5663. closecallback: function () { }
  5664. }, {
  5665. "style": {
  5666. "height": "36px"
  5667. }
  5668. }).form; //創建窗體
  5669. _taskbar = {
  5670. "id": str + _formdiv.id,
  5671. "style": {
  5672. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5673. },
  5674. "name": "思維導圖",
  5675. "forms": _formdiv,
  5676. "click": function () {
  5677. U.MD.D.I.openApplication(str, obj, info);
  5678. }
  5679. }
  5680. break;
  5681. case "MindMap":
  5682. aTool = 3;
  5683. _iframe = $$("iframe", {
  5684. "frameborder": "no",
  5685. "border": "0",
  5686. "scrolling ": "no",
  5687. "style": {
  5688. "cssText": "border:0;width:100%;height:100%"
  5689. },
  5690. "src": "//cloud.cocorobo.hk/mind/"
  5691. })
  5692. _box.appendChild(_iframe);
  5693. _box.appendChild(_jie);
  5694. _formdiv = new U.UF.UI.form(
  5695. "思維導圖-" + _username,
  5696. _box, { //"/jsmind/example/demo.html"
  5697. "id": "mind" + cid + stage + task + tool + _userid,
  5698. "style": {
  5699. "width": "90%",
  5700. "height": "90%",
  5701. "overflow": 'hidden'
  5702. },
  5703. "onresize": function () { }
  5704. }, {
  5705. closecallback: function () { }
  5706. }, {
  5707. "style": {
  5708. "height": "36px"
  5709. }
  5710. }).form; //創建窗體
  5711. _taskbar = {
  5712. "id": str + _formdiv.id,
  5713. "style": {
  5714. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5715. },
  5716. "name": "思維導圖",
  5717. "forms": _formdiv,
  5718. "click": function () {
  5719. U.MD.D.I.openApplication(str, obj, info);
  5720. }
  5721. }
  5722. break;
  5723. case "doc":
  5724. aTool = 6;
  5725. _iframe = $$("iframe", {
  5726. "frameborder": "no",
  5727. "border": "0",
  5728. "scrolling ": "no",
  5729. "style": {
  5730. "cssText": "border:0;width:100%;height:100%"
  5731. },
  5732. "src": "/Office/Word/WordEditArea.htm"
  5733. })
  5734. _box.appendChild(_iframe);
  5735. _box.appendChild(_jie);
  5736. _formdiv = new U.UF.UI.form(
  5737. "協同文檔-" + _username,
  5738. _box, {
  5739. "id": "doc" + cid + stage + task + tool + _userid,
  5740. "style": {
  5741. "width": "90%",
  5742. "height": "90%",
  5743. "overflow": 'hidden'
  5744. },
  5745. "onresize": function () { }
  5746. }, {
  5747. closecallback: function () { }
  5748. }, {
  5749. "style": {
  5750. "height": "36px"
  5751. }
  5752. }).form; //創建窗體
  5753. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5754. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5755. })
  5756. _taskbar = {
  5757. "id": str + _formdiv.id,
  5758. "style": {
  5759. "backgroundImage": "url(/img/icon/doc.png)"
  5760. },
  5761. "name": "協同文檔",
  5762. "forms": _formdiv,
  5763. "click": function () {
  5764. U.MD.D.I.openApplication(str, obj, info);
  5765. }
  5766. }
  5767. break;
  5768. case "mindNetwork": //好友打開
  5769. aTool = 7;
  5770. _iframe = $$("iframe", {
  5771. "webkitallowfullscreen": "",
  5772. "mozallowfullscreen": "",
  5773. "allowfullscreen": "",
  5774. "frameborder": "no",
  5775. "border": "0",
  5776. "scrolling ": "no",
  5777. "style": {
  5778. "cssText": "border:0; width:100%; height:100%;"
  5779. },
  5780. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5781. })
  5782. _box.appendChild(_iframe);
  5783. _box.appendChild(_jie);
  5784. _formdiv = new U.UF.UI.form(
  5785. "思維網格-" + _username,
  5786. _box, {
  5787. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5788. "style": {
  5789. "width": "90%",
  5790. "height": "90%",
  5791. "overflow": 'hidden'
  5792. },
  5793. "onresize": function () { }
  5794. }, {
  5795. closecallback: function () { }
  5796. }, {
  5797. "style": {
  5798. "height": "36px"
  5799. }
  5800. }).form; //創建窗體
  5801. _taskbar = {
  5802. "id": str + _formdiv.id,
  5803. "style": {
  5804. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5805. },
  5806. "name": "思維網格",
  5807. "forms": _formdiv,
  5808. "click": function () {
  5809. U.MD.D.I.openApplication(str, obj, info);
  5810. }
  5811. }
  5812. break;
  5813. case "courseDesign":
  5814. _iframe = $$("iframe", {
  5815. "webkitallowfullscreen": "",
  5816. "mozallowfullscreen": "",
  5817. "allowfullscreen": "",
  5818. "frameborder": "no",
  5819. "border": "0",
  5820. "scrolling ": "no",
  5821. "style": {
  5822. "cssText": "border:0; width:100%; height:100%;"
  5823. },
  5824. "src": "/course-design-vue"
  5825. })
  5826. _box.appendChild(_iframe);
  5827. _box.appendChild(_jie);
  5828. _formdiv = new U.UF.UI.form(
  5829. "項目設計-" + _username,
  5830. _box, {
  5831. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5832. "style": {
  5833. "width": "90%",
  5834. "height": "90%",
  5835. "overflow": 'hidden'
  5836. },
  5837. "onresize": function () { }
  5838. }, {
  5839. closecallback: function () { }
  5840. }, {
  5841. "style": {
  5842. "height": "36px"
  5843. }
  5844. }).form; //創建窗體
  5845. _taskbar = {
  5846. "id": str + _formdiv.id,
  5847. "style": {
  5848. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5849. },
  5850. "name": "項目設計",
  5851. "forms": _formdiv,
  5852. "click": function () {
  5853. U.MD.D.I.openApplication(str, obj, info);
  5854. }
  5855. }
  5856. break;
  5857. }
  5858. const script1 = document.createElement("script");
  5859. script1.type = "text/javascript";
  5860. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5861. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5862. const script2 = document.createElement("script");
  5863. script2.type = "text/javascript";
  5864. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5865. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5866. const script3 = document.createElement("script");
  5867. script3.type = "text/javascript";
  5868. script3.charset = "UTF-8";
  5869. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5870. const script4 = document.createElement("script");
  5871. script4.type = "text/javascript";
  5872. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5873. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  5874. if (_iframe) {
  5875. if (str == 'doc') {
  5876. _iframe = _formdiv.querySelector('iframe')
  5877. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5878. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5879. _iframe.contentWindow.document.body.appendChild(script1);
  5880. _iframe.contentWindow.document.body.appendChild(script2);
  5881. // _iframe.contentWindow.document.body.appendChild(script3);
  5882. _iframe.contentWindow.document.body.appendChild(script4);
  5883. })
  5884. if (onloadListener) {
  5885. _iframe.contentDocument.location.reload()
  5886. } else {
  5887. _iframe.contentDocument.location.reload()
  5888. }
  5889. } else if (str == 'courseDesign') {
  5890. U.UF.DL.iframeLoad(_iframe, function () {
  5891. // _iframe.contentWindow.U.MD.O.W.load();
  5892. // _iframe.contentWindow.document.body.appendChild(script1);
  5893. _iframe.contentWindow.document.body.appendChild(script2);
  5894. _iframe.contentWindow.document.body.appendChild(script4);
  5895. })
  5896. } else if (str == 'mind') {
  5897. _iframe = _formdiv.querySelector('iframe')
  5898. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5899. //
  5900. _iframe.contentWindow.document.body.appendChild(script1);
  5901. _iframe.contentWindow.document.body.appendChild(script2);
  5902. _iframe.contentWindow.document.body.appendChild(script4);
  5903. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5904. })
  5905. if (onloadListener) {
  5906. _iframe.contentDocument.location.reload()
  5907. } else {
  5908. _iframe.contentDocument.location.reload()
  5909. }
  5910. } else if (str == 'whiteboard') {
  5911. _iframe = _formdiv.querySelector('iframe')
  5912. let onloadListener = _iframe.onload = () => {
  5913. _iframe.contentWindow.document.body.appendChild(script1);
  5914. _iframe.contentWindow.document.body.appendChild(script2);
  5915. _iframe.contentWindow.document.body.appendChild(script4);
  5916. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5917. };
  5918. if (onloadListener) {
  5919. _iframe.contentDocument.location.reload()
  5920. } else {
  5921. _iframe.contentDocument.location.reload()
  5922. }
  5923. } else {
  5924. _iframe.onload = () => {
  5925. _iframe.contentWindow.document.body.appendChild(script1);
  5926. _iframe.contentWindow.document.body.appendChild(script2);
  5927. // _iframe.contentWindow.document.body.appendChild(script3);
  5928. _iframe.contentWindow.document.body.appendChild(script4);
  5929. };
  5930. }
  5931. _jie.onclick = async () => {
  5932. let text = ''
  5933. if (aTool == 1) {
  5934. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5935. } else if (aTool == 6) {
  5936. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5937. } else if (aTool == 3) {
  5938. text = await U.MD.D.I.getEditorContent(_iframe);
  5939. }
  5940. _loading.style.display = 'flex'
  5941. console.log(_loading);
  5942. var _ajs = _iframe.contentWindow.document.createElement("script");
  5943. _ajs.type = "text/javascript";
  5944. _ajs.innerHTML =
  5945. // 'console.log(' + _loading + ');\n' +
  5946. 'var _js = document.createElement("script");\n' +
  5947. '_js.type="text/javascript";\n' +
  5948. '_js.charset="UTF-8";\n' +
  5949. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5950. "_js.onload = function(){\n" +
  5951. ' var a = document.getElementsByTagName("img")\n' +
  5952. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5953. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5954. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5955. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5956. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5957. "beforeUpload_shishi(file," +
  5958. "'" +
  5959. _userid +
  5960. "'" +
  5961. ", " +
  5962. "'" +
  5963. _cid +
  5964. "'" +
  5965. ", " +
  5966. "'" +
  5967. _stage +
  5968. "'" +
  5969. ", " +
  5970. "'" +
  5971. _task +
  5972. "'" +
  5973. ", " +
  5974. "'" +
  5975. _tool +
  5976. "'" +
  5977. ", " +
  5978. "'" +
  5979. (str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid) +
  5980. "'" +
  5981. ", " +
  5982. "'" +
  5983. aTool +
  5984. "'" +
  5985. ", " +
  5986. "`" +
  5987. text +
  5988. "`" +
  5989. ")\n" +
  5990. " });\n" +
  5991. "}\n" +
  5992. "document.head.appendChild(_js);\n";
  5993. _iframe.contentWindow.document.head.appendChild(_ajs);
  5994. }
  5995. }
  5996. }
  5997. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5998. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5999. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6000. _userid = student.userid, //登錄用戶id
  6001. _username = student.student //用戶名字
  6002. let _iframe;
  6003. let _cid = cid,
  6004. _stage = stage,
  6005. _task = task,
  6006. _tool = tool;
  6007. var _jie = $$("div", {
  6008. "style": {
  6009. "position": "absolute",
  6010. "bottom": "50px",
  6011. "right": "50px",
  6012. "zIndex": "9999",
  6013. "backgroundColor": "#2268bc",
  6014. "color": "#fff",
  6015. "padding": "12px 20px",
  6016. "cursor": "pointer",
  6017. "borderRadius": "4px",
  6018. },
  6019. "innerHTML": "提交作業"
  6020. })
  6021. let aTool = ''
  6022. let _loading = document.createElement('div')
  6023. _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;"
  6024. // _loading.id = "";
  6025. let _lchild = document.createElement('div')
  6026. let _limg = document.createElement('img')
  6027. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6028. _limg.style = "width: 26px;margin-right: 10px;"
  6029. _lchild.appendChild(_limg)
  6030. let _lspan = document.createElement('span')
  6031. _lspan.innerHTML = "上傳中..."
  6032. _lchild.appendChild(_lspan)
  6033. _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%);"
  6034. _loading.appendChild(_lchild)
  6035. var _box = $$('div', {
  6036. "style": {
  6037. "position": "relative",
  6038. "width": "100%",
  6039. "height": "100%",
  6040. },
  6041. })
  6042. _box.appendChild(_loading)
  6043. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  6044. switch (str) {
  6045. case "whiteboard":
  6046. aTool = 1;
  6047. _iframe = $$("iframe", {
  6048. "frameborder": "no",
  6049. "border": "0",
  6050. "scrolling ": "no",
  6051. "style": {
  6052. "cssText": "border:0;width:100%;height:100%"
  6053. },
  6054. "src": "https://iwb.cocorobo.hk/"
  6055. })
  6056. _box.appendChild(_iframe);
  6057. _box.appendChild(_jie);
  6058. _formdiv = new U.UF.UI.form(
  6059. "電子白板-" + _username,
  6060. _box, {
  6061. "id": "whiteboard" + cid + stage + task + tool + _userid,
  6062. "style": {
  6063. "width": "90%",
  6064. "height": "90%",
  6065. "overflow": 'hidden'
  6066. },
  6067. "onresize": function () { }
  6068. }, {
  6069. closecallback: function () { }
  6070. }, {
  6071. "style": {
  6072. "height": "36px"
  6073. }
  6074. }).form; //創建窗體
  6075. _taskbar = {
  6076. "id": str + _formdiv.id,
  6077. "style": {
  6078. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6079. },
  6080. "name": "電子白板",
  6081. "forms": _formdiv,
  6082. "click": function () {
  6083. U.MD.D.I.openApplication(str, obj, info);
  6084. }
  6085. }
  6086. break;
  6087. case "mind":
  6088. aTool = 3;
  6089. _iframe = $$("iframe", {
  6090. "frameborder": "no",
  6091. "border": "0",
  6092. "scrolling ": "no",
  6093. "style": {
  6094. "cssText": "border:0;width:100%;height:100%"
  6095. },
  6096. "src": "/kityminder-editor/dist/index.html"
  6097. })
  6098. _box.appendChild(_iframe);
  6099. _box.appendChild(_jie);
  6100. _formdiv = new U.UF.UI.form(
  6101. "思維導圖-" + _username,
  6102. _box, { //"/jsmind/example/demo.html"
  6103. "id": "mind" + cid + stage + task + tool + _userid,
  6104. "style": {
  6105. "width": "90%",
  6106. "height": "90%",
  6107. "overflow": 'hidden'
  6108. },
  6109. "onresize": function () { }
  6110. }, {
  6111. closecallback: function () { }
  6112. }, {
  6113. "style": {
  6114. "height": "36px"
  6115. }
  6116. }).form; //創建窗體
  6117. _taskbar = {
  6118. "id": str + _formdiv.id,
  6119. "style": {
  6120. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6121. },
  6122. "name": "思維導圖",
  6123. "forms": _formdiv,
  6124. "click": function () {
  6125. U.MD.D.I.openApplication(str, obj, info);
  6126. }
  6127. }
  6128. break;
  6129. case "MindMap":
  6130. aTool = 3;
  6131. _iframe = $$("iframe", {
  6132. "frameborder": "no",
  6133. "border": "0",
  6134. "scrolling ": "no",
  6135. "style": {
  6136. "cssText": "border:0;width:100%;height:100%"
  6137. },
  6138. "src": "//cloud.cocorobo.hk/mind/"
  6139. })
  6140. _box.appendChild(_iframe);
  6141. _box.appendChild(_jie);
  6142. _formdiv = new U.UF.UI.form(
  6143. "思維導圖-" + _username,
  6144. _box, { //"/jsmind/example/demo.html"
  6145. "id": "mind" + cid + stage + task + tool + _userid,
  6146. "style": {
  6147. "width": "90%",
  6148. "height": "90%",
  6149. "overflow": 'hidden'
  6150. },
  6151. "onresize": function () { }
  6152. }, {
  6153. closecallback: function () { }
  6154. }, {
  6155. "style": {
  6156. "height": "36px"
  6157. }
  6158. }).form; //創建窗體
  6159. _taskbar = {
  6160. "id": str + _formdiv.id,
  6161. "style": {
  6162. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6163. },
  6164. "name": "思維導圖",
  6165. "forms": _formdiv,
  6166. "click": function () {
  6167. U.MD.D.I.openApplication(str, obj, info);
  6168. }
  6169. }
  6170. break;
  6171. case "doc":
  6172. aTool = 6;
  6173. _iframe = $$("iframe", {
  6174. "frameborder": "no",
  6175. "border": "0",
  6176. "scrolling ": "no",
  6177. "style": {
  6178. "cssText": "border:0;width:100%;height:100%"
  6179. },
  6180. "src": "/Office/Word/WordEditArea.htm"
  6181. })
  6182. _box.appendChild(_iframe);
  6183. _box.appendChild(_jie);
  6184. _formdiv = new U.UF.UI.form(
  6185. "協同文檔-" + _username,
  6186. _box, {
  6187. "id": "doc" + cid + stage + task + tool + _userid,
  6188. "style": {
  6189. "width": "90%",
  6190. "height": "90%",
  6191. "overflow": 'hidden'
  6192. },
  6193. "onresize": function () { }
  6194. }, {
  6195. closecallback: function () { }
  6196. }, {
  6197. "style": {
  6198. "height": "36px"
  6199. }
  6200. }).form; //創建窗體
  6201. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6202. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  6203. })
  6204. _taskbar = {
  6205. "id": str + _formdiv.id,
  6206. "style": {
  6207. "backgroundImage": "url(/img/icon/doc.png)"
  6208. },
  6209. "name": "協同文檔",
  6210. "forms": _formdiv,
  6211. "click": function () {
  6212. U.MD.D.I.openApplication(str, obj, info);
  6213. }
  6214. }
  6215. break;
  6216. case "mindNetwork": //好友打開
  6217. aTool = 7;
  6218. _iframe = $$("iframe", {
  6219. "webkitallowfullscreen": "",
  6220. "mozallowfullscreen": "",
  6221. "allowfullscreen": "",
  6222. "frameborder": "no",
  6223. "border": "0",
  6224. "scrolling ": "no",
  6225. "style": {
  6226. "cssText": "border:0; width:100%; height:100%;"
  6227. },
  6228. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  6229. })
  6230. _box.appendChild(_iframe);
  6231. _box.appendChild(_jie);
  6232. _formdiv = new U.UF.UI.form(
  6233. "思維網格-" + _username,
  6234. _box, {
  6235. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  6236. "style": {
  6237. "width": "90%",
  6238. "height": "90%",
  6239. "overflow": 'hidden'
  6240. },
  6241. "onresize": function () { }
  6242. }, {
  6243. closecallback: function () { }
  6244. }, {
  6245. "style": {
  6246. "height": "36px"
  6247. }
  6248. }).form; //創建窗體
  6249. _taskbar = {
  6250. "id": str + _formdiv.id,
  6251. "style": {
  6252. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  6253. },
  6254. "name": "思維網格",
  6255. "forms": _formdiv,
  6256. "click": function () {
  6257. U.MD.D.I.openApplication(str, obj, info);
  6258. }
  6259. }
  6260. break;
  6261. case "courseDesign":
  6262. _iframe = $$("iframe", {
  6263. "webkitallowfullscreen": "",
  6264. "mozallowfullscreen": "",
  6265. "allowfullscreen": "",
  6266. "frameborder": "no",
  6267. "border": "0",
  6268. "scrolling ": "no",
  6269. "style": {
  6270. "cssText": "border:0; width:100%; height:100%;"
  6271. },
  6272. "src": "/course-design-vue"
  6273. })
  6274. _box.appendChild(_iframe);
  6275. _box.appendChild(_jie);
  6276. _formdiv = new U.UF.UI.form(
  6277. "項目設計-" + _username,
  6278. _box, {
  6279. "id": "courseDesign" + cid + stage + task + tool + _userid,
  6280. "style": {
  6281. "width": "90%",
  6282. "height": "90%",
  6283. "overflow": 'hidden'
  6284. },
  6285. "onresize": function () { }
  6286. }, {
  6287. closecallback: function () { }
  6288. }, {
  6289. "style": {
  6290. "height": "36px"
  6291. }
  6292. }).form; //創建窗體
  6293. _taskbar = {
  6294. "id": str + _formdiv.id,
  6295. "style": {
  6296. "backgroundImage": "url(/img/icon/courseDesign.png)"
  6297. },
  6298. "name": "項目設計",
  6299. "forms": _formdiv,
  6300. "click": function () {
  6301. U.MD.D.I.openApplication(str, obj, info);
  6302. }
  6303. }
  6304. break;
  6305. }
  6306. const script1 = document.createElement("script");
  6307. script1.type = "text/javascript";
  6308. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6309. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6310. const script2 = document.createElement("script");
  6311. script2.type = "text/javascript";
  6312. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6313. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6314. const script3 = document.createElement("script");
  6315. script3.type = "text/javascript";
  6316. script3.charset = "UTF-8";
  6317. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6318. const script4 = document.createElement("script");
  6319. script4.type = "text/javascript";
  6320. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  6321. script4.src = window.origin + "/js/Common/jietu2E.js";
  6322. if (_iframe) {
  6323. if (str == 'doc') {
  6324. _iframe = _formdiv.querySelector('iframe')
  6325. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6326. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  6327. _iframe.contentWindow.document.body.appendChild(script1);
  6328. _iframe.contentWindow.document.body.appendChild(script2);
  6329. // _iframe.contentWindow.document.body.appendChild(script3);
  6330. _iframe.contentWindow.document.body.appendChild(script4);
  6331. })
  6332. if (onloadListener) {
  6333. _iframe.contentDocument.location.reload()
  6334. } else {
  6335. _iframe.contentDocument.location.reload()
  6336. }
  6337. } else if (str == 'courseDesign') {
  6338. U.UF.DL.iframeLoad(_iframe, function () {
  6339. // _iframe.contentWindow.U.MD.O.W.load();
  6340. // _iframe.contentWindow.document.body.appendChild(script1);
  6341. _iframe.contentWindow.document.body.appendChild(script2);
  6342. _iframe.contentWindow.document.body.appendChild(script4);
  6343. })
  6344. } else if (str == 'mind') {
  6345. _iframe = _formdiv.querySelector('iframe')
  6346. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6347. //
  6348. _iframe.contentWindow.document.body.appendChild(script1);
  6349. _iframe.contentWindow.document.body.appendChild(script2);
  6350. _iframe.contentWindow.document.body.appendChild(script4);
  6351. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  6352. })
  6353. if (onloadListener) {
  6354. _iframe.contentDocument.location.reload()
  6355. } else {
  6356. _iframe.contentDocument.location.reload()
  6357. }
  6358. } else if (str == 'whiteboard') {
  6359. _iframe = _formdiv.querySelector('iframe')
  6360. let onloadListener = _iframe.onload = () => {
  6361. _iframe.contentWindow.document.body.appendChild(script1);
  6362. _iframe.contentWindow.document.body.appendChild(script2);
  6363. _iframe.contentWindow.document.body.appendChild(script4);
  6364. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  6365. };
  6366. if (onloadListener) {
  6367. _iframe.contentDocument.location.reload()
  6368. } else {
  6369. _iframe.contentDocument.location.reload()
  6370. }
  6371. } else {
  6372. _iframe.onload = () => {
  6373. _iframe.contentWindow.document.body.appendChild(script1);
  6374. _iframe.contentWindow.document.body.appendChild(script2);
  6375. // _iframe.contentWindow.document.body.appendChild(script3);
  6376. _iframe.contentWindow.document.body.appendChild(script4);
  6377. };
  6378. }
  6379. _jie.onclick = async () => {
  6380. let text = ''
  6381. if (aTool == 1) {
  6382. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6383. } else if (aTool == 6) {
  6384. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6385. } else if (aTool == 3) {
  6386. text = await U.MD.D.I.getEditorContent(_iframe);
  6387. }
  6388. _loading.style.display = 'flex'
  6389. console.log(_loading);
  6390. var _ajs = _iframe.contentWindow.document.createElement("script");
  6391. _ajs.type = "text/javascript";
  6392. _ajs.innerHTML =
  6393. // 'console.log(' + _loading + ');\n' +
  6394. 'var _js = document.createElement("script");\n' +
  6395. '_js.type="text/javascript";\n' +
  6396. '_js.charset="UTF-8";\n' +
  6397. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6398. "_js.onload = function(){\n" +
  6399. ' var a = document.getElementsByTagName("img")\n' +
  6400. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6401. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6402. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6403. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6404. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6405. "beforeUpload_shishi(file," +
  6406. "'" +
  6407. _userid +
  6408. "'" +
  6409. ", " +
  6410. "'" +
  6411. _cid +
  6412. "'" +
  6413. ", " +
  6414. "'" +
  6415. _stage +
  6416. "'" +
  6417. ", " +
  6418. "'" +
  6419. _task +
  6420. "'" +
  6421. ", " +
  6422. "'" +
  6423. _tool +
  6424. "'" +
  6425. ", " +
  6426. "'" +
  6427. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid) +
  6428. "'" +
  6429. ", " +
  6430. "'" +
  6431. aTool +
  6432. "'" +
  6433. ", " +
  6434. "`" +
  6435. text +
  6436. "`" +
  6437. ")\n" +
  6438. " });\n" +
  6439. "}\n" +
  6440. "document.head.appendChild(_js);\n";
  6441. _iframe.contentWindow.document.head.appendChild(_ajs);
  6442. }
  6443. }
  6444. }
  6445. U.MD.D.I.getEditorContent = function (iframe) {
  6446. return new Promise((resolve, reject) => {
  6447. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  6448. console.log(content);
  6449. resolve(content)
  6450. });
  6451. });
  6452. }
  6453. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  6454. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  6455. // if (res.value[0].length > 0) {
  6456. // // resolve(res.value[0][0].text);
  6457. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  6458. // $(fileInput).val('');
  6459. // });
  6460. // }
  6461. // }, [], { "type": "GET", "withCredentials": true });
  6462. var xmlhttp;
  6463. var Mac, Sn, DeviceId
  6464. if (window.XMLHttpRequest) {
  6465. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6466. xmlhttp = new XMLHttpRequest();
  6467. }
  6468. else {
  6469. // IE6, IE5 瀏覽器執行代碼
  6470. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6471. }
  6472. xmlhttp.onreadystatechange = function () {
  6473. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6474. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6475. // resolve(res.value[0][0].text);
  6476. if (type == '2') {
  6477. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6478. } else if (type == '3') {
  6479. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6480. }
  6481. } else {
  6482. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  6483. }
  6484. }
  6485. }
  6486. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6487. xmlhttp.send();
  6488. }
  6489. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  6490. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6491. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6492. _userinfo = US.userInfo, //登錄用戶信息
  6493. _userid = US.userInfo.userid //登錄用戶id
  6494. let _iframe;
  6495. let _cid = cid,
  6496. _stage = stage,
  6497. _task = task,
  6498. _tool = tool;
  6499. var _jie = $$("div", {
  6500. "style": {
  6501. "position": "absolute",
  6502. "bottom": "50px",
  6503. "right": "50px",
  6504. "zIndex": "9999",
  6505. "backgroundColor": "#2268bc",
  6506. "color": "#fff",
  6507. "padding": "12px 20px",
  6508. "cursor": "pointer",
  6509. "borderRadius": "4px",
  6510. },
  6511. "innerHTML": "確認並提交"
  6512. })
  6513. let aTool = ''
  6514. let _loading = document.createElement('div')
  6515. _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;"
  6516. // _loading.id = "";
  6517. let _lchild = document.createElement('div')
  6518. let _limg = document.createElement('img')
  6519. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6520. _limg.style = "width: 26px;margin-right: 10px;"
  6521. _lchild.appendChild(_limg)
  6522. let _lspan = document.createElement('span')
  6523. _lspan.innerHTML = "上傳中..."
  6524. _lchild.appendChild(_lspan)
  6525. _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%);"
  6526. _loading.appendChild(_lchild)
  6527. var _box = $$('div', {
  6528. "style": {
  6529. "position": "relative",
  6530. "width": "100%",
  6531. "height": "100%",
  6532. },
  6533. })
  6534. _box.appendChild(_loading)
  6535. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool + _userid
  6536. switch (str) {
  6537. case "whiteboard":
  6538. aTool = 1;
  6539. _iframe = $$("iframe", {
  6540. "frameborder": "no",
  6541. "border": "0",
  6542. "scrolling ": "no",
  6543. "style": {
  6544. "cssText": "border:0;width:100%;height:100%"
  6545. },
  6546. "src": "https://iwb.cocorobo.hk/"
  6547. })
  6548. _box.appendChild(_iframe);
  6549. _box.appendChild(_jie);
  6550. _formdiv = new U.UF.UI.form(
  6551. "電子白板",
  6552. _box, {
  6553. "id": "whiteboards" + cid + stage + task + tool,
  6554. "style": {
  6555. "width": "90%",
  6556. "height": "90%",
  6557. "overflow": 'hidden'
  6558. },
  6559. "onresize": function () { }
  6560. }, {
  6561. closecallback: function () { }
  6562. }, {
  6563. "style": {
  6564. "height": "36px"
  6565. }
  6566. }).form; //創建窗體
  6567. _taskbar = {
  6568. "id": str + _formdiv.id,
  6569. "style": {
  6570. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6571. },
  6572. "name": "電子白板",
  6573. "forms": _formdiv,
  6574. "click": function () {
  6575. U.MD.D.I.openApplication(str, obj, info);
  6576. }
  6577. }
  6578. break;
  6579. case "mind":
  6580. aTool = 3;
  6581. _iframe = $$("iframe", {
  6582. "frameborder": "no",
  6583. "border": "0",
  6584. "scrolling ": "no",
  6585. "style": {
  6586. "cssText": "border:0;width:100%;height:100%"
  6587. },
  6588. "src": "/kityminder-editor/dist/index.html"
  6589. });
  6590. _box.appendChild(_iframe);
  6591. _box.appendChild(_jie);
  6592. _formdiv = new U.UF.UI.form(
  6593. "思維導圖",
  6594. _box, { //"/jsmind/example/demo.html"
  6595. "id": "minds" + cid + stage + task + tool,
  6596. "style": {
  6597. "width": "90%",
  6598. "height": "90%",
  6599. "overflow": 'hidden'
  6600. },
  6601. "onresize": function () { }
  6602. }, {
  6603. closecallback: function () { }
  6604. }, {
  6605. "style": {
  6606. "height": "36px"
  6607. }
  6608. }).form; //創建窗體
  6609. _taskbar = {
  6610. "id": str + _formdiv.id,
  6611. "style": {
  6612. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6613. },
  6614. "name": "思維導圖",
  6615. "forms": _formdiv,
  6616. "click": function () {
  6617. U.MD.D.I.openApplication(str, obj, info);
  6618. }
  6619. }
  6620. break;
  6621. case "doc":
  6622. aTool = 6;
  6623. _iframe = $$("iframe", {
  6624. "frameborder": "no",
  6625. "border": "0",
  6626. "scrolling ": "no",
  6627. "style": {
  6628. "cssText": "border:0;width:100%;height:100%"
  6629. },
  6630. "src": "/Office/Word/WordEditArea.htm"
  6631. })
  6632. _box.appendChild(_iframe);
  6633. _box.appendChild(_jie);
  6634. _formdiv = new U.UF.UI.form(
  6635. "協同文檔",
  6636. _box, {
  6637. "id": "docs" + cid + stage + task + tool,
  6638. "style": {
  6639. "width": "90%",
  6640. "height": "90%",
  6641. "overflow": 'hidden'
  6642. },
  6643. "onresize": function () { }
  6644. }, {
  6645. closecallback: function () { }
  6646. }, {
  6647. "style": {
  6648. "height": "36px"
  6649. }
  6650. }).form; //創建窗體
  6651. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6652. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6653. })
  6654. _taskbar = {
  6655. "id": str + _formdiv.id,
  6656. "style": {
  6657. "backgroundImage": "url(/img/icon/doc.png)"
  6658. },
  6659. "name": "協同文檔",
  6660. "forms": _formdiv,
  6661. "click": function () {
  6662. U.MD.D.I.openApplication(str, obj, info);
  6663. }
  6664. }
  6665. break;
  6666. }
  6667. const script1 = document.createElement("script");
  6668. script1.type = "text/javascript";
  6669. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6670. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6671. const script2 = document.createElement("script");
  6672. script2.type = "text/javascript";
  6673. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6674. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6675. const script3 = document.createElement("script");
  6676. script3.type = "text/javascript";
  6677. script3.charset = "UTF-8";
  6678. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6679. const script4 = document.createElement("script");
  6680. script4.type = "text/javascript";
  6681. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6682. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu4.js";
  6683. if (_iframe) {
  6684. if (str == 'doc') {
  6685. _iframe = _formdiv.querySelector('iframe')
  6686. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6687. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6688. _iframe.contentWindow.document.body.appendChild(script1);
  6689. _iframe.contentWindow.document.body.appendChild(script2);
  6690. // _iframe.contentWindow.document.body.appendChild(script3);
  6691. _iframe.contentWindow.document.body.appendChild(script4);
  6692. })
  6693. if (onloadListener) {
  6694. _iframe.contentDocument.location.reload()
  6695. } else {
  6696. _iframe.contentDocument.location.reload()
  6697. }
  6698. } else if (str == 'mind') {
  6699. _iframe = _formdiv.querySelector('iframe')
  6700. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6701. _iframe.contentWindow.document.body.appendChild(script1);
  6702. _iframe.contentWindow.document.body.appendChild(script2);
  6703. _iframe.contentWindow.document.body.appendChild(script4);
  6704. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6705. })
  6706. if (onloadListener) {
  6707. _iframe.contentDocument.location.reload()
  6708. } else {
  6709. _iframe.contentDocument.location.reload()
  6710. }
  6711. } else {
  6712. _iframe.onload = () => {
  6713. _iframe.contentWindow.document.body.appendChild(script1);
  6714. _iframe.contentWindow.document.body.appendChild(script2);
  6715. // _iframe.contentWindow.document.body.appendChild(script3);
  6716. _iframe.contentWindow.document.body.appendChild(script4);
  6717. };
  6718. }
  6719. _jie.onclick = async () => {
  6720. let text = ''
  6721. if (aTool == 6) {
  6722. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6723. } else if (aTool == 3) {
  6724. text = await U.MD.D.I.getEditorContent(_iframe);
  6725. }
  6726. _loading.style.display = 'flex'
  6727. console.log(_loading);
  6728. var _ajs = _iframe.contentWindow.document.createElement("script");
  6729. _ajs.type = "text/javascript";
  6730. _ajs.innerHTML =
  6731. // 'console.log(' + _loading + ');\n' +
  6732. 'var _js = document.createElement("script");\n' +
  6733. '_js.type="text/javascript";\n' +
  6734. '_js.charset="UTF-8";\n' +
  6735. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6736. "_js.onload = function(){\n" +
  6737. ' var a = document.getElementsByTagName("img")\n' +
  6738. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6739. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6740. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6741. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6742. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6743. "beforeUpload_shishi(file," +
  6744. "'" +
  6745. _userid +
  6746. "'" +
  6747. ", " +
  6748. "'" +
  6749. _cid +
  6750. "'" +
  6751. ", " +
  6752. "'" +
  6753. _stage +
  6754. "'" +
  6755. ", " +
  6756. "'" +
  6757. _task +
  6758. "'" +
  6759. ", " +
  6760. "'" +
  6761. _tool +
  6762. "'" +
  6763. ", " +
  6764. "'" +
  6765. (str + '_loadLi_JieS' + cid + stage + task + tool + _userid) +
  6766. "'" +
  6767. ", " +
  6768. "'" +
  6769. aTool +
  6770. "'" +
  6771. ", " +
  6772. "`" +
  6773. text +
  6774. "`" +
  6775. ")\n" +
  6776. " });\n" +
  6777. "}\n" +
  6778. "document.head.appendChild(_js);\n";
  6779. _iframe.contentWindow.document.head.appendChild(_ajs);
  6780. }
  6781. }
  6782. //U.MD.D.I.openClick(str);
  6783. //如果有任務欄信息
  6784. // if (_taskbar) {
  6785. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6786. // }
  6787. }
  6788. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  6789. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6790. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6791. _userinfo = US.userInfo, //登錄用戶信息
  6792. _userid = US.userInfo.userid //登錄用戶id
  6793. let _iframe;
  6794. let _cid = cid,
  6795. _stage = stage,
  6796. _task = task,
  6797. _tool = tool;
  6798. var _jie = $$("div", {
  6799. "style": {
  6800. "position": "absolute",
  6801. "bottom": "50px",
  6802. "right": "50px",
  6803. "zIndex": "9999",
  6804. "backgroundColor": "#2268bc",
  6805. "color": "#fff",
  6806. "padding": "12px 20px",
  6807. "cursor": "pointer",
  6808. "borderRadius": "4px",
  6809. },
  6810. "innerHTML": "確認並提交"
  6811. })
  6812. let aTool = ''
  6813. let _loading = document.createElement('div')
  6814. _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;"
  6815. // _loading.id = "";
  6816. let _lchild = document.createElement('div')
  6817. let _limg = document.createElement('img')
  6818. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6819. _limg.style = "width: 26px;margin-right: 10px;"
  6820. _lchild.appendChild(_limg)
  6821. let _lspan = document.createElement('span')
  6822. _lspan.innerHTML = "上傳中..."
  6823. _lchild.appendChild(_lspan)
  6824. _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%);"
  6825. _loading.appendChild(_lchild)
  6826. var _box = $$('div', {
  6827. "style": {
  6828. "position": "relative",
  6829. "width": "100%",
  6830. "height": "100%",
  6831. },
  6832. })
  6833. _box.appendChild(_loading)
  6834. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid
  6835. switch (str) {
  6836. case "whiteboard":
  6837. aTool = 1;
  6838. _iframe = $$("iframe", {
  6839. "frameborder": "no",
  6840. "border": "0",
  6841. "scrolling ": "no",
  6842. "style": {
  6843. "cssText": "border:0;width:100%;height:100%"
  6844. },
  6845. "src": "https://iwb.cocorobo.hk/"
  6846. })
  6847. _box.appendChild(_iframe);
  6848. _box.appendChild(_jie);
  6849. _formdiv = new U.UF.UI.form(
  6850. "電子白板",
  6851. _box, {
  6852. "id": "whiteboards" + cid + stage + task + tool,
  6853. "style": {
  6854. "width": "90%",
  6855. "height": "90%",
  6856. "overflow": 'hidden'
  6857. },
  6858. "onresize": function () { }
  6859. }, {
  6860. closecallback: function () { }
  6861. }, {
  6862. "style": {
  6863. "height": "36px"
  6864. }
  6865. }).form; //創建窗體
  6866. _taskbar = {
  6867. "id": str + _formdiv.id,
  6868. "style": {
  6869. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6870. },
  6871. "name": "電子白板",
  6872. "forms": _formdiv,
  6873. "click": function () {
  6874. U.MD.D.I.openApplication(str, obj, info);
  6875. }
  6876. }
  6877. break;
  6878. case "mind":
  6879. aTool = 3;
  6880. _iframe = $$("iframe", {
  6881. "frameborder": "no",
  6882. "border": "0",
  6883. "scrolling ": "no",
  6884. "style": {
  6885. "cssText": "border:0;width:100%;height:100%"
  6886. },
  6887. "src": "/kityminder-editor/dist/index.html"
  6888. });
  6889. _box.appendChild(_iframe);
  6890. _box.appendChild(_jie);
  6891. _formdiv = new U.UF.UI.form(
  6892. "思維導圖",
  6893. _box, { //"/jsmind/example/demo.html"
  6894. "id": "minds" + cid + stage + task + tool,
  6895. "style": {
  6896. "width": "90%",
  6897. "height": "90%",
  6898. "overflow": 'hidden'
  6899. },
  6900. "onresize": function () { }
  6901. }, {
  6902. closecallback: function () { }
  6903. }, {
  6904. "style": {
  6905. "height": "36px"
  6906. }
  6907. }).form; //創建窗體
  6908. _taskbar = {
  6909. "id": str + _formdiv.id,
  6910. "style": {
  6911. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6912. },
  6913. "name": "思維導圖",
  6914. "forms": _formdiv,
  6915. "click": function () {
  6916. U.MD.D.I.openApplication(str, obj, info);
  6917. }
  6918. }
  6919. break;
  6920. case "doc":
  6921. aTool = 6;
  6922. _iframe = $$("iframe", {
  6923. "frameborder": "no",
  6924. "border": "0",
  6925. "scrolling ": "no",
  6926. "style": {
  6927. "cssText": "border:0;width:100%;height:100%"
  6928. },
  6929. "src": "/Office/Word/WordEditArea.htm"
  6930. })
  6931. _box.appendChild(_iframe);
  6932. _box.appendChild(_jie);
  6933. _formdiv = new U.UF.UI.form(
  6934. "協同文檔",
  6935. _box, {
  6936. "id": "docs" + cid + stage + task + tool,
  6937. "style": {
  6938. "width": "90%",
  6939. "height": "90%",
  6940. "overflow": 'hidden'
  6941. },
  6942. "onresize": function () { }
  6943. }, {
  6944. closecallback: function () { }
  6945. }, {
  6946. "style": {
  6947. "height": "36px"
  6948. }
  6949. }).form; //創建窗體
  6950. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6951. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6952. })
  6953. _taskbar = {
  6954. "id": str + _formdiv.id,
  6955. "style": {
  6956. "backgroundImage": "url(/img/icon/doc.png)"
  6957. },
  6958. "name": "協同文檔",
  6959. "forms": _formdiv,
  6960. "click": function () {
  6961. U.MD.D.I.openApplication(str, obj, info);
  6962. }
  6963. }
  6964. break;
  6965. }
  6966. const script1 = document.createElement("script");
  6967. script1.type = "text/javascript";
  6968. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6969. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6970. const script2 = document.createElement("script");
  6971. script2.type = "text/javascript";
  6972. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6973. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6974. const script3 = document.createElement("script");
  6975. script3.type = "text/javascript";
  6976. script3.charset = "UTF-8";
  6977. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6978. const script4 = document.createElement("script");
  6979. script4.type = "text/javascript";
  6980. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6981. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu5.js";
  6982. if (_iframe) {
  6983. if (str == 'doc') {
  6984. _iframe = _formdiv.querySelector('iframe')
  6985. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6986. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6987. _iframe.contentWindow.document.body.appendChild(script1);
  6988. _iframe.contentWindow.document.body.appendChild(script2);
  6989. // _iframe.contentWindow.document.body.appendChild(script3);
  6990. _iframe.contentWindow.document.body.appendChild(script4);
  6991. })
  6992. if (onloadListener) {
  6993. _iframe.contentDocument.location.reload()
  6994. } else {
  6995. _iframe.contentDocument.location.reload()
  6996. }
  6997. } else if (str == 'mind') {
  6998. _iframe = _formdiv.querySelector('iframe')
  6999. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7000. _iframe.contentWindow.document.body.appendChild(script1);
  7001. _iframe.contentWindow.document.body.appendChild(script2);
  7002. _iframe.contentWindow.document.body.appendChild(script4);
  7003. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  7004. })
  7005. if (onloadListener) {
  7006. _iframe.contentDocument.location.reload()
  7007. } else {
  7008. _iframe.contentDocument.location.reload()
  7009. }
  7010. } else {
  7011. _iframe.onload = () => {
  7012. _iframe.contentWindow.document.body.appendChild(script1);
  7013. _iframe.contentWindow.document.body.appendChild(script2);
  7014. // _iframe.contentWindow.document.body.appendChild(script3);
  7015. _iframe.contentWindow.document.body.appendChild(script4);
  7016. };
  7017. }
  7018. _jie.onclick = async () => {
  7019. let text = ''
  7020. if (aTool == 6) {
  7021. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  7022. } else if (aTool == 3) {
  7023. text = await U.MD.D.I.getEditorContent(_iframe);
  7024. }
  7025. _loading.style.display = 'flex'
  7026. console.log(_loading);
  7027. var _ajs = _iframe.contentWindow.document.createElement("script");
  7028. _ajs.type = "text/javascript";
  7029. _ajs.innerHTML =
  7030. // 'console.log(' + _loading + ');\n' +
  7031. 'var _js = document.createElement("script");\n' +
  7032. '_js.type="text/javascript";\n' +
  7033. '_js.charset="UTF-8";\n' +
  7034. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  7035. "_js.onload = function(){\n" +
  7036. ' var a = document.getElementsByTagName("img")\n' +
  7037. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  7038. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  7039. '  var base64Url = canvas.toDataURL("image/png");\n' +
  7040. 'var base64 = "<img src=" + base64Url + " />"\n' +
  7041. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  7042. "beforeUpload_shishi(file," +
  7043. "'" +
  7044. _userid +
  7045. "'" +
  7046. ", " +
  7047. "'" +
  7048. _cid +
  7049. "'" +
  7050. ", " +
  7051. "'" +
  7052. _stage +
  7053. "'" +
  7054. ", " +
  7055. "'" +
  7056. _task +
  7057. "'" +
  7058. ", " +
  7059. "'" +
  7060. _tool +
  7061. "'" +
  7062. ", " +
  7063. "'" +
  7064. (str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid) +
  7065. "'" +
  7066. ", " +
  7067. "'" +
  7068. aTool +
  7069. "'" +
  7070. ", " +
  7071. "`" +
  7072. text +
  7073. "`" +
  7074. ")\n" +
  7075. " });\n" +
  7076. "}\n" +
  7077. "document.head.appendChild(_js);\n";
  7078. _iframe.contentWindow.document.head.appendChild(_ajs);
  7079. }
  7080. }
  7081. //U.MD.D.I.openClick(str);
  7082. //如果有任務欄信息
  7083. // if (_taskbar) {
  7084. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  7085. // }
  7086. }
  7087. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  7088. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7089. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7090. _userinfo = US.userInfo, //登錄用戶信息
  7091. _userid = US.userInfo.userid //登錄用戶id
  7092. let _iframe;
  7093. let _cid = cid,
  7094. _stage = stage,
  7095. _task = task,
  7096. _tool = tool;
  7097. var _jie = $$("div", {
  7098. "style": {
  7099. "position": "absolute",
  7100. "bottom": "50px",
  7101. "right": "50px",
  7102. "zIndex": "9999",
  7103. "backgroundColor": "#2268bc",
  7104. "color": "#fff",
  7105. "padding": "12px 20px",
  7106. "cursor": "pointer",
  7107. "borderRadius": "4px",
  7108. },
  7109. "innerHTML": "上傳模板"
  7110. })
  7111. let aTool = ''
  7112. let _loading = document.createElement('div')
  7113. _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;"
  7114. // _loading.id = "";
  7115. let _lchild = document.createElement('div')
  7116. let _limg = document.createElement('img')
  7117. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7118. _limg.style = "width: 26px;margin-right: 10px;"
  7119. _lchild.appendChild(_limg)
  7120. let _lspan = document.createElement('span')
  7121. _lspan.innerHTML = "上傳中..."
  7122. _lchild.appendChild(_lspan)
  7123. _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%);"
  7124. _loading.appendChild(_lchild)
  7125. var _box = $$('div', {
  7126. "style": {
  7127. "position": "relative",
  7128. "width": "100%",
  7129. "height": "100%",
  7130. },
  7131. })
  7132. _box.appendChild(_loading)
  7133. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool + _userid
  7134. switch (str) {
  7135. case "whiteboard":
  7136. aTool = 1;
  7137. _iframe = $$("iframe", {
  7138. "frameborder": "no",
  7139. "border": "0",
  7140. "scrolling ": "no",
  7141. "style": {
  7142. "cssText": "border:0;width:100%;height:100%"
  7143. },
  7144. "src": "https://iwb.cocorobo.hk/"
  7145. })
  7146. _box.appendChild(_iframe);
  7147. _box.appendChild(_jie);
  7148. _formdiv = new U.UF.UI.form(
  7149. "電子白板",
  7150. _box, {
  7151. "id": "whiteboards_Yu" + cid + stage + task + tool,
  7152. "style": {
  7153. "width": "90%",
  7154. "height": "90%",
  7155. "overflow": 'hidden'
  7156. },
  7157. "onresize": function () { }
  7158. }, {
  7159. closecallback: function () { }
  7160. }, {
  7161. "style": {
  7162. "height": "36px"
  7163. }
  7164. }).form; //創建窗體
  7165. _taskbar = {
  7166. "id": str + _formdiv.id,
  7167. "style": {
  7168. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  7169. },
  7170. "name": "電子白板",
  7171. "forms": _formdiv,
  7172. "click": function () {
  7173. U.MD.D.I.openApplication(str, obj, info);
  7174. }
  7175. }
  7176. break;
  7177. case "mind":
  7178. aTool = 3;
  7179. _iframe = $$("iframe", {
  7180. "frameborder": "no",
  7181. "border": "0",
  7182. "scrolling ": "no",
  7183. "style": {
  7184. "cssText": "border:0;width:100%;height:100%"
  7185. },
  7186. "src": "/kityminder-editor/dist/index.html"
  7187. });
  7188. _box.appendChild(_iframe);
  7189. _box.appendChild(_jie);
  7190. _formdiv = new U.UF.UI.form(
  7191. "思維導圖",
  7192. _box, { //"/jsmind/example/demo.html"
  7193. "id": "minds_Yu" + cid + stage + task + tool,
  7194. "style": {
  7195. "width": "90%",
  7196. "height": "90%",
  7197. "overflow": 'hidden'
  7198. },
  7199. "onresize": function () { }
  7200. }, {
  7201. closecallback: function () { }
  7202. }, {
  7203. "style": {
  7204. "height": "36px"
  7205. }
  7206. }).form; //創建窗體
  7207. _taskbar = {
  7208. "id": str + _formdiv.id,
  7209. "style": {
  7210. "backgroundImage": "url(/img/icon/mindMapping.png)"
  7211. },
  7212. "name": "思維導圖",
  7213. "forms": _formdiv,
  7214. "click": function () {
  7215. U.MD.D.I.openApplication(str, obj, info);
  7216. }
  7217. }
  7218. break;
  7219. case "doc":
  7220. aTool = 6;
  7221. _iframe = $$("iframe", {
  7222. "frameborder": "no",
  7223. "border": "0",
  7224. "scrolling ": "no",
  7225. "style": {
  7226. "cssText": "border:0;width:100%;height:100%"
  7227. },
  7228. "src": "/Office/Word/WordEditArea.htm"
  7229. })
  7230. _box.appendChild(_iframe);
  7231. _box.appendChild(_jie);
  7232. _formdiv = new U.UF.UI.form(
  7233. "協同文檔",
  7234. _box, {
  7235. "id": "docs_Yu" + cid + stage + task + tool,
  7236. "style": {
  7237. "width": "90%",
  7238. "height": "90%",
  7239. "overflow": 'hidden'
  7240. },
  7241. "onresize": function () { }
  7242. }, {
  7243. closecallback: function () { }
  7244. }, {
  7245. "style": {
  7246. "height": "36px"
  7247. }
  7248. }).form; //創建窗體
  7249. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  7250. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  7251. })
  7252. _taskbar = {
  7253. "id": str + _formdiv.id,
  7254. "style": {
  7255. "backgroundImage": "url(/img/icon/doc.png)"
  7256. },
  7257. "name": "協同文檔",
  7258. "forms": _formdiv,
  7259. "click": function () {
  7260. U.MD.D.I.openApplication(str, obj, info);
  7261. }
  7262. }
  7263. break;
  7264. case "CocoPi":
  7265. aTool = 57;
  7266. _iframe = $$("iframe", {
  7267. "allowpaymentrequest": "allowpaymentrequest",
  7268. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7269. "webkitallowfullscreen": "",
  7270. "mozallowfullscreen": "",
  7271. "frameborder": "no",
  7272. "border": "0",
  7273. "scrolling ": "no",
  7274. "style": {
  7275. "cssText": "border:0;width:100%;height:100%"
  7276. },
  7277. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7278. })
  7279. _box.appendChild(_iframe);
  7280. _box.appendChild(_jie);
  7281. _formdiv = new U.UF.UI.form(
  7282. "CocoPi",
  7283. _box, {
  7284. "id": "CocoPi_Yu" + cid + stage + task + tool,
  7285. "style": {
  7286. "width": "90%",
  7287. "height": "90%",
  7288. "overflow": 'hidden'
  7289. },
  7290. "onresize": function () { }
  7291. }, {
  7292. closecallback: function () { }
  7293. }, {
  7294. "style": {
  7295. "height": "36px"
  7296. }
  7297. }).form; //創建窗體
  7298. _taskbar = {
  7299. "id": str + _formdiv.id,
  7300. "style": {
  7301. "backgroundImage": "url(/img/icon/cocopi.png)"
  7302. },
  7303. "name": "CocoPi",
  7304. "forms": _formdiv,
  7305. "click": function () {
  7306. U.MD.D.I.openApplication(str, obj, info);
  7307. }
  7308. }
  7309. break;
  7310. }
  7311. if (_iframe) {
  7312. if (str == 'doc') {
  7313. _iframe = _formdiv.querySelector('iframe')
  7314. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7315. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  7316. })
  7317. if (onloadListener) {
  7318. _iframe.contentDocument.location.reload()
  7319. } else {
  7320. _iframe.contentDocument.location.reload()
  7321. }
  7322. } else if (str == 'mind') {
  7323. _iframe = _formdiv.querySelector('iframe')
  7324. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7325. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  7326. })
  7327. if (onloadListener) {
  7328. _iframe.contentDocument.location.reload()
  7329. } else {
  7330. _iframe.contentDocument.location.reload()
  7331. }
  7332. } else if (str == 'whiteboard') {
  7333. _iframe = _formdiv.querySelector('iframe')
  7334. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7335. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  7336. })
  7337. if (onloadListener) {
  7338. _iframe.contentDocument.location.reload()
  7339. } else {
  7340. _iframe.contentDocument.location.reload()
  7341. }
  7342. } else if (str == 'CocoPi') {
  7343. _iframe = _formdiv.querySelector('iframe')
  7344. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7345. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  7346. })
  7347. if (onloadListener) {
  7348. _iframe.contentDocument.location.reload()
  7349. } else {
  7350. _iframe.contentDocument.location.reload()
  7351. }
  7352. } else {
  7353. _iframe.onload = () => { };
  7354. }
  7355. _jie.onclick = async () => {
  7356. let text = ''
  7357. let type = '2'
  7358. if (aTool == 1) {
  7359. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  7360. type = '3'
  7361. } else if (aTool == 6) {
  7362. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  7363. type = '1'
  7364. } else if (aTool == 3) {
  7365. text = await U.MD.D.I.getEditorContent(_iframe);
  7366. type = '2'
  7367. } else if (aTool == 57) {
  7368. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  7369. type = '4'
  7370. }
  7371. _loading.style.display = 'flex'
  7372. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  7373. }
  7374. }
  7375. //U.MD.D.I.openClick(str);
  7376. //如果有任務欄信息
  7377. // if (_taskbar) {
  7378. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  7379. // }
  7380. }
  7381. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  7382. var xmlhttp;
  7383. var Mac, Sn, DeviceId
  7384. if (window.XMLHttpRequest) {
  7385. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7386. xmlhttp = new XMLHttpRequest();
  7387. }
  7388. else {
  7389. // IE6, IE5 瀏覽器執行代碼
  7390. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7391. }
  7392. xmlhttp.onreadystatechange = function () {
  7393. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7394. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7395. // resolve(res.value[0][0].text);
  7396. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7397. }
  7398. }
  7399. }
  7400. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7401. xmlhttp.send();
  7402. }
  7403. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  7404. var xmlhttp;
  7405. var Mac, Sn, DeviceId
  7406. if (window.XMLHttpRequest) {
  7407. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7408. xmlhttp = new XMLHttpRequest();
  7409. }
  7410. else {
  7411. // IE6, IE5 瀏覽器執行代碼
  7412. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7413. }
  7414. xmlhttp.onreadystatechange = function () {
  7415. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7416. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7417. // resolve(res.value[0][0].text);
  7418. if (type == '2') {
  7419. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7420. } else if (type == '3') {
  7421. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  7422. } else if (type == '4') {
  7423. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  7424. }
  7425. } else {
  7426. if (type == '2') {
  7427. iframe.contentWindow.editor.minder.importData('json', '')
  7428. } else if (type == '3') {
  7429. iframe.contentWindow.h.app.updateScene({ elements: [] })
  7430. } else if (type == '4') {
  7431. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7432. }
  7433. }
  7434. }
  7435. }
  7436. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7437. xmlhttp.send();
  7438. }
  7439. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  7440. var xmlhttp;
  7441. var Mac, Sn, DeviceId
  7442. if (window.XMLHttpRequest) {
  7443. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7444. xmlhttp = new XMLHttpRequest();
  7445. }
  7446. else {
  7447. // IE6, IE5 瀏覽器執行代碼
  7448. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7449. }
  7450. xmlhttp.onreadystatechange = function () {
  7451. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7452. if (xmlhttp.response) {
  7453. // resolve(res.value[0][0].text);
  7454. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  7455. // $(fileInput).val('');
  7456. // });
  7457. span.innerHTML = '上傳成功'
  7458. setTimeout(() => {
  7459. loading.style.display = 'none'
  7460. }, 1000);
  7461. }
  7462. }
  7463. }
  7464. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  7465. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  7466. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  7467. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  7468. // 設置請求頭,表示請求體的編碼格式
  7469. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  7470. // 設置請求體,使用url-encoded格式的數據
  7471. }
  7472. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  7473. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7474. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7475. _userinfo = US.userInfo, //登錄用戶信息
  7476. _userid = US.userInfo.userid //登錄用戶id
  7477. let _iframe;
  7478. let _cid = cid,
  7479. _stage = stage,
  7480. _task = task,
  7481. _tool = tool;
  7482. var _jie = $$("div", {
  7483. "style": {
  7484. "position": "absolute",
  7485. "bottom": "50px",
  7486. "right": "50px",
  7487. "zIndex": "9999",
  7488. "backgroundColor": "#2268bc",
  7489. "color": "#fff",
  7490. "padding": "12px 20px",
  7491. "cursor": "pointer",
  7492. "borderRadius": "4px",
  7493. },
  7494. "innerHTML": "提交作業"
  7495. })
  7496. let aTool = ''
  7497. let _loading = document.createElement('div')
  7498. _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;"
  7499. // _loading.id = "";
  7500. let _lchild = document.createElement('div')
  7501. let _limg = document.createElement('img')
  7502. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7503. _limg.style = "width: 26px;margin-right: 10px;"
  7504. _lchild.appendChild(_limg)
  7505. let _lspan = document.createElement('span')
  7506. _lspan.innerHTML = "上傳中..."
  7507. _lchild.appendChild(_lspan)
  7508. _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%);"
  7509. _loading.appendChild(_lchild)
  7510. var _box = $$('div', {
  7511. "style": {
  7512. "position": "relative",
  7513. "width": "100%",
  7514. "height": "100%",
  7515. },
  7516. })
  7517. _box.appendChild(_loading)
  7518. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool + _userid
  7519. switch (str) {
  7520. case "CocoPi":
  7521. aTool = 57;
  7522. _iframe = $$("iframe", {
  7523. "allowpaymentrequest": "allowpaymentrequest",
  7524. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7525. "webkitallowfullscreen": "",
  7526. "mozallowfullscreen": "",
  7527. "frameborder": "no",
  7528. "border": "0",
  7529. "scrolling ": "no",
  7530. "style": {
  7531. "cssText": "border:0;width:100%;height:100%"
  7532. },
  7533. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7534. })
  7535. _box.appendChild(_iframe);
  7536. _box.appendChild(_jie);
  7537. _formdiv = new U.UF.UI.form(
  7538. "CocoPi",
  7539. _box, {
  7540. "id": "CocoPi_Upload" + cid + stage + task + tool,
  7541. "style": {
  7542. "width": "90%",
  7543. "height": "90%",
  7544. "overflow": 'hidden'
  7545. },
  7546. "onresize": function () { }
  7547. }, {
  7548. closecallback: function () { }
  7549. }, {
  7550. "style": {
  7551. "height": "36px"
  7552. }
  7553. }).form; //創建窗體
  7554. _taskbar = {
  7555. "id": str + _formdiv.id,
  7556. "style": {
  7557. "backgroundImage": "url(/img/icon/cocopi.png)"
  7558. },
  7559. "name": "CocoPi",
  7560. "forms": _formdiv,
  7561. "click": function () {
  7562. U.MD.D.I.openApplication(str, obj, info);
  7563. }
  7564. }
  7565. break;
  7566. }
  7567. if (_iframe) {
  7568. if (str == 'CocoPi') {
  7569. _iframe = _formdiv.querySelector('iframe')
  7570. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7571. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7572. })
  7573. if (onloadListener) {
  7574. _iframe.contentDocument.location.reload()
  7575. } else {
  7576. _iframe.contentDocument.location.reload()
  7577. }
  7578. }
  7579. _jie.onclick = async () => {
  7580. let text = ''
  7581. if (aTool == 57) {
  7582. text = _iframe.contentWindow.getLoadXmlStr()
  7583. }
  7584. _loading.style.display = 'flex'
  7585. console.log(_loading);
  7586. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  7587. _loading.style.display = 'none'
  7588. let _div = document.createElement('div')
  7589. _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;"
  7590. let _inner = document.createElement('div')
  7591. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7592. _inner.innerHTML = "上傳成功"
  7593. _div.appendChild(_inner)
  7594. _iframe.contentWindow.window.document.body.appendChild(_div)
  7595. _div.onclick = () => {
  7596. _iframe.contentWindow.window.document.body.removeChild(_div)
  7597. }
  7598. setTimeout(() => {
  7599. _iframe.contentWindow.window.document.body.removeChild(_div)
  7600. }, 1000);
  7601. }, [], { "type": "POST", "withCredentials": true });
  7602. }
  7603. }
  7604. }
  7605. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  7606. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7607. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7608. _userid = student.userid, //登錄用戶id
  7609. _username = student.student //用戶名字
  7610. let _iframe;
  7611. let _cid = cid,
  7612. _stage = stage,
  7613. _task = task,
  7614. _tool = tool;
  7615. var _jie = $$("div", {
  7616. "style": {
  7617. "position": "absolute",
  7618. "bottom": "50px",
  7619. "right": "50px",
  7620. "zIndex": "9999",
  7621. "backgroundColor": "#2268bc",
  7622. "color": "#fff",
  7623. "padding": "12px 20px",
  7624. "cursor": "pointer",
  7625. "borderRadius": "4px",
  7626. },
  7627. "innerHTML": "提交作業"
  7628. })
  7629. let aTool = ''
  7630. let _loading = document.createElement('div')
  7631. _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;"
  7632. // _loading.id = "";
  7633. let _lchild = document.createElement('div')
  7634. let _limg = document.createElement('img')
  7635. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7636. _limg.style = "width: 26px;margin-right: 10px;"
  7637. _lchild.appendChild(_limg)
  7638. let _lspan = document.createElement('span')
  7639. _lspan.innerHTML = "上傳中..."
  7640. _lchild.appendChild(_lspan)
  7641. _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%);"
  7642. _loading.appendChild(_lchild)
  7643. var _box = $$('div', {
  7644. "style": {
  7645. "position": "relative",
  7646. "width": "100%",
  7647. "height": "100%",
  7648. },
  7649. })
  7650. _box.appendChild(_loading)
  7651. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool + _userid
  7652. switch (str) {
  7653. case "CocoPi":
  7654. aTool = 57;
  7655. _iframe = $$("iframe", {
  7656. "allowpaymentrequest": "allowpaymentrequest",
  7657. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7658. "webkitallowfullscreen": "",
  7659. "mozallowfullscreen": "",
  7660. "frameborder": "no",
  7661. "border": "0",
  7662. "scrolling ": "no",
  7663. "style": {
  7664. "cssText": "border:0;width:100%;height:100%"
  7665. },
  7666. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7667. })
  7668. _box.appendChild(_iframe);
  7669. _box.appendChild(_jie);
  7670. _formdiv = new U.UF.UI.form(
  7671. "CocoPi-" + _username,
  7672. _box, {
  7673. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  7674. "style": {
  7675. "width": "90%",
  7676. "height": "90%",
  7677. "overflow": 'hidden'
  7678. },
  7679. "onresize": function () { }
  7680. }, {
  7681. closecallback: function () { }
  7682. }, {
  7683. "style": {
  7684. "height": "36px"
  7685. }
  7686. }).form; //創建窗體
  7687. _taskbar = {
  7688. "id": str + _formdiv.id,
  7689. "style": {
  7690. "backgroundImage": "url(/img/icon/cocopi.png)"
  7691. },
  7692. "name": "CocoPi",
  7693. "forms": _formdiv,
  7694. "click": function () {
  7695. U.MD.D.I.openApplication(str, obj, info);
  7696. }
  7697. }
  7698. break;
  7699. }
  7700. if (_iframe) {
  7701. if (str == 'CocoPi') {
  7702. _iframe = _formdiv.querySelector('iframe')
  7703. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7704. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7705. })
  7706. if (onloadListener) {
  7707. _iframe.contentDocument.location.reload()
  7708. } else {
  7709. _iframe.contentDocument.location.reload()
  7710. }
  7711. }
  7712. _jie.onclick = async () => {
  7713. let text = ''
  7714. if (aTool == 57) {
  7715. text = _iframe.contentWindow.getLoadXmlStr()
  7716. }
  7717. _loading.style.display = 'flex'
  7718. console.log(_loading);
  7719. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  7720. _loading.style.display = 'none'
  7721. let _div = document.createElement('div')
  7722. _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;"
  7723. let _inner = document.createElement('div')
  7724. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7725. _inner.innerHTML = "上傳成功"
  7726. _div.appendChild(_inner)
  7727. _iframe.contentWindow.window.document.body.appendChild(_div)
  7728. _div.onclick = () => {
  7729. _iframe.contentWindow.window.document.body.removeChild(_div)
  7730. }
  7731. setTimeout(() => {
  7732. _iframe.contentWindow.window.document.body.removeChild(_div)
  7733. }, 1000);
  7734. }, [], { "type": "POST", "withCredentials": true });
  7735. }
  7736. }
  7737. }
  7738. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  7739. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  7740. if (res.value[0].length > 0) {
  7741. if (atool == 57) {
  7742. iframe.contentWindow.loadingXml(res.value[0][0].content)
  7743. }
  7744. } else {
  7745. if (atool == 57) {
  7746. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  7747. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7748. }
  7749. }
  7750. }, [], { "type": "POST", "withCredentials": true });
  7751. }