DeskTop.js 454 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829
  1. /*
  2. 此處為桌面系統啟動應用區域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面應用處理
  5. //判斷圖片是否在拖拽,如果是拖拽圖標的過程是不會打開圖片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教師桌面圖標的全局變量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  17. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  18. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  19. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  20. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  21. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  22. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  23. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  24. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  25. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  26. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  27. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  28. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  29. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  30. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  31. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  32. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  33. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  34. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  35. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  36. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  37. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  38. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  39. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  40. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  41. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  42. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  43. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  44. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  45. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  46. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  47. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  48. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  49. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  50. ];
  51. //極簡模式
  52. U.MD.D.I.easyDeskIcon = [
  53. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  55. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  56. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  57. // { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  58. ];
  59. //教師桌面圖標的全局變量
  60. U.MD.D.I.teacherDeskIcon2 = [
  61. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  62. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  63. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  64. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  65. // { "Name": "項目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  66. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  67. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  68. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  69. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  70. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  71. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  72. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  73. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  74. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  75. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  76. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  77. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  78. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  79. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  80. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  81. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  82. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  83. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  84. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  85. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  86. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  87. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  88. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  89. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  90. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  91. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  92. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  93. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  94. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  95. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  96. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  97. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  98. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  99. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  100. ];
  101. U.MD.D.I.studentDeskIcon = [
  102. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  103. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  104. // { "Name": "我的項目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  105. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  106. // { "Name": "我的評價", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  107. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  108. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  109. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  110. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  111. // { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  112. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  113. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  114. // { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  115. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  116. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  117. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  118. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  119. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  120. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  121. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  122. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  123. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  124. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  125. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  126. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  127. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  128. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  129. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  130. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  131. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  132. ];
  133. U.MD.D.I.studentDeskIcon2 = [
  134. // { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  135. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  136. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  137. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  138. ]
  139. U.MD.D.I.studentDeskIcon3 = [
  140. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  141. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  142. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. ]
  144. U.MD.D.I.schoolDeskIcon = [
  145. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  146. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  147. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  148. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  149. { "Name": "學習資料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  150. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  151. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  152. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  153. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  154. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  155. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  156. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  157. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  158. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  159. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  160. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  161. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  162. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  163. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  164. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  165. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  166. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  167. ];
  168. U.MD.D.I.orgDeskIcon = [
  169. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  170. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  171. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  172. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  173. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  174. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  175. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  176. ];
  177. U.MD.D.I.orgStemDeskIcon = [
  178. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  179. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  180. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  181. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  182. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  183. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  184. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  185. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  186. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  187. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  188. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  189. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  190. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  191. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  192. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  193. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  194. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  195. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  196. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  197. ];
  198. U.MD.D.I.szulsDeskIcon = [
  199. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  200. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  201. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  202. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  204. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  205. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  206. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  207. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  209. ];
  210. U.MD.D.I.hanDeskIcon = [
  211. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  212. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  213. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  214. { "Name": "漢字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  215. { "Name": "國學經典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  216. { "Name": "筆畫訓練", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  217. { "Name": "書法課堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  218. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  219. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  220. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  221. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  222. ];
  223. U.MD.D.I.GMteacherDeskIcon = [
  224. { "Name": "課程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  225. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "學生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  227. { "Name": "學生評價", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  228. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  229. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  230. { "Name": "班級管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  231. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  232. { "Name": "課程進展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  233. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  234. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  235. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  236. ];
  237. U.MD.D.I.GMstudentDeskIcon = [
  238. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  239. { "Name": "我的評價", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  240. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  241. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  242. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  243. ];
  244. //北師大
  245. U.MD.D.I.BSDNSteacherDeskIcon = [
  246. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  247. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  248. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  249. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  250. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  251. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  252. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  253. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  254. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  255. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  256. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  257. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  258. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  259. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  260. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  261. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  262. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  263. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  264. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  265. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  266. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  267. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  268. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  269. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  270. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  271. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  272. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  273. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  274. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  275. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  276. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  277. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  278. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  279. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  280. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  281. { "Name": "數字實驗室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  282. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  283. ];
  284. //松山湖
  285. U.MD.D.I.SONGteacherDeskIcon = [
  286. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  287. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  288. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  289. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  290. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  291. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  292. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  293. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  294. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  295. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  296. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  297. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  298. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  299. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  300. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  301. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  302. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  303. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  304. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  305. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  306. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  307. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  308. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  309. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  310. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  311. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  312. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  313. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  314. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  315. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  316. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  317. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  318. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  319. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  320. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  321. ];
  322. U.MD.D.I.tcStudentDeskIcon = [
  323. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  324. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  325. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  326. ];
  327. U.MD.D.I.tcTeacherDeskIcon = [
  328. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  329. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  330. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  331. // { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  332. // { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  333. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  334. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  335. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  338. ];
  339. U.MD.D.I.tcOrganizerDeskIcon = [
  340. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  341. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  342. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  343. { "Name": "師生項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  344. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  345. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  346. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  347. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  348. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  349. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  350. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  351. ];
  352. U.MD.D.I.szscStudentDeskIcon = [
  353. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  354. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  355. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  356. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  357. ];
  358. U.MD.D.I.szscTeacherDeskIcon = [
  359. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  360. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  361. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  362. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  363. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  364. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  365. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  366. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  367. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  368. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  369. ];
  370. U.MD.D.I.szscOrganizerDeskIcon = [
  371. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  372. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  373. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  374. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  375. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  376. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  377. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  378. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  379. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  380. ];
  381. U.MD.D.I.wankeTeacherDeskIcon = [ //1c3b9def-8fbe-11ed-b13d-005056b86db5
  382. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  383. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  384. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  385. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  386. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  387. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  388. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  389. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  390. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  391. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  392. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  393. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  394. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  395. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  396. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  397. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  398. ];
  399. U.MD.D.I.wankeAdminDeskIcon = [
  400. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  401. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  402. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  403. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  404. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  405. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  406. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  407. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  408. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  409. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  410. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  411. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  412. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  413. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  414. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  415. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  416. ];
  417. U.MD.D.I.lhsTeacherDeskIcon = [ //未來小學
  418. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  419. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  420. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  421. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  422. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  423. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  424. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  425. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  426. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  427. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  428. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  429. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  430. ];
  431. U.MD.D.I.lhsAdminDeskIcon = [ //未來小學admin
  432. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  433. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  434. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  435. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  436. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  437. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  438. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  439. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  440. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  441. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  442. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  443. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  444. ];
  445. //明德教師桌面圖標的全局變量
  446. U.MD.D.I.MingdeTeacherDeskIcon = [
  447. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  448. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  449. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  450. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  451. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  452. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  453. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  454. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  455. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  456. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  457. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  458. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  459. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  460. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  461. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  462. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  463. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  464. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  465. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  466. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  467. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  468. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  469. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  470. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  471. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  472. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  473. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  474. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  475. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  476. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  477. ];
  478. //97c4ee8b-d010-4042-986d-e9d3c217264f
  479. //教師桌面圖標的全局變量
  480. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  481. { "Name": "工作項目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  482. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  483. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  484. // { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  485. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  486. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  487. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  488. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  489. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  490. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  491. ];
  492. //福田
  493. U.MD.D.I.futianTeacherDeskIcon = [
  494. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  495. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  496. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  497. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  498. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  499. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  500. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  501. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  502. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  503. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  504. ];
  505. //福田
  506. U.MD.D.I.futianAdminDeskIcon = [
  507. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  508. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  509. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  510. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  511. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  512. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  513. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  514. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  515. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  516. ];
  517. //lotech
  518. U.MD.D.I.lotechTeacherDeskIcon = [
  519. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  520. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  521. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  522. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  523. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  524. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  525. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  526. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  527. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  528. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  529. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  530. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  531. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  532. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  533. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  534. ];
  535. //龍華中心小學教師桌面圖標的全局變量
  536. U.MD.D.I.longhuateacherDeskIcon = [
  537. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  538. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  539. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  540. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  541. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  542. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  543. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  544. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  545. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  546. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  547. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  548. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  549. ];
  550. //教科院實小教師桌面圖標的全局變量
  551. U.MD.D.I.siesteacherDeskIcon = [
  552. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  553. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  554. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  555. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  556. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  557. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  558. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  559. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  560. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  561. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  562. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  563. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  564. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  565. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  566. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  567. ];
  568. //教科院實小教師桌面圖標的全局變量
  569. U.MD.D.I.siesStudentDeskIcon = [
  570. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  571. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  572. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  573. ];
  574. //福田
  575. U.MD.D.I.gdjgTeacherDeskIcon = [
  576. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  577. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  578. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  579. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  580. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  581. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  582. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  583. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  584. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  585. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  586. ];
  587. //gdjg
  588. U.MD.D.I.gdjgAdminDeskIcon = [
  589. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  590. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  591. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  592. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  593. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  594. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  595. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  596. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  597. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  598. ];
  599. //hk
  600. U.MD.D.I.hkteacherDeskIcon = [
  601. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  602. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  603. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  604. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  605. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  606. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  607. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  608. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  609. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  610. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  611. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  612. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  613. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  614. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  615. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  616. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  617. { "Name": "AI Agent", "Url": "aiagent", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  618. ];
  619. //hk
  620. U.MD.D.I.hkStudentDeskIcon = [
  621. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  622. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  623. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  624. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  625. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  626. ];
  627. //香海正覺蓮社佛教正覺中學
  628. U.MD.D.I.hkZJLSteacherDeskIcon = [
  629. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  630. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  631. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  632. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  633. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  634. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  635. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  636. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  637. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  638. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  639. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  640. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  641. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  642. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  643. ];
  644. //香海正覺蓮社佛教正覺中學
  645. U.MD.D.I.hkZJLSStudentDeskIcon = [
  646. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  647. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  648. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  649. ];
  650. //雲海
  651. U.MD.D.I.yunhaiTeacherDeskIcon = [
  652. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  653. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  654. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  655. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  656. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  657. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  658. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  659. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  660. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  661. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  662. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  663. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  664. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  665. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  666. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  667. ];
  668. //福田
  669. U.MD.D.I.heyuanTeacherDeskIcon = [
  670. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  671. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  672. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  673. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  674. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  675. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  676. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  677. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  678. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  679. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  680. ];
  681. //福田
  682. U.MD.D.I.heyuanAdminDeskIcon = [
  683. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  684. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  685. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  686. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  687. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  688. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  689. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  690. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  691. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  692. ];
  693. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  694. U.MD.D.I.szherTeacherDeskIcon = [
  695. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  696. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.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": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  702. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  703. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  704. ];
  705. //dsei
  706. U.MD.D.I.dseiTeacherDeskIcon = [
  707. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  708. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  709. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  710. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  711. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  712. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  713. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  714. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  715. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  716. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  717. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  718. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  719. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  720. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  721. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  722. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  723. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  724. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  725. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  726. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  727. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  728. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  729. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  730. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  731. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  732. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  733. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  734. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  735. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  736. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  737. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  738. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  739. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  740. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  741. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  742. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  743. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  744. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  745. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  746. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  747. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  748. ];
  749. //dsei
  750. U.MD.D.I.dseiAdminDeskIcon = [
  751. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  752. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  753. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  754. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  755. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  756. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  757. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  758. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  759. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  760. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  761. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  762. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  763. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  764. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  765. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  766. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  767. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  768. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  769. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  770. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  771. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  772. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  773. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  774. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  775. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  776. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  777. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  778. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  779. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  780. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  781. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  782. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  783. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  784. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  785. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  786. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  787. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  788. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  789. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  790. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  791. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  792. ];
  793. //dsei
  794. U.MD.D.I.dseiStudentDeskIcon = [
  795. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  796. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  797. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  798. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  799. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  800. ];
  801. //未來教育基地
  802. U.MD.D.I.szjkyTeacherDeskIcon = [
  803. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  804. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  805. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  806. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  807. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  808. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  809. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  810. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  811. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  812. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  813. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  814. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  815. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  816. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  817. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  818. ];
  819. //未來教育基地
  820. U.MD.D.I.szjkyAdminDeskIcon = [
  821. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  822. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  823. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  824. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  825. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  826. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  827. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  828. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  829. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  830. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  831. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  832. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  833. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  834. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  835. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  836. ];
  837. //未來教育基地
  838. U.MD.D.I.szjkyStudentDeskIcon = [
  839. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  840. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  841. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  842. ];
  843. //成華教育局
  844. U.MD.D.I.chjyjTeacherDeskIcon = [
  845. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  846. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  847. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  848. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  849. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  850. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  851. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  852. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  853. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  854. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  855. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  856. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  857. ];
  858. //成華教育局chjyj
  859. U.MD.D.I.chjyjAdminDeskIcon = [
  860. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  861. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  862. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  863. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  864. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  865. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  866. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  867. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  868. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  869. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  870. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  871. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  872. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  873. ];
  874. //成華教育局chjyj
  875. U.MD.D.I.chjyjStudentDeskIcon = [
  876. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  877. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  878. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  879. ];
  880. //tpc
  881. U.MD.D.I.tpcStudentDeskIcon = [
  882. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  883. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  884. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  885. ];
  886. //tpc
  887. U.MD.D.I.tpcTeacherDeskIcon = [
  888. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  889. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  890. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  891. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  892. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  893. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  894. ];
  895. //tpc
  896. U.MD.D.I.tpcAdminDeskIcon = [
  897. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  898. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  899. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  900. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  901. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  902. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  903. ];
  904. //#region 桌面初始化a
  905. /**
  906. * 初始化桌面的起始函數
  907. *
  908. */
  909. U.MD.D.I.init = function () {
  910. if ($("#U_MD_D_K")[0]) {
  911. //初始化桌面圖標
  912. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  913. // var clickUrl = ':12588/requestIp.php';
  914. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  915. // U.MD.D.I.Ip = data;
  916. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  917. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  918. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  919. // })
  920. // //初始化任務欄,因為是靜態的,所以直接改變樣式即可.
  921. // })
  922. }
  923. }
  924. /**
  925. * 模式切換
  926. *
  927. */
  928. U.MD.D.I.ModeCheck = function (type) {
  929. if (US.Config.type == type) {
  930. return
  931. }
  932. US.Config.type = type
  933. $('.U_PBL_Check .active')[0].className = ''
  934. if (type == 1) {
  935. $('.U_PBL_Check div')[0].className = 'active'
  936. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  937. } else {
  938. $('.U_PBL_Check div')[1].className = 'active'
  939. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  940. }
  941. //初始化桌面圖標
  942. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  943. if (type == 2) {
  944. U.MD.D.I.openApplication("project")
  945. }
  946. }
  947. /**
  948. * 隱藏任務欄
  949. *
  950. * @param {element} 桌面元素
  951. */
  952. U.MD.D.I.hiddenTaskbar = function (el) {
  953. //任務欄位置變小
  954. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  955. //桌面的位置變大
  956. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  957. }
  958. /**
  959. * 隱藏任務欄
  960. *
  961. * @param {element} 桌面元素
  962. */
  963. U.MD.D.I.hiddenTaskbarout = function (el) {
  964. //任務欄位置變小
  965. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  966. //任務欄位置變化
  967. U.selectEl(el).css({ "bottom": "-60px" });
  968. //桌面的位置變大
  969. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  970. }
  971. }
  972. /**
  973. * 初始化打印桌面圖標
  974. *
  975. * @param {element} 桌面元素
  976. */
  977. U.MD.D.I.initDesktopIcons = function (el, type) {
  978. var i, //用於循環
  979. _content, //桌面圖標元素
  980. _iconcontent, //桌面圖標元素
  981. _frag = $$("frag"), //定義一個碎片元素
  982. _type = US.userInfo.type,
  983. _org = US.userInfo.org,
  984. _oid = US.userInfo.organizeid,
  985. _role = US.userInfo.role,
  986. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //獲取教師端桌面圖標
  987. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //極簡模式桌面圖標
  988. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //獲取教師端桌面圖標
  989. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //獲取學生端桌面圖標
  990. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //獲取學生端桌面圖標
  991. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //獲取學生端桌面圖標
  992. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //獲取組織桌面圖標
  993. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  994. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  995. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  996. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //獲取測試學校桌面圖標
  997. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon, //獲取北師大
  998. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon, //獲取周佳名工作室
  999. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon, //獲取松山湖
  1000. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon, //獲取萬科雙語
  1001. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon, //獲取萬科雙語
  1002. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon, //獲取萬科雙語
  1003. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon, //獲取未來小學
  1004. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon, //獲取未來小學
  1005. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //獲取光明學校桌面圖標
  1006. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //獲取光明學校桌面圖標
  1007. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon, //騰訊學生
  1008. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon, //騰訊學生
  1009. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon, //福田
  1010. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon, //福田
  1011. _szjkyTeacherDeskIconInfo = U.MD.D.I.szjkyTeacherDeskIcon, //未來教育基地
  1012. _szjkyAdminDeskIconInfo = U.MD.D.I.szjkyAdminDeskIcon, //未來教育基地
  1013. _szjkyStudentDeskIconInfo = U.MD.D.I.szjkyStudentDeskIcon, //未來教育基地
  1014. _chjyjTeacherDeskIconInfo = U.MD.D.I.chjyjTeacherDeskIcon, //成華教育局
  1015. _chjyjAdminDeskIconInfo = U.MD.D.I.chjyjAdminDeskIcon, //成華教育局
  1016. _chjyjStudentDeskIconInfo = U.MD.D.I.chjyjStudentDeskIcon, //成華教育局
  1017. _dseiTeacherDeskIconInfo = U.MD.D.I.dseiTeacherDeskIcon, //dsei
  1018. _dseiAdminDeskIconInfo = U.MD.D.I.dseiAdminDeskIcon, //dsei
  1019. _dseiStudentDeskIconInfo = U.MD.D.I.dseiStudentDeskIcon, //dsei
  1020. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon, //福田
  1021. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon, //福田
  1022. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon, //szher
  1023. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon, //
  1024. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon, //
  1025. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon, //lotech
  1026. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon, //龍華中心
  1027. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon, //sies
  1028. _siesStudentDeskIconInfo = U.MD.D.I.siesStudentDeskIcon, //sies
  1029. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon, //騰訊學生
  1030. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon, //hk
  1031. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon, //hk
  1032. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon, //hk
  1033. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon, //hk
  1034. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon, //雲海
  1035. _tpcStudentDeskIconInfo= U.MD.D.I.tpcStudentDeskIcon,
  1036. _tpcTeacherDeskIconInfo= U.MD.D.I.tpcTeacherDeskIcon,
  1037. _tpcOrganizerDeskIconInfo= U.MD.D.I.tpcAdminDeskIcon,
  1038. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon, //網絡夏令營
  1039. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon, //網絡夏令營
  1040. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon; //網絡夏令營
  1041. 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'];
  1042. var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d", "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b", "150e3120-9195-11ed-b13d-005056b86db5", "ee40e8e3-e36c-4872-8105-cf395481012s", '97c4ee8b-d010-4042-986d-e9d3c217264f', 'ec0af97a-7c10-4259-a7eb-db9cc8174cdc', '4df1b570-f6ac-48fc-8d50-d0b157dae776', 'e632b86c-f89d-11ed-91d8-005056b86db5', 'b50cf65a-001c-11ee-91d8-005056b86db5', '578de748-05d2-11ee-91d8-005056b86db5', '54f09f1e-09f0-11ee-91d8-005056b86db5', '7b016f69-0f4f-11ee-91d8-005056b86db5', '1973f6c7-1561-11ee-91d8-005056b86db5', '2fa75e51-189a-11ee-91d8-005056b86db5', 'a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956'];
  1043. //清楚桌面圖標
  1044. el.innerHTML = "";
  1045. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  1046. _teacherDesktopIconInfo.push(
  1047. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1048. { "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)" } },
  1049. )
  1050. _easyDesktopIconInfo.push({ "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } })
  1051. }
  1052. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  1053. _teacherDesktopIconInfo.push(
  1054. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1055. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  1056. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1057. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1058. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  1059. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  1060. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1061. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1062. { "Name": "評測管理", "Url": "testTeacher", "style": { "cssText": "background-image:url(/img/icon/testTeacher.png)" } },
  1063. { "Name": "評測中心", "Url": "testStudent", "style": { "cssText": "background-image:url(/img/icon/testStudent.png)" } },
  1064. )
  1065. }
  1066. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5') {
  1067. _teacherDesktopIconInfo.push(
  1068. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1069. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1070. )
  1071. _studentDesktopIconInfo.push(
  1072. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1073. )
  1074. }
  1075. if (_oid == 'cf8841e8-c7c0-11ed-9546-005056b86db5' || _oid == "d67940a5-510c-40ea-9c9a-2631ab03013a") {
  1076. _teacherDesktopIconInfo.push(
  1077. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1078. )
  1079. }
  1080. if (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
  1081. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  1082. if (el.Name == '項目管理') {
  1083. el.Name = 'PBL項目'
  1084. }
  1085. return el
  1086. })
  1087. }
  1088. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  1089. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  1090. return el.Name != '魔盒識字' && el.Name != '24點'
  1091. })
  1092. }
  1093. 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) {
  1094. _studentDesktopIconInfo.push({ "Name": "我的評價", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },)
  1095. }
  1096. //循環創建桌面圖標
  1097. if (type == 1) {
  1098. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  1099. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1100. _content = $$("div", {
  1101. className: "U_MD_D_KO",
  1102. "onmousedown": U.UF.C.closure(function (obj) {
  1103. //防止拖動圖標即打開了桌面應用
  1104. U.MD.D.click(this, obj);
  1105. }, [_studentDesktopIconInfo[i]]),
  1106. "onclick": U.UF.C.closure(function (obj) {
  1107. //防止拖動圖標即打開了桌面應用
  1108. U.MD.D.click(this, obj);
  1109. }, [_studentDesktopIconInfo[i]])
  1110. }, _frag); //
  1111. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1112. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1113. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1114. }
  1115. } else if (_type == 2 && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1116. for (i = 0; i < _hkZJLSStudentDeskIconInfo.length; i++) {
  1117. _content = $$("div", {
  1118. className: "U_MD_D_KO",
  1119. "onmousedown": U.UF.C.closure(function (obj) {
  1120. //防止拖動圖標即打開了桌面應用
  1121. U.MD.D.click(this, obj);
  1122. }, [_hkZJLSStudentDeskIconInfo[i]]),
  1123. "onclick": U.UF.C.closure(function (obj) {
  1124. //防止拖動圖標即打開了桌面應用
  1125. U.MD.D.click(this, obj);
  1126. }, [_hkZJLSStudentDeskIconInfo[i]])
  1127. }, _frag); //
  1128. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1129. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  1130. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  1131. } //
  1132. } else if (_type == 2 && (_org == "a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956")) {
  1133. for (i = 0; i < _tpcStudentDeskIconInfo.length; i++) {
  1134. _content = $$("div", {
  1135. className: "U_MD_D_KO",
  1136. "onmousedown": U.UF.C.closure(function (obj) {
  1137. //防止拖動圖標即打開了桌面應用
  1138. U.MD.D.click(this, obj);
  1139. }, [_tpcStudentDeskIconInfo[i]]),
  1140. "onclick": U.UF.C.closure(function (obj) {
  1141. //防止拖動圖標即打開了桌面應用
  1142. U.MD.D.click(this, obj);
  1143. }, [_tpcStudentDeskIconInfo[i]])
  1144. }, _frag); //
  1145. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1146. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tpcStudentDeskIconInfo[i].style }, _iconcontent);
  1147. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tpcStudentDeskIconInfo[i].Name }, _iconcontent);
  1148. } //
  1149. } else if (_type == 2 && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5")) {
  1150. for (i = 0; i < _chjyjStudentDeskIconInfo.length; i++) {
  1151. _content = $$("div", {
  1152. className: "U_MD_D_KO",
  1153. "onmousedown": U.UF.C.closure(function (obj) {
  1154. //防止拖動圖標即打開了桌面應用
  1155. U.MD.D.click(this, obj);
  1156. }, [_chjyjStudentDeskIconInfo[i]]),
  1157. "onclick": U.UF.C.closure(function (obj) {
  1158. //防止拖動圖標即打開了桌面應用
  1159. U.MD.D.click(this, obj);
  1160. }, [_chjyjStudentDeskIconInfo[i]])
  1161. }, _frag); //
  1162. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1163. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjStudentDeskIconInfo[i].style }, _iconcontent);
  1164. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjStudentDeskIconInfo[i].Name }, _iconcontent);
  1165. }
  1166. } else if (_type == 2 && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5")) {
  1167. for (i = 0; i < _szjkyStudentDeskIconInfo.length; i++) {
  1168. _content = $$("div", {
  1169. className: "U_MD_D_KO",
  1170. "onmousedown": U.UF.C.closure(function (obj) {
  1171. //防止拖動圖標即打開了桌面應用
  1172. U.MD.D.click(this, obj);
  1173. }, [_szjkyStudentDeskIconInfo[i]]),
  1174. "onclick": U.UF.C.closure(function (obj) {
  1175. //防止拖動圖標即打開了桌面應用
  1176. U.MD.D.click(this, obj);
  1177. }, [_szjkyStudentDeskIconInfo[i]])
  1178. }, _frag); //
  1179. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1180. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyStudentDeskIconInfo[i].style }, _iconcontent);
  1181. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyStudentDeskIconInfo[i].Name }, _iconcontent);
  1182. }
  1183. } else if (_type == 2 && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5")) {
  1184. for (i = 0; i < _dseiStudentDeskIconInfo.length; i++) {
  1185. _content = $$("div", {
  1186. className: "U_MD_D_KO",
  1187. "onmousedown": U.UF.C.closure(function (obj) {
  1188. //防止拖動圖標即打開了桌面應用
  1189. U.MD.D.click(this, obj);
  1190. }, [_dseiStudentDeskIconInfo[i]]),
  1191. "onclick": U.UF.C.closure(function (obj) {
  1192. //防止拖動圖標即打開了桌面應用
  1193. U.MD.D.click(this, obj);
  1194. }, [_dseiStudentDeskIconInfo[i]])
  1195. }, _frag); //
  1196. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1197. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiStudentDeskIconInfo[i].style }, _iconcontent);
  1198. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiStudentDeskIconInfo[i].Name }, _iconcontent);
  1199. }
  1200. } else if (_type == 2 && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1201. for (i = 0; i < _siesStudentDeskIconInfo.length; i++) {
  1202. _content = $$("div", {
  1203. className: "U_MD_D_KO",
  1204. "onmousedown": U.UF.C.closure(function (obj) {
  1205. //防止拖動圖標即打開了桌面應用
  1206. U.MD.D.click(this, obj);
  1207. }, [_siesStudentDeskIconInfo[i]]),
  1208. "onclick": U.UF.C.closure(function (obj) {
  1209. //防止拖動圖標即打開了桌面應用
  1210. U.MD.D.click(this, obj);
  1211. }, [_siesStudentDeskIconInfo[i]])
  1212. }, _frag); //
  1213. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1214. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesStudentDeskIconInfo[i].style }, _iconcontent);
  1215. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesStudentDeskIconInfo[i].Name }, _iconcontent);
  1216. }
  1217. } else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1218. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  1219. _content = $$("div", {
  1220. className: "U_MD_D_KO",
  1221. "onmousedown": U.UF.C.closure(function (obj) {
  1222. //防止拖動圖標即打開了桌面應用
  1223. U.MD.D.click(this, obj);
  1224. }, [_hkStudentDeskIconInfo[i]]),
  1225. "onclick": U.UF.C.closure(function (obj) {
  1226. //防止拖動圖標即打開了桌面應用
  1227. U.MD.D.click(this, obj);
  1228. }, [_hkStudentDeskIconInfo[i]])
  1229. }, _frag); //
  1230. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1231. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  1232. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  1233. }
  1234. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  1235. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1236. _content = $$("div", {
  1237. className: "U_MD_D_KO",
  1238. "onmousedown": U.UF.C.closure(function (obj) {
  1239. //防止拖動圖標即打開了桌面應用
  1240. U.MD.D.click(this, obj);
  1241. }, [_studentDesktopIconInfo[i]]),
  1242. "onclick": U.UF.C.closure(function (obj) {
  1243. //防止拖動圖標即打開了桌面應用
  1244. U.MD.D.click(this, obj);
  1245. }, [_studentDesktopIconInfo[i]])
  1246. }, _frag); //
  1247. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1248. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1249. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1250. }
  1251. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  1252. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  1253. _content = $$("div", {
  1254. className: "U_MD_D_KO",
  1255. "onmousedown": U.UF.C.closure(function (obj) {
  1256. //防止拖動圖標即打開了桌面應用
  1257. U.MD.D.click(this, obj);
  1258. }, [_tcStudentDeskIconInfo[i]]),
  1259. "onclick": U.UF.C.closure(function (obj) {
  1260. //防止拖動圖標即打開了桌面應用
  1261. U.MD.D.click(this, obj);
  1262. }, [_tcStudentDeskIconInfo[i]])
  1263. }, _frag); //
  1264. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1265. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  1266. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  1267. }
  1268. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  1269. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  1270. _content = $$("div", {
  1271. className: "U_MD_D_KO",
  1272. "onmousedown": U.UF.C.closure(function (obj) {
  1273. //防止拖動圖標即打開了桌面應用
  1274. U.MD.D.click(this, obj);
  1275. }, [_szscStudentDeskIconInfo[i]]),
  1276. "onclick": U.UF.C.closure(function (obj) {
  1277. //防止拖動圖標即打開了桌面應用
  1278. U.MD.D.click(this, obj);
  1279. }, [_szscStudentDeskIconInfo[i]])
  1280. }, _frag); //
  1281. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1282. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  1283. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  1284. }
  1285. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  1286. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  1287. _content = $$("div", {
  1288. className: "U_MD_D_KO",
  1289. "onmousedown": U.UF.C.closure(function (obj) {
  1290. //防止拖動圖標即打開了桌面應用
  1291. U.MD.D.click(this, obj);
  1292. }, [_studentDesktopIconInfo3[i]]),
  1293. "onclick": U.UF.C.closure(function (obj) {
  1294. //防止拖動圖標即打開了桌面應用
  1295. U.MD.D.click(this, obj);
  1296. }, [_studentDesktopIconInfo3[i]])
  1297. }, _frag); //
  1298. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1299. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  1300. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  1301. }
  1302. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  1303. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  1304. _content = $$("div", {
  1305. className: "U_MD_D_KO",
  1306. "onmousedown": U.UF.C.closure(function (obj) {
  1307. //防止拖動圖標即打開了桌面應用
  1308. U.MD.D.click(this, obj);
  1309. }, [_studentDesktopIconInfo2[i]]),
  1310. "onclick": U.UF.C.closure(function (obj) {
  1311. //防止拖動圖標即打開了桌面應用
  1312. U.MD.D.click(this, obj);
  1313. }, [_studentDesktopIconInfo2[i]])
  1314. }, _frag); //
  1315. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1316. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  1317. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  1318. }
  1319. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  1320. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  1321. _content = $$("div", {
  1322. className: "U_MD_D_KO",
  1323. "onmousedown": U.UF.C.closure(function (obj) {
  1324. //防止拖動圖標即打開了桌面應用
  1325. U.MD.D.click(this, obj);
  1326. }, [_wanketeacherDesktopIconInfo[i]]),
  1327. "onclick": U.UF.C.closure(function (obj) {
  1328. //防止拖動圖標即打開了桌面應用
  1329. U.MD.D.click(this, obj);
  1330. }, [_wanketeacherDesktopIconInfo[i]])
  1331. }, _frag); //
  1332. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1333. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  1334. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  1335. }
  1336. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1337. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  1338. _content = $$("div", {
  1339. className: "U_MD_D_KO",
  1340. "onmousedown": U.UF.C.closure(function (obj) {
  1341. //防止拖動圖標即打開了桌面應用
  1342. U.MD.D.click(this, obj);
  1343. }, [_wankeAdminDesktopIconInfo[i]]),
  1344. "onclick": U.UF.C.closure(function (obj) {
  1345. //防止拖動圖標即打開了桌面應用
  1346. U.MD.D.click(this, obj);
  1347. }, [_wankeAdminDesktopIconInfo[i]])
  1348. }, _frag); //
  1349. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1350. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1351. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1352. }
  1353. } else if ((_type == 1 || _type == 4) && _org == "a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956" && _role == 1) {
  1354. for (i = 0; i < _tpcOrganizerDeskIconInfo.length; i++) {
  1355. _content = $$("div", {
  1356. className: "U_MD_D_KO",
  1357. "onmousedown": U.UF.C.closure(function (obj) {
  1358. //防止拖動圖標即打開了桌面應用
  1359. U.MD.D.click(this, obj);
  1360. }, [_tpcOrganizerDeskIconInfo[i]]),
  1361. "onclick": U.UF.C.closure(function (obj) {
  1362. //防止拖動圖標即打開了桌面應用
  1363. U.MD.D.click(this, obj);
  1364. }, [_tpcOrganizerDeskIconInfo[i]])
  1365. }, _frag); //
  1366. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1367. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tpcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1368. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tpcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1369. }
  1370. } else if ((_type == 1 || _type == 4) && _org == "a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956" && _role == 0) {
  1371. for (i = 0; i < _tpcTeacherDeskIconInfo.length; i++) {
  1372. _content = $$("div", {
  1373. className: "U_MD_D_KO",
  1374. "onmousedown": U.UF.C.closure(function (obj) {
  1375. //防止拖動圖標即打開了桌面應用
  1376. U.MD.D.click(this, obj);
  1377. }, [_tpcTeacherDeskIconInfo[i]]),
  1378. "onclick": U.UF.C.closure(function (obj) {
  1379. //防止拖動圖標即打開了桌面應用
  1380. U.MD.D.click(this, obj);
  1381. }, [_tpcTeacherDeskIconInfo[i]])
  1382. }, _frag); //
  1383. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1384. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tpcTeacherDeskIconInfo[i].style }, _iconcontent);
  1385. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tpcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1386. }
  1387. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1388. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  1389. _content = $$("div", {
  1390. className: "U_MD_D_KO",
  1391. "onmousedown": U.UF.C.closure(function (obj) {
  1392. //防止拖動圖標即打開了桌面應用
  1393. U.MD.D.click(this, obj);
  1394. }, [_teacherDesktopIconInfo2[i]]),
  1395. "onclick": U.UF.C.closure(function (obj) {
  1396. //防止拖動圖標即打開了桌面應用
  1397. U.MD.D.click(this, obj);
  1398. }, [_teacherDesktopIconInfo2[i]])
  1399. }, _frag); //
  1400. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1401. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1402. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1403. }
  1404. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1405. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  1406. _content = $$("div", {
  1407. className: "U_MD_D_KO",
  1408. "onmousedown": U.UF.C.closure(function (obj) {
  1409. //防止拖動圖標即打開了桌面應用
  1410. U.MD.D.click(this, obj);
  1411. }, [_lotechTeacherDeskIconInfo[i]]),
  1412. "onclick": U.UF.C.closure(function (obj) {
  1413. //防止拖動圖標即打開了桌面應用
  1414. U.MD.D.click(this, obj);
  1415. }, [_lotechTeacherDeskIconInfo[i]])
  1416. }, _frag); //
  1417. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1418. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1419. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1420. }//
  1421. } else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1422. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1423. _content = $$("div", {
  1424. className: "U_MD_D_KO",
  1425. "onmousedown": U.UF.C.closure(function (obj) {
  1426. //防止拖動圖標即打開了桌面應用
  1427. U.MD.D.click(this, obj);
  1428. }, [_siesTeacherDeskIconInfo[i]]),
  1429. "onclick": U.UF.C.closure(function (obj) {
  1430. //防止拖動圖標即打開了桌面應用
  1431. U.MD.D.click(this, obj);
  1432. }, [_siesTeacherDeskIconInfo[i]])
  1433. }, _frag); //
  1434. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1435. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1436. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1437. }
  1438. } else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1439. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1440. _content = $$("div", {
  1441. className: "U_MD_D_KO",
  1442. "onmousedown": U.UF.C.closure(function (obj) {
  1443. //防止拖動圖標即打開了桌面應用
  1444. U.MD.D.click(this, obj);
  1445. }, [_longhuaTeacherDeskIconInfo[i]]),
  1446. "onclick": U.UF.C.closure(function (obj) {
  1447. //防止拖動圖標即打開了桌面應用
  1448. U.MD.D.click(this, obj);
  1449. }, [_longhuaTeacherDeskIconInfo[i]])
  1450. }, _frag); //
  1451. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1452. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1453. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1454. }
  1455. } else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1456. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1457. _content = $$("div", {
  1458. className: "U_MD_D_KO",
  1459. "onmousedown": U.UF.C.closure(function (obj) {
  1460. //防止拖動圖標即打開了桌面應用
  1461. U.MD.D.click(this, obj);
  1462. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1463. "onclick": U.UF.C.closure(function (obj) {
  1464. //防止拖動圖標即打開了桌面應用
  1465. U.MD.D.click(this, obj);
  1466. }, [_yunhaiTeacherDeskIconInfo[i]])
  1467. }, _frag); //
  1468. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1469. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1470. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1471. } //_hkStudentDeskIconInfo
  1472. } else if ((_type == 1 || _type == 4) && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1473. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.length; i++) {
  1474. _content = $$("div", {
  1475. className: "U_MD_D_KO",
  1476. "onmousedown": U.UF.C.closure(function (obj) {
  1477. //防止拖動圖標即打開了桌面應用
  1478. U.MD.D.click(this, obj);
  1479. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1480. "onclick": U.UF.C.closure(function (obj) {
  1481. //防止拖動圖標即打開了桌面應用
  1482. U.MD.D.click(this, obj);
  1483. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1484. }, _frag); //
  1485. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1486. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1487. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1488. }
  1489. } else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1490. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1491. _content = $$("div", {
  1492. className: "U_MD_D_KO",
  1493. "onmousedown": U.UF.C.closure(function (obj) {
  1494. //防止拖動圖標即打開了桌面應用
  1495. U.MD.D.click(this, obj);
  1496. }, [_hkTeacherDeskIconInfo[i]]),
  1497. "onclick": U.UF.C.closure(function (obj) {
  1498. //防止拖動圖標即打開了桌面應用
  1499. U.MD.D.click(this, obj);
  1500. }, [_hkTeacherDeskIconInfo[i]])
  1501. }, _frag); //
  1502. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1503. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1504. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1505. }
  1506. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1507. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1508. _content = $$("div", {
  1509. className: "U_MD_D_KO",
  1510. "onmousedown": U.UF.C.closure(function (obj) {
  1511. //防止拖動圖標即打開了桌面應用
  1512. U.MD.D.click(this, obj);
  1513. }, [_gdjgAdminDeskIconInfo[i]]),
  1514. "onclick": U.UF.C.closure(function (obj) {
  1515. //防止拖動圖標即打開了桌面應用
  1516. U.MD.D.click(this, obj);
  1517. }, [_gdjgAdminDeskIconInfo[i]])
  1518. }, _frag); //
  1519. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1520. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1521. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1522. }
  1523. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1524. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1525. _content = $$("div", {
  1526. className: "U_MD_D_KO",
  1527. "onmousedown": U.UF.C.closure(function (obj) {
  1528. //防止拖動圖標即打開了桌面應用
  1529. U.MD.D.click(this, obj);
  1530. }, [_gdjgTeacherDeskIconInfo[i]]),
  1531. "onclick": U.UF.C.closure(function (obj) {
  1532. //防止拖動圖標即打開了桌面應用
  1533. U.MD.D.click(this, obj);
  1534. }, [_gdjgTeacherDeskIconInfo[i]])
  1535. }, _frag); //
  1536. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1537. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1538. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1539. }
  1540. } else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1541. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1542. _content = $$("div", {
  1543. className: "U_MD_D_KO",
  1544. "onmousedown": U.UF.C.closure(function (obj) {
  1545. //防止拖動圖標即打開了桌面應用
  1546. U.MD.D.click(this, obj);
  1547. }, [_szherTeacherDeskIconInfo[i]]),
  1548. "onclick": U.UF.C.closure(function (obj) {
  1549. //防止拖動圖標即打開了桌面應用
  1550. U.MD.D.click(this, obj);
  1551. }, [_szherTeacherDeskIconInfo[i]])
  1552. }, _frag); //
  1553. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1554. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1555. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1556. }
  1557. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1558. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1559. _content = $$("div", {
  1560. className: "U_MD_D_KO",
  1561. "onmousedown": U.UF.C.closure(function (obj) {
  1562. //防止拖動圖標即打開了桌面應用
  1563. U.MD.D.click(this, obj);
  1564. }, [_heyuannAdminDeskIconInfo[i]]),
  1565. "onclick": U.UF.C.closure(function (obj) {
  1566. //防止拖動圖標即打開了桌面應用
  1567. U.MD.D.click(this, obj);
  1568. }, [_heyuannAdminDeskIconInfo[i]])
  1569. }, _frag); //
  1570. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1571. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1572. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1573. }
  1574. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1575. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1576. _content = $$("div", {
  1577. className: "U_MD_D_KO",
  1578. "onmousedown": U.UF.C.closure(function (obj) {
  1579. //防止拖動圖標即打開了桌面應用
  1580. U.MD.D.click(this, obj);
  1581. }, [_heyuanTeacherDeskIconInfo[i]]),
  1582. "onclick": U.UF.C.closure(function (obj) {
  1583. //防止拖動圖標即打開了桌面應用
  1584. U.MD.D.click(this, obj);
  1585. }, [_heyuanTeacherDeskIconInfo[i]])
  1586. }, _frag); //
  1587. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1588. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1589. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1590. } //
  1591. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 1) {
  1592. for (i = 0; i < _dseiAdminDeskIconInfo.length; i++) {
  1593. _content = $$("div", {
  1594. className: "U_MD_D_KO",
  1595. "onmousedown": U.UF.C.closure(function (obj) {
  1596. //防止拖動圖標即打開了桌面應用
  1597. U.MD.D.click(this, obj);
  1598. }, [_dseiAdminDeskIconInfo[i]]),
  1599. "onclick": U.UF.C.closure(function (obj) {
  1600. //防止拖動圖標即打開了桌面應用
  1601. U.MD.D.click(this, obj);
  1602. }, [_dseiAdminDeskIconInfo[i]])
  1603. }, _frag); //
  1604. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1605. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiAdminDeskIconInfo[i].style }, _iconcontent);
  1606. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiAdminDeskIconInfo[i].Name }, _iconcontent);
  1607. }
  1608. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 0) {
  1609. for (i = 0; i < _dseiTeacherDeskIconInfo.length; i++) {
  1610. _content = $$("div", {
  1611. className: "U_MD_D_KO",
  1612. "onmousedown": U.UF.C.closure(function (obj) {
  1613. //防止拖動圖標即打開了桌面應用
  1614. U.MD.D.click(this, obj);
  1615. }, [_dseiTeacherDeskIconInfo[i]]),
  1616. "onclick": U.UF.C.closure(function (obj) {
  1617. //防止拖動圖標即打開了桌面應用
  1618. U.MD.D.click(this, obj);
  1619. }, [_dseiTeacherDeskIconInfo[i]])
  1620. }, _frag); //
  1621. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1622. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiTeacherDeskIconInfo[i].style }, _iconcontent);
  1623. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1624. } //
  1625. } else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 1) {
  1626. for (i = 0; i < _chjyjAdminDeskIconInfo.length; i++) {
  1627. _content = $$("div", {
  1628. className: "U_MD_D_KO",
  1629. "onmousedown": U.UF.C.closure(function (obj) {
  1630. //防止拖動圖標即打開了桌面應用
  1631. U.MD.D.click(this, obj);
  1632. }, [_chjyjAdminDeskIconInfo[i]]),
  1633. "onclick": U.UF.C.closure(function (obj) {
  1634. //防止拖動圖標即打開了桌面應用
  1635. U.MD.D.click(this, obj);
  1636. }, [_chjyjAdminDeskIconInfo[i]])
  1637. }, _frag); //
  1638. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1639. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjAdminDeskIconInfo[i].style }, _iconcontent);
  1640. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjAdminDeskIconInfo[i].Name }, _iconcontent);
  1641. }//
  1642. } else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 0) {
  1643. for (i = 0; i < _chjyjTeacherDeskIconInfo.length; i++) {
  1644. _content = $$("div", {
  1645. className: "U_MD_D_KO",
  1646. "onmousedown": U.UF.C.closure(function (obj) {
  1647. //防止拖動圖標即打開了桌面應用
  1648. U.MD.D.click(this, obj);
  1649. }, [_chjyjTeacherDeskIconInfo[i]]),
  1650. "onclick": U.UF.C.closure(function (obj) {
  1651. //防止拖動圖標即打開了桌面應用
  1652. U.MD.D.click(this, obj);
  1653. }, [_chjyjTeacherDeskIconInfo[i]])
  1654. }, _frag); //
  1655. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1656. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjTeacherDeskIconInfo[i].style }, _iconcontent);
  1657. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjTeacherDeskIconInfo[i].Name }, _iconcontent);
  1658. }
  1659. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 1) {
  1660. for (i = 0; i < _szjkyAdminDeskIconInfo.length; i++) {
  1661. _content = $$("div", {
  1662. className: "U_MD_D_KO",
  1663. "onmousedown": U.UF.C.closure(function (obj) {
  1664. //防止拖動圖標即打開了桌面應用
  1665. U.MD.D.click(this, obj);
  1666. }, [_szjkyAdminDeskIconInfo[i]]),
  1667. "onclick": U.UF.C.closure(function (obj) {
  1668. //防止拖動圖標即打開了桌面應用
  1669. U.MD.D.click(this, obj);
  1670. }, [_szjkyAdminDeskIconInfo[i]])
  1671. }, _frag); //
  1672. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1673. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyAdminDeskIconInfo[i].style }, _iconcontent);
  1674. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyAdminDeskIconInfo[i].Name }, _iconcontent);
  1675. }//
  1676. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 0) {
  1677. for (i = 0; i < _szjkyTeacherDeskIconInfo.length; i++) {
  1678. _content = $$("div", {
  1679. className: "U_MD_D_KO",
  1680. "onmousedown": U.UF.C.closure(function (obj) {
  1681. //防止拖動圖標即打開了桌面應用
  1682. U.MD.D.click(this, obj);
  1683. }, [_szjkyTeacherDeskIconInfo[i]]),
  1684. "onclick": U.UF.C.closure(function (obj) {
  1685. //防止拖動圖標即打開了桌面應用
  1686. U.MD.D.click(this, obj);
  1687. }, [_szjkyTeacherDeskIconInfo[i]])
  1688. }, _frag); //
  1689. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1690. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyTeacherDeskIconInfo[i].style }, _iconcontent);
  1691. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyTeacherDeskIconInfo[i].Name }, _iconcontent);
  1692. }
  1693. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1694. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1695. _content = $$("div", {
  1696. className: "U_MD_D_KO",
  1697. "onmousedown": U.UF.C.closure(function (obj) {
  1698. //防止拖動圖標即打開了桌面應用
  1699. U.MD.D.click(this, obj);
  1700. }, [_futianAdminDeskIconInfo[i]]),
  1701. "onclick": U.UF.C.closure(function (obj) {
  1702. //防止拖動圖標即打開了桌面應用
  1703. U.MD.D.click(this, obj);
  1704. }, [_futianAdminDeskIconInfo[i]])
  1705. }, _frag); //
  1706. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1707. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1708. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1709. }
  1710. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1711. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1712. _content = $$("div", {
  1713. className: "U_MD_D_KO",
  1714. "onmousedown": U.UF.C.closure(function (obj) {
  1715. //防止拖動圖標即打開了桌面應用
  1716. U.MD.D.click(this, obj);
  1717. }, [_futianTeacherDeskIconInfo[i]]),
  1718. "onclick": U.UF.C.closure(function (obj) {
  1719. //防止拖動圖標即打開了桌面應用
  1720. U.MD.D.click(this, obj);
  1721. }, [_futianTeacherDeskIconInfo[i]])
  1722. }, _frag); //
  1723. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1724. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1725. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1726. }
  1727. } else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1728. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1729. _content = $$("div", {
  1730. className: "U_MD_D_KO",
  1731. "onmousedown": U.UF.C.closure(function (obj) {
  1732. //防止拖動圖標即打開了桌面應用
  1733. U.MD.D.click(this, obj);
  1734. }, [_MingdeTeacherDeskIcon[i]]),
  1735. "onclick": U.UF.C.closure(function (obj) {
  1736. //防止拖動圖標即打開了桌面應用
  1737. U.MD.D.click(this, obj);
  1738. }, [_MingdeTeacherDeskIcon[i]])
  1739. }, _frag); //
  1740. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1741. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1742. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1743. }
  1744. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1745. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1746. _content = $$("div", {
  1747. className: "U_MD_D_KO",
  1748. "onmousedown": U.UF.C.closure(function (obj) {
  1749. //防止拖動圖標即打開了桌面應用
  1750. U.MD.D.click(this, obj);
  1751. }, [_lhsAdminDesktopIconInfo[i]]),
  1752. "onclick": U.UF.C.closure(function (obj) {
  1753. //防止拖動圖標即打開了桌面應用
  1754. U.MD.D.click(this, obj);
  1755. }, [_lhsAdminDesktopIconInfo[i]])
  1756. }, _frag); //
  1757. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1758. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1759. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1760. }
  1761. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1762. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1763. _content = $$("div", {
  1764. className: "U_MD_D_KO",
  1765. "onmousedown": U.UF.C.closure(function (obj) {
  1766. //防止拖動圖標即打開了桌面應用
  1767. U.MD.D.click(this, obj);
  1768. }, [_lhsteacherDesktopIconInfo[i]]),
  1769. "onclick": U.UF.C.closure(function (obj) {
  1770. //防止拖動圖標即打開了桌面應用
  1771. U.MD.D.click(this, obj);
  1772. }, [_lhsteacherDesktopIconInfo[i]])
  1773. }, _frag); //
  1774. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1775. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1776. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1777. }
  1778. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1779. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1780. _content = $$("div", {
  1781. className: "U_MD_D_KO",
  1782. "onmousedown": U.UF.C.closure(function (obj) {
  1783. //防止拖動圖標即打開了桌面應用
  1784. U.MD.D.click(this, obj);
  1785. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1786. "onclick": U.UF.C.closure(function (obj) {
  1787. //防止拖動圖標即打開了桌面應用
  1788. U.MD.D.click(this, obj);
  1789. }, [_zhoujiateacherDesktopIconInfo[i]])
  1790. }, _frag); //
  1791. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1792. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1793. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1794. }
  1795. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1796. for (i = 0; i < _hanDeskIcon.length; i++) {
  1797. _content = $$("div", {
  1798. className: "U_MD_D_KO",
  1799. "onmousedown": U.UF.C.closure(function (obj) {
  1800. //防止拖動圖標即打開了桌面應用
  1801. U.MD.D.click(this, obj);
  1802. }, [_hanDeskIcon[i]]),
  1803. "onclick": U.UF.C.closure(function (obj) {
  1804. //防止拖動圖標即打開了桌面應用
  1805. U.MD.D.click(this, obj);
  1806. }, [_hanDeskIcon[i]])
  1807. }, _frag); //
  1808. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1809. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1810. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1811. }
  1812. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1813. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1814. _content = $$("div", {
  1815. className: "U_MD_D_KO",
  1816. "onmousedown": U.UF.C.closure(function (obj) {
  1817. //防止拖動圖標即打開了桌面應用
  1818. U.MD.D.click(this, obj);
  1819. }, [_orgStemDeskIcon[i]]),
  1820. "onclick": U.UF.C.closure(function (obj) {
  1821. //防止拖動圖標即打開了桌面應用
  1822. U.MD.D.click(this, obj);
  1823. }, [_orgStemDeskIcon[i]])
  1824. }, _frag); //
  1825. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1826. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1827. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1828. }
  1829. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1830. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1831. _content = $$("div", {
  1832. className: "U_MD_D_KO",
  1833. "onmousedown": U.UF.C.closure(function (obj) {
  1834. //防止拖動圖標即打開了桌面應用
  1835. U.MD.D.click(this, obj);
  1836. }, [_szulsDeskIcon[i]]),
  1837. "onclick": U.UF.C.closure(function (obj) {
  1838. //防止拖動圖標即打開了桌面應用
  1839. U.MD.D.click(this, obj);
  1840. }, [_szulsDeskIcon[i]])
  1841. }, _frag); //
  1842. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1843. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1844. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1845. }
  1846. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1847. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1848. _content = $$("div", {
  1849. className: "U_MD_D_KO",
  1850. "onmousedown": U.UF.C.closure(function (obj) {
  1851. //防止拖動圖標即打開了桌面應用
  1852. U.MD.D.click(this, obj);
  1853. }, [_orgDesktopIconInfo[i]]),
  1854. "onclick": U.UF.C.closure(function (obj) {
  1855. //防止拖動圖標即打開了桌面應用
  1856. U.MD.D.click(this, obj);
  1857. }, [_orgDesktopIconInfo[i]])
  1858. }, _frag); //
  1859. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1860. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1861. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1862. }
  1863. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1864. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1865. _content = $$("div", {
  1866. className: "U_MD_D_KO",
  1867. "onmousedown": U.UF.C.closure(function (obj) {
  1868. //防止拖動圖標即打開了桌面應用
  1869. U.MD.D.click(this, obj);
  1870. }, [_schoolDesktopIconInfo[i]]),
  1871. "onclick": U.UF.C.closure(function (obj) {
  1872. //防止拖動圖標即打開了桌面應用
  1873. U.MD.D.click(this, obj);
  1874. }, [_schoolDesktopIconInfo[i]])
  1875. }, _frag); //
  1876. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1877. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1878. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1879. }
  1880. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1881. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1882. _content = $$("div", {
  1883. className: "U_MD_D_KO",
  1884. "onmousedown": U.UF.C.closure(function (obj) {
  1885. //防止拖動圖標即打開了桌面應用
  1886. U.MD.D.click(this, obj);
  1887. }, [_GMteacherDesktopIconInfo[i]]),
  1888. "onclick": U.UF.C.closure(function (obj) {
  1889. //防止拖動圖標即打開了桌面應用
  1890. U.MD.D.click(this, obj);
  1891. }, [_GMteacherDesktopIconInfo[i]])
  1892. }, _frag); //
  1893. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1894. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1895. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1896. }
  1897. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1898. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1899. _content = $$("div", {
  1900. className: "U_MD_D_KO",
  1901. "onmousedown": U.UF.C.closure(function (obj) {
  1902. //防止拖動圖標即打開了桌面應用
  1903. U.MD.D.click(this, obj);
  1904. }, [_SONGteacherDesktopIconInfo[i]]),
  1905. "onclick": U.UF.C.closure(function (obj) {
  1906. //防止拖動圖標即打開了桌面應用
  1907. U.MD.D.click(this, obj);
  1908. }, [_SONGteacherDesktopIconInfo[i]])
  1909. }, _frag); //
  1910. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1911. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1912. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1913. }
  1914. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1915. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1916. _content = $$("div", {
  1917. className: "U_MD_D_KO",
  1918. "onmousedown": U.UF.C.closure(function (obj) {
  1919. //防止拖動圖標即打開了桌面應用
  1920. U.MD.D.click(this, obj);
  1921. }, [_GMstudentDesktopIconInfo[i]]),
  1922. "onclick": U.UF.C.closure(function (obj) {
  1923. //防止拖動圖標即打開了桌面應用
  1924. U.MD.D.click(this, obj);
  1925. }, [_GMstudentDesktopIconInfo[i]])
  1926. }, _frag); //
  1927. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1928. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1929. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1930. }
  1931. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1932. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1933. _content = $$("div", {
  1934. className: "U_MD_D_KO",
  1935. "onmousedown": U.UF.C.closure(function (obj) {
  1936. //防止拖動圖標即打開了桌面應用
  1937. U.MD.D.click(this, obj);
  1938. }, [_tcTeacherDeskIconInfo[i]]),
  1939. "onclick": U.UF.C.closure(function (obj) {
  1940. //防止拖動圖標即打開了桌面應用
  1941. U.MD.D.click(this, obj);
  1942. }, [_tcTeacherDeskIconInfo[i]])
  1943. }, _frag); //
  1944. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1945. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1946. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1947. }
  1948. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1949. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1950. _content = $$("div", {
  1951. className: "U_MD_D_KO",
  1952. "onmousedown": U.UF.C.closure(function (obj) {
  1953. //防止拖動圖標即打開了桌面應用
  1954. U.MD.D.click(this, obj);
  1955. }, [_tcOrganizerDeskIconInfo[i]]),
  1956. "onclick": U.UF.C.closure(function (obj) {
  1957. //防止拖動圖標即打開了桌面應用
  1958. U.MD.D.click(this, obj);
  1959. }, [_tcOrganizerDeskIconInfo[i]])
  1960. }, _frag); //
  1961. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1962. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1963. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1964. }
  1965. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1966. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1967. _content = $$("div", {
  1968. className: "U_MD_D_KO",
  1969. "onmousedown": U.UF.C.closure(function (obj) {
  1970. //防止拖動圖標即打開了桌面應用
  1971. U.MD.D.click(this, obj);
  1972. }, [_szscTeacherDeskIconInfo[i]]),
  1973. "onclick": U.UF.C.closure(function (obj) {
  1974. //防止拖動圖標即打開了桌面應用
  1975. U.MD.D.click(this, obj);
  1976. }, [_szscTeacherDeskIconInfo[i]])
  1977. }, _frag); //
  1978. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1979. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1980. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1981. }
  1982. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1983. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1984. _content = $$("div", {
  1985. className: "U_MD_D_KO",
  1986. "onmousedown": U.UF.C.closure(function (obj) {
  1987. //防止拖動圖標即打開了桌面應用
  1988. U.MD.D.click(this, obj);
  1989. }, [_szscOrganizerDeskIconInfo[i]]),
  1990. "onclick": U.UF.C.closure(function (obj) {
  1991. //防止拖動圖標即打開了桌面應用
  1992. U.MD.D.click(this, obj);
  1993. }, [_szscOrganizerDeskIconInfo[i]])
  1994. }, _frag); //
  1995. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1996. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1997. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1998. }
  1999. } else {
  2000. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  2001. _content = $$("div", {
  2002. className: "U_MD_D_KO",
  2003. "onmousedown": U.UF.C.closure(function (obj) {
  2004. //防止拖動圖標即打開了桌面應用
  2005. U.MD.D.click(this, obj);
  2006. }, [_teacherDesktopIconInfo[i]]),
  2007. "onclick": U.UF.C.closure(function (obj) {
  2008. //防止拖動圖標即打開了桌面應用
  2009. U.MD.D.click(this, obj);
  2010. }, [_teacherDesktopIconInfo[i]])
  2011. }, _frag); //
  2012. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2013. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  2014. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  2015. }
  2016. }
  2017. } else {
  2018. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  2019. _content = $$("div", {
  2020. className: "U_MD_D_KO",
  2021. style: { 'width': '124px', 'height': '145px' },
  2022. "onmousedown": U.UF.C.closure(function (obj) {
  2023. //防止拖動圖標即打開了桌面應用
  2024. U.MD.D.click(this, obj);
  2025. }, [_easyDesktopIconInfo[i]]),
  2026. "onclick": U.UF.C.closure(function (obj) {
  2027. //防止拖動圖標即打開了桌面應用
  2028. U.MD.D.click(this, obj);
  2029. }, [_easyDesktopIconInfo[i]])
  2030. }, _frag); //
  2031. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  2032. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  2033. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  2034. }
  2035. }
  2036. if (type == 1) {
  2037. //加載好後給圖標定位
  2038. U.MD.D.iconPostion($(_frag).Child());
  2039. } else {
  2040. //加載好後給圖標定位
  2041. U.MD.D.iconPostion2($(_frag).Child());
  2042. }
  2043. //把圖標加載到頁面
  2044. el.appendChild(_frag);
  2045. }
  2046. /**
  2047. * 顯示任務欄
  2048. *
  2049. * @param {element} 桌面元素
  2050. */
  2051. U.MD.D.I.displayTaskbar = function (el) {
  2052. //判斷是否需要形式任務欄,由於用了mouseover事件會冒泡響應多次,這裏做了過濾
  2053. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  2054. //任務欄位置變化
  2055. U.selectEl(el).css({ "bottom": "0px" });
  2056. //桌面位置變話
  2057. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  2058. }
  2059. }
  2060. //#region 桌面圖標拖動邏輯
  2061. /**
  2062. * 桌面排列圖標
  2063. *
  2064. * @param {element} 桌面元素
  2065. * @param {object} 上下相距的距離
  2066. * @param {object} 左右相距的距離
  2067. * @return {object} 命名空間
  2068. */
  2069. U.MD.D.iconPostion = function (childs, top, left) {
  2070. var i; //用於循環處理
  2071. top = top || 15; //如果沒有設置元素的間距處理默認上間距為15
  2072. left = left || 20; //如果沒有設置元素的間距處理默認左間距為15
  2073. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  2074. for (i = 0; i < childs.length; i++) {
  2075. //如果豎排top超過了範圍處理
  2076. if (top + 95 > US.height - 10) {
  2077. //left超過了頁面範圍處理,則向上重疊打印處理
  2078. if ((left + 180) > US.width) {
  2079. top -= 110;
  2080. left -= 90;
  2081. }
  2082. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  2083. else {
  2084. left += 90;
  2085. top = 15;
  2086. };
  2087. }
  2088. //給圖標的位置賦值
  2089. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  2090. if (i < childs.length - 1) {
  2091. //頁面圖標每次向下加95
  2092. top += 95;
  2093. }
  2094. }
  2095. //返回最後調用的圖標的位置
  2096. return [top, left];
  2097. }
  2098. /**
  2099. * 桌面排列圖標
  2100. *
  2101. * @param {element} 桌面元素
  2102. * @param {object} 上下相距的距離
  2103. * @param {object} 左右相距的距離
  2104. * @return {object} 命名空間
  2105. */
  2106. U.MD.D.iconPostion2 = function (childs, top, left) {
  2107. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用於循環處理
  2108. top = top || 70; //如果沒有設置元素的間距處理默認上間距為15
  2109. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果沒有設置元素的間距處理默認左間距為15
  2110. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  2111. for (i = 0; i < childs.length; i++) {
  2112. //如果豎排top超過了範圍處理
  2113. if (left + 150 > US.width - 10) {
  2114. //left超過了頁面範圍處理,則向上重疊打印處理
  2115. if ((top + 180) > US.Height) {
  2116. top -= 150;
  2117. left -= 150;
  2118. }
  2119. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  2120. else {
  2121. top += 150;
  2122. left = ol;
  2123. };
  2124. }
  2125. //給圖標的位置賦值
  2126. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  2127. if (i < childs.length - 1) {
  2128. //頁面圖標每次向下加95
  2129. left += 150;
  2130. }
  2131. }
  2132. //返回最後調用的圖標的位置
  2133. return [top, left];
  2134. }
  2135. /**
  2136. * 桌面點擊事件邏輯
  2137. *
  2138. * @param {element} 桌面元素
  2139. * @param {object} 上下相距的距離
  2140. * @param {object} 左右相距的距離
  2141. * @return {object} 命名空間
  2142. */
  2143. U.MD.D.click = function (el, obj) {
  2144. var _buttonnumber = event.button; //點擊的按鈕的事件值
  2145. var _userinfo = US.userInfo;
  2146. U.UF.EV.stopBubble(); //阻止向上冒泡
  2147. //onmousedown 包含了左鍵和右鍵 這裏大於2是為了兼容 所有瀏覽器的右鍵處理
  2148. if (_buttonnumber < 2) {
  2149. //如果是click事件的處理
  2150. if (event.type == "click") {
  2151. //如果元素在mousemove事件中沒有移動則出發click事件
  2152. if (!U.MD.D.I.IsDrag) {
  2153. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2154. U.alert("請先登錄您的賬號!");
  2155. setTimeout(() => {
  2156. U.MD.U.L.login();
  2157. }, 2000);
  2158. } else {
  2159. //打開應用處理
  2160. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  2161. }
  2162. }
  2163. }
  2164. //如果是mouse事件的處理
  2165. else {
  2166. if (US.Config.type == '1') {
  2167. //拖動處理,添加拖動和拖動結束事件
  2168. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  2169. }
  2170. }
  2171. U.MD.D.I.IsDrag = false;
  2172. }
  2173. }
  2174. /**
  2175. * 拖動的處理
  2176. *
  2177. */
  2178. U.MD.D.iconMove = function () {
  2179. //如果當前位置點擊初始化的位置出現了變化,則設置是否拖動的屬性 U.MD.D.I.IsDrag為true
  2180. U.MD.D.I.IsDrag = true;
  2181. }
  2182. /**
  2183. * 拖動結束後,這裏是定位處理,以網狀的形式定位
  2184. *
  2185. * @param {element} 拖動的元素
  2186. * @return {object} 命名空間
  2187. */
  2188. U.MD.D.iconUp = function (el) {
  2189. var _top = 15,
  2190. _left = 20,
  2191. _margin,
  2192. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的圖標
  2193. _positioninfo = U.UF.EL.getElementInfo(el); //獲取拖動結束的元素的位置
  2194. if (_positioninfo["OT"] > 15) {
  2195. //網狀的形式定位,如果差超過了55,那麼向下定位,否則向上定位
  2196. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  2197. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  2198. }
  2199. if (_positioninfo["OL"] > 20) {
  2200. //網狀的形式定位,如果差超過了90,那麼向右定位,否則向左定位
  2201. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  2202. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  2203. }
  2204. //while循環判斷麼一個重疊的元素
  2205. do {
  2206. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //給重疊的元素向下定位
  2207. _top = _positioninfo[0] + 95; //得到定位後的top
  2208. _left = _positioninfo[1]; //得到定位後的left
  2209. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  2210. }
  2211. /**
  2212. * 判斷拖動後圖標是否重疊
  2213. *
  2214. * @param {element} 拖動的元素
  2215. * @param {element} 桌面所有的元素
  2216. * @param {array} 拖動元素的位置
  2217. ----------[0] 上 top
  2218. ----------[1] 左 left
  2219. * @return {object} 命名空間
  2220. */
  2221. U.MD.D.isOverlap = function (el, childs, postionarray) {
  2222. //循環所有的圖標
  2223. for (var i = 0; i < childs.length; i++) {
  2224. //判斷有沒有和該圖標誒子重疊的元素
  2225. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  2226. return childs[i]; //如果有返回
  2227. }
  2228. }
  2229. }
  2230. //#endregion
  2231. //#endregion
  2232. //#region 桌面應用
  2233. /**
  2234. * 打開應用
  2235. *
  2236. * @param {string} 類型
  2237. -----------------Disk 網盤系統
  2238. -----------------PDisk 學習系統網盤
  2239. -----------------Poto 圖片
  2240. -----------------Video 視頻
  2241. -----------------Music 音樂
  2242. -----------------Word word
  2243. -----------------Excel excel
  2244. -----------------Txt 記事本
  2245. -----------------PB 學習系統
  2246. -----------------Blog 朋友圈系統
  2247. -----------------FTP ftp系統
  2248. -----------------Group 好友群
  2249. -----------------SY 首頁系統
  2250. -----------------Set 個人設置
  2251. -----------------XSet 系統設置
  2252. -----------------App 我們所有的app
  2253. -----------------BC c.1473.cn 平臺
  2254. -----------------CWeb d.1473.cn 變成平臺
  2255. -----------------其他的外聯系統 我們統一用iframe打開
  2256. * @param {array} 類型
  2257. 如果第一個參數為"disk",則第二個參數為object,裏面包含了用戶id和目錄id{userid:"",directoryid:""}
  2258. 如果第一個參數為"word"或者"excel","txt",則第二個參數為文件信息fileinfo。
  2259. 如果第一個參數為"blog"或者"PDisk"。建議刪除。
  2260. 如果第一個參數為其他,則無第二個參數
  2261. * @returns {array}
  2262. */
  2263. window.addEventListener('message', function (e) { // 監聽 message 事件
  2264. // alert(e.data.type);
  2265. if (e.data.screenType && e.data.screenType == "2") { //課程管理傳入
  2266. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  2267. //3是展示全部階段 2學生 1老師 4專家
  2268. } else if (e.data.screenType && e.data.screenType == "2s") { //課程管理傳入
  2269. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  2270. //3是展示全部階段 2學生 1老師 4專家
  2271. } else if (e.data.screenType && e.data.screenType == "2studio") { //課程管理傳入
  2272. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  2273. //3是展示全部階段 2學生 1老師 4專家
  2274. } else if (e.data.screenType && e.data.screenType == "3") { //課程管理傳入
  2275. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  2276. } else if (e.data.screenType && e.data.screenType == "3NT") { //課程管理傳入
  2277. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  2278. } else if (e.data.screenType && e.data.screenType == "3s") { //課程管理傳入
  2279. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  2280. } else if (e.data.screenType && e.data.screenType == "3studio") { //課程管理傳入
  2281. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  2282. } else if (e.data.screenType && e.data.screenType == "3s2") { //課程管理傳入
  2283. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  2284. } else if (e.data.screenType && e.data.screenType == "2gm") { //課程管理傳入
  2285. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  2286. //3是展示全部階段 2學生 1老師 4專家
  2287. } else if (e.data.screenType && e.data.screenType == "3gm") { //課程管理傳入
  2288. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  2289. } else if (e.data.close && e.data.close == "1") { //更新用戶信息
  2290. U.MD.D.I.selectUser();
  2291. } else if (e.data.allScreen && e.data.allScreen == "1") {
  2292. var _formel = document.getElementById("study");
  2293. U.UF.F.windowZooming(_formel);
  2294. } else if (e.data.allScreen && e.data.allScreen == "2") {
  2295. var _formel = document.getElementById("studyDetail");
  2296. U.UF.F.windowZooming(_formel);
  2297. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  2298. var _formel = document.getElementById("studyDetail");
  2299. U.UF.F.windowZooming(_formel);
  2300. } else if (e.data.allScreen && e.data.allScreen == "3") {
  2301. var _formel = document.getElementById("studentStudy");
  2302. U.UF.F.windowZooming(_formel);
  2303. } else if (e.data.allScreen && e.data.allScreen == "6") {
  2304. // var _formel = document.getElementById("study");
  2305. //如果最大化了,那麼就把他縮小
  2306. // if (_formel.ismaximize) {
  2307. // return;
  2308. // }
  2309. // U.UF.F.windowZooming(_formel);
  2310. // U.UF.F.topWindow(_formel);
  2311. } else if (e.data.allScreen && e.data.allScreen == "4") {
  2312. // var _formel = document.getElementById("studyDetail");
  2313. //如果最大化了,那麼就把他縮小
  2314. // if (_formel.ismaximize) {
  2315. // return;
  2316. // }
  2317. // U.UF.F.windowZooming(_formel);
  2318. // U.UF.F.topWindow(_formel);
  2319. } else if (e.data.allScreen && e.data.allScreen == "5") {
  2320. // var _formel = document.getElementById("studentStudy");
  2321. // if (_formel.ismaximize) {
  2322. // return;
  2323. // }
  2324. // U.UF.F.windowZooming(_formel);
  2325. // U.UF.F.topWindow(_formel);
  2326. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  2327. var _formel = document.getElementById("study");
  2328. // if (_formel.ismaximize) {
  2329. // return;
  2330. // }
  2331. // U.UF.F.windowZooming(_formel);
  2332. U.UF.F.topWindow(_formel);
  2333. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  2334. var _formel = document.getElementById("studentIndex");
  2335. U.UF.F.windowZooming(_formel);
  2336. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  2337. var _formel = document.getElementById("studyDetailS");
  2338. U.UF.F.windowZooming(_formel);
  2339. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  2340. var _formel = document.getElementById("studioIndex");
  2341. U.UF.F.windowZooming(_formel);
  2342. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  2343. var _formel = document.getElementById("studyDetailStudio");
  2344. U.UF.F.windowZooming(_formel);
  2345. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  2346. var _formel = document.getElementById("studyDetailStudio");
  2347. U.UF.F.windowZooming(_formel);
  2348. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  2349. var _formel = document.getElementById("studyDetailNT");
  2350. U.UF.F.windowZooming(_formel);
  2351. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  2352. var _formel = document.getElementById("studyDetailS");
  2353. U.UF.F.windowZooming(_formel);
  2354. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  2355. var _formel = document.getElementById("studyDetailS");
  2356. U.UF.F.topWindow(_formel);
  2357. } else if (e.data.tools && e.data.tools == "1") {
  2358. // U.MD.D.I.openApplication("whiteboard")
  2359. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2360. } else if (e.data.tools && e.data.tools == "2") {
  2361. U.MD.D.I.openApplication("note")
  2362. } else if (e.data.tools && e.data.tools == "3") {
  2363. // U.MD.D.I.openApplication("mind")
  2364. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2365. } else if (e.data.tools && e.data.tools == "4") {
  2366. U.MD.D.I.openApplication("investigation")
  2367. } else if (e.data.tools && e.data.tools == "6") {
  2368. // U.MD.D.I.openApplication("doc")
  2369. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2370. } else if (e.data.tools && e.data.tools == "7") {
  2371. // U.MD.D.I.openApplication("mindNetwork")
  2372. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2373. } else if (e.data.tools && e.data.tools == "8") {
  2374. U.MD.D.I.openApplication("library")
  2375. } else if (e.data.tools && e.data.tools == "17") {
  2376. U.MD.D.I.openApplication("stuLibrary")
  2377. } else if (e.data.tools && e.data.tools == "18") {
  2378. U.MD.D.I.openApplication("train")
  2379. } else if (e.data.tools && e.data.tools == "21") {
  2380. U.MD.D.I.openApplication("program")
  2381. } else if (e.data.tools && e.data.tools == "22") {
  2382. U.MD.D.I.openApplication("AIprogram2")
  2383. } else if (e.data.tools && e.data.tools == "23") {
  2384. U.MD.D.I.openApplication("Pythonprogram")
  2385. } else if (e.data.tools && e.data.tools == "24") {
  2386. U.MD.D.I.openApplication("AIprogram")
  2387. } else if (e.data.tools && e.data.tools == "25") {
  2388. U.MD.D.I.openApplication("sys")
  2389. } else if (e.data.tools && e.data.tools == "26") {
  2390. // U.MD.D.I.openApplication("courseDesign")
  2391. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2392. } else if (e.data.tools && e.data.tools == "31") {
  2393. U.MD.D.I.openApplication("netWorkPanel")
  2394. } else if (e.data.tools && e.data.tools == "32") {
  2395. U.MD.D.I.openApplication("codeEdit")
  2396. } else if (e.data.tools && e.data.tools == "57") {
  2397. U.MD.D.I.openApplication("CocoPi")
  2398. } else if (e.data.tools && e.data.tools == "63") {
  2399. U.MD.D.I.openApplication("Wood")
  2400. } else if (e.data.tools && e.data.tools == "58") {
  2401. U.MD.D.I.openApplication("car")
  2402. } else if (e.data.tools && e.data.tools == "59") {
  2403. U.MD.D.I.openApplication("lineSearch")
  2404. } else if (e.data.tools && e.data.tools == "60") {
  2405. U.MD.D.I.openApplication("deepLearning")
  2406. } else if (e.data.tools && e.data.tools == "61") {
  2407. U.MD.D.I.openApplication("allHistory")
  2408. } else if (e.data.tools && e.data.tools == "28") {
  2409. U.MD.D.I.openApplication("translation")
  2410. } else if (e.data.tools && e.data.tools == "37") {
  2411. U.MD.D.I.openApplication("mohe")
  2412. } else if (e.data.tools && e.data.tools == "38") {
  2413. U.MD.D.I.openApplication("24game")
  2414. } else if (e.data.tools && e.data.tools == "39") {
  2415. U.MD.D.I.openApplication("GeoGebra")
  2416. } else if (e.data.tools && e.data.tools == "43") {
  2417. U.MD.D.I.openApplication("studentEvaluate")
  2418. } else if (e.data.tools && e.data.tools == "44") {
  2419. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  2420. } else if (e.data.tools && e.data.tools == "46") {
  2421. U.MD.D.I.openApplication("project")
  2422. } else if (e.data.tools && e.data.tools == "1s") {
  2423. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2424. } else if (e.data.tools && e.data.tools == "3s") {
  2425. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2426. } else if (e.data.tools && e.data.tools == "6s") {
  2427. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2428. } else if (e.data.tools && e.data.tools == "1studio") {
  2429. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2430. } else if (e.data.tools && e.data.tools == "3studio") {
  2431. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2432. } else if (e.data.tools && e.data.tools == "6studio") {
  2433. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2434. } else if (e.data.tools && e.data.tools == "3y") {
  2435. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2436. } else if (e.data.tools && e.data.tools == "1y") {
  2437. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2438. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  2439. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  2440. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  2441. U.MD.D.I.openApplication("AIAnalyse")
  2442. } else if (e.data.tools && e.data.tools == "1teacher") {
  2443. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2444. } else if (e.data.tools && e.data.tools == "3teacher") {
  2445. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2446. } else if (e.data.tools && e.data.tools == "7teacher") {
  2447. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2448. } else if (e.data.tools && e.data.tools == "1teacherE") {
  2449. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2450. } else if (e.data.tools && e.data.tools == "3teacherE") {
  2451. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2452. } else if (e.data.tools && e.data.tools == "1E") {
  2453. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2454. } else if (e.data.tools && e.data.tools == "3E") {
  2455. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2456. } else if (e.data.tools && e.data.tools == "57y") {
  2457. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2458. } else if (e.data.tools && e.data.tools == "57u") {
  2459. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2460. } else if (e.data.tools && e.data.tools == "57teacher") {
  2461. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2462. } else if (e.data.tools && e.data.tools == "64") {
  2463. U.MD.D.I.openApplication("AIChat")
  2464. } else if (e.data.tools && e.data.tools == "66") {
  2465. U.MD.D.I.openApplication("formulaEdi")
  2466. } else if (e.data.tools && e.data.tools == "67") {
  2467. U.MD.D.I.openApplication("molStr")
  2468. } else if (e.data.tools && e.data.tools == "68") {
  2469. U.MD.D.I.openApplication("timeAxis")
  2470. } else if (e.data.tools && e.data.tools == "openCourse") {
  2471. let _data = {
  2472. typea: e.data.typea || '',
  2473. typeb: e.data.typeb || '',
  2474. typed: e.data.typed || '',
  2475. }
  2476. U.MD.D.I.openInApplication("index", _data)
  2477. } else if (e.data.tools && e.data.tools == "openDataClass") {
  2478. let _data = {
  2479. classid: e.data.classid || '',
  2480. }
  2481. U.MD.D.I.openInApplication("dataClass", _data)
  2482. } else if (e.data.tools && e.data.tools == "opencCscl") {
  2483. let _data = {
  2484. cid: e.data.cid || '',
  2485. gid: e.data.gid || '',
  2486. }
  2487. U.MD.D.I.openInApplication("opencCscl", _data)
  2488. }
  2489. });
  2490. U.MD.D.I.selectUser = function () {
  2491. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  2492. if (res.value[0].length > 0) {
  2493. US.userInfo = res.value[0][0];
  2494. $(".userName")[0].innerHTML = US.userInfo.username;
  2495. }
  2496. }, [], { "type": "GET", "withCredentials": true });
  2497. }
  2498. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  2499. var _userinfo = US.userInfo, //登錄用戶信息
  2500. _userid = US.userInfo.userid, //登錄用戶id
  2501. _oid = _userinfo.organizeid,
  2502. _type = US.userInfo.type,
  2503. _org = US.userInfo.org,
  2504. _role = US.userInfo.role,
  2505. _classId = US.userInfo.classid;
  2506. if (_type == 4) {
  2507. tType = 4
  2508. }
  2509. switch (str) {
  2510. case "studyDetailNT": //無終端模式
  2511. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2512. setTimeout(() => {
  2513. U.MD.U.L.login();
  2514. }, 2000);
  2515. } else {
  2516. _formdiv = new U.UF.UI.form(
  2517. "課程詳情",
  2518. $$("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 }), {
  2519. "id": "studyDetailNT",
  2520. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2521. "onresize": function () { }
  2522. }, {
  2523. closecallback: function () { }
  2524. }, { "style": { "height": "36px" } }).form; //創建窗體
  2525. _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); } }
  2526. break;
  2527. }
  2528. case "studyDetail":
  2529. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2530. setTimeout(() => {
  2531. U.MD.U.L.login();
  2532. }, 2000);
  2533. } else {
  2534. _formdiv = new U.UF.UI.form(
  2535. "課程詳情",
  2536. $$("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 }), {
  2537. "id": "studyDetail",
  2538. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2539. "onresize": function () { }
  2540. }, {
  2541. closecallback: function () { }
  2542. }, { "style": { "height": "36px" } }).form; //創建窗體
  2543. _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); } }
  2544. break;
  2545. }
  2546. case "studyDetailS":
  2547. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2548. setTimeout(() => {
  2549. U.MD.U.L.login();
  2550. }, 2000);
  2551. } else {
  2552. _formdiv = new U.UF.UI.form(
  2553. "項目詳情",
  2554. $$("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 }), {
  2555. "id": "studyDetailS",
  2556. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2557. "onresize": function () { }
  2558. }, {
  2559. closecallback: function () { }
  2560. }, { "style": { "height": "36px" } }).form; //創建窗體
  2561. _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); } }
  2562. break;
  2563. }
  2564. case "studyDetailStudio":
  2565. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2566. setTimeout(() => {
  2567. U.MD.U.L.login();
  2568. }, 2000);
  2569. } else {
  2570. _formdiv = new U.UF.UI.form(
  2571. "工作詳情",
  2572. $$("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 }), {
  2573. "id": "studyDetailStudio",
  2574. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2575. "onresize": function () { }
  2576. }, {
  2577. closecallback: function () { }
  2578. }, { "style": { "height": "36px" } }).form; //創建窗體
  2579. _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); } }
  2580. break;
  2581. }
  2582. case "studyDetailS5":
  2583. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2584. setTimeout(() => {
  2585. U.MD.U.L.login();
  2586. }, 2000);
  2587. } else {
  2588. _formdiv = new U.UF.UI.form(
  2589. "項目詳情",
  2590. $$("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 }), {
  2591. "id": "studyDetailS",
  2592. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2593. "onresize": function () { }
  2594. }, {
  2595. closecallback: function () { }
  2596. }, { "style": { "height": "36px" } }).form; //創建窗體
  2597. _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); } }
  2598. break;
  2599. }
  2600. case "studyDetailGM":
  2601. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2602. setTimeout(() => {
  2603. U.MD.U.L.login();
  2604. }, 2000);
  2605. } else {
  2606. _formdiv = new U.UF.UI.form(
  2607. "課程詳情",
  2608. $$("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 }), {
  2609. "id": "studyDetail",
  2610. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2611. "onresize": function () { }
  2612. }, {
  2613. closecallback: function () { }
  2614. }, { "style": { "height": "36px" } }).form; //創建窗體
  2615. _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); } }
  2616. break;
  2617. }
  2618. case "hanUrl":
  2619. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2620. setTimeout(() => {
  2621. U.MD.U.L.login();
  2622. }, 2000);
  2623. } else {
  2624. _formdiv = new U.UF.UI.form(
  2625. "漢字宮",
  2626. $$("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" }), {
  2627. "id": "hanUrl",
  2628. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2629. "onresize": function () { }
  2630. }, {
  2631. closecallback: function () { }
  2632. }, { "style": { "height": "36px" } }).form; //創建窗體
  2633. _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); } }
  2634. break;
  2635. }
  2636. case "index":
  2637. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2638. setTimeout(() => {
  2639. U.MD.U.L.login();
  2640. }, 2000);
  2641. } else {
  2642. _formdiv = new U.UF.UI.form(
  2643. "課程中心",
  2644. $$("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 }), {
  2645. "id": "study",
  2646. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2647. "onresize": function () { }
  2648. }, {
  2649. closecallback: function () { }
  2650. }, { "style": { "height": "36px" } }).form; //創建窗體
  2651. _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); } }
  2652. break;
  2653. }
  2654. case "dataClass":
  2655. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2656. setTimeout(() => {
  2657. U.MD.U.L.login();
  2658. }, 2000);
  2659. } else {
  2660. _formdiv = new U.UF.UI.form(
  2661. "數據報告",
  2662. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/worksReport?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&cid=" + _classId + "&checkid=" + data.classid }), {
  2663. "id": "dataClass",
  2664. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2665. "onresize": function () { }
  2666. }, {
  2667. closecallback: function () { }
  2668. }, { "style": { "height": "36px" } }).form; //創建窗體
  2669. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "數據報告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2670. break;
  2671. }
  2672. case "opencCscl":
  2673. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2674. setTimeout(() => {
  2675. U.MD.U.L.login();
  2676. }, 2000);
  2677. } else {
  2678. _formdiv = new U.UF.UI.form(
  2679. "協同建構",
  2680. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cscl.cocorobo.hk?cid=" + data.cid + "&gid=" + data.gid }), {
  2681. "id": "futureClass",
  2682. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2683. "onresize": function () { }
  2684. }, {
  2685. closecallback: function () { }
  2686. }, { "style": { "height": "36px" } }).form; //創建窗體
  2687. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/futureClass.png)" }, "name": "協同建構", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2688. break;
  2689. }
  2690. }
  2691. }
  2692. U.MD.D.I.openApplication = function (str, obj, info) {
  2693. obj = obj || {};
  2694. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  2695. _formdiv, //創建任務欄時同時彈出的窗體元素。
  2696. _userinfo = US.userInfo, //登錄用戶信息
  2697. _userid = obj.userid || US.userInfo.userid, //登錄用戶id
  2698. _oid = obj.organizeid || _userinfo.organizeid,
  2699. _type = US.userInfo.type,
  2700. _org = US.userInfo.org,
  2701. _role = US.userInfo.role,
  2702. _classId = US.userInfo.classid,
  2703. _TscreenType = 1
  2704. _screenType = 2,
  2705. _SscreenType = 3;
  2706. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2707. return;
  2708. }
  2709. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2710. switch (str) {
  2711. case "studnetProject": //好友打開
  2712. _formdiv = new U.UF.UI.form(
  2713. "我的項目",
  2714. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  2715. "id": "studnetProject",
  2716. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2717. "onresize": function () { }
  2718. }, {
  2719. closecallback: function () { }
  2720. }, { "style": { "height": "36px" } }).form; //創建窗體
  2721. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的項目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2722. break;
  2723. case "studentEvaluate": //好友打開
  2724. _formdiv = new U.UF.UI.form(
  2725. "我的評價",
  2726. $$("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 }), {
  2727. "id": "studentEvaluate",
  2728. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2729. "onresize": function () { }
  2730. }, {
  2731. closecallback: function () { }
  2732. }, { "style": { "height": "36px" } }).form; //創建窗體
  2733. _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); } }
  2734. break;
  2735. case "my":
  2736. _formdiv = new U.UF.UI.form(
  2737. "我的資料",
  2738. $$("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 }), {
  2739. "id": "my",
  2740. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2741. "onresize": function () { }
  2742. }, {
  2743. closecallback: function () { }
  2744. }, { "style": { "height": "36px" } }).form; //創建窗體
  2745. _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); } }
  2746. break;
  2747. case "program":
  2748. _formdiv = new U.UF.UI.form(
  2749. "編程平臺",
  2750. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2751. "id": "program",
  2752. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2753. "onresize": function () { }
  2754. }, {
  2755. closecallback: function () { }
  2756. }, { "style": { "height": "36px" } }).form; //創建窗體
  2757. _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); } }
  2758. break;
  2759. case "library":
  2760. _formdiv = new U.UF.UI.form(
  2761. "素材庫",
  2762. $$("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 }), {
  2763. "id": "library",
  2764. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2765. "onresize": function () { }
  2766. }, {
  2767. closecallback: function () { }
  2768. }, { "style": { "height": "36px" } }).form; //創建窗體
  2769. _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); } }
  2770. break;
  2771. case "whiteboard":
  2772. _formdiv = new U.UF.UI.form(
  2773. "電子白板",
  2774. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2775. "id": "whiteboard",
  2776. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2777. "onresize": function () { }
  2778. }, {
  2779. closecallback: function () { }
  2780. }, { "style": { "height": "36px" } }).form; //創建窗體
  2781. _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); } }
  2782. break;
  2783. case "investigation":
  2784. _formdiv = new U.UF.UI.form(
  2785. "問卷調查",
  2786. $$("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 }), {
  2787. "id": "investigation",
  2788. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2789. "onresize": function () { }
  2790. }, {
  2791. closecallback: function () { }
  2792. }, { "style": { "height": "36px" } }).form; //創建窗體
  2793. _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); } }
  2794. break;
  2795. case "note":
  2796. _formdiv = new U.UF.UI.form(
  2797. "便簽分類",
  2798. $$("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 }), {
  2799. "id": "note",
  2800. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2801. "onresize": function () { }
  2802. }, {
  2803. closecallback: function () { }
  2804. }, { "style": { "height": "36px" } }).form; //創建窗體
  2805. _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); } }
  2806. break;
  2807. // case "score":
  2808. // _formdiv = new U.UF.UI.form(
  2809. // "量規評分",
  2810. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2811. // "id": "score",
  2812. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2813. // "onresize": function() {}
  2814. // }, {
  2815. // closecallback: function() {}
  2816. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2817. // _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); } }
  2818. // break;
  2819. case "mind":
  2820. _formdiv = new U.UF.UI.form(
  2821. "思維導圖",
  2822. $$("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"
  2823. "id": "mind",
  2824. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2825. "onresize": function () { }
  2826. }, {
  2827. closecallback: function () { }
  2828. }, { "style": { "height": "36px" } }).form; //創建窗體
  2829. _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); } }
  2830. break;
  2831. case "doc":
  2832. // U.MD.D.I.isRoom();
  2833. _formdiv = new U.UF.UI.form(
  2834. "協同文檔",
  2835. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2836. "id": "doc",
  2837. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2838. "onresize": function () { }
  2839. }, {
  2840. closecallback: function () { }
  2841. }, { "style": { "height": "36px" } }).form; //創建窗體
  2842. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2843. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2844. // })
  2845. _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); } }
  2846. break;
  2847. case "studentStudy":
  2848. _formdiv = new U.UF.UI.form(
  2849. "課程中心",
  2850. $$("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
  2851. "id": "studentStudy",
  2852. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2853. "onresize": function () { }
  2854. }, {
  2855. closecallback: function () { }
  2856. }, { "style": { "height": "36px" } }).form; //創建窗體
  2857. _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); } }
  2858. break;
  2859. case "train": //好友打開
  2860. _formdiv = new U.UF.UI.form(
  2861. "訓練平臺",
  2862. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2863. "id": "train",
  2864. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2865. "onresize": function () { }
  2866. }, {
  2867. closecallback: function () { }
  2868. }, { "style": { "height": "36px" } }).form; //創建窗體
  2869. _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); } }
  2870. break;
  2871. case "mindNetwork": //好友打開
  2872. _formdiv = new U.UF.UI.form(
  2873. "思維網格",
  2874. $$("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 }), {
  2875. "id": "mindNetwork",
  2876. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2877. "onresize": function () { }
  2878. }, {
  2879. closecallback: function () { }
  2880. }, { "style": { "height": "36px" } }).form; //創建窗體
  2881. _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); } }
  2882. break;
  2883. case "studentClassRoom": //好友打開
  2884. _formdiv = new U.UF.UI.form(
  2885. "實時課堂",
  2886. $$("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 }), {
  2887. "id": "studentClassRoom",
  2888. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2889. "onresize": function () { }
  2890. }, {
  2891. closecallback: function () { }
  2892. }, { "style": { "height": "36px" } }).form; //創建窗體
  2893. _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); } }
  2894. setTimeout(() => {
  2895. U.UF.F.windowZooming(_formdiv)
  2896. }, 0);
  2897. break;
  2898. }
  2899. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2900. switch (str) {
  2901. case "studnetProject": //好友打開
  2902. _formdiv = new U.UF.UI.form(
  2903. "我的項目",
  2904. $$("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 }), {
  2905. "id": "studnetProject",
  2906. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2907. "onresize": function () { }
  2908. }, {
  2909. closecallback: function () { }
  2910. }, { "style": { "height": "36px" } }).form; //創建窗體
  2911. _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); } }
  2912. break;
  2913. case "studentEvaluate": //好友打開
  2914. _formdiv = new U.UF.UI.form(
  2915. "我的評價",
  2916. $$("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 }), {
  2917. "id": "studentEvaluate",
  2918. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2919. "onresize": function () { }
  2920. }, {
  2921. closecallback: function () { }
  2922. }, { "style": { "height": "36px" } }).form; //創建窗體
  2923. _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); } }
  2924. break;
  2925. case "my":
  2926. _formdiv = new U.UF.UI.form(
  2927. "我的資料",
  2928. $$("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 }), {
  2929. "id": "my",
  2930. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2931. "onresize": function () { }
  2932. }, {
  2933. closecallback: function () { }
  2934. }, { "style": { "height": "36px" } }).form; //創建窗體
  2935. _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); } }
  2936. break;
  2937. case "program":
  2938. _formdiv = new U.UF.UI.form(
  2939. "編程平臺",
  2940. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2941. "id": "program",
  2942. "style": { "width": "70%", "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/myMessage.png)" }, "name": "編程平臺", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2948. break;
  2949. case "library":
  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/#/library?userid=" + _userid + "&org=" + _org }), {
  2953. "id": "library",
  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/library.png)" }, "name": "素材庫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2960. break;
  2961. case "whiteboard":
  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": "https://iwb.cocorobo.hk/" }), {
  2965. "id": "whiteboard",
  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/whiteBoard.png)" }, "name": "電子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2972. break;
  2973. case "investigation":
  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/#/ask?userid=" + _userid + "&org=" + _org }), {
  2977. "id": "investigation",
  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/ask.png)" }, "name": "問卷調查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2984. break;
  2985. case "note":
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  2989. "id": "note",
  2990. "style": { "width": "20%", "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/note.png)" }, "name": "便簽分類", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2996. break;
  2997. // case "score":
  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": US.Config.bpbl + "" }), {
  3001. // "id": "score",
  3002. // "style": { "width": "90%", "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/score.png)" }, "name": "量規評分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3008. // break;
  3009. case "mind":
  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": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  3013. "id": "mind",
  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/mindMapping.png)" }, "name": "思維導圖", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3020. break;
  3021. case "doc":
  3022. // U.MD.D.I.isRoom();
  3023. _formdiv = new U.UF.UI.form(
  3024. "協同文檔",
  3025. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3026. "id": "doc",
  3027. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3028. "onresize": function () { }
  3029. }, {
  3030. closecallback: function () { }
  3031. }, { "style": { "height": "36px" } }).form; //創建窗體
  3032. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3033. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3034. })
  3035. _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); } }
  3036. break;
  3037. case "train": //好友打開
  3038. _formdiv = new U.UF.UI.form(
  3039. "訓練平臺",
  3040. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3041. "id": "train",
  3042. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3043. "onresize": function () { }
  3044. }, {
  3045. closecallback: function () { }
  3046. }, { "style": { "height": "36px" } }).form; //創建窗體
  3047. _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); } }
  3048. break;
  3049. case "studentStudy":
  3050. _formdiv = new U.UF.UI.form(
  3051. "課程中心",
  3052. $$("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
  3053. "id": "studentStudy",
  3054. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3055. "onresize": function () { }
  3056. }, {
  3057. closecallback: function () { }
  3058. }, { "style": { "height": "36px" } }).form; //創建窗體
  3059. _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); } }
  3060. break;
  3061. case "mindNetwork": //好友打開
  3062. _formdiv = new U.UF.UI.form(
  3063. "思維網格",
  3064. $$("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 }), {
  3065. "id": "mindNetwork",
  3066. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3067. "onresize": function () { }
  3068. }, {
  3069. closecallback: function () { }
  3070. }, { "style": { "height": "36px" } }).form; //創建窗體
  3071. _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); } }
  3072. break;
  3073. case "studentClassRoom": //好友打開
  3074. _formdiv = new U.UF.UI.form(
  3075. "實時課堂",
  3076. $$("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 }), {
  3077. "id": "studentClassRoom",
  3078. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3079. "onresize": function () { }
  3080. }, {
  3081. closecallback: function () { }
  3082. }, { "style": { "height": "36px" } }).form; //創建窗體
  3083. _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); } }
  3084. setTimeout(() => {
  3085. U.UF.F.windowZooming(_formdiv)
  3086. }, 0);
  3087. break;
  3088. }
  3089. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  3090. //選擇應用處理
  3091. switch (str) {
  3092. case "project": //好友打開
  3093. _formdiv = new U.UF.UI.form(
  3094. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目' : "課程管理",
  3095. $$("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 }), {
  3096. "id": "project",
  3097. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3098. "onresize": function () { }
  3099. }, {
  3100. closecallback: function () { }
  3101. }, { "style": { "height": "36px" } }).form; //創建窗體
  3102. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目' : "課程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3103. break;
  3104. case "student":
  3105. _formdiv = new U.UF.UI.form(
  3106. "學生管理",
  3107. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org + "&role=" + _role }), {
  3108. "id": "student",
  3109. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3110. "onresize": function () { }
  3111. }, {
  3112. closecallback: function () { }
  3113. }, { "style": { "height": "36px" } }).form; //創建窗體
  3114. _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); } }
  3115. break;
  3116. case "evaluate":
  3117. _formdiv = new U.UF.UI.form(
  3118. "學生評價",
  3119. $$("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 }), {
  3120. "id": "evaluate",
  3121. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3122. "onresize": function () { }
  3123. }, {
  3124. closecallback: function () { }
  3125. }, { "style": { "height": "36px" } }).form; //創建窗體
  3126. _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); } }
  3127. break;
  3128. case "sys":
  3129. _formdiv = new U.UF.UI.form(
  3130. "目標管理",
  3131. $$("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 }), {
  3132. "id": "sys",
  3133. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3134. "onresize": function () { }
  3135. }, {
  3136. closecallback: function () { }
  3137. }, { "style": { "height": "36px" } }).form; //創建窗體
  3138. _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); } }
  3139. break;
  3140. case "courseDesign":
  3141. _formdiv = new U.UF.UI.form(
  3142. "項目設計",
  3143. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3144. "id": "courseDesign",
  3145. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3146. "onresize": function () { }
  3147. }, {
  3148. closecallback: function () { }
  3149. }, { "style": { "height": "36px" } }).form; //創建窗體
  3150. _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); } }
  3151. break;
  3152. case "program":
  3153. _formdiv = new U.UF.UI.form(
  3154. "編程平臺",
  3155. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3156. "id": "program",
  3157. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3158. "onresize": function () { }
  3159. }, {
  3160. closecallback: function () { }
  3161. }, { "style": { "height": "36px" } }).form; //創建窗體
  3162. _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); } }
  3163. break;
  3164. case "class":
  3165. _formdiv = new U.UF.UI.form(
  3166. "班級管理",
  3167. $$("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 }), {
  3168. "id": "class",
  3169. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3170. "onresize": function () { }
  3171. }, {
  3172. closecallback: function () { }
  3173. }, { "style": { "height": "36px" } }).form; //創建窗體
  3174. _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); } }
  3175. break;
  3176. case "Grade":
  3177. _formdiv = new U.UF.UI.form(
  3178. "年級管理",
  3179. $$("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 }), {
  3180. "id": "Grade",
  3181. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3182. "onresize": function () { }
  3183. }, {
  3184. closecallback: function () { }
  3185. }, { "style": { "height": "36px" } }).form; //創建窗體
  3186. _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); } }
  3187. break;
  3188. case "teacherOffice":
  3189. _formdiv = new U.UF.UI.form(
  3190. "教研室",
  3191. $$("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 }), {
  3192. "id": "teacherOffice",
  3193. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3194. "onresize": function () { }
  3195. }, {
  3196. closecallback: function () { }
  3197. }, { "style": { "height": "36px" } }).form; //創建窗體
  3198. _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); } }
  3199. break;
  3200. case "my":
  3201. _formdiv = new U.UF.UI.form(
  3202. "我的資料",
  3203. $$("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 }), {
  3204. "id": "my",
  3205. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3206. "onresize": function () { }
  3207. }, {
  3208. closecallback: function () { }
  3209. }, { "style": { "height": "36px" } }).form; //創建窗體
  3210. _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); } }
  3211. break;
  3212. case "notice":
  3213. _formdiv = new U.UF.UI.form(
  3214. "通知公告",
  3215. $$("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 }), {
  3216. "id": "notice",
  3217. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3218. "onresize": function () { }
  3219. }, {
  3220. closecallback: function () { }
  3221. }, { "style": { "height": "36px" } }).form; //創建窗體
  3222. _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); } }
  3223. break;
  3224. case "library":
  3225. _formdiv = new U.UF.UI.form(
  3226. "素材庫",
  3227. $$("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 }), {
  3228. "id": "library",
  3229. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3230. "onresize": function () { }
  3231. }, {
  3232. closecallback: function () { }
  3233. }, { "style": { "height": "36px" } }).form; //創建窗體
  3234. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材庫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3235. break;
  3236. case "whiteboard":
  3237. _formdiv = new U.UF.UI.form(
  3238. "電子白板",
  3239. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3240. "id": "whiteboard",
  3241. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3242. "onresize": function () { }
  3243. }, {
  3244. closecallback: function () { }
  3245. }, { "style": { "height": "36px" } }).form; //創建窗體
  3246. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "電子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3247. break;
  3248. case "investigation":
  3249. _formdiv = new U.UF.UI.form(
  3250. "問卷調查",
  3251. $$("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 }), {
  3252. "id": "investigation",
  3253. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3254. "onresize": function () { }
  3255. }, {
  3256. closecallback: function () { }
  3257. }, { "style": { "height": "36px" } }).form; //創建窗體
  3258. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "問卷調查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3259. break;
  3260. case "note":
  3261. _formdiv = new U.UF.UI.form(
  3262. "便簽分類",
  3263. $$("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 }), {
  3264. "id": "note",
  3265. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  3266. "onresize": function () { }
  3267. }, {
  3268. closecallback: function () { }
  3269. }, { "style": { "height": "36px" } }).form; //創建窗體
  3270. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便簽分類", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3271. break;
  3272. // case "score":
  3273. // _formdiv = new U.UF.UI.form(
  3274. // "量規評分",
  3275. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  3276. // "id": "score",
  3277. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3278. // "onresize": function() {}
  3279. // }, {
  3280. // closecallback: function() {}
  3281. // }, { "style": { "height": "36px" } }).form; //創建窗體
  3282. // _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); } }
  3283. // break;
  3284. case "mind":
  3285. _formdiv = new U.UF.UI.form(
  3286. "思維導圖",
  3287. $$("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"
  3288. "id": "mind",
  3289. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3290. "onresize": function () { }
  3291. }, {
  3292. closecallback: function () { }
  3293. }, { "style": { "height": "36px" } }).form; //創建窗體
  3294. _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); } }
  3295. break;
  3296. case "doc":
  3297. // U.MD.D.I.isRoom();
  3298. _formdiv = new U.UF.UI.form(
  3299. "協同文檔",
  3300. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3301. "id": "doc",
  3302. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3303. "onresize": function () { }
  3304. }, {
  3305. closecallback: function () { }
  3306. }, { "style": { "height": "36px" } }).form; //創建窗體
  3307. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3308. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3309. })
  3310. _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); } }
  3311. break;
  3312. case "study":
  3313. _formdiv = new U.UF.UI.form(
  3314. "課程中心",
  3315. $$("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
  3316. "id": "study",
  3317. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3318. "onresize": function () { }
  3319. }, {
  3320. closecallback: function () { }
  3321. }, { "style": { "height": "36px" } }).form; //創建窗體
  3322. _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); } }
  3323. break;
  3324. case "mindNetwork": //好友打開
  3325. _formdiv = new U.UF.UI.form(
  3326. "思維網格",
  3327. $$("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 }), {
  3328. "id": "mindNetwork",
  3329. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3330. "onresize": function () { }
  3331. }, {
  3332. closecallback: function () { }
  3333. }, { "style": { "height": "36px" } }).form; //創建窗體
  3334. _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); } }
  3335. break;
  3336. case "train": //好友打開
  3337. _formdiv = new U.UF.UI.form(
  3338. "訓練平臺",
  3339. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3340. "id": "mindNetwork",
  3341. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3342. "onresize": function () { }
  3343. }, {
  3344. closecallback: function () { }
  3345. }, { "style": { "height": "36px" } }).form; //創建窗體
  3346. _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); } }
  3347. break;
  3348. case "teacherClassRoom": //好友打開
  3349. _formdiv = new U.UF.UI.form(
  3350. "實時課堂",
  3351. $$("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 }), {
  3352. "id": "teacherClassRoom",
  3353. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3354. "onresize": function () { }
  3355. }, {
  3356. closecallback: function () { }
  3357. }, { "style": { "height": "36px" } }).form; //創建窗體
  3358. _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); } }
  3359. setTimeout(() => {
  3360. U.UF.F.windowZooming(_formdiv)
  3361. }, 0);
  3362. break;
  3363. }
  3364. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  3365. switch (str) {
  3366. case "project": //好友打開
  3367. _formdiv = new U.UF.UI.form(
  3368. "課程管理",
  3369. $$("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 }), {
  3370. "id": "project",
  3371. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3372. "onresize": function () { }
  3373. }, {
  3374. closecallback: function () { }
  3375. }, { "style": { "height": "36px" } }).form; //創建窗體
  3376. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "課程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3377. break;
  3378. case "evaluate":
  3379. _formdiv = new U.UF.UI.form(
  3380. "學生評價",
  3381. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3382. "id": "evaluate",
  3383. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3384. "onresize": function () { }
  3385. }, {
  3386. closecallback: function () { }
  3387. }, { "style": { "height": "36px" } }).form; //創建窗體
  3388. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "學生評價", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3389. break;
  3390. case "notice":
  3391. _formdiv = new U.UF.UI.form(
  3392. "通知公告",
  3393. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  3394. "id": "notice",
  3395. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3396. "onresize": function () { }
  3397. }, {
  3398. closecallback: function () { }
  3399. }, { "style": { "height": "36px" } }).form; //創建窗體
  3400. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3401. break;
  3402. case "stuLibrary":
  3403. _formdiv = new U.UF.UI.form(
  3404. "學習資料",
  3405. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studyLibrary?userid=" + _userid + "&org=" + _org }), {
  3406. "id": "stuLibrary",
  3407. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3408. "onresize": function () { }
  3409. }, {
  3410. closecallback: function () { }
  3411. }, { "style": { "height": "36px" } }).form; //創建窗體
  3412. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/stuLibrary.png)" }, "name": "學習資料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3413. break;
  3414. case "program":
  3415. _formdiv = new U.UF.UI.form(
  3416. "編程平臺",
  3417. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3418. "id": "program",
  3419. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3420. "onresize": function () { }
  3421. }, {
  3422. closecallback: function () { }
  3423. }, { "style": { "height": "36px" } }).form; //創建窗體
  3424. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "編程平臺", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3425. break;
  3426. case "whiteboard":
  3427. _formdiv = new U.UF.UI.form(
  3428. "電子白板",
  3429. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3430. "id": "whiteboard",
  3431. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3432. "onresize": function () { }
  3433. }, {
  3434. closecallback: function () { }
  3435. }, { "style": { "height": "36px" } }).form; //創建窗體
  3436. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "電子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3437. break;
  3438. case "investigation":
  3439. _formdiv = new U.UF.UI.form(
  3440. "問卷調查",
  3441. $$("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 }), {
  3442. "id": "investigation",
  3443. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3444. "onresize": function () { }
  3445. }, {
  3446. closecallback: function () { }
  3447. }, { "style": { "height": "36px" } }).form; //創建窗體
  3448. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "問卷調查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3449. break;
  3450. case "mind":
  3451. _formdiv = new U.UF.UI.form(
  3452. "思維導圖",
  3453. $$("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"
  3454. "id": "mind",
  3455. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3456. "onresize": function () { }
  3457. }, {
  3458. closecallback: function () { }
  3459. }, { "style": { "height": "36px" } }).form; //創建窗體
  3460. _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); } }
  3461. break;
  3462. case "doc":
  3463. // U.MD.D.I.isRoom();
  3464. _formdiv = new U.UF.UI.form(
  3465. "協同文檔",
  3466. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3467. "id": "doc",
  3468. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3469. "onresize": function () { }
  3470. }, {
  3471. closecallback: function () { }
  3472. }, { "style": { "height": "36px" } }).form; //創建窗體
  3473. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3474. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3475. })
  3476. _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); } }
  3477. break;
  3478. case "study":
  3479. _formdiv = new U.UF.UI.form(
  3480. "課程中心",
  3481. $$("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
  3482. "id": "study",
  3483. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3484. "onresize": function () { }
  3485. }, {
  3486. closecallback: function () { }
  3487. }, { "style": { "height": "36px" } }).form; //創建窗體
  3488. _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); } }
  3489. break;
  3490. case "mindNetwork": //好友打開
  3491. _formdiv = new U.UF.UI.form(
  3492. "思維網格",
  3493. $$("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 }), {
  3494. "id": "mindNetwork",
  3495. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3496. "onresize": function () { }
  3497. }, {
  3498. closecallback: function () { }
  3499. }, { "style": { "height": "36px" } }).form; //創建窗體
  3500. _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); } }
  3501. break;
  3502. case "train": //好友打開
  3503. _formdiv = new U.UF.UI.form(
  3504. "訓練平臺",
  3505. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3506. "id": "train",
  3507. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3508. "onresize": function () { }
  3509. }, {
  3510. closecallback: function () { }
  3511. }, { "style": { "height": "36px" } }).form; //創建窗體
  3512. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "訓練平臺", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3513. break;
  3514. case "sys":
  3515. _formdiv = new U.UF.UI.form(
  3516. "目標管理",
  3517. $$("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 }), {
  3518. "id": "sys",
  3519. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3520. "onresize": function () { }
  3521. }, {
  3522. closecallback: function () { }
  3523. }, { "style": { "height": "36px" } }).form; //創建窗體
  3524. _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); } }
  3525. break;
  3526. case "courseDesign":
  3527. _formdiv = new U.UF.UI.form(
  3528. "項目設計",
  3529. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3530. "id": "courseDesign",
  3531. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3532. "onresize": function () { }
  3533. }, {
  3534. closecallback: function () { }
  3535. }, { "style": { "height": "36px" } }).form; //創建窗體
  3536. _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); } }
  3537. break;
  3538. }
  3539. } else if (!_type) {
  3540. switch (str) {
  3541. case "my":
  3542. _formdiv = new U.UF.UI.form(
  3543. "我的資料",
  3544. $$("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 }), {
  3545. "id": "my",
  3546. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3547. "onresize": function () { }
  3548. }, {
  3549. closecallback: function () { }
  3550. }, { "style": { "height": "36px" } }).form; //創建窗體
  3551. _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); } }
  3552. break;
  3553. }
  3554. }
  3555. switch (str) {
  3556. // AIprogram2 AI體驗 aihub.cocorobo.cn
  3557. // Pythonprogram Python編程 python-blockly.cocorobo.cn
  3558. // AIprogram AI編程 ai-blockly.cocorobo.cn
  3559. case "formulaEdi": //公式編輯
  3560. _formdiv = new U.UF.UI.form(
  3561. "公式編輯",
  3562. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.latexlive.com/" }), {
  3563. "id": "formulaEdi",
  3564. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3565. "onresize": function () { }
  3566. }, {
  3567. closecallback: function () { }
  3568. }, { "style": { "height": "36px" } }).form; //創建窗體
  3569. _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); } }
  3570. break;
  3571. case "molStr": //分子結構
  3572. _formdiv = new U.UF.UI.form(
  3573. "分子結構",
  3574. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://molview.org/" }), {
  3575. "id": "molStr",
  3576. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3577. "onresize": function () { }
  3578. }, {
  3579. closecallback: function () { }
  3580. }, { "style": { "height": "36px" } }).form; //創建窗體
  3581. _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); } }
  3582. break;
  3583. case "timeAxis": //時間軸
  3584. _formdiv = new U.UF.UI.form(
  3585. "時間軸",
  3586. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://time.graphics/editor" }), {
  3587. "id": "timeAxis",
  3588. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3589. "onresize": function () { }
  3590. }, {
  3591. closecallback: function () { }
  3592. }, { "style": { "height": "36px" } }).form; //創建窗體
  3593. _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); } }
  3594. break;
  3595. case "AIprogram2": //AI體驗
  3596. _formdiv = new U.UF.UI.form(
  3597. "AI體驗",
  3598. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3599. "id": "AIprogram2",
  3600. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3601. "onresize": function () { }
  3602. }, {
  3603. closecallback: function () { }
  3604. }, { "style": { "height": "36px" } }).form; //創建窗體
  3605. _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); } }
  3606. break;
  3607. case "Pythonprogram": //python編程
  3608. _formdiv = new U.UF.UI.form(
  3609. "Python編程",
  3610. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3611. "id": "Pythonprogram",
  3612. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3613. "onresize": function () { }
  3614. }, {
  3615. closecallback: function () { }
  3616. }, { "style": { "height": "36px" } }).form; //創建窗體
  3617. _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); } }
  3618. break;
  3619. case "AIprogram": //ai編程
  3620. _formdiv = new U.UF.UI.form(
  3621. "AI編程平臺",
  3622. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3623. "id": "AIprogram",
  3624. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3625. "onresize": function () { }
  3626. }, {
  3627. closecallback: function () { }
  3628. }, { "style": { "height": "36px" } }).form; //創建窗體
  3629. _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); } }
  3630. break;
  3631. case "CocoPi": //CocoPi
  3632. _formdiv = new U.UF.UI.form(
  3633. "CocoPi",
  3634. $$("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" }), {
  3635. "id": "CocoPi",
  3636. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3637. "onresize": function () { }
  3638. }, {
  3639. closecallback: function () { }
  3640. }, { "style": { "height": "36px" } }).form; //創建窗體
  3641. _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); } }
  3642. break;
  3643. case "Wood": //Wood
  3644. _formdiv = new U.UF.UI.form(
  3645. "海龜編程",
  3646. $$("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/" }), {
  3647. "id": "Wood",
  3648. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3649. "onresize": function () { }
  3650. }, {
  3651. closecallback: function () { }
  3652. }, { "style": { "height": "36px" } }).form; //創建窗體
  3653. _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); } }
  3654. break;
  3655. case "car": //模擬駕駛
  3656. _formdiv = new U.UF.UI.form(
  3657. "模擬駕駛",
  3658. $$("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/" }), {
  3659. "id": "car",
  3660. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3661. "onresize": function () { }
  3662. }, {
  3663. closecallback: function () { }
  3664. }, { "style": { "height": "36px" } }).form; //創建窗體
  3665. _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); } }
  3666. break;
  3667. case "lineSearch": //路徑搜索
  3668. _formdiv = new U.UF.UI.form(
  3669. "路徑搜索",
  3670. $$("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/" }), {
  3671. "id": "lineSearch",
  3672. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3673. "onresize": function () { }
  3674. }, {
  3675. closecallback: function () { }
  3676. }, { "style": { "height": "36px" } }).form; //創建窗體
  3677. _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); } }
  3678. break;
  3679. case "deepLearning": //深度學習
  3680. _formdiv = new U.UF.UI.form(
  3681. "深度學習",
  3682. $$("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/#" }), {
  3683. "id": "deepLearning",
  3684. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3685. "onresize": function () { }
  3686. }, {
  3687. closecallback: function () { }
  3688. }, { "style": { "height": "36px" } }).form; //創建窗體
  3689. _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); } }
  3690. break;
  3691. case "allHistory": //深度學習
  3692. _formdiv = new U.UF.UI.form(
  3693. "全歷史",
  3694. $$("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/" }), {
  3695. "id": "allHistory",
  3696. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3697. "onresize": function () { }
  3698. }, {
  3699. closecallback: function () { }
  3700. }, { "style": { "height": "36px" } }).form; //創建窗體
  3701. _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); } }
  3702. break;
  3703. case "chatPDF": //ai編程
  3704. _formdiv = new U.UF.UI.form(
  3705. "chatPDF",
  3706. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3707. "id": "chatPDF",
  3708. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3709. "onresize": function () { }
  3710. }, {
  3711. closecallback: function () { }
  3712. }, { "style": { "height": "36px" } }).form; //創建窗體
  3713. _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); } }
  3714. break;
  3715. case "resources": //國家教育
  3716. _formdiv = new U.UF.UI.form(
  3717. "國家教育",
  3718. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3719. "id": "resources",
  3720. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3721. "onresize": function () { }
  3722. }, {
  3723. closecallback: function () { }
  3724. }, { "style": { "height": "36px" } }).form; //創建窗體
  3725. _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); } }
  3726. break;
  3727. case "codeEdit": //源碼編輯
  3728. _formdiv = new U.UF.UI.form(
  3729. "源碼編輯",
  3730. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3731. "id": "codeEdit",
  3732. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3733. "onresize": function () { }
  3734. }, {
  3735. closecallback: function () { }
  3736. }, { "style": { "height": "36px" } }).form; //創建窗體
  3737. _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); } }
  3738. break; //
  3739. case "MindMap": //MindMap
  3740. _formdiv = new U.UF.UI.form(
  3741. "MindMap",
  3742. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3743. "id": "MindMap",
  3744. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3745. "onresize": function () { }
  3746. }, {
  3747. closecallback: function () { }
  3748. }, { "style": { "height": "36px" } }).form; //創建窗體
  3749. _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); } }
  3750. break;
  3751. case "netWorkPanel": //netWorkPanel
  3752. _formdiv = new U.UF.UI.form(
  3753. "netWorkPanel",
  3754. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3755. "id": "netWorkPanel",
  3756. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3757. "onresize": function () { }
  3758. }, {
  3759. closecallback: function () { }
  3760. }, { "style": { "height": "36px" } }).form; //創建窗體
  3761. _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); } }
  3762. break;
  3763. case "GeoGebra": //GeoGebra
  3764. _formdiv = new U.UF.UI.form(
  3765. "GeoGebra",
  3766. $$("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" }), {
  3767. "id": "GeoGebra",
  3768. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3769. "onresize": function () { }
  3770. }, {
  3771. closecallback: function () { }
  3772. }, { "style": { "height": "36px" } }).form; //創建窗體
  3773. _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); } }
  3774. break;
  3775. case "translation": //翻譯
  3776. _formdiv = new U.UF.UI.form(
  3777. "翻譯",
  3778. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3779. "id": "translation",
  3780. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3781. "onresize": function () { }
  3782. }, {
  3783. closecallback: function () { }
  3784. }, { "style": { "height": "36px" } }).form; //創建窗體
  3785. _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); } }
  3786. break;
  3787. case "mohe": //魔盒
  3788. _formdiv = new U.UF.UI.form(
  3789. "魔盒識字",
  3790. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3791. "id": "mohe",
  3792. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3793. "onresize": function () { }
  3794. }, {
  3795. closecallback: function () { }
  3796. }, { "style": { "height": "36px" } }).form; //創建窗體
  3797. _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); } }
  3798. break;
  3799. case "24game": //24點
  3800. _formdiv = new U.UF.UI.form(
  3801. "24點",
  3802. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3803. "id": "24game",
  3804. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3805. "onresize": function () { }
  3806. }, {
  3807. closecallback: function () { }
  3808. }, { "style": { "height": "36px" } }).form; //創建窗體
  3809. _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); } }
  3810. break;
  3811. case "case":
  3812. _formdiv = new U.UF.UI.form(
  3813. "課程進展",
  3814. $$("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 }), {
  3815. "id": "case",
  3816. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3817. "onresize": function () { }
  3818. }, {
  3819. closecallback: function () { }
  3820. }, { "style": { "height": "36px" } }).form; //創建窗體
  3821. _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); } }
  3822. break;
  3823. case "snf":
  3824. _formdiv = new U.UF.UI.form(
  3825. "賽諾梵",
  3826. $$("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" }), {
  3827. "id": "snf",
  3828. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3829. "onresize": function () { }
  3830. }, {
  3831. closecallback: function () { }
  3832. }, { "style": { "height": "36px" } }).form; //創建窗體
  3833. _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); } }
  3834. break;
  3835. case "hanFamily":
  3836. _formdiv = new U.UF.UI.form(
  3837. "漢字家族",
  3838. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3839. "id": "hanFamily",
  3840. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3841. "onresize": function () { }
  3842. }, {
  3843. closecallback: function () { }
  3844. }, { "style": { "height": "36px" } }).form; //創建窗體
  3845. _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); } }
  3846. break;
  3847. case "hanClassics":
  3848. _formdiv = new U.UF.UI.form(
  3849. "國學經典",
  3850. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3851. "id": "hanClassics",
  3852. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3853. "onresize": function () { }
  3854. }, {
  3855. closecallback: function () { }
  3856. }, { "style": { "height": "36px" } }).form; //創建窗體
  3857. _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); } }
  3858. break;
  3859. case "hanTraining":
  3860. _formdiv = new U.UF.UI.form(
  3861. "筆畫訓練",
  3862. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3863. "id": "hanTraining",
  3864. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3865. "onresize": function () { }
  3866. }, {
  3867. closecallback: function () { }
  3868. }, { "style": { "height": "36px" } }).form; //創建窗體
  3869. _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); } }
  3870. break;
  3871. case "hanClass":
  3872. _formdiv = new U.UF.UI.form(
  3873. "書法課堂",
  3874. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3875. "id": "hanClass",
  3876. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3877. "onresize": function () { }
  3878. }, {
  3879. closecallback: function () { }
  3880. }, { "style": { "height": "36px" } }).form; //創建窗體
  3881. _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); } }
  3882. break;
  3883. case "han":
  3884. _formdiv = new U.UF.UI.form(
  3885. "漢字宮",
  3886. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3887. "id": "han",
  3888. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3889. "onresize": function () { }
  3890. }, {
  3891. closecallback: function () { }
  3892. }, { "style": { "height": "36px" } }).form; //創建窗體
  3893. _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); } }
  3894. break;
  3895. case "projectGM": //課程管理
  3896. _formdiv = new U.UF.UI.form(
  3897. "課程管理",
  3898. $$("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 }), {
  3899. "id": "projectGM",
  3900. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3901. "onresize": function () { }
  3902. }, {
  3903. closecallback: function () { }
  3904. }, { "style": { "height": "36px" } }).form; //創建窗體
  3905. _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); } }
  3906. break;
  3907. case "studyGM": //課程中心
  3908. _formdiv = new U.UF.UI.form(
  3909. "課程中心",
  3910. $$("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
  3911. "id": "study",
  3912. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3913. "onresize": function () { }
  3914. }, {
  3915. closecallback: function () { }
  3916. }, { "style": { "height": "36px" } }).form; //創建窗體
  3917. _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); } }
  3918. break;
  3919. // studentGM
  3920. case "studentGM": //學生管理
  3921. _formdiv = new U.UF.UI.form(
  3922. "學生管理",
  3923. $$("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 }), {
  3924. "id": "studentGM",
  3925. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3926. "onresize": function () { }
  3927. }, {
  3928. closecallback: function () { }
  3929. }, { "style": { "height": "36px" } }).form; //創建窗體
  3930. _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); } }
  3931. break;
  3932. case "evaluateGM": //學生評價
  3933. _formdiv = new U.UF.UI.form(
  3934. "學生評價",
  3935. $$("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 }), {
  3936. "id": "evaluateGM",
  3937. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3938. "onresize": function () { }
  3939. }, {
  3940. closecallback: function () { }
  3941. }, { "style": { "height": "36px" } }).form; //創建窗體
  3942. _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); } }
  3943. break;
  3944. // classGM
  3945. case "classGM": //班級管理
  3946. _formdiv = new U.UF.UI.form(
  3947. "班級管理",
  3948. $$("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 }), {
  3949. "id": "classGM",
  3950. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3951. "onresize": function () { }
  3952. }, {
  3953. closecallback: function () { }
  3954. }, { "style": { "height": "36px" } }).form; //創建窗體
  3955. _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); } }
  3956. break;
  3957. // dataGM
  3958. case "dataGM":
  3959. _formdiv = new U.UF.UI.form(
  3960. "我的資料",
  3961. $$("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 }), {
  3962. "id": "dataGM",
  3963. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3964. "onresize": function () { }
  3965. }, {
  3966. closecallback: function () { }
  3967. }, { "style": { "height": "36px" } }).form; //創建窗體
  3968. _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); } }
  3969. break;
  3970. // caseGM
  3971. case "caseGM": //課程進展
  3972. _formdiv = new U.UF.UI.form(
  3973. "課程進展",
  3974. $$("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 }), {
  3975. "id": "caseGM",
  3976. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3977. "onresize": function () { }
  3978. }, {
  3979. closecallback: function () { }
  3980. }, { "style": { "height": "36px" } }).form; //創建窗體
  3981. _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); } }
  3982. break;
  3983. // meterialGM
  3984. case "meterialGM": //素材庫
  3985. _formdiv = new U.UF.UI.form(
  3986. "素材庫",
  3987. $$("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 }), {
  3988. "id": "meterialGM",
  3989. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3990. "onresize": function () { }
  3991. }, {
  3992. closecallback: function () { }
  3993. }, { "style": { "height": "36px" } }).form; //創建窗體
  3994. _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); } }
  3995. break;
  3996. // evaluateSGM
  3997. case "evaluateSGM": //我的評價
  3998. _formdiv = new U.UF.UI.form(
  3999. "我的評價",
  4000. $$("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 }), {
  4001. "id": "evaluateSGM",
  4002. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  4003. "onresize": function () { }
  4004. }, {
  4005. closecallback: function () { }
  4006. }, { "style": { "height": "36px" } }).form; //創建窗體
  4007. _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); } }
  4008. break;
  4009. case "jupyter": //jupyter
  4010. _formdiv = new U.UF.UI.form(
  4011. "jupyter",
  4012. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  4013. "id": "jupyter",
  4014. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4015. "onresize": function () { }
  4016. }, {
  4017. closecallback: function () { }
  4018. }, { "style": { "height": "36px" } }).form; //創建窗體
  4019. _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); } }
  4020. break;
  4021. case "number": //數字實驗室
  4022. _formdiv = new U.UF.UI.form(
  4023. "數字實驗室",
  4024. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  4025. "id": "number",
  4026. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4027. "onresize": function () { }
  4028. }, {
  4029. closecallback: function () { }
  4030. }, { "style": { "height": "36px" } }).form; //創建窗體
  4031. _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); } }
  4032. break;
  4033. case "studentCourse": //項目管理 學生
  4034. _formdiv = new U.UF.UI.form(
  4035. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  4036. $$("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 }), {
  4037. "id": "studentCourse",
  4038. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4039. "onresize": function () { }
  4040. }, {
  4041. closecallback: function () { }
  4042. }, { "style": { "height": "36px" } }).form; //創建窗體
  4043. _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); } }
  4044. break;
  4045. case "studentCourseS": //項目管理 老師
  4046. _formdiv = new U.UF.UI.form(
  4047. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  4048. $$("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 }), {
  4049. "id": "studentCourseS",
  4050. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4051. "onresize": function () { }
  4052. }, {
  4053. closecallback: function () { }
  4054. }, { "style": { "height": "36px" } }).form; //創建窗體
  4055. _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); } }
  4056. break;
  4057. case "studentIndex": //項目中心
  4058. _formdiv = new U.UF.UI.form(
  4059. "項目中心",
  4060. $$("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 }), {
  4061. "id": "studentIndex",
  4062. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4063. "onresize": function () { }
  4064. }, {
  4065. closecallback: function () { }
  4066. }, { "style": { "height": "36px" } }).form; //創建窗體
  4067. _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); } }
  4068. break;
  4069. case "CaseDesignS":
  4070. _formdiv = new U.UF.UI.form(
  4071. "項目進展",
  4072. $$("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 }), {
  4073. "id": "case",
  4074. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4075. "onresize": function () { }
  4076. }, {
  4077. closecallback: function () { }
  4078. }, { "style": { "height": "36px" } }).form; //創建窗體
  4079. _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); } }
  4080. break;
  4081. case "tcStudent": //騰訊學生管理
  4082. _formdiv = new U.UF.UI.form(
  4083. "學生管理",
  4084. $$("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 }), {
  4085. "id": "tcStudent",
  4086. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4087. "onresize": function () { }
  4088. }, {
  4089. closecallback: function () { }
  4090. }, { "style": { "height": "36px" } }).form; //創建窗體
  4091. _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); } }
  4092. break;
  4093. case "tcSchool": //騰訊學校管理
  4094. _formdiv = new U.UF.UI.form(
  4095. "學校管理",
  4096. $$("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 }), {
  4097. "id": "tcSchool",
  4098. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4099. "onresize": function () { }
  4100. }, {
  4101. closecallback: function () { }
  4102. }, { "style": { "height": "36px" } }).form; //創建窗體
  4103. _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); } }
  4104. break;
  4105. case "tcTeacher": //騰訊學校管理
  4106. _formdiv = new U.UF.UI.form(
  4107. "教師管理",
  4108. $$("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 }), {
  4109. "id": "tcTeacher",
  4110. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4111. "onresize": function () { }
  4112. }, {
  4113. closecallback: function () { }
  4114. }, { "style": { "height": "36px" } }).form; //創建窗體
  4115. _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); } }
  4116. break;
  4117. case "tcData": //騰訊我的資料
  4118. _formdiv = new U.UF.UI.form(
  4119. "我的資料",
  4120. $$("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 }), {
  4121. "id": "tcData",
  4122. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  4123. "onresize": function () { }
  4124. }, {
  4125. closecallback: function () { }
  4126. }, { "style": { "height": "36px" } }).form; //創建窗體
  4127. _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); } }
  4128. break;
  4129. case "tcNotice": //騰訊消息通知
  4130. _formdiv = new U.UF.UI.form(
  4131. "消息通知",
  4132. $$("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 }), {
  4133. "id": "tcNotice",
  4134. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4135. "onresize": function () { }
  4136. }, {
  4137. closecallback: function () { }
  4138. }, { "style": { "height": "36px" } }).form; //創建窗體
  4139. _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); } }
  4140. break;
  4141. case "myReport": //好友打開
  4142. _formdiv = new U.UF.UI.form(
  4143. "我的評價",
  4144. $$("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 }), {
  4145. "id": "myReport",
  4146. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4147. "onresize": function () { }
  4148. }, {
  4149. closecallback: function () { }
  4150. }, { "style": { "height": "36px" } }).form; //創建窗體
  4151. _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); } }
  4152. break;
  4153. case "learnAna": //好友打開
  4154. _formdiv = new U.UF.UI.form(
  4155. "學習分析",
  4156. $$("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 }), {
  4157. "id": "learnAna",
  4158. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4159. "onresize": function () { }
  4160. }, {
  4161. closecallback: function () { }
  4162. }, { "style": { "height": "36px" } }).form; //創建窗體
  4163. _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); } }
  4164. break;
  4165. case "AIChat": //AI共創
  4166. _formdiv = new U.UF.UI.form(
  4167. "AI共創",
  4168. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/aichat/" }), {
  4169. "id": "AIChat",
  4170. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  4171. "onresize": function () { }
  4172. }, {
  4173. istop: true,
  4174. closecallback: function () { $("#aichat_icon").remove(); },
  4175. narrowcallback: function () {
  4176. if (!$("#aichat_icon")[0]) {
  4177. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  4178. }
  4179. },
  4180. }, { "style": { "height": "36px" } }).form; //創建窗體
  4181. _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); } }
  4182. break;
  4183. case "ainew": //AI共創
  4184. _formdiv = new U.UF.UI.form(
  4185. "AI協同",
  4186. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ainew/" }), {
  4187. "id": "ainew",
  4188. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4189. "onresize": function () { }
  4190. }, {
  4191. closecallback: function () { }
  4192. }, { "style": { "height": "36px" } }).form; //創建窗體
  4193. _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); } }
  4194. break;
  4195. case "futureClass": //AI共創
  4196. _formdiv = new U.UF.UI.form(
  4197. "協同建構",
  4198. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/synergyCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {//https://cscl.cocorobo.hk
  4199. "id": "synergyCourse",
  4200. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4201. "onresize": function () { }
  4202. }, {
  4203. closecallback: function () { }
  4204. }, { "style": { "height": "36px" } }).form; //創建窗體
  4205. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/futureClass.png)" }, "name": "協同建構", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4206. break;
  4207. case "aiagent": //ai agent
  4208. _formdiv = new U.UF.UI.form(
  4209. "AI Agent",
  4210. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://metagpt.cocorobo.cn/dist/index.html" }), {
  4211. "id": "AIAgent",
  4212. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4213. "onresize": function () { }
  4214. }, {
  4215. closecallback: function () { }
  4216. }, { "style": { "height": "36px" } }).form; //創建窗體
  4217. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram2.png)" }, "name": "AI Agent", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4218. break;
  4219. case "dataBoard": //數據看板
  4220. _formdiv = new U.UF.UI.form(
  4221. "數據看板",
  4222. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataBoard?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4223. "id": "dataBoard",
  4224. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4225. "onresize": function () { }
  4226. }, {
  4227. closecallback: function () { }
  4228. }, { "style": { "height": "36px" } }).form; //創建窗體
  4229. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/dataBoard.png)" }, "name": "數據看板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4230. break;
  4231. case "AIAnalyse": //AI共創
  4232. _formdiv = new U.UF.UI.form(
  4233. "AI分析",
  4234. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ai/" }), {
  4235. "id": "AIAnalyse",
  4236. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4237. "onresize": function () { }
  4238. }, {
  4239. closecallback: function () { }
  4240. }, { "style": { "height": "36px" } }).form; //創建窗體
  4241. _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); } }
  4242. break;
  4243. case "studioCourse": //AI共創
  4244. _formdiv = new U.UF.UI.form(
  4245. "工作管理",
  4246. $$("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 }), {
  4247. "id": "studioCourse",
  4248. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4249. "onresize": function () { }
  4250. }, {
  4251. closecallback: function () { }
  4252. }, { "style": { "height": "36px" } }).form; //創建窗體
  4253. _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); } }
  4254. break;
  4255. case "studioIndex": //AI共創
  4256. _formdiv = new U.UF.UI.form(
  4257. "工作中心",
  4258. $$("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 }), {
  4259. "id": "studioIndex",
  4260. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4261. "onresize": function () { }
  4262. }, {
  4263. closecallback: function () { }
  4264. }, { "style": { "height": "36px" } }).form; //創建窗體
  4265. _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); } }
  4266. break;
  4267. case "source":
  4268. _formdiv = new U.UF.UI.form(
  4269. "教學資源",
  4270. $$("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 }), {
  4271. "id": "source",
  4272. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4273. "onresize": function () { }
  4274. }, {
  4275. closecallback: function () { }
  4276. }, { "style": { "height": "36px" } }).form; //創建窗體
  4277. _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); } }
  4278. break;
  4279. case "testTeacher":
  4280. _formdiv = new U.UF.UI.form(
  4281. "評測管理",
  4282. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/test?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4283. "id": "testTeacher",
  4284. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4285. "onresize": function () { }
  4286. }, {
  4287. closecallback: function () { }
  4288. }, { "style": { "height": "36px" } }).form; //創建窗體
  4289. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/testTeacher.png)" }, "name": "評測管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4290. break;
  4291. case "testStudent":
  4292. _formdiv = new U.UF.UI.form(
  4293. "評測中心",
  4294. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/testStudent?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&classid=" + _classId + "&role=" + _role }), {
  4295. "id": "testStudent",
  4296. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4297. "onresize": function () { }
  4298. }, {
  4299. closecallback: function () { }
  4300. }, { "style": { "height": "36px" } }).form; //創建窗體
  4301. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/testStudent.png)" }, "name": "評測管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4302. break;
  4303. }
  4304. //U.MD.D.I.openClick(str);
  4305. //如果有任務欄信息
  4306. if (_taskbar) {
  4307. U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4308. }
  4309. }
  4310. // U.MD.D.I.openClick = function(str){
  4311. // var click = '';
  4312. // switch(str){
  4313. // case 'friend':
  4314. // click = '我的好友';
  4315. // break;
  4316. // case 'domain':
  4317. // click = '域名管理';
  4318. // break;
  4319. // case 'disk':
  4320. // click = '我的雲盤';
  4321. // break;
  4322. // case 'word':
  4323. // click = 'Word';
  4324. // break;
  4325. // case 'excel':
  4326. // click = 'Execl';
  4327. // break;
  4328. // case 'txt':
  4329. // click = '文本文件';
  4330. // break;
  4331. // case 'lookupFriend':
  4332. // click = '查找好友';
  4333. // break;
  4334. // case 'ftp':
  4335. // click = 'FTP';
  4336. // break;
  4337. // case 'group':
  4338. // click = '群組';
  4339. // break;
  4340. // case 'set':
  4341. // click = '我的設置';
  4342. // break;
  4343. // case 'systemSet':
  4344. // click = '系統設置';
  4345. // break;
  4346. // case 'boomYun':
  4347. // click = '互聯辦公';
  4348. // break;
  4349. // case 'xz':
  4350. // click = '雲端下載';
  4351. // break;
  4352. // case 'client':
  4353. // click = '有思瀏覽器';
  4354. // break;
  4355. // case 'backEndProgramming':
  4356. // click = '在線後臺編程';
  4357. // break;
  4358. // case 'frontEndProgramming':
  4359. // click = '在線前端編程';
  4360. // break;
  4361. // default: break;
  4362. // }
  4363. // if(U.MD.D.I.Ip && click){
  4364. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  4365. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  4366. // })
  4367. // }
  4368. // }
  4369. /**
  4370. *函數作用:ajax簡易函數,使用post格式
  4371. *@param url {data} 後臺地址
  4372. *@param data {data} 參數json
  4373. *@param fn {data} 回調函數
  4374. *
  4375. */
  4376. // U.MD.D.I.Mysqlrequest = function(url,fn){
  4377. // var xhr = new XMLHttpRequest();
  4378. // xhr.open("GET",url,true);
  4379. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  4380. // xhr.onreadystatechange = function(){
  4381. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  4382. // fn.call(this,xhr.responseText);
  4383. // }
  4384. // };
  4385. // xhr.send();
  4386. // }
  4387. /*判斷是否是內網IP*/
  4388. // U.MD.D.I.isInnerIPFn = function(str){
  4389. // var curPageUrl = str;
  4390. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前綴
  4391. // curPageUrl =curPageUrl.replace(reg1,'');
  4392. // // console.log('curPageUrl-1 '+curPageUrl);
  4393. // var reg2 = /\:+/g;//替換冒號為一點
  4394. // curPageUrl =curPageUrl.replace(reg2,'.');
  4395. // // console.log('curPageUrl-2 '+curPageUrl);
  4396. // curPageUrl = curPageUrl.split('.');//通過一點來劃分數組
  4397. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  4398. // if(curPageUrl[2] != '16'){
  4399. // return ipAddress;
  4400. // }else{
  4401. // return false;
  4402. // }
  4403. // }
  4404. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  4405. // //compatibility for firefox and chrome
  4406. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  4407. // var pc = new myPeerConnection({
  4408. // iceServers: []
  4409. // }),
  4410. // noop = function() {},
  4411. // localIPs = {},
  4412. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  4413. // key;
  4414. // function iterateIP(ip) {
  4415. // if (!localIPs[ip]) onNewIP(ip);
  4416. // localIPs[ip] = true;
  4417. // }
  4418. // //create a bogus data channel
  4419. // pc.createDataChannel("");
  4420. // // create offer and set local description
  4421. // pc.createOffer().then(function(sdp) {
  4422. // sdp.sdp.split('\n').forEach(function(line) {
  4423. // if (line.indexOf('candidate') < 0) return;
  4424. // line.match(ipRegex).forEach(iterateIP);
  4425. // });
  4426. // pc.setLocalDescription(sdp, noop, noop);
  4427. // }).catch(function(reason) {
  4428. // // An error occurred, so handle the failure to connect
  4429. // });
  4430. // //sten for candidate events
  4431. // pc.onicecandidate = function(ice) {
  4432. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  4433. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  4434. // };
  4435. // }
  4436. // U.MD.D.I.getUserIpBool = function(callback){
  4437. // U.MD.D.I.getUserIP(function(ip){
  4438. // alert("Got IP! :" + ip);
  4439. // });
  4440. //}
  4441. //#endregion
  4442. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  4443. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4444. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4445. _userinfo = US.userInfo, //登錄用戶信息
  4446. _userid = US.userInfo.userid //登錄用戶id
  4447. let _iframe;
  4448. let _cid = cid,
  4449. _stage = stage,
  4450. _task = task,
  4451. _tool = tool;
  4452. var _jie = $$("div", {
  4453. "style": {
  4454. "position": "absolute",
  4455. "bottom": "50px",
  4456. "right": "50px",
  4457. "zIndex": "9999",
  4458. "backgroundColor": "#2268bc",
  4459. "color": "#fff",
  4460. "padding": "12px 20px",
  4461. "cursor": "pointer",
  4462. "borderRadius": "4px",
  4463. },
  4464. "innerHTML": "提交作業"
  4465. })
  4466. let aTool = ''
  4467. let _loading = document.createElement('div')
  4468. _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;"
  4469. // _loading.id = "";
  4470. let _lchild = document.createElement('div')
  4471. let _limg = document.createElement('img')
  4472. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4473. _limg.style = "width: 26px;margin-right: 10px;"
  4474. _lchild.appendChild(_limg)
  4475. let _lspan = document.createElement('span')
  4476. _lspan.innerHTML = "上傳中..."
  4477. _lchild.appendChild(_lspan)
  4478. _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%);"
  4479. _loading.appendChild(_lchild)
  4480. var _box = $$('div', {
  4481. "style": {
  4482. "position": "relative",
  4483. "width": "100%",
  4484. "height": "100%",
  4485. },
  4486. })
  4487. _box.appendChild(_loading)
  4488. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool + _userid
  4489. switch (str) {
  4490. case "whiteboard":
  4491. aTool = 1;
  4492. _iframe = $$("iframe", {
  4493. "frameborder": "no",
  4494. "border": "0",
  4495. "scrolling ": "no",
  4496. "style": {
  4497. "cssText": "border:0;width:100%;height:100%"
  4498. },
  4499. "src": "https://iwb.cocorobo.hk/"
  4500. })
  4501. _box.appendChild(_iframe);
  4502. _box.appendChild(_jie);
  4503. _formdiv = new U.UF.UI.form(
  4504. "電子白板",
  4505. _box, {
  4506. "id": "whiteboard" + cid + stage + task + tool,
  4507. "style": {
  4508. "width": "90%",
  4509. "height": "90%",
  4510. "overflow": 'hidden'
  4511. },
  4512. "onresize": function () { }
  4513. }, {
  4514. closecallback: function () { }
  4515. }, {
  4516. "style": {
  4517. "height": "36px"
  4518. }
  4519. }).form; //創建窗體
  4520. _taskbar = {
  4521. "id": str + _formdiv.id,
  4522. "style": {
  4523. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4524. },
  4525. "name": "電子白板",
  4526. "forms": _formdiv,
  4527. "click": function () {
  4528. U.MD.D.I.openApplication(str, obj, info);
  4529. }
  4530. }
  4531. break;
  4532. case "mind":
  4533. aTool = 3;
  4534. _iframe = $$("iframe", {
  4535. "frameborder": "no",
  4536. "border": "0",
  4537. "scrolling ": "no",
  4538. "style": {
  4539. "cssText": "border:0;width:100%;height:100%"
  4540. },
  4541. "src": "/kityminder-editor/dist/index.html"
  4542. })
  4543. _box.appendChild(_iframe);
  4544. _box.appendChild(_jie);
  4545. _formdiv = new U.UF.UI.form(
  4546. "思維導圖",
  4547. _box, { //"/jsmind/example/demo.html"
  4548. "id": "mind" + cid + stage + task + tool,
  4549. "style": {
  4550. "width": "90%",
  4551. "height": "90%",
  4552. "overflow": 'hidden'
  4553. },
  4554. "onresize": function () { }
  4555. }, {
  4556. closecallback: function () { }
  4557. }, {
  4558. "style": {
  4559. "height": "36px"
  4560. }
  4561. }).form; //創建窗體
  4562. _taskbar = {
  4563. "id": str + _formdiv.id,
  4564. "style": {
  4565. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4566. },
  4567. "name": "思維導圖",
  4568. "forms": _formdiv,
  4569. "click": function () {
  4570. U.MD.D.I.openApplication(str, obj, info);
  4571. }
  4572. }
  4573. break;
  4574. case "MindMap":
  4575. aTool = 3;
  4576. _iframe = $$("iframe", {
  4577. "frameborder": "no",
  4578. "border": "0",
  4579. "scrolling ": "no",
  4580. "style": {
  4581. "cssText": "border:0;width:100%;height:100%"
  4582. },
  4583. "src": "//cloud.cocorobo.hk/mind/"
  4584. })
  4585. _box.appendChild(_iframe);
  4586. _box.appendChild(_jie);
  4587. _formdiv = new U.UF.UI.form(
  4588. "思維導圖",
  4589. _box, { //"/jsmind/example/demo.html"
  4590. "id": "mind" + cid + stage + task + tool,
  4591. "style": {
  4592. "width": "90%",
  4593. "height": "90%",
  4594. "overflow": 'hidden'
  4595. },
  4596. "onresize": function () { }
  4597. }, {
  4598. closecallback: function () { }
  4599. }, {
  4600. "style": {
  4601. "height": "36px"
  4602. }
  4603. }).form; //創建窗體
  4604. _taskbar = {
  4605. "id": str + _formdiv.id,
  4606. "style": {
  4607. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4608. },
  4609. "name": "思維導圖",
  4610. "forms": _formdiv,
  4611. "click": function () {
  4612. U.MD.D.I.openApplication(str, obj, info);
  4613. }
  4614. }
  4615. break;
  4616. case "doc":
  4617. aTool = 6;
  4618. _iframe = $$("iframe", {
  4619. "frameborder": "no",
  4620. "border": "0",
  4621. "scrolling ": "no",
  4622. "style": {
  4623. "cssText": "border:0;width:100%;height:100%"
  4624. },
  4625. "src": "/Office/Word/WordEditArea.htm"
  4626. })
  4627. _box.appendChild(_iframe);
  4628. _box.appendChild(_jie);
  4629. _formdiv = new U.UF.UI.form(
  4630. "協同文檔",
  4631. _box, {
  4632. "id": "doc" + cid + stage + task + tool,
  4633. "style": {
  4634. "width": "90%",
  4635. "height": "90%",
  4636. "overflow": 'hidden'
  4637. },
  4638. "onresize": function () { }
  4639. }, {
  4640. closecallback: function () { }
  4641. }, {
  4642. "style": {
  4643. "height": "36px"
  4644. }
  4645. }).form; //創建窗體
  4646. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4647. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4648. })
  4649. _taskbar = {
  4650. "id": str + _formdiv.id,
  4651. "style": {
  4652. "backgroundImage": "url(/img/icon/doc.png)"
  4653. },
  4654. "name": "協同文檔",
  4655. "forms": _formdiv,
  4656. "click": function () {
  4657. U.MD.D.I.openApplication(str, obj, info);
  4658. }
  4659. }
  4660. break;
  4661. case "mindNetwork": //好友打開
  4662. aTool = 7;
  4663. _iframe = $$("iframe", {
  4664. "webkitallowfullscreen": "",
  4665. "mozallowfullscreen": "",
  4666. "allowfullscreen": "",
  4667. "frameborder": "no",
  4668. "border": "0",
  4669. "scrolling ": "no",
  4670. "style": {
  4671. "cssText": "border:0; width:100%; height:100%;"
  4672. },
  4673. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4674. })
  4675. _box.appendChild(_iframe);
  4676. _box.appendChild(_jie);
  4677. _formdiv = new U.UF.UI.form(
  4678. "思維網格",
  4679. _box, {
  4680. "id": "mindNetwork" + cid + stage + task + tool,
  4681. "style": {
  4682. "width": "90%",
  4683. "height": "90%",
  4684. "overflow": 'hidden'
  4685. },
  4686. "onresize": function () { }
  4687. }, {
  4688. closecallback: function () { }
  4689. }, {
  4690. "style": {
  4691. "height": "36px"
  4692. }
  4693. }).form; //創建窗體
  4694. _taskbar = {
  4695. "id": str + _formdiv.id,
  4696. "style": {
  4697. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4698. },
  4699. "name": "思維網格",
  4700. "forms": _formdiv,
  4701. "click": function () {
  4702. U.MD.D.I.openApplication(str, obj, info);
  4703. }
  4704. }
  4705. break;
  4706. case "courseDesign":
  4707. _iframe = $$("iframe", {
  4708. "webkitallowfullscreen": "",
  4709. "mozallowfullscreen": "",
  4710. "allowfullscreen": "",
  4711. "frameborder": "no",
  4712. "border": "0",
  4713. "scrolling ": "no",
  4714. "style": {
  4715. "cssText": "border:0; width:100%; height:100%;"
  4716. },
  4717. "src": "/course-design-vue"
  4718. })
  4719. _box.appendChild(_iframe);
  4720. _box.appendChild(_jie);
  4721. _formdiv = new U.UF.UI.form(
  4722. "項目設計",
  4723. _box, {
  4724. "id": "courseDesign" + cid + stage + task + tool,
  4725. "style": {
  4726. "width": "90%",
  4727. "height": "90%",
  4728. "overflow": 'hidden'
  4729. },
  4730. "onresize": function () { }
  4731. }, {
  4732. closecallback: function () { }
  4733. }, {
  4734. "style": {
  4735. "height": "36px"
  4736. }
  4737. }).form; //創建窗體
  4738. _taskbar = {
  4739. "id": str + _formdiv.id,
  4740. "style": {
  4741. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4742. },
  4743. "name": "項目設計",
  4744. "forms": _formdiv,
  4745. "click": function () {
  4746. U.MD.D.I.openApplication(str, obj, info);
  4747. }
  4748. }
  4749. break;
  4750. }
  4751. const script1 = document.createElement("script");
  4752. script1.type = "text/javascript";
  4753. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4754. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  4755. const script2 = document.createElement("script");
  4756. script2.type = "text/javascript";
  4757. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4758. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  4759. const script3 = document.createElement("script");
  4760. script3.type = "text/javascript";
  4761. script3.charset = "UTF-8";
  4762. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  4763. const script4 = document.createElement("script");
  4764. script4.type = "text/javascript";
  4765. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4766. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  4767. if (_iframe) {
  4768. if (str == 'doc') {
  4769. _iframe = _formdiv.querySelector('iframe')
  4770. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4771. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4772. _iframe.contentWindow.document.body.appendChild(script1);
  4773. _iframe.contentWindow.document.body.appendChild(script2);
  4774. // _iframe.contentWindow.document.body.appendChild(script3);
  4775. _iframe.contentWindow.document.body.appendChild(script4);
  4776. })
  4777. if (onloadListener) {
  4778. _iframe.contentDocument.location.reload()
  4779. } else {
  4780. _iframe.contentDocument.location.reload()
  4781. }
  4782. } else if (str == 'courseDesign') {
  4783. U.UF.DL.iframeLoad(_iframe, function () {
  4784. // _iframe.contentWindow.U.MD.O.W.load();
  4785. // _iframe.contentWindow.document.body.appendChild(script1);
  4786. _iframe.contentWindow.document.body.appendChild(script2);
  4787. _iframe.contentWindow.document.body.appendChild(script4);
  4788. })
  4789. } else if (str == 'mind') {
  4790. _iframe = _formdiv.querySelector('iframe')
  4791. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4792. //
  4793. _iframe.contentWindow.document.body.appendChild(script1);
  4794. _iframe.contentWindow.document.body.appendChild(script2);
  4795. _iframe.contentWindow.document.body.appendChild(script4);
  4796. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4797. })
  4798. if (onloadListener) {
  4799. _iframe.contentDocument.location.reload()
  4800. } else {
  4801. _iframe.contentDocument.location.reload()
  4802. }
  4803. } else if (str == 'whiteboard') {
  4804. _iframe = _formdiv.querySelector('iframe')
  4805. let onloadListener = _iframe.onload = () => {
  4806. _iframe.contentWindow.document.body.appendChild(script1);
  4807. _iframe.contentWindow.document.body.appendChild(script2);
  4808. _iframe.contentWindow.document.body.appendChild(script4);
  4809. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4810. };
  4811. if (onloadListener) {
  4812. _iframe.contentDocument.location.reload()
  4813. } else {
  4814. _iframe.contentDocument.location.reload()
  4815. }
  4816. } else {
  4817. _iframe.onload = () => {
  4818. _iframe.contentWindow.document.body.appendChild(script1);
  4819. _iframe.contentWindow.document.body.appendChild(script2);
  4820. // _iframe.contentWindow.document.body.appendChild(script3);
  4821. _iframe.contentWindow.document.body.appendChild(script4);
  4822. };
  4823. }
  4824. _jie.onclick = async () => {
  4825. let text = ''
  4826. if (aTool == 1) {
  4827. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4828. } else if (aTool == 6) {
  4829. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4830. } else if (aTool == 3) {
  4831. text = await U.MD.D.I.getEditorContent(_iframe);
  4832. }
  4833. _loading.style.display = 'flex'
  4834. console.log(_loading);
  4835. var _ajs = _iframe.contentWindow.document.createElement("script");
  4836. _ajs.type = "text/javascript";
  4837. _ajs.innerHTML =
  4838. // 'console.log(' + _loading + ');\n' +
  4839. 'var _js = document.createElement("script");\n' +
  4840. '_js.type="text/javascript";\n' +
  4841. '_js.charset="UTF-8";\n' +
  4842. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  4843. "_js.onload = function(){\n" +
  4844. ' var a = document.getElementsByTagName("img")\n' +
  4845. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4846. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4847. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4848. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4849. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  4850. "beforeUpload_shishi(file," +
  4851. "'" +
  4852. _userid +
  4853. "'" +
  4854. ", " +
  4855. "'" +
  4856. _cid +
  4857. "'" +
  4858. ", " +
  4859. "'" +
  4860. _stage +
  4861. "'" +
  4862. ", " +
  4863. "'" +
  4864. _task +
  4865. "'" +
  4866. ", " +
  4867. "'" +
  4868. _tool +
  4869. "'" +
  4870. ", " +
  4871. "'" +
  4872. (str + '_loadLi_Jie' + cid + stage + task + tool + _userid) +
  4873. "'" +
  4874. ", " +
  4875. "'" +
  4876. aTool +
  4877. "'" +
  4878. ", " +
  4879. "`" +
  4880. text +
  4881. "`" +
  4882. ")\n" +
  4883. " });\n" +
  4884. "}\n" +
  4885. "document.head.appendChild(_js);\n";
  4886. _iframe.contentWindow.document.head.appendChild(_ajs);
  4887. }
  4888. }
  4889. //U.MD.D.I.openClick(str);
  4890. //如果有任務欄信息
  4891. // if (_taskbar) {
  4892. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4893. // }
  4894. }
  4895. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4896. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4897. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4898. _userinfo = US.userInfo, //登錄用戶信息
  4899. _userid = US.userInfo.userid //登錄用戶id
  4900. let _iframe;
  4901. let _cid = cid,
  4902. _stage = stage,
  4903. _task = task,
  4904. _tool = tool;
  4905. var _jie = $$("div", {
  4906. "style": {
  4907. "position": "absolute",
  4908. "bottom": "50px",
  4909. "right": "50px",
  4910. "zIndex": "9999",
  4911. "backgroundColor": "#2268bc",
  4912. "color": "#fff",
  4913. "padding": "12px 20px",
  4914. "cursor": "pointer",
  4915. "borderRadius": "4px",
  4916. },
  4917. "innerHTML": "提交作業"
  4918. })
  4919. let aTool = ''
  4920. let _loading = document.createElement('div')
  4921. _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;"
  4922. // _loading.id = "";
  4923. let _lchild = document.createElement('div')
  4924. let _limg = document.createElement('img')
  4925. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4926. _limg.style = "width: 26px;margin-right: 10px;"
  4927. _lchild.appendChild(_limg)
  4928. let _lspan = document.createElement('span')
  4929. _lspan.innerHTML = "上傳中..."
  4930. _lchild.appendChild(_lspan)
  4931. _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%);"
  4932. _loading.appendChild(_lchild)
  4933. var _box = $$('div', {
  4934. "style": {
  4935. "position": "relative",
  4936. "width": "100%",
  4937. "height": "100%",
  4938. },
  4939. })
  4940. _box.appendChild(_loading)
  4941. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool + _userid
  4942. switch (str) {
  4943. case "whiteboard":
  4944. aTool = 1;
  4945. _iframe = $$("iframe", {
  4946. "frameborder": "no",
  4947. "border": "0",
  4948. "scrolling ": "no",
  4949. "style": {
  4950. "cssText": "border:0;width:100%;height:100%"
  4951. },
  4952. "src": "https://iwb.cocorobo.hk/"
  4953. })
  4954. _box.appendChild(_iframe);
  4955. _box.appendChild(_jie);
  4956. _formdiv = new U.UF.UI.form(
  4957. "電子白板",
  4958. _box, {
  4959. "id": "whiteboard" + cid + stage + task + tool,
  4960. "style": {
  4961. "width": "90%",
  4962. "height": "90%",
  4963. "overflow": 'hidden'
  4964. },
  4965. "onresize": function () { }
  4966. }, {
  4967. closecallback: function () { }
  4968. }, {
  4969. "style": {
  4970. "height": "36px"
  4971. }
  4972. }).form; //創建窗體
  4973. _taskbar = {
  4974. "id": str + _formdiv.id,
  4975. "style": {
  4976. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4977. },
  4978. "name": "電子白板",
  4979. "forms": _formdiv,
  4980. "click": function () {
  4981. U.MD.D.I.openApplication(str, obj, info);
  4982. }
  4983. }
  4984. break;
  4985. case "mind":
  4986. aTool = 3;
  4987. _iframe = $$("iframe", {
  4988. "frameborder": "no",
  4989. "border": "0",
  4990. "scrolling ": "no",
  4991. "style": {
  4992. "cssText": "border:0;width:100%;height:100%"
  4993. },
  4994. "src": "/kityminder-editor/dist/index.html"
  4995. })
  4996. _box.appendChild(_iframe);
  4997. _box.appendChild(_jie);
  4998. _formdiv = new U.UF.UI.form(
  4999. "思維導圖",
  5000. _box, { //"/jsmind/example/demo.html"
  5001. "id": "mind" + cid + stage + task + tool,
  5002. "style": {
  5003. "width": "90%",
  5004. "height": "90%",
  5005. "overflow": 'hidden'
  5006. },
  5007. "onresize": function () { }
  5008. }, {
  5009. closecallback: function () { }
  5010. }, {
  5011. "style": {
  5012. "height": "36px"
  5013. }
  5014. }).form; //創建窗體
  5015. _taskbar = {
  5016. "id": str + _formdiv.id,
  5017. "style": {
  5018. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5019. },
  5020. "name": "思維導圖",
  5021. "forms": _formdiv,
  5022. "click": function () {
  5023. U.MD.D.I.openApplication(str, obj, info);
  5024. }
  5025. }
  5026. break;
  5027. case "MindMap":
  5028. aTool = 3;
  5029. _iframe = $$("iframe", {
  5030. "frameborder": "no",
  5031. "border": "0",
  5032. "scrolling ": "no",
  5033. "style": {
  5034. "cssText": "border:0;width:100%;height:100%"
  5035. },
  5036. "src": "//cloud.cocorobo.hk/mind/"
  5037. })
  5038. _box.appendChild(_iframe);
  5039. _box.appendChild(_jie);
  5040. _formdiv = new U.UF.UI.form(
  5041. "思維導圖",
  5042. _box, { //"/jsmind/example/demo.html"
  5043. "id": "mind" + cid + stage + task + tool,
  5044. "style": {
  5045. "width": "90%",
  5046. "height": "90%",
  5047. "overflow": 'hidden'
  5048. },
  5049. "onresize": function () { }
  5050. }, {
  5051. closecallback: function () { }
  5052. }, {
  5053. "style": {
  5054. "height": "36px"
  5055. }
  5056. }).form; //創建窗體
  5057. _taskbar = {
  5058. "id": str + _formdiv.id,
  5059. "style": {
  5060. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5061. },
  5062. "name": "思維導圖",
  5063. "forms": _formdiv,
  5064. "click": function () {
  5065. U.MD.D.I.openApplication(str, obj, info);
  5066. }
  5067. }
  5068. break;
  5069. case "doc":
  5070. aTool = 6;
  5071. _iframe = $$("iframe", {
  5072. "frameborder": "no",
  5073. "border": "0",
  5074. "scrolling ": "no",
  5075. "style": {
  5076. "cssText": "border:0;width:100%;height:100%"
  5077. },
  5078. "src": "/Office/Word/WordEditArea.htm"
  5079. })
  5080. _box.appendChild(_iframe);
  5081. _box.appendChild(_jie);
  5082. _formdiv = new U.UF.UI.form(
  5083. "協同文檔",
  5084. _box, {
  5085. "id": "doc" + cid + stage + task + tool,
  5086. "style": {
  5087. "width": "90%",
  5088. "height": "90%",
  5089. "overflow": 'hidden'
  5090. },
  5091. "onresize": function () { }
  5092. }, {
  5093. closecallback: function () { }
  5094. }, {
  5095. "style": {
  5096. "height": "36px"
  5097. }
  5098. }).form; //創建窗體
  5099. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5100. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5101. })
  5102. _taskbar = {
  5103. "id": str + _formdiv.id,
  5104. "style": {
  5105. "backgroundImage": "url(/img/icon/doc.png)"
  5106. },
  5107. "name": "協同文檔",
  5108. "forms": _formdiv,
  5109. "click": function () {
  5110. U.MD.D.I.openApplication(str, obj, info);
  5111. }
  5112. }
  5113. break;
  5114. case "mindNetwork": //好友打開
  5115. aTool = 7;
  5116. _iframe = $$("iframe", {
  5117. "webkitallowfullscreen": "",
  5118. "mozallowfullscreen": "",
  5119. "allowfullscreen": "",
  5120. "frameborder": "no",
  5121. "border": "0",
  5122. "scrolling ": "no",
  5123. "style": {
  5124. "cssText": "border:0; width:100%; height:100%;"
  5125. },
  5126. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5127. })
  5128. _box.appendChild(_iframe);
  5129. _box.appendChild(_jie);
  5130. _formdiv = new U.UF.UI.form(
  5131. "思維網格",
  5132. _box, {
  5133. "id": "mindNetwork" + cid + stage + task + tool,
  5134. "style": {
  5135. "width": "90%",
  5136. "height": "90%",
  5137. "overflow": 'hidden'
  5138. },
  5139. "onresize": function () { }
  5140. }, {
  5141. closecallback: function () { }
  5142. }, {
  5143. "style": {
  5144. "height": "36px"
  5145. }
  5146. }).form; //創建窗體
  5147. _taskbar = {
  5148. "id": str + _formdiv.id,
  5149. "style": {
  5150. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5151. },
  5152. "name": "思維網格",
  5153. "forms": _formdiv,
  5154. "click": function () {
  5155. U.MD.D.I.openApplication(str, obj, info);
  5156. }
  5157. }
  5158. break;
  5159. case "courseDesign":
  5160. _iframe = $$("iframe", {
  5161. "webkitallowfullscreen": "",
  5162. "mozallowfullscreen": "",
  5163. "allowfullscreen": "",
  5164. "frameborder": "no",
  5165. "border": "0",
  5166. "scrolling ": "no",
  5167. "style": {
  5168. "cssText": "border:0; width:100%; height:100%;"
  5169. },
  5170. "src": "/course-design-vue"
  5171. })
  5172. _box.appendChild(_iframe);
  5173. _box.appendChild(_jie);
  5174. _formdiv = new U.UF.UI.form(
  5175. "項目設計",
  5176. _box, {
  5177. "id": "courseDesign" + cid + stage + task + tool,
  5178. "style": {
  5179. "width": "90%",
  5180. "height": "90%",
  5181. "overflow": 'hidden'
  5182. },
  5183. "onresize": function () { }
  5184. }, {
  5185. closecallback: function () { }
  5186. }, {
  5187. "style": {
  5188. "height": "36px"
  5189. }
  5190. }).form; //創建窗體
  5191. _taskbar = {
  5192. "id": str + _formdiv.id,
  5193. "style": {
  5194. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5195. },
  5196. "name": "項目設計",
  5197. "forms": _formdiv,
  5198. "click": function () {
  5199. U.MD.D.I.openApplication(str, obj, info);
  5200. }
  5201. }
  5202. break;
  5203. }
  5204. const script1 = document.createElement("script");
  5205. script1.type = "text/javascript";
  5206. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5207. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5208. const script2 = document.createElement("script");
  5209. script2.type = "text/javascript";
  5210. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5211. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5212. const script3 = document.createElement("script");
  5213. script3.type = "text/javascript";
  5214. script3.charset = "UTF-8";
  5215. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5216. const script4 = document.createElement("script");
  5217. script4.type = "text/javascript";
  5218. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5219. script4.src = window.origin + "/js/Common/jietu2E.js";
  5220. if (_iframe) {
  5221. if (str == 'doc') {
  5222. _iframe = _formdiv.querySelector('iframe')
  5223. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5224. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5225. _iframe.contentWindow.document.body.appendChild(script1);
  5226. _iframe.contentWindow.document.body.appendChild(script2);
  5227. // _iframe.contentWindow.document.body.appendChild(script3);
  5228. _iframe.contentWindow.document.body.appendChild(script4);
  5229. })
  5230. if (onloadListener) {
  5231. _iframe.contentDocument.location.reload()
  5232. } else {
  5233. _iframe.contentDocument.location.reload()
  5234. }
  5235. } else if (str == 'courseDesign') {
  5236. U.UF.DL.iframeLoad(_iframe, function () {
  5237. // _iframe.contentWindow.U.MD.O.W.load();
  5238. // _iframe.contentWindow.document.body.appendChild(script1);
  5239. _iframe.contentWindow.document.body.appendChild(script2);
  5240. _iframe.contentWindow.document.body.appendChild(script4);
  5241. })
  5242. } else if (str == 'mind') {
  5243. _iframe = _formdiv.querySelector('iframe')
  5244. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5245. //
  5246. _iframe.contentWindow.document.body.appendChild(script1);
  5247. _iframe.contentWindow.document.body.appendChild(script2);
  5248. _iframe.contentWindow.document.body.appendChild(script4);
  5249. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5250. })
  5251. if (onloadListener) {
  5252. _iframe.contentDocument.location.reload()
  5253. } else {
  5254. _iframe.contentDocument.location.reload()
  5255. }
  5256. } else if (str == 'whiteboard') {
  5257. _iframe = _formdiv.querySelector('iframe')
  5258. let onloadListener = _iframe.onload = () => {
  5259. _iframe.contentWindow.document.body.appendChild(script1);
  5260. _iframe.contentWindow.document.body.appendChild(script2);
  5261. _iframe.contentWindow.document.body.appendChild(script4);
  5262. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5263. };
  5264. if (onloadListener) {
  5265. _iframe.contentDocument.location.reload()
  5266. } else {
  5267. _iframe.contentDocument.location.reload()
  5268. }
  5269. } else {
  5270. _iframe.onload = () => {
  5271. _iframe.contentWindow.document.body.appendChild(script1);
  5272. _iframe.contentWindow.document.body.appendChild(script2);
  5273. // _iframe.contentWindow.document.body.appendChild(script3);
  5274. _iframe.contentWindow.document.body.appendChild(script4);
  5275. };
  5276. }
  5277. _jie.onclick = async () => {
  5278. let text = ''
  5279. if (aTool == 1) {
  5280. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5281. } else if (aTool == 6) {
  5282. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5283. } else if (aTool == 3) {
  5284. text = await U.MD.D.I.getEditorContent(_iframe);
  5285. }
  5286. _loading.style.display = 'flex'
  5287. console.log(_loading);
  5288. var _ajs = _iframe.contentWindow.document.createElement("script");
  5289. _ajs.type = "text/javascript";
  5290. _ajs.innerHTML =
  5291. // 'console.log(' + _loading + ');\n' +
  5292. 'var _js = document.createElement("script");\n' +
  5293. '_js.type="text/javascript";\n' +
  5294. '_js.charset="UTF-8";\n' +
  5295. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5296. "_js.onload = function(){\n" +
  5297. ' var a = document.getElementsByTagName("img")\n' +
  5298. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5299. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5300. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5301. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5302. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5303. "beforeUpload_shishi(file," +
  5304. "'" +
  5305. _userid +
  5306. "'" +
  5307. ", " +
  5308. "'" +
  5309. _cid +
  5310. "'" +
  5311. ", " +
  5312. "'" +
  5313. _stage +
  5314. "'" +
  5315. ", " +
  5316. "'" +
  5317. _task +
  5318. "'" +
  5319. ", " +
  5320. "'" +
  5321. _tool +
  5322. "'" +
  5323. ", " +
  5324. "'" +
  5325. (str + '_loadLi_JieE' + cid + stage + task + tool + _userid) +
  5326. "'" +
  5327. ", " +
  5328. "'" +
  5329. aTool +
  5330. "'" +
  5331. ", " +
  5332. "`" +
  5333. text +
  5334. "`" +
  5335. ")\n" +
  5336. " });\n" +
  5337. "}\n" +
  5338. "document.head.appendChild(_js);\n";
  5339. _iframe.contentWindow.document.head.appendChild(_ajs);
  5340. }
  5341. }
  5342. //U.MD.D.I.openClick(str);
  5343. //如果有任務欄信息
  5344. // if (_taskbar) {
  5345. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  5346. // }
  5347. }
  5348. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  5349. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5350. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5351. _userid = student.userid, //登錄用戶id
  5352. _username = student.student //用戶名字
  5353. let _iframe;
  5354. let _cid = cid,
  5355. _stage = stage,
  5356. _task = task,
  5357. _tool = tool;
  5358. var _jie = $$("div", {
  5359. "style": {
  5360. "position": "absolute",
  5361. "bottom": "50px",
  5362. "right": "50px",
  5363. "zIndex": "9999",
  5364. "backgroundColor": "#2268bc",
  5365. "color": "#fff",
  5366. "padding": "12px 20px",
  5367. "cursor": "pointer",
  5368. "borderRadius": "4px",
  5369. },
  5370. "innerHTML": "提交作業"
  5371. })
  5372. let aTool = ''
  5373. let _loading = document.createElement('div')
  5374. _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;"
  5375. // _loading.id = "";
  5376. let _lchild = document.createElement('div')
  5377. let _limg = document.createElement('img')
  5378. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5379. _limg.style = "width: 26px;margin-right: 10px;"
  5380. _lchild.appendChild(_limg)
  5381. let _lspan = document.createElement('span')
  5382. _lspan.innerHTML = "上傳中..."
  5383. _lchild.appendChild(_lspan)
  5384. _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%);"
  5385. _loading.appendChild(_lchild)
  5386. var _box = $$('div', {
  5387. "style": {
  5388. "position": "relative",
  5389. "width": "100%",
  5390. "height": "100%",
  5391. },
  5392. })
  5393. _box.appendChild(_loading)
  5394. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid
  5395. switch (str) {
  5396. case "whiteboard":
  5397. aTool = 1;
  5398. _iframe = $$("iframe", {
  5399. "frameborder": "no",
  5400. "border": "0",
  5401. "scrolling ": "no",
  5402. "style": {
  5403. "cssText": "border:0;width:100%;height:100%"
  5404. },
  5405. "src": "https://iwb.cocorobo.hk/"
  5406. })
  5407. _box.appendChild(_iframe);
  5408. _box.appendChild(_jie);
  5409. _formdiv = new U.UF.UI.form(
  5410. "電子白板-" + _username,
  5411. _box, {
  5412. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5413. "style": {
  5414. "width": "90%",
  5415. "height": "90%",
  5416. "overflow": 'hidden'
  5417. },
  5418. "onresize": function () { }
  5419. }, {
  5420. closecallback: function () { }
  5421. }, {
  5422. "style": {
  5423. "height": "36px"
  5424. }
  5425. }).form; //創建窗體
  5426. _taskbar = {
  5427. "id": str + _formdiv.id,
  5428. "style": {
  5429. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5430. },
  5431. "name": "電子白板",
  5432. "forms": _formdiv,
  5433. "click": function () {
  5434. U.MD.D.I.openApplication(str, obj, info);
  5435. }
  5436. }
  5437. break;
  5438. case "mind":
  5439. aTool = 3;
  5440. _iframe = $$("iframe", {
  5441. "frameborder": "no",
  5442. "border": "0",
  5443. "scrolling ": "no",
  5444. "style": {
  5445. "cssText": "border:0;width:100%;height:100%"
  5446. },
  5447. "src": "/kityminder-editor/dist/index.html"
  5448. })
  5449. _box.appendChild(_iframe);
  5450. _box.appendChild(_jie);
  5451. _formdiv = new U.UF.UI.form(
  5452. "思維導圖-" + _username,
  5453. _box, { //"/jsmind/example/demo.html"
  5454. "id": "mind" + cid + stage + task + tool + _userid,
  5455. "style": {
  5456. "width": "90%",
  5457. "height": "90%",
  5458. "overflow": 'hidden'
  5459. },
  5460. "onresize": function () { }
  5461. }, {
  5462. closecallback: function () { }
  5463. }, {
  5464. "style": {
  5465. "height": "36px"
  5466. }
  5467. }).form; //創建窗體
  5468. _taskbar = {
  5469. "id": str + _formdiv.id,
  5470. "style": {
  5471. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5472. },
  5473. "name": "思維導圖",
  5474. "forms": _formdiv,
  5475. "click": function () {
  5476. U.MD.D.I.openApplication(str, obj, info);
  5477. }
  5478. }
  5479. break;
  5480. case "MindMap":
  5481. aTool = 3;
  5482. _iframe = $$("iframe", {
  5483. "frameborder": "no",
  5484. "border": "0",
  5485. "scrolling ": "no",
  5486. "style": {
  5487. "cssText": "border:0;width:100%;height:100%"
  5488. },
  5489. "src": "//cloud.cocorobo.hk/mind/"
  5490. })
  5491. _box.appendChild(_iframe);
  5492. _box.appendChild(_jie);
  5493. _formdiv = new U.UF.UI.form(
  5494. "思維導圖-" + _username,
  5495. _box, { //"/jsmind/example/demo.html"
  5496. "id": "mind" + cid + stage + task + tool + _userid,
  5497. "style": {
  5498. "width": "90%",
  5499. "height": "90%",
  5500. "overflow": 'hidden'
  5501. },
  5502. "onresize": function () { }
  5503. }, {
  5504. closecallback: function () { }
  5505. }, {
  5506. "style": {
  5507. "height": "36px"
  5508. }
  5509. }).form; //創建窗體
  5510. _taskbar = {
  5511. "id": str + _formdiv.id,
  5512. "style": {
  5513. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5514. },
  5515. "name": "思維導圖",
  5516. "forms": _formdiv,
  5517. "click": function () {
  5518. U.MD.D.I.openApplication(str, obj, info);
  5519. }
  5520. }
  5521. break;
  5522. case "doc":
  5523. aTool = 6;
  5524. _iframe = $$("iframe", {
  5525. "frameborder": "no",
  5526. "border": "0",
  5527. "scrolling ": "no",
  5528. "style": {
  5529. "cssText": "border:0;width:100%;height:100%"
  5530. },
  5531. "src": "/Office/Word/WordEditArea.htm"
  5532. })
  5533. _box.appendChild(_iframe);
  5534. _box.appendChild(_jie);
  5535. _formdiv = new U.UF.UI.form(
  5536. "協同文檔-" + _username,
  5537. _box, {
  5538. "id": "doc" + cid + stage + task + tool + _userid,
  5539. "style": {
  5540. "width": "90%",
  5541. "height": "90%",
  5542. "overflow": 'hidden'
  5543. },
  5544. "onresize": function () { }
  5545. }, {
  5546. closecallback: function () { }
  5547. }, {
  5548. "style": {
  5549. "height": "36px"
  5550. }
  5551. }).form; //創建窗體
  5552. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5553. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5554. })
  5555. _taskbar = {
  5556. "id": str + _formdiv.id,
  5557. "style": {
  5558. "backgroundImage": "url(/img/icon/doc.png)"
  5559. },
  5560. "name": "協同文檔",
  5561. "forms": _formdiv,
  5562. "click": function () {
  5563. U.MD.D.I.openApplication(str, obj, info);
  5564. }
  5565. }
  5566. break;
  5567. case "mindNetwork": //好友打開
  5568. aTool = 7;
  5569. _iframe = $$("iframe", {
  5570. "webkitallowfullscreen": "",
  5571. "mozallowfullscreen": "",
  5572. "allowfullscreen": "",
  5573. "frameborder": "no",
  5574. "border": "0",
  5575. "scrolling ": "no",
  5576. "style": {
  5577. "cssText": "border:0; width:100%; height:100%;"
  5578. },
  5579. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5580. })
  5581. _box.appendChild(_iframe);
  5582. _box.appendChild(_jie);
  5583. _formdiv = new U.UF.UI.form(
  5584. "思維網格-" + _username,
  5585. _box, {
  5586. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5587. "style": {
  5588. "width": "90%",
  5589. "height": "90%",
  5590. "overflow": 'hidden'
  5591. },
  5592. "onresize": function () { }
  5593. }, {
  5594. closecallback: function () { }
  5595. }, {
  5596. "style": {
  5597. "height": "36px"
  5598. }
  5599. }).form; //創建窗體
  5600. _taskbar = {
  5601. "id": str + _formdiv.id,
  5602. "style": {
  5603. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5604. },
  5605. "name": "思維網格",
  5606. "forms": _formdiv,
  5607. "click": function () {
  5608. U.MD.D.I.openApplication(str, obj, info);
  5609. }
  5610. }
  5611. break;
  5612. case "courseDesign":
  5613. _iframe = $$("iframe", {
  5614. "webkitallowfullscreen": "",
  5615. "mozallowfullscreen": "",
  5616. "allowfullscreen": "",
  5617. "frameborder": "no",
  5618. "border": "0",
  5619. "scrolling ": "no",
  5620. "style": {
  5621. "cssText": "border:0; width:100%; height:100%;"
  5622. },
  5623. "src": "/course-design-vue"
  5624. })
  5625. _box.appendChild(_iframe);
  5626. _box.appendChild(_jie);
  5627. _formdiv = new U.UF.UI.form(
  5628. "項目設計-" + _username,
  5629. _box, {
  5630. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5631. "style": {
  5632. "width": "90%",
  5633. "height": "90%",
  5634. "overflow": 'hidden'
  5635. },
  5636. "onresize": function () { }
  5637. }, {
  5638. closecallback: function () { }
  5639. }, {
  5640. "style": {
  5641. "height": "36px"
  5642. }
  5643. }).form; //創建窗體
  5644. _taskbar = {
  5645. "id": str + _formdiv.id,
  5646. "style": {
  5647. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5648. },
  5649. "name": "項目設計",
  5650. "forms": _formdiv,
  5651. "click": function () {
  5652. U.MD.D.I.openApplication(str, obj, info);
  5653. }
  5654. }
  5655. break;
  5656. }
  5657. const script1 = document.createElement("script");
  5658. script1.type = "text/javascript";
  5659. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5660. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5661. const script2 = document.createElement("script");
  5662. script2.type = "text/javascript";
  5663. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5664. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5665. const script3 = document.createElement("script");
  5666. script3.type = "text/javascript";
  5667. script3.charset = "UTF-8";
  5668. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5669. const script4 = document.createElement("script");
  5670. script4.type = "text/javascript";
  5671. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5672. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  5673. if (_iframe) {
  5674. if (str == 'doc') {
  5675. _iframe = _formdiv.querySelector('iframe')
  5676. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5677. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5678. _iframe.contentWindow.document.body.appendChild(script1);
  5679. _iframe.contentWindow.document.body.appendChild(script2);
  5680. // _iframe.contentWindow.document.body.appendChild(script3);
  5681. _iframe.contentWindow.document.body.appendChild(script4);
  5682. })
  5683. if (onloadListener) {
  5684. _iframe.contentDocument.location.reload()
  5685. } else {
  5686. _iframe.contentDocument.location.reload()
  5687. }
  5688. } else if (str == 'courseDesign') {
  5689. U.UF.DL.iframeLoad(_iframe, function () {
  5690. // _iframe.contentWindow.U.MD.O.W.load();
  5691. // _iframe.contentWindow.document.body.appendChild(script1);
  5692. _iframe.contentWindow.document.body.appendChild(script2);
  5693. _iframe.contentWindow.document.body.appendChild(script4);
  5694. })
  5695. } else if (str == 'mind') {
  5696. _iframe = _formdiv.querySelector('iframe')
  5697. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5698. //
  5699. _iframe.contentWindow.document.body.appendChild(script1);
  5700. _iframe.contentWindow.document.body.appendChild(script2);
  5701. _iframe.contentWindow.document.body.appendChild(script4);
  5702. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5703. })
  5704. if (onloadListener) {
  5705. _iframe.contentDocument.location.reload()
  5706. } else {
  5707. _iframe.contentDocument.location.reload()
  5708. }
  5709. } else if (str == 'whiteboard') {
  5710. _iframe = _formdiv.querySelector('iframe')
  5711. let onloadListener = _iframe.onload = () => {
  5712. _iframe.contentWindow.document.body.appendChild(script1);
  5713. _iframe.contentWindow.document.body.appendChild(script2);
  5714. _iframe.contentWindow.document.body.appendChild(script4);
  5715. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5716. };
  5717. if (onloadListener) {
  5718. _iframe.contentDocument.location.reload()
  5719. } else {
  5720. _iframe.contentDocument.location.reload()
  5721. }
  5722. } else {
  5723. _iframe.onload = () => {
  5724. _iframe.contentWindow.document.body.appendChild(script1);
  5725. _iframe.contentWindow.document.body.appendChild(script2);
  5726. // _iframe.contentWindow.document.body.appendChild(script3);
  5727. _iframe.contentWindow.document.body.appendChild(script4);
  5728. };
  5729. }
  5730. _jie.onclick = async () => {
  5731. let text = ''
  5732. if (aTool == 1) {
  5733. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5734. } else if (aTool == 6) {
  5735. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5736. } else if (aTool == 3) {
  5737. text = await U.MD.D.I.getEditorContent(_iframe);
  5738. }
  5739. _loading.style.display = 'flex'
  5740. console.log(_loading);
  5741. var _ajs = _iframe.contentWindow.document.createElement("script");
  5742. _ajs.type = "text/javascript";
  5743. _ajs.innerHTML =
  5744. // 'console.log(' + _loading + ');\n' +
  5745. 'var _js = document.createElement("script");\n' +
  5746. '_js.type="text/javascript";\n' +
  5747. '_js.charset="UTF-8";\n' +
  5748. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5749. "_js.onload = function(){\n" +
  5750. ' var a = document.getElementsByTagName("img")\n' +
  5751. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5752. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5753. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5754. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5755. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5756. "beforeUpload_shishi(file," +
  5757. "'" +
  5758. _userid +
  5759. "'" +
  5760. ", " +
  5761. "'" +
  5762. _cid +
  5763. "'" +
  5764. ", " +
  5765. "'" +
  5766. _stage +
  5767. "'" +
  5768. ", " +
  5769. "'" +
  5770. _task +
  5771. "'" +
  5772. ", " +
  5773. "'" +
  5774. _tool +
  5775. "'" +
  5776. ", " +
  5777. "'" +
  5778. (str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid) +
  5779. "'" +
  5780. ", " +
  5781. "'" +
  5782. aTool +
  5783. "'" +
  5784. ", " +
  5785. "`" +
  5786. text +
  5787. "`" +
  5788. ")\n" +
  5789. " });\n" +
  5790. "}\n" +
  5791. "document.head.appendChild(_js);\n";
  5792. _iframe.contentWindow.document.head.appendChild(_ajs);
  5793. }
  5794. }
  5795. }
  5796. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5797. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5798. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5799. _userid = student.userid, //登錄用戶id
  5800. _username = student.student //用戶名字
  5801. let _iframe;
  5802. let _cid = cid,
  5803. _stage = stage,
  5804. _task = task,
  5805. _tool = tool;
  5806. var _jie = $$("div", {
  5807. "style": {
  5808. "position": "absolute",
  5809. "bottom": "50px",
  5810. "right": "50px",
  5811. "zIndex": "9999",
  5812. "backgroundColor": "#2268bc",
  5813. "color": "#fff",
  5814. "padding": "12px 20px",
  5815. "cursor": "pointer",
  5816. "borderRadius": "4px",
  5817. },
  5818. "innerHTML": "提交作業"
  5819. })
  5820. let aTool = ''
  5821. let _loading = document.createElement('div')
  5822. _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;"
  5823. // _loading.id = "";
  5824. let _lchild = document.createElement('div')
  5825. let _limg = document.createElement('img')
  5826. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5827. _limg.style = "width: 26px;margin-right: 10px;"
  5828. _lchild.appendChild(_limg)
  5829. let _lspan = document.createElement('span')
  5830. _lspan.innerHTML = "上傳中..."
  5831. _lchild.appendChild(_lspan)
  5832. _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%);"
  5833. _loading.appendChild(_lchild)
  5834. var _box = $$('div', {
  5835. "style": {
  5836. "position": "relative",
  5837. "width": "100%",
  5838. "height": "100%",
  5839. },
  5840. })
  5841. _box.appendChild(_loading)
  5842. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5843. switch (str) {
  5844. case "whiteboard":
  5845. aTool = 1;
  5846. _iframe = $$("iframe", {
  5847. "frameborder": "no",
  5848. "border": "0",
  5849. "scrolling ": "no",
  5850. "style": {
  5851. "cssText": "border:0;width:100%;height:100%"
  5852. },
  5853. "src": "https://iwb.cocorobo.hk/"
  5854. })
  5855. _box.appendChild(_iframe);
  5856. _box.appendChild(_jie);
  5857. _formdiv = new U.UF.UI.form(
  5858. "電子白板-" + _username,
  5859. _box, {
  5860. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5861. "style": {
  5862. "width": "90%",
  5863. "height": "90%",
  5864. "overflow": 'hidden'
  5865. },
  5866. "onresize": function () { }
  5867. }, {
  5868. closecallback: function () { }
  5869. }, {
  5870. "style": {
  5871. "height": "36px"
  5872. }
  5873. }).form; //創建窗體
  5874. _taskbar = {
  5875. "id": str + _formdiv.id,
  5876. "style": {
  5877. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5878. },
  5879. "name": "電子白板",
  5880. "forms": _formdiv,
  5881. "click": function () {
  5882. U.MD.D.I.openApplication(str, obj, info);
  5883. }
  5884. }
  5885. break;
  5886. case "mind":
  5887. aTool = 3;
  5888. _iframe = $$("iframe", {
  5889. "frameborder": "no",
  5890. "border": "0",
  5891. "scrolling ": "no",
  5892. "style": {
  5893. "cssText": "border:0;width:100%;height:100%"
  5894. },
  5895. "src": "/kityminder-editor/dist/index.html"
  5896. })
  5897. _box.appendChild(_iframe);
  5898. _box.appendChild(_jie);
  5899. _formdiv = new U.UF.UI.form(
  5900. "思維導圖-" + _username,
  5901. _box, { //"/jsmind/example/demo.html"
  5902. "id": "mind" + cid + stage + task + tool + _userid,
  5903. "style": {
  5904. "width": "90%",
  5905. "height": "90%",
  5906. "overflow": 'hidden'
  5907. },
  5908. "onresize": function () { }
  5909. }, {
  5910. closecallback: function () { }
  5911. }, {
  5912. "style": {
  5913. "height": "36px"
  5914. }
  5915. }).form; //創建窗體
  5916. _taskbar = {
  5917. "id": str + _formdiv.id,
  5918. "style": {
  5919. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5920. },
  5921. "name": "思維導圖",
  5922. "forms": _formdiv,
  5923. "click": function () {
  5924. U.MD.D.I.openApplication(str, obj, info);
  5925. }
  5926. }
  5927. break;
  5928. case "MindMap":
  5929. aTool = 3;
  5930. _iframe = $$("iframe", {
  5931. "frameborder": "no",
  5932. "border": "0",
  5933. "scrolling ": "no",
  5934. "style": {
  5935. "cssText": "border:0;width:100%;height:100%"
  5936. },
  5937. "src": "//cloud.cocorobo.hk/mind/"
  5938. })
  5939. _box.appendChild(_iframe);
  5940. _box.appendChild(_jie);
  5941. _formdiv = new U.UF.UI.form(
  5942. "思維導圖-" + _username,
  5943. _box, { //"/jsmind/example/demo.html"
  5944. "id": "mind" + cid + stage + task + tool + _userid,
  5945. "style": {
  5946. "width": "90%",
  5947. "height": "90%",
  5948. "overflow": 'hidden'
  5949. },
  5950. "onresize": function () { }
  5951. }, {
  5952. closecallback: function () { }
  5953. }, {
  5954. "style": {
  5955. "height": "36px"
  5956. }
  5957. }).form; //創建窗體
  5958. _taskbar = {
  5959. "id": str + _formdiv.id,
  5960. "style": {
  5961. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5962. },
  5963. "name": "思維導圖",
  5964. "forms": _formdiv,
  5965. "click": function () {
  5966. U.MD.D.I.openApplication(str, obj, info);
  5967. }
  5968. }
  5969. break;
  5970. case "doc":
  5971. aTool = 6;
  5972. _iframe = $$("iframe", {
  5973. "frameborder": "no",
  5974. "border": "0",
  5975. "scrolling ": "no",
  5976. "style": {
  5977. "cssText": "border:0;width:100%;height:100%"
  5978. },
  5979. "src": "/Office/Word/WordEditArea.htm"
  5980. })
  5981. _box.appendChild(_iframe);
  5982. _box.appendChild(_jie);
  5983. _formdiv = new U.UF.UI.form(
  5984. "協同文檔-" + _username,
  5985. _box, {
  5986. "id": "doc" + cid + stage + task + tool + _userid,
  5987. "style": {
  5988. "width": "90%",
  5989. "height": "90%",
  5990. "overflow": 'hidden'
  5991. },
  5992. "onresize": function () { }
  5993. }, {
  5994. closecallback: function () { }
  5995. }, {
  5996. "style": {
  5997. "height": "36px"
  5998. }
  5999. }).form; //創建窗體
  6000. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6001. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  6002. })
  6003. _taskbar = {
  6004. "id": str + _formdiv.id,
  6005. "style": {
  6006. "backgroundImage": "url(/img/icon/doc.png)"
  6007. },
  6008. "name": "協同文檔",
  6009. "forms": _formdiv,
  6010. "click": function () {
  6011. U.MD.D.I.openApplication(str, obj, info);
  6012. }
  6013. }
  6014. break;
  6015. case "mindNetwork": //好友打開
  6016. aTool = 7;
  6017. _iframe = $$("iframe", {
  6018. "webkitallowfullscreen": "",
  6019. "mozallowfullscreen": "",
  6020. "allowfullscreen": "",
  6021. "frameborder": "no",
  6022. "border": "0",
  6023. "scrolling ": "no",
  6024. "style": {
  6025. "cssText": "border:0; width:100%; height:100%;"
  6026. },
  6027. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  6028. })
  6029. _box.appendChild(_iframe);
  6030. _box.appendChild(_jie);
  6031. _formdiv = new U.UF.UI.form(
  6032. "思維網格-" + _username,
  6033. _box, {
  6034. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  6035. "style": {
  6036. "width": "90%",
  6037. "height": "90%",
  6038. "overflow": 'hidden'
  6039. },
  6040. "onresize": function () { }
  6041. }, {
  6042. closecallback: function () { }
  6043. }, {
  6044. "style": {
  6045. "height": "36px"
  6046. }
  6047. }).form; //創建窗體
  6048. _taskbar = {
  6049. "id": str + _formdiv.id,
  6050. "style": {
  6051. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  6052. },
  6053. "name": "思維網格",
  6054. "forms": _formdiv,
  6055. "click": function () {
  6056. U.MD.D.I.openApplication(str, obj, info);
  6057. }
  6058. }
  6059. break;
  6060. case "courseDesign":
  6061. _iframe = $$("iframe", {
  6062. "webkitallowfullscreen": "",
  6063. "mozallowfullscreen": "",
  6064. "allowfullscreen": "",
  6065. "frameborder": "no",
  6066. "border": "0",
  6067. "scrolling ": "no",
  6068. "style": {
  6069. "cssText": "border:0; width:100%; height:100%;"
  6070. },
  6071. "src": "/course-design-vue"
  6072. })
  6073. _box.appendChild(_iframe);
  6074. _box.appendChild(_jie);
  6075. _formdiv = new U.UF.UI.form(
  6076. "項目設計-" + _username,
  6077. _box, {
  6078. "id": "courseDesign" + cid + stage + task + tool + _userid,
  6079. "style": {
  6080. "width": "90%",
  6081. "height": "90%",
  6082. "overflow": 'hidden'
  6083. },
  6084. "onresize": function () { }
  6085. }, {
  6086. closecallback: function () { }
  6087. }, {
  6088. "style": {
  6089. "height": "36px"
  6090. }
  6091. }).form; //創建窗體
  6092. _taskbar = {
  6093. "id": str + _formdiv.id,
  6094. "style": {
  6095. "backgroundImage": "url(/img/icon/courseDesign.png)"
  6096. },
  6097. "name": "項目設計",
  6098. "forms": _formdiv,
  6099. "click": function () {
  6100. U.MD.D.I.openApplication(str, obj, info);
  6101. }
  6102. }
  6103. break;
  6104. }
  6105. const script1 = document.createElement("script");
  6106. script1.type = "text/javascript";
  6107. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6108. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6109. const script2 = document.createElement("script");
  6110. script2.type = "text/javascript";
  6111. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6112. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6113. const script3 = document.createElement("script");
  6114. script3.type = "text/javascript";
  6115. script3.charset = "UTF-8";
  6116. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6117. const script4 = document.createElement("script");
  6118. script4.type = "text/javascript";
  6119. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  6120. script4.src = window.origin + "/js/Common/jietu2E.js";
  6121. if (_iframe) {
  6122. if (str == 'doc') {
  6123. _iframe = _formdiv.querySelector('iframe')
  6124. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6125. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  6126. _iframe.contentWindow.document.body.appendChild(script1);
  6127. _iframe.contentWindow.document.body.appendChild(script2);
  6128. // _iframe.contentWindow.document.body.appendChild(script3);
  6129. _iframe.contentWindow.document.body.appendChild(script4);
  6130. })
  6131. if (onloadListener) {
  6132. _iframe.contentDocument.location.reload()
  6133. } else {
  6134. _iframe.contentDocument.location.reload()
  6135. }
  6136. } else if (str == 'courseDesign') {
  6137. U.UF.DL.iframeLoad(_iframe, function () {
  6138. // _iframe.contentWindow.U.MD.O.W.load();
  6139. // _iframe.contentWindow.document.body.appendChild(script1);
  6140. _iframe.contentWindow.document.body.appendChild(script2);
  6141. _iframe.contentWindow.document.body.appendChild(script4);
  6142. })
  6143. } else if (str == 'mind') {
  6144. _iframe = _formdiv.querySelector('iframe')
  6145. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6146. //
  6147. _iframe.contentWindow.document.body.appendChild(script1);
  6148. _iframe.contentWindow.document.body.appendChild(script2);
  6149. _iframe.contentWindow.document.body.appendChild(script4);
  6150. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  6151. })
  6152. if (onloadListener) {
  6153. _iframe.contentDocument.location.reload()
  6154. } else {
  6155. _iframe.contentDocument.location.reload()
  6156. }
  6157. } else if (str == 'whiteboard') {
  6158. _iframe = _formdiv.querySelector('iframe')
  6159. let onloadListener = _iframe.onload = () => {
  6160. _iframe.contentWindow.document.body.appendChild(script1);
  6161. _iframe.contentWindow.document.body.appendChild(script2);
  6162. _iframe.contentWindow.document.body.appendChild(script4);
  6163. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  6164. };
  6165. if (onloadListener) {
  6166. _iframe.contentDocument.location.reload()
  6167. } else {
  6168. _iframe.contentDocument.location.reload()
  6169. }
  6170. } else {
  6171. _iframe.onload = () => {
  6172. _iframe.contentWindow.document.body.appendChild(script1);
  6173. _iframe.contentWindow.document.body.appendChild(script2);
  6174. // _iframe.contentWindow.document.body.appendChild(script3);
  6175. _iframe.contentWindow.document.body.appendChild(script4);
  6176. };
  6177. }
  6178. _jie.onclick = async () => {
  6179. let text = ''
  6180. if (aTool == 1) {
  6181. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6182. } else if (aTool == 6) {
  6183. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6184. } else if (aTool == 3) {
  6185. text = await U.MD.D.I.getEditorContent(_iframe);
  6186. }
  6187. _loading.style.display = 'flex'
  6188. console.log(_loading);
  6189. var _ajs = _iframe.contentWindow.document.createElement("script");
  6190. _ajs.type = "text/javascript";
  6191. _ajs.innerHTML =
  6192. // 'console.log(' + _loading + ');\n' +
  6193. 'var _js = document.createElement("script");\n' +
  6194. '_js.type="text/javascript";\n' +
  6195. '_js.charset="UTF-8";\n' +
  6196. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6197. "_js.onload = function(){\n" +
  6198. ' var a = document.getElementsByTagName("img")\n' +
  6199. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6200. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6201. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6202. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6203. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6204. "beforeUpload_shishi(file," +
  6205. "'" +
  6206. _userid +
  6207. "'" +
  6208. ", " +
  6209. "'" +
  6210. _cid +
  6211. "'" +
  6212. ", " +
  6213. "'" +
  6214. _stage +
  6215. "'" +
  6216. ", " +
  6217. "'" +
  6218. _task +
  6219. "'" +
  6220. ", " +
  6221. "'" +
  6222. _tool +
  6223. "'" +
  6224. ", " +
  6225. "'" +
  6226. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid) +
  6227. "'" +
  6228. ", " +
  6229. "'" +
  6230. aTool +
  6231. "'" +
  6232. ", " +
  6233. "`" +
  6234. text +
  6235. "`" +
  6236. ")\n" +
  6237. " });\n" +
  6238. "}\n" +
  6239. "document.head.appendChild(_js);\n";
  6240. _iframe.contentWindow.document.head.appendChild(_ajs);
  6241. }
  6242. }
  6243. }
  6244. U.MD.D.I.getEditorContent = function (iframe) {
  6245. return new Promise((resolve, reject) => {
  6246. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  6247. console.log(content);
  6248. resolve(content)
  6249. });
  6250. });
  6251. }
  6252. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  6253. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  6254. // if (res.value[0].length > 0) {
  6255. // // resolve(res.value[0][0].text);
  6256. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  6257. // $(fileInput).val('');
  6258. // });
  6259. // }
  6260. // }, [], { "type": "GET", "withCredentials": true });
  6261. var xmlhttp;
  6262. var Mac, Sn, DeviceId
  6263. if (window.XMLHttpRequest) {
  6264. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6265. xmlhttp = new XMLHttpRequest();
  6266. }
  6267. else {
  6268. // IE6, IE5 瀏覽器執行代碼
  6269. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6270. }
  6271. xmlhttp.onreadystatechange = function () {
  6272. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6273. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6274. // resolve(res.value[0][0].text);
  6275. if (type == '2') {
  6276. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6277. } else if (type == '3') {
  6278. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6279. }
  6280. } else {
  6281. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  6282. }
  6283. }
  6284. }
  6285. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6286. xmlhttp.send();
  6287. }
  6288. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  6289. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6290. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6291. _userinfo = US.userInfo, //登錄用戶信息
  6292. _userid = US.userInfo.userid //登錄用戶id
  6293. let _iframe;
  6294. let _cid = cid,
  6295. _stage = stage,
  6296. _task = task,
  6297. _tool = tool;
  6298. var _jie = $$("div", {
  6299. "style": {
  6300. "position": "absolute",
  6301. "bottom": "50px",
  6302. "right": "50px",
  6303. "zIndex": "9999",
  6304. "backgroundColor": "#2268bc",
  6305. "color": "#fff",
  6306. "padding": "12px 20px",
  6307. "cursor": "pointer",
  6308. "borderRadius": "4px",
  6309. },
  6310. "innerHTML": "確認並提交"
  6311. })
  6312. let aTool = ''
  6313. let _loading = document.createElement('div')
  6314. _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;"
  6315. // _loading.id = "";
  6316. let _lchild = document.createElement('div')
  6317. let _limg = document.createElement('img')
  6318. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6319. _limg.style = "width: 26px;margin-right: 10px;"
  6320. _lchild.appendChild(_limg)
  6321. let _lspan = document.createElement('span')
  6322. _lspan.innerHTML = "上傳中..."
  6323. _lchild.appendChild(_lspan)
  6324. _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%);"
  6325. _loading.appendChild(_lchild)
  6326. var _box = $$('div', {
  6327. "style": {
  6328. "position": "relative",
  6329. "width": "100%",
  6330. "height": "100%",
  6331. },
  6332. })
  6333. _box.appendChild(_loading)
  6334. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool + _userid
  6335. switch (str) {
  6336. case "whiteboard":
  6337. aTool = 1;
  6338. _iframe = $$("iframe", {
  6339. "frameborder": "no",
  6340. "border": "0",
  6341. "scrolling ": "no",
  6342. "style": {
  6343. "cssText": "border:0;width:100%;height:100%"
  6344. },
  6345. "src": "https://iwb.cocorobo.hk/"
  6346. })
  6347. _box.appendChild(_iframe);
  6348. _box.appendChild(_jie);
  6349. _formdiv = new U.UF.UI.form(
  6350. "電子白板",
  6351. _box, {
  6352. "id": "whiteboards" + cid + stage + task + tool,
  6353. "style": {
  6354. "width": "90%",
  6355. "height": "90%",
  6356. "overflow": 'hidden'
  6357. },
  6358. "onresize": function () { }
  6359. }, {
  6360. closecallback: function () { }
  6361. }, {
  6362. "style": {
  6363. "height": "36px"
  6364. }
  6365. }).form; //創建窗體
  6366. _taskbar = {
  6367. "id": str + _formdiv.id,
  6368. "style": {
  6369. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6370. },
  6371. "name": "電子白板",
  6372. "forms": _formdiv,
  6373. "click": function () {
  6374. U.MD.D.I.openApplication(str, obj, info);
  6375. }
  6376. }
  6377. break;
  6378. case "mind":
  6379. aTool = 3;
  6380. _iframe = $$("iframe", {
  6381. "frameborder": "no",
  6382. "border": "0",
  6383. "scrolling ": "no",
  6384. "style": {
  6385. "cssText": "border:0;width:100%;height:100%"
  6386. },
  6387. "src": "/kityminder-editor/dist/index.html"
  6388. });
  6389. _box.appendChild(_iframe);
  6390. _box.appendChild(_jie);
  6391. _formdiv = new U.UF.UI.form(
  6392. "思維導圖",
  6393. _box, { //"/jsmind/example/demo.html"
  6394. "id": "minds" + cid + stage + task + tool,
  6395. "style": {
  6396. "width": "90%",
  6397. "height": "90%",
  6398. "overflow": 'hidden'
  6399. },
  6400. "onresize": function () { }
  6401. }, {
  6402. closecallback: function () { }
  6403. }, {
  6404. "style": {
  6405. "height": "36px"
  6406. }
  6407. }).form; //創建窗體
  6408. _taskbar = {
  6409. "id": str + _formdiv.id,
  6410. "style": {
  6411. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6412. },
  6413. "name": "思維導圖",
  6414. "forms": _formdiv,
  6415. "click": function () {
  6416. U.MD.D.I.openApplication(str, obj, info);
  6417. }
  6418. }
  6419. break;
  6420. case "doc":
  6421. aTool = 6;
  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": "/Office/Word/WordEditArea.htm"
  6430. })
  6431. _box.appendChild(_iframe);
  6432. _box.appendChild(_jie);
  6433. _formdiv = new U.UF.UI.form(
  6434. "協同文檔",
  6435. _box, {
  6436. "id": "docs" + 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. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6451. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6452. })
  6453. _taskbar = {
  6454. "id": str + _formdiv.id,
  6455. "style": {
  6456. "backgroundImage": "url(/img/icon/doc.png)"
  6457. },
  6458. "name": "協同文檔",
  6459. "forms": _formdiv,
  6460. "click": function () {
  6461. U.MD.D.I.openApplication(str, obj, info);
  6462. }
  6463. }
  6464. break;
  6465. }
  6466. const script1 = document.createElement("script");
  6467. script1.type = "text/javascript";
  6468. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6469. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6470. const script2 = document.createElement("script");
  6471. script2.type = "text/javascript";
  6472. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6473. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6474. const script3 = document.createElement("script");
  6475. script3.type = "text/javascript";
  6476. script3.charset = "UTF-8";
  6477. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6478. const script4 = document.createElement("script");
  6479. script4.type = "text/javascript";
  6480. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6481. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu4.js";
  6482. if (_iframe) {
  6483. if (str == 'doc') {
  6484. _iframe = _formdiv.querySelector('iframe')
  6485. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6486. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6487. _iframe.contentWindow.document.body.appendChild(script1);
  6488. _iframe.contentWindow.document.body.appendChild(script2);
  6489. // _iframe.contentWindow.document.body.appendChild(script3);
  6490. _iframe.contentWindow.document.body.appendChild(script4);
  6491. })
  6492. if (onloadListener) {
  6493. _iframe.contentDocument.location.reload()
  6494. } else {
  6495. _iframe.contentDocument.location.reload()
  6496. }
  6497. } else if (str == 'mind') {
  6498. _iframe = _formdiv.querySelector('iframe')
  6499. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6500. _iframe.contentWindow.document.body.appendChild(script1);
  6501. _iframe.contentWindow.document.body.appendChild(script2);
  6502. _iframe.contentWindow.document.body.appendChild(script4);
  6503. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6504. })
  6505. if (onloadListener) {
  6506. _iframe.contentDocument.location.reload()
  6507. } else {
  6508. _iframe.contentDocument.location.reload()
  6509. }
  6510. } else {
  6511. _iframe.onload = () => {
  6512. _iframe.contentWindow.document.body.appendChild(script1);
  6513. _iframe.contentWindow.document.body.appendChild(script2);
  6514. // _iframe.contentWindow.document.body.appendChild(script3);
  6515. _iframe.contentWindow.document.body.appendChild(script4);
  6516. };
  6517. }
  6518. _jie.onclick = async () => {
  6519. let text = ''
  6520. if (aTool == 6) {
  6521. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6522. } else if (aTool == 3) {
  6523. text = await U.MD.D.I.getEditorContent(_iframe);
  6524. }
  6525. _loading.style.display = 'flex'
  6526. console.log(_loading);
  6527. var _ajs = _iframe.contentWindow.document.createElement("script");
  6528. _ajs.type = "text/javascript";
  6529. _ajs.innerHTML =
  6530. // 'console.log(' + _loading + ');\n' +
  6531. 'var _js = document.createElement("script");\n' +
  6532. '_js.type="text/javascript";\n' +
  6533. '_js.charset="UTF-8";\n' +
  6534. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6535. "_js.onload = function(){\n" +
  6536. ' var a = document.getElementsByTagName("img")\n' +
  6537. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6538. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6539. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6540. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6541. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6542. "beforeUpload_shishi(file," +
  6543. "'" +
  6544. _userid +
  6545. "'" +
  6546. ", " +
  6547. "'" +
  6548. _cid +
  6549. "'" +
  6550. ", " +
  6551. "'" +
  6552. _stage +
  6553. "'" +
  6554. ", " +
  6555. "'" +
  6556. _task +
  6557. "'" +
  6558. ", " +
  6559. "'" +
  6560. _tool +
  6561. "'" +
  6562. ", " +
  6563. "'" +
  6564. (str + '_loadLi_JieS' + cid + stage + task + tool + _userid) +
  6565. "'" +
  6566. ", " +
  6567. "'" +
  6568. aTool +
  6569. "'" +
  6570. ", " +
  6571. "`" +
  6572. text +
  6573. "`" +
  6574. ")\n" +
  6575. " });\n" +
  6576. "}\n" +
  6577. "document.head.appendChild(_js);\n";
  6578. _iframe.contentWindow.document.head.appendChild(_ajs);
  6579. }
  6580. }
  6581. //U.MD.D.I.openClick(str);
  6582. //如果有任務欄信息
  6583. // if (_taskbar) {
  6584. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6585. // }
  6586. }
  6587. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  6588. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6589. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6590. _userinfo = US.userInfo, //登錄用戶信息
  6591. _userid = US.userInfo.userid //登錄用戶id
  6592. let _iframe;
  6593. let _cid = cid,
  6594. _stage = stage,
  6595. _task = task,
  6596. _tool = tool;
  6597. var _jie = $$("div", {
  6598. "style": {
  6599. "position": "absolute",
  6600. "bottom": "50px",
  6601. "right": "50px",
  6602. "zIndex": "9999",
  6603. "backgroundColor": "#2268bc",
  6604. "color": "#fff",
  6605. "padding": "12px 20px",
  6606. "cursor": "pointer",
  6607. "borderRadius": "4px",
  6608. },
  6609. "innerHTML": "確認並提交"
  6610. })
  6611. let aTool = ''
  6612. let _loading = document.createElement('div')
  6613. _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;"
  6614. // _loading.id = "";
  6615. let _lchild = document.createElement('div')
  6616. let _limg = document.createElement('img')
  6617. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6618. _limg.style = "width: 26px;margin-right: 10px;"
  6619. _lchild.appendChild(_limg)
  6620. let _lspan = document.createElement('span')
  6621. _lspan.innerHTML = "上傳中..."
  6622. _lchild.appendChild(_lspan)
  6623. _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%);"
  6624. _loading.appendChild(_lchild)
  6625. var _box = $$('div', {
  6626. "style": {
  6627. "position": "relative",
  6628. "width": "100%",
  6629. "height": "100%",
  6630. },
  6631. })
  6632. _box.appendChild(_loading)
  6633. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid
  6634. switch (str) {
  6635. case "whiteboard":
  6636. aTool = 1;
  6637. _iframe = $$("iframe", {
  6638. "frameborder": "no",
  6639. "border": "0",
  6640. "scrolling ": "no",
  6641. "style": {
  6642. "cssText": "border:0;width:100%;height:100%"
  6643. },
  6644. "src": "https://iwb.cocorobo.hk/"
  6645. })
  6646. _box.appendChild(_iframe);
  6647. _box.appendChild(_jie);
  6648. _formdiv = new U.UF.UI.form(
  6649. "電子白板",
  6650. _box, {
  6651. "id": "whiteboards" + cid + stage + task + tool,
  6652. "style": {
  6653. "width": "90%",
  6654. "height": "90%",
  6655. "overflow": 'hidden'
  6656. },
  6657. "onresize": function () { }
  6658. }, {
  6659. closecallback: function () { }
  6660. }, {
  6661. "style": {
  6662. "height": "36px"
  6663. }
  6664. }).form; //創建窗體
  6665. _taskbar = {
  6666. "id": str + _formdiv.id,
  6667. "style": {
  6668. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6669. },
  6670. "name": "電子白板",
  6671. "forms": _formdiv,
  6672. "click": function () {
  6673. U.MD.D.I.openApplication(str, obj, info);
  6674. }
  6675. }
  6676. break;
  6677. case "mind":
  6678. aTool = 3;
  6679. _iframe = $$("iframe", {
  6680. "frameborder": "no",
  6681. "border": "0",
  6682. "scrolling ": "no",
  6683. "style": {
  6684. "cssText": "border:0;width:100%;height:100%"
  6685. },
  6686. "src": "/kityminder-editor/dist/index.html"
  6687. });
  6688. _box.appendChild(_iframe);
  6689. _box.appendChild(_jie);
  6690. _formdiv = new U.UF.UI.form(
  6691. "思維導圖",
  6692. _box, { //"/jsmind/example/demo.html"
  6693. "id": "minds" + cid + stage + task + tool,
  6694. "style": {
  6695. "width": "90%",
  6696. "height": "90%",
  6697. "overflow": 'hidden'
  6698. },
  6699. "onresize": function () { }
  6700. }, {
  6701. closecallback: function () { }
  6702. }, {
  6703. "style": {
  6704. "height": "36px"
  6705. }
  6706. }).form; //創建窗體
  6707. _taskbar = {
  6708. "id": str + _formdiv.id,
  6709. "style": {
  6710. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6711. },
  6712. "name": "思維導圖",
  6713. "forms": _formdiv,
  6714. "click": function () {
  6715. U.MD.D.I.openApplication(str, obj, info);
  6716. }
  6717. }
  6718. break;
  6719. case "doc":
  6720. aTool = 6;
  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": "/Office/Word/WordEditArea.htm"
  6729. })
  6730. _box.appendChild(_iframe);
  6731. _box.appendChild(_jie);
  6732. _formdiv = new U.UF.UI.form(
  6733. "協同文檔",
  6734. _box, {
  6735. "id": "docs" + 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. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6750. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6751. })
  6752. _taskbar = {
  6753. "id": str + _formdiv.id,
  6754. "style": {
  6755. "backgroundImage": "url(/img/icon/doc.png)"
  6756. },
  6757. "name": "協同文檔",
  6758. "forms": _formdiv,
  6759. "click": function () {
  6760. U.MD.D.I.openApplication(str, obj, info);
  6761. }
  6762. }
  6763. break;
  6764. }
  6765. const script1 = document.createElement("script");
  6766. script1.type = "text/javascript";
  6767. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6768. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6769. const script2 = document.createElement("script");
  6770. script2.type = "text/javascript";
  6771. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6772. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6773. const script3 = document.createElement("script");
  6774. script3.type = "text/javascript";
  6775. script3.charset = "UTF-8";
  6776. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6777. const script4 = document.createElement("script");
  6778. script4.type = "text/javascript";
  6779. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6780. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu5.js";
  6781. if (_iframe) {
  6782. if (str == 'doc') {
  6783. _iframe = _formdiv.querySelector('iframe')
  6784. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6785. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6786. _iframe.contentWindow.document.body.appendChild(script1);
  6787. _iframe.contentWindow.document.body.appendChild(script2);
  6788. // _iframe.contentWindow.document.body.appendChild(script3);
  6789. _iframe.contentWindow.document.body.appendChild(script4);
  6790. })
  6791. if (onloadListener) {
  6792. _iframe.contentDocument.location.reload()
  6793. } else {
  6794. _iframe.contentDocument.location.reload()
  6795. }
  6796. } else if (str == 'mind') {
  6797. _iframe = _formdiv.querySelector('iframe')
  6798. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6799. _iframe.contentWindow.document.body.appendChild(script1);
  6800. _iframe.contentWindow.document.body.appendChild(script2);
  6801. _iframe.contentWindow.document.body.appendChild(script4);
  6802. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6803. })
  6804. if (onloadListener) {
  6805. _iframe.contentDocument.location.reload()
  6806. } else {
  6807. _iframe.contentDocument.location.reload()
  6808. }
  6809. } else {
  6810. _iframe.onload = () => {
  6811. _iframe.contentWindow.document.body.appendChild(script1);
  6812. _iframe.contentWindow.document.body.appendChild(script2);
  6813. // _iframe.contentWindow.document.body.appendChild(script3);
  6814. _iframe.contentWindow.document.body.appendChild(script4);
  6815. };
  6816. }
  6817. _jie.onclick = async () => {
  6818. let text = ''
  6819. if (aTool == 6) {
  6820. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6821. } else if (aTool == 3) {
  6822. text = await U.MD.D.I.getEditorContent(_iframe);
  6823. }
  6824. _loading.style.display = 'flex'
  6825. console.log(_loading);
  6826. var _ajs = _iframe.contentWindow.document.createElement("script");
  6827. _ajs.type = "text/javascript";
  6828. _ajs.innerHTML =
  6829. // 'console.log(' + _loading + ');\n' +
  6830. 'var _js = document.createElement("script");\n' +
  6831. '_js.type="text/javascript";\n' +
  6832. '_js.charset="UTF-8";\n' +
  6833. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6834. "_js.onload = function(){\n" +
  6835. ' var a = document.getElementsByTagName("img")\n' +
  6836. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6837. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6838. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6839. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6840. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6841. "beforeUpload_shishi(file," +
  6842. "'" +
  6843. _userid +
  6844. "'" +
  6845. ", " +
  6846. "'" +
  6847. _cid +
  6848. "'" +
  6849. ", " +
  6850. "'" +
  6851. _stage +
  6852. "'" +
  6853. ", " +
  6854. "'" +
  6855. _task +
  6856. "'" +
  6857. ", " +
  6858. "'" +
  6859. _tool +
  6860. "'" +
  6861. ", " +
  6862. "'" +
  6863. (str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid) +
  6864. "'" +
  6865. ", " +
  6866. "'" +
  6867. aTool +
  6868. "'" +
  6869. ", " +
  6870. "`" +
  6871. text +
  6872. "`" +
  6873. ")\n" +
  6874. " });\n" +
  6875. "}\n" +
  6876. "document.head.appendChild(_js);\n";
  6877. _iframe.contentWindow.document.head.appendChild(_ajs);
  6878. }
  6879. }
  6880. //U.MD.D.I.openClick(str);
  6881. //如果有任務欄信息
  6882. // if (_taskbar) {
  6883. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6884. // }
  6885. }
  6886. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6887. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6888. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6889. _userinfo = US.userInfo, //登錄用戶信息
  6890. _userid = US.userInfo.userid //登錄用戶id
  6891. let _iframe;
  6892. let _cid = cid,
  6893. _stage = stage,
  6894. _task = task,
  6895. _tool = tool;
  6896. var _jie = $$("div", {
  6897. "style": {
  6898. "position": "absolute",
  6899. "bottom": "50px",
  6900. "right": "50px",
  6901. "zIndex": "9999",
  6902. "backgroundColor": "#2268bc",
  6903. "color": "#fff",
  6904. "padding": "12px 20px",
  6905. "cursor": "pointer",
  6906. "borderRadius": "4px",
  6907. },
  6908. "innerHTML": "上傳模板"
  6909. })
  6910. let aTool = ''
  6911. let _loading = document.createElement('div')
  6912. _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;"
  6913. // _loading.id = "";
  6914. let _lchild = document.createElement('div')
  6915. let _limg = document.createElement('img')
  6916. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6917. _limg.style = "width: 26px;margin-right: 10px;"
  6918. _lchild.appendChild(_limg)
  6919. let _lspan = document.createElement('span')
  6920. _lspan.innerHTML = "上傳中..."
  6921. _lchild.appendChild(_lspan)
  6922. _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%);"
  6923. _loading.appendChild(_lchild)
  6924. var _box = $$('div', {
  6925. "style": {
  6926. "position": "relative",
  6927. "width": "100%",
  6928. "height": "100%",
  6929. },
  6930. })
  6931. _box.appendChild(_loading)
  6932. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool + _userid
  6933. switch (str) {
  6934. case "whiteboard":
  6935. aTool = 1;
  6936. _iframe = $$("iframe", {
  6937. "frameborder": "no",
  6938. "border": "0",
  6939. "scrolling ": "no",
  6940. "style": {
  6941. "cssText": "border:0;width:100%;height:100%"
  6942. },
  6943. "src": "https://iwb.cocorobo.hk/"
  6944. })
  6945. _box.appendChild(_iframe);
  6946. _box.appendChild(_jie);
  6947. _formdiv = new U.UF.UI.form(
  6948. "電子白板",
  6949. _box, {
  6950. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6951. "style": {
  6952. "width": "90%",
  6953. "height": "90%",
  6954. "overflow": 'hidden'
  6955. },
  6956. "onresize": function () { }
  6957. }, {
  6958. closecallback: function () { }
  6959. }, {
  6960. "style": {
  6961. "height": "36px"
  6962. }
  6963. }).form; //創建窗體
  6964. _taskbar = {
  6965. "id": str + _formdiv.id,
  6966. "style": {
  6967. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6968. },
  6969. "name": "電子白板",
  6970. "forms": _formdiv,
  6971. "click": function () {
  6972. U.MD.D.I.openApplication(str, obj, info);
  6973. }
  6974. }
  6975. break;
  6976. case "mind":
  6977. aTool = 3;
  6978. _iframe = $$("iframe", {
  6979. "frameborder": "no",
  6980. "border": "0",
  6981. "scrolling ": "no",
  6982. "style": {
  6983. "cssText": "border:0;width:100%;height:100%"
  6984. },
  6985. "src": "/kityminder-editor/dist/index.html"
  6986. });
  6987. _box.appendChild(_iframe);
  6988. _box.appendChild(_jie);
  6989. _formdiv = new U.UF.UI.form(
  6990. "思維導圖",
  6991. _box, { //"/jsmind/example/demo.html"
  6992. "id": "minds_Yu" + cid + stage + task + tool,
  6993. "style": {
  6994. "width": "90%",
  6995. "height": "90%",
  6996. "overflow": 'hidden'
  6997. },
  6998. "onresize": function () { }
  6999. }, {
  7000. closecallback: function () { }
  7001. }, {
  7002. "style": {
  7003. "height": "36px"
  7004. }
  7005. }).form; //創建窗體
  7006. _taskbar = {
  7007. "id": str + _formdiv.id,
  7008. "style": {
  7009. "backgroundImage": "url(/img/icon/mindMapping.png)"
  7010. },
  7011. "name": "思維導圖",
  7012. "forms": _formdiv,
  7013. "click": function () {
  7014. U.MD.D.I.openApplication(str, obj, info);
  7015. }
  7016. }
  7017. break;
  7018. case "doc":
  7019. aTool = 6;
  7020. _iframe = $$("iframe", {
  7021. "frameborder": "no",
  7022. "border": "0",
  7023. "scrolling ": "no",
  7024. "style": {
  7025. "cssText": "border:0;width:100%;height:100%"
  7026. },
  7027. "src": "/Office/Word/WordEditArea.htm"
  7028. })
  7029. _box.appendChild(_iframe);
  7030. _box.appendChild(_jie);
  7031. _formdiv = new U.UF.UI.form(
  7032. "協同文檔",
  7033. _box, {
  7034. "id": "docs_Yu" + cid + stage + task + tool,
  7035. "style": {
  7036. "width": "90%",
  7037. "height": "90%",
  7038. "overflow": 'hidden'
  7039. },
  7040. "onresize": function () { }
  7041. }, {
  7042. closecallback: function () { }
  7043. }, {
  7044. "style": {
  7045. "height": "36px"
  7046. }
  7047. }).form; //創建窗體
  7048. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  7049. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  7050. })
  7051. _taskbar = {
  7052. "id": str + _formdiv.id,
  7053. "style": {
  7054. "backgroundImage": "url(/img/icon/doc.png)"
  7055. },
  7056. "name": "協同文檔",
  7057. "forms": _formdiv,
  7058. "click": function () {
  7059. U.MD.D.I.openApplication(str, obj, info);
  7060. }
  7061. }
  7062. break;
  7063. case "CocoPi":
  7064. aTool = 57;
  7065. _iframe = $$("iframe", {
  7066. "allowpaymentrequest": "allowpaymentrequest",
  7067. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7068. "webkitallowfullscreen": "",
  7069. "mozallowfullscreen": "",
  7070. "frameborder": "no",
  7071. "border": "0",
  7072. "scrolling ": "no",
  7073. "style": {
  7074. "cssText": "border:0;width:100%;height:100%"
  7075. },
  7076. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7077. })
  7078. _box.appendChild(_iframe);
  7079. _box.appendChild(_jie);
  7080. _formdiv = new U.UF.UI.form(
  7081. "CocoPi",
  7082. _box, {
  7083. "id": "CocoPi_Yu" + cid + stage + task + tool,
  7084. "style": {
  7085. "width": "90%",
  7086. "height": "90%",
  7087. "overflow": 'hidden'
  7088. },
  7089. "onresize": function () { }
  7090. }, {
  7091. closecallback: function () { }
  7092. }, {
  7093. "style": {
  7094. "height": "36px"
  7095. }
  7096. }).form; //創建窗體
  7097. _taskbar = {
  7098. "id": str + _formdiv.id,
  7099. "style": {
  7100. "backgroundImage": "url(/img/icon/cocopi.png)"
  7101. },
  7102. "name": "CocoPi",
  7103. "forms": _formdiv,
  7104. "click": function () {
  7105. U.MD.D.I.openApplication(str, obj, info);
  7106. }
  7107. }
  7108. break;
  7109. }
  7110. if (_iframe) {
  7111. if (str == 'doc') {
  7112. _iframe = _formdiv.querySelector('iframe')
  7113. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7114. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  7115. })
  7116. if (onloadListener) {
  7117. _iframe.contentDocument.location.reload()
  7118. } else {
  7119. _iframe.contentDocument.location.reload()
  7120. }
  7121. } else if (str == 'mind') {
  7122. _iframe = _formdiv.querySelector('iframe')
  7123. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7124. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  7125. })
  7126. if (onloadListener) {
  7127. _iframe.contentDocument.location.reload()
  7128. } else {
  7129. _iframe.contentDocument.location.reload()
  7130. }
  7131. } else if (str == 'whiteboard') {
  7132. _iframe = _formdiv.querySelector('iframe')
  7133. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7134. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  7135. })
  7136. if (onloadListener) {
  7137. _iframe.contentDocument.location.reload()
  7138. } else {
  7139. _iframe.contentDocument.location.reload()
  7140. }
  7141. } else if (str == 'CocoPi') {
  7142. _iframe = _formdiv.querySelector('iframe')
  7143. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7144. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  7145. })
  7146. if (onloadListener) {
  7147. _iframe.contentDocument.location.reload()
  7148. } else {
  7149. _iframe.contentDocument.location.reload()
  7150. }
  7151. } else {
  7152. _iframe.onload = () => { };
  7153. }
  7154. _jie.onclick = async () => {
  7155. let text = ''
  7156. let type = '2'
  7157. if (aTool == 1) {
  7158. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  7159. type = '3'
  7160. } else if (aTool == 6) {
  7161. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  7162. type = '1'
  7163. } else if (aTool == 3) {
  7164. text = await U.MD.D.I.getEditorContent(_iframe);
  7165. type = '2'
  7166. } else if (aTool == 57) {
  7167. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  7168. type = '4'
  7169. }
  7170. _loading.style.display = 'flex'
  7171. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  7172. }
  7173. }
  7174. //U.MD.D.I.openClick(str);
  7175. //如果有任務欄信息
  7176. // if (_taskbar) {
  7177. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  7178. // }
  7179. }
  7180. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  7181. var xmlhttp;
  7182. var Mac, Sn, DeviceId
  7183. if (window.XMLHttpRequest) {
  7184. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7185. xmlhttp = new XMLHttpRequest();
  7186. }
  7187. else {
  7188. // IE6, IE5 瀏覽器執行代碼
  7189. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7190. }
  7191. xmlhttp.onreadystatechange = function () {
  7192. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7193. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7194. // resolve(res.value[0][0].text);
  7195. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7196. }
  7197. }
  7198. }
  7199. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7200. xmlhttp.send();
  7201. }
  7202. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  7203. var xmlhttp;
  7204. var Mac, Sn, DeviceId
  7205. if (window.XMLHttpRequest) {
  7206. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7207. xmlhttp = new XMLHttpRequest();
  7208. }
  7209. else {
  7210. // IE6, IE5 瀏覽器執行代碼
  7211. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7212. }
  7213. xmlhttp.onreadystatechange = function () {
  7214. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7215. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7216. // resolve(res.value[0][0].text);
  7217. if (type == '2') {
  7218. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7219. } else if (type == '3') {
  7220. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  7221. } else if (type == '4') {
  7222. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  7223. }
  7224. } else {
  7225. if (type == '2') {
  7226. iframe.contentWindow.editor.minder.importData('json', '')
  7227. } else if (type == '3') {
  7228. iframe.contentWindow.h.app.updateScene({ elements: [] })
  7229. } else if (type == '4') {
  7230. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7231. }
  7232. }
  7233. }
  7234. }
  7235. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7236. xmlhttp.send();
  7237. }
  7238. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  7239. var xmlhttp;
  7240. var Mac, Sn, DeviceId
  7241. if (window.XMLHttpRequest) {
  7242. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7243. xmlhttp = new XMLHttpRequest();
  7244. }
  7245. else {
  7246. // IE6, IE5 瀏覽器執行代碼
  7247. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7248. }
  7249. xmlhttp.onreadystatechange = function () {
  7250. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7251. if (xmlhttp.response) {
  7252. // resolve(res.value[0][0].text);
  7253. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  7254. // $(fileInput).val('');
  7255. // });
  7256. span.innerHTML = '上傳成功'
  7257. setTimeout(() => {
  7258. loading.style.display = 'none'
  7259. }, 1000);
  7260. }
  7261. }
  7262. }
  7263. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  7264. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  7265. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  7266. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  7267. // 設置請求頭,表示請求體的編碼格式
  7268. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  7269. // 設置請求體,使用url-encoded格式的數據
  7270. }
  7271. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  7272. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7273. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7274. _userinfo = US.userInfo, //登錄用戶信息
  7275. _userid = US.userInfo.userid //登錄用戶id
  7276. let _iframe;
  7277. let _cid = cid,
  7278. _stage = stage,
  7279. _task = task,
  7280. _tool = tool;
  7281. var _jie = $$("div", {
  7282. "style": {
  7283. "position": "absolute",
  7284. "bottom": "50px",
  7285. "right": "50px",
  7286. "zIndex": "9999",
  7287. "backgroundColor": "#2268bc",
  7288. "color": "#fff",
  7289. "padding": "12px 20px",
  7290. "cursor": "pointer",
  7291. "borderRadius": "4px",
  7292. },
  7293. "innerHTML": "提交作業"
  7294. })
  7295. let aTool = ''
  7296. let _loading = document.createElement('div')
  7297. _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;"
  7298. // _loading.id = "";
  7299. let _lchild = document.createElement('div')
  7300. let _limg = document.createElement('img')
  7301. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7302. _limg.style = "width: 26px;margin-right: 10px;"
  7303. _lchild.appendChild(_limg)
  7304. let _lspan = document.createElement('span')
  7305. _lspan.innerHTML = "上傳中..."
  7306. _lchild.appendChild(_lspan)
  7307. _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%);"
  7308. _loading.appendChild(_lchild)
  7309. var _box = $$('div', {
  7310. "style": {
  7311. "position": "relative",
  7312. "width": "100%",
  7313. "height": "100%",
  7314. },
  7315. })
  7316. _box.appendChild(_loading)
  7317. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool + _userid
  7318. switch (str) {
  7319. case "CocoPi":
  7320. aTool = 57;
  7321. _iframe = $$("iframe", {
  7322. "allowpaymentrequest": "allowpaymentrequest",
  7323. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7324. "webkitallowfullscreen": "",
  7325. "mozallowfullscreen": "",
  7326. "frameborder": "no",
  7327. "border": "0",
  7328. "scrolling ": "no",
  7329. "style": {
  7330. "cssText": "border:0;width:100%;height:100%"
  7331. },
  7332. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7333. })
  7334. _box.appendChild(_iframe);
  7335. _box.appendChild(_jie);
  7336. _formdiv = new U.UF.UI.form(
  7337. "CocoPi",
  7338. _box, {
  7339. "id": "CocoPi_Upload" + cid + stage + task + tool,
  7340. "style": {
  7341. "width": "90%",
  7342. "height": "90%",
  7343. "overflow": 'hidden'
  7344. },
  7345. "onresize": function () { }
  7346. }, {
  7347. closecallback: function () { }
  7348. }, {
  7349. "style": {
  7350. "height": "36px"
  7351. }
  7352. }).form; //創建窗體
  7353. _taskbar = {
  7354. "id": str + _formdiv.id,
  7355. "style": {
  7356. "backgroundImage": "url(/img/icon/cocopi.png)"
  7357. },
  7358. "name": "CocoPi",
  7359. "forms": _formdiv,
  7360. "click": function () {
  7361. U.MD.D.I.openApplication(str, obj, info);
  7362. }
  7363. }
  7364. break;
  7365. }
  7366. if (_iframe) {
  7367. if (str == 'CocoPi') {
  7368. _iframe = _formdiv.querySelector('iframe')
  7369. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7370. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7371. })
  7372. if (onloadListener) {
  7373. _iframe.contentDocument.location.reload()
  7374. } else {
  7375. _iframe.contentDocument.location.reload()
  7376. }
  7377. }
  7378. _jie.onclick = async () => {
  7379. let text = ''
  7380. if (aTool == 57) {
  7381. text = _iframe.contentWindow.getLoadXmlStr()
  7382. }
  7383. _loading.style.display = 'flex'
  7384. console.log(_loading);
  7385. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  7386. _loading.style.display = 'none'
  7387. let _div = document.createElement('div')
  7388. _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;"
  7389. let _inner = document.createElement('div')
  7390. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7391. _inner.innerHTML = "上傳成功"
  7392. _div.appendChild(_inner)
  7393. _iframe.contentWindow.window.document.body.appendChild(_div)
  7394. _div.onclick = () => {
  7395. _iframe.contentWindow.window.document.body.removeChild(_div)
  7396. }
  7397. setTimeout(() => {
  7398. _iframe.contentWindow.window.document.body.removeChild(_div)
  7399. }, 1000);
  7400. }, [], { "type": "POST", "withCredentials": true });
  7401. }
  7402. }
  7403. }
  7404. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  7405. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7406. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7407. _userid = student.userid, //登錄用戶id
  7408. _username = student.student //用戶名字
  7409. let _iframe;
  7410. let _cid = cid,
  7411. _stage = stage,
  7412. _task = task,
  7413. _tool = tool;
  7414. var _jie = $$("div", {
  7415. "style": {
  7416. "position": "absolute",
  7417. "bottom": "50px",
  7418. "right": "50px",
  7419. "zIndex": "9999",
  7420. "backgroundColor": "#2268bc",
  7421. "color": "#fff",
  7422. "padding": "12px 20px",
  7423. "cursor": "pointer",
  7424. "borderRadius": "4px",
  7425. },
  7426. "innerHTML": "提交作業"
  7427. })
  7428. let aTool = ''
  7429. let _loading = document.createElement('div')
  7430. _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;"
  7431. // _loading.id = "";
  7432. let _lchild = document.createElement('div')
  7433. let _limg = document.createElement('img')
  7434. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7435. _limg.style = "width: 26px;margin-right: 10px;"
  7436. _lchild.appendChild(_limg)
  7437. let _lspan = document.createElement('span')
  7438. _lspan.innerHTML = "上傳中..."
  7439. _lchild.appendChild(_lspan)
  7440. _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%);"
  7441. _loading.appendChild(_lchild)
  7442. var _box = $$('div', {
  7443. "style": {
  7444. "position": "relative",
  7445. "width": "100%",
  7446. "height": "100%",
  7447. },
  7448. })
  7449. _box.appendChild(_loading)
  7450. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool + _userid
  7451. switch (str) {
  7452. case "CocoPi":
  7453. aTool = 57;
  7454. _iframe = $$("iframe", {
  7455. "allowpaymentrequest": "allowpaymentrequest",
  7456. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7457. "webkitallowfullscreen": "",
  7458. "mozallowfullscreen": "",
  7459. "frameborder": "no",
  7460. "border": "0",
  7461. "scrolling ": "no",
  7462. "style": {
  7463. "cssText": "border:0;width:100%;height:100%"
  7464. },
  7465. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7466. })
  7467. _box.appendChild(_iframe);
  7468. _box.appendChild(_jie);
  7469. _formdiv = new U.UF.UI.form(
  7470. "CocoPi-" + _username,
  7471. _box, {
  7472. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  7473. "style": {
  7474. "width": "90%",
  7475. "height": "90%",
  7476. "overflow": 'hidden'
  7477. },
  7478. "onresize": function () { }
  7479. }, {
  7480. closecallback: function () { }
  7481. }, {
  7482. "style": {
  7483. "height": "36px"
  7484. }
  7485. }).form; //創建窗體
  7486. _taskbar = {
  7487. "id": str + _formdiv.id,
  7488. "style": {
  7489. "backgroundImage": "url(/img/icon/cocopi.png)"
  7490. },
  7491. "name": "CocoPi",
  7492. "forms": _formdiv,
  7493. "click": function () {
  7494. U.MD.D.I.openApplication(str, obj, info);
  7495. }
  7496. }
  7497. break;
  7498. }
  7499. if (_iframe) {
  7500. if (str == 'CocoPi') {
  7501. _iframe = _formdiv.querySelector('iframe')
  7502. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7503. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7504. })
  7505. if (onloadListener) {
  7506. _iframe.contentDocument.location.reload()
  7507. } else {
  7508. _iframe.contentDocument.location.reload()
  7509. }
  7510. }
  7511. _jie.onclick = async () => {
  7512. let text = ''
  7513. if (aTool == 57) {
  7514. text = _iframe.contentWindow.getLoadXmlStr()
  7515. }
  7516. _loading.style.display = 'flex'
  7517. console.log(_loading);
  7518. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  7519. _loading.style.display = 'none'
  7520. let _div = document.createElement('div')
  7521. _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;"
  7522. let _inner = document.createElement('div')
  7523. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7524. _inner.innerHTML = "上傳成功"
  7525. _div.appendChild(_inner)
  7526. _iframe.contentWindow.window.document.body.appendChild(_div)
  7527. _div.onclick = () => {
  7528. _iframe.contentWindow.window.document.body.removeChild(_div)
  7529. }
  7530. setTimeout(() => {
  7531. _iframe.contentWindow.window.document.body.removeChild(_div)
  7532. }, 1000);
  7533. }, [], { "type": "POST", "withCredentials": true });
  7534. }
  7535. }
  7536. }
  7537. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  7538. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  7539. if (res.value[0].length > 0) {
  7540. if (atool == 57) {
  7541. iframe.contentWindow.loadingXml(res.value[0][0].content)
  7542. }
  7543. } else {
  7544. if (atool == 57) {
  7545. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  7546. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7547. }
  7548. }
  7549. }, [], { "type": "POST", "withCredentials": true });
  7550. }