DeskTop.js 440 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604
  1. /*
  2. 此處為桌面系統啟動應用區域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面應用處理
  5. //判斷圖片是否在拖拽,如果是拖拽圖標的過程是不會打開圖片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教師桌面圖標的全局變量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  17. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  18. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  19. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  20. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  21. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  22. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  23. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  24. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  25. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  26. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  27. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  28. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  29. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  30. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  31. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  32. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  33. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  34. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  35. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  36. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  37. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  38. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  39. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  40. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  41. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  42. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  43. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  44. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  45. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  46. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  47. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  48. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  49. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  50. ];
  51. //極簡模式
  52. U.MD.D.I.easyDeskIcon = [
  53. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  55. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  56. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  57. // { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  58. ];
  59. //教師桌面圖標的全局變量
  60. U.MD.D.I.teacherDeskIcon2 = [
  61. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  62. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  63. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  64. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  65. // { "Name": "項目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  66. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  67. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  68. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  69. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  70. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  71. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  72. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  73. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  74. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  75. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  76. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  77. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  78. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  79. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  80. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  81. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  82. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  83. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  84. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  85. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  86. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  87. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  88. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  89. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  90. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  91. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  92. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  93. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  94. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  95. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  96. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  97. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  98. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  99. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  100. ];
  101. U.MD.D.I.studentDeskIcon = [
  102. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  103. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  104. // { "Name": "我的項目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  105. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  106. // { "Name": "我的評價", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  107. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  108. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  109. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  110. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  111. // { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  112. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  113. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  114. // { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  115. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  116. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  117. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  118. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  119. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  120. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  121. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  122. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  123. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  124. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  125. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  126. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  127. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  128. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  129. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  130. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  131. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  132. ];
  133. U.MD.D.I.studentDeskIcon2 = [
  134. // { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  135. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  136. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  137. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  138. ]
  139. U.MD.D.I.studentDeskIcon3 = [
  140. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  141. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  142. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. ]
  144. U.MD.D.I.schoolDeskIcon = [
  145. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  146. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  147. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  148. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  149. { "Name": "學習資料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  150. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  151. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  152. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  153. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  154. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  155. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  156. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  157. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  158. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  159. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  160. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  161. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  162. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  163. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  164. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  165. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  166. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  167. ];
  168. U.MD.D.I.orgDeskIcon = [
  169. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  170. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  171. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  172. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  173. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  174. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  175. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  176. ];
  177. U.MD.D.I.orgStemDeskIcon = [
  178. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  179. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  180. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  181. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  182. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  183. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  184. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  185. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  186. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  187. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  188. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  189. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  190. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  191. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  192. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  193. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  194. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  195. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  196. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  197. ];
  198. U.MD.D.I.szulsDeskIcon = [
  199. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  200. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  201. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  202. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  204. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  205. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  206. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  207. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  209. ];
  210. U.MD.D.I.hanDeskIcon = [
  211. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  212. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  213. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  214. { "Name": "漢字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  215. { "Name": "國學經典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  216. { "Name": "筆畫訓練", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  217. { "Name": "書法課堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  218. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  219. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  220. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  221. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  222. ];
  223. U.MD.D.I.GMteacherDeskIcon = [
  224. { "Name": "課程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  225. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "學生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  227. { "Name": "學生評價", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  228. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  229. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  230. { "Name": "班級管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  231. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  232. { "Name": "課程進展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  233. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  234. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  235. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  236. ];
  237. U.MD.D.I.GMstudentDeskIcon = [
  238. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  239. { "Name": "我的評價", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  240. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  241. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  242. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  243. ];
  244. //北師大
  245. U.MD.D.I.BSDNSteacherDeskIcon = [
  246. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  247. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  248. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  249. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  250. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  251. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  252. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  253. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  254. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  255. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  256. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  257. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  258. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  259. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  260. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  261. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  262. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  263. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  264. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  265. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  266. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  267. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  268. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  269. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  270. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  271. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  272. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  273. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  274. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  275. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  276. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  277. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  278. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  279. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  280. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  281. { "Name": "數字實驗室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  282. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  283. ];
  284. //松山湖
  285. U.MD.D.I.SONGteacherDeskIcon = [
  286. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  287. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  288. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  289. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  290. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  291. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  292. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  293. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  294. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  295. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  296. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  297. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  298. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  299. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  300. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  301. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  302. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  303. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  304. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  305. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  306. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  307. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  308. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  309. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  310. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  311. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  312. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  313. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  314. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  315. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  316. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  317. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  318. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  319. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  320. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  321. ];
  322. U.MD.D.I.tcStudentDeskIcon = [
  323. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  324. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  325. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  326. ];
  327. U.MD.D.I.tcTeacherDeskIcon = [
  328. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  329. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  330. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  331. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  332. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  333. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  334. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  335. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. ];
  338. U.MD.D.I.tcOrganizerDeskIcon = [
  339. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  340. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  341. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  342. { "Name": "師生項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  343. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  344. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  345. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  346. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  347. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  348. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  349. ];
  350. U.MD.D.I.szscStudentDeskIcon = [
  351. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  352. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  353. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  354. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  355. ];
  356. U.MD.D.I.szscTeacherDeskIcon = [
  357. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  358. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  359. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  360. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  361. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  362. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  363. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  364. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  365. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  366. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  367. ];
  368. U.MD.D.I.szscOrganizerDeskIcon = [
  369. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  370. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  371. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  372. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  373. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  374. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  375. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  376. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  377. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  378. ];
  379. U.MD.D.I.wankeTeacherDeskIcon = [ //1c3b9def-8fbe-11ed-b13d-005056b86db5
  380. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  381. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  382. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  383. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  384. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  385. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  386. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  387. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  388. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  389. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  390. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  391. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  392. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  393. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  394. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  395. ];
  396. U.MD.D.I.wankeAdminDeskIcon = [
  397. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  398. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  399. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  400. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  401. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  402. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  403. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  404. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  405. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  406. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  407. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  408. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  409. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  410. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  411. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  412. ];
  413. U.MD.D.I.lhsTeacherDeskIcon = [ //未來小學
  414. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  415. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  416. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  417. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  418. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  419. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  420. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  421. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  422. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  423. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  424. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  425. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  426. ];
  427. U.MD.D.I.lhsAdminDeskIcon = [ //未來小學admin
  428. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  429. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  430. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  431. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  432. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  433. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  434. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  435. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  436. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  437. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  438. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  439. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  440. ];
  441. //明德教師桌面圖標的全局變量
  442. U.MD.D.I.MingdeTeacherDeskIcon = [
  443. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  444. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  445. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  446. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  447. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  448. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  449. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  450. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  451. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  452. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  453. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  454. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  455. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  456. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  457. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  458. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  459. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  460. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  461. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  462. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  463. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  464. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  465. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  466. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  467. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  468. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  469. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  470. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  471. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  472. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  473. ];
  474. //97c4ee8b-d010-4042-986d-e9d3c217264f
  475. //教師桌面圖標的全局變量
  476. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  477. { "Name": "工作項目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  478. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  479. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  480. // { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  481. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  482. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  483. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  484. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  485. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  486. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  487. ];
  488. //福田
  489. U.MD.D.I.futianTeacherDeskIcon = [
  490. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  491. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  492. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  493. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  494. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  495. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  496. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  497. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  498. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  499. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  500. ];
  501. //福田
  502. U.MD.D.I.futianAdminDeskIcon = [
  503. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  504. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  505. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  506. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  507. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  508. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  509. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  510. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  511. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  512. ];
  513. //lotech
  514. U.MD.D.I.lotechTeacherDeskIcon = [
  515. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  516. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  517. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  518. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  519. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  520. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  521. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  522. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  523. ];
  524. //龍華中心小學教師桌面圖標的全局變量
  525. U.MD.D.I.longhuateacherDeskIcon = [
  526. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  527. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  528. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  529. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  530. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  531. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.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": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  536. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  537. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  538. ];
  539. //教科院實小教師桌面圖標的全局變量
  540. U.MD.D.I.siesteacherDeskIcon = [
  541. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  542. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  543. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  544. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  545. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  546. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  547. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  548. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  549. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  550. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  551. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  552. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  553. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  554. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  555. ];
  556. //教科院實小教師桌面圖標的全局變量
  557. U.MD.D.I.siesStudentDeskIcon = [
  558. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  559. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  560. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  561. ];
  562. //福田
  563. U.MD.D.I.gdjgTeacherDeskIcon = [
  564. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  565. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  566. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  567. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  568. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  569. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  570. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  571. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  572. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  573. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  574. ];
  575. //gdjg
  576. U.MD.D.I.gdjgAdminDeskIcon = [
  577. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  578. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  579. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  580. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  581. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  582. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  583. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  584. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  585. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  586. ];
  587. //hk
  588. U.MD.D.I.hkteacherDeskIcon = [
  589. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  590. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  591. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  592. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  593. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  594. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  595. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  596. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  597. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  598. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  599. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  600. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  601. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  602. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  603. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  604. ];
  605. //hk
  606. U.MD.D.I.hkStudentDeskIcon = [
  607. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  608. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  609. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  610. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  611. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  612. ];
  613. //香海正覺蓮社佛教正覺中學
  614. U.MD.D.I.hkZJLSteacherDeskIcon = [
  615. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  616. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  617. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  618. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  619. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  620. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  621. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  622. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  623. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  624. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  625. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  626. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  627. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  628. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  629. ];
  630. //香海正覺蓮社佛教正覺中學
  631. U.MD.D.I.hkZJLSStudentDeskIcon = [
  632. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  633. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  634. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  635. ];
  636. //雲海
  637. U.MD.D.I.yunhaiTeacherDeskIcon = [
  638. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  639. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  640. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  641. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  642. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  643. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  644. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  645. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  646. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  647. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  648. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  649. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  650. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  651. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  652. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  653. ];
  654. //福田
  655. U.MD.D.I.heyuanTeacherDeskIcon = [
  656. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  657. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  658. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  659. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  660. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  661. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  662. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  663. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  664. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  665. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  666. ];
  667. //福田
  668. U.MD.D.I.heyuanAdminDeskIcon = [
  669. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  670. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  671. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  672. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  673. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  674. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  675. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  676. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  677. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  678. ];
  679. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  680. U.MD.D.I.szherTeacherDeskIcon = [
  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": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  689. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  690. ];
  691. //dsei
  692. U.MD.D.I.dseiTeacherDeskIcon = [
  693. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  694. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  695. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  696. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  697. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  698. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  699. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  700. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  701. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  702. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  703. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  704. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  705. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  706. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  707. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  708. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  709. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  710. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  711. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  712. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  713. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  714. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  715. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  716. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  717. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  718. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  719. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  720. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  721. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  722. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  723. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  724. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  725. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  726. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  727. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  728. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  729. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  730. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  731. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  732. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  733. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  734. ];
  735. //dsei
  736. U.MD.D.I.dseiAdminDeskIcon = [
  737. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  738. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  739. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  740. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  741. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  742. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  743. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  744. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  745. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  746. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  747. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  748. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  749. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  750. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  751. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  752. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  753. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  754. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  755. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  756. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  757. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  758. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  759. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  760. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  761. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  762. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  763. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  764. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  765. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  766. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  767. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  768. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  769. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  770. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  771. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  772. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  773. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  774. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  775. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  776. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  777. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  778. ];
  779. //dsei
  780. U.MD.D.I.dseiStudentDeskIcon = [
  781. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  782. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  783. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  784. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  785. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  786. ];
  787. //未來教育基地
  788. U.MD.D.I.szjkyTeacherDeskIcon = [
  789. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  790. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  791. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  792. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  793. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  794. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  795. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  796. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  797. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  798. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  799. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  800. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  801. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  802. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  803. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  804. ];
  805. //未來教育基地
  806. U.MD.D.I.szjkyAdminDeskIcon = [
  807. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  808. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  809. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  810. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  811. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  812. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  813. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  814. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  815. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  816. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  817. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  818. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  819. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  820. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  821. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  822. ];
  823. //未來教育基地
  824. U.MD.D.I.szjkyStudentDeskIcon = [
  825. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  826. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  827. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  828. ];
  829. //成華教育局
  830. U.MD.D.I.chjyjTeacherDeskIcon = [
  831. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  832. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  833. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  834. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  835. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  836. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  837. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  838. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  839. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  840. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  841. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  842. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  843. ];
  844. //成華教育局chjyj
  845. U.MD.D.I.chjyjAdminDeskIcon = [
  846. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  847. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  848. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  849. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  850. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  851. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  852. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  853. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  854. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  855. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  856. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  857. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  858. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  859. ];
  860. //成華教育局chjyj
  861. U.MD.D.I.chjyjStudentDeskIcon = [
  862. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  863. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  864. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  865. ];
  866. //#region 桌面初始化a
  867. /**
  868. * 初始化桌面的起始函數
  869. *
  870. */
  871. U.MD.D.I.init = function() {
  872. if ($("#U_MD_D_K")[0]) {
  873. //初始化桌面圖標
  874. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  875. // var clickUrl = ':12588/requestIp.php';
  876. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  877. // U.MD.D.I.Ip = data;
  878. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  879. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  880. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  881. // })
  882. // //初始化任務欄,因為是靜態的,所以直接改變樣式即可.
  883. // })
  884. }
  885. }
  886. /**
  887. * 模式切換
  888. *
  889. */
  890. U.MD.D.I.ModeCheck = function(type) {
  891. if (US.Config.type == type) {
  892. return
  893. }
  894. US.Config.type = type
  895. $('.U_PBL_Check .active')[0].className = ''
  896. if (type == 1) {
  897. $('.U_PBL_Check div')[0].className = 'active'
  898. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  899. } else {
  900. $('.U_PBL_Check div')[1].className = 'active'
  901. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  902. }
  903. //初始化桌面圖標
  904. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  905. if (type == 2) {
  906. U.MD.D.I.openApplication("project")
  907. }
  908. }
  909. /**
  910. * 隱藏任務欄
  911. *
  912. * @param {element} 桌面元素
  913. */
  914. U.MD.D.I.hiddenTaskbar = function(el) {
  915. //任務欄位置變小
  916. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  917. //桌面的位置變大
  918. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  919. }
  920. /**
  921. * 隱藏任務欄
  922. *
  923. * @param {element} 桌面元素
  924. */
  925. U.MD.D.I.hiddenTaskbarout = function(el) {
  926. //任務欄位置變小
  927. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  928. //任務欄位置變化
  929. U.selectEl(el).css({ "bottom": "-60px" });
  930. //桌面的位置變大
  931. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  932. }
  933. }
  934. /**
  935. * 初始化打印桌面圖標
  936. *
  937. * @param {element} 桌面元素
  938. */
  939. U.MD.D.I.initDesktopIcons = function(el, type) {
  940. var i, //用於循環
  941. _content, //桌面圖標元素
  942. _iconcontent, //桌面圖標元素
  943. _frag = $$("frag"), //定義一個碎片元素
  944. _type = US.userInfo.type,
  945. _org = US.userInfo.org,
  946. _oid = US.userInfo.organizeid,
  947. _role = US.userInfo.role,
  948. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //獲取教師端桌面圖標
  949. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //極簡模式桌面圖標
  950. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //獲取教師端桌面圖標
  951. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //獲取學生端桌面圖標
  952. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //獲取學生端桌面圖標
  953. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //獲取學生端桌面圖標
  954. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //獲取組織桌面圖標
  955. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  956. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  957. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  958. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //獲取測試學校桌面圖標
  959. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon, //獲取北師大
  960. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon, //獲取周佳名工作室
  961. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon, //獲取松山湖
  962. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon, //獲取萬科雙語
  963. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon, //獲取萬科雙語
  964. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon, //獲取萬科雙語
  965. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon, //獲取未來小學
  966. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon, //獲取未來小學
  967. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //獲取光明學校桌面圖標
  968. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //獲取光明學校桌面圖標
  969. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon, //騰訊學生
  970. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon, //騰訊學生
  971. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon, //福田
  972. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon, //福田
  973. _szjkyTeacherDeskIconInfo = U.MD.D.I.szjkyTeacherDeskIcon, //未來教育基地
  974. _szjkyAdminDeskIconInfo = U.MD.D.I.szjkyAdminDeskIcon, //未來教育基地
  975. _szjkyStudentDeskIconInfo = U.MD.D.I.szjkyStudentDeskIcon, //未來教育基地
  976. _chjyjTeacherDeskIconInfo = U.MD.D.I.chjyjTeacherDeskIcon, //成華教育局
  977. _chjyjAdminDeskIconInfo = U.MD.D.I.chjyjAdminDeskIcon, //成華教育局
  978. _chjyjStudentDeskIconInfo = U.MD.D.I.chjyjStudentDeskIcon, //成華教育局
  979. _dseiTeacherDeskIconInfo = U.MD.D.I.dseiTeacherDeskIcon, //dsei
  980. _dseiAdminDeskIconInfo = U.MD.D.I.dseiAdminDeskIcon, //dsei
  981. _dseiStudentDeskIconInfo = U.MD.D.I.dseiStudentDeskIcon, //dsei
  982. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon, //福田
  983. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon, //福田
  984. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon, //szher
  985. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon, //
  986. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon, //
  987. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon, //lotech
  988. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon, //龍華中心
  989. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon, //sies
  990. _siesStudentDeskIconInfo = U.MD.D.I.siesStudentDeskIcon, //sies
  991. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon, //騰訊學生
  992. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon, //hk
  993. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon, //hk
  994. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon, //hk
  995. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon, //hk
  996. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon, //雲海
  997. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon, //網絡夏令營
  998. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon, //網絡夏令營
  999. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon; //網絡夏令營
  1000. 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'];
  1001. 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'];
  1002. //清楚桌面圖標
  1003. el.innerHTML = "";
  1004. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  1005. _teacherDesktopIconInfo.push(
  1006. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1007. { "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)" } },
  1008. )
  1009. _easyDesktopIconInfo.push({ "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } })
  1010. }
  1011. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  1012. _teacherDesktopIconInfo.push(
  1013. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1014. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  1015. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1016. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1017. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  1018. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  1019. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1020. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1021. )
  1022. }
  1023. if (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
  1024. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  1025. if (el.Name == '項目管理') {
  1026. el.Name = 'PBL項目'
  1027. }
  1028. return el
  1029. })
  1030. }
  1031. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  1032. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  1033. return el.Name != '魔盒識字' && el.Name != '24點'
  1034. })
  1035. }
  1036. 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) {
  1037. _studentDesktopIconInfo.push({ "Name": "我的評價", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } }, )
  1038. }
  1039. //循環創建桌面圖標
  1040. if (type == 1) {
  1041. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  1042. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1043. _content = $$("div", {
  1044. className: "U_MD_D_KO",
  1045. "onmousedown": U.UF.C.closure(function(obj) {
  1046. //防止拖動圖標即打開了桌面應用
  1047. U.MD.D.click(this, obj);
  1048. }, [_studentDesktopIconInfo[i]]),
  1049. "onclick": U.UF.C.closure(function(obj) {
  1050. //防止拖動圖標即打開了桌面應用
  1051. U.MD.D.click(this, obj);
  1052. }, [_studentDesktopIconInfo[i]])
  1053. }, _frag); //
  1054. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1055. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1056. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1057. }
  1058. } else if (_type == 2 && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1059. for (i = 0; i < _hkZJLSStudentDeskIconInfo.length; i++) {
  1060. _content = $$("div", {
  1061. className: "U_MD_D_KO",
  1062. "onmousedown": U.UF.C.closure(function(obj) {
  1063. //防止拖動圖標即打開了桌面應用
  1064. U.MD.D.click(this, obj);
  1065. }, [_hkZJLSStudentDeskIconInfo[i]]),
  1066. "onclick": U.UF.C.closure(function(obj) {
  1067. //防止拖動圖標即打開了桌面應用
  1068. U.MD.D.click(this, obj);
  1069. }, [_hkZJLSStudentDeskIconInfo[i]])
  1070. }, _frag); //
  1071. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1072. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  1073. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  1074. } //
  1075. } else if (_type == 2 && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5")) {
  1076. for (i = 0; i < _chjyjStudentDeskIconInfo.length; i++) {
  1077. _content = $$("div", {
  1078. className: "U_MD_D_KO",
  1079. "onmousedown": U.UF.C.closure(function(obj) {
  1080. //防止拖動圖標即打開了桌面應用
  1081. U.MD.D.click(this, obj);
  1082. }, [_chjyjStudentDeskIconInfo[i]]),
  1083. "onclick": U.UF.C.closure(function(obj) {
  1084. //防止拖動圖標即打開了桌面應用
  1085. U.MD.D.click(this, obj);
  1086. }, [_chjyjStudentDeskIconInfo[i]])
  1087. }, _frag); //
  1088. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1089. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjStudentDeskIconInfo[i].style }, _iconcontent);
  1090. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjStudentDeskIconInfo[i].Name }, _iconcontent);
  1091. }
  1092. } else if (_type == 2 && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5")) {
  1093. for (i = 0; i < _szjkyStudentDeskIconInfo.length; i++) {
  1094. _content = $$("div", {
  1095. className: "U_MD_D_KO",
  1096. "onmousedown": U.UF.C.closure(function(obj) {
  1097. //防止拖動圖標即打開了桌面應用
  1098. U.MD.D.click(this, obj);
  1099. }, [_szjkyStudentDeskIconInfo[i]]),
  1100. "onclick": U.UF.C.closure(function(obj) {
  1101. //防止拖動圖標即打開了桌面應用
  1102. U.MD.D.click(this, obj);
  1103. }, [_szjkyStudentDeskIconInfo[i]])
  1104. }, _frag); //
  1105. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1106. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyStudentDeskIconInfo[i].style }, _iconcontent);
  1107. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyStudentDeskIconInfo[i].Name }, _iconcontent);
  1108. }
  1109. } else if (_type == 2 && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5")) {
  1110. for (i = 0; i < _dseiStudentDeskIconInfo.length; i++) {
  1111. _content = $$("div", {
  1112. className: "U_MD_D_KO",
  1113. "onmousedown": U.UF.C.closure(function(obj) {
  1114. //防止拖動圖標即打開了桌面應用
  1115. U.MD.D.click(this, obj);
  1116. }, [_dseiStudentDeskIconInfo[i]]),
  1117. "onclick": U.UF.C.closure(function(obj) {
  1118. //防止拖動圖標即打開了桌面應用
  1119. U.MD.D.click(this, obj);
  1120. }, [_dseiStudentDeskIconInfo[i]])
  1121. }, _frag); //
  1122. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1123. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiStudentDeskIconInfo[i].style }, _iconcontent);
  1124. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiStudentDeskIconInfo[i].Name }, _iconcontent);
  1125. }
  1126. } else if (_type == 2 && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1127. for (i = 0; i < _siesStudentDeskIconInfo.length; i++) {
  1128. _content = $$("div", {
  1129. className: "U_MD_D_KO",
  1130. "onmousedown": U.UF.C.closure(function(obj) {
  1131. //防止拖動圖標即打開了桌面應用
  1132. U.MD.D.click(this, obj);
  1133. }, [_siesStudentDeskIconInfo[i]]),
  1134. "onclick": U.UF.C.closure(function(obj) {
  1135. //防止拖動圖標即打開了桌面應用
  1136. U.MD.D.click(this, obj);
  1137. }, [_siesStudentDeskIconInfo[i]])
  1138. }, _frag); //
  1139. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1140. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesStudentDeskIconInfo[i].style }, _iconcontent);
  1141. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesStudentDeskIconInfo[i].Name }, _iconcontent);
  1142. }
  1143. } else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1144. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  1145. _content = $$("div", {
  1146. className: "U_MD_D_KO",
  1147. "onmousedown": U.UF.C.closure(function(obj) {
  1148. //防止拖動圖標即打開了桌面應用
  1149. U.MD.D.click(this, obj);
  1150. }, [_hkStudentDeskIconInfo[i]]),
  1151. "onclick": U.UF.C.closure(function(obj) {
  1152. //防止拖動圖標即打開了桌面應用
  1153. U.MD.D.click(this, obj);
  1154. }, [_hkStudentDeskIconInfo[i]])
  1155. }, _frag); //
  1156. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1157. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  1158. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  1159. }
  1160. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  1161. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1162. _content = $$("div", {
  1163. className: "U_MD_D_KO",
  1164. "onmousedown": U.UF.C.closure(function(obj) {
  1165. //防止拖動圖標即打開了桌面應用
  1166. U.MD.D.click(this, obj);
  1167. }, [_studentDesktopIconInfo[i]]),
  1168. "onclick": U.UF.C.closure(function(obj) {
  1169. //防止拖動圖標即打開了桌面應用
  1170. U.MD.D.click(this, obj);
  1171. }, [_studentDesktopIconInfo[i]])
  1172. }, _frag); //
  1173. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1174. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1175. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1176. }
  1177. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  1178. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  1179. _content = $$("div", {
  1180. className: "U_MD_D_KO",
  1181. "onmousedown": U.UF.C.closure(function(obj) {
  1182. //防止拖動圖標即打開了桌面應用
  1183. U.MD.D.click(this, obj);
  1184. }, [_tcStudentDeskIconInfo[i]]),
  1185. "onclick": U.UF.C.closure(function(obj) {
  1186. //防止拖動圖標即打開了桌面應用
  1187. U.MD.D.click(this, obj);
  1188. }, [_tcStudentDeskIconInfo[i]])
  1189. }, _frag); //
  1190. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1191. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  1192. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  1193. }
  1194. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  1195. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  1196. _content = $$("div", {
  1197. className: "U_MD_D_KO",
  1198. "onmousedown": U.UF.C.closure(function(obj) {
  1199. //防止拖動圖標即打開了桌面應用
  1200. U.MD.D.click(this, obj);
  1201. }, [_szscStudentDeskIconInfo[i]]),
  1202. "onclick": U.UF.C.closure(function(obj) {
  1203. //防止拖動圖標即打開了桌面應用
  1204. U.MD.D.click(this, obj);
  1205. }, [_szscStudentDeskIconInfo[i]])
  1206. }, _frag); //
  1207. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1208. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  1209. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  1210. }
  1211. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  1212. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  1213. _content = $$("div", {
  1214. className: "U_MD_D_KO",
  1215. "onmousedown": U.UF.C.closure(function(obj) {
  1216. //防止拖動圖標即打開了桌面應用
  1217. U.MD.D.click(this, obj);
  1218. }, [_studentDesktopIconInfo3[i]]),
  1219. "onclick": U.UF.C.closure(function(obj) {
  1220. //防止拖動圖標即打開了桌面應用
  1221. U.MD.D.click(this, obj);
  1222. }, [_studentDesktopIconInfo3[i]])
  1223. }, _frag); //
  1224. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1225. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  1226. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  1227. }
  1228. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  1229. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  1230. _content = $$("div", {
  1231. className: "U_MD_D_KO",
  1232. "onmousedown": U.UF.C.closure(function(obj) {
  1233. //防止拖動圖標即打開了桌面應用
  1234. U.MD.D.click(this, obj);
  1235. }, [_studentDesktopIconInfo2[i]]),
  1236. "onclick": U.UF.C.closure(function(obj) {
  1237. //防止拖動圖標即打開了桌面應用
  1238. U.MD.D.click(this, obj);
  1239. }, [_studentDesktopIconInfo2[i]])
  1240. }, _frag); //
  1241. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1242. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  1243. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  1244. }
  1245. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  1246. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  1247. _content = $$("div", {
  1248. className: "U_MD_D_KO",
  1249. "onmousedown": U.UF.C.closure(function(obj) {
  1250. //防止拖動圖標即打開了桌面應用
  1251. U.MD.D.click(this, obj);
  1252. }, [_wanketeacherDesktopIconInfo[i]]),
  1253. "onclick": U.UF.C.closure(function(obj) {
  1254. //防止拖動圖標即打開了桌面應用
  1255. U.MD.D.click(this, obj);
  1256. }, [_wanketeacherDesktopIconInfo[i]])
  1257. }, _frag); //
  1258. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1259. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  1260. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  1261. }
  1262. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1263. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  1264. _content = $$("div", {
  1265. className: "U_MD_D_KO",
  1266. "onmousedown": U.UF.C.closure(function(obj) {
  1267. //防止拖動圖標即打開了桌面應用
  1268. U.MD.D.click(this, obj);
  1269. }, [_wankeAdminDesktopIconInfo[i]]),
  1270. "onclick": U.UF.C.closure(function(obj) {
  1271. //防止拖動圖標即打開了桌面應用
  1272. U.MD.D.click(this, obj);
  1273. }, [_wankeAdminDesktopIconInfo[i]])
  1274. }, _frag); //
  1275. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1276. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1277. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1278. }
  1279. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1280. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  1281. _content = $$("div", {
  1282. className: "U_MD_D_KO",
  1283. "onmousedown": U.UF.C.closure(function(obj) {
  1284. //防止拖動圖標即打開了桌面應用
  1285. U.MD.D.click(this, obj);
  1286. }, [_teacherDesktopIconInfo2[i]]),
  1287. "onclick": U.UF.C.closure(function(obj) {
  1288. //防止拖動圖標即打開了桌面應用
  1289. U.MD.D.click(this, obj);
  1290. }, [_teacherDesktopIconInfo2[i]])
  1291. }, _frag); //
  1292. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1293. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1294. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1295. }
  1296. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1297. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  1298. _content = $$("div", {
  1299. className: "U_MD_D_KO",
  1300. "onmousedown": U.UF.C.closure(function(obj) {
  1301. //防止拖動圖標即打開了桌面應用
  1302. U.MD.D.click(this, obj);
  1303. }, [_lotechTeacherDeskIconInfo[i]]),
  1304. "onclick": U.UF.C.closure(function(obj) {
  1305. //防止拖動圖標即打開了桌面應用
  1306. U.MD.D.click(this, obj);
  1307. }, [_lotechTeacherDeskIconInfo[i]])
  1308. }, _frag); //
  1309. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1310. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1311. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1312. }//
  1313. } else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1314. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1315. _content = $$("div", {
  1316. className: "U_MD_D_KO",
  1317. "onmousedown": U.UF.C.closure(function(obj) {
  1318. //防止拖動圖標即打開了桌面應用
  1319. U.MD.D.click(this, obj);
  1320. }, [_siesTeacherDeskIconInfo[i]]),
  1321. "onclick": U.UF.C.closure(function(obj) {
  1322. //防止拖動圖標即打開了桌面應用
  1323. U.MD.D.click(this, obj);
  1324. }, [_siesTeacherDeskIconInfo[i]])
  1325. }, _frag); //
  1326. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1327. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1328. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1329. }
  1330. } else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1331. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1332. _content = $$("div", {
  1333. className: "U_MD_D_KO",
  1334. "onmousedown": U.UF.C.closure(function(obj) {
  1335. //防止拖動圖標即打開了桌面應用
  1336. U.MD.D.click(this, obj);
  1337. }, [_longhuaTeacherDeskIconInfo[i]]),
  1338. "onclick": U.UF.C.closure(function(obj) {
  1339. //防止拖動圖標即打開了桌面應用
  1340. U.MD.D.click(this, obj);
  1341. }, [_longhuaTeacherDeskIconInfo[i]])
  1342. }, _frag); //
  1343. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1344. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1345. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1346. }
  1347. } else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1348. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1349. _content = $$("div", {
  1350. className: "U_MD_D_KO",
  1351. "onmousedown": U.UF.C.closure(function(obj) {
  1352. //防止拖動圖標即打開了桌面應用
  1353. U.MD.D.click(this, obj);
  1354. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1355. "onclick": U.UF.C.closure(function(obj) {
  1356. //防止拖動圖標即打開了桌面應用
  1357. U.MD.D.click(this, obj);
  1358. }, [_yunhaiTeacherDeskIconInfo[i]])
  1359. }, _frag); //
  1360. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1361. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1362. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1363. } //_hkStudentDeskIconInfo
  1364. } else if ((_type == 1 || _type == 4) && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1365. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.length; i++) {
  1366. _content = $$("div", {
  1367. className: "U_MD_D_KO",
  1368. "onmousedown": U.UF.C.closure(function(obj) {
  1369. //防止拖動圖標即打開了桌面應用
  1370. U.MD.D.click(this, obj);
  1371. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1372. "onclick": U.UF.C.closure(function(obj) {
  1373. //防止拖動圖標即打開了桌面應用
  1374. U.MD.D.click(this, obj);
  1375. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1376. }, _frag); //
  1377. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1378. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1379. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1380. }
  1381. } else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1382. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1383. _content = $$("div", {
  1384. className: "U_MD_D_KO",
  1385. "onmousedown": U.UF.C.closure(function(obj) {
  1386. //防止拖動圖標即打開了桌面應用
  1387. U.MD.D.click(this, obj);
  1388. }, [_hkTeacherDeskIconInfo[i]]),
  1389. "onclick": U.UF.C.closure(function(obj) {
  1390. //防止拖動圖標即打開了桌面應用
  1391. U.MD.D.click(this, obj);
  1392. }, [_hkTeacherDeskIconInfo[i]])
  1393. }, _frag); //
  1394. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1395. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1396. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1397. }
  1398. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1399. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1400. _content = $$("div", {
  1401. className: "U_MD_D_KO",
  1402. "onmousedown": U.UF.C.closure(function(obj) {
  1403. //防止拖動圖標即打開了桌面應用
  1404. U.MD.D.click(this, obj);
  1405. }, [_gdjgAdminDeskIconInfo[i]]),
  1406. "onclick": U.UF.C.closure(function(obj) {
  1407. //防止拖動圖標即打開了桌面應用
  1408. U.MD.D.click(this, obj);
  1409. }, [_gdjgAdminDeskIconInfo[i]])
  1410. }, _frag); //
  1411. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1412. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1413. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1414. }
  1415. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1416. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1417. _content = $$("div", {
  1418. className: "U_MD_D_KO",
  1419. "onmousedown": U.UF.C.closure(function(obj) {
  1420. //防止拖動圖標即打開了桌面應用
  1421. U.MD.D.click(this, obj);
  1422. }, [_gdjgTeacherDeskIconInfo[i]]),
  1423. "onclick": U.UF.C.closure(function(obj) {
  1424. //防止拖動圖標即打開了桌面應用
  1425. U.MD.D.click(this, obj);
  1426. }, [_gdjgTeacherDeskIconInfo[i]])
  1427. }, _frag); //
  1428. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1429. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1430. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1431. }
  1432. } else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1433. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1434. _content = $$("div", {
  1435. className: "U_MD_D_KO",
  1436. "onmousedown": U.UF.C.closure(function(obj) {
  1437. //防止拖動圖標即打開了桌面應用
  1438. U.MD.D.click(this, obj);
  1439. }, [_szherTeacherDeskIconInfo[i]]),
  1440. "onclick": U.UF.C.closure(function(obj) {
  1441. //防止拖動圖標即打開了桌面應用
  1442. U.MD.D.click(this, obj);
  1443. }, [_szherTeacherDeskIconInfo[i]])
  1444. }, _frag); //
  1445. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1446. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1447. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1448. }
  1449. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1450. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1451. _content = $$("div", {
  1452. className: "U_MD_D_KO",
  1453. "onmousedown": U.UF.C.closure(function(obj) {
  1454. //防止拖動圖標即打開了桌面應用
  1455. U.MD.D.click(this, obj);
  1456. }, [_heyuannAdminDeskIconInfo[i]]),
  1457. "onclick": U.UF.C.closure(function(obj) {
  1458. //防止拖動圖標即打開了桌面應用
  1459. U.MD.D.click(this, obj);
  1460. }, [_heyuannAdminDeskIconInfo[i]])
  1461. }, _frag); //
  1462. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1463. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1464. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1465. }
  1466. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1467. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1468. _content = $$("div", {
  1469. className: "U_MD_D_KO",
  1470. "onmousedown": U.UF.C.closure(function(obj) {
  1471. //防止拖動圖標即打開了桌面應用
  1472. U.MD.D.click(this, obj);
  1473. }, [_heyuanTeacherDeskIconInfo[i]]),
  1474. "onclick": U.UF.C.closure(function(obj) {
  1475. //防止拖動圖標即打開了桌面應用
  1476. U.MD.D.click(this, obj);
  1477. }, [_heyuanTeacherDeskIconInfo[i]])
  1478. }, _frag); //
  1479. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1480. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1481. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1482. } //
  1483. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 1) {
  1484. for (i = 0; i < _dseiAdminDeskIconInfo.length; i++) {
  1485. _content = $$("div", {
  1486. className: "U_MD_D_KO",
  1487. "onmousedown": U.UF.C.closure(function(obj) {
  1488. //防止拖動圖標即打開了桌面應用
  1489. U.MD.D.click(this, obj);
  1490. }, [_dseiAdminDeskIconInfo[i]]),
  1491. "onclick": U.UF.C.closure(function(obj) {
  1492. //防止拖動圖標即打開了桌面應用
  1493. U.MD.D.click(this, obj);
  1494. }, [_dseiAdminDeskIconInfo[i]])
  1495. }, _frag); //
  1496. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1497. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiAdminDeskIconInfo[i].style }, _iconcontent);
  1498. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiAdminDeskIconInfo[i].Name }, _iconcontent);
  1499. }
  1500. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 0) {
  1501. for (i = 0; i < _dseiTeacherDeskIconInfo.length; i++) {
  1502. _content = $$("div", {
  1503. className: "U_MD_D_KO",
  1504. "onmousedown": U.UF.C.closure(function(obj) {
  1505. //防止拖動圖標即打開了桌面應用
  1506. U.MD.D.click(this, obj);
  1507. }, [_dseiTeacherDeskIconInfo[i]]),
  1508. "onclick": U.UF.C.closure(function(obj) {
  1509. //防止拖動圖標即打開了桌面應用
  1510. U.MD.D.click(this, obj);
  1511. }, [_dseiTeacherDeskIconInfo[i]])
  1512. }, _frag); //
  1513. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1514. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiTeacherDeskIconInfo[i].style }, _iconcontent);
  1515. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1516. } //
  1517. }else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 1) {
  1518. for (i = 0; i < _chjyjAdminDeskIconInfo.length; i++) {
  1519. _content = $$("div", {
  1520. className: "U_MD_D_KO",
  1521. "onmousedown": U.UF.C.closure(function(obj) {
  1522. //防止拖動圖標即打開了桌面應用
  1523. U.MD.D.click(this, obj);
  1524. }, [_chjyjAdminDeskIconInfo[i]]),
  1525. "onclick": U.UF.C.closure(function(obj) {
  1526. //防止拖動圖標即打開了桌面應用
  1527. U.MD.D.click(this, obj);
  1528. }, [_chjyjAdminDeskIconInfo[i]])
  1529. }, _frag); //
  1530. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1531. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjAdminDeskIconInfo[i].style }, _iconcontent);
  1532. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjAdminDeskIconInfo[i].Name }, _iconcontent);
  1533. }//
  1534. } else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 0) {
  1535. for (i = 0; i < _chjyjTeacherDeskIconInfo.length; i++) {
  1536. _content = $$("div", {
  1537. className: "U_MD_D_KO",
  1538. "onmousedown": U.UF.C.closure(function(obj) {
  1539. //防止拖動圖標即打開了桌面應用
  1540. U.MD.D.click(this, obj);
  1541. }, [_chjyjTeacherDeskIconInfo[i]]),
  1542. "onclick": U.UF.C.closure(function(obj) {
  1543. //防止拖動圖標即打開了桌面應用
  1544. U.MD.D.click(this, obj);
  1545. }, [_chjyjTeacherDeskIconInfo[i]])
  1546. }, _frag); //
  1547. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1548. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjTeacherDeskIconInfo[i].style }, _iconcontent);
  1549. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjTeacherDeskIconInfo[i].Name }, _iconcontent);
  1550. }
  1551. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 1) {
  1552. for (i = 0; i < _szjkyAdminDeskIconInfo.length; i++) {
  1553. _content = $$("div", {
  1554. className: "U_MD_D_KO",
  1555. "onmousedown": U.UF.C.closure(function(obj) {
  1556. //防止拖動圖標即打開了桌面應用
  1557. U.MD.D.click(this, obj);
  1558. }, [_szjkyAdminDeskIconInfo[i]]),
  1559. "onclick": U.UF.C.closure(function(obj) {
  1560. //防止拖動圖標即打開了桌面應用
  1561. U.MD.D.click(this, obj);
  1562. }, [_szjkyAdminDeskIconInfo[i]])
  1563. }, _frag); //
  1564. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1565. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyAdminDeskIconInfo[i].style }, _iconcontent);
  1566. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyAdminDeskIconInfo[i].Name }, _iconcontent);
  1567. }//
  1568. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 0) {
  1569. for (i = 0; i < _szjkyTeacherDeskIconInfo.length; i++) {
  1570. _content = $$("div", {
  1571. className: "U_MD_D_KO",
  1572. "onmousedown": U.UF.C.closure(function(obj) {
  1573. //防止拖動圖標即打開了桌面應用
  1574. U.MD.D.click(this, obj);
  1575. }, [_szjkyTeacherDeskIconInfo[i]]),
  1576. "onclick": U.UF.C.closure(function(obj) {
  1577. //防止拖動圖標即打開了桌面應用
  1578. U.MD.D.click(this, obj);
  1579. }, [_szjkyTeacherDeskIconInfo[i]])
  1580. }, _frag); //
  1581. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1582. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyTeacherDeskIconInfo[i].style }, _iconcontent);
  1583. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyTeacherDeskIconInfo[i].Name }, _iconcontent);
  1584. }
  1585. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1586. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1587. _content = $$("div", {
  1588. className: "U_MD_D_KO",
  1589. "onmousedown": U.UF.C.closure(function(obj) {
  1590. //防止拖動圖標即打開了桌面應用
  1591. U.MD.D.click(this, obj);
  1592. }, [_futianAdminDeskIconInfo[i]]),
  1593. "onclick": U.UF.C.closure(function(obj) {
  1594. //防止拖動圖標即打開了桌面應用
  1595. U.MD.D.click(this, obj);
  1596. }, [_futianAdminDeskIconInfo[i]])
  1597. }, _frag); //
  1598. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1599. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1600. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1601. }
  1602. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1603. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1604. _content = $$("div", {
  1605. className: "U_MD_D_KO",
  1606. "onmousedown": U.UF.C.closure(function(obj) {
  1607. //防止拖動圖標即打開了桌面應用
  1608. U.MD.D.click(this, obj);
  1609. }, [_futianTeacherDeskIconInfo[i]]),
  1610. "onclick": U.UF.C.closure(function(obj) {
  1611. //防止拖動圖標即打開了桌面應用
  1612. U.MD.D.click(this, obj);
  1613. }, [_futianTeacherDeskIconInfo[i]])
  1614. }, _frag); //
  1615. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1616. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1617. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1618. }
  1619. } else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1620. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1621. _content = $$("div", {
  1622. className: "U_MD_D_KO",
  1623. "onmousedown": U.UF.C.closure(function(obj) {
  1624. //防止拖動圖標即打開了桌面應用
  1625. U.MD.D.click(this, obj);
  1626. }, [_MingdeTeacherDeskIcon[i]]),
  1627. "onclick": U.UF.C.closure(function(obj) {
  1628. //防止拖動圖標即打開了桌面應用
  1629. U.MD.D.click(this, obj);
  1630. }, [_MingdeTeacherDeskIcon[i]])
  1631. }, _frag); //
  1632. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1633. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1634. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1635. }
  1636. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1637. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1638. _content = $$("div", {
  1639. className: "U_MD_D_KO",
  1640. "onmousedown": U.UF.C.closure(function(obj) {
  1641. //防止拖動圖標即打開了桌面應用
  1642. U.MD.D.click(this, obj);
  1643. }, [_lhsAdminDesktopIconInfo[i]]),
  1644. "onclick": U.UF.C.closure(function(obj) {
  1645. //防止拖動圖標即打開了桌面應用
  1646. U.MD.D.click(this, obj);
  1647. }, [_lhsAdminDesktopIconInfo[i]])
  1648. }, _frag); //
  1649. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1650. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1651. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1652. }
  1653. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1654. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1655. _content = $$("div", {
  1656. className: "U_MD_D_KO",
  1657. "onmousedown": U.UF.C.closure(function(obj) {
  1658. //防止拖動圖標即打開了桌面應用
  1659. U.MD.D.click(this, obj);
  1660. }, [_lhsteacherDesktopIconInfo[i]]),
  1661. "onclick": U.UF.C.closure(function(obj) {
  1662. //防止拖動圖標即打開了桌面應用
  1663. U.MD.D.click(this, obj);
  1664. }, [_lhsteacherDesktopIconInfo[i]])
  1665. }, _frag); //
  1666. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1667. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1668. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1669. }
  1670. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1671. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1672. _content = $$("div", {
  1673. className: "U_MD_D_KO",
  1674. "onmousedown": U.UF.C.closure(function(obj) {
  1675. //防止拖動圖標即打開了桌面應用
  1676. U.MD.D.click(this, obj);
  1677. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1678. "onclick": U.UF.C.closure(function(obj) {
  1679. //防止拖動圖標即打開了桌面應用
  1680. U.MD.D.click(this, obj);
  1681. }, [_zhoujiateacherDesktopIconInfo[i]])
  1682. }, _frag); //
  1683. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1684. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1685. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1686. }
  1687. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1688. for (i = 0; i < _hanDeskIcon.length; i++) {
  1689. _content = $$("div", {
  1690. className: "U_MD_D_KO",
  1691. "onmousedown": U.UF.C.closure(function(obj) {
  1692. //防止拖動圖標即打開了桌面應用
  1693. U.MD.D.click(this, obj);
  1694. }, [_hanDeskIcon[i]]),
  1695. "onclick": U.UF.C.closure(function(obj) {
  1696. //防止拖動圖標即打開了桌面應用
  1697. U.MD.D.click(this, obj);
  1698. }, [_hanDeskIcon[i]])
  1699. }, _frag); //
  1700. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1701. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1702. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1703. }
  1704. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1705. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1706. _content = $$("div", {
  1707. className: "U_MD_D_KO",
  1708. "onmousedown": U.UF.C.closure(function(obj) {
  1709. //防止拖動圖標即打開了桌面應用
  1710. U.MD.D.click(this, obj);
  1711. }, [_orgStemDeskIcon[i]]),
  1712. "onclick": U.UF.C.closure(function(obj) {
  1713. //防止拖動圖標即打開了桌面應用
  1714. U.MD.D.click(this, obj);
  1715. }, [_orgStemDeskIcon[i]])
  1716. }, _frag); //
  1717. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1718. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1719. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1720. }
  1721. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1722. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1723. _content = $$("div", {
  1724. className: "U_MD_D_KO",
  1725. "onmousedown": U.UF.C.closure(function(obj) {
  1726. //防止拖動圖標即打開了桌面應用
  1727. U.MD.D.click(this, obj);
  1728. }, [_szulsDeskIcon[i]]),
  1729. "onclick": U.UF.C.closure(function(obj) {
  1730. //防止拖動圖標即打開了桌面應用
  1731. U.MD.D.click(this, obj);
  1732. }, [_szulsDeskIcon[i]])
  1733. }, _frag); //
  1734. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1735. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1736. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1737. }
  1738. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1739. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1740. _content = $$("div", {
  1741. className: "U_MD_D_KO",
  1742. "onmousedown": U.UF.C.closure(function(obj) {
  1743. //防止拖動圖標即打開了桌面應用
  1744. U.MD.D.click(this, obj);
  1745. }, [_orgDesktopIconInfo[i]]),
  1746. "onclick": U.UF.C.closure(function(obj) {
  1747. //防止拖動圖標即打開了桌面應用
  1748. U.MD.D.click(this, obj);
  1749. }, [_orgDesktopIconInfo[i]])
  1750. }, _frag); //
  1751. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1752. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1753. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1754. }
  1755. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1756. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1757. _content = $$("div", {
  1758. className: "U_MD_D_KO",
  1759. "onmousedown": U.UF.C.closure(function(obj) {
  1760. //防止拖動圖標即打開了桌面應用
  1761. U.MD.D.click(this, obj);
  1762. }, [_schoolDesktopIconInfo[i]]),
  1763. "onclick": U.UF.C.closure(function(obj) {
  1764. //防止拖動圖標即打開了桌面應用
  1765. U.MD.D.click(this, obj);
  1766. }, [_schoolDesktopIconInfo[i]])
  1767. }, _frag); //
  1768. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1769. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1770. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1771. }
  1772. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1773. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1774. _content = $$("div", {
  1775. className: "U_MD_D_KO",
  1776. "onmousedown": U.UF.C.closure(function(obj) {
  1777. //防止拖動圖標即打開了桌面應用
  1778. U.MD.D.click(this, obj);
  1779. }, [_GMteacherDesktopIconInfo[i]]),
  1780. "onclick": U.UF.C.closure(function(obj) {
  1781. //防止拖動圖標即打開了桌面應用
  1782. U.MD.D.click(this, obj);
  1783. }, [_GMteacherDesktopIconInfo[i]])
  1784. }, _frag); //
  1785. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1786. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1787. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1788. }
  1789. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1790. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1791. _content = $$("div", {
  1792. className: "U_MD_D_KO",
  1793. "onmousedown": U.UF.C.closure(function(obj) {
  1794. //防止拖動圖標即打開了桌面應用
  1795. U.MD.D.click(this, obj);
  1796. }, [_SONGteacherDesktopIconInfo[i]]),
  1797. "onclick": U.UF.C.closure(function(obj) {
  1798. //防止拖動圖標即打開了桌面應用
  1799. U.MD.D.click(this, obj);
  1800. }, [_SONGteacherDesktopIconInfo[i]])
  1801. }, _frag); //
  1802. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1803. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1804. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1805. }
  1806. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1807. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1808. _content = $$("div", {
  1809. className: "U_MD_D_KO",
  1810. "onmousedown": U.UF.C.closure(function(obj) {
  1811. //防止拖動圖標即打開了桌面應用
  1812. U.MD.D.click(this, obj);
  1813. }, [_GMstudentDesktopIconInfo[i]]),
  1814. "onclick": U.UF.C.closure(function(obj) {
  1815. //防止拖動圖標即打開了桌面應用
  1816. U.MD.D.click(this, obj);
  1817. }, [_GMstudentDesktopIconInfo[i]])
  1818. }, _frag); //
  1819. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1820. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1821. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1822. }
  1823. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1824. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1825. _content = $$("div", {
  1826. className: "U_MD_D_KO",
  1827. "onmousedown": U.UF.C.closure(function(obj) {
  1828. //防止拖動圖標即打開了桌面應用
  1829. U.MD.D.click(this, obj);
  1830. }, [_tcTeacherDeskIconInfo[i]]),
  1831. "onclick": U.UF.C.closure(function(obj) {
  1832. //防止拖動圖標即打開了桌面應用
  1833. U.MD.D.click(this, obj);
  1834. }, [_tcTeacherDeskIconInfo[i]])
  1835. }, _frag); //
  1836. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1837. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1838. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1839. }
  1840. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1841. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1842. _content = $$("div", {
  1843. className: "U_MD_D_KO",
  1844. "onmousedown": U.UF.C.closure(function(obj) {
  1845. //防止拖動圖標即打開了桌面應用
  1846. U.MD.D.click(this, obj);
  1847. }, [_tcOrganizerDeskIconInfo[i]]),
  1848. "onclick": U.UF.C.closure(function(obj) {
  1849. //防止拖動圖標即打開了桌面應用
  1850. U.MD.D.click(this, obj);
  1851. }, [_tcOrganizerDeskIconInfo[i]])
  1852. }, _frag); //
  1853. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1854. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1855. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1856. }
  1857. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1858. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1859. _content = $$("div", {
  1860. className: "U_MD_D_KO",
  1861. "onmousedown": U.UF.C.closure(function(obj) {
  1862. //防止拖動圖標即打開了桌面應用
  1863. U.MD.D.click(this, obj);
  1864. }, [_szscTeacherDeskIconInfo[i]]),
  1865. "onclick": U.UF.C.closure(function(obj) {
  1866. //防止拖動圖標即打開了桌面應用
  1867. U.MD.D.click(this, obj);
  1868. }, [_szscTeacherDeskIconInfo[i]])
  1869. }, _frag); //
  1870. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1871. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1872. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1873. }
  1874. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1875. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1876. _content = $$("div", {
  1877. className: "U_MD_D_KO",
  1878. "onmousedown": U.UF.C.closure(function(obj) {
  1879. //防止拖動圖標即打開了桌面應用
  1880. U.MD.D.click(this, obj);
  1881. }, [_szscOrganizerDeskIconInfo[i]]),
  1882. "onclick": U.UF.C.closure(function(obj) {
  1883. //防止拖動圖標即打開了桌面應用
  1884. U.MD.D.click(this, obj);
  1885. }, [_szscOrganizerDeskIconInfo[i]])
  1886. }, _frag); //
  1887. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1888. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1889. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1890. }
  1891. } else {
  1892. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1893. _content = $$("div", {
  1894. className: "U_MD_D_KO",
  1895. "onmousedown": U.UF.C.closure(function(obj) {
  1896. //防止拖動圖標即打開了桌面應用
  1897. U.MD.D.click(this, obj);
  1898. }, [_teacherDesktopIconInfo[i]]),
  1899. "onclick": U.UF.C.closure(function(obj) {
  1900. //防止拖動圖標即打開了桌面應用
  1901. U.MD.D.click(this, obj);
  1902. }, [_teacherDesktopIconInfo[i]])
  1903. }, _frag); //
  1904. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1905. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1906. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1907. }
  1908. }
  1909. } else {
  1910. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1911. _content = $$("div", {
  1912. className: "U_MD_D_KO",
  1913. style: { 'width': '124px', 'height': '145px' },
  1914. "onmousedown": U.UF.C.closure(function(obj) {
  1915. //防止拖動圖標即打開了桌面應用
  1916. U.MD.D.click(this, obj);
  1917. }, [_easyDesktopIconInfo[i]]),
  1918. "onclick": U.UF.C.closure(function(obj) {
  1919. //防止拖動圖標即打開了桌面應用
  1920. U.MD.D.click(this, obj);
  1921. }, [_easyDesktopIconInfo[i]])
  1922. }, _frag); //
  1923. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1924. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1925. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1926. }
  1927. }
  1928. if (type == 1) {
  1929. //加載好後給圖標定位
  1930. U.MD.D.iconPostion($(_frag).Child());
  1931. } else {
  1932. //加載好後給圖標定位
  1933. U.MD.D.iconPostion2($(_frag).Child());
  1934. }
  1935. //把圖標加載到頁面
  1936. el.appendChild(_frag);
  1937. }
  1938. /**
  1939. * 顯示任務欄
  1940. *
  1941. * @param {element} 桌面元素
  1942. */
  1943. U.MD.D.I.displayTaskbar = function(el) {
  1944. //判斷是否需要形式任務欄,由於用了mouseover事件會冒泡響應多次,這裏做了過濾
  1945. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1946. //任務欄位置變化
  1947. U.selectEl(el).css({ "bottom": "0px" });
  1948. //桌面位置變話
  1949. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1950. }
  1951. }
  1952. //#region 桌面圖標拖動邏輯
  1953. /**
  1954. * 桌面排列圖標
  1955. *
  1956. * @param {element} 桌面元素
  1957. * @param {object} 上下相距的距離
  1958. * @param {object} 左右相距的距離
  1959. * @return {object} 命名空間
  1960. */
  1961. U.MD.D.iconPostion = function(childs, top, left) {
  1962. var i; //用於循環處理
  1963. top = top || 15; //如果沒有設置元素的間距處理默認上間距為15
  1964. left = left || 20; //如果沒有設置元素的間距處理默認左間距為15
  1965. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  1966. for (i = 0; i < childs.length; i++) {
  1967. //如果豎排top超過了範圍處理
  1968. if (top + 95 > US.height - 10) {
  1969. //left超過了頁面範圍處理,則向上重疊打印處理
  1970. if ((left + 180) > US.width) {
  1971. top -= 110;
  1972. left -= 90;
  1973. }
  1974. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  1975. else {
  1976. left += 90;
  1977. top = 15;
  1978. };
  1979. }
  1980. //給圖標的位置賦值
  1981. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1982. if (i < childs.length - 1) {
  1983. //頁面圖標每次向下加95
  1984. top += 95;
  1985. }
  1986. }
  1987. //返回最後調用的圖標的位置
  1988. return [top, left];
  1989. }
  1990. /**
  1991. * 桌面排列圖標
  1992. *
  1993. * @param {element} 桌面元素
  1994. * @param {object} 上下相距的距離
  1995. * @param {object} 左右相距的距離
  1996. * @return {object} 命名空間
  1997. */
  1998. U.MD.D.iconPostion2 = function(childs, top, left) {
  1999. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用於循環處理
  2000. top = top || 70; //如果沒有設置元素的間距處理默認上間距為15
  2001. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果沒有設置元素的間距處理默認左間距為15
  2002. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  2003. for (i = 0; i < childs.length; i++) {
  2004. //如果豎排top超過了範圍處理
  2005. if (left + 150 > US.width - 10) {
  2006. //left超過了頁面範圍處理,則向上重疊打印處理
  2007. if ((top + 180) > US.Height) {
  2008. top -= 150;
  2009. left -= 150;
  2010. }
  2011. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  2012. else {
  2013. top += 150;
  2014. left = ol;
  2015. };
  2016. }
  2017. //給圖標的位置賦值
  2018. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  2019. if (i < childs.length - 1) {
  2020. //頁面圖標每次向下加95
  2021. left += 150;
  2022. }
  2023. }
  2024. //返回最後調用的圖標的位置
  2025. return [top, left];
  2026. }
  2027. /**
  2028. * 桌面點擊事件邏輯
  2029. *
  2030. * @param {element} 桌面元素
  2031. * @param {object} 上下相距的距離
  2032. * @param {object} 左右相距的距離
  2033. * @return {object} 命名空間
  2034. */
  2035. U.MD.D.click = function(el, obj) {
  2036. var _buttonnumber = event.button; //點擊的按鈕的事件值
  2037. var _userinfo = US.userInfo;
  2038. U.UF.EV.stopBubble(); //阻止向上冒泡
  2039. //onmousedown 包含了左鍵和右鍵 這裏大於2是為了兼容 所有瀏覽器的右鍵處理
  2040. if (_buttonnumber < 2) {
  2041. //如果是click事件的處理
  2042. if (event.type == "click") {
  2043. //如果元素在mousemove事件中沒有移動則出發click事件
  2044. if (!U.MD.D.I.IsDrag) {
  2045. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2046. U.alert("請先登錄您的賬號!");
  2047. setTimeout(() => {
  2048. U.MD.U.L.login();
  2049. }, 2000);
  2050. } else {
  2051. //打開應用處理
  2052. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  2053. }
  2054. }
  2055. }
  2056. //如果是mouse事件的處理
  2057. else {
  2058. if (US.Config.type == '1') {
  2059. //拖動處理,添加拖動和拖動結束事件
  2060. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  2061. }
  2062. }
  2063. U.MD.D.I.IsDrag = false;
  2064. }
  2065. }
  2066. /**
  2067. * 拖動的處理
  2068. *
  2069. */
  2070. U.MD.D.iconMove = function() {
  2071. //如果當前位置點擊初始化的位置出現了變化,則設置是否拖動的屬性 U.MD.D.I.IsDrag為true
  2072. U.MD.D.I.IsDrag = true;
  2073. }
  2074. /**
  2075. * 拖動結束後,這裏是定位處理,以網狀的形式定位
  2076. *
  2077. * @param {element} 拖動的元素
  2078. * @return {object} 命名空間
  2079. */
  2080. U.MD.D.iconUp = function(el) {
  2081. var _top = 15,
  2082. _left = 20,
  2083. _margin,
  2084. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的圖標
  2085. _positioninfo = U.UF.EL.getElementInfo(el); //獲取拖動結束的元素的位置
  2086. if (_positioninfo["OT"] > 15) {
  2087. //網狀的形式定位,如果差超過了55,那麼向下定位,否則向上定位
  2088. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  2089. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  2090. }
  2091. if (_positioninfo["OL"] > 20) {
  2092. //網狀的形式定位,如果差超過了90,那麼向右定位,否則向左定位
  2093. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  2094. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  2095. }
  2096. //while循環判斷麼一個重疊的元素
  2097. do {
  2098. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //給重疊的元素向下定位
  2099. _top = _positioninfo[0] + 95; //得到定位後的top
  2100. _left = _positioninfo[1]; //得到定位後的left
  2101. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  2102. }
  2103. /**
  2104. * 判斷拖動後圖標是否重疊
  2105. *
  2106. * @param {element} 拖動的元素
  2107. * @param {element} 桌面所有的元素
  2108. * @param {array} 拖動元素的位置
  2109. ----------[0] 上 top
  2110. ----------[1] 左 left
  2111. * @return {object} 命名空間
  2112. */
  2113. U.MD.D.isOverlap = function(el, childs, postionarray) {
  2114. //循環所有的圖標
  2115. for (var i = 0; i < childs.length; i++) {
  2116. //判斷有沒有和該圖標誒子重疊的元素
  2117. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  2118. return childs[i]; //如果有返回
  2119. }
  2120. }
  2121. }
  2122. //#endregion
  2123. //#endregion
  2124. //#region 桌面應用
  2125. /**
  2126. * 打開應用
  2127. *
  2128. * @param {string} 類型
  2129. -----------------Disk 網盤系統
  2130. -----------------PDisk 學習系統網盤
  2131. -----------------Poto 圖片
  2132. -----------------Video 視頻
  2133. -----------------Music 音樂
  2134. -----------------Word word
  2135. -----------------Excel excel
  2136. -----------------Txt 記事本
  2137. -----------------PB 學習系統
  2138. -----------------Blog 朋友圈系統
  2139. -----------------FTP ftp系統
  2140. -----------------Group 好友群
  2141. -----------------SY 首頁系統
  2142. -----------------Set 個人設置
  2143. -----------------XSet 系統設置
  2144. -----------------App 我們所有的app
  2145. -----------------BC c.1473.cn 平臺
  2146. -----------------CWeb d.1473.cn 變成平臺
  2147. -----------------其他的外聯系統 我們統一用iframe打開
  2148. * @param {array} 類型
  2149. 如果第一個參數為"disk",則第二個參數為object,裏面包含了用戶id和目錄id{userid:"",directoryid:""}
  2150. 如果第一個參數為"word"或者"excel","txt",則第二個參數為文件信息fileinfo。
  2151. 如果第一個參數為"blog"或者"PDisk"。建議刪除。
  2152. 如果第一個參數為其他,則無第二個參數
  2153. * @returns {array}
  2154. */
  2155. window.addEventListener('message', function(e) { // 監聽 message 事件
  2156. // alert(e.data.type);
  2157. if (e.data.screenType && e.data.screenType == "2") { //課程管理傳入
  2158. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  2159. //3是展示全部階段 2學生 1老師 4專家
  2160. } else if (e.data.screenType && e.data.screenType == "2s") { //課程管理傳入
  2161. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  2162. //3是展示全部階段 2學生 1老師 4專家
  2163. } else if (e.data.screenType && e.data.screenType == "2studio") { //課程管理傳入
  2164. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  2165. //3是展示全部階段 2學生 1老師 4專家
  2166. } else if (e.data.screenType && e.data.screenType == "3") { //課程管理傳入
  2167. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  2168. } else if (e.data.screenType && e.data.screenType == "3NT") { //課程管理傳入
  2169. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  2170. } else if (e.data.screenType && e.data.screenType == "3s") { //課程管理傳入
  2171. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  2172. } else if (e.data.screenType && e.data.screenType == "3studio") { //課程管理傳入
  2173. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  2174. } else if (e.data.screenType && e.data.screenType == "3s2") { //課程管理傳入
  2175. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  2176. } else if (e.data.screenType && e.data.screenType == "2gm") { //課程管理傳入
  2177. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  2178. //3是展示全部階段 2學生 1老師 4專家
  2179. } else if (e.data.screenType && e.data.screenType == "3gm") { //課程管理傳入
  2180. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  2181. } else if (e.data.close && e.data.close == "1") { //更新用戶信息
  2182. U.MD.D.I.selectUser();
  2183. } else if (e.data.allScreen && e.data.allScreen == "1") {
  2184. var _formel = document.getElementById("study");
  2185. U.UF.F.windowZooming(_formel);
  2186. } else if (e.data.allScreen && e.data.allScreen == "2") {
  2187. var _formel = document.getElementById("studyDetail");
  2188. U.UF.F.windowZooming(_formel);
  2189. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  2190. var _formel = document.getElementById("studyDetail");
  2191. U.UF.F.windowZooming(_formel);
  2192. } else if (e.data.allScreen && e.data.allScreen == "3") {
  2193. var _formel = document.getElementById("studentStudy");
  2194. U.UF.F.windowZooming(_formel);
  2195. } else if (e.data.allScreen && e.data.allScreen == "6") {
  2196. // var _formel = document.getElementById("study");
  2197. //如果最大化了,那麼就把他縮小
  2198. // if (_formel.ismaximize) {
  2199. // return;
  2200. // }
  2201. // U.UF.F.windowZooming(_formel);
  2202. // U.UF.F.topWindow(_formel);
  2203. } else if (e.data.allScreen && e.data.allScreen == "4") {
  2204. // var _formel = document.getElementById("studyDetail");
  2205. //如果最大化了,那麼就把他縮小
  2206. // if (_formel.ismaximize) {
  2207. // return;
  2208. // }
  2209. // U.UF.F.windowZooming(_formel);
  2210. // U.UF.F.topWindow(_formel);
  2211. } else if (e.data.allScreen && e.data.allScreen == "5") {
  2212. // var _formel = document.getElementById("studentStudy");
  2213. // if (_formel.ismaximize) {
  2214. // return;
  2215. // }
  2216. // U.UF.F.windowZooming(_formel);
  2217. // U.UF.F.topWindow(_formel);
  2218. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  2219. var _formel = document.getElementById("study");
  2220. // if (_formel.ismaximize) {
  2221. // return;
  2222. // }
  2223. // U.UF.F.windowZooming(_formel);
  2224. U.UF.F.topWindow(_formel);
  2225. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  2226. var _formel = document.getElementById("studentIndex");
  2227. U.UF.F.windowZooming(_formel);
  2228. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  2229. var _formel = document.getElementById("studyDetailS");
  2230. U.UF.F.windowZooming(_formel);
  2231. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  2232. var _formel = document.getElementById("studioIndex");
  2233. U.UF.F.windowZooming(_formel);
  2234. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  2235. var _formel = document.getElementById("studyDetailStudio");
  2236. U.UF.F.windowZooming(_formel);
  2237. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  2238. var _formel = document.getElementById("studyDetailStudio");
  2239. U.UF.F.windowZooming(_formel);
  2240. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  2241. var _formel = document.getElementById("studyDetailNT");
  2242. U.UF.F.windowZooming(_formel);
  2243. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  2244. var _formel = document.getElementById("studyDetailS");
  2245. U.UF.F.windowZooming(_formel);
  2246. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  2247. var _formel = document.getElementById("studyDetailS");
  2248. U.UF.F.topWindow(_formel);
  2249. } else if (e.data.tools && e.data.tools == "1") {
  2250. // U.MD.D.I.openApplication("whiteboard")
  2251. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2252. } else if (e.data.tools && e.data.tools == "2") {
  2253. U.MD.D.I.openApplication("note")
  2254. } else if (e.data.tools && e.data.tools == "3") {
  2255. // U.MD.D.I.openApplication("mind")
  2256. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2257. } else if (e.data.tools && e.data.tools == "4") {
  2258. U.MD.D.I.openApplication("investigation")
  2259. } else if (e.data.tools && e.data.tools == "6") {
  2260. // U.MD.D.I.openApplication("doc")
  2261. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2262. } else if (e.data.tools && e.data.tools == "7") {
  2263. // U.MD.D.I.openApplication("mindNetwork")
  2264. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2265. } else if (e.data.tools && e.data.tools == "8") {
  2266. U.MD.D.I.openApplication("library")
  2267. } else if (e.data.tools && e.data.tools == "17") {
  2268. U.MD.D.I.openApplication("stuLibrary")
  2269. } else if (e.data.tools && e.data.tools == "18") {
  2270. U.MD.D.I.openApplication("train")
  2271. } else if (e.data.tools && e.data.tools == "21") {
  2272. U.MD.D.I.openApplication("program")
  2273. } else if (e.data.tools && e.data.tools == "22") {
  2274. U.MD.D.I.openApplication("AIprogram2")
  2275. } else if (e.data.tools && e.data.tools == "23") {
  2276. U.MD.D.I.openApplication("Pythonprogram")
  2277. } else if (e.data.tools && e.data.tools == "24") {
  2278. U.MD.D.I.openApplication("AIprogram")
  2279. } else if (e.data.tools && e.data.tools == "25") {
  2280. U.MD.D.I.openApplication("sys")
  2281. } else if (e.data.tools && e.data.tools == "26") {
  2282. // U.MD.D.I.openApplication("courseDesign")
  2283. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2284. } else if (e.data.tools && e.data.tools == "31") {
  2285. U.MD.D.I.openApplication("netWorkPanel")
  2286. } else if (e.data.tools && e.data.tools == "32") {
  2287. U.MD.D.I.openApplication("codeEdit")
  2288. } else if (e.data.tools && e.data.tools == "57") {
  2289. U.MD.D.I.openApplication("CocoPi")
  2290. } else if (e.data.tools && e.data.tools == "63") {
  2291. U.MD.D.I.openApplication("Wood")
  2292. } else if (e.data.tools && e.data.tools == "58") {
  2293. U.MD.D.I.openApplication("car")
  2294. } else if (e.data.tools && e.data.tools == "59") {
  2295. U.MD.D.I.openApplication("lineSearch")
  2296. } else if (e.data.tools && e.data.tools == "60") {
  2297. U.MD.D.I.openApplication("deepLearning")
  2298. } else if (e.data.tools && e.data.tools == "61") {
  2299. U.MD.D.I.openApplication("allHistory")
  2300. } else if (e.data.tools && e.data.tools == "28") {
  2301. U.MD.D.I.openApplication("translation")
  2302. } else if (e.data.tools && e.data.tools == "37") {
  2303. U.MD.D.I.openApplication("mohe")
  2304. } else if (e.data.tools && e.data.tools == "38") {
  2305. U.MD.D.I.openApplication("24game")
  2306. } else if (e.data.tools && e.data.tools == "39") {
  2307. U.MD.D.I.openApplication("GeoGebra")
  2308. } else if (e.data.tools && e.data.tools == "43") {
  2309. U.MD.D.I.openApplication("studentEvaluate")
  2310. } else if (e.data.tools && e.data.tools == "44") {
  2311. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  2312. } else if (e.data.tools && e.data.tools == "46") {
  2313. U.MD.D.I.openApplication("project")
  2314. } else if (e.data.tools && e.data.tools == "1s") {
  2315. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2316. } else if (e.data.tools && e.data.tools == "3s") {
  2317. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2318. } else if (e.data.tools && e.data.tools == "6s") {
  2319. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2320. } else if (e.data.tools && e.data.tools == "1studio") {
  2321. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2322. } else if (e.data.tools && e.data.tools == "3studio") {
  2323. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2324. } else if (e.data.tools && e.data.tools == "6studio") {
  2325. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2326. } else if (e.data.tools && e.data.tools == "3y") {
  2327. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2328. } else if (e.data.tools && e.data.tools == "1y") {
  2329. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2330. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  2331. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  2332. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  2333. U.MD.D.I.openApplication("AIAnalyse")
  2334. } else if (e.data.tools && e.data.tools == "1teacher") {
  2335. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2336. } else if (e.data.tools && e.data.tools == "3teacher") {
  2337. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2338. } else if (e.data.tools && e.data.tools == "7teacher") {
  2339. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2340. } else if (e.data.tools && e.data.tools == "1teacherE") {
  2341. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2342. } else if (e.data.tools && e.data.tools == "3teacherE") {
  2343. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2344. } else if (e.data.tools && e.data.tools == "1E") {
  2345. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2346. } else if (e.data.tools && e.data.tools == "3E") {
  2347. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2348. } else if (e.data.tools && e.data.tools == "57y") {
  2349. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2350. } else if (e.data.tools && e.data.tools == "57u") {
  2351. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2352. } else if (e.data.tools && e.data.tools == "57teacher") {
  2353. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2354. } else if (e.data.tools && e.data.tools == "64") {
  2355. U.MD.D.I.openApplication("AIChat")
  2356. } else if (e.data.tools && e.data.tools == "66") {
  2357. U.MD.D.I.openApplication("formulaEdi")
  2358. } else if (e.data.tools && e.data.tools == "67") {
  2359. U.MD.D.I.openApplication("molStr")
  2360. } else if (e.data.tools && e.data.tools == "68") {
  2361. U.MD.D.I.openApplication("timeAxis")
  2362. } else if (e.data.tools && e.data.tools == "openCourse") {
  2363. let _data = {
  2364. typea:e.data.typea || '',
  2365. typeb:e.data.typeb || '',
  2366. typed:e.data.typed || '',
  2367. }
  2368. U.MD.D.I.openInApplication("index", _data)
  2369. }
  2370. });
  2371. U.MD.D.I.selectUser = function() {
  2372. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function(res) { //US.userInfo.userid
  2373. if (res.value[0].length > 0) {
  2374. US.userInfo = res.value[0][0];
  2375. $(".userName")[0].innerHTML = US.userInfo.username;
  2376. }
  2377. }, [], { "type": "GET", "withCredentials": true });
  2378. }
  2379. U.MD.D.I.openInApplication = function(str, data, screenType, tType) {
  2380. var _userinfo = US.userInfo, //登錄用戶信息
  2381. _userid = US.userInfo.userid, //登錄用戶id
  2382. _oid = _userinfo.organizeid,
  2383. _type = US.userInfo.type,
  2384. _org = US.userInfo.org,
  2385. _role = US.userInfo.role,
  2386. _classId = US.userInfo.classid;
  2387. if (_type == 4) {
  2388. tType = 4
  2389. }
  2390. switch (str) {
  2391. case "studyDetailNT": //無終端模式
  2392. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2393. setTimeout(() => {
  2394. U.MD.U.L.login();
  2395. }, 2000);
  2396. } else {
  2397. _formdiv = new U.UF.UI.form(
  2398. "課程詳情",
  2399. $$("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 }), {
  2400. "id": "studyDetailNT",
  2401. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2402. "onresize": function() {}
  2403. }, {
  2404. closecallback: function() {}
  2405. }, { "style": { "height": "36px" } }).form; //創建窗體
  2406. _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); } }
  2407. break;
  2408. }
  2409. case "studyDetail":
  2410. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2411. setTimeout(() => {
  2412. U.MD.U.L.login();
  2413. }, 2000);
  2414. } else {
  2415. _formdiv = new U.UF.UI.form(
  2416. "課程詳情",
  2417. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2418. "id": "studyDetail",
  2419. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2420. "onresize": function() {}
  2421. }, {
  2422. closecallback: function() {}
  2423. }, { "style": { "height": "36px" } }).form; //創建窗體
  2424. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "課程中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2425. break;
  2426. }
  2427. case "studyDetailS":
  2428. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2429. setTimeout(() => {
  2430. U.MD.U.L.login();
  2431. }, 2000);
  2432. } else {
  2433. _formdiv = new U.UF.UI.form(
  2434. "項目詳情",
  2435. $$("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 }), {
  2436. "id": "studyDetailS",
  2437. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2438. "onresize": function() {}
  2439. }, {
  2440. closecallback: function() {}
  2441. }, { "style": { "height": "36px" } }).form; //創建窗體
  2442. _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); } }
  2443. break;
  2444. }
  2445. case "studyDetailStudio":
  2446. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2447. setTimeout(() => {
  2448. U.MD.U.L.login();
  2449. }, 2000);
  2450. } else {
  2451. _formdiv = new U.UF.UI.form(
  2452. "工作詳情",
  2453. $$("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 }), {
  2454. "id": "studyDetailStudio",
  2455. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2456. "onresize": function() {}
  2457. }, {
  2458. closecallback: function() {}
  2459. }, { "style": { "height": "36px" } }).form; //創建窗體
  2460. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioCourse.png)" }, "name": "工作詳情", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2461. break;
  2462. }
  2463. case "studyDetailS5":
  2464. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2465. setTimeout(() => {
  2466. U.MD.U.L.login();
  2467. }, 2000);
  2468. } else {
  2469. _formdiv = new U.UF.UI.form(
  2470. "項目詳情",
  2471. $$("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 }), {
  2472. "id": "studyDetailS",
  2473. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2474. "onresize": function() {}
  2475. }, {
  2476. closecallback: function() {}
  2477. }, { "style": { "height": "36px" } }).form; //創建窗體
  2478. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "課程中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2479. break;
  2480. }
  2481. case "studyDetailGM":
  2482. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2483. setTimeout(() => {
  2484. U.MD.U.L.login();
  2485. }, 2000);
  2486. } else {
  2487. _formdiv = new U.UF.UI.form(
  2488. "課程詳情",
  2489. $$("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 }), {
  2490. "id": "studyDetail",
  2491. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2492. "onresize": function() {}
  2493. }, {
  2494. closecallback: function() {}
  2495. }, { "style": { "height": "36px" } }).form; //創建窗體
  2496. _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); } }
  2497. break;
  2498. }
  2499. case "hanUrl":
  2500. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2501. setTimeout(() => {
  2502. U.MD.U.L.login();
  2503. }, 2000);
  2504. } else {
  2505. _formdiv = new U.UF.UI.form(
  2506. "漢字宮",
  2507. $$("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" }), {
  2508. "id": "hanUrl",
  2509. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2510. "onresize": function() {}
  2511. }, {
  2512. closecallback: function() {}
  2513. }, { "style": { "height": "36px" } }).form; //創建窗體
  2514. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "漢字宮", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2515. break;
  2516. }
  2517. case "index":
  2518. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2519. setTimeout(() => {
  2520. U.MD.U.L.login();
  2521. }, 2000);
  2522. } else {
  2523. _formdiv = new U.UF.UI.form(
  2524. "課程中心",
  2525. $$("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 }), {
  2526. "id": "study",
  2527. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2528. "onresize": function() {}
  2529. }, {
  2530. closecallback: function() {}
  2531. }, { "style": { "height": "36px" } }).form; //創建窗體
  2532. _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); } }
  2533. break;
  2534. }
  2535. }
  2536. }
  2537. U.MD.D.I.openApplication = function(str, obj, info) {
  2538. obj = obj || {};
  2539. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  2540. _formdiv, //創建任務欄時同時彈出的窗體元素。
  2541. _userinfo = US.userInfo, //登錄用戶信息
  2542. _userid = obj.userid || US.userInfo.userid, //登錄用戶id
  2543. _oid = obj.organizeid || _userinfo.organizeid,
  2544. _type = US.userInfo.type,
  2545. _org = US.userInfo.org,
  2546. _role = US.userInfo.role,
  2547. _classId = US.userInfo.classid,
  2548. _TscreenType = 1
  2549. _screenType = 2,
  2550. _SscreenType = 3;
  2551. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2552. return;
  2553. }
  2554. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2555. switch (str) {
  2556. case "studnetProject": //好友打開
  2557. _formdiv = new U.UF.UI.form(
  2558. "我的項目",
  2559. $$("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 }), {
  2560. "id": "studnetProject",
  2561. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2562. "onresize": function() {}
  2563. }, {
  2564. closecallback: function() {}
  2565. }, { "style": { "height": "36px" } }).form; //創建窗體
  2566. _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); } }
  2567. break;
  2568. case "studentEvaluate": //好友打開
  2569. _formdiv = new U.UF.UI.form(
  2570. "我的評價",
  2571. $$("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 }), {
  2572. "id": "studentEvaluate",
  2573. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2574. "onresize": function() {}
  2575. }, {
  2576. closecallback: function() {}
  2577. }, { "style": { "height": "36px" } }).form; //創建窗體
  2578. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的評價", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2579. break;
  2580. case "my":
  2581. _formdiv = new U.UF.UI.form(
  2582. "我的資料",
  2583. $$("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 }), {
  2584. "id": "my",
  2585. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2586. "onresize": function() {}
  2587. }, {
  2588. closecallback: function() {}
  2589. }, { "style": { "height": "36px" } }).form; //創建窗體
  2590. _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); } }
  2591. break;
  2592. case "program":
  2593. _formdiv = new U.UF.UI.form(
  2594. "編程平臺",
  2595. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2596. "id": "program",
  2597. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2598. "onresize": function() {}
  2599. }, {
  2600. closecallback: function() {}
  2601. }, { "style": { "height": "36px" } }).form; //創建窗體
  2602. _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); } }
  2603. break;
  2604. case "library":
  2605. _formdiv = new U.UF.UI.form(
  2606. "素材庫",
  2607. $$("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 }), {
  2608. "id": "library",
  2609. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2610. "onresize": function() {}
  2611. }, {
  2612. closecallback: function() {}
  2613. }, { "style": { "height": "36px" } }).form; //創建窗體
  2614. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材庫", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2615. break;
  2616. case "whiteboard":
  2617. _formdiv = new U.UF.UI.form(
  2618. "電子白板",
  2619. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2620. "id": "whiteboard",
  2621. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2622. "onresize": function() {}
  2623. }, {
  2624. closecallback: function() {}
  2625. }, { "style": { "height": "36px" } }).form; //創建窗體
  2626. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "電子白板", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2627. break;
  2628. case "investigation":
  2629. _formdiv = new U.UF.UI.form(
  2630. "問卷調查",
  2631. $$("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 }), {
  2632. "id": "investigation",
  2633. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2634. "onresize": function() {}
  2635. }, {
  2636. closecallback: function() {}
  2637. }, { "style": { "height": "36px" } }).form; //創建窗體
  2638. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "問卷調查", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2639. break;
  2640. case "note":
  2641. _formdiv = new U.UF.UI.form(
  2642. "便簽分類",
  2643. $$("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 }), {
  2644. "id": "note",
  2645. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2646. "onresize": function() {}
  2647. }, {
  2648. closecallback: function() {}
  2649. }, { "style": { "height": "36px" } }).form; //創建窗體
  2650. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便簽分類", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2651. break;
  2652. // case "score":
  2653. // _formdiv = new U.UF.UI.form(
  2654. // "量規評分",
  2655. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2656. // "id": "score",
  2657. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2658. // "onresize": function() {}
  2659. // }, {
  2660. // closecallback: function() {}
  2661. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2662. // _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); } }
  2663. // break;
  2664. case "mind":
  2665. _formdiv = new U.UF.UI.form(
  2666. "思維導圖",
  2667. $$("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"
  2668. "id": "mind",
  2669. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2670. "onresize": function() {}
  2671. }, {
  2672. closecallback: function() {}
  2673. }, { "style": { "height": "36px" } }).form; //創建窗體
  2674. _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); } }
  2675. break;
  2676. case "doc":
  2677. // U.MD.D.I.isRoom();
  2678. _formdiv = new U.UF.UI.form(
  2679. "協同文檔",
  2680. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2681. "id": "doc",
  2682. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2683. "onresize": function() {}
  2684. }, {
  2685. closecallback: function() {}
  2686. }, { "style": { "height": "36px" } }).form; //創建窗體
  2687. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2688. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2689. // })
  2690. _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); } }
  2691. break;
  2692. case "studentStudy":
  2693. _formdiv = new U.UF.UI.form(
  2694. "課程中心",
  2695. $$("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
  2696. "id": "studentStudy",
  2697. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2698. "onresize": function() {}
  2699. }, {
  2700. closecallback: function() {}
  2701. }, { "style": { "height": "36px" } }).form; //創建窗體
  2702. _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); } }
  2703. break;
  2704. case "train": //好友打開
  2705. _formdiv = new U.UF.UI.form(
  2706. "訓練平臺",
  2707. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2708. "id": "train",
  2709. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2710. "onresize": function() {}
  2711. }, {
  2712. closecallback: function() {}
  2713. }, { "style": { "height": "36px" } }).form; //創建窗體
  2714. _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); } }
  2715. break;
  2716. case "mindNetwork": //好友打開
  2717. _formdiv = new U.UF.UI.form(
  2718. "思維網格",
  2719. $$("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 }), {
  2720. "id": "mindNetwork",
  2721. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2722. "onresize": function() {}
  2723. }, {
  2724. closecallback: function() {}
  2725. }, { "style": { "height": "36px" } }).form; //創建窗體
  2726. _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); } }
  2727. break;
  2728. case "studentClassRoom": //好友打開
  2729. _formdiv = new U.UF.UI.form(
  2730. "實時課堂",
  2731. $$("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 }), {
  2732. "id": "studentClassRoom",
  2733. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2734. "onresize": function() {}
  2735. }, {
  2736. closecallback: function() {}
  2737. }, { "style": { "height": "36px" } }).form; //創建窗體
  2738. _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); } }
  2739. setTimeout(() => {
  2740. U.UF.F.windowZooming(_formdiv)
  2741. }, 0);
  2742. break;
  2743. }
  2744. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2745. switch (str) {
  2746. case "studnetProject": //好友打開
  2747. _formdiv = new U.UF.UI.form(
  2748. "我的項目",
  2749. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  2750. "id": "studnetProject",
  2751. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2752. "onresize": function() {}
  2753. }, {
  2754. closecallback: function() {}
  2755. }, { "style": { "height": "36px" } }).form; //創建窗體
  2756. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的項目", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2757. break;
  2758. case "studentEvaluate": //好友打開
  2759. _formdiv = new U.UF.UI.form(
  2760. "我的評價",
  2761. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2762. "id": "studentEvaluate",
  2763. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2764. "onresize": function() {}
  2765. }, {
  2766. closecallback: function() {}
  2767. }, { "style": { "height": "36px" } }).form; //創建窗體
  2768. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的評價", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2769. break;
  2770. case "my":
  2771. _formdiv = new U.UF.UI.form(
  2772. "我的資料",
  2773. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  2774. "id": "my",
  2775. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2776. "onresize": function() {}
  2777. }, {
  2778. closecallback: function() {}
  2779. }, { "style": { "height": "36px" } }).form; //創建窗體
  2780. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的資料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2781. break;
  2782. case "program":
  2783. _formdiv = new U.UF.UI.form(
  2784. "編程平臺",
  2785. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2786. "id": "program",
  2787. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2788. "onresize": function() {}
  2789. }, {
  2790. closecallback: function() {}
  2791. }, { "style": { "height": "36px" } }).form; //創建窗體
  2792. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "編程平臺", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2793. break;
  2794. case "library":
  2795. _formdiv = new U.UF.UI.form(
  2796. "素材庫",
  2797. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  2798. "id": "library",
  2799. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2800. "onresize": function() {}
  2801. }, {
  2802. closecallback: function() {}
  2803. }, { "style": { "height": "36px" } }).form; //創建窗體
  2804. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材庫", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2805. break;
  2806. case "whiteboard":
  2807. _formdiv = new U.UF.UI.form(
  2808. "電子白板",
  2809. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2810. "id": "whiteboard",
  2811. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2812. "onresize": function() {}
  2813. }, {
  2814. closecallback: function() {}
  2815. }, { "style": { "height": "36px" } }).form; //創建窗體
  2816. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "電子白板", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2817. break;
  2818. case "investigation":
  2819. _formdiv = new U.UF.UI.form(
  2820. "問卷調查",
  2821. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  2822. "id": "investigation",
  2823. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2824. "onresize": function() {}
  2825. }, {
  2826. closecallback: function() {}
  2827. }, { "style": { "height": "36px" } }).form; //創建窗體
  2828. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "問卷調查", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2829. break;
  2830. case "note":
  2831. _formdiv = new U.UF.UI.form(
  2832. "便簽分類",
  2833. $$("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 }), {
  2834. "id": "note",
  2835. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2836. "onresize": function() {}
  2837. }, {
  2838. closecallback: function() {}
  2839. }, { "style": { "height": "36px" } }).form; //創建窗體
  2840. _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); } }
  2841. break;
  2842. // case "score":
  2843. // _formdiv = new U.UF.UI.form(
  2844. // "量規評分",
  2845. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2846. // "id": "score",
  2847. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2848. // "onresize": function() {}
  2849. // }, {
  2850. // closecallback: function() {}
  2851. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2852. // _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); } }
  2853. // break;
  2854. case "mind":
  2855. _formdiv = new U.UF.UI.form(
  2856. "思維導圖",
  2857. $$("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"
  2858. "id": "mind",
  2859. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2860. "onresize": function() {}
  2861. }, {
  2862. closecallback: function() {}
  2863. }, { "style": { "height": "36px" } }).form; //創建窗體
  2864. _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); } }
  2865. break;
  2866. case "doc":
  2867. // U.MD.D.I.isRoom();
  2868. _formdiv = new U.UF.UI.form(
  2869. "協同文檔",
  2870. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2871. "id": "doc",
  2872. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2873. "onresize": function() {}
  2874. }, {
  2875. closecallback: function() {}
  2876. }, { "style": { "height": "36px" } }).form; //創建窗體
  2877. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  2878. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2879. })
  2880. _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); } }
  2881. break;
  2882. case "train": //好友打開
  2883. _formdiv = new U.UF.UI.form(
  2884. "訓練平臺",
  2885. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2886. "id": "train",
  2887. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2888. "onresize": function() {}
  2889. }, {
  2890. closecallback: function() {}
  2891. }, { "style": { "height": "36px" } }).form; //創建窗體
  2892. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "訓練平臺", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2893. break;
  2894. case "studentStudy":
  2895. _formdiv = new U.UF.UI.form(
  2896. "課程中心",
  2897. $$("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
  2898. "id": "studentStudy",
  2899. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2900. "onresize": function() {}
  2901. }, {
  2902. closecallback: function() {}
  2903. }, { "style": { "height": "36px" } }).form; //創建窗體
  2904. _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); } }
  2905. break;
  2906. case "mindNetwork": //好友打開
  2907. _formdiv = new U.UF.UI.form(
  2908. "思維網格",
  2909. $$("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 }), {
  2910. "id": "mindNetwork",
  2911. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2912. "onresize": function() {}
  2913. }, {
  2914. closecallback: function() {}
  2915. }, { "style": { "height": "36px" } }).form; //創建窗體
  2916. _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); } }
  2917. break;
  2918. case "studentClassRoom": //好友打開
  2919. _formdiv = new U.UF.UI.form(
  2920. "實時課堂",
  2921. $$("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 }), {
  2922. "id": "studentClassRoom",
  2923. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2924. "onresize": function() {}
  2925. }, {
  2926. closecallback: function() {}
  2927. }, { "style": { "height": "36px" } }).form; //創建窗體
  2928. _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); } }
  2929. setTimeout(() => {
  2930. U.UF.F.windowZooming(_formdiv)
  2931. }, 0);
  2932. break;
  2933. }
  2934. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2935. //選擇應用處理
  2936. switch (str) {
  2937. case "project": //好友打開
  2938. _formdiv = new U.UF.UI.form(
  2939. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目' : "課程管理",
  2940. $$("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 }), {
  2941. "id": "project",
  2942. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2943. "onresize": function() {}
  2944. }, {
  2945. closecallback: function() {}
  2946. }, { "style": { "height": "36px" } }).form; //創建窗體
  2947. _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); } }
  2948. break;
  2949. case "student":
  2950. _formdiv = new U.UF.UI.form(
  2951. "學生管理",
  2952. $$("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 }), {
  2953. "id": "student",
  2954. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2955. "onresize": function() {}
  2956. }, {
  2957. closecallback: function() {}
  2958. }, { "style": { "height": "36px" } }).form; //創建窗體
  2959. _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); } }
  2960. break;
  2961. case "evaluate":
  2962. _formdiv = new U.UF.UI.form(
  2963. "學生評價",
  2964. $$("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 }), {
  2965. "id": "evaluate",
  2966. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2967. "onresize": function() {}
  2968. }, {
  2969. closecallback: function() {}
  2970. }, { "style": { "height": "36px" } }).form; //創建窗體
  2971. _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); } }
  2972. break;
  2973. case "sys":
  2974. _formdiv = new U.UF.UI.form(
  2975. "目標管理",
  2976. $$("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 }), {
  2977. "id": "sys",
  2978. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2979. "onresize": function() {}
  2980. }, {
  2981. closecallback: function() {}
  2982. }, { "style": { "height": "36px" } }).form; //創建窗體
  2983. _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); } }
  2984. break;
  2985. case "courseDesign":
  2986. _formdiv = new U.UF.UI.form(
  2987. "項目設計",
  2988. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2989. "id": "courseDesign",
  2990. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2991. "onresize": function() {}
  2992. }, {
  2993. closecallback: function() {}
  2994. }, { "style": { "height": "36px" } }).form; //創建窗體
  2995. _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); } }
  2996. break;
  2997. case "program":
  2998. _formdiv = new U.UF.UI.form(
  2999. "編程平臺",
  3000. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3001. "id": "program",
  3002. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3003. "onresize": function() {}
  3004. }, {
  3005. closecallback: function() {}
  3006. }, { "style": { "height": "36px" } }).form; //創建窗體
  3007. _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); } }
  3008. break;
  3009. case "class":
  3010. _formdiv = new U.UF.UI.form(
  3011. "班級管理",
  3012. $$("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 }), {
  3013. "id": "class",
  3014. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3015. "onresize": function() {}
  3016. }, {
  3017. closecallback: function() {}
  3018. }, { "style": { "height": "36px" } }).form; //創建窗體
  3019. _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); } }
  3020. break;
  3021. case "Grade":
  3022. _formdiv = new U.UF.UI.form(
  3023. "年級管理",
  3024. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/grade?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3025. "id": "Grade",
  3026. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3027. "onresize": function() {}
  3028. }, {
  3029. closecallback: function() {}
  3030. }, { "style": { "height": "36px" } }).form; //創建窗體
  3031. _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); } }
  3032. break;
  3033. case "teacherOffice":
  3034. _formdiv = new U.UF.UI.form(
  3035. "教研室",
  3036. $$("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 }), {
  3037. "id": "teacherOffice",
  3038. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3039. "onresize": function() {}
  3040. }, {
  3041. closecallback: function() {}
  3042. }, { "style": { "height": "36px" } }).form; //創建窗體
  3043. _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); } }
  3044. break;
  3045. case "my":
  3046. _formdiv = new U.UF.UI.form(
  3047. "我的資料",
  3048. $$("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 }), {
  3049. "id": "my",
  3050. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3051. "onresize": function() {}
  3052. }, {
  3053. closecallback: function() {}
  3054. }, { "style": { "height": "36px" } }).form; //創建窗體
  3055. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的資料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3056. break;
  3057. case "notice":
  3058. _formdiv = new U.UF.UI.form(
  3059. "通知公告",
  3060. $$("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 }), {
  3061. "id": "notice",
  3062. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3063. "onresize": function() {}
  3064. }, {
  3065. closecallback: function() {}
  3066. }, { "style": { "height": "36px" } }).form; //創建窗體
  3067. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3068. break;
  3069. case "library":
  3070. _formdiv = new U.UF.UI.form(
  3071. "素材庫",
  3072. $$("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 }), {
  3073. "id": "library",
  3074. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3075. "onresize": function() {}
  3076. }, {
  3077. closecallback: function() {}
  3078. }, { "style": { "height": "36px" } }).form; //創建窗體
  3079. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材庫", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3080. break;
  3081. case "whiteboard":
  3082. _formdiv = new U.UF.UI.form(
  3083. "電子白板",
  3084. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3085. "id": "whiteboard",
  3086. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3087. "onresize": function() {}
  3088. }, {
  3089. closecallback: function() {}
  3090. }, { "style": { "height": "36px" } }).form; //創建窗體
  3091. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "電子白板", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3092. break;
  3093. case "investigation":
  3094. _formdiv = new U.UF.UI.form(
  3095. "問卷調查",
  3096. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  3097. "id": "investigation",
  3098. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3099. "onresize": function() {}
  3100. }, {
  3101. closecallback: function() {}
  3102. }, { "style": { "height": "36px" } }).form; //創建窗體
  3103. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "問卷調查", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3104. break;
  3105. case "note":
  3106. _formdiv = new U.UF.UI.form(
  3107. "便簽分類",
  3108. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  3109. "id": "note",
  3110. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  3111. "onresize": function() {}
  3112. }, {
  3113. closecallback: function() {}
  3114. }, { "style": { "height": "36px" } }).form; //創建窗體
  3115. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便簽分類", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3116. break;
  3117. // case "score":
  3118. // _formdiv = new U.UF.UI.form(
  3119. // "量規評分",
  3120. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  3121. // "id": "score",
  3122. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3123. // "onresize": function() {}
  3124. // }, {
  3125. // closecallback: function() {}
  3126. // }, { "style": { "height": "36px" } }).form; //創建窗體
  3127. // _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); } }
  3128. // break;
  3129. case "mind":
  3130. _formdiv = new U.UF.UI.form(
  3131. "思維導圖",
  3132. $$("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"
  3133. "id": "mind",
  3134. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3135. "onresize": function() {}
  3136. }, {
  3137. closecallback: function() {}
  3138. }, { "style": { "height": "36px" } }).form; //創建窗體
  3139. _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); } }
  3140. break;
  3141. case "doc":
  3142. // U.MD.D.I.isRoom();
  3143. _formdiv = new U.UF.UI.form(
  3144. "協同文檔",
  3145. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3146. "id": "doc",
  3147. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3148. "onresize": function() {}
  3149. }, {
  3150. closecallback: function() {}
  3151. }, { "style": { "height": "36px" } }).form; //創建窗體
  3152. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  3153. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3154. })
  3155. _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); } }
  3156. break;
  3157. case "study":
  3158. _formdiv = new U.UF.UI.form(
  3159. "課程中心",
  3160. $$("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
  3161. "id": "study",
  3162. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3163. "onresize": function() {}
  3164. }, {
  3165. closecallback: function() {}
  3166. }, { "style": { "height": "36px" } }).form; //創建窗體
  3167. _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); } }
  3168. break;
  3169. case "mindNetwork": //好友打開
  3170. _formdiv = new U.UF.UI.form(
  3171. "思維網格",
  3172. $$("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 }), {
  3173. "id": "mindNetwork",
  3174. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3175. "onresize": function() {}
  3176. }, {
  3177. closecallback: function() {}
  3178. }, { "style": { "height": "36px" } }).form; //創建窗體
  3179. _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); } }
  3180. break;
  3181. case "train": //好友打開
  3182. _formdiv = new U.UF.UI.form(
  3183. "訓練平臺",
  3184. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3185. "id": "mindNetwork",
  3186. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3187. "onresize": function() {}
  3188. }, {
  3189. closecallback: function() {}
  3190. }, { "style": { "height": "36px" } }).form; //創建窗體
  3191. _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); } }
  3192. break;
  3193. case "teacherClassRoom": //好友打開
  3194. _formdiv = new U.UF.UI.form(
  3195. "實時課堂",
  3196. $$("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 }), {
  3197. "id": "teacherClassRoom",
  3198. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3199. "onresize": function() {}
  3200. }, {
  3201. closecallback: function() {}
  3202. }, { "style": { "height": "36px" } }).form; //創建窗體
  3203. _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); } }
  3204. setTimeout(() => {
  3205. U.UF.F.windowZooming(_formdiv)
  3206. }, 0);
  3207. break;
  3208. }
  3209. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  3210. switch (str) {
  3211. case "project": //好友打開
  3212. _formdiv = new U.UF.UI.form(
  3213. "課程管理",
  3214. $$("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 }), {
  3215. "id": "project",
  3216. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3217. "onresize": function() {}
  3218. }, {
  3219. closecallback: function() {}
  3220. }, { "style": { "height": "36px" } }).form; //創建窗體
  3221. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "課程管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3222. break;
  3223. case "evaluate":
  3224. _formdiv = new U.UF.UI.form(
  3225. "學生評價",
  3226. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3227. "id": "evaluate",
  3228. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3229. "onresize": function() {}
  3230. }, {
  3231. closecallback: function() {}
  3232. }, { "style": { "height": "36px" } }).form; //創建窗體
  3233. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "學生評價", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3234. break;
  3235. case "notice":
  3236. _formdiv = new U.UF.UI.form(
  3237. "通知公告",
  3238. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  3239. "id": "notice",
  3240. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3241. "onresize": function() {}
  3242. }, {
  3243. closecallback: function() {}
  3244. }, { "style": { "height": "36px" } }).form; //創建窗體
  3245. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3246. break;
  3247. case "stuLibrary":
  3248. _formdiv = new U.UF.UI.form(
  3249. "學習資料",
  3250. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studyLibrary?userid=" + _userid + "&org=" + _org }), {
  3251. "id": "stuLibrary",
  3252. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3253. "onresize": function() {}
  3254. }, {
  3255. closecallback: function() {}
  3256. }, { "style": { "height": "36px" } }).form; //創建窗體
  3257. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/stuLibrary.png)" }, "name": "學習資料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3258. break;
  3259. case "program":
  3260. _formdiv = new U.UF.UI.form(
  3261. "編程平臺",
  3262. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3263. "id": "program",
  3264. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3265. "onresize": function() {}
  3266. }, {
  3267. closecallback: function() {}
  3268. }, { "style": { "height": "36px" } }).form; //創建窗體
  3269. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "編程平臺", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3270. break;
  3271. case "whiteboard":
  3272. _formdiv = new U.UF.UI.form(
  3273. "電子白板",
  3274. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3275. "id": "whiteboard",
  3276. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3277. "onresize": function() {}
  3278. }, {
  3279. closecallback: function() {}
  3280. }, { "style": { "height": "36px" } }).form; //創建窗體
  3281. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "電子白板", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3282. break;
  3283. case "investigation":
  3284. _formdiv = new U.UF.UI.form(
  3285. "問卷調查",
  3286. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  3287. "id": "investigation",
  3288. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3289. "onresize": function() {}
  3290. }, {
  3291. closecallback: function() {}
  3292. }, { "style": { "height": "36px" } }).form; //創建窗體
  3293. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "問卷調查", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3294. break;
  3295. case "mind":
  3296. _formdiv = new U.UF.UI.form(
  3297. "思維導圖",
  3298. $$("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"
  3299. "id": "mind",
  3300. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3301. "onresize": function() {}
  3302. }, {
  3303. closecallback: function() {}
  3304. }, { "style": { "height": "36px" } }).form; //創建窗體
  3305. _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); } }
  3306. break;
  3307. case "doc":
  3308. // U.MD.D.I.isRoom();
  3309. _formdiv = new U.UF.UI.form(
  3310. "協同文檔",
  3311. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3312. "id": "doc",
  3313. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3314. "onresize": function() {}
  3315. }, {
  3316. closecallback: function() {}
  3317. }, { "style": { "height": "36px" } }).form; //創建窗體
  3318. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  3319. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3320. })
  3321. _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); } }
  3322. break;
  3323. case "study":
  3324. _formdiv = new U.UF.UI.form(
  3325. "課程中心",
  3326. $$("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
  3327. "id": "study",
  3328. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3329. "onresize": function() {}
  3330. }, {
  3331. closecallback: function() {}
  3332. }, { "style": { "height": "36px" } }).form; //創建窗體
  3333. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "課程中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3334. break;
  3335. case "mindNetwork": //好友打開
  3336. _formdiv = new U.UF.UI.form(
  3337. "思維網格",
  3338. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid + "&org=" + _org }), {
  3339. "id": "mindNetwork",
  3340. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3341. "onresize": function() {}
  3342. }, {
  3343. closecallback: function() {}
  3344. }, { "style": { "height": "36px" } }).form; //創建窗體
  3345. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思維網格", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3346. break;
  3347. case "train": //好友打開
  3348. _formdiv = new U.UF.UI.form(
  3349. "訓練平臺",
  3350. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3351. "id": "train",
  3352. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3353. "onresize": function() {}
  3354. }, {
  3355. closecallback: function() {}
  3356. }, { "style": { "height": "36px" } }).form; //創建窗體
  3357. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "訓練平臺", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3358. break;
  3359. case "sys":
  3360. _formdiv = new U.UF.UI.form(
  3361. "目標管理",
  3362. $$("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 }), {
  3363. "id": "sys",
  3364. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3365. "onresize": function() {}
  3366. }, {
  3367. closecallback: function() {}
  3368. }, { "style": { "height": "36px" } }).form; //創建窗體
  3369. _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); } }
  3370. break;
  3371. case "courseDesign":
  3372. _formdiv = new U.UF.UI.form(
  3373. "項目設計",
  3374. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3375. "id": "courseDesign",
  3376. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3377. "onresize": function() {}
  3378. }, {
  3379. closecallback: function() {}
  3380. }, { "style": { "height": "36px" } }).form; //創建窗體
  3381. _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); } }
  3382. break;
  3383. }
  3384. } else if (!_type) {
  3385. switch (str) {
  3386. case "my":
  3387. _formdiv = new U.UF.UI.form(
  3388. "我的資料",
  3389. $$("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 }), {
  3390. "id": "my",
  3391. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3392. "onresize": function() {}
  3393. }, {
  3394. closecallback: function() {}
  3395. }, { "style": { "height": "36px" } }).form; //創建窗體
  3396. _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); } }
  3397. break;
  3398. }
  3399. }
  3400. switch (str) {
  3401. // AIprogram2 AI體驗 aihub.cocorobo.cn
  3402. // Pythonprogram Python編程 python-blockly.cocorobo.cn
  3403. // AIprogram AI編程 ai-blockly.cocorobo.cn
  3404. case "formulaEdi": //公式編輯
  3405. _formdiv = new U.UF.UI.form(
  3406. "公式編輯",
  3407. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.latexlive.com/" }), {
  3408. "id": "formulaEdi",
  3409. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3410. "onresize": function() {}
  3411. }, {
  3412. closecallback: function() {}
  3413. }, { "style": { "height": "36px" } }).form; //創建窗體
  3414. _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); } }
  3415. break;
  3416. case "molStr": //分子結構
  3417. _formdiv = new U.UF.UI.form(
  3418. "分子結構",
  3419. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://molview.org/" }), {
  3420. "id": "molStr",
  3421. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3422. "onresize": function() {}
  3423. }, {
  3424. closecallback: function() {}
  3425. }, { "style": { "height": "36px" } }).form; //創建窗體
  3426. _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); } }
  3427. break;
  3428. case "timeAxis": //時間軸
  3429. _formdiv = new U.UF.UI.form(
  3430. "時間軸",
  3431. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://time.graphics/editor" }), {
  3432. "id": "timeAxis",
  3433. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3434. "onresize": function() {}
  3435. }, {
  3436. closecallback: function() {}
  3437. }, { "style": { "height": "36px" } }).form; //創建窗體
  3438. _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); } }
  3439. break;
  3440. case "AIprogram2": //AI體驗
  3441. _formdiv = new U.UF.UI.form(
  3442. "AI體驗",
  3443. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3444. "id": "AIprogram2",
  3445. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3446. "onresize": function() {}
  3447. }, {
  3448. closecallback: function() {}
  3449. }, { "style": { "height": "36px" } }).form; //創建窗體
  3450. _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); } }
  3451. break;
  3452. case "Pythonprogram": //python編程
  3453. _formdiv = new U.UF.UI.form(
  3454. "Python編程",
  3455. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3456. "id": "Pythonprogram",
  3457. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3458. "onresize": function() {}
  3459. }, {
  3460. closecallback: function() {}
  3461. }, { "style": { "height": "36px" } }).form; //創建窗體
  3462. _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); } }
  3463. break;
  3464. case "AIprogram": //ai編程
  3465. _formdiv = new U.UF.UI.form(
  3466. "AI編程平臺",
  3467. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3468. "id": "AIprogram",
  3469. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3470. "onresize": function() {}
  3471. }, {
  3472. closecallback: function() {}
  3473. }, { "style": { "height": "36px" } }).form; //創建窗體
  3474. _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); } }
  3475. break;
  3476. case "CocoPi": //CocoPi
  3477. _formdiv = new U.UF.UI.form(
  3478. "CocoPi",
  3479. $$("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" }), {
  3480. "id": "CocoPi",
  3481. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3482. "onresize": function() {}
  3483. }, {
  3484. closecallback: function() {}
  3485. }, { "style": { "height": "36px" } }).form; //創建窗體
  3486. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/cocopi.png)" }, "name": "CocoPi", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3487. break;
  3488. case "Wood": //Wood
  3489. _formdiv = new U.UF.UI.form(
  3490. "海龜編程",
  3491. $$("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/" }), {
  3492. "id": "Wood",
  3493. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3494. "onresize": function() {}
  3495. }, {
  3496. closecallback: function() {}
  3497. }, { "style": { "height": "36px" } }).form; //創建窗體
  3498. _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); } }
  3499. break;
  3500. case "car": //模擬駕駛
  3501. _formdiv = new U.UF.UI.form(
  3502. "模擬駕駛",
  3503. $$("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/" }), {
  3504. "id": "car",
  3505. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3506. "onresize": function() {}
  3507. }, {
  3508. closecallback: function() {}
  3509. }, { "style": { "height": "36px" } }).form; //創建窗體
  3510. _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); } }
  3511. break;
  3512. case "lineSearch": //路徑搜索
  3513. _formdiv = new U.UF.UI.form(
  3514. "路徑搜索",
  3515. $$("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/" }), {
  3516. "id": "lineSearch",
  3517. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3518. "onresize": function() {}
  3519. }, {
  3520. closecallback: function() {}
  3521. }, { "style": { "height": "36px" } }).form; //創建窗體
  3522. _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); } }
  3523. break;
  3524. case "deepLearning": //深度學習
  3525. _formdiv = new U.UF.UI.form(
  3526. "深度學習",
  3527. $$("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/#" }), {
  3528. "id": "deepLearning",
  3529. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3530. "onresize": function() {}
  3531. }, {
  3532. closecallback: function() {}
  3533. }, { "style": { "height": "36px" } }).form; //創建窗體
  3534. _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); } }
  3535. break;
  3536. case "allHistory": //深度學習
  3537. _formdiv = new U.UF.UI.form(
  3538. "全歷史",
  3539. $$("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/" }), {
  3540. "id": "allHistory",
  3541. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3542. "onresize": function() {}
  3543. }, {
  3544. closecallback: function() {}
  3545. }, { "style": { "height": "36px" } }).form; //創建窗體
  3546. _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); } }
  3547. break;
  3548. case "chatPDF": //ai編程
  3549. _formdiv = new U.UF.UI.form(
  3550. "chatPDF",
  3551. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3552. "id": "chatPDF",
  3553. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3554. "onresize": function() {}
  3555. }, {
  3556. closecallback: function() {}
  3557. }, { "style": { "height": "36px" } }).form; //創建窗體
  3558. _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); } }
  3559. break;
  3560. case "resources": //國家教育
  3561. _formdiv = new U.UF.UI.form(
  3562. "國家教育",
  3563. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3564. "id": "resources",
  3565. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3566. "onresize": function() {}
  3567. }, {
  3568. closecallback: function() {}
  3569. }, { "style": { "height": "36px" } }).form; //創建窗體
  3570. _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); } }
  3571. break;
  3572. case "codeEdit": //源碼編輯
  3573. _formdiv = new U.UF.UI.form(
  3574. "源碼編輯",
  3575. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3576. "id": "codeEdit",
  3577. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3578. "onresize": function() {}
  3579. }, {
  3580. closecallback: function() {}
  3581. }, { "style": { "height": "36px" } }).form; //創建窗體
  3582. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/code.png)" }, "name": "源碼編輯", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3583. break; //
  3584. case "MindMap": //MindMap
  3585. _formdiv = new U.UF.UI.form(
  3586. "MindMap",
  3587. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3588. "id": "MindMap",
  3589. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3590. "onresize": function() {}
  3591. }, {
  3592. closecallback: function() {}
  3593. }, { "style": { "height": "36px" } }).form; //創建窗體
  3594. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/MIndMap.png)" }, "name": "MindMap", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3595. break;
  3596. case "netWorkPanel": //netWorkPanel
  3597. _formdiv = new U.UF.UI.form(
  3598. "netWorkPanel",
  3599. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3600. "id": "netWorkPanel",
  3601. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3602. "onresize": function() {}
  3603. }, {
  3604. closecallback: function() {}
  3605. }, { "style": { "height": "36px" } }).form; //創建窗體
  3606. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/netWorkPanel.png)" }, "name": "netWorkPanel", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3607. break;
  3608. case "GeoGebra": //GeoGebra
  3609. _formdiv = new U.UF.UI.form(
  3610. "GeoGebra",
  3611. $$("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" }), {
  3612. "id": "GeoGebra",
  3613. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3614. "onresize": function() {}
  3615. }, {
  3616. closecallback: function() {}
  3617. }, { "style": { "height": "36px" } }).form; //創建窗體
  3618. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/GeoGebra.png)" }, "name": "GeoGebra", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3619. break;
  3620. case "translation": //翻譯
  3621. _formdiv = new U.UF.UI.form(
  3622. "翻譯",
  3623. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3624. "id": "translation",
  3625. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3626. "onresize": function() {}
  3627. }, {
  3628. closecallback: function() {}
  3629. }, { "style": { "height": "36px" } }).form; //創建窗體
  3630. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/translation.png)" }, "name": "翻譯", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3631. break;
  3632. case "mohe": //魔盒
  3633. _formdiv = new U.UF.UI.form(
  3634. "魔盒識字",
  3635. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3636. "id": "mohe",
  3637. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3638. "onresize": function() {}
  3639. }, {
  3640. closecallback: function() {}
  3641. }, { "style": { "height": "36px" } }).form; //創建窗體
  3642. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mohe.png)" }, "name": "魔盒識字", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3643. break;
  3644. case "24game": //24點
  3645. _formdiv = new U.UF.UI.form(
  3646. "24點",
  3647. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3648. "id": "24game",
  3649. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3650. "onresize": function() {}
  3651. }, {
  3652. closecallback: function() {}
  3653. }, { "style": { "height": "36px" } }).form; //創建窗體
  3654. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/24game.png)" }, "name": "24點", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3655. break;
  3656. case "case":
  3657. _formdiv = new U.UF.UI.form(
  3658. "課程進展",
  3659. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesign?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3660. "id": "case",
  3661. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3662. "onresize": function() {}
  3663. }, {
  3664. closecallback: function() {}
  3665. }, { "style": { "height": "36px" } }).form; //創建窗體
  3666. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/case.png)" }, "name": "課程進展", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3667. break;
  3668. case "snf":
  3669. _formdiv = new U.UF.UI.form(
  3670. "賽諾梵",
  3671. $$("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" }), {
  3672. "id": "snf",
  3673. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3674. "onresize": function() {}
  3675. }, {
  3676. closecallback: function() {}
  3677. }, { "style": { "height": "36px" } }).form; //創建窗體
  3678. _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); } }
  3679. break;
  3680. case "hanFamily":
  3681. _formdiv = new U.UF.UI.form(
  3682. "漢字家族",
  3683. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3684. "id": "hanFamily",
  3685. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3686. "onresize": function() {}
  3687. }, {
  3688. closecallback: function() {}
  3689. }, { "style": { "height": "36px" } }).form; //創建窗體
  3690. _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); } }
  3691. break;
  3692. case "hanClassics":
  3693. _formdiv = new U.UF.UI.form(
  3694. "國學經典",
  3695. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3696. "id": "hanClassics",
  3697. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3698. "onresize": function() {}
  3699. }, {
  3700. closecallback: function() {}
  3701. }, { "style": { "height": "36px" } }).form; //創建窗體
  3702. _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); } }
  3703. break;
  3704. case "hanTraining":
  3705. _formdiv = new U.UF.UI.form(
  3706. "筆畫訓練",
  3707. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3708. "id": "hanTraining",
  3709. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3710. "onresize": function() {}
  3711. }, {
  3712. closecallback: function() {}
  3713. }, { "style": { "height": "36px" } }).form; //創建窗體
  3714. _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); } }
  3715. break;
  3716. case "hanClass":
  3717. _formdiv = new U.UF.UI.form(
  3718. "書法課堂",
  3719. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3720. "id": "hanClass",
  3721. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3722. "onresize": function() {}
  3723. }, {
  3724. closecallback: function() {}
  3725. }, { "style": { "height": "36px" } }).form; //創建窗體
  3726. _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); } }
  3727. break;
  3728. case "han":
  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": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3732. "id": "han",
  3733. "style": { "width": "90%", "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/han.png)" }, "name": "漢字宮", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3739. break;
  3740. case "projectGM": //課程管理
  3741. _formdiv = new U.UF.UI.form(
  3742. "課程管理",
  3743. $$("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 }), {
  3744. "id": "projectGM",
  3745. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3746. "onresize": function() {}
  3747. }, {
  3748. closecallback: function() {}
  3749. }, { "style": { "height": "36px" } }).form; //創建窗體
  3750. _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); } }
  3751. break;
  3752. case "studyGM": //課程中心
  3753. _formdiv = new U.UF.UI.form(
  3754. "課程中心",
  3755. $$("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
  3756. "id": "study",
  3757. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3758. "onresize": function() {}
  3759. }, {
  3760. closecallback: function() {}
  3761. }, { "style": { "height": "36px" } }).form; //創建窗體
  3762. _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); } }
  3763. break;
  3764. // studentGM
  3765. case "studentGM": //學生管理
  3766. _formdiv = new U.UF.UI.form(
  3767. "學生管理",
  3768. $$("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 }), {
  3769. "id": "studentGM",
  3770. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3771. "onresize": function() {}
  3772. }, {
  3773. closecallback: function() {}
  3774. }, { "style": { "height": "36px" } }).form; //創建窗體
  3775. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/student.png)" }, "name": "學生管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3776. break;
  3777. case "evaluateGM": //學生評價
  3778. _formdiv = new U.UF.UI.form(
  3779. "學生評價",
  3780. $$("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 }), {
  3781. "id": "evaluateGM",
  3782. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3783. "onresize": function() {}
  3784. }, {
  3785. closecallback: function() {}
  3786. }, { "style": { "height": "36px" } }).form; //創建窗體
  3787. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/evaluate.png)" }, "name": "學生評價", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3788. break;
  3789. // classGM
  3790. case "classGM": //班級管理
  3791. _formdiv = new U.UF.UI.form(
  3792. "班級管理",
  3793. $$("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 }), {
  3794. "id": "classGM",
  3795. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3796. "onresize": function() {}
  3797. }, {
  3798. closecallback: function() {}
  3799. }, { "style": { "height": "36px" } }).form; //創建窗體
  3800. _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); } }
  3801. break;
  3802. // dataGM
  3803. case "dataGM":
  3804. _formdiv = new U.UF.UI.form(
  3805. "我的資料",
  3806. $$("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 }), {
  3807. "id": "dataGM",
  3808. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3809. "onresize": function() {}
  3810. }, {
  3811. closecallback: function() {}
  3812. }, { "style": { "height": "36px" } }).form; //創建窗體
  3813. _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); } }
  3814. break;
  3815. // caseGM
  3816. case "caseGM": //課程進展
  3817. _formdiv = new U.UF.UI.form(
  3818. "課程進展",
  3819. $$("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 }), {
  3820. "id": "caseGM",
  3821. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3822. "onresize": function() {}
  3823. }, {
  3824. closecallback: function() {}
  3825. }, { "style": { "height": "36px" } }).form; //創建窗體
  3826. _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); } }
  3827. break;
  3828. // meterialGM
  3829. case "meterialGM": //素材庫
  3830. _formdiv = new U.UF.UI.form(
  3831. "素材庫",
  3832. $$("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 }), {
  3833. "id": "meterialGM",
  3834. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3835. "onresize": function() {}
  3836. }, {
  3837. closecallback: function() {}
  3838. }, { "style": { "height": "36px" } }).form; //創建窗體
  3839. _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); } }
  3840. break;
  3841. // evaluateSGM
  3842. case "evaluateSGM": //我的評價
  3843. _formdiv = new U.UF.UI.form(
  3844. "我的評價",
  3845. $$("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 }), {
  3846. "id": "evaluateSGM",
  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/gm/evaluate.png)" }, "name": "我的評價", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3853. break;
  3854. case "jupyter": //jupyter
  3855. _formdiv = new U.UF.UI.form(
  3856. "jupyter",
  3857. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3858. "id": "jupyter",
  3859. "style": { "width": "90%", "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/jupyter.png)" }, "name": "jupyter", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3865. break;
  3866. case "number": //數字實驗室
  3867. _formdiv = new U.UF.UI.form(
  3868. "數字實驗室",
  3869. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3870. "id": "number",
  3871. "style": { "width": "90%", "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/number.png)" }, "name": "數字實驗室", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3877. break;
  3878. case "studentCourse": //項目管理 學生
  3879. _formdiv = new U.UF.UI.form(
  3880. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  3881. $$("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 }), {
  3882. "id": "studentCourse",
  3883. "style": { "width": "90%", "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/studentCourse.png)" }, "name": "項目管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3889. break;
  3890. case "studentCourseS": //項目管理 老師
  3891. _formdiv = new U.UF.UI.form(
  3892. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  3893. $$("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 }), {
  3894. "id": "studentCourseS",
  3895. "style": { "width": "90%", "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/studentCourse.png)" }, "name": "項目管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3901. break;
  3902. case "studentIndex": //項目中心
  3903. _formdiv = new U.UF.UI.form(
  3904. "項目中心",
  3905. $$("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 }), {
  3906. "id": "studentIndex",
  3907. "style": { "width": "90%", "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/studentIndex.png)" }, "name": "項目管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3913. break;
  3914. case "CaseDesignS":
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesignS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3918. "id": "case",
  3919. "style": { "width": "90%", "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/CaseDesignS.png)" }, "name": "項目進展", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3925. break;
  3926. case "tcStudent": //騰訊學生管理
  3927. _formdiv = new U.UF.UI.form(
  3928. "學生管理",
  3929. $$("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 }), {
  3930. "id": "tcStudent",
  3931. "style": { "width": "90%", "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/student.png)" }, "name": "學生管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3937. break;
  3938. case "tcSchool": //騰訊學校管理
  3939. _formdiv = new U.UF.UI.form(
  3940. "學校管理",
  3941. $$("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 }), {
  3942. "id": "tcSchool",
  3943. "style": { "width": "90%", "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/school.png)" }, "name": "學校管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3949. break;
  3950. case "tcTeacher": //騰訊學校管理
  3951. _formdiv = new U.UF.UI.form(
  3952. "教師管理",
  3953. $$("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 }), {
  3954. "id": "tcTeacher",
  3955. "style": { "width": "90%", "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/teacher.png)" }, "name": "教師管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3961. break;
  3962. case "tcData": //騰訊我的資料
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcData?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3966. "id": "tcData",
  3967. "style": { "width": "42%", "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/myMessage.png)" }, "name": "我的資料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3973. break;
  3974. case "tcNotice": //騰訊消息通知
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcNotice?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3978. "id": "tcNotice",
  3979. "style": { "width": "90%", "height": "90%", "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/news.png)" }, "name": "消息通知", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3985. break;
  3986. case "myReport": //好友打開
  3987. _formdiv = new U.UF.UI.form(
  3988. "我的評價",
  3989. $$("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 }), {
  3990. "id": "myReport",
  3991. "style": { "width": "100%", "height": "100%", "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/evaluation.png)" }, "name": "我的評價", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3997. break;
  3998. case "learnAna": //好友打開
  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/#/learnAna?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  4002. "id": "learnAna",
  4003. "style": { "width": "100%", "height": "100%", "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/learnAna.png)" }, "name": "學習分析", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  4009. break;
  4010. case "AIChat": //AI共創
  4011. _formdiv = new U.UF.UI.form(
  4012. "AI共創",
  4013. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/aichat/" }), {
  4014. "id": "AIChat",
  4015. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  4016. "onresize": function () { }
  4017. }, {
  4018. istop: true,
  4019. closecallback: function () { $("#aichat_icon").remove(); },
  4020. narrowcallback: function () {
  4021. if (!$("#aichat_icon")[0]) {
  4022. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  4023. }
  4024. },
  4025. }, { "style": { "height": "36px" } }).form; //創建窗體
  4026. _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); } }
  4027. break;
  4028. case "ainew": //AI共創
  4029. _formdiv = new U.UF.UI.form(
  4030. "AI協同",
  4031. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ainew/" }), {
  4032. "id": "ainew",
  4033. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4034. "onresize": function () { }
  4035. }, {
  4036. closecallback: function () { }
  4037. }, { "style": { "height": "36px" } }).form; //創建窗體
  4038. _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); } }
  4039. break;
  4040. case "AIAnalyse": //AI共創
  4041. _formdiv = new U.UF.UI.form(
  4042. "AI分析",
  4043. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ai/" }), {
  4044. "id": "AIAnalyse",
  4045. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4046. "onresize": function () { }
  4047. }, {
  4048. closecallback: function () { }
  4049. }, { "style": { "height": "36px" } }).form; //創建窗體
  4050. _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); } }
  4051. break;
  4052. case "studioCourse": //AI共創
  4053. _formdiv = new U.UF.UI.form(
  4054. "工作管理",
  4055. $$("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 }), {
  4056. "id": "studioCourse",
  4057. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4058. "onresize": function() {}
  4059. }, {
  4060. closecallback: function() {}
  4061. }, { "style": { "height": "36px" } }).form; //創建窗體
  4062. _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); } }
  4063. break;
  4064. case "studioIndex": //AI共創
  4065. _formdiv = new U.UF.UI.form(
  4066. "工作中心",
  4067. $$("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 }), {
  4068. "id": "studioIndex",
  4069. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4070. "onresize": function() {}
  4071. }, {
  4072. closecallback: function() {}
  4073. }, { "style": { "height": "36px" } }).form; //創建窗體
  4074. _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); } }
  4075. break;
  4076. case "source":
  4077. _formdiv = new U.UF.UI.form(
  4078. "教學資源",
  4079. $$("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 }), {
  4080. "id": "source",
  4081. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4082. "onresize": function () { }
  4083. }, {
  4084. closecallback: function () { }
  4085. }, { "style": { "height": "36px" } }).form; //創建窗體
  4086. _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); } }
  4087. break;
  4088. }
  4089. //U.MD.D.I.openClick(str);
  4090. //如果有任務欄信息
  4091. if (_taskbar) {
  4092. U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4093. }
  4094. }
  4095. // U.MD.D.I.openClick = function(str){
  4096. // var click = '';
  4097. // switch(str){
  4098. // case 'friend':
  4099. // click = '我的好友';
  4100. // break;
  4101. // case 'domain':
  4102. // click = '域名管理';
  4103. // break;
  4104. // case 'disk':
  4105. // click = '我的雲盤';
  4106. // break;
  4107. // case 'word':
  4108. // click = 'Word';
  4109. // break;
  4110. // case 'excel':
  4111. // click = 'Execl';
  4112. // break;
  4113. // case 'txt':
  4114. // click = '文本文件';
  4115. // break;
  4116. // case 'lookupFriend':
  4117. // click = '查找好友';
  4118. // break;
  4119. // case 'ftp':
  4120. // click = 'FTP';
  4121. // break;
  4122. // case 'group':
  4123. // click = '群組';
  4124. // break;
  4125. // case 'set':
  4126. // click = '我的設置';
  4127. // break;
  4128. // case 'systemSet':
  4129. // click = '系統設置';
  4130. // break;
  4131. // case 'boomYun':
  4132. // click = '互聯辦公';
  4133. // break;
  4134. // case 'xz':
  4135. // click = '雲端下載';
  4136. // break;
  4137. // case 'client':
  4138. // click = '有思瀏覽器';
  4139. // break;
  4140. // case 'backEndProgramming':
  4141. // click = '在線後臺編程';
  4142. // break;
  4143. // case 'frontEndProgramming':
  4144. // click = '在線前端編程';
  4145. // break;
  4146. // default: break;
  4147. // }
  4148. // if(U.MD.D.I.Ip && click){
  4149. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  4150. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  4151. // })
  4152. // }
  4153. // }
  4154. /**
  4155. *函數作用:ajax簡易函數,使用post格式
  4156. *@param url {data} 後臺地址
  4157. *@param data {data} 參數json
  4158. *@param fn {data} 回調函數
  4159. *
  4160. */
  4161. // U.MD.D.I.Mysqlrequest = function(url,fn){
  4162. // var xhr = new XMLHttpRequest();
  4163. // xhr.open("GET",url,true);
  4164. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  4165. // xhr.onreadystatechange = function(){
  4166. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  4167. // fn.call(this,xhr.responseText);
  4168. // }
  4169. // };
  4170. // xhr.send();
  4171. // }
  4172. /*判斷是否是內網IP*/
  4173. // U.MD.D.I.isInnerIPFn = function(str){
  4174. // var curPageUrl = str;
  4175. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前綴
  4176. // curPageUrl =curPageUrl.replace(reg1,'');
  4177. // // console.log('curPageUrl-1 '+curPageUrl);
  4178. // var reg2 = /\:+/g;//替換冒號為一點
  4179. // curPageUrl =curPageUrl.replace(reg2,'.');
  4180. // // console.log('curPageUrl-2 '+curPageUrl);
  4181. // curPageUrl = curPageUrl.split('.');//通過一點來劃分數組
  4182. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  4183. // if(curPageUrl[2] != '16'){
  4184. // return ipAddress;
  4185. // }else{
  4186. // return false;
  4187. // }
  4188. // }
  4189. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  4190. // //compatibility for firefox and chrome
  4191. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  4192. // var pc = new myPeerConnection({
  4193. // iceServers: []
  4194. // }),
  4195. // noop = function() {},
  4196. // localIPs = {},
  4197. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  4198. // key;
  4199. // function iterateIP(ip) {
  4200. // if (!localIPs[ip]) onNewIP(ip);
  4201. // localIPs[ip] = true;
  4202. // }
  4203. // //create a bogus data channel
  4204. // pc.createDataChannel("");
  4205. // // create offer and set local description
  4206. // pc.createOffer().then(function(sdp) {
  4207. // sdp.sdp.split('\n').forEach(function(line) {
  4208. // if (line.indexOf('candidate') < 0) return;
  4209. // line.match(ipRegex).forEach(iterateIP);
  4210. // });
  4211. // pc.setLocalDescription(sdp, noop, noop);
  4212. // }).catch(function(reason) {
  4213. // // An error occurred, so handle the failure to connect
  4214. // });
  4215. // //sten for candidate events
  4216. // pc.onicecandidate = function(ice) {
  4217. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  4218. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  4219. // };
  4220. // }
  4221. // U.MD.D.I.getUserIpBool = function(callback){
  4222. // U.MD.D.I.getUserIP(function(ip){
  4223. // alert("Got IP! :" + ip);
  4224. // });
  4225. //}
  4226. //#endregion
  4227. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  4228. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4229. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4230. _userinfo = US.userInfo, //登錄用戶信息
  4231. _userid = US.userInfo.userid //登錄用戶id
  4232. let _iframe;
  4233. let _cid = cid,
  4234. _stage = stage,
  4235. _task = task,
  4236. _tool = tool;
  4237. var _jie = $$("div", {
  4238. "style": {
  4239. "position": "absolute",
  4240. "bottom": "50px",
  4241. "right": "50px",
  4242. "zIndex": "9999",
  4243. "backgroundColor": "#2268bc",
  4244. "color": "#fff",
  4245. "padding": "12px 20px",
  4246. "cursor": "pointer",
  4247. "borderRadius": "4px",
  4248. },
  4249. "innerHTML": "提交作業"
  4250. })
  4251. let aTool = ''
  4252. let _loading = document.createElement('div')
  4253. _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;"
  4254. // _loading.id = "";
  4255. let _lchild = document.createElement('div')
  4256. let _limg = document.createElement('img')
  4257. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4258. _limg.style = "width: 26px;margin-right: 10px;"
  4259. _lchild.appendChild(_limg)
  4260. let _lspan = document.createElement('span')
  4261. _lspan.innerHTML = "上傳中..."
  4262. _lchild.appendChild(_lspan)
  4263. _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%);"
  4264. _loading.appendChild(_lchild)
  4265. var _box = $$('div', {
  4266. "style": {
  4267. "position": "relative",
  4268. "width": "100%",
  4269. "height": "100%",
  4270. },
  4271. })
  4272. _box.appendChild(_loading)
  4273. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool + _userid
  4274. switch (str) {
  4275. case "whiteboard":
  4276. aTool = 1;
  4277. _iframe = $$("iframe", {
  4278. "frameborder": "no",
  4279. "border": "0",
  4280. "scrolling ": "no",
  4281. "style": {
  4282. "cssText": "border:0;width:100%;height:100%"
  4283. },
  4284. "src": "https://iwb.cocorobo.hk/"
  4285. })
  4286. _box.appendChild(_iframe);
  4287. _box.appendChild(_jie);
  4288. _formdiv = new U.UF.UI.form(
  4289. "電子白板",
  4290. _box, {
  4291. "id": "whiteboard" + cid + stage + task + tool,
  4292. "style": {
  4293. "width": "90%",
  4294. "height": "90%",
  4295. "overflow": 'hidden'
  4296. },
  4297. "onresize": function () { }
  4298. }, {
  4299. closecallback: function () { }
  4300. }, {
  4301. "style": {
  4302. "height": "36px"
  4303. }
  4304. }).form; //創建窗體
  4305. _taskbar = {
  4306. "id": str + _formdiv.id,
  4307. "style": {
  4308. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4309. },
  4310. "name": "電子白板",
  4311. "forms": _formdiv,
  4312. "click": function() {
  4313. U.MD.D.I.openApplication(str, obj, info);
  4314. }
  4315. }
  4316. break;
  4317. case "mind":
  4318. aTool = 3;
  4319. _iframe = $$("iframe", {
  4320. "frameborder": "no",
  4321. "border": "0",
  4322. "scrolling ": "no",
  4323. "style": {
  4324. "cssText": "border:0;width:100%;height:100%"
  4325. },
  4326. "src": "/kityminder-editor/dist/index.html"
  4327. })
  4328. _box.appendChild(_iframe);
  4329. _box.appendChild(_jie);
  4330. _formdiv = new U.UF.UI.form(
  4331. "思維導圖",
  4332. _box, { //"/jsmind/example/demo.html"
  4333. "id": "mind" + cid + stage + task + tool,
  4334. "style": {
  4335. "width": "90%",
  4336. "height": "90%",
  4337. "overflow": 'hidden'
  4338. },
  4339. "onresize": function () { }
  4340. }, {
  4341. closecallback: function () { }
  4342. }, {
  4343. "style": {
  4344. "height": "36px"
  4345. }
  4346. }).form; //創建窗體
  4347. _taskbar = {
  4348. "id": str + _formdiv.id,
  4349. "style": {
  4350. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4351. },
  4352. "name": "思維導圖",
  4353. "forms": _formdiv,
  4354. "click": function() {
  4355. U.MD.D.I.openApplication(str, obj, info);
  4356. }
  4357. }
  4358. break;
  4359. case "MindMap":
  4360. aTool = 3;
  4361. _iframe = $$("iframe", {
  4362. "frameborder": "no",
  4363. "border": "0",
  4364. "scrolling ": "no",
  4365. "style": {
  4366. "cssText": "border:0;width:100%;height:100%"
  4367. },
  4368. "src": "//cloud.cocorobo.hk/mind/"
  4369. })
  4370. _box.appendChild(_iframe);
  4371. _box.appendChild(_jie);
  4372. _formdiv = new U.UF.UI.form(
  4373. "思維導圖",
  4374. _box, { //"/jsmind/example/demo.html"
  4375. "id": "mind" + cid + stage + task + tool,
  4376. "style": {
  4377. "width": "90%",
  4378. "height": "90%",
  4379. "overflow": 'hidden'
  4380. },
  4381. "onresize": function () { }
  4382. }, {
  4383. closecallback: function () { }
  4384. }, {
  4385. "style": {
  4386. "height": "36px"
  4387. }
  4388. }).form; //創建窗體
  4389. _taskbar = {
  4390. "id": str + _formdiv.id,
  4391. "style": {
  4392. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4393. },
  4394. "name": "思維導圖",
  4395. "forms": _formdiv,
  4396. "click": function() {
  4397. U.MD.D.I.openApplication(str, obj, info);
  4398. }
  4399. }
  4400. break;
  4401. case "doc":
  4402. aTool = 6;
  4403. _iframe = $$("iframe", {
  4404. "frameborder": "no",
  4405. "border": "0",
  4406. "scrolling ": "no",
  4407. "style": {
  4408. "cssText": "border:0;width:100%;height:100%"
  4409. },
  4410. "src": "/Office/Word/WordEditArea.htm"
  4411. })
  4412. _box.appendChild(_iframe);
  4413. _box.appendChild(_jie);
  4414. _formdiv = new U.UF.UI.form(
  4415. "協同文檔",
  4416. _box, {
  4417. "id": "doc" + cid + stage + task + tool,
  4418. "style": {
  4419. "width": "90%",
  4420. "height": "90%",
  4421. "overflow": 'hidden'
  4422. },
  4423. "onresize": function () { }
  4424. }, {
  4425. closecallback: function () { }
  4426. }, {
  4427. "style": {
  4428. "height": "36px"
  4429. }
  4430. }).form; //創建窗體
  4431. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  4432. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4433. })
  4434. _taskbar = {
  4435. "id": str + _formdiv.id,
  4436. "style": {
  4437. "backgroundImage": "url(/img/icon/doc.png)"
  4438. },
  4439. "name": "協同文檔",
  4440. "forms": _formdiv,
  4441. "click": function() {
  4442. U.MD.D.I.openApplication(str, obj, info);
  4443. }
  4444. }
  4445. break;
  4446. case "mindNetwork": //好友打開
  4447. aTool = 7;
  4448. _iframe = $$("iframe", {
  4449. "webkitallowfullscreen": "",
  4450. "mozallowfullscreen": "",
  4451. "allowfullscreen": "",
  4452. "frameborder": "no",
  4453. "border": "0",
  4454. "scrolling ": "no",
  4455. "style": {
  4456. "cssText": "border:0; width:100%; height:100%;"
  4457. },
  4458. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4459. })
  4460. _box.appendChild(_iframe);
  4461. _box.appendChild(_jie);
  4462. _formdiv = new U.UF.UI.form(
  4463. "思維網格",
  4464. _box, {
  4465. "id": "mindNetwork" + cid + stage + task + tool,
  4466. "style": {
  4467. "width": "90%",
  4468. "height": "90%",
  4469. "overflow": 'hidden'
  4470. },
  4471. "onresize": function () { }
  4472. }, {
  4473. closecallback: function () { }
  4474. }, {
  4475. "style": {
  4476. "height": "36px"
  4477. }
  4478. }).form; //創建窗體
  4479. _taskbar = {
  4480. "id": str + _formdiv.id,
  4481. "style": {
  4482. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4483. },
  4484. "name": "思維網格",
  4485. "forms": _formdiv,
  4486. "click": function() {
  4487. U.MD.D.I.openApplication(str, obj, info);
  4488. }
  4489. }
  4490. break;
  4491. case "courseDesign":
  4492. _iframe = $$("iframe", {
  4493. "webkitallowfullscreen": "",
  4494. "mozallowfullscreen": "",
  4495. "allowfullscreen": "",
  4496. "frameborder": "no",
  4497. "border": "0",
  4498. "scrolling ": "no",
  4499. "style": {
  4500. "cssText": "border:0; width:100%; height:100%;"
  4501. },
  4502. "src": "/course-design-vue"
  4503. })
  4504. _box.appendChild(_iframe);
  4505. _box.appendChild(_jie);
  4506. _formdiv = new U.UF.UI.form(
  4507. "項目設計",
  4508. _box, {
  4509. "id": "courseDesign" + cid + stage + task + tool,
  4510. "style": {
  4511. "width": "90%",
  4512. "height": "90%",
  4513. "overflow": 'hidden'
  4514. },
  4515. "onresize": function () { }
  4516. }, {
  4517. closecallback: function () { }
  4518. }, {
  4519. "style": {
  4520. "height": "36px"
  4521. }
  4522. }).form; //創建窗體
  4523. _taskbar = {
  4524. "id": str + _formdiv.id,
  4525. "style": {
  4526. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4527. },
  4528. "name": "項目設計",
  4529. "forms": _formdiv,
  4530. "click": function() {
  4531. U.MD.D.I.openApplication(str, obj, info);
  4532. }
  4533. }
  4534. break;
  4535. }
  4536. const script1 = document.createElement("script");
  4537. script1.type = "text/javascript";
  4538. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4539. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  4540. const script2 = document.createElement("script");
  4541. script2.type = "text/javascript";
  4542. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4543. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  4544. const script3 = document.createElement("script");
  4545. script3.type = "text/javascript";
  4546. script3.charset = "UTF-8";
  4547. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  4548. const script4 = document.createElement("script");
  4549. script4.type = "text/javascript";
  4550. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4551. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  4552. if (_iframe) {
  4553. if (str == 'doc') {
  4554. _iframe = _formdiv.querySelector('iframe')
  4555. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4556. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4557. _iframe.contentWindow.document.body.appendChild(script1);
  4558. _iframe.contentWindow.document.body.appendChild(script2);
  4559. // _iframe.contentWindow.document.body.appendChild(script3);
  4560. _iframe.contentWindow.document.body.appendChild(script4);
  4561. })
  4562. if (onloadListener) {
  4563. _iframe.contentDocument.location.reload()
  4564. } else {
  4565. _iframe.contentDocument.location.reload()
  4566. }
  4567. } else if (str == 'courseDesign') {
  4568. U.UF.DL.iframeLoad(_iframe, function() {
  4569. // _iframe.contentWindow.U.MD.O.W.load();
  4570. // _iframe.contentWindow.document.body.appendChild(script1);
  4571. _iframe.contentWindow.document.body.appendChild(script2);
  4572. _iframe.contentWindow.document.body.appendChild(script4);
  4573. })
  4574. } else if (str == 'mind') {
  4575. _iframe = _formdiv.querySelector('iframe')
  4576. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4577. //
  4578. _iframe.contentWindow.document.body.appendChild(script1);
  4579. _iframe.contentWindow.document.body.appendChild(script2);
  4580. _iframe.contentWindow.document.body.appendChild(script4);
  4581. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4582. })
  4583. if (onloadListener) {
  4584. _iframe.contentDocument.location.reload()
  4585. } else {
  4586. _iframe.contentDocument.location.reload()
  4587. }
  4588. } else if (str == 'whiteboard') {
  4589. _iframe = _formdiv.querySelector('iframe')
  4590. let onloadListener = _iframe.onload = () => {
  4591. _iframe.contentWindow.document.body.appendChild(script1);
  4592. _iframe.contentWindow.document.body.appendChild(script2);
  4593. _iframe.contentWindow.document.body.appendChild(script4);
  4594. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4595. };
  4596. if (onloadListener) {
  4597. _iframe.contentDocument.location.reload()
  4598. } else {
  4599. _iframe.contentDocument.location.reload()
  4600. }
  4601. } else {
  4602. _iframe.onload = () => {
  4603. _iframe.contentWindow.document.body.appendChild(script1);
  4604. _iframe.contentWindow.document.body.appendChild(script2);
  4605. // _iframe.contentWindow.document.body.appendChild(script3);
  4606. _iframe.contentWindow.document.body.appendChild(script4);
  4607. };
  4608. }
  4609. _jie.onclick = async() => {
  4610. let text = ''
  4611. if (aTool == 1) {
  4612. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4613. } else if (aTool == 6) {
  4614. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4615. } else if (aTool == 3) {
  4616. text = await U.MD.D.I.getEditorContent(_iframe);
  4617. }
  4618. _loading.style.display = 'flex'
  4619. console.log(_loading);
  4620. var _ajs = _iframe.contentWindow.document.createElement("script");
  4621. _ajs.type = "text/javascript";
  4622. _ajs.innerHTML =
  4623. // 'console.log(' + _loading + ');\n' +
  4624. 'var _js = document.createElement("script");\n' +
  4625. '_js.type="text/javascript";\n' +
  4626. '_js.charset="UTF-8";\n' +
  4627. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  4628. "_js.onload = function(){\n" +
  4629. ' var a = document.getElementsByTagName("img")\n' +
  4630. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4631. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4632. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4633. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4634. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  4635. "beforeUpload_shishi(file," +
  4636. "'" +
  4637. _userid +
  4638. "'" +
  4639. ", " +
  4640. "'" +
  4641. _cid +
  4642. "'" +
  4643. ", " +
  4644. "'" +
  4645. _stage +
  4646. "'" +
  4647. ", " +
  4648. "'" +
  4649. _task +
  4650. "'" +
  4651. ", " +
  4652. "'" +
  4653. _tool +
  4654. "'" +
  4655. ", " +
  4656. "'" +
  4657. (str + '_loadLi_Jie' + cid + stage + task + tool + _userid) +
  4658. "'" +
  4659. ", " +
  4660. "'" +
  4661. aTool +
  4662. "'" +
  4663. ", " +
  4664. "`" +
  4665. text +
  4666. "`" +
  4667. ")\n" +
  4668. " });\n" +
  4669. "}\n" +
  4670. "document.head.appendChild(_js);\n";
  4671. _iframe.contentWindow.document.head.appendChild(_ajs);
  4672. }
  4673. }
  4674. //U.MD.D.I.openClick(str);
  4675. //如果有任務欄信息
  4676. // if (_taskbar) {
  4677. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4678. // }
  4679. }
  4680. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4681. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4682. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4683. _userinfo = US.userInfo, //登錄用戶信息
  4684. _userid = US.userInfo.userid //登錄用戶id
  4685. let _iframe;
  4686. let _cid = cid,
  4687. _stage = stage,
  4688. _task = task,
  4689. _tool = tool;
  4690. var _jie = $$("div", {
  4691. "style": {
  4692. "position": "absolute",
  4693. "bottom": "50px",
  4694. "right": "50px",
  4695. "zIndex": "9999",
  4696. "backgroundColor": "#2268bc",
  4697. "color": "#fff",
  4698. "padding": "12px 20px",
  4699. "cursor": "pointer",
  4700. "borderRadius": "4px",
  4701. },
  4702. "innerHTML": "提交作業"
  4703. })
  4704. let aTool = ''
  4705. let _loading = document.createElement('div')
  4706. _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;"
  4707. // _loading.id = "";
  4708. let _lchild = document.createElement('div')
  4709. let _limg = document.createElement('img')
  4710. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4711. _limg.style = "width: 26px;margin-right: 10px;"
  4712. _lchild.appendChild(_limg)
  4713. let _lspan = document.createElement('span')
  4714. _lspan.innerHTML = "上傳中..."
  4715. _lchild.appendChild(_lspan)
  4716. _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%);"
  4717. _loading.appendChild(_lchild)
  4718. var _box = $$('div', {
  4719. "style": {
  4720. "position": "relative",
  4721. "width": "100%",
  4722. "height": "100%",
  4723. },
  4724. })
  4725. _box.appendChild(_loading)
  4726. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool + _userid
  4727. switch (str) {
  4728. case "whiteboard":
  4729. aTool = 1;
  4730. _iframe = $$("iframe", {
  4731. "frameborder": "no",
  4732. "border": "0",
  4733. "scrolling ": "no",
  4734. "style": {
  4735. "cssText": "border:0;width:100%;height:100%"
  4736. },
  4737. "src": "https://iwb.cocorobo.hk/"
  4738. })
  4739. _box.appendChild(_iframe);
  4740. _box.appendChild(_jie);
  4741. _formdiv = new U.UF.UI.form(
  4742. "電子白板",
  4743. _box, {
  4744. "id": "whiteboard" + cid + stage + task + tool,
  4745. "style": {
  4746. "width": "90%",
  4747. "height": "90%",
  4748. "overflow": 'hidden'
  4749. },
  4750. "onresize": function () { }
  4751. }, {
  4752. closecallback: function () { }
  4753. }, {
  4754. "style": {
  4755. "height": "36px"
  4756. }
  4757. }).form; //創建窗體
  4758. _taskbar = {
  4759. "id": str + _formdiv.id,
  4760. "style": {
  4761. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4762. },
  4763. "name": "電子白板",
  4764. "forms": _formdiv,
  4765. "click": function() {
  4766. U.MD.D.I.openApplication(str, obj, info);
  4767. }
  4768. }
  4769. break;
  4770. case "mind":
  4771. aTool = 3;
  4772. _iframe = $$("iframe", {
  4773. "frameborder": "no",
  4774. "border": "0",
  4775. "scrolling ": "no",
  4776. "style": {
  4777. "cssText": "border:0;width:100%;height:100%"
  4778. },
  4779. "src": "/kityminder-editor/dist/index.html"
  4780. })
  4781. _box.appendChild(_iframe);
  4782. _box.appendChild(_jie);
  4783. _formdiv = new U.UF.UI.form(
  4784. "思維導圖",
  4785. _box, { //"/jsmind/example/demo.html"
  4786. "id": "mind" + cid + stage + task + tool,
  4787. "style": {
  4788. "width": "90%",
  4789. "height": "90%",
  4790. "overflow": 'hidden'
  4791. },
  4792. "onresize": function () { }
  4793. }, {
  4794. closecallback: function () { }
  4795. }, {
  4796. "style": {
  4797. "height": "36px"
  4798. }
  4799. }).form; //創建窗體
  4800. _taskbar = {
  4801. "id": str + _formdiv.id,
  4802. "style": {
  4803. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4804. },
  4805. "name": "思維導圖",
  4806. "forms": _formdiv,
  4807. "click": function() {
  4808. U.MD.D.I.openApplication(str, obj, info);
  4809. }
  4810. }
  4811. break;
  4812. case "MindMap":
  4813. aTool = 3;
  4814. _iframe = $$("iframe", {
  4815. "frameborder": "no",
  4816. "border": "0",
  4817. "scrolling ": "no",
  4818. "style": {
  4819. "cssText": "border:0;width:100%;height:100%"
  4820. },
  4821. "src": "//cloud.cocorobo.hk/mind/"
  4822. })
  4823. _box.appendChild(_iframe);
  4824. _box.appendChild(_jie);
  4825. _formdiv = new U.UF.UI.form(
  4826. "思維導圖",
  4827. _box, { //"/jsmind/example/demo.html"
  4828. "id": "mind" + cid + stage + task + tool,
  4829. "style": {
  4830. "width": "90%",
  4831. "height": "90%",
  4832. "overflow": 'hidden'
  4833. },
  4834. "onresize": function () { }
  4835. }, {
  4836. closecallback: function () { }
  4837. }, {
  4838. "style": {
  4839. "height": "36px"
  4840. }
  4841. }).form; //創建窗體
  4842. _taskbar = {
  4843. "id": str + _formdiv.id,
  4844. "style": {
  4845. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4846. },
  4847. "name": "思維導圖",
  4848. "forms": _formdiv,
  4849. "click": function() {
  4850. U.MD.D.I.openApplication(str, obj, info);
  4851. }
  4852. }
  4853. break;
  4854. case "doc":
  4855. aTool = 6;
  4856. _iframe = $$("iframe", {
  4857. "frameborder": "no",
  4858. "border": "0",
  4859. "scrolling ": "no",
  4860. "style": {
  4861. "cssText": "border:0;width:100%;height:100%"
  4862. },
  4863. "src": "/Office/Word/WordEditArea.htm"
  4864. })
  4865. _box.appendChild(_iframe);
  4866. _box.appendChild(_jie);
  4867. _formdiv = new U.UF.UI.form(
  4868. "協同文檔",
  4869. _box, {
  4870. "id": "doc" + cid + stage + task + tool,
  4871. "style": {
  4872. "width": "90%",
  4873. "height": "90%",
  4874. "overflow": 'hidden'
  4875. },
  4876. "onresize": function () { }
  4877. }, {
  4878. closecallback: function () { }
  4879. }, {
  4880. "style": {
  4881. "height": "36px"
  4882. }
  4883. }).form; //創建窗體
  4884. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  4885. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4886. })
  4887. _taskbar = {
  4888. "id": str + _formdiv.id,
  4889. "style": {
  4890. "backgroundImage": "url(/img/icon/doc.png)"
  4891. },
  4892. "name": "協同文檔",
  4893. "forms": _formdiv,
  4894. "click": function() {
  4895. U.MD.D.I.openApplication(str, obj, info);
  4896. }
  4897. }
  4898. break;
  4899. case "mindNetwork": //好友打開
  4900. aTool = 7;
  4901. _iframe = $$("iframe", {
  4902. "webkitallowfullscreen": "",
  4903. "mozallowfullscreen": "",
  4904. "allowfullscreen": "",
  4905. "frameborder": "no",
  4906. "border": "0",
  4907. "scrolling ": "no",
  4908. "style": {
  4909. "cssText": "border:0; width:100%; height:100%;"
  4910. },
  4911. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4912. })
  4913. _box.appendChild(_iframe);
  4914. _box.appendChild(_jie);
  4915. _formdiv = new U.UF.UI.form(
  4916. "思維網格",
  4917. _box, {
  4918. "id": "mindNetwork" + cid + stage + task + tool,
  4919. "style": {
  4920. "width": "90%",
  4921. "height": "90%",
  4922. "overflow": 'hidden'
  4923. },
  4924. "onresize": function () { }
  4925. }, {
  4926. closecallback: function () { }
  4927. }, {
  4928. "style": {
  4929. "height": "36px"
  4930. }
  4931. }).form; //創建窗體
  4932. _taskbar = {
  4933. "id": str + _formdiv.id,
  4934. "style": {
  4935. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4936. },
  4937. "name": "思維網格",
  4938. "forms": _formdiv,
  4939. "click": function() {
  4940. U.MD.D.I.openApplication(str, obj, info);
  4941. }
  4942. }
  4943. break;
  4944. case "courseDesign":
  4945. _iframe = $$("iframe", {
  4946. "webkitallowfullscreen": "",
  4947. "mozallowfullscreen": "",
  4948. "allowfullscreen": "",
  4949. "frameborder": "no",
  4950. "border": "0",
  4951. "scrolling ": "no",
  4952. "style": {
  4953. "cssText": "border:0; width:100%; height:100%;"
  4954. },
  4955. "src": "/course-design-vue"
  4956. })
  4957. _box.appendChild(_iframe);
  4958. _box.appendChild(_jie);
  4959. _formdiv = new U.UF.UI.form(
  4960. "項目設計",
  4961. _box, {
  4962. "id": "courseDesign" + cid + stage + task + tool,
  4963. "style": {
  4964. "width": "90%",
  4965. "height": "90%",
  4966. "overflow": 'hidden'
  4967. },
  4968. "onresize": function () { }
  4969. }, {
  4970. closecallback: function () { }
  4971. }, {
  4972. "style": {
  4973. "height": "36px"
  4974. }
  4975. }).form; //創建窗體
  4976. _taskbar = {
  4977. "id": str + _formdiv.id,
  4978. "style": {
  4979. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4980. },
  4981. "name": "項目設計",
  4982. "forms": _formdiv,
  4983. "click": function() {
  4984. U.MD.D.I.openApplication(str, obj, info);
  4985. }
  4986. }
  4987. break;
  4988. }
  4989. const script1 = document.createElement("script");
  4990. script1.type = "text/javascript";
  4991. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4992. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  4993. const script2 = document.createElement("script");
  4994. script2.type = "text/javascript";
  4995. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4996. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  4997. const script3 = document.createElement("script");
  4998. script3.type = "text/javascript";
  4999. script3.charset = "UTF-8";
  5000. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5001. const script4 = document.createElement("script");
  5002. script4.type = "text/javascript";
  5003. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5004. script4.src = window.origin + "/js/Common/jietu2E.js";
  5005. if (_iframe) {
  5006. if (str == 'doc') {
  5007. _iframe = _formdiv.querySelector('iframe')
  5008. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5009. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5010. _iframe.contentWindow.document.body.appendChild(script1);
  5011. _iframe.contentWindow.document.body.appendChild(script2);
  5012. // _iframe.contentWindow.document.body.appendChild(script3);
  5013. _iframe.contentWindow.document.body.appendChild(script4);
  5014. })
  5015. if (onloadListener) {
  5016. _iframe.contentDocument.location.reload()
  5017. } else {
  5018. _iframe.contentDocument.location.reload()
  5019. }
  5020. } else if (str == 'courseDesign') {
  5021. U.UF.DL.iframeLoad(_iframe, function() {
  5022. // _iframe.contentWindow.U.MD.O.W.load();
  5023. // _iframe.contentWindow.document.body.appendChild(script1);
  5024. _iframe.contentWindow.document.body.appendChild(script2);
  5025. _iframe.contentWindow.document.body.appendChild(script4);
  5026. })
  5027. } else if (str == 'mind') {
  5028. _iframe = _formdiv.querySelector('iframe')
  5029. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5030. //
  5031. _iframe.contentWindow.document.body.appendChild(script1);
  5032. _iframe.contentWindow.document.body.appendChild(script2);
  5033. _iframe.contentWindow.document.body.appendChild(script4);
  5034. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5035. })
  5036. if (onloadListener) {
  5037. _iframe.contentDocument.location.reload()
  5038. } else {
  5039. _iframe.contentDocument.location.reload()
  5040. }
  5041. } else if (str == 'whiteboard') {
  5042. _iframe = _formdiv.querySelector('iframe')
  5043. let onloadListener = _iframe.onload = () => {
  5044. _iframe.contentWindow.document.body.appendChild(script1);
  5045. _iframe.contentWindow.document.body.appendChild(script2);
  5046. _iframe.contentWindow.document.body.appendChild(script4);
  5047. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5048. };
  5049. if (onloadListener) {
  5050. _iframe.contentDocument.location.reload()
  5051. } else {
  5052. _iframe.contentDocument.location.reload()
  5053. }
  5054. } else {
  5055. _iframe.onload = () => {
  5056. _iframe.contentWindow.document.body.appendChild(script1);
  5057. _iframe.contentWindow.document.body.appendChild(script2);
  5058. // _iframe.contentWindow.document.body.appendChild(script3);
  5059. _iframe.contentWindow.document.body.appendChild(script4);
  5060. };
  5061. }
  5062. _jie.onclick = async() => {
  5063. let text = ''
  5064. if (aTool == 1) {
  5065. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5066. } else if (aTool == 6) {
  5067. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5068. } else if (aTool == 3) {
  5069. text = await U.MD.D.I.getEditorContent(_iframe);
  5070. }
  5071. _loading.style.display = 'flex'
  5072. console.log(_loading);
  5073. var _ajs = _iframe.contentWindow.document.createElement("script");
  5074. _ajs.type = "text/javascript";
  5075. _ajs.innerHTML =
  5076. // 'console.log(' + _loading + ');\n' +
  5077. 'var _js = document.createElement("script");\n' +
  5078. '_js.type="text/javascript";\n' +
  5079. '_js.charset="UTF-8";\n' +
  5080. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5081. "_js.onload = function(){\n" +
  5082. ' var a = document.getElementsByTagName("img")\n' +
  5083. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5084. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5085. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5086. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5087. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5088. "beforeUpload_shishi(file," +
  5089. "'" +
  5090. _userid +
  5091. "'" +
  5092. ", " +
  5093. "'" +
  5094. _cid +
  5095. "'" +
  5096. ", " +
  5097. "'" +
  5098. _stage +
  5099. "'" +
  5100. ", " +
  5101. "'" +
  5102. _task +
  5103. "'" +
  5104. ", " +
  5105. "'" +
  5106. _tool +
  5107. "'" +
  5108. ", " +
  5109. "'" +
  5110. (str + '_loadLi_JieE' + cid + stage + task + tool + _userid) +
  5111. "'" +
  5112. ", " +
  5113. "'" +
  5114. aTool +
  5115. "'" +
  5116. ", " +
  5117. "`" +
  5118. text +
  5119. "`" +
  5120. ")\n" +
  5121. " });\n" +
  5122. "}\n" +
  5123. "document.head.appendChild(_js);\n";
  5124. _iframe.contentWindow.document.head.appendChild(_ajs);
  5125. }
  5126. }
  5127. //U.MD.D.I.openClick(str);
  5128. //如果有任務欄信息
  5129. // if (_taskbar) {
  5130. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  5131. // }
  5132. }
  5133. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  5134. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5135. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5136. _userid = student.userid, //登錄用戶id
  5137. _username = student.student //用戶名字
  5138. let _iframe;
  5139. let _cid = cid,
  5140. _stage = stage,
  5141. _task = task,
  5142. _tool = tool;
  5143. var _jie = $$("div", {
  5144. "style": {
  5145. "position": "absolute",
  5146. "bottom": "50px",
  5147. "right": "50px",
  5148. "zIndex": "9999",
  5149. "backgroundColor": "#2268bc",
  5150. "color": "#fff",
  5151. "padding": "12px 20px",
  5152. "cursor": "pointer",
  5153. "borderRadius": "4px",
  5154. },
  5155. "innerHTML": "提交作業"
  5156. })
  5157. let aTool = ''
  5158. let _loading = document.createElement('div')
  5159. _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;"
  5160. // _loading.id = "";
  5161. let _lchild = document.createElement('div')
  5162. let _limg = document.createElement('img')
  5163. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5164. _limg.style = "width: 26px;margin-right: 10px;"
  5165. _lchild.appendChild(_limg)
  5166. let _lspan = document.createElement('span')
  5167. _lspan.innerHTML = "上傳中..."
  5168. _lchild.appendChild(_lspan)
  5169. _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%);"
  5170. _loading.appendChild(_lchild)
  5171. var _box = $$('div', {
  5172. "style": {
  5173. "position": "relative",
  5174. "width": "100%",
  5175. "height": "100%",
  5176. },
  5177. })
  5178. _box.appendChild(_loading)
  5179. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid
  5180. switch (str) {
  5181. case "whiteboard":
  5182. aTool = 1;
  5183. _iframe = $$("iframe", {
  5184. "frameborder": "no",
  5185. "border": "0",
  5186. "scrolling ": "no",
  5187. "style": {
  5188. "cssText": "border:0;width:100%;height:100%"
  5189. },
  5190. "src": "https://iwb.cocorobo.hk/"
  5191. })
  5192. _box.appendChild(_iframe);
  5193. _box.appendChild(_jie);
  5194. _formdiv = new U.UF.UI.form(
  5195. "電子白板-" + _username,
  5196. _box, {
  5197. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5198. "style": {
  5199. "width": "90%",
  5200. "height": "90%",
  5201. "overflow": 'hidden'
  5202. },
  5203. "onresize": function () { }
  5204. }, {
  5205. closecallback: function () { }
  5206. }, {
  5207. "style": {
  5208. "height": "36px"
  5209. }
  5210. }).form; //創建窗體
  5211. _taskbar = {
  5212. "id": str + _formdiv.id,
  5213. "style": {
  5214. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5215. },
  5216. "name": "電子白板",
  5217. "forms": _formdiv,
  5218. "click": function() {
  5219. U.MD.D.I.openApplication(str, obj, info);
  5220. }
  5221. }
  5222. break;
  5223. case "mind":
  5224. aTool = 3;
  5225. _iframe = $$("iframe", {
  5226. "frameborder": "no",
  5227. "border": "0",
  5228. "scrolling ": "no",
  5229. "style": {
  5230. "cssText": "border:0;width:100%;height:100%"
  5231. },
  5232. "src": "/kityminder-editor/dist/index.html"
  5233. })
  5234. _box.appendChild(_iframe);
  5235. _box.appendChild(_jie);
  5236. _formdiv = new U.UF.UI.form(
  5237. "思維導圖-" + _username,
  5238. _box, { //"/jsmind/example/demo.html"
  5239. "id": "mind" + cid + stage + task + tool + _userid,
  5240. "style": {
  5241. "width": "90%",
  5242. "height": "90%",
  5243. "overflow": 'hidden'
  5244. },
  5245. "onresize": function () { }
  5246. }, {
  5247. closecallback: function () { }
  5248. }, {
  5249. "style": {
  5250. "height": "36px"
  5251. }
  5252. }).form; //創建窗體
  5253. _taskbar = {
  5254. "id": str + _formdiv.id,
  5255. "style": {
  5256. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5257. },
  5258. "name": "思維導圖",
  5259. "forms": _formdiv,
  5260. "click": function() {
  5261. U.MD.D.I.openApplication(str, obj, info);
  5262. }
  5263. }
  5264. break;
  5265. case "MindMap":
  5266. aTool = 3;
  5267. _iframe = $$("iframe", {
  5268. "frameborder": "no",
  5269. "border": "0",
  5270. "scrolling ": "no",
  5271. "style": {
  5272. "cssText": "border:0;width:100%;height:100%"
  5273. },
  5274. "src": "//cloud.cocorobo.hk/mind/"
  5275. })
  5276. _box.appendChild(_iframe);
  5277. _box.appendChild(_jie);
  5278. _formdiv = new U.UF.UI.form(
  5279. "思維導圖-" + _username,
  5280. _box, { //"/jsmind/example/demo.html"
  5281. "id": "mind" + cid + stage + task + tool + _userid,
  5282. "style": {
  5283. "width": "90%",
  5284. "height": "90%",
  5285. "overflow": 'hidden'
  5286. },
  5287. "onresize": function () { }
  5288. }, {
  5289. closecallback: function () { }
  5290. }, {
  5291. "style": {
  5292. "height": "36px"
  5293. }
  5294. }).form; //創建窗體
  5295. _taskbar = {
  5296. "id": str + _formdiv.id,
  5297. "style": {
  5298. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5299. },
  5300. "name": "思維導圖",
  5301. "forms": _formdiv,
  5302. "click": function() {
  5303. U.MD.D.I.openApplication(str, obj, info);
  5304. }
  5305. }
  5306. break;
  5307. case "doc":
  5308. aTool = 6;
  5309. _iframe = $$("iframe", {
  5310. "frameborder": "no",
  5311. "border": "0",
  5312. "scrolling ": "no",
  5313. "style": {
  5314. "cssText": "border:0;width:100%;height:100%"
  5315. },
  5316. "src": "/Office/Word/WordEditArea.htm"
  5317. })
  5318. _box.appendChild(_iframe);
  5319. _box.appendChild(_jie);
  5320. _formdiv = new U.UF.UI.form(
  5321. "協同文檔-" + _username,
  5322. _box, {
  5323. "id": "doc" + cid + stage + task + tool + _userid,
  5324. "style": {
  5325. "width": "90%",
  5326. "height": "90%",
  5327. "overflow": 'hidden'
  5328. },
  5329. "onresize": function () { }
  5330. }, {
  5331. closecallback: function () { }
  5332. }, {
  5333. "style": {
  5334. "height": "36px"
  5335. }
  5336. }).form; //創建窗體
  5337. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  5338. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5339. })
  5340. _taskbar = {
  5341. "id": str + _formdiv.id,
  5342. "style": {
  5343. "backgroundImage": "url(/img/icon/doc.png)"
  5344. },
  5345. "name": "協同文檔",
  5346. "forms": _formdiv,
  5347. "click": function() {
  5348. U.MD.D.I.openApplication(str, obj, info);
  5349. }
  5350. }
  5351. break;
  5352. case "mindNetwork": //好友打開
  5353. aTool = 7;
  5354. _iframe = $$("iframe", {
  5355. "webkitallowfullscreen": "",
  5356. "mozallowfullscreen": "",
  5357. "allowfullscreen": "",
  5358. "frameborder": "no",
  5359. "border": "0",
  5360. "scrolling ": "no",
  5361. "style": {
  5362. "cssText": "border:0; width:100%; height:100%;"
  5363. },
  5364. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5365. })
  5366. _box.appendChild(_iframe);
  5367. _box.appendChild(_jie);
  5368. _formdiv = new U.UF.UI.form(
  5369. "思維網格-" + _username,
  5370. _box, {
  5371. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5372. "style": {
  5373. "width": "90%",
  5374. "height": "90%",
  5375. "overflow": 'hidden'
  5376. },
  5377. "onresize": function () { }
  5378. }, {
  5379. closecallback: function () { }
  5380. }, {
  5381. "style": {
  5382. "height": "36px"
  5383. }
  5384. }).form; //創建窗體
  5385. _taskbar = {
  5386. "id": str + _formdiv.id,
  5387. "style": {
  5388. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5389. },
  5390. "name": "思維網格",
  5391. "forms": _formdiv,
  5392. "click": function() {
  5393. U.MD.D.I.openApplication(str, obj, info);
  5394. }
  5395. }
  5396. break;
  5397. case "courseDesign":
  5398. _iframe = $$("iframe", {
  5399. "webkitallowfullscreen": "",
  5400. "mozallowfullscreen": "",
  5401. "allowfullscreen": "",
  5402. "frameborder": "no",
  5403. "border": "0",
  5404. "scrolling ": "no",
  5405. "style": {
  5406. "cssText": "border:0; width:100%; height:100%;"
  5407. },
  5408. "src": "/course-design-vue"
  5409. })
  5410. _box.appendChild(_iframe);
  5411. _box.appendChild(_jie);
  5412. _formdiv = new U.UF.UI.form(
  5413. "項目設計-" + _username,
  5414. _box, {
  5415. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5416. "style": {
  5417. "width": "90%",
  5418. "height": "90%",
  5419. "overflow": 'hidden'
  5420. },
  5421. "onresize": function () { }
  5422. }, {
  5423. closecallback: function () { }
  5424. }, {
  5425. "style": {
  5426. "height": "36px"
  5427. }
  5428. }).form; //創建窗體
  5429. _taskbar = {
  5430. "id": str + _formdiv.id,
  5431. "style": {
  5432. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5433. },
  5434. "name": "項目設計",
  5435. "forms": _formdiv,
  5436. "click": function() {
  5437. U.MD.D.I.openApplication(str, obj, info);
  5438. }
  5439. }
  5440. break;
  5441. }
  5442. const script1 = document.createElement("script");
  5443. script1.type = "text/javascript";
  5444. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5445. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5446. const script2 = document.createElement("script");
  5447. script2.type = "text/javascript";
  5448. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5449. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5450. const script3 = document.createElement("script");
  5451. script3.type = "text/javascript";
  5452. script3.charset = "UTF-8";
  5453. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5454. const script4 = document.createElement("script");
  5455. script4.type = "text/javascript";
  5456. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5457. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  5458. if (_iframe) {
  5459. if (str == 'doc') {
  5460. _iframe = _formdiv.querySelector('iframe')
  5461. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5462. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5463. _iframe.contentWindow.document.body.appendChild(script1);
  5464. _iframe.contentWindow.document.body.appendChild(script2);
  5465. // _iframe.contentWindow.document.body.appendChild(script3);
  5466. _iframe.contentWindow.document.body.appendChild(script4);
  5467. })
  5468. if (onloadListener) {
  5469. _iframe.contentDocument.location.reload()
  5470. } else {
  5471. _iframe.contentDocument.location.reload()
  5472. }
  5473. } else if (str == 'courseDesign') {
  5474. U.UF.DL.iframeLoad(_iframe, function() {
  5475. // _iframe.contentWindow.U.MD.O.W.load();
  5476. // _iframe.contentWindow.document.body.appendChild(script1);
  5477. _iframe.contentWindow.document.body.appendChild(script2);
  5478. _iframe.contentWindow.document.body.appendChild(script4);
  5479. })
  5480. } else if (str == 'mind') {
  5481. _iframe = _formdiv.querySelector('iframe')
  5482. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5483. //
  5484. _iframe.contentWindow.document.body.appendChild(script1);
  5485. _iframe.contentWindow.document.body.appendChild(script2);
  5486. _iframe.contentWindow.document.body.appendChild(script4);
  5487. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5488. })
  5489. if (onloadListener) {
  5490. _iframe.contentDocument.location.reload()
  5491. } else {
  5492. _iframe.contentDocument.location.reload()
  5493. }
  5494. } else if (str == 'whiteboard') {
  5495. _iframe = _formdiv.querySelector('iframe')
  5496. let onloadListener = _iframe.onload = () => {
  5497. _iframe.contentWindow.document.body.appendChild(script1);
  5498. _iframe.contentWindow.document.body.appendChild(script2);
  5499. _iframe.contentWindow.document.body.appendChild(script4);
  5500. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5501. };
  5502. if (onloadListener) {
  5503. _iframe.contentDocument.location.reload()
  5504. } else {
  5505. _iframe.contentDocument.location.reload()
  5506. }
  5507. } else {
  5508. _iframe.onload = () => {
  5509. _iframe.contentWindow.document.body.appendChild(script1);
  5510. _iframe.contentWindow.document.body.appendChild(script2);
  5511. // _iframe.contentWindow.document.body.appendChild(script3);
  5512. _iframe.contentWindow.document.body.appendChild(script4);
  5513. };
  5514. }
  5515. _jie.onclick = async() => {
  5516. let text = ''
  5517. if (aTool == 1) {
  5518. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5519. } else if (aTool == 6) {
  5520. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5521. } else if (aTool == 3) {
  5522. text = await U.MD.D.I.getEditorContent(_iframe);
  5523. }
  5524. _loading.style.display = 'flex'
  5525. console.log(_loading);
  5526. var _ajs = _iframe.contentWindow.document.createElement("script");
  5527. _ajs.type = "text/javascript";
  5528. _ajs.innerHTML =
  5529. // 'console.log(' + _loading + ');\n' +
  5530. 'var _js = document.createElement("script");\n' +
  5531. '_js.type="text/javascript";\n' +
  5532. '_js.charset="UTF-8";\n' +
  5533. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5534. "_js.onload = function(){\n" +
  5535. ' var a = document.getElementsByTagName("img")\n' +
  5536. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5537. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5538. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5539. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5540. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5541. "beforeUpload_shishi(file," +
  5542. "'" +
  5543. _userid +
  5544. "'" +
  5545. ", " +
  5546. "'" +
  5547. _cid +
  5548. "'" +
  5549. ", " +
  5550. "'" +
  5551. _stage +
  5552. "'" +
  5553. ", " +
  5554. "'" +
  5555. _task +
  5556. "'" +
  5557. ", " +
  5558. "'" +
  5559. _tool +
  5560. "'" +
  5561. ", " +
  5562. "'" +
  5563. (str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid) +
  5564. "'" +
  5565. ", " +
  5566. "'" +
  5567. aTool +
  5568. "'" +
  5569. ", " +
  5570. "`" +
  5571. text +
  5572. "`" +
  5573. ")\n" +
  5574. " });\n" +
  5575. "}\n" +
  5576. "document.head.appendChild(_js);\n";
  5577. _iframe.contentWindow.document.head.appendChild(_ajs);
  5578. }
  5579. }
  5580. }
  5581. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5582. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5583. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5584. _userid = student.userid, //登錄用戶id
  5585. _username = student.student //用戶名字
  5586. let _iframe;
  5587. let _cid = cid,
  5588. _stage = stage,
  5589. _task = task,
  5590. _tool = tool;
  5591. var _jie = $$("div", {
  5592. "style": {
  5593. "position": "absolute",
  5594. "bottom": "50px",
  5595. "right": "50px",
  5596. "zIndex": "9999",
  5597. "backgroundColor": "#2268bc",
  5598. "color": "#fff",
  5599. "padding": "12px 20px",
  5600. "cursor": "pointer",
  5601. "borderRadius": "4px",
  5602. },
  5603. "innerHTML": "提交作業"
  5604. })
  5605. let aTool = ''
  5606. let _loading = document.createElement('div')
  5607. _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;"
  5608. // _loading.id = "";
  5609. let _lchild = document.createElement('div')
  5610. let _limg = document.createElement('img')
  5611. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5612. _limg.style = "width: 26px;margin-right: 10px;"
  5613. _lchild.appendChild(_limg)
  5614. let _lspan = document.createElement('span')
  5615. _lspan.innerHTML = "上傳中..."
  5616. _lchild.appendChild(_lspan)
  5617. _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%);"
  5618. _loading.appendChild(_lchild)
  5619. var _box = $$('div', {
  5620. "style": {
  5621. "position": "relative",
  5622. "width": "100%",
  5623. "height": "100%",
  5624. },
  5625. })
  5626. _box.appendChild(_loading)
  5627. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5628. switch (str) {
  5629. case "whiteboard":
  5630. aTool = 1;
  5631. _iframe = $$("iframe", {
  5632. "frameborder": "no",
  5633. "border": "0",
  5634. "scrolling ": "no",
  5635. "style": {
  5636. "cssText": "border:0;width:100%;height:100%"
  5637. },
  5638. "src": "https://iwb.cocorobo.hk/"
  5639. })
  5640. _box.appendChild(_iframe);
  5641. _box.appendChild(_jie);
  5642. _formdiv = new U.UF.UI.form(
  5643. "電子白板-" + _username,
  5644. _box, {
  5645. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5646. "style": {
  5647. "width": "90%",
  5648. "height": "90%",
  5649. "overflow": 'hidden'
  5650. },
  5651. "onresize": function () { }
  5652. }, {
  5653. closecallback: function () { }
  5654. }, {
  5655. "style": {
  5656. "height": "36px"
  5657. }
  5658. }).form; //創建窗體
  5659. _taskbar = {
  5660. "id": str + _formdiv.id,
  5661. "style": {
  5662. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5663. },
  5664. "name": "電子白板",
  5665. "forms": _formdiv,
  5666. "click": function() {
  5667. U.MD.D.I.openApplication(str, obj, info);
  5668. }
  5669. }
  5670. break;
  5671. case "mind":
  5672. aTool = 3;
  5673. _iframe = $$("iframe", {
  5674. "frameborder": "no",
  5675. "border": "0",
  5676. "scrolling ": "no",
  5677. "style": {
  5678. "cssText": "border:0;width:100%;height:100%"
  5679. },
  5680. "src": "/kityminder-editor/dist/index.html"
  5681. })
  5682. _box.appendChild(_iframe);
  5683. _box.appendChild(_jie);
  5684. _formdiv = new U.UF.UI.form(
  5685. "思維導圖-" + _username,
  5686. _box, { //"/jsmind/example/demo.html"
  5687. "id": "mind" + cid + stage + task + tool + _userid,
  5688. "style": {
  5689. "width": "90%",
  5690. "height": "90%",
  5691. "overflow": 'hidden'
  5692. },
  5693. "onresize": function () { }
  5694. }, {
  5695. closecallback: function () { }
  5696. }, {
  5697. "style": {
  5698. "height": "36px"
  5699. }
  5700. }).form; //創建窗體
  5701. _taskbar = {
  5702. "id": str + _formdiv.id,
  5703. "style": {
  5704. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5705. },
  5706. "name": "思維導圖",
  5707. "forms": _formdiv,
  5708. "click": function() {
  5709. U.MD.D.I.openApplication(str, obj, info);
  5710. }
  5711. }
  5712. break;
  5713. case "MindMap":
  5714. aTool = 3;
  5715. _iframe = $$("iframe", {
  5716. "frameborder": "no",
  5717. "border": "0",
  5718. "scrolling ": "no",
  5719. "style": {
  5720. "cssText": "border:0;width:100%;height:100%"
  5721. },
  5722. "src": "//cloud.cocorobo.hk/mind/"
  5723. })
  5724. _box.appendChild(_iframe);
  5725. _box.appendChild(_jie);
  5726. _formdiv = new U.UF.UI.form(
  5727. "思維導圖-" + _username,
  5728. _box, { //"/jsmind/example/demo.html"
  5729. "id": "mind" + cid + stage + task + tool + _userid,
  5730. "style": {
  5731. "width": "90%",
  5732. "height": "90%",
  5733. "overflow": 'hidden'
  5734. },
  5735. "onresize": function () { }
  5736. }, {
  5737. closecallback: function () { }
  5738. }, {
  5739. "style": {
  5740. "height": "36px"
  5741. }
  5742. }).form; //創建窗體
  5743. _taskbar = {
  5744. "id": str + _formdiv.id,
  5745. "style": {
  5746. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5747. },
  5748. "name": "思維導圖",
  5749. "forms": _formdiv,
  5750. "click": function() {
  5751. U.MD.D.I.openApplication(str, obj, info);
  5752. }
  5753. }
  5754. break;
  5755. case "doc":
  5756. aTool = 6;
  5757. _iframe = $$("iframe", {
  5758. "frameborder": "no",
  5759. "border": "0",
  5760. "scrolling ": "no",
  5761. "style": {
  5762. "cssText": "border:0;width:100%;height:100%"
  5763. },
  5764. "src": "/Office/Word/WordEditArea.htm"
  5765. })
  5766. _box.appendChild(_iframe);
  5767. _box.appendChild(_jie);
  5768. _formdiv = new U.UF.UI.form(
  5769. "協同文檔-" + _username,
  5770. _box, {
  5771. "id": "doc" + cid + stage + task + tool + _userid,
  5772. "style": {
  5773. "width": "90%",
  5774. "height": "90%",
  5775. "overflow": 'hidden'
  5776. },
  5777. "onresize": function () { }
  5778. }, {
  5779. closecallback: function () { }
  5780. }, {
  5781. "style": {
  5782. "height": "36px"
  5783. }
  5784. }).form; //創建窗體
  5785. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  5786. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5787. })
  5788. _taskbar = {
  5789. "id": str + _formdiv.id,
  5790. "style": {
  5791. "backgroundImage": "url(/img/icon/doc.png)"
  5792. },
  5793. "name": "協同文檔",
  5794. "forms": _formdiv,
  5795. "click": function() {
  5796. U.MD.D.I.openApplication(str, obj, info);
  5797. }
  5798. }
  5799. break;
  5800. case "mindNetwork": //好友打開
  5801. aTool = 7;
  5802. _iframe = $$("iframe", {
  5803. "webkitallowfullscreen": "",
  5804. "mozallowfullscreen": "",
  5805. "allowfullscreen": "",
  5806. "frameborder": "no",
  5807. "border": "0",
  5808. "scrolling ": "no",
  5809. "style": {
  5810. "cssText": "border:0; width:100%; height:100%;"
  5811. },
  5812. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5813. })
  5814. _box.appendChild(_iframe);
  5815. _box.appendChild(_jie);
  5816. _formdiv = new U.UF.UI.form(
  5817. "思維網格-" + _username,
  5818. _box, {
  5819. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5820. "style": {
  5821. "width": "90%",
  5822. "height": "90%",
  5823. "overflow": 'hidden'
  5824. },
  5825. "onresize": function () { }
  5826. }, {
  5827. closecallback: function () { }
  5828. }, {
  5829. "style": {
  5830. "height": "36px"
  5831. }
  5832. }).form; //創建窗體
  5833. _taskbar = {
  5834. "id": str + _formdiv.id,
  5835. "style": {
  5836. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5837. },
  5838. "name": "思維網格",
  5839. "forms": _formdiv,
  5840. "click": function() {
  5841. U.MD.D.I.openApplication(str, obj, info);
  5842. }
  5843. }
  5844. break;
  5845. case "courseDesign":
  5846. _iframe = $$("iframe", {
  5847. "webkitallowfullscreen": "",
  5848. "mozallowfullscreen": "",
  5849. "allowfullscreen": "",
  5850. "frameborder": "no",
  5851. "border": "0",
  5852. "scrolling ": "no",
  5853. "style": {
  5854. "cssText": "border:0; width:100%; height:100%;"
  5855. },
  5856. "src": "/course-design-vue"
  5857. })
  5858. _box.appendChild(_iframe);
  5859. _box.appendChild(_jie);
  5860. _formdiv = new U.UF.UI.form(
  5861. "項目設計-" + _username,
  5862. _box, {
  5863. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5864. "style": {
  5865. "width": "90%",
  5866. "height": "90%",
  5867. "overflow": 'hidden'
  5868. },
  5869. "onresize": function () { }
  5870. }, {
  5871. closecallback: function () { }
  5872. }, {
  5873. "style": {
  5874. "height": "36px"
  5875. }
  5876. }).form; //創建窗體
  5877. _taskbar = {
  5878. "id": str + _formdiv.id,
  5879. "style": {
  5880. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5881. },
  5882. "name": "項目設計",
  5883. "forms": _formdiv,
  5884. "click": function() {
  5885. U.MD.D.I.openApplication(str, obj, info);
  5886. }
  5887. }
  5888. break;
  5889. }
  5890. const script1 = document.createElement("script");
  5891. script1.type = "text/javascript";
  5892. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5893. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5894. const script2 = document.createElement("script");
  5895. script2.type = "text/javascript";
  5896. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5897. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5898. const script3 = document.createElement("script");
  5899. script3.type = "text/javascript";
  5900. script3.charset = "UTF-8";
  5901. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5902. const script4 = document.createElement("script");
  5903. script4.type = "text/javascript";
  5904. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5905. script4.src = window.origin + "/js/Common/jietu2E.js";
  5906. if (_iframe) {
  5907. if (str == 'doc') {
  5908. _iframe = _formdiv.querySelector('iframe')
  5909. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5910. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5911. _iframe.contentWindow.document.body.appendChild(script1);
  5912. _iframe.contentWindow.document.body.appendChild(script2);
  5913. // _iframe.contentWindow.document.body.appendChild(script3);
  5914. _iframe.contentWindow.document.body.appendChild(script4);
  5915. })
  5916. if (onloadListener) {
  5917. _iframe.contentDocument.location.reload()
  5918. } else {
  5919. _iframe.contentDocument.location.reload()
  5920. }
  5921. } else if (str == 'courseDesign') {
  5922. U.UF.DL.iframeLoad(_iframe, function() {
  5923. // _iframe.contentWindow.U.MD.O.W.load();
  5924. // _iframe.contentWindow.document.body.appendChild(script1);
  5925. _iframe.contentWindow.document.body.appendChild(script2);
  5926. _iframe.contentWindow.document.body.appendChild(script4);
  5927. })
  5928. } else if (str == 'mind') {
  5929. _iframe = _formdiv.querySelector('iframe')
  5930. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5931. //
  5932. _iframe.contentWindow.document.body.appendChild(script1);
  5933. _iframe.contentWindow.document.body.appendChild(script2);
  5934. _iframe.contentWindow.document.body.appendChild(script4);
  5935. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5936. })
  5937. if (onloadListener) {
  5938. _iframe.contentDocument.location.reload()
  5939. } else {
  5940. _iframe.contentDocument.location.reload()
  5941. }
  5942. } else if (str == 'whiteboard') {
  5943. _iframe = _formdiv.querySelector('iframe')
  5944. let onloadListener = _iframe.onload = () => {
  5945. _iframe.contentWindow.document.body.appendChild(script1);
  5946. _iframe.contentWindow.document.body.appendChild(script2);
  5947. _iframe.contentWindow.document.body.appendChild(script4);
  5948. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5949. };
  5950. if (onloadListener) {
  5951. _iframe.contentDocument.location.reload()
  5952. } else {
  5953. _iframe.contentDocument.location.reload()
  5954. }
  5955. } else {
  5956. _iframe.onload = () => {
  5957. _iframe.contentWindow.document.body.appendChild(script1);
  5958. _iframe.contentWindow.document.body.appendChild(script2);
  5959. // _iframe.contentWindow.document.body.appendChild(script3);
  5960. _iframe.contentWindow.document.body.appendChild(script4);
  5961. };
  5962. }
  5963. _jie.onclick = async() => {
  5964. let text = ''
  5965. if (aTool == 1) {
  5966. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5967. } else if (aTool == 6) {
  5968. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5969. } else if (aTool == 3) {
  5970. text = await U.MD.D.I.getEditorContent(_iframe);
  5971. }
  5972. _loading.style.display = 'flex'
  5973. console.log(_loading);
  5974. var _ajs = _iframe.contentWindow.document.createElement("script");
  5975. _ajs.type = "text/javascript";
  5976. _ajs.innerHTML =
  5977. // 'console.log(' + _loading + ');\n' +
  5978. 'var _js = document.createElement("script");\n' +
  5979. '_js.type="text/javascript";\n' +
  5980. '_js.charset="UTF-8";\n' +
  5981. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5982. "_js.onload = function(){\n" +
  5983. ' var a = document.getElementsByTagName("img")\n' +
  5984. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5985. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5986. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5987. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5988. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5989. "beforeUpload_shishi(file," +
  5990. "'" +
  5991. _userid +
  5992. "'" +
  5993. ", " +
  5994. "'" +
  5995. _cid +
  5996. "'" +
  5997. ", " +
  5998. "'" +
  5999. _stage +
  6000. "'" +
  6001. ", " +
  6002. "'" +
  6003. _task +
  6004. "'" +
  6005. ", " +
  6006. "'" +
  6007. _tool +
  6008. "'" +
  6009. ", " +
  6010. "'" +
  6011. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid) +
  6012. "'" +
  6013. ", " +
  6014. "'" +
  6015. aTool +
  6016. "'" +
  6017. ", " +
  6018. "`" +
  6019. text +
  6020. "`" +
  6021. ")\n" +
  6022. " });\n" +
  6023. "}\n" +
  6024. "document.head.appendChild(_js);\n";
  6025. _iframe.contentWindow.document.head.appendChild(_ajs);
  6026. }
  6027. }
  6028. }
  6029. U.MD.D.I.getEditorContent = function(iframe) {
  6030. return new Promise((resolve, reject) => {
  6031. iframe.contentWindow.editor.minder.exportData('json').then(function(content) {
  6032. console.log(content);
  6033. resolve(content)
  6034. });
  6035. });
  6036. }
  6037. U.MD.D.I.getContent = function(cid, s, task, t, uid, type, iframe) {
  6038. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  6039. // if (res.value[0].length > 0) {
  6040. // // resolve(res.value[0][0].text);
  6041. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  6042. // $(fileInput).val('');
  6043. // });
  6044. // }
  6045. // }, [], { "type": "GET", "withCredentials": true });
  6046. var xmlhttp;
  6047. var Mac, Sn, DeviceId
  6048. if (window.XMLHttpRequest) {
  6049. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6050. xmlhttp = new XMLHttpRequest();
  6051. }
  6052. else {
  6053. // IE6, IE5 瀏覽器執行代碼
  6054. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6055. }
  6056. xmlhttp.onreadystatechange = function() {
  6057. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6058. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6059. // resolve(res.value[0][0].text);
  6060. if (type == '2') {
  6061. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6062. } else if (type == '3') {
  6063. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6064. }
  6065. } else {
  6066. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  6067. }
  6068. }
  6069. }
  6070. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6071. xmlhttp.send();
  6072. }
  6073. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  6074. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6075. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6076. _userinfo = US.userInfo, //登錄用戶信息
  6077. _userid = US.userInfo.userid //登錄用戶id
  6078. let _iframe;
  6079. let _cid = cid,
  6080. _stage = stage,
  6081. _task = task,
  6082. _tool = tool;
  6083. var _jie = $$("div", {
  6084. "style": {
  6085. "position": "absolute",
  6086. "bottom": "50px",
  6087. "right": "50px",
  6088. "zIndex": "9999",
  6089. "backgroundColor": "#2268bc",
  6090. "color": "#fff",
  6091. "padding": "12px 20px",
  6092. "cursor": "pointer",
  6093. "borderRadius": "4px",
  6094. },
  6095. "innerHTML": "確認並提交"
  6096. })
  6097. let aTool = ''
  6098. let _loading = document.createElement('div')
  6099. _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;"
  6100. // _loading.id = "";
  6101. let _lchild = document.createElement('div')
  6102. let _limg = document.createElement('img')
  6103. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6104. _limg.style = "width: 26px;margin-right: 10px;"
  6105. _lchild.appendChild(_limg)
  6106. let _lspan = document.createElement('span')
  6107. _lspan.innerHTML = "上傳中..."
  6108. _lchild.appendChild(_lspan)
  6109. _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%);"
  6110. _loading.appendChild(_lchild)
  6111. var _box = $$('div', {
  6112. "style": {
  6113. "position": "relative",
  6114. "width": "100%",
  6115. "height": "100%",
  6116. },
  6117. })
  6118. _box.appendChild(_loading)
  6119. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool + _userid
  6120. switch (str) {
  6121. case "whiteboard":
  6122. aTool = 1;
  6123. _iframe = $$("iframe", {
  6124. "frameborder": "no",
  6125. "border": "0",
  6126. "scrolling ": "no",
  6127. "style": {
  6128. "cssText": "border:0;width:100%;height:100%"
  6129. },
  6130. "src": "https://iwb.cocorobo.hk/"
  6131. })
  6132. _box.appendChild(_iframe);
  6133. _box.appendChild(_jie);
  6134. _formdiv = new U.UF.UI.form(
  6135. "電子白板",
  6136. _box, {
  6137. "id": "whiteboards" + cid + stage + task + tool,
  6138. "style": {
  6139. "width": "90%",
  6140. "height": "90%",
  6141. "overflow": 'hidden'
  6142. },
  6143. "onresize": function () { }
  6144. }, {
  6145. closecallback: function () { }
  6146. }, {
  6147. "style": {
  6148. "height": "36px"
  6149. }
  6150. }).form; //創建窗體
  6151. _taskbar = {
  6152. "id": str + _formdiv.id,
  6153. "style": {
  6154. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6155. },
  6156. "name": "電子白板",
  6157. "forms": _formdiv,
  6158. "click": function() {
  6159. U.MD.D.I.openApplication(str, obj, info);
  6160. }
  6161. }
  6162. break;
  6163. case "mind":
  6164. aTool = 3;
  6165. _iframe = $$("iframe", {
  6166. "frameborder": "no",
  6167. "border": "0",
  6168. "scrolling ": "no",
  6169. "style": {
  6170. "cssText": "border:0;width:100%;height:100%"
  6171. },
  6172. "src": "/kityminder-editor/dist/index.html"
  6173. });
  6174. _box.appendChild(_iframe);
  6175. _box.appendChild(_jie);
  6176. _formdiv = new U.UF.UI.form(
  6177. "思維導圖",
  6178. _box, { //"/jsmind/example/demo.html"
  6179. "id": "minds" + cid + stage + task + tool,
  6180. "style": {
  6181. "width": "90%",
  6182. "height": "90%",
  6183. "overflow": 'hidden'
  6184. },
  6185. "onresize": function () { }
  6186. }, {
  6187. closecallback: function () { }
  6188. }, {
  6189. "style": {
  6190. "height": "36px"
  6191. }
  6192. }).form; //創建窗體
  6193. _taskbar = {
  6194. "id": str + _formdiv.id,
  6195. "style": {
  6196. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6197. },
  6198. "name": "思維導圖",
  6199. "forms": _formdiv,
  6200. "click": function() {
  6201. U.MD.D.I.openApplication(str, obj, info);
  6202. }
  6203. }
  6204. break;
  6205. case "doc":
  6206. aTool = 6;
  6207. _iframe = $$("iframe", {
  6208. "frameborder": "no",
  6209. "border": "0",
  6210. "scrolling ": "no",
  6211. "style": {
  6212. "cssText": "border:0;width:100%;height:100%"
  6213. },
  6214. "src": "/Office/Word/WordEditArea.htm"
  6215. })
  6216. _box.appendChild(_iframe);
  6217. _box.appendChild(_jie);
  6218. _formdiv = new U.UF.UI.form(
  6219. "協同文檔",
  6220. _box, {
  6221. "id": "docs" + cid + stage + task + tool,
  6222. "style": {
  6223. "width": "90%",
  6224. "height": "90%",
  6225. "overflow": 'hidden'
  6226. },
  6227. "onresize": function () { }
  6228. }, {
  6229. closecallback: function () { }
  6230. }, {
  6231. "style": {
  6232. "height": "36px"
  6233. }
  6234. }).form; //創建窗體
  6235. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6236. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6237. })
  6238. _taskbar = {
  6239. "id": str + _formdiv.id,
  6240. "style": {
  6241. "backgroundImage": "url(/img/icon/doc.png)"
  6242. },
  6243. "name": "協同文檔",
  6244. "forms": _formdiv,
  6245. "click": function() {
  6246. U.MD.D.I.openApplication(str, obj, info);
  6247. }
  6248. }
  6249. break;
  6250. }
  6251. const script1 = document.createElement("script");
  6252. script1.type = "text/javascript";
  6253. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6254. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6255. const script2 = document.createElement("script");
  6256. script2.type = "text/javascript";
  6257. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6258. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6259. const script3 = document.createElement("script");
  6260. script3.type = "text/javascript";
  6261. script3.charset = "UTF-8";
  6262. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6263. const script4 = document.createElement("script");
  6264. script4.type = "text/javascript";
  6265. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6266. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu4.js";
  6267. if (_iframe) {
  6268. if (str == 'doc') {
  6269. _iframe = _formdiv.querySelector('iframe')
  6270. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6271. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6272. _iframe.contentWindow.document.body.appendChild(script1);
  6273. _iframe.contentWindow.document.body.appendChild(script2);
  6274. // _iframe.contentWindow.document.body.appendChild(script3);
  6275. _iframe.contentWindow.document.body.appendChild(script4);
  6276. })
  6277. if (onloadListener) {
  6278. _iframe.contentDocument.location.reload()
  6279. } else {
  6280. _iframe.contentDocument.location.reload()
  6281. }
  6282. } else if (str == 'mind') {
  6283. _iframe = _formdiv.querySelector('iframe')
  6284. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6285. _iframe.contentWindow.document.body.appendChild(script1);
  6286. _iframe.contentWindow.document.body.appendChild(script2);
  6287. _iframe.contentWindow.document.body.appendChild(script4);
  6288. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6289. })
  6290. if (onloadListener) {
  6291. _iframe.contentDocument.location.reload()
  6292. } else {
  6293. _iframe.contentDocument.location.reload()
  6294. }
  6295. } else {
  6296. _iframe.onload = () => {
  6297. _iframe.contentWindow.document.body.appendChild(script1);
  6298. _iframe.contentWindow.document.body.appendChild(script2);
  6299. // _iframe.contentWindow.document.body.appendChild(script3);
  6300. _iframe.contentWindow.document.body.appendChild(script4);
  6301. };
  6302. }
  6303. _jie.onclick = async() => {
  6304. let text = ''
  6305. if (aTool == 6) {
  6306. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6307. } else if (aTool == 3) {
  6308. text = await U.MD.D.I.getEditorContent(_iframe);
  6309. }
  6310. _loading.style.display = 'flex'
  6311. console.log(_loading);
  6312. var _ajs = _iframe.contentWindow.document.createElement("script");
  6313. _ajs.type = "text/javascript";
  6314. _ajs.innerHTML =
  6315. // 'console.log(' + _loading + ');\n' +
  6316. 'var _js = document.createElement("script");\n' +
  6317. '_js.type="text/javascript";\n' +
  6318. '_js.charset="UTF-8";\n' +
  6319. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6320. "_js.onload = function(){\n" +
  6321. ' var a = document.getElementsByTagName("img")\n' +
  6322. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6323. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6324. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6325. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6326. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6327. "beforeUpload_shishi(file," +
  6328. "'" +
  6329. _userid +
  6330. "'" +
  6331. ", " +
  6332. "'" +
  6333. _cid +
  6334. "'" +
  6335. ", " +
  6336. "'" +
  6337. _stage +
  6338. "'" +
  6339. ", " +
  6340. "'" +
  6341. _task +
  6342. "'" +
  6343. ", " +
  6344. "'" +
  6345. _tool +
  6346. "'" +
  6347. ", " +
  6348. "'" +
  6349. (str + '_loadLi_JieS' + cid + stage + task + tool + _userid) +
  6350. "'" +
  6351. ", " +
  6352. "'" +
  6353. aTool +
  6354. "'" +
  6355. ", " +
  6356. "`" +
  6357. text +
  6358. "`" +
  6359. ")\n" +
  6360. " });\n" +
  6361. "}\n" +
  6362. "document.head.appendChild(_js);\n";
  6363. _iframe.contentWindow.document.head.appendChild(_ajs);
  6364. }
  6365. }
  6366. //U.MD.D.I.openClick(str);
  6367. //如果有任務欄信息
  6368. // if (_taskbar) {
  6369. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6370. // }
  6371. }
  6372. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  6373. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6374. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6375. _userinfo = US.userInfo, //登錄用戶信息
  6376. _userid = US.userInfo.userid //登錄用戶id
  6377. let _iframe;
  6378. let _cid = cid,
  6379. _stage = stage,
  6380. _task = task,
  6381. _tool = tool;
  6382. var _jie = $$("div", {
  6383. "style": {
  6384. "position": "absolute",
  6385. "bottom": "50px",
  6386. "right": "50px",
  6387. "zIndex": "9999",
  6388. "backgroundColor": "#2268bc",
  6389. "color": "#fff",
  6390. "padding": "12px 20px",
  6391. "cursor": "pointer",
  6392. "borderRadius": "4px",
  6393. },
  6394. "innerHTML": "確認並提交"
  6395. })
  6396. let aTool = ''
  6397. let _loading = document.createElement('div')
  6398. _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;"
  6399. // _loading.id = "";
  6400. let _lchild = document.createElement('div')
  6401. let _limg = document.createElement('img')
  6402. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6403. _limg.style = "width: 26px;margin-right: 10px;"
  6404. _lchild.appendChild(_limg)
  6405. let _lspan = document.createElement('span')
  6406. _lspan.innerHTML = "上傳中..."
  6407. _lchild.appendChild(_lspan)
  6408. _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%);"
  6409. _loading.appendChild(_lchild)
  6410. var _box = $$('div', {
  6411. "style": {
  6412. "position": "relative",
  6413. "width": "100%",
  6414. "height": "100%",
  6415. },
  6416. })
  6417. _box.appendChild(_loading)
  6418. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid
  6419. switch (str) {
  6420. case "whiteboard":
  6421. aTool = 1;
  6422. _iframe = $$("iframe", {
  6423. "frameborder": "no",
  6424. "border": "0",
  6425. "scrolling ": "no",
  6426. "style": {
  6427. "cssText": "border:0;width:100%;height:100%"
  6428. },
  6429. "src": "https://iwb.cocorobo.hk/"
  6430. })
  6431. _box.appendChild(_iframe);
  6432. _box.appendChild(_jie);
  6433. _formdiv = new U.UF.UI.form(
  6434. "電子白板",
  6435. _box, {
  6436. "id": "whiteboards" + cid + stage + task + tool,
  6437. "style": {
  6438. "width": "90%",
  6439. "height": "90%",
  6440. "overflow": 'hidden'
  6441. },
  6442. "onresize": function () { }
  6443. }, {
  6444. closecallback: function () { }
  6445. }, {
  6446. "style": {
  6447. "height": "36px"
  6448. }
  6449. }).form; //創建窗體
  6450. _taskbar = {
  6451. "id": str + _formdiv.id,
  6452. "style": {
  6453. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6454. },
  6455. "name": "電子白板",
  6456. "forms": _formdiv,
  6457. "click": function() {
  6458. U.MD.D.I.openApplication(str, obj, info);
  6459. }
  6460. }
  6461. break;
  6462. case "mind":
  6463. aTool = 3;
  6464. _iframe = $$("iframe", {
  6465. "frameborder": "no",
  6466. "border": "0",
  6467. "scrolling ": "no",
  6468. "style": {
  6469. "cssText": "border:0;width:100%;height:100%"
  6470. },
  6471. "src": "/kityminder-editor/dist/index.html"
  6472. });
  6473. _box.appendChild(_iframe);
  6474. _box.appendChild(_jie);
  6475. _formdiv = new U.UF.UI.form(
  6476. "思維導圖",
  6477. _box, { //"/jsmind/example/demo.html"
  6478. "id": "minds" + cid + stage + task + tool,
  6479. "style": {
  6480. "width": "90%",
  6481. "height": "90%",
  6482. "overflow": 'hidden'
  6483. },
  6484. "onresize": function () { }
  6485. }, {
  6486. closecallback: function () { }
  6487. }, {
  6488. "style": {
  6489. "height": "36px"
  6490. }
  6491. }).form; //創建窗體
  6492. _taskbar = {
  6493. "id": str + _formdiv.id,
  6494. "style": {
  6495. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6496. },
  6497. "name": "思維導圖",
  6498. "forms": _formdiv,
  6499. "click": function() {
  6500. U.MD.D.I.openApplication(str, obj, info);
  6501. }
  6502. }
  6503. break;
  6504. case "doc":
  6505. aTool = 6;
  6506. _iframe = $$("iframe", {
  6507. "frameborder": "no",
  6508. "border": "0",
  6509. "scrolling ": "no",
  6510. "style": {
  6511. "cssText": "border:0;width:100%;height:100%"
  6512. },
  6513. "src": "/Office/Word/WordEditArea.htm"
  6514. })
  6515. _box.appendChild(_iframe);
  6516. _box.appendChild(_jie);
  6517. _formdiv = new U.UF.UI.form(
  6518. "協同文檔",
  6519. _box, {
  6520. "id": "docs" + cid + stage + task + tool,
  6521. "style": {
  6522. "width": "90%",
  6523. "height": "90%",
  6524. "overflow": 'hidden'
  6525. },
  6526. "onresize": function () { }
  6527. }, {
  6528. closecallback: function () { }
  6529. }, {
  6530. "style": {
  6531. "height": "36px"
  6532. }
  6533. }).form; //創建窗體
  6534. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6535. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6536. })
  6537. _taskbar = {
  6538. "id": str + _formdiv.id,
  6539. "style": {
  6540. "backgroundImage": "url(/img/icon/doc.png)"
  6541. },
  6542. "name": "協同文檔",
  6543. "forms": _formdiv,
  6544. "click": function() {
  6545. U.MD.D.I.openApplication(str, obj, info);
  6546. }
  6547. }
  6548. break;
  6549. }
  6550. const script1 = document.createElement("script");
  6551. script1.type = "text/javascript";
  6552. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6553. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6554. const script2 = document.createElement("script");
  6555. script2.type = "text/javascript";
  6556. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6557. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6558. const script3 = document.createElement("script");
  6559. script3.type = "text/javascript";
  6560. script3.charset = "UTF-8";
  6561. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6562. const script4 = document.createElement("script");
  6563. script4.type = "text/javascript";
  6564. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6565. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu5.js";
  6566. if (_iframe) {
  6567. if (str == 'doc') {
  6568. _iframe = _formdiv.querySelector('iframe')
  6569. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6570. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6571. _iframe.contentWindow.document.body.appendChild(script1);
  6572. _iframe.contentWindow.document.body.appendChild(script2);
  6573. // _iframe.contentWindow.document.body.appendChild(script3);
  6574. _iframe.contentWindow.document.body.appendChild(script4);
  6575. })
  6576. if (onloadListener) {
  6577. _iframe.contentDocument.location.reload()
  6578. } else {
  6579. _iframe.contentDocument.location.reload()
  6580. }
  6581. } else if (str == 'mind') {
  6582. _iframe = _formdiv.querySelector('iframe')
  6583. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6584. _iframe.contentWindow.document.body.appendChild(script1);
  6585. _iframe.contentWindow.document.body.appendChild(script2);
  6586. _iframe.contentWindow.document.body.appendChild(script4);
  6587. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6588. })
  6589. if (onloadListener) {
  6590. _iframe.contentDocument.location.reload()
  6591. } else {
  6592. _iframe.contentDocument.location.reload()
  6593. }
  6594. } else {
  6595. _iframe.onload = () => {
  6596. _iframe.contentWindow.document.body.appendChild(script1);
  6597. _iframe.contentWindow.document.body.appendChild(script2);
  6598. // _iframe.contentWindow.document.body.appendChild(script3);
  6599. _iframe.contentWindow.document.body.appendChild(script4);
  6600. };
  6601. }
  6602. _jie.onclick = async() => {
  6603. let text = ''
  6604. if (aTool == 6) {
  6605. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6606. } else if (aTool == 3) {
  6607. text = await U.MD.D.I.getEditorContent(_iframe);
  6608. }
  6609. _loading.style.display = 'flex'
  6610. console.log(_loading);
  6611. var _ajs = _iframe.contentWindow.document.createElement("script");
  6612. _ajs.type = "text/javascript";
  6613. _ajs.innerHTML =
  6614. // 'console.log(' + _loading + ');\n' +
  6615. 'var _js = document.createElement("script");\n' +
  6616. '_js.type="text/javascript";\n' +
  6617. '_js.charset="UTF-8";\n' +
  6618. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6619. "_js.onload = function(){\n" +
  6620. ' var a = document.getElementsByTagName("img")\n' +
  6621. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6622. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6623. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6624. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6625. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6626. "beforeUpload_shishi(file," +
  6627. "'" +
  6628. _userid +
  6629. "'" +
  6630. ", " +
  6631. "'" +
  6632. _cid +
  6633. "'" +
  6634. ", " +
  6635. "'" +
  6636. _stage +
  6637. "'" +
  6638. ", " +
  6639. "'" +
  6640. _task +
  6641. "'" +
  6642. ", " +
  6643. "'" +
  6644. _tool +
  6645. "'" +
  6646. ", " +
  6647. "'" +
  6648. (str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid) +
  6649. "'" +
  6650. ", " +
  6651. "'" +
  6652. aTool +
  6653. "'" +
  6654. ", " +
  6655. "`" +
  6656. text +
  6657. "`" +
  6658. ")\n" +
  6659. " });\n" +
  6660. "}\n" +
  6661. "document.head.appendChild(_js);\n";
  6662. _iframe.contentWindow.document.head.appendChild(_ajs);
  6663. }
  6664. }
  6665. //U.MD.D.I.openClick(str);
  6666. //如果有任務欄信息
  6667. // if (_taskbar) {
  6668. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6669. // }
  6670. }
  6671. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6672. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6673. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6674. _userinfo = US.userInfo, //登錄用戶信息
  6675. _userid = US.userInfo.userid //登錄用戶id
  6676. let _iframe;
  6677. let _cid = cid,
  6678. _stage = stage,
  6679. _task = task,
  6680. _tool = tool;
  6681. var _jie = $$("div", {
  6682. "style": {
  6683. "position": "absolute",
  6684. "bottom": "50px",
  6685. "right": "50px",
  6686. "zIndex": "9999",
  6687. "backgroundColor": "#2268bc",
  6688. "color": "#fff",
  6689. "padding": "12px 20px",
  6690. "cursor": "pointer",
  6691. "borderRadius": "4px",
  6692. },
  6693. "innerHTML": "上傳模板"
  6694. })
  6695. let aTool = ''
  6696. let _loading = document.createElement('div')
  6697. _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;"
  6698. // _loading.id = "";
  6699. let _lchild = document.createElement('div')
  6700. let _limg = document.createElement('img')
  6701. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6702. _limg.style = "width: 26px;margin-right: 10px;"
  6703. _lchild.appendChild(_limg)
  6704. let _lspan = document.createElement('span')
  6705. _lspan.innerHTML = "上傳中..."
  6706. _lchild.appendChild(_lspan)
  6707. _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%);"
  6708. _loading.appendChild(_lchild)
  6709. var _box = $$('div', {
  6710. "style": {
  6711. "position": "relative",
  6712. "width": "100%",
  6713. "height": "100%",
  6714. },
  6715. })
  6716. _box.appendChild(_loading)
  6717. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool + _userid
  6718. switch (str) {
  6719. case "whiteboard":
  6720. aTool = 1;
  6721. _iframe = $$("iframe", {
  6722. "frameborder": "no",
  6723. "border": "0",
  6724. "scrolling ": "no",
  6725. "style": {
  6726. "cssText": "border:0;width:100%;height:100%"
  6727. },
  6728. "src": "https://iwb.cocorobo.hk/"
  6729. })
  6730. _box.appendChild(_iframe);
  6731. _box.appendChild(_jie);
  6732. _formdiv = new U.UF.UI.form(
  6733. "電子白板",
  6734. _box, {
  6735. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6736. "style": {
  6737. "width": "90%",
  6738. "height": "90%",
  6739. "overflow": 'hidden'
  6740. },
  6741. "onresize": function () { }
  6742. }, {
  6743. closecallback: function () { }
  6744. }, {
  6745. "style": {
  6746. "height": "36px"
  6747. }
  6748. }).form; //創建窗體
  6749. _taskbar = {
  6750. "id": str + _formdiv.id,
  6751. "style": {
  6752. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6753. },
  6754. "name": "電子白板",
  6755. "forms": _formdiv,
  6756. "click": function() {
  6757. U.MD.D.I.openApplication(str, obj, info);
  6758. }
  6759. }
  6760. break;
  6761. case "mind":
  6762. aTool = 3;
  6763. _iframe = $$("iframe", {
  6764. "frameborder": "no",
  6765. "border": "0",
  6766. "scrolling ": "no",
  6767. "style": {
  6768. "cssText": "border:0;width:100%;height:100%"
  6769. },
  6770. "src": "/kityminder-editor/dist/index.html"
  6771. });
  6772. _box.appendChild(_iframe);
  6773. _box.appendChild(_jie);
  6774. _formdiv = new U.UF.UI.form(
  6775. "思維導圖",
  6776. _box, { //"/jsmind/example/demo.html"
  6777. "id": "minds_Yu" + cid + stage + task + tool,
  6778. "style": {
  6779. "width": "90%",
  6780. "height": "90%",
  6781. "overflow": 'hidden'
  6782. },
  6783. "onresize": function () { }
  6784. }, {
  6785. closecallback: function () { }
  6786. }, {
  6787. "style": {
  6788. "height": "36px"
  6789. }
  6790. }).form; //創建窗體
  6791. _taskbar = {
  6792. "id": str + _formdiv.id,
  6793. "style": {
  6794. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6795. },
  6796. "name": "思維導圖",
  6797. "forms": _formdiv,
  6798. "click": function() {
  6799. U.MD.D.I.openApplication(str, obj, info);
  6800. }
  6801. }
  6802. break;
  6803. case "doc":
  6804. aTool = 6;
  6805. _iframe = $$("iframe", {
  6806. "frameborder": "no",
  6807. "border": "0",
  6808. "scrolling ": "no",
  6809. "style": {
  6810. "cssText": "border:0;width:100%;height:100%"
  6811. },
  6812. "src": "/Office/Word/WordEditArea.htm"
  6813. })
  6814. _box.appendChild(_iframe);
  6815. _box.appendChild(_jie);
  6816. _formdiv = new U.UF.UI.form(
  6817. "協同文檔",
  6818. _box, {
  6819. "id": "docs_Yu" + cid + stage + task + tool,
  6820. "style": {
  6821. "width": "90%",
  6822. "height": "90%",
  6823. "overflow": 'hidden'
  6824. },
  6825. "onresize": function () { }
  6826. }, {
  6827. closecallback: function () { }
  6828. }, {
  6829. "style": {
  6830. "height": "36px"
  6831. }
  6832. }).form; //創建窗體
  6833. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6834. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6835. })
  6836. _taskbar = {
  6837. "id": str + _formdiv.id,
  6838. "style": {
  6839. "backgroundImage": "url(/img/icon/doc.png)"
  6840. },
  6841. "name": "協同文檔",
  6842. "forms": _formdiv,
  6843. "click": function() {
  6844. U.MD.D.I.openApplication(str, obj, info);
  6845. }
  6846. }
  6847. break;
  6848. case "CocoPi":
  6849. aTool = 57;
  6850. _iframe = $$("iframe", {
  6851. "allowpaymentrequest":"allowpaymentrequest",
  6852. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6853. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6854. "frameborder": "no",
  6855. "border": "0",
  6856. "scrolling ": "no",
  6857. "style": {
  6858. "cssText": "border:0;width:100%;height:100%"
  6859. },
  6860. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  6861. })
  6862. _box.appendChild(_iframe);
  6863. _box.appendChild(_jie);
  6864. _formdiv = new U.UF.UI.form(
  6865. "CocoPi",
  6866. _box, {
  6867. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6868. "style": {
  6869. "width": "90%",
  6870. "height": "90%",
  6871. "overflow": 'hidden'
  6872. },
  6873. "onresize": function() {}
  6874. }, {
  6875. closecallback: function() {}
  6876. }, {
  6877. "style": {
  6878. "height": "36px"
  6879. }
  6880. }).form; //創建窗體
  6881. _taskbar = {
  6882. "id": str + _formdiv.id,
  6883. "style": {
  6884. "backgroundImage": "url(/img/icon/cocopi.png)"
  6885. },
  6886. "name": "CocoPi",
  6887. "forms": _formdiv,
  6888. "click": function () {
  6889. U.MD.D.I.openApplication(str, obj, info);
  6890. }
  6891. }
  6892. break;
  6893. }
  6894. if (_iframe) {
  6895. if (str == 'doc') {
  6896. _iframe = _formdiv.querySelector('iframe')
  6897. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6898. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6899. })
  6900. if (onloadListener) {
  6901. _iframe.contentDocument.location.reload()
  6902. } else {
  6903. _iframe.contentDocument.location.reload()
  6904. }
  6905. } else if (str == 'mind') {
  6906. _iframe = _formdiv.querySelector('iframe')
  6907. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6908. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6909. })
  6910. if (onloadListener) {
  6911. _iframe.contentDocument.location.reload()
  6912. } else {
  6913. _iframe.contentDocument.location.reload()
  6914. }
  6915. } else if (str == 'whiteboard') {
  6916. _iframe = _formdiv.querySelector('iframe')
  6917. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6918. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6919. })
  6920. if (onloadListener) {
  6921. _iframe.contentDocument.location.reload()
  6922. } else {
  6923. _iframe.contentDocument.location.reload()
  6924. }
  6925. } else if (str == 'CocoPi') {
  6926. _iframe = _formdiv.querySelector('iframe')
  6927. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6928. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6929. })
  6930. if (onloadListener) {
  6931. _iframe.contentDocument.location.reload()
  6932. } else {
  6933. _iframe.contentDocument.location.reload()
  6934. }
  6935. } else {
  6936. _iframe.onload = () => {};
  6937. }
  6938. _jie.onclick = async() => {
  6939. let text = ''
  6940. let type = '2'
  6941. if (aTool == 1) {
  6942. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6943. type = '3'
  6944. } else if (aTool == 6) {
  6945. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6946. type = '1'
  6947. } else if (aTool == 3) {
  6948. text = await U.MD.D.I.getEditorContent(_iframe);
  6949. type = '2'
  6950. } else if (aTool == 57) {
  6951. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6952. type = '4'
  6953. }
  6954. _loading.style.display = 'flex'
  6955. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6956. }
  6957. }
  6958. //U.MD.D.I.openClick(str);
  6959. //如果有任務欄信息
  6960. // if (_taskbar) {
  6961. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6962. // }
  6963. }
  6964. U.MD.D.I.getContents = function(cid, s, task, t, uid, type, iframe) {
  6965. var xmlhttp;
  6966. var Mac, Sn, DeviceId
  6967. if (window.XMLHttpRequest) {
  6968. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6969. xmlhttp = new XMLHttpRequest();
  6970. }
  6971. else {
  6972. // IE6, IE5 瀏覽器執行代碼
  6973. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6974. }
  6975. xmlhttp.onreadystatechange = function() {
  6976. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6977. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6978. // resolve(res.value[0][0].text);
  6979. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6980. }
  6981. }
  6982. }
  6983. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6984. xmlhttp.send();
  6985. }
  6986. U.MD.D.I.getContents2 = function(cid, s, task, t, uid, type, iframe) {
  6987. var xmlhttp;
  6988. var Mac, Sn, DeviceId
  6989. if (window.XMLHttpRequest) {
  6990. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6991. xmlhttp = new XMLHttpRequest();
  6992. }
  6993. else {
  6994. // IE6, IE5 瀏覽器執行代碼
  6995. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6996. }
  6997. xmlhttp.onreadystatechange = function() {
  6998. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6999. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7000. // resolve(res.value[0][0].text);
  7001. if (type == '2') {
  7002. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7003. } else if (type == '3') {
  7004. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  7005. } else if (type == '4') {
  7006. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  7007. }
  7008. } else {
  7009. if (type == '2') {
  7010. iframe.contentWindow.editor.minder.importData('json', '')
  7011. } else if (type == '3') {
  7012. iframe.contentWindow.h.app.updateScene({ elements: [] })
  7013. } else if (type == '4') {
  7014. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7015. }
  7016. }
  7017. }
  7018. }
  7019. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7020. xmlhttp.send();
  7021. }
  7022. U.MD.D.I.setContents = function(cid, s, task, t, uid, type, text, loading, span) {
  7023. var xmlhttp;
  7024. var Mac, Sn, DeviceId
  7025. if (window.XMLHttpRequest) {
  7026. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7027. xmlhttp = new XMLHttpRequest();
  7028. }
  7029. else {
  7030. // IE6, IE5 瀏覽器執行代碼
  7031. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7032. }
  7033. xmlhttp.onreadystatechange = function () {
  7034. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7035. if (xmlhttp.response) {
  7036. // resolve(res.value[0][0].text);
  7037. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  7038. // $(fileInput).val('');
  7039. // });
  7040. span.innerHTML = '上傳成功'
  7041. setTimeout(() => {
  7042. loading.style.display = 'none'
  7043. }, 1000);
  7044. }
  7045. }
  7046. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  7047. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  7048. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  7049. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  7050. // 設置請求頭,表示請求體的編碼格式
  7051. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  7052. // 設置請求體,使用url-encoded格式的數據
  7053. }
  7054. }
  7055. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  7056. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7057. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7058. _userinfo = US.userInfo, //登錄用戶信息
  7059. _userid = US.userInfo.userid //登錄用戶id
  7060. let _iframe;
  7061. let _cid = cid,
  7062. _stage = stage,
  7063. _task = task,
  7064. _tool = tool;
  7065. var _jie = $$("div", {
  7066. "style": {
  7067. "position": "absolute",
  7068. "bottom": "50px",
  7069. "right": "50px",
  7070. "zIndex": "9999",
  7071. "backgroundColor": "#2268bc",
  7072. "color": "#fff",
  7073. "padding": "12px 20px",
  7074. "cursor": "pointer",
  7075. "borderRadius": "4px",
  7076. },
  7077. "innerHTML": "提交作業"
  7078. })
  7079. let aTool = ''
  7080. let _loading = document.createElement('div')
  7081. _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;"
  7082. // _loading.id = "";
  7083. let _lchild = document.createElement('div')
  7084. let _limg = document.createElement('img')
  7085. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7086. _limg.style = "width: 26px;margin-right: 10px;"
  7087. _lchild.appendChild(_limg)
  7088. let _lspan = document.createElement('span')
  7089. _lspan.innerHTML = "上傳中..."
  7090. _lchild.appendChild(_lspan)
  7091. _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%);"
  7092. _loading.appendChild(_lchild)
  7093. var _box = $$('div', {
  7094. "style": {
  7095. "position": "relative",
  7096. "width": "100%",
  7097. "height": "100%",
  7098. },
  7099. })
  7100. _box.appendChild(_loading)
  7101. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool + _userid
  7102. switch (str) {
  7103. case "CocoPi":
  7104. aTool = 57;
  7105. _iframe = $$("iframe", {
  7106. "allowpaymentrequest": "allowpaymentrequest",
  7107. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7108. "webkitallowfullscreen": "",
  7109. "mozallowfullscreen": "",
  7110. "frameborder": "no",
  7111. "border": "0",
  7112. "scrolling ": "no",
  7113. "style": {
  7114. "cssText": "border:0;width:100%;height:100%"
  7115. },
  7116. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7117. })
  7118. _box.appendChild(_iframe);
  7119. _box.appendChild(_jie);
  7120. _formdiv = new U.UF.UI.form(
  7121. "CocoPi",
  7122. _box, {
  7123. "id": "CocoPi_Upload" + cid + stage + task + tool,
  7124. "style": {
  7125. "width": "90%",
  7126. "height": "90%",
  7127. "overflow": 'hidden'
  7128. },
  7129. "onresize": function () { }
  7130. }, {
  7131. closecallback: function () { }
  7132. }, {
  7133. "style": {
  7134. "height": "36px"
  7135. }
  7136. }).form; //創建窗體
  7137. _taskbar = {
  7138. "id": str + _formdiv.id,
  7139. "style": {
  7140. "backgroundImage": "url(/img/icon/cocopi.png)"
  7141. },
  7142. "name": "CocoPi",
  7143. "forms": _formdiv,
  7144. "click": function() {
  7145. U.MD.D.I.openApplication(str, obj, info);
  7146. }
  7147. }
  7148. break;
  7149. }
  7150. if (_iframe) {
  7151. if (str == 'CocoPi') {
  7152. _iframe = _formdiv.querySelector('iframe')
  7153. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7154. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7155. })
  7156. if (onloadListener) {
  7157. _iframe.contentDocument.location.reload()
  7158. } else {
  7159. _iframe.contentDocument.location.reload()
  7160. }
  7161. }
  7162. _jie.onclick = async() => {
  7163. let text = ''
  7164. if (aTool == 57) {
  7165. text = _iframe.contentWindow.getLoadXmlStr()
  7166. }
  7167. _loading.style.display = 'flex'
  7168. console.log(_loading);
  7169. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function(res) {
  7170. _loading.style.display = 'none'
  7171. let _div = document.createElement('div')
  7172. _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;"
  7173. let _inner = document.createElement('div')
  7174. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7175. _inner.innerHTML = "上傳成功"
  7176. _div.appendChild(_inner)
  7177. _iframe.contentWindow.window.document.body.appendChild(_div)
  7178. _div.onclick = () => {
  7179. _iframe.contentWindow.window.document.body.removeChild(_div)
  7180. }
  7181. setTimeout(() => {
  7182. _iframe.contentWindow.window.document.body.removeChild(_div)
  7183. }, 1000);
  7184. }, [], { "type": "POST", "withCredentials": true });
  7185. }
  7186. }
  7187. }
  7188. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  7189. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7190. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7191. _userid = student.userid, //登錄用戶id
  7192. _username = student.student //用戶名字
  7193. let _iframe;
  7194. let _cid = cid,
  7195. _stage = stage,
  7196. _task = task,
  7197. _tool = tool;
  7198. var _jie = $$("div", {
  7199. "style": {
  7200. "position": "absolute",
  7201. "bottom": "50px",
  7202. "right": "50px",
  7203. "zIndex": "9999",
  7204. "backgroundColor": "#2268bc",
  7205. "color": "#fff",
  7206. "padding": "12px 20px",
  7207. "cursor": "pointer",
  7208. "borderRadius": "4px",
  7209. },
  7210. "innerHTML": "提交作業"
  7211. })
  7212. let aTool = ''
  7213. let _loading = document.createElement('div')
  7214. _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;"
  7215. // _loading.id = "";
  7216. let _lchild = document.createElement('div')
  7217. let _limg = document.createElement('img')
  7218. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7219. _limg.style = "width: 26px;margin-right: 10px;"
  7220. _lchild.appendChild(_limg)
  7221. let _lspan = document.createElement('span')
  7222. _lspan.innerHTML = "上傳中..."
  7223. _lchild.appendChild(_lspan)
  7224. _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%);"
  7225. _loading.appendChild(_lchild)
  7226. var _box = $$('div', {
  7227. "style": {
  7228. "position": "relative",
  7229. "width": "100%",
  7230. "height": "100%",
  7231. },
  7232. })
  7233. _box.appendChild(_loading)
  7234. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool + _userid
  7235. switch (str) {
  7236. case "CocoPi":
  7237. aTool = 57;
  7238. _iframe = $$("iframe", {
  7239. "allowpaymentrequest": "allowpaymentrequest",
  7240. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7241. "webkitallowfullscreen": "",
  7242. "mozallowfullscreen": "",
  7243. "frameborder": "no",
  7244. "border": "0",
  7245. "scrolling ": "no",
  7246. "style": {
  7247. "cssText": "border:0;width:100%;height:100%"
  7248. },
  7249. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7250. })
  7251. _box.appendChild(_iframe);
  7252. _box.appendChild(_jie);
  7253. _formdiv = new U.UF.UI.form(
  7254. "CocoPi-" + _username,
  7255. _box, {
  7256. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  7257. "style": {
  7258. "width": "90%",
  7259. "height": "90%",
  7260. "overflow": 'hidden'
  7261. },
  7262. "onresize": function () { }
  7263. }, {
  7264. closecallback: function () { }
  7265. }, {
  7266. "style": {
  7267. "height": "36px"
  7268. }
  7269. }).form; //創建窗體
  7270. _taskbar = {
  7271. "id": str + _formdiv.id,
  7272. "style": {
  7273. "backgroundImage": "url(/img/icon/cocopi.png)"
  7274. },
  7275. "name": "CocoPi",
  7276. "forms": _formdiv,
  7277. "click": function() {
  7278. U.MD.D.I.openApplication(str, obj, info);
  7279. }
  7280. }
  7281. break;
  7282. }
  7283. if (_iframe) {
  7284. if (str == 'CocoPi') {
  7285. _iframe = _formdiv.querySelector('iframe')
  7286. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7287. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7288. })
  7289. if (onloadListener) {
  7290. _iframe.contentDocument.location.reload()
  7291. } else {
  7292. _iframe.contentDocument.location.reload()
  7293. }
  7294. }
  7295. _jie.onclick = async() => {
  7296. let text = ''
  7297. if (aTool == 57) {
  7298. text = _iframe.contentWindow.getLoadXmlStr()
  7299. }
  7300. _loading.style.display = 'flex'
  7301. console.log(_loading);
  7302. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function(res) {
  7303. _loading.style.display = 'none'
  7304. let _div = document.createElement('div')
  7305. _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;"
  7306. let _inner = document.createElement('div')
  7307. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7308. _inner.innerHTML = "上傳成功"
  7309. _div.appendChild(_inner)
  7310. _iframe.contentWindow.window.document.body.appendChild(_div)
  7311. _div.onclick = () => {
  7312. _iframe.contentWindow.window.document.body.removeChild(_div)
  7313. }
  7314. setTimeout(() => {
  7315. _iframe.contentWindow.window.document.body.removeChild(_div)
  7316. }, 1000);
  7317. }, [], { "type": "POST", "withCredentials": true });
  7318. }
  7319. }
  7320. }
  7321. U.MD.D.I.getUploadContent = function(cid, s, task, t, uid, atool, type, iframe) {
  7322. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function(res) {
  7323. if (res.value[0].length > 0) {
  7324. if (atool == 57) {
  7325. iframe.contentWindow.loadingXml(res.value[0][0].content)
  7326. }
  7327. } else {
  7328. if (atool == 57) {
  7329. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  7330. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7331. }
  7332. }
  7333. }, [], { "type": "POST", "withCredentials": true });
  7334. }