DeskTop.js 453 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814
  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. ];
  617. //hk
  618. U.MD.D.I.hkStudentDeskIcon = [
  619. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  620. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  621. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  622. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  623. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  624. ];
  625. //香海正覺蓮社佛教正覺中學
  626. U.MD.D.I.hkZJLSteacherDeskIcon = [
  627. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  628. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  629. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  630. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  631. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  632. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  633. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  634. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  635. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  636. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  637. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  638. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  639. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  640. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  641. ];
  642. //香海正覺蓮社佛教正覺中學
  643. U.MD.D.I.hkZJLSStudentDeskIcon = [
  644. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  645. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  646. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  647. ];
  648. //雲海
  649. U.MD.D.I.yunhaiTeacherDeskIcon = [
  650. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  651. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  652. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  653. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  654. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  655. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  656. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  657. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  658. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  659. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  660. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  661. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  662. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  663. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  664. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  665. ];
  666. //福田
  667. U.MD.D.I.heyuanTeacherDeskIcon = [
  668. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  669. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  670. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  671. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  672. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  673. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  674. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  675. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  676. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  677. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  678. ];
  679. //福田
  680. U.MD.D.I.heyuanAdminDeskIcon = [
  681. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  682. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  683. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  684. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  685. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  686. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  687. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  688. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  689. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  690. ];
  691. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  692. U.MD.D.I.szherTeacherDeskIcon = [
  693. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  694. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  695. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  696. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  697. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  698. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  699. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  700. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  701. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  702. ];
  703. //dsei
  704. U.MD.D.I.dseiTeacherDeskIcon = [
  705. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  706. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  707. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  708. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  709. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  710. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  711. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  712. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  713. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  714. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  715. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  716. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  717. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  718. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  719. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  720. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  721. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  722. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  723. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  724. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  725. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  726. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  727. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  728. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  729. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  730. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  731. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  732. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  733. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  734. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  735. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  736. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  737. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  738. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  739. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  740. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  741. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  742. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  743. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  744. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  745. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  746. ];
  747. //dsei
  748. U.MD.D.I.dseiAdminDeskIcon = [
  749. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  750. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  751. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  752. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  753. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  754. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  755. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  756. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  757. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  758. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  759. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  760. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  761. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  762. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  763. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  764. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  765. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  766. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  767. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  768. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  769. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  770. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  771. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  772. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  773. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  774. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  775. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  776. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  777. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  778. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  779. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  780. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  781. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  782. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  783. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  784. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  785. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  786. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  787. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  788. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  789. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  790. ];
  791. //dsei
  792. U.MD.D.I.dseiStudentDeskIcon = [
  793. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  794. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  795. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  796. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  797. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  798. ];
  799. //未來教育基地
  800. U.MD.D.I.szjkyTeacherDeskIcon = [
  801. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  802. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  803. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  804. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  805. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  806. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  807. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  808. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  809. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  810. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  811. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  812. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  813. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  814. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  815. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  816. ];
  817. //未來教育基地
  818. U.MD.D.I.szjkyAdminDeskIcon = [
  819. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  820. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  821. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  822. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  823. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  824. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  825. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  826. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  827. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  828. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  829. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  830. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  831. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  832. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  833. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  834. ];
  835. //未來教育基地
  836. U.MD.D.I.szjkyStudentDeskIcon = [
  837. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  838. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  839. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  840. ];
  841. //成華教育局
  842. U.MD.D.I.chjyjTeacherDeskIcon = [
  843. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  844. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  845. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  846. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  847. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  848. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  849. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  850. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  851. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  852. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  853. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  854. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  855. ];
  856. //成華教育局chjyj
  857. U.MD.D.I.chjyjAdminDeskIcon = [
  858. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  859. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  860. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  861. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  862. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  863. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  864. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  865. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  866. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  867. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  868. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  869. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  870. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  871. ];
  872. //成華教育局chjyj
  873. U.MD.D.I.chjyjStudentDeskIcon = [
  874. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  875. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  876. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  877. ];
  878. //tpc
  879. U.MD.D.I.tpcStudentDeskIcon = [
  880. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  881. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  882. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  883. ];
  884. //tpc
  885. U.MD.D.I.tpcTeacherDeskIcon = [
  886. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  887. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  888. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  889. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  890. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  891. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  892. ];
  893. //tpc
  894. U.MD.D.I.tpcAdminDeskIcon = [
  895. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  896. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  897. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  898. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  899. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  900. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  901. ];
  902. //#region 桌面初始化a
  903. /**
  904. * 初始化桌面的起始函數
  905. *
  906. */
  907. U.MD.D.I.init = function () {
  908. if ($("#U_MD_D_K")[0]) {
  909. //初始化桌面圖標
  910. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  911. // var clickUrl = ':12588/requestIp.php';
  912. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  913. // U.MD.D.I.Ip = data;
  914. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  915. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  916. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  917. // })
  918. // //初始化任務欄,因為是靜態的,所以直接改變樣式即可.
  919. // })
  920. }
  921. }
  922. /**
  923. * 模式切換
  924. *
  925. */
  926. U.MD.D.I.ModeCheck = function (type) {
  927. if (US.Config.type == type) {
  928. return
  929. }
  930. US.Config.type = type
  931. $('.U_PBL_Check .active')[0].className = ''
  932. if (type == 1) {
  933. $('.U_PBL_Check div')[0].className = 'active'
  934. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  935. } else {
  936. $('.U_PBL_Check div')[1].className = 'active'
  937. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  938. }
  939. //初始化桌面圖標
  940. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  941. if (type == 2) {
  942. U.MD.D.I.openApplication("project")
  943. }
  944. }
  945. /**
  946. * 隱藏任務欄
  947. *
  948. * @param {element} 桌面元素
  949. */
  950. U.MD.D.I.hiddenTaskbar = function (el) {
  951. //任務欄位置變小
  952. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  953. //桌面的位置變大
  954. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  955. }
  956. /**
  957. * 隱藏任務欄
  958. *
  959. * @param {element} 桌面元素
  960. */
  961. U.MD.D.I.hiddenTaskbarout = function (el) {
  962. //任務欄位置變小
  963. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  964. //任務欄位置變化
  965. U.selectEl(el).css({ "bottom": "-60px" });
  966. //桌面的位置變大
  967. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  968. }
  969. }
  970. /**
  971. * 初始化打印桌面圖標
  972. *
  973. * @param {element} 桌面元素
  974. */
  975. U.MD.D.I.initDesktopIcons = function (el, type) {
  976. var i, //用於循環
  977. _content, //桌面圖標元素
  978. _iconcontent, //桌面圖標元素
  979. _frag = $$("frag"), //定義一個碎片元素
  980. _type = US.userInfo.type,
  981. _org = US.userInfo.org,
  982. _oid = US.userInfo.organizeid,
  983. _role = US.userInfo.role,
  984. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //獲取教師端桌面圖標
  985. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //極簡模式桌面圖標
  986. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //獲取教師端桌面圖標
  987. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //獲取學生端桌面圖標
  988. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //獲取學生端桌面圖標
  989. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //獲取學生端桌面圖標
  990. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //獲取組織桌面圖標
  991. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  992. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  993. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  994. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //獲取測試學校桌面圖標
  995. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon, //獲取北師大
  996. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon, //獲取周佳名工作室
  997. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon, //獲取松山湖
  998. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon, //獲取萬科雙語
  999. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon, //獲取萬科雙語
  1000. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon, //獲取萬科雙語
  1001. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon, //獲取未來小學
  1002. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon, //獲取未來小學
  1003. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //獲取光明學校桌面圖標
  1004. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //獲取光明學校桌面圖標
  1005. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon, //騰訊學生
  1006. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon, //騰訊學生
  1007. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon, //福田
  1008. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon, //福田
  1009. _szjkyTeacherDeskIconInfo = U.MD.D.I.szjkyTeacherDeskIcon, //未來教育基地
  1010. _szjkyAdminDeskIconInfo = U.MD.D.I.szjkyAdminDeskIcon, //未來教育基地
  1011. _szjkyStudentDeskIconInfo = U.MD.D.I.szjkyStudentDeskIcon, //未來教育基地
  1012. _chjyjTeacherDeskIconInfo = U.MD.D.I.chjyjTeacherDeskIcon, //成華教育局
  1013. _chjyjAdminDeskIconInfo = U.MD.D.I.chjyjAdminDeskIcon, //成華教育局
  1014. _chjyjStudentDeskIconInfo = U.MD.D.I.chjyjStudentDeskIcon, //成華教育局
  1015. _dseiTeacherDeskIconInfo = U.MD.D.I.dseiTeacherDeskIcon, //dsei
  1016. _dseiAdminDeskIconInfo = U.MD.D.I.dseiAdminDeskIcon, //dsei
  1017. _dseiStudentDeskIconInfo = U.MD.D.I.dseiStudentDeskIcon, //dsei
  1018. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon, //福田
  1019. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon, //福田
  1020. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon, //szher
  1021. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon, //
  1022. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon, //
  1023. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon, //lotech
  1024. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon, //龍華中心
  1025. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon, //sies
  1026. _siesStudentDeskIconInfo = U.MD.D.I.siesStudentDeskIcon, //sies
  1027. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon, //騰訊學生
  1028. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon, //hk
  1029. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon, //hk
  1030. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon, //hk
  1031. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon, //hk
  1032. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon, //雲海
  1033. _tpcStudentDeskIconInfo= U.MD.D.I.tpcStudentDeskIcon,
  1034. _tpcTeacherDeskIconInfo= U.MD.D.I.tpcTeacherDeskIcon,
  1035. _tpcOrganizerDeskIconInfo= U.MD.D.I.tpcAdminDeskIcon,
  1036. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon, //網絡夏令營
  1037. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon, //網絡夏令營
  1038. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon; //網絡夏令營
  1039. 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'];
  1040. 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'];
  1041. //清楚桌面圖標
  1042. el.innerHTML = "";
  1043. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  1044. _teacherDesktopIconInfo.push(
  1045. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1046. { "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)" } },
  1047. )
  1048. _easyDesktopIconInfo.push({ "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } })
  1049. }
  1050. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  1051. _teacherDesktopIconInfo.push(
  1052. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1053. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  1054. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1055. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1056. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  1057. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  1058. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1059. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1060. { "Name": "評測管理", "Url": "testTeacher", "style": { "cssText": "background-image:url(/img/icon/testTeacher.png)" } },
  1061. { "Name": "評測中心", "Url": "testStudent", "style": { "cssText": "background-image:url(/img/icon/testStudent.png)" } },
  1062. )
  1063. }
  1064. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5') {
  1065. _teacherDesktopIconInfo.push(
  1066. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1067. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1068. )
  1069. _studentDesktopIconInfo.push(
  1070. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1071. )
  1072. }
  1073. if (_oid == 'cf8841e8-c7c0-11ed-9546-005056b86db5' || _oid == "d67940a5-510c-40ea-9c9a-2631ab03013a") {
  1074. _teacherDesktopIconInfo.push(
  1075. { "Name": "協同建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1076. )
  1077. }
  1078. if (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
  1079. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  1080. if (el.Name == '項目管理') {
  1081. el.Name = 'PBL項目'
  1082. }
  1083. return el
  1084. })
  1085. }
  1086. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  1087. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  1088. return el.Name != '魔盒識字' && el.Name != '24點'
  1089. })
  1090. }
  1091. 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) {
  1092. _studentDesktopIconInfo.push({ "Name": "我的評價", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },)
  1093. }
  1094. //循環創建桌面圖標
  1095. if (type == 1) {
  1096. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  1097. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1098. _content = $$("div", {
  1099. className: "U_MD_D_KO",
  1100. "onmousedown": U.UF.C.closure(function (obj) {
  1101. //防止拖動圖標即打開了桌面應用
  1102. U.MD.D.click(this, obj);
  1103. }, [_studentDesktopIconInfo[i]]),
  1104. "onclick": U.UF.C.closure(function (obj) {
  1105. //防止拖動圖標即打開了桌面應用
  1106. U.MD.D.click(this, obj);
  1107. }, [_studentDesktopIconInfo[i]])
  1108. }, _frag); //
  1109. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1110. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1111. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1112. }
  1113. } else if (_type == 2 && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1114. for (i = 0; i < _hkZJLSStudentDeskIconInfo.length; i++) {
  1115. _content = $$("div", {
  1116. className: "U_MD_D_KO",
  1117. "onmousedown": U.UF.C.closure(function (obj) {
  1118. //防止拖動圖標即打開了桌面應用
  1119. U.MD.D.click(this, obj);
  1120. }, [_hkZJLSStudentDeskIconInfo[i]]),
  1121. "onclick": U.UF.C.closure(function (obj) {
  1122. //防止拖動圖標即打開了桌面應用
  1123. U.MD.D.click(this, obj);
  1124. }, [_hkZJLSStudentDeskIconInfo[i]])
  1125. }, _frag); //
  1126. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1127. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  1128. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  1129. } //
  1130. } else if (_type == 2 && (_org == "a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956")) {
  1131. for (i = 0; i < _tpcStudentDeskIconInfo.length; i++) {
  1132. _content = $$("div", {
  1133. className: "U_MD_D_KO",
  1134. "onmousedown": U.UF.C.closure(function (obj) {
  1135. //防止拖動圖標即打開了桌面應用
  1136. U.MD.D.click(this, obj);
  1137. }, [_tpcStudentDeskIconInfo[i]]),
  1138. "onclick": U.UF.C.closure(function (obj) {
  1139. //防止拖動圖標即打開了桌面應用
  1140. U.MD.D.click(this, obj);
  1141. }, [_tpcStudentDeskIconInfo[i]])
  1142. }, _frag); //
  1143. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1144. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tpcStudentDeskIconInfo[i].style }, _iconcontent);
  1145. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tpcStudentDeskIconInfo[i].Name }, _iconcontent);
  1146. } //
  1147. } else if (_type == 2 && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5")) {
  1148. for (i = 0; i < _chjyjStudentDeskIconInfo.length; i++) {
  1149. _content = $$("div", {
  1150. className: "U_MD_D_KO",
  1151. "onmousedown": U.UF.C.closure(function (obj) {
  1152. //防止拖動圖標即打開了桌面應用
  1153. U.MD.D.click(this, obj);
  1154. }, [_chjyjStudentDeskIconInfo[i]]),
  1155. "onclick": U.UF.C.closure(function (obj) {
  1156. //防止拖動圖標即打開了桌面應用
  1157. U.MD.D.click(this, obj);
  1158. }, [_chjyjStudentDeskIconInfo[i]])
  1159. }, _frag); //
  1160. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1161. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjStudentDeskIconInfo[i].style }, _iconcontent);
  1162. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjStudentDeskIconInfo[i].Name }, _iconcontent);
  1163. }
  1164. } else if (_type == 2 && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5")) {
  1165. for (i = 0; i < _szjkyStudentDeskIconInfo.length; i++) {
  1166. _content = $$("div", {
  1167. className: "U_MD_D_KO",
  1168. "onmousedown": U.UF.C.closure(function (obj) {
  1169. //防止拖動圖標即打開了桌面應用
  1170. U.MD.D.click(this, obj);
  1171. }, [_szjkyStudentDeskIconInfo[i]]),
  1172. "onclick": U.UF.C.closure(function (obj) {
  1173. //防止拖動圖標即打開了桌面應用
  1174. U.MD.D.click(this, obj);
  1175. }, [_szjkyStudentDeskIconInfo[i]])
  1176. }, _frag); //
  1177. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1178. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyStudentDeskIconInfo[i].style }, _iconcontent);
  1179. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyStudentDeskIconInfo[i].Name }, _iconcontent);
  1180. }
  1181. } else if (_type == 2 && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5")) {
  1182. for (i = 0; i < _dseiStudentDeskIconInfo.length; i++) {
  1183. _content = $$("div", {
  1184. className: "U_MD_D_KO",
  1185. "onmousedown": U.UF.C.closure(function (obj) {
  1186. //防止拖動圖標即打開了桌面應用
  1187. U.MD.D.click(this, obj);
  1188. }, [_dseiStudentDeskIconInfo[i]]),
  1189. "onclick": U.UF.C.closure(function (obj) {
  1190. //防止拖動圖標即打開了桌面應用
  1191. U.MD.D.click(this, obj);
  1192. }, [_dseiStudentDeskIconInfo[i]])
  1193. }, _frag); //
  1194. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1195. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiStudentDeskIconInfo[i].style }, _iconcontent);
  1196. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiStudentDeskIconInfo[i].Name }, _iconcontent);
  1197. }
  1198. } else if (_type == 2 && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1199. for (i = 0; i < _siesStudentDeskIconInfo.length; i++) {
  1200. _content = $$("div", {
  1201. className: "U_MD_D_KO",
  1202. "onmousedown": U.UF.C.closure(function (obj) {
  1203. //防止拖動圖標即打開了桌面應用
  1204. U.MD.D.click(this, obj);
  1205. }, [_siesStudentDeskIconInfo[i]]),
  1206. "onclick": U.UF.C.closure(function (obj) {
  1207. //防止拖動圖標即打開了桌面應用
  1208. U.MD.D.click(this, obj);
  1209. }, [_siesStudentDeskIconInfo[i]])
  1210. }, _frag); //
  1211. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1212. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesStudentDeskIconInfo[i].style }, _iconcontent);
  1213. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesStudentDeskIconInfo[i].Name }, _iconcontent);
  1214. }
  1215. } else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1216. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  1217. _content = $$("div", {
  1218. className: "U_MD_D_KO",
  1219. "onmousedown": U.UF.C.closure(function (obj) {
  1220. //防止拖動圖標即打開了桌面應用
  1221. U.MD.D.click(this, obj);
  1222. }, [_hkStudentDeskIconInfo[i]]),
  1223. "onclick": U.UF.C.closure(function (obj) {
  1224. //防止拖動圖標即打開了桌面應用
  1225. U.MD.D.click(this, obj);
  1226. }, [_hkStudentDeskIconInfo[i]])
  1227. }, _frag); //
  1228. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1229. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  1230. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  1231. }
  1232. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  1233. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1234. _content = $$("div", {
  1235. className: "U_MD_D_KO",
  1236. "onmousedown": U.UF.C.closure(function (obj) {
  1237. //防止拖動圖標即打開了桌面應用
  1238. U.MD.D.click(this, obj);
  1239. }, [_studentDesktopIconInfo[i]]),
  1240. "onclick": U.UF.C.closure(function (obj) {
  1241. //防止拖動圖標即打開了桌面應用
  1242. U.MD.D.click(this, obj);
  1243. }, [_studentDesktopIconInfo[i]])
  1244. }, _frag); //
  1245. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1246. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1247. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1248. }
  1249. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  1250. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  1251. _content = $$("div", {
  1252. className: "U_MD_D_KO",
  1253. "onmousedown": U.UF.C.closure(function (obj) {
  1254. //防止拖動圖標即打開了桌面應用
  1255. U.MD.D.click(this, obj);
  1256. }, [_tcStudentDeskIconInfo[i]]),
  1257. "onclick": U.UF.C.closure(function (obj) {
  1258. //防止拖動圖標即打開了桌面應用
  1259. U.MD.D.click(this, obj);
  1260. }, [_tcStudentDeskIconInfo[i]])
  1261. }, _frag); //
  1262. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1263. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  1264. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  1265. }
  1266. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  1267. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  1268. _content = $$("div", {
  1269. className: "U_MD_D_KO",
  1270. "onmousedown": U.UF.C.closure(function (obj) {
  1271. //防止拖動圖標即打開了桌面應用
  1272. U.MD.D.click(this, obj);
  1273. }, [_szscStudentDeskIconInfo[i]]),
  1274. "onclick": U.UF.C.closure(function (obj) {
  1275. //防止拖動圖標即打開了桌面應用
  1276. U.MD.D.click(this, obj);
  1277. }, [_szscStudentDeskIconInfo[i]])
  1278. }, _frag); //
  1279. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1280. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  1281. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  1282. }
  1283. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  1284. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  1285. _content = $$("div", {
  1286. className: "U_MD_D_KO",
  1287. "onmousedown": U.UF.C.closure(function (obj) {
  1288. //防止拖動圖標即打開了桌面應用
  1289. U.MD.D.click(this, obj);
  1290. }, [_studentDesktopIconInfo3[i]]),
  1291. "onclick": U.UF.C.closure(function (obj) {
  1292. //防止拖動圖標即打開了桌面應用
  1293. U.MD.D.click(this, obj);
  1294. }, [_studentDesktopIconInfo3[i]])
  1295. }, _frag); //
  1296. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1297. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  1298. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  1299. }
  1300. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  1301. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  1302. _content = $$("div", {
  1303. className: "U_MD_D_KO",
  1304. "onmousedown": U.UF.C.closure(function (obj) {
  1305. //防止拖動圖標即打開了桌面應用
  1306. U.MD.D.click(this, obj);
  1307. }, [_studentDesktopIconInfo2[i]]),
  1308. "onclick": U.UF.C.closure(function (obj) {
  1309. //防止拖動圖標即打開了桌面應用
  1310. U.MD.D.click(this, obj);
  1311. }, [_studentDesktopIconInfo2[i]])
  1312. }, _frag); //
  1313. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1314. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  1315. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  1316. }
  1317. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  1318. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  1319. _content = $$("div", {
  1320. className: "U_MD_D_KO",
  1321. "onmousedown": U.UF.C.closure(function (obj) {
  1322. //防止拖動圖標即打開了桌面應用
  1323. U.MD.D.click(this, obj);
  1324. }, [_wanketeacherDesktopIconInfo[i]]),
  1325. "onclick": U.UF.C.closure(function (obj) {
  1326. //防止拖動圖標即打開了桌面應用
  1327. U.MD.D.click(this, obj);
  1328. }, [_wanketeacherDesktopIconInfo[i]])
  1329. }, _frag); //
  1330. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1331. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  1332. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  1333. }
  1334. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1335. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  1336. _content = $$("div", {
  1337. className: "U_MD_D_KO",
  1338. "onmousedown": U.UF.C.closure(function (obj) {
  1339. //防止拖動圖標即打開了桌面應用
  1340. U.MD.D.click(this, obj);
  1341. }, [_wankeAdminDesktopIconInfo[i]]),
  1342. "onclick": U.UF.C.closure(function (obj) {
  1343. //防止拖動圖標即打開了桌面應用
  1344. U.MD.D.click(this, obj);
  1345. }, [_wankeAdminDesktopIconInfo[i]])
  1346. }, _frag); //
  1347. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1348. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1349. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1350. }
  1351. } else if ((_type == 1 || _type == 4) && _org == "a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956" && _role == 1) {
  1352. for (i = 0; i < _tpcOrganizerDeskIconInfo.length; i++) {
  1353. _content = $$("div", {
  1354. className: "U_MD_D_KO",
  1355. "onmousedown": U.UF.C.closure(function (obj) {
  1356. //防止拖動圖標即打開了桌面應用
  1357. U.MD.D.click(this, obj);
  1358. }, [_tpcOrganizerDeskIconInfo[i]]),
  1359. "onclick": U.UF.C.closure(function (obj) {
  1360. //防止拖動圖標即打開了桌面應用
  1361. U.MD.D.click(this, obj);
  1362. }, [_tpcOrganizerDeskIconInfo[i]])
  1363. }, _frag); //
  1364. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1365. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tpcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1366. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tpcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1367. }
  1368. } else if ((_type == 1 || _type == 4) && _org == "a0fc1c55-3c2f-4ece-8cd4-ac3e2c1e9956" && _role == 0) {
  1369. for (i = 0; i < _tpcTeacherDeskIconInfo.length; i++) {
  1370. _content = $$("div", {
  1371. className: "U_MD_D_KO",
  1372. "onmousedown": U.UF.C.closure(function (obj) {
  1373. //防止拖動圖標即打開了桌面應用
  1374. U.MD.D.click(this, obj);
  1375. }, [_tpcTeacherDeskIconInfo[i]]),
  1376. "onclick": U.UF.C.closure(function (obj) {
  1377. //防止拖動圖標即打開了桌面應用
  1378. U.MD.D.click(this, obj);
  1379. }, [_tpcTeacherDeskIconInfo[i]])
  1380. }, _frag); //
  1381. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1382. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tpcTeacherDeskIconInfo[i].style }, _iconcontent);
  1383. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tpcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1384. }
  1385. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1386. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  1387. _content = $$("div", {
  1388. className: "U_MD_D_KO",
  1389. "onmousedown": U.UF.C.closure(function (obj) {
  1390. //防止拖動圖標即打開了桌面應用
  1391. U.MD.D.click(this, obj);
  1392. }, [_teacherDesktopIconInfo2[i]]),
  1393. "onclick": U.UF.C.closure(function (obj) {
  1394. //防止拖動圖標即打開了桌面應用
  1395. U.MD.D.click(this, obj);
  1396. }, [_teacherDesktopIconInfo2[i]])
  1397. }, _frag); //
  1398. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1399. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1400. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1401. }
  1402. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1403. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  1404. _content = $$("div", {
  1405. className: "U_MD_D_KO",
  1406. "onmousedown": U.UF.C.closure(function (obj) {
  1407. //防止拖動圖標即打開了桌面應用
  1408. U.MD.D.click(this, obj);
  1409. }, [_lotechTeacherDeskIconInfo[i]]),
  1410. "onclick": U.UF.C.closure(function (obj) {
  1411. //防止拖動圖標即打開了桌面應用
  1412. U.MD.D.click(this, obj);
  1413. }, [_lotechTeacherDeskIconInfo[i]])
  1414. }, _frag); //
  1415. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1416. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1417. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1418. }//
  1419. } else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1420. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1421. _content = $$("div", {
  1422. className: "U_MD_D_KO",
  1423. "onmousedown": U.UF.C.closure(function (obj) {
  1424. //防止拖動圖標即打開了桌面應用
  1425. U.MD.D.click(this, obj);
  1426. }, [_siesTeacherDeskIconInfo[i]]),
  1427. "onclick": U.UF.C.closure(function (obj) {
  1428. //防止拖動圖標即打開了桌面應用
  1429. U.MD.D.click(this, obj);
  1430. }, [_siesTeacherDeskIconInfo[i]])
  1431. }, _frag); //
  1432. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1433. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1434. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1435. }
  1436. } else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1437. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1438. _content = $$("div", {
  1439. className: "U_MD_D_KO",
  1440. "onmousedown": U.UF.C.closure(function (obj) {
  1441. //防止拖動圖標即打開了桌面應用
  1442. U.MD.D.click(this, obj);
  1443. }, [_longhuaTeacherDeskIconInfo[i]]),
  1444. "onclick": U.UF.C.closure(function (obj) {
  1445. //防止拖動圖標即打開了桌面應用
  1446. U.MD.D.click(this, obj);
  1447. }, [_longhuaTeacherDeskIconInfo[i]])
  1448. }, _frag); //
  1449. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1450. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1451. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1452. }
  1453. } else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1454. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1455. _content = $$("div", {
  1456. className: "U_MD_D_KO",
  1457. "onmousedown": U.UF.C.closure(function (obj) {
  1458. //防止拖動圖標即打開了桌面應用
  1459. U.MD.D.click(this, obj);
  1460. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1461. "onclick": U.UF.C.closure(function (obj) {
  1462. //防止拖動圖標即打開了桌面應用
  1463. U.MD.D.click(this, obj);
  1464. }, [_yunhaiTeacherDeskIconInfo[i]])
  1465. }, _frag); //
  1466. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1467. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1468. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1469. } //_hkStudentDeskIconInfo
  1470. } else if ((_type == 1 || _type == 4) && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1471. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.length; i++) {
  1472. _content = $$("div", {
  1473. className: "U_MD_D_KO",
  1474. "onmousedown": U.UF.C.closure(function (obj) {
  1475. //防止拖動圖標即打開了桌面應用
  1476. U.MD.D.click(this, obj);
  1477. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1478. "onclick": U.UF.C.closure(function (obj) {
  1479. //防止拖動圖標即打開了桌面應用
  1480. U.MD.D.click(this, obj);
  1481. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1482. }, _frag); //
  1483. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1484. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1485. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1486. }
  1487. } else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1488. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1489. _content = $$("div", {
  1490. className: "U_MD_D_KO",
  1491. "onmousedown": U.UF.C.closure(function (obj) {
  1492. //防止拖動圖標即打開了桌面應用
  1493. U.MD.D.click(this, obj);
  1494. }, [_hkTeacherDeskIconInfo[i]]),
  1495. "onclick": U.UF.C.closure(function (obj) {
  1496. //防止拖動圖標即打開了桌面應用
  1497. U.MD.D.click(this, obj);
  1498. }, [_hkTeacherDeskIconInfo[i]])
  1499. }, _frag); //
  1500. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1501. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1502. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1503. }
  1504. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1505. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1506. _content = $$("div", {
  1507. className: "U_MD_D_KO",
  1508. "onmousedown": U.UF.C.closure(function (obj) {
  1509. //防止拖動圖標即打開了桌面應用
  1510. U.MD.D.click(this, obj);
  1511. }, [_gdjgAdminDeskIconInfo[i]]),
  1512. "onclick": U.UF.C.closure(function (obj) {
  1513. //防止拖動圖標即打開了桌面應用
  1514. U.MD.D.click(this, obj);
  1515. }, [_gdjgAdminDeskIconInfo[i]])
  1516. }, _frag); //
  1517. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1518. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1519. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1520. }
  1521. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1522. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1523. _content = $$("div", {
  1524. className: "U_MD_D_KO",
  1525. "onmousedown": U.UF.C.closure(function (obj) {
  1526. //防止拖動圖標即打開了桌面應用
  1527. U.MD.D.click(this, obj);
  1528. }, [_gdjgTeacherDeskIconInfo[i]]),
  1529. "onclick": U.UF.C.closure(function (obj) {
  1530. //防止拖動圖標即打開了桌面應用
  1531. U.MD.D.click(this, obj);
  1532. }, [_gdjgTeacherDeskIconInfo[i]])
  1533. }, _frag); //
  1534. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1535. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1536. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1537. }
  1538. } else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1539. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1540. _content = $$("div", {
  1541. className: "U_MD_D_KO",
  1542. "onmousedown": U.UF.C.closure(function (obj) {
  1543. //防止拖動圖標即打開了桌面應用
  1544. U.MD.D.click(this, obj);
  1545. }, [_szherTeacherDeskIconInfo[i]]),
  1546. "onclick": U.UF.C.closure(function (obj) {
  1547. //防止拖動圖標即打開了桌面應用
  1548. U.MD.D.click(this, obj);
  1549. }, [_szherTeacherDeskIconInfo[i]])
  1550. }, _frag); //
  1551. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1552. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1553. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1554. }
  1555. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1556. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1557. _content = $$("div", {
  1558. className: "U_MD_D_KO",
  1559. "onmousedown": U.UF.C.closure(function (obj) {
  1560. //防止拖動圖標即打開了桌面應用
  1561. U.MD.D.click(this, obj);
  1562. }, [_heyuannAdminDeskIconInfo[i]]),
  1563. "onclick": U.UF.C.closure(function (obj) {
  1564. //防止拖動圖標即打開了桌面應用
  1565. U.MD.D.click(this, obj);
  1566. }, [_heyuannAdminDeskIconInfo[i]])
  1567. }, _frag); //
  1568. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1569. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1570. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1571. }
  1572. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1573. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1574. _content = $$("div", {
  1575. className: "U_MD_D_KO",
  1576. "onmousedown": U.UF.C.closure(function (obj) {
  1577. //防止拖動圖標即打開了桌面應用
  1578. U.MD.D.click(this, obj);
  1579. }, [_heyuanTeacherDeskIconInfo[i]]),
  1580. "onclick": U.UF.C.closure(function (obj) {
  1581. //防止拖動圖標即打開了桌面應用
  1582. U.MD.D.click(this, obj);
  1583. }, [_heyuanTeacherDeskIconInfo[i]])
  1584. }, _frag); //
  1585. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1586. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1587. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1588. } //
  1589. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 1) {
  1590. for (i = 0; i < _dseiAdminDeskIconInfo.length; i++) {
  1591. _content = $$("div", {
  1592. className: "U_MD_D_KO",
  1593. "onmousedown": U.UF.C.closure(function (obj) {
  1594. //防止拖動圖標即打開了桌面應用
  1595. U.MD.D.click(this, obj);
  1596. }, [_dseiAdminDeskIconInfo[i]]),
  1597. "onclick": U.UF.C.closure(function (obj) {
  1598. //防止拖動圖標即打開了桌面應用
  1599. U.MD.D.click(this, obj);
  1600. }, [_dseiAdminDeskIconInfo[i]])
  1601. }, _frag); //
  1602. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1603. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiAdminDeskIconInfo[i].style }, _iconcontent);
  1604. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiAdminDeskIconInfo[i].Name }, _iconcontent);
  1605. }
  1606. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 0) {
  1607. for (i = 0; i < _dseiTeacherDeskIconInfo.length; i++) {
  1608. _content = $$("div", {
  1609. className: "U_MD_D_KO",
  1610. "onmousedown": U.UF.C.closure(function (obj) {
  1611. //防止拖動圖標即打開了桌面應用
  1612. U.MD.D.click(this, obj);
  1613. }, [_dseiTeacherDeskIconInfo[i]]),
  1614. "onclick": U.UF.C.closure(function (obj) {
  1615. //防止拖動圖標即打開了桌面應用
  1616. U.MD.D.click(this, obj);
  1617. }, [_dseiTeacherDeskIconInfo[i]])
  1618. }, _frag); //
  1619. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1620. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiTeacherDeskIconInfo[i].style }, _iconcontent);
  1621. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1622. } //
  1623. } else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 1) {
  1624. for (i = 0; i < _chjyjAdminDeskIconInfo.length; i++) {
  1625. _content = $$("div", {
  1626. className: "U_MD_D_KO",
  1627. "onmousedown": U.UF.C.closure(function (obj) {
  1628. //防止拖動圖標即打開了桌面應用
  1629. U.MD.D.click(this, obj);
  1630. }, [_chjyjAdminDeskIconInfo[i]]),
  1631. "onclick": U.UF.C.closure(function (obj) {
  1632. //防止拖動圖標即打開了桌面應用
  1633. U.MD.D.click(this, obj);
  1634. }, [_chjyjAdminDeskIconInfo[i]])
  1635. }, _frag); //
  1636. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1637. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjAdminDeskIconInfo[i].style }, _iconcontent);
  1638. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjAdminDeskIconInfo[i].Name }, _iconcontent);
  1639. }//
  1640. } else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 0) {
  1641. for (i = 0; i < _chjyjTeacherDeskIconInfo.length; i++) {
  1642. _content = $$("div", {
  1643. className: "U_MD_D_KO",
  1644. "onmousedown": U.UF.C.closure(function (obj) {
  1645. //防止拖動圖標即打開了桌面應用
  1646. U.MD.D.click(this, obj);
  1647. }, [_chjyjTeacherDeskIconInfo[i]]),
  1648. "onclick": U.UF.C.closure(function (obj) {
  1649. //防止拖動圖標即打開了桌面應用
  1650. U.MD.D.click(this, obj);
  1651. }, [_chjyjTeacherDeskIconInfo[i]])
  1652. }, _frag); //
  1653. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1654. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjTeacherDeskIconInfo[i].style }, _iconcontent);
  1655. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjTeacherDeskIconInfo[i].Name }, _iconcontent);
  1656. }
  1657. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 1) {
  1658. for (i = 0; i < _szjkyAdminDeskIconInfo.length; i++) {
  1659. _content = $$("div", {
  1660. className: "U_MD_D_KO",
  1661. "onmousedown": U.UF.C.closure(function (obj) {
  1662. //防止拖動圖標即打開了桌面應用
  1663. U.MD.D.click(this, obj);
  1664. }, [_szjkyAdminDeskIconInfo[i]]),
  1665. "onclick": U.UF.C.closure(function (obj) {
  1666. //防止拖動圖標即打開了桌面應用
  1667. U.MD.D.click(this, obj);
  1668. }, [_szjkyAdminDeskIconInfo[i]])
  1669. }, _frag); //
  1670. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1671. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyAdminDeskIconInfo[i].style }, _iconcontent);
  1672. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyAdminDeskIconInfo[i].Name }, _iconcontent);
  1673. }//
  1674. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 0) {
  1675. for (i = 0; i < _szjkyTeacherDeskIconInfo.length; i++) {
  1676. _content = $$("div", {
  1677. className: "U_MD_D_KO",
  1678. "onmousedown": U.UF.C.closure(function (obj) {
  1679. //防止拖動圖標即打開了桌面應用
  1680. U.MD.D.click(this, obj);
  1681. }, [_szjkyTeacherDeskIconInfo[i]]),
  1682. "onclick": U.UF.C.closure(function (obj) {
  1683. //防止拖動圖標即打開了桌面應用
  1684. U.MD.D.click(this, obj);
  1685. }, [_szjkyTeacherDeskIconInfo[i]])
  1686. }, _frag); //
  1687. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1688. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyTeacherDeskIconInfo[i].style }, _iconcontent);
  1689. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyTeacherDeskIconInfo[i].Name }, _iconcontent);
  1690. }
  1691. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1692. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1693. _content = $$("div", {
  1694. className: "U_MD_D_KO",
  1695. "onmousedown": U.UF.C.closure(function (obj) {
  1696. //防止拖動圖標即打開了桌面應用
  1697. U.MD.D.click(this, obj);
  1698. }, [_futianAdminDeskIconInfo[i]]),
  1699. "onclick": U.UF.C.closure(function (obj) {
  1700. //防止拖動圖標即打開了桌面應用
  1701. U.MD.D.click(this, obj);
  1702. }, [_futianAdminDeskIconInfo[i]])
  1703. }, _frag); //
  1704. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1705. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1706. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1707. }
  1708. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1709. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1710. _content = $$("div", {
  1711. className: "U_MD_D_KO",
  1712. "onmousedown": U.UF.C.closure(function (obj) {
  1713. //防止拖動圖標即打開了桌面應用
  1714. U.MD.D.click(this, obj);
  1715. }, [_futianTeacherDeskIconInfo[i]]),
  1716. "onclick": U.UF.C.closure(function (obj) {
  1717. //防止拖動圖標即打開了桌面應用
  1718. U.MD.D.click(this, obj);
  1719. }, [_futianTeacherDeskIconInfo[i]])
  1720. }, _frag); //
  1721. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1722. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1723. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1724. }
  1725. } else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1726. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1727. _content = $$("div", {
  1728. className: "U_MD_D_KO",
  1729. "onmousedown": U.UF.C.closure(function (obj) {
  1730. //防止拖動圖標即打開了桌面應用
  1731. U.MD.D.click(this, obj);
  1732. }, [_MingdeTeacherDeskIcon[i]]),
  1733. "onclick": U.UF.C.closure(function (obj) {
  1734. //防止拖動圖標即打開了桌面應用
  1735. U.MD.D.click(this, obj);
  1736. }, [_MingdeTeacherDeskIcon[i]])
  1737. }, _frag); //
  1738. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1739. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1740. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1741. }
  1742. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1743. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1744. _content = $$("div", {
  1745. className: "U_MD_D_KO",
  1746. "onmousedown": U.UF.C.closure(function (obj) {
  1747. //防止拖動圖標即打開了桌面應用
  1748. U.MD.D.click(this, obj);
  1749. }, [_lhsAdminDesktopIconInfo[i]]),
  1750. "onclick": U.UF.C.closure(function (obj) {
  1751. //防止拖動圖標即打開了桌面應用
  1752. U.MD.D.click(this, obj);
  1753. }, [_lhsAdminDesktopIconInfo[i]])
  1754. }, _frag); //
  1755. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1756. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1757. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1758. }
  1759. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1760. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1761. _content = $$("div", {
  1762. className: "U_MD_D_KO",
  1763. "onmousedown": U.UF.C.closure(function (obj) {
  1764. //防止拖動圖標即打開了桌面應用
  1765. U.MD.D.click(this, obj);
  1766. }, [_lhsteacherDesktopIconInfo[i]]),
  1767. "onclick": U.UF.C.closure(function (obj) {
  1768. //防止拖動圖標即打開了桌面應用
  1769. U.MD.D.click(this, obj);
  1770. }, [_lhsteacherDesktopIconInfo[i]])
  1771. }, _frag); //
  1772. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1773. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1774. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1775. }
  1776. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1777. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1778. _content = $$("div", {
  1779. className: "U_MD_D_KO",
  1780. "onmousedown": U.UF.C.closure(function (obj) {
  1781. //防止拖動圖標即打開了桌面應用
  1782. U.MD.D.click(this, obj);
  1783. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1784. "onclick": U.UF.C.closure(function (obj) {
  1785. //防止拖動圖標即打開了桌面應用
  1786. U.MD.D.click(this, obj);
  1787. }, [_zhoujiateacherDesktopIconInfo[i]])
  1788. }, _frag); //
  1789. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1790. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1791. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1792. }
  1793. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1794. for (i = 0; i < _hanDeskIcon.length; i++) {
  1795. _content = $$("div", {
  1796. className: "U_MD_D_KO",
  1797. "onmousedown": U.UF.C.closure(function (obj) {
  1798. //防止拖動圖標即打開了桌面應用
  1799. U.MD.D.click(this, obj);
  1800. }, [_hanDeskIcon[i]]),
  1801. "onclick": U.UF.C.closure(function (obj) {
  1802. //防止拖動圖標即打開了桌面應用
  1803. U.MD.D.click(this, obj);
  1804. }, [_hanDeskIcon[i]])
  1805. }, _frag); //
  1806. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1807. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1808. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1809. }
  1810. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1811. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1812. _content = $$("div", {
  1813. className: "U_MD_D_KO",
  1814. "onmousedown": U.UF.C.closure(function (obj) {
  1815. //防止拖動圖標即打開了桌面應用
  1816. U.MD.D.click(this, obj);
  1817. }, [_orgStemDeskIcon[i]]),
  1818. "onclick": U.UF.C.closure(function (obj) {
  1819. //防止拖動圖標即打開了桌面應用
  1820. U.MD.D.click(this, obj);
  1821. }, [_orgStemDeskIcon[i]])
  1822. }, _frag); //
  1823. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1824. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1825. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1826. }
  1827. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1828. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1829. _content = $$("div", {
  1830. className: "U_MD_D_KO",
  1831. "onmousedown": U.UF.C.closure(function (obj) {
  1832. //防止拖動圖標即打開了桌面應用
  1833. U.MD.D.click(this, obj);
  1834. }, [_szulsDeskIcon[i]]),
  1835. "onclick": U.UF.C.closure(function (obj) {
  1836. //防止拖動圖標即打開了桌面應用
  1837. U.MD.D.click(this, obj);
  1838. }, [_szulsDeskIcon[i]])
  1839. }, _frag); //
  1840. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1841. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1842. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1843. }
  1844. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1845. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1846. _content = $$("div", {
  1847. className: "U_MD_D_KO",
  1848. "onmousedown": U.UF.C.closure(function (obj) {
  1849. //防止拖動圖標即打開了桌面應用
  1850. U.MD.D.click(this, obj);
  1851. }, [_orgDesktopIconInfo[i]]),
  1852. "onclick": U.UF.C.closure(function (obj) {
  1853. //防止拖動圖標即打開了桌面應用
  1854. U.MD.D.click(this, obj);
  1855. }, [_orgDesktopIconInfo[i]])
  1856. }, _frag); //
  1857. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1858. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1859. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1860. }
  1861. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1862. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1863. _content = $$("div", {
  1864. className: "U_MD_D_KO",
  1865. "onmousedown": U.UF.C.closure(function (obj) {
  1866. //防止拖動圖標即打開了桌面應用
  1867. U.MD.D.click(this, obj);
  1868. }, [_schoolDesktopIconInfo[i]]),
  1869. "onclick": U.UF.C.closure(function (obj) {
  1870. //防止拖動圖標即打開了桌面應用
  1871. U.MD.D.click(this, obj);
  1872. }, [_schoolDesktopIconInfo[i]])
  1873. }, _frag); //
  1874. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1875. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1876. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1877. }
  1878. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1879. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1880. _content = $$("div", {
  1881. className: "U_MD_D_KO",
  1882. "onmousedown": U.UF.C.closure(function (obj) {
  1883. //防止拖動圖標即打開了桌面應用
  1884. U.MD.D.click(this, obj);
  1885. }, [_GMteacherDesktopIconInfo[i]]),
  1886. "onclick": U.UF.C.closure(function (obj) {
  1887. //防止拖動圖標即打開了桌面應用
  1888. U.MD.D.click(this, obj);
  1889. }, [_GMteacherDesktopIconInfo[i]])
  1890. }, _frag); //
  1891. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1892. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1893. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1894. }
  1895. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1896. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1897. _content = $$("div", {
  1898. className: "U_MD_D_KO",
  1899. "onmousedown": U.UF.C.closure(function (obj) {
  1900. //防止拖動圖標即打開了桌面應用
  1901. U.MD.D.click(this, obj);
  1902. }, [_SONGteacherDesktopIconInfo[i]]),
  1903. "onclick": U.UF.C.closure(function (obj) {
  1904. //防止拖動圖標即打開了桌面應用
  1905. U.MD.D.click(this, obj);
  1906. }, [_SONGteacherDesktopIconInfo[i]])
  1907. }, _frag); //
  1908. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1909. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1910. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1911. }
  1912. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1913. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1914. _content = $$("div", {
  1915. className: "U_MD_D_KO",
  1916. "onmousedown": U.UF.C.closure(function (obj) {
  1917. //防止拖動圖標即打開了桌面應用
  1918. U.MD.D.click(this, obj);
  1919. }, [_GMstudentDesktopIconInfo[i]]),
  1920. "onclick": U.UF.C.closure(function (obj) {
  1921. //防止拖動圖標即打開了桌面應用
  1922. U.MD.D.click(this, obj);
  1923. }, [_GMstudentDesktopIconInfo[i]])
  1924. }, _frag); //
  1925. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1926. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1927. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1928. }
  1929. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1930. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1931. _content = $$("div", {
  1932. className: "U_MD_D_KO",
  1933. "onmousedown": U.UF.C.closure(function (obj) {
  1934. //防止拖動圖標即打開了桌面應用
  1935. U.MD.D.click(this, obj);
  1936. }, [_tcTeacherDeskIconInfo[i]]),
  1937. "onclick": U.UF.C.closure(function (obj) {
  1938. //防止拖動圖標即打開了桌面應用
  1939. U.MD.D.click(this, obj);
  1940. }, [_tcTeacherDeskIconInfo[i]])
  1941. }, _frag); //
  1942. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1943. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1944. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1945. }
  1946. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1947. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1948. _content = $$("div", {
  1949. className: "U_MD_D_KO",
  1950. "onmousedown": U.UF.C.closure(function (obj) {
  1951. //防止拖動圖標即打開了桌面應用
  1952. U.MD.D.click(this, obj);
  1953. }, [_tcOrganizerDeskIconInfo[i]]),
  1954. "onclick": U.UF.C.closure(function (obj) {
  1955. //防止拖動圖標即打開了桌面應用
  1956. U.MD.D.click(this, obj);
  1957. }, [_tcOrganizerDeskIconInfo[i]])
  1958. }, _frag); //
  1959. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1960. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1961. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1962. }
  1963. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1964. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1965. _content = $$("div", {
  1966. className: "U_MD_D_KO",
  1967. "onmousedown": U.UF.C.closure(function (obj) {
  1968. //防止拖動圖標即打開了桌面應用
  1969. U.MD.D.click(this, obj);
  1970. }, [_szscTeacherDeskIconInfo[i]]),
  1971. "onclick": U.UF.C.closure(function (obj) {
  1972. //防止拖動圖標即打開了桌面應用
  1973. U.MD.D.click(this, obj);
  1974. }, [_szscTeacherDeskIconInfo[i]])
  1975. }, _frag); //
  1976. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1977. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1978. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1979. }
  1980. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1981. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1982. _content = $$("div", {
  1983. className: "U_MD_D_KO",
  1984. "onmousedown": U.UF.C.closure(function (obj) {
  1985. //防止拖動圖標即打開了桌面應用
  1986. U.MD.D.click(this, obj);
  1987. }, [_szscOrganizerDeskIconInfo[i]]),
  1988. "onclick": U.UF.C.closure(function (obj) {
  1989. //防止拖動圖標即打開了桌面應用
  1990. U.MD.D.click(this, obj);
  1991. }, [_szscOrganizerDeskIconInfo[i]])
  1992. }, _frag); //
  1993. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1994. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1995. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1996. }
  1997. } else {
  1998. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1999. _content = $$("div", {
  2000. className: "U_MD_D_KO",
  2001. "onmousedown": U.UF.C.closure(function (obj) {
  2002. //防止拖動圖標即打開了桌面應用
  2003. U.MD.D.click(this, obj);
  2004. }, [_teacherDesktopIconInfo[i]]),
  2005. "onclick": U.UF.C.closure(function (obj) {
  2006. //防止拖動圖標即打開了桌面應用
  2007. U.MD.D.click(this, obj);
  2008. }, [_teacherDesktopIconInfo[i]])
  2009. }, _frag); //
  2010. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  2011. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  2012. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  2013. }
  2014. }
  2015. } else {
  2016. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  2017. _content = $$("div", {
  2018. className: "U_MD_D_KO",
  2019. style: { 'width': '124px', 'height': '145px' },
  2020. "onmousedown": U.UF.C.closure(function (obj) {
  2021. //防止拖動圖標即打開了桌面應用
  2022. U.MD.D.click(this, obj);
  2023. }, [_easyDesktopIconInfo[i]]),
  2024. "onclick": U.UF.C.closure(function (obj) {
  2025. //防止拖動圖標即打開了桌面應用
  2026. U.MD.D.click(this, obj);
  2027. }, [_easyDesktopIconInfo[i]])
  2028. }, _frag); //
  2029. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  2030. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  2031. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  2032. }
  2033. }
  2034. if (type == 1) {
  2035. //加載好後給圖標定位
  2036. U.MD.D.iconPostion($(_frag).Child());
  2037. } else {
  2038. //加載好後給圖標定位
  2039. U.MD.D.iconPostion2($(_frag).Child());
  2040. }
  2041. //把圖標加載到頁面
  2042. el.appendChild(_frag);
  2043. }
  2044. /**
  2045. * 顯示任務欄
  2046. *
  2047. * @param {element} 桌面元素
  2048. */
  2049. U.MD.D.I.displayTaskbar = function (el) {
  2050. //判斷是否需要形式任務欄,由於用了mouseover事件會冒泡響應多次,這裏做了過濾
  2051. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  2052. //任務欄位置變化
  2053. U.selectEl(el).css({ "bottom": "0px" });
  2054. //桌面位置變話
  2055. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  2056. }
  2057. }
  2058. //#region 桌面圖標拖動邏輯
  2059. /**
  2060. * 桌面排列圖標
  2061. *
  2062. * @param {element} 桌面元素
  2063. * @param {object} 上下相距的距離
  2064. * @param {object} 左右相距的距離
  2065. * @return {object} 命名空間
  2066. */
  2067. U.MD.D.iconPostion = function (childs, top, left) {
  2068. var i; //用於循環處理
  2069. top = top || 15; //如果沒有設置元素的間距處理默認上間距為15
  2070. left = left || 20; //如果沒有設置元素的間距處理默認左間距為15
  2071. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  2072. for (i = 0; i < childs.length; i++) {
  2073. //如果豎排top超過了範圍處理
  2074. if (top + 95 > US.height - 10) {
  2075. //left超過了頁面範圍處理,則向上重疊打印處理
  2076. if ((left + 180) > US.width) {
  2077. top -= 110;
  2078. left -= 90;
  2079. }
  2080. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  2081. else {
  2082. left += 90;
  2083. top = 15;
  2084. };
  2085. }
  2086. //給圖標的位置賦值
  2087. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  2088. if (i < childs.length - 1) {
  2089. //頁面圖標每次向下加95
  2090. top += 95;
  2091. }
  2092. }
  2093. //返回最後調用的圖標的位置
  2094. return [top, left];
  2095. }
  2096. /**
  2097. * 桌面排列圖標
  2098. *
  2099. * @param {element} 桌面元素
  2100. * @param {object} 上下相距的距離
  2101. * @param {object} 左右相距的距離
  2102. * @return {object} 命名空間
  2103. */
  2104. U.MD.D.iconPostion2 = function (childs, top, left) {
  2105. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用於循環處理
  2106. top = top || 70; //如果沒有設置元素的間距處理默認上間距為15
  2107. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果沒有設置元素的間距處理默認左間距為15
  2108. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  2109. for (i = 0; i < childs.length; i++) {
  2110. //如果豎排top超過了範圍處理
  2111. if (left + 150 > US.width - 10) {
  2112. //left超過了頁面範圍處理,則向上重疊打印處理
  2113. if ((top + 180) > US.Height) {
  2114. top -= 150;
  2115. left -= 150;
  2116. }
  2117. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  2118. else {
  2119. top += 150;
  2120. left = ol;
  2121. };
  2122. }
  2123. //給圖標的位置賦值
  2124. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  2125. if (i < childs.length - 1) {
  2126. //頁面圖標每次向下加95
  2127. left += 150;
  2128. }
  2129. }
  2130. //返回最後調用的圖標的位置
  2131. return [top, left];
  2132. }
  2133. /**
  2134. * 桌面點擊事件邏輯
  2135. *
  2136. * @param {element} 桌面元素
  2137. * @param {object} 上下相距的距離
  2138. * @param {object} 左右相距的距離
  2139. * @return {object} 命名空間
  2140. */
  2141. U.MD.D.click = function (el, obj) {
  2142. var _buttonnumber = event.button; //點擊的按鈕的事件值
  2143. var _userinfo = US.userInfo;
  2144. U.UF.EV.stopBubble(); //阻止向上冒泡
  2145. //onmousedown 包含了左鍵和右鍵 這裏大於2是為了兼容 所有瀏覽器的右鍵處理
  2146. if (_buttonnumber < 2) {
  2147. //如果是click事件的處理
  2148. if (event.type == "click") {
  2149. //如果元素在mousemove事件中沒有移動則出發click事件
  2150. if (!U.MD.D.I.IsDrag) {
  2151. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2152. U.alert("請先登錄您的賬號!");
  2153. setTimeout(() => {
  2154. U.MD.U.L.login();
  2155. }, 2000);
  2156. } else {
  2157. //打開應用處理
  2158. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  2159. }
  2160. }
  2161. }
  2162. //如果是mouse事件的處理
  2163. else {
  2164. if (US.Config.type == '1') {
  2165. //拖動處理,添加拖動和拖動結束事件
  2166. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  2167. }
  2168. }
  2169. U.MD.D.I.IsDrag = false;
  2170. }
  2171. }
  2172. /**
  2173. * 拖動的處理
  2174. *
  2175. */
  2176. U.MD.D.iconMove = function () {
  2177. //如果當前位置點擊初始化的位置出現了變化,則設置是否拖動的屬性 U.MD.D.I.IsDrag為true
  2178. U.MD.D.I.IsDrag = true;
  2179. }
  2180. /**
  2181. * 拖動結束後,這裏是定位處理,以網狀的形式定位
  2182. *
  2183. * @param {element} 拖動的元素
  2184. * @return {object} 命名空間
  2185. */
  2186. U.MD.D.iconUp = function (el) {
  2187. var _top = 15,
  2188. _left = 20,
  2189. _margin,
  2190. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的圖標
  2191. _positioninfo = U.UF.EL.getElementInfo(el); //獲取拖動結束的元素的位置
  2192. if (_positioninfo["OT"] > 15) {
  2193. //網狀的形式定位,如果差超過了55,那麼向下定位,否則向上定位
  2194. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  2195. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  2196. }
  2197. if (_positioninfo["OL"] > 20) {
  2198. //網狀的形式定位,如果差超過了90,那麼向右定位,否則向左定位
  2199. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  2200. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  2201. }
  2202. //while循環判斷麼一個重疊的元素
  2203. do {
  2204. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //給重疊的元素向下定位
  2205. _top = _positioninfo[0] + 95; //得到定位後的top
  2206. _left = _positioninfo[1]; //得到定位後的left
  2207. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  2208. }
  2209. /**
  2210. * 判斷拖動後圖標是否重疊
  2211. *
  2212. * @param {element} 拖動的元素
  2213. * @param {element} 桌面所有的元素
  2214. * @param {array} 拖動元素的位置
  2215. ----------[0] 上 top
  2216. ----------[1] 左 left
  2217. * @return {object} 命名空間
  2218. */
  2219. U.MD.D.isOverlap = function (el, childs, postionarray) {
  2220. //循環所有的圖標
  2221. for (var i = 0; i < childs.length; i++) {
  2222. //判斷有沒有和該圖標誒子重疊的元素
  2223. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  2224. return childs[i]; //如果有返回
  2225. }
  2226. }
  2227. }
  2228. //#endregion
  2229. //#endregion
  2230. //#region 桌面應用
  2231. /**
  2232. * 打開應用
  2233. *
  2234. * @param {string} 類型
  2235. -----------------Disk 網盤系統
  2236. -----------------PDisk 學習系統網盤
  2237. -----------------Poto 圖片
  2238. -----------------Video 視頻
  2239. -----------------Music 音樂
  2240. -----------------Word word
  2241. -----------------Excel excel
  2242. -----------------Txt 記事本
  2243. -----------------PB 學習系統
  2244. -----------------Blog 朋友圈系統
  2245. -----------------FTP ftp系統
  2246. -----------------Group 好友群
  2247. -----------------SY 首頁系統
  2248. -----------------Set 個人設置
  2249. -----------------XSet 系統設置
  2250. -----------------App 我們所有的app
  2251. -----------------BC c.1473.cn 平臺
  2252. -----------------CWeb d.1473.cn 變成平臺
  2253. -----------------其他的外聯系統 我們統一用iframe打開
  2254. * @param {array} 類型
  2255. 如果第一個參數為"disk",則第二個參數為object,裏面包含了用戶id和目錄id{userid:"",directoryid:""}
  2256. 如果第一個參數為"word"或者"excel","txt",則第二個參數為文件信息fileinfo。
  2257. 如果第一個參數為"blog"或者"PDisk"。建議刪除。
  2258. 如果第一個參數為其他,則無第二個參數
  2259. * @returns {array}
  2260. */
  2261. window.addEventListener('message', function (e) { // 監聽 message 事件
  2262. // alert(e.data.type);
  2263. if (e.data.screenType && e.data.screenType == "2") { //課程管理傳入
  2264. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  2265. //3是展示全部階段 2學生 1老師 4專家
  2266. } else if (e.data.screenType && e.data.screenType == "2s") { //課程管理傳入
  2267. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  2268. //3是展示全部階段 2學生 1老師 4專家
  2269. } else if (e.data.screenType && e.data.screenType == "2studio") { //課程管理傳入
  2270. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  2271. //3是展示全部階段 2學生 1老師 4專家
  2272. } else if (e.data.screenType && e.data.screenType == "3") { //課程管理傳入
  2273. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  2274. } else if (e.data.screenType && e.data.screenType == "3NT") { //課程管理傳入
  2275. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  2276. } else if (e.data.screenType && e.data.screenType == "3s") { //課程管理傳入
  2277. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  2278. } else if (e.data.screenType && e.data.screenType == "3studio") { //課程管理傳入
  2279. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  2280. } else if (e.data.screenType && e.data.screenType == "3s2") { //課程管理傳入
  2281. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  2282. } else if (e.data.screenType && e.data.screenType == "2gm") { //課程管理傳入
  2283. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  2284. //3是展示全部階段 2學生 1老師 4專家
  2285. } else if (e.data.screenType && e.data.screenType == "3gm") { //課程管理傳入
  2286. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  2287. } else if (e.data.close && e.data.close == "1") { //更新用戶信息
  2288. U.MD.D.I.selectUser();
  2289. } else if (e.data.allScreen && e.data.allScreen == "1") {
  2290. var _formel = document.getElementById("study");
  2291. U.UF.F.windowZooming(_formel);
  2292. } else if (e.data.allScreen && e.data.allScreen == "2") {
  2293. var _formel = document.getElementById("studyDetail");
  2294. U.UF.F.windowZooming(_formel);
  2295. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  2296. var _formel = document.getElementById("studyDetail");
  2297. U.UF.F.windowZooming(_formel);
  2298. } else if (e.data.allScreen && e.data.allScreen == "3") {
  2299. var _formel = document.getElementById("studentStudy");
  2300. U.UF.F.windowZooming(_formel);
  2301. } else if (e.data.allScreen && e.data.allScreen == "6") {
  2302. // var _formel = document.getElementById("study");
  2303. //如果最大化了,那麼就把他縮小
  2304. // if (_formel.ismaximize) {
  2305. // return;
  2306. // }
  2307. // U.UF.F.windowZooming(_formel);
  2308. // U.UF.F.topWindow(_formel);
  2309. } else if (e.data.allScreen && e.data.allScreen == "4") {
  2310. // var _formel = document.getElementById("studyDetail");
  2311. //如果最大化了,那麼就把他縮小
  2312. // if (_formel.ismaximize) {
  2313. // return;
  2314. // }
  2315. // U.UF.F.windowZooming(_formel);
  2316. // U.UF.F.topWindow(_formel);
  2317. } else if (e.data.allScreen && e.data.allScreen == "5") {
  2318. // var _formel = document.getElementById("studentStudy");
  2319. // if (_formel.ismaximize) {
  2320. // return;
  2321. // }
  2322. // U.UF.F.windowZooming(_formel);
  2323. // U.UF.F.topWindow(_formel);
  2324. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  2325. var _formel = document.getElementById("study");
  2326. // if (_formel.ismaximize) {
  2327. // return;
  2328. // }
  2329. // U.UF.F.windowZooming(_formel);
  2330. U.UF.F.topWindow(_formel);
  2331. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  2332. var _formel = document.getElementById("studentIndex");
  2333. U.UF.F.windowZooming(_formel);
  2334. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  2335. var _formel = document.getElementById("studyDetailS");
  2336. U.UF.F.windowZooming(_formel);
  2337. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  2338. var _formel = document.getElementById("studioIndex");
  2339. U.UF.F.windowZooming(_formel);
  2340. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  2341. var _formel = document.getElementById("studyDetailStudio");
  2342. U.UF.F.windowZooming(_formel);
  2343. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  2344. var _formel = document.getElementById("studyDetailStudio");
  2345. U.UF.F.windowZooming(_formel);
  2346. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  2347. var _formel = document.getElementById("studyDetailNT");
  2348. U.UF.F.windowZooming(_formel);
  2349. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  2350. var _formel = document.getElementById("studyDetailS");
  2351. U.UF.F.windowZooming(_formel);
  2352. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  2353. var _formel = document.getElementById("studyDetailS");
  2354. U.UF.F.topWindow(_formel);
  2355. } else if (e.data.tools && e.data.tools == "1") {
  2356. // U.MD.D.I.openApplication("whiteboard")
  2357. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2358. } else if (e.data.tools && e.data.tools == "2") {
  2359. U.MD.D.I.openApplication("note")
  2360. } else if (e.data.tools && e.data.tools == "3") {
  2361. // U.MD.D.I.openApplication("mind")
  2362. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2363. } else if (e.data.tools && e.data.tools == "4") {
  2364. U.MD.D.I.openApplication("investigation")
  2365. } else if (e.data.tools && e.data.tools == "6") {
  2366. // U.MD.D.I.openApplication("doc")
  2367. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2368. } else if (e.data.tools && e.data.tools == "7") {
  2369. // U.MD.D.I.openApplication("mindNetwork")
  2370. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2371. } else if (e.data.tools && e.data.tools == "8") {
  2372. U.MD.D.I.openApplication("library")
  2373. } else if (e.data.tools && e.data.tools == "17") {
  2374. U.MD.D.I.openApplication("stuLibrary")
  2375. } else if (e.data.tools && e.data.tools == "18") {
  2376. U.MD.D.I.openApplication("train")
  2377. } else if (e.data.tools && e.data.tools == "21") {
  2378. U.MD.D.I.openApplication("program")
  2379. } else if (e.data.tools && e.data.tools == "22") {
  2380. U.MD.D.I.openApplication("AIprogram2")
  2381. } else if (e.data.tools && e.data.tools == "23") {
  2382. U.MD.D.I.openApplication("Pythonprogram")
  2383. } else if (e.data.tools && e.data.tools == "24") {
  2384. U.MD.D.I.openApplication("AIprogram")
  2385. } else if (e.data.tools && e.data.tools == "25") {
  2386. U.MD.D.I.openApplication("sys")
  2387. } else if (e.data.tools && e.data.tools == "26") {
  2388. // U.MD.D.I.openApplication("courseDesign")
  2389. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2390. } else if (e.data.tools && e.data.tools == "31") {
  2391. U.MD.D.I.openApplication("netWorkPanel")
  2392. } else if (e.data.tools && e.data.tools == "32") {
  2393. U.MD.D.I.openApplication("codeEdit")
  2394. } else if (e.data.tools && e.data.tools == "57") {
  2395. U.MD.D.I.openApplication("CocoPi")
  2396. } else if (e.data.tools && e.data.tools == "63") {
  2397. U.MD.D.I.openApplication("Wood")
  2398. } else if (e.data.tools && e.data.tools == "58") {
  2399. U.MD.D.I.openApplication("car")
  2400. } else if (e.data.tools && e.data.tools == "59") {
  2401. U.MD.D.I.openApplication("lineSearch")
  2402. } else if (e.data.tools && e.data.tools == "60") {
  2403. U.MD.D.I.openApplication("deepLearning")
  2404. } else if (e.data.tools && e.data.tools == "61") {
  2405. U.MD.D.I.openApplication("allHistory")
  2406. } else if (e.data.tools && e.data.tools == "28") {
  2407. U.MD.D.I.openApplication("translation")
  2408. } else if (e.data.tools && e.data.tools == "37") {
  2409. U.MD.D.I.openApplication("mohe")
  2410. } else if (e.data.tools && e.data.tools == "38") {
  2411. U.MD.D.I.openApplication("24game")
  2412. } else if (e.data.tools && e.data.tools == "39") {
  2413. U.MD.D.I.openApplication("GeoGebra")
  2414. } else if (e.data.tools && e.data.tools == "43") {
  2415. U.MD.D.I.openApplication("studentEvaluate")
  2416. } else if (e.data.tools && e.data.tools == "44") {
  2417. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  2418. } else if (e.data.tools && e.data.tools == "46") {
  2419. U.MD.D.I.openApplication("project")
  2420. } else if (e.data.tools && e.data.tools == "1s") {
  2421. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2422. } else if (e.data.tools && e.data.tools == "3s") {
  2423. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2424. } else if (e.data.tools && e.data.tools == "6s") {
  2425. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2426. } else if (e.data.tools && e.data.tools == "1studio") {
  2427. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2428. } else if (e.data.tools && e.data.tools == "3studio") {
  2429. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2430. } else if (e.data.tools && e.data.tools == "6studio") {
  2431. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2432. } else if (e.data.tools && e.data.tools == "3y") {
  2433. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2434. } else if (e.data.tools && e.data.tools == "1y") {
  2435. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2436. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  2437. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  2438. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  2439. U.MD.D.I.openApplication("AIAnalyse")
  2440. } else if (e.data.tools && e.data.tools == "1teacher") {
  2441. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2442. } else if (e.data.tools && e.data.tools == "3teacher") {
  2443. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2444. } else if (e.data.tools && e.data.tools == "7teacher") {
  2445. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2446. } else if (e.data.tools && e.data.tools == "1teacherE") {
  2447. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2448. } else if (e.data.tools && e.data.tools == "3teacherE") {
  2449. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2450. } else if (e.data.tools && e.data.tools == "1E") {
  2451. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2452. } else if (e.data.tools && e.data.tools == "3E") {
  2453. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2454. } else if (e.data.tools && e.data.tools == "57y") {
  2455. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2456. } else if (e.data.tools && e.data.tools == "57u") {
  2457. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2458. } else if (e.data.tools && e.data.tools == "57teacher") {
  2459. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2460. } else if (e.data.tools && e.data.tools == "64") {
  2461. U.MD.D.I.openApplication("AIChat")
  2462. } else if (e.data.tools && e.data.tools == "66") {
  2463. U.MD.D.I.openApplication("formulaEdi")
  2464. } else if (e.data.tools && e.data.tools == "67") {
  2465. U.MD.D.I.openApplication("molStr")
  2466. } else if (e.data.tools && e.data.tools == "68") {
  2467. U.MD.D.I.openApplication("timeAxis")
  2468. } else if (e.data.tools && e.data.tools == "openCourse") {
  2469. let _data = {
  2470. typea: e.data.typea || '',
  2471. typeb: e.data.typeb || '',
  2472. typed: e.data.typed || '',
  2473. }
  2474. U.MD.D.I.openInApplication("index", _data)
  2475. } else if (e.data.tools && e.data.tools == "openDataClass") {
  2476. let _data = {
  2477. classid: e.data.classid || '',
  2478. }
  2479. U.MD.D.I.openInApplication("dataClass", _data)
  2480. } else if (e.data.tools && e.data.tools == "opencCscl") {
  2481. let _data = {
  2482. cid: e.data.cid || '',
  2483. gid: e.data.gid || '',
  2484. }
  2485. U.MD.D.I.openInApplication("opencCscl", _data)
  2486. }
  2487. });
  2488. U.MD.D.I.selectUser = function () {
  2489. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  2490. if (res.value[0].length > 0) {
  2491. US.userInfo = res.value[0][0];
  2492. $(".userName")[0].innerHTML = US.userInfo.username;
  2493. }
  2494. }, [], { "type": "GET", "withCredentials": true });
  2495. }
  2496. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  2497. var _userinfo = US.userInfo, //登錄用戶信息
  2498. _userid = US.userInfo.userid, //登錄用戶id
  2499. _oid = _userinfo.organizeid,
  2500. _type = US.userInfo.type,
  2501. _org = US.userInfo.org,
  2502. _role = US.userInfo.role,
  2503. _classId = US.userInfo.classid;
  2504. if (_type == 4) {
  2505. tType = 4
  2506. }
  2507. switch (str) {
  2508. case "studyDetailNT": //無終端模式
  2509. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2510. setTimeout(() => {
  2511. U.MD.U.L.login();
  2512. }, 2000);
  2513. } else {
  2514. _formdiv = new U.UF.UI.form(
  2515. "課程詳情",
  2516. $$("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 }), {
  2517. "id": "studyDetailNT",
  2518. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2519. "onresize": function () { }
  2520. }, {
  2521. closecallback: function () { }
  2522. }, { "style": { "height": "36px" } }).form; //創建窗體
  2523. _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); } }
  2524. break;
  2525. }
  2526. case "studyDetail":
  2527. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2528. setTimeout(() => {
  2529. U.MD.U.L.login();
  2530. }, 2000);
  2531. } else {
  2532. _formdiv = new U.UF.UI.form(
  2533. "課程詳情",
  2534. $$("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 }), {
  2535. "id": "studyDetail",
  2536. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2537. "onresize": function () { }
  2538. }, {
  2539. closecallback: function () { }
  2540. }, { "style": { "height": "36px" } }).form; //創建窗體
  2541. _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); } }
  2542. break;
  2543. }
  2544. case "studyDetailS":
  2545. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2546. setTimeout(() => {
  2547. U.MD.U.L.login();
  2548. }, 2000);
  2549. } else {
  2550. _formdiv = new U.UF.UI.form(
  2551. "項目詳情",
  2552. $$("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 }), {
  2553. "id": "studyDetailS",
  2554. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2555. "onresize": function () { }
  2556. }, {
  2557. closecallback: function () { }
  2558. }, { "style": { "height": "36px" } }).form; //創建窗體
  2559. _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); } }
  2560. break;
  2561. }
  2562. case "studyDetailStudio":
  2563. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2564. setTimeout(() => {
  2565. U.MD.U.L.login();
  2566. }, 2000);
  2567. } else {
  2568. _formdiv = new U.UF.UI.form(
  2569. "工作詳情",
  2570. $$("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 }), {
  2571. "id": "studyDetailStudio",
  2572. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2573. "onresize": function () { }
  2574. }, {
  2575. closecallback: function () { }
  2576. }, { "style": { "height": "36px" } }).form; //創建窗體
  2577. _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); } }
  2578. break;
  2579. }
  2580. case "studyDetailS5":
  2581. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2582. setTimeout(() => {
  2583. U.MD.U.L.login();
  2584. }, 2000);
  2585. } else {
  2586. _formdiv = new U.UF.UI.form(
  2587. "項目詳情",
  2588. $$("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 }), {
  2589. "id": "studyDetailS",
  2590. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2591. "onresize": function () { }
  2592. }, {
  2593. closecallback: function () { }
  2594. }, { "style": { "height": "36px" } }).form; //創建窗體
  2595. _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); } }
  2596. break;
  2597. }
  2598. case "studyDetailGM":
  2599. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2600. setTimeout(() => {
  2601. U.MD.U.L.login();
  2602. }, 2000);
  2603. } else {
  2604. _formdiv = new U.UF.UI.form(
  2605. "課程詳情",
  2606. $$("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 }), {
  2607. "id": "studyDetail",
  2608. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2609. "onresize": function () { }
  2610. }, {
  2611. closecallback: function () { }
  2612. }, { "style": { "height": "36px" } }).form; //創建窗體
  2613. _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); } }
  2614. break;
  2615. }
  2616. case "hanUrl":
  2617. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2618. setTimeout(() => {
  2619. U.MD.U.L.login();
  2620. }, 2000);
  2621. } else {
  2622. _formdiv = new U.UF.UI.form(
  2623. "漢字宮",
  2624. $$("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" }), {
  2625. "id": "hanUrl",
  2626. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2627. "onresize": function () { }
  2628. }, {
  2629. closecallback: function () { }
  2630. }, { "style": { "height": "36px" } }).form; //創建窗體
  2631. _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); } }
  2632. break;
  2633. }
  2634. case "index":
  2635. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2636. setTimeout(() => {
  2637. U.MD.U.L.login();
  2638. }, 2000);
  2639. } else {
  2640. _formdiv = new U.UF.UI.form(
  2641. "課程中心",
  2642. $$("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 }), {
  2643. "id": "study",
  2644. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2645. "onresize": function () { }
  2646. }, {
  2647. closecallback: function () { }
  2648. }, { "style": { "height": "36px" } }).form; //創建窗體
  2649. _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); } }
  2650. break;
  2651. }
  2652. case "dataClass":
  2653. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2654. setTimeout(() => {
  2655. U.MD.U.L.login();
  2656. }, 2000);
  2657. } else {
  2658. _formdiv = new U.UF.UI.form(
  2659. "數據報告",
  2660. $$("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 }), {
  2661. "id": "dataClass",
  2662. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2663. "onresize": function () { }
  2664. }, {
  2665. closecallback: function () { }
  2666. }, { "style": { "height": "36px" } }).form; //創建窗體
  2667. _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); } }
  2668. break;
  2669. }
  2670. case "opencCscl":
  2671. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2672. setTimeout(() => {
  2673. U.MD.U.L.login();
  2674. }, 2000);
  2675. } else {
  2676. _formdiv = new U.UF.UI.form(
  2677. "協同建構",
  2678. $$("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.cn?cid=" + data.cid + "&gid=" + data.gid }), {
  2679. "id": "futureClass",
  2680. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2681. "onresize": function () { }
  2682. }, {
  2683. closecallback: function () { }
  2684. }, { "style": { "height": "36px" } }).form; //創建窗體
  2685. _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); } }
  2686. break;
  2687. }
  2688. }
  2689. }
  2690. U.MD.D.I.openApplication = function (str, obj, info) {
  2691. obj = obj || {};
  2692. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  2693. _formdiv, //創建任務欄時同時彈出的窗體元素。
  2694. _userinfo = US.userInfo, //登錄用戶信息
  2695. _userid = obj.userid || US.userInfo.userid, //登錄用戶id
  2696. _oid = obj.organizeid || _userinfo.organizeid,
  2697. _type = US.userInfo.type,
  2698. _org = US.userInfo.org,
  2699. _role = US.userInfo.role,
  2700. _classId = US.userInfo.classid,
  2701. _TscreenType = 1
  2702. _screenType = 2,
  2703. _SscreenType = 3;
  2704. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2705. return;
  2706. }
  2707. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2708. switch (str) {
  2709. case "studnetProject": //好友打開
  2710. _formdiv = new U.UF.UI.form(
  2711. "我的項目",
  2712. $$("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 }), {
  2713. "id": "studnetProject",
  2714. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2715. "onresize": function () { }
  2716. }, {
  2717. closecallback: function () { }
  2718. }, { "style": { "height": "36px" } }).form; //創建窗體
  2719. _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); } }
  2720. break;
  2721. case "studentEvaluate": //好友打開
  2722. _formdiv = new U.UF.UI.form(
  2723. "我的評價",
  2724. $$("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 }), {
  2725. "id": "studentEvaluate",
  2726. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2727. "onresize": function () { }
  2728. }, {
  2729. closecallback: function () { }
  2730. }, { "style": { "height": "36px" } }).form; //創建窗體
  2731. _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); } }
  2732. break;
  2733. case "my":
  2734. _formdiv = new U.UF.UI.form(
  2735. "我的資料",
  2736. $$("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 }), {
  2737. "id": "my",
  2738. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2739. "onresize": function () { }
  2740. }, {
  2741. closecallback: function () { }
  2742. }, { "style": { "height": "36px" } }).form; //創建窗體
  2743. _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); } }
  2744. break;
  2745. case "program":
  2746. _formdiv = new U.UF.UI.form(
  2747. "編程平臺",
  2748. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2749. "id": "program",
  2750. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2751. "onresize": function () { }
  2752. }, {
  2753. closecallback: function () { }
  2754. }, { "style": { "height": "36px" } }).form; //創建窗體
  2755. _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); } }
  2756. break;
  2757. case "library":
  2758. _formdiv = new U.UF.UI.form(
  2759. "素材庫",
  2760. $$("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 }), {
  2761. "id": "library",
  2762. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2763. "onresize": function () { }
  2764. }, {
  2765. closecallback: function () { }
  2766. }, { "style": { "height": "36px" } }).form; //創建窗體
  2767. _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); } }
  2768. break;
  2769. case "whiteboard":
  2770. _formdiv = new U.UF.UI.form(
  2771. "電子白板",
  2772. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2773. "id": "whiteboard",
  2774. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2775. "onresize": function () { }
  2776. }, {
  2777. closecallback: function () { }
  2778. }, { "style": { "height": "36px" } }).form; //創建窗體
  2779. _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); } }
  2780. break;
  2781. case "investigation":
  2782. _formdiv = new U.UF.UI.form(
  2783. "問卷調查",
  2784. $$("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 }), {
  2785. "id": "investigation",
  2786. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2787. "onresize": function () { }
  2788. }, {
  2789. closecallback: function () { }
  2790. }, { "style": { "height": "36px" } }).form; //創建窗體
  2791. _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); } }
  2792. break;
  2793. case "note":
  2794. _formdiv = new U.UF.UI.form(
  2795. "便簽分類",
  2796. $$("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 }), {
  2797. "id": "note",
  2798. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2799. "onresize": function () { }
  2800. }, {
  2801. closecallback: function () { }
  2802. }, { "style": { "height": "36px" } }).form; //創建窗體
  2803. _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); } }
  2804. break;
  2805. // case "score":
  2806. // _formdiv = new U.UF.UI.form(
  2807. // "量規評分",
  2808. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2809. // "id": "score",
  2810. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2811. // "onresize": function() {}
  2812. // }, {
  2813. // closecallback: function() {}
  2814. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2815. // _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); } }
  2816. // break;
  2817. case "mind":
  2818. _formdiv = new U.UF.UI.form(
  2819. "思維導圖",
  2820. $$("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"
  2821. "id": "mind",
  2822. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2823. "onresize": function () { }
  2824. }, {
  2825. closecallback: function () { }
  2826. }, { "style": { "height": "36px" } }).form; //創建窗體
  2827. _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); } }
  2828. break;
  2829. case "doc":
  2830. // U.MD.D.I.isRoom();
  2831. _formdiv = new U.UF.UI.form(
  2832. "協同文檔",
  2833. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2834. "id": "doc",
  2835. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2836. "onresize": function () { }
  2837. }, {
  2838. closecallback: function () { }
  2839. }, { "style": { "height": "36px" } }).form; //創建窗體
  2840. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2841. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2842. // })
  2843. _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); } }
  2844. break;
  2845. case "studentStudy":
  2846. _formdiv = new U.UF.UI.form(
  2847. "課程中心",
  2848. $$("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
  2849. "id": "studentStudy",
  2850. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2851. "onresize": function () { }
  2852. }, {
  2853. closecallback: function () { }
  2854. }, { "style": { "height": "36px" } }).form; //創建窗體
  2855. _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); } }
  2856. break;
  2857. case "train": //好友打開
  2858. _formdiv = new U.UF.UI.form(
  2859. "訓練平臺",
  2860. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2861. "id": "train",
  2862. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2863. "onresize": function () { }
  2864. }, {
  2865. closecallback: function () { }
  2866. }, { "style": { "height": "36px" } }).form; //創建窗體
  2867. _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); } }
  2868. break;
  2869. case "mindNetwork": //好友打開
  2870. _formdiv = new U.UF.UI.form(
  2871. "思維網格",
  2872. $$("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 }), {
  2873. "id": "mindNetwork",
  2874. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2875. "onresize": function () { }
  2876. }, {
  2877. closecallback: function () { }
  2878. }, { "style": { "height": "36px" } }).form; //創建窗體
  2879. _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); } }
  2880. break;
  2881. case "studentClassRoom": //好友打開
  2882. _formdiv = new U.UF.UI.form(
  2883. "實時課堂",
  2884. $$("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 }), {
  2885. "id": "studentClassRoom",
  2886. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2887. "onresize": function () { }
  2888. }, {
  2889. closecallback: function () { }
  2890. }, { "style": { "height": "36px" } }).form; //創建窗體
  2891. _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); } }
  2892. setTimeout(() => {
  2893. U.UF.F.windowZooming(_formdiv)
  2894. }, 0);
  2895. break;
  2896. }
  2897. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2898. switch (str) {
  2899. case "studnetProject": //好友打開
  2900. _formdiv = new U.UF.UI.form(
  2901. "我的項目",
  2902. $$("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 }), {
  2903. "id": "studnetProject",
  2904. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2905. "onresize": function () { }
  2906. }, {
  2907. closecallback: function () { }
  2908. }, { "style": { "height": "36px" } }).form; //創建窗體
  2909. _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); } }
  2910. break;
  2911. case "studentEvaluate": //好友打開
  2912. _formdiv = new U.UF.UI.form(
  2913. "我的評價",
  2914. $$("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 }), {
  2915. "id": "studentEvaluate",
  2916. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2917. "onresize": function () { }
  2918. }, {
  2919. closecallback: function () { }
  2920. }, { "style": { "height": "36px" } }).form; //創建窗體
  2921. _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); } }
  2922. break;
  2923. case "my":
  2924. _formdiv = new U.UF.UI.form(
  2925. "我的資料",
  2926. $$("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 }), {
  2927. "id": "my",
  2928. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2929. "onresize": function () { }
  2930. }, {
  2931. closecallback: function () { }
  2932. }, { "style": { "height": "36px" } }).form; //創建窗體
  2933. _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); } }
  2934. break;
  2935. case "program":
  2936. _formdiv = new U.UF.UI.form(
  2937. "編程平臺",
  2938. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2939. "id": "program",
  2940. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2941. "onresize": function () { }
  2942. }, {
  2943. closecallback: function () { }
  2944. }, { "style": { "height": "36px" } }).form; //創建窗體
  2945. _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); } }
  2946. break;
  2947. case "library":
  2948. _formdiv = new U.UF.UI.form(
  2949. "素材庫",
  2950. $$("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 }), {
  2951. "id": "library",
  2952. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2953. "onresize": function () { }
  2954. }, {
  2955. closecallback: function () { }
  2956. }, { "style": { "height": "36px" } }).form; //創建窗體
  2957. _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); } }
  2958. break;
  2959. case "whiteboard":
  2960. _formdiv = new U.UF.UI.form(
  2961. "電子白板",
  2962. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2963. "id": "whiteboard",
  2964. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2965. "onresize": function () { }
  2966. }, {
  2967. closecallback: function () { }
  2968. }, { "style": { "height": "36px" } }).form; //創建窗體
  2969. _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); } }
  2970. break;
  2971. case "investigation":
  2972. _formdiv = new U.UF.UI.form(
  2973. "問卷調查",
  2974. $$("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 }), {
  2975. "id": "investigation",
  2976. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2977. "onresize": function () { }
  2978. }, {
  2979. closecallback: function () { }
  2980. }, { "style": { "height": "36px" } }).form; //創建窗體
  2981. _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); } }
  2982. break;
  2983. case "note":
  2984. _formdiv = new U.UF.UI.form(
  2985. "便簽分類",
  2986. $$("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 }), {
  2987. "id": "note",
  2988. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2989. "onresize": function () { }
  2990. }, {
  2991. closecallback: function () { }
  2992. }, { "style": { "height": "36px" } }).form; //創建窗體
  2993. _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); } }
  2994. break;
  2995. // case "score":
  2996. // _formdiv = new U.UF.UI.form(
  2997. // "量規評分",
  2998. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2999. // "id": "score",
  3000. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3001. // "onresize": function() {}
  3002. // }, {
  3003. // closecallback: function() {}
  3004. // }, { "style": { "height": "36px" } }).form; //創建窗體
  3005. // _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); } }
  3006. // break;
  3007. case "mind":
  3008. _formdiv = new U.UF.UI.form(
  3009. "思維導圖",
  3010. $$("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"
  3011. "id": "mind",
  3012. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3013. "onresize": function () { }
  3014. }, {
  3015. closecallback: function () { }
  3016. }, { "style": { "height": "36px" } }).form; //創建窗體
  3017. _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); } }
  3018. break;
  3019. case "doc":
  3020. // U.MD.D.I.isRoom();
  3021. _formdiv = new U.UF.UI.form(
  3022. "協同文檔",
  3023. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3024. "id": "doc",
  3025. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3026. "onresize": function () { }
  3027. }, {
  3028. closecallback: function () { }
  3029. }, { "style": { "height": "36px" } }).form; //創建窗體
  3030. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3031. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3032. })
  3033. _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); } }
  3034. break;
  3035. case "train": //好友打開
  3036. _formdiv = new U.UF.UI.form(
  3037. "訓練平臺",
  3038. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3039. "id": "train",
  3040. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3041. "onresize": function () { }
  3042. }, {
  3043. closecallback: function () { }
  3044. }, { "style": { "height": "36px" } }).form; //創建窗體
  3045. _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); } }
  3046. break;
  3047. case "studentStudy":
  3048. _formdiv = new U.UF.UI.form(
  3049. "課程中心",
  3050. $$("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
  3051. "id": "studentStudy",
  3052. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3053. "onresize": function () { }
  3054. }, {
  3055. closecallback: function () { }
  3056. }, { "style": { "height": "36px" } }).form; //創建窗體
  3057. _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); } }
  3058. break;
  3059. case "mindNetwork": //好友打開
  3060. _formdiv = new U.UF.UI.form(
  3061. "思維網格",
  3062. $$("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 }), {
  3063. "id": "mindNetwork",
  3064. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3065. "onresize": function () { }
  3066. }, {
  3067. closecallback: function () { }
  3068. }, { "style": { "height": "36px" } }).form; //創建窗體
  3069. _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); } }
  3070. break;
  3071. case "studentClassRoom": //好友打開
  3072. _formdiv = new U.UF.UI.form(
  3073. "實時課堂",
  3074. $$("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 }), {
  3075. "id": "studentClassRoom",
  3076. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3077. "onresize": function () { }
  3078. }, {
  3079. closecallback: function () { }
  3080. }, { "style": { "height": "36px" } }).form; //創建窗體
  3081. _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); } }
  3082. setTimeout(() => {
  3083. U.UF.F.windowZooming(_formdiv)
  3084. }, 0);
  3085. break;
  3086. }
  3087. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  3088. //選擇應用處理
  3089. switch (str) {
  3090. case "project": //好友打開
  3091. _formdiv = new U.UF.UI.form(
  3092. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目' : "課程管理",
  3093. $$("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 }), {
  3094. "id": "project",
  3095. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3096. "onresize": function () { }
  3097. }, {
  3098. closecallback: function () { }
  3099. }, { "style": { "height": "36px" } }).form; //創建窗體
  3100. _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); } }
  3101. break;
  3102. case "student":
  3103. _formdiv = new U.UF.UI.form(
  3104. "學生管理",
  3105. $$("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 }), {
  3106. "id": "student",
  3107. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3108. "onresize": function () { }
  3109. }, {
  3110. closecallback: function () { }
  3111. }, { "style": { "height": "36px" } }).form; //創建窗體
  3112. _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); } }
  3113. break;
  3114. case "evaluate":
  3115. _formdiv = new U.UF.UI.form(
  3116. "學生評價",
  3117. $$("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 }), {
  3118. "id": "evaluate",
  3119. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3120. "onresize": function () { }
  3121. }, {
  3122. closecallback: function () { }
  3123. }, { "style": { "height": "36px" } }).form; //創建窗體
  3124. _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); } }
  3125. break;
  3126. case "sys":
  3127. _formdiv = new U.UF.UI.form(
  3128. "目標管理",
  3129. $$("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 }), {
  3130. "id": "sys",
  3131. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3132. "onresize": function () { }
  3133. }, {
  3134. closecallback: function () { }
  3135. }, { "style": { "height": "36px" } }).form; //創建窗體
  3136. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目標管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3137. break;
  3138. case "courseDesign":
  3139. _formdiv = new U.UF.UI.form(
  3140. "項目設計",
  3141. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3142. "id": "courseDesign",
  3143. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3144. "onresize": function () { }
  3145. }, {
  3146. closecallback: function () { }
  3147. }, { "style": { "height": "36px" } }).form; //創建窗體
  3148. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "項目設計", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3149. break;
  3150. case "program":
  3151. _formdiv = new U.UF.UI.form(
  3152. "編程平臺",
  3153. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3154. "id": "program",
  3155. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3156. "onresize": function () { }
  3157. }, {
  3158. closecallback: function () { }
  3159. }, { "style": { "height": "36px" } }).form; //創建窗體
  3160. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "編程平臺", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3161. break;
  3162. case "class":
  3163. _formdiv = new U.UF.UI.form(
  3164. "班級管理",
  3165. $$("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 }), {
  3166. "id": "class",
  3167. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3168. "onresize": function () { }
  3169. }, {
  3170. closecallback: function () { }
  3171. }, { "style": { "height": "36px" } }).form; //創建窗體
  3172. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/class.png)" }, "name": "班級管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3173. break;
  3174. case "Grade":
  3175. _formdiv = new U.UF.UI.form(
  3176. "年級管理",
  3177. $$("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 }), {
  3178. "id": "Grade",
  3179. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3180. "onresize": function () { }
  3181. }, {
  3182. closecallback: function () { }
  3183. }, { "style": { "height": "36px" } }).form; //創建窗體
  3184. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Grade.png)" }, "name": "年級管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3185. break;
  3186. case "teacherOffice":
  3187. _formdiv = new U.UF.UI.form(
  3188. "教研室",
  3189. $$("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 }), {
  3190. "id": "teacherOffice",
  3191. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3192. "onresize": function () { }
  3193. }, {
  3194. closecallback: function () { }
  3195. }, { "style": { "height": "36px" } }).form; //創建窗體
  3196. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/teacherOffice.png)" }, "name": "教研室", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3197. break;
  3198. case "my":
  3199. _formdiv = new U.UF.UI.form(
  3200. "我的資料",
  3201. $$("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 }), {
  3202. "id": "my",
  3203. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3204. "onresize": function () { }
  3205. }, {
  3206. closecallback: function () { }
  3207. }, { "style": { "height": "36px" } }).form; //創建窗體
  3208. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的資料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3209. break;
  3210. case "notice":
  3211. _formdiv = new U.UF.UI.form(
  3212. "通知公告",
  3213. $$("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 }), {
  3214. "id": "notice",
  3215. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3216. "onresize": function () { }
  3217. }, {
  3218. closecallback: function () { }
  3219. }, { "style": { "height": "36px" } }).form; //創建窗體
  3220. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3221. break;
  3222. case "library":
  3223. _formdiv = new U.UF.UI.form(
  3224. "素材庫",
  3225. $$("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 }), {
  3226. "id": "library",
  3227. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3228. "onresize": function () { }
  3229. }, {
  3230. closecallback: function () { }
  3231. }, { "style": { "height": "36px" } }).form; //創建窗體
  3232. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材庫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3233. break;
  3234. case "whiteboard":
  3235. _formdiv = new U.UF.UI.form(
  3236. "電子白板",
  3237. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3238. "id": "whiteboard",
  3239. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3240. "onresize": function () { }
  3241. }, {
  3242. closecallback: function () { }
  3243. }, { "style": { "height": "36px" } }).form; //創建窗體
  3244. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "電子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3245. break;
  3246. case "investigation":
  3247. _formdiv = new U.UF.UI.form(
  3248. "問卷調查",
  3249. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  3250. "id": "investigation",
  3251. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3252. "onresize": function () { }
  3253. }, {
  3254. closecallback: function () { }
  3255. }, { "style": { "height": "36px" } }).form; //創建窗體
  3256. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "問卷調查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3257. break;
  3258. case "note":
  3259. _formdiv = new U.UF.UI.form(
  3260. "便簽分類",
  3261. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  3262. "id": "note",
  3263. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  3264. "onresize": function () { }
  3265. }, {
  3266. closecallback: function () { }
  3267. }, { "style": { "height": "36px" } }).form; //創建窗體
  3268. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便簽分類", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3269. break;
  3270. // case "score":
  3271. // _formdiv = new U.UF.UI.form(
  3272. // "量規評分",
  3273. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  3274. // "id": "score",
  3275. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3276. // "onresize": function() {}
  3277. // }, {
  3278. // closecallback: function() {}
  3279. // }, { "style": { "height": "36px" } }).form; //創建窗體
  3280. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量規評分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3281. // break;
  3282. case "mind":
  3283. _formdiv = new U.UF.UI.form(
  3284. "思維導圖",
  3285. $$("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"
  3286. "id": "mind",
  3287. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3288. "onresize": function () { }
  3289. }, {
  3290. closecallback: function () { }
  3291. }, { "style": { "height": "36px" } }).form; //創建窗體
  3292. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思維導圖", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3293. break;
  3294. case "doc":
  3295. // U.MD.D.I.isRoom();
  3296. _formdiv = new U.UF.UI.form(
  3297. "協同文檔",
  3298. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3299. "id": "doc",
  3300. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3301. "onresize": function () { }
  3302. }, {
  3303. closecallback: function () { }
  3304. }, { "style": { "height": "36px" } }).form; //創建窗體
  3305. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3306. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3307. })
  3308. _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); } }
  3309. break;
  3310. case "study":
  3311. _formdiv = new U.UF.UI.form(
  3312. "課程中心",
  3313. $$("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
  3314. "id": "study",
  3315. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3316. "onresize": function () { }
  3317. }, {
  3318. closecallback: function () { }
  3319. }, { "style": { "height": "36px" } }).form; //創建窗體
  3320. _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); } }
  3321. break;
  3322. case "mindNetwork": //好友打開
  3323. _formdiv = new U.UF.UI.form(
  3324. "思維網格",
  3325. $$("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 }), {
  3326. "id": "mindNetwork",
  3327. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3328. "onresize": function () { }
  3329. }, {
  3330. closecallback: function () { }
  3331. }, { "style": { "height": "36px" } }).form; //創建窗體
  3332. _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); } }
  3333. break;
  3334. case "train": //好友打開
  3335. _formdiv = new U.UF.UI.form(
  3336. "訓練平臺",
  3337. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3338. "id": "mindNetwork",
  3339. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3340. "onresize": function () { }
  3341. }, {
  3342. closecallback: function () { }
  3343. }, { "style": { "height": "36px" } }).form; //創建窗體
  3344. _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); } }
  3345. break;
  3346. case "teacherClassRoom": //好友打開
  3347. _formdiv = new U.UF.UI.form(
  3348. "實時課堂",
  3349. $$("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 }), {
  3350. "id": "teacherClassRoom",
  3351. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3352. "onresize": function () { }
  3353. }, {
  3354. closecallback: function () { }
  3355. }, { "style": { "height": "36px" } }).form; //創建窗體
  3356. _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); } }
  3357. setTimeout(() => {
  3358. U.UF.F.windowZooming(_formdiv)
  3359. }, 0);
  3360. break;
  3361. }
  3362. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  3363. switch (str) {
  3364. case "project": //好友打開
  3365. _formdiv = new U.UF.UI.form(
  3366. "課程管理",
  3367. $$("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 }), {
  3368. "id": "project",
  3369. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3370. "onresize": function () { }
  3371. }, {
  3372. closecallback: function () { }
  3373. }, { "style": { "height": "36px" } }).form; //創建窗體
  3374. _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); } }
  3375. break;
  3376. case "evaluate":
  3377. _formdiv = new U.UF.UI.form(
  3378. "學生評價",
  3379. $$("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 }), {
  3380. "id": "evaluate",
  3381. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3382. "onresize": function () { }
  3383. }, {
  3384. closecallback: function () { }
  3385. }, { "style": { "height": "36px" } }).form; //創建窗體
  3386. _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); } }
  3387. break;
  3388. case "notice":
  3389. _formdiv = new U.UF.UI.form(
  3390. "通知公告",
  3391. $$("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 }), {
  3392. "id": "notice",
  3393. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3394. "onresize": function () { }
  3395. }, {
  3396. closecallback: function () { }
  3397. }, { "style": { "height": "36px" } }).form; //創建窗體
  3398. _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); } }
  3399. break;
  3400. case "stuLibrary":
  3401. _formdiv = new U.UF.UI.form(
  3402. "學習資料",
  3403. $$("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 }), {
  3404. "id": "stuLibrary",
  3405. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3406. "onresize": function () { }
  3407. }, {
  3408. closecallback: function () { }
  3409. }, { "style": { "height": "36px" } }).form; //創建窗體
  3410. _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); } }
  3411. break;
  3412. case "program":
  3413. _formdiv = new U.UF.UI.form(
  3414. "編程平臺",
  3415. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3416. "id": "program",
  3417. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3418. "onresize": function () { }
  3419. }, {
  3420. closecallback: function () { }
  3421. }, { "style": { "height": "36px" } }).form; //創建窗體
  3422. _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); } }
  3423. break;
  3424. case "whiteboard":
  3425. _formdiv = new U.UF.UI.form(
  3426. "電子白板",
  3427. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3428. "id": "whiteboard",
  3429. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3430. "onresize": function () { }
  3431. }, {
  3432. closecallback: function () { }
  3433. }, { "style": { "height": "36px" } }).form; //創建窗體
  3434. _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); } }
  3435. break;
  3436. case "investigation":
  3437. _formdiv = new U.UF.UI.form(
  3438. "問卷調查",
  3439. $$("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 }), {
  3440. "id": "investigation",
  3441. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3442. "onresize": function () { }
  3443. }, {
  3444. closecallback: function () { }
  3445. }, { "style": { "height": "36px" } }).form; //創建窗體
  3446. _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); } }
  3447. break;
  3448. case "mind":
  3449. _formdiv = new U.UF.UI.form(
  3450. "思維導圖",
  3451. $$("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"
  3452. "id": "mind",
  3453. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3454. "onresize": function () { }
  3455. }, {
  3456. closecallback: function () { }
  3457. }, { "style": { "height": "36px" } }).form; //創建窗體
  3458. _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); } }
  3459. break;
  3460. case "doc":
  3461. // U.MD.D.I.isRoom();
  3462. _formdiv = new U.UF.UI.form(
  3463. "協同文檔",
  3464. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3465. "id": "doc",
  3466. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3467. "onresize": function () { }
  3468. }, {
  3469. closecallback: function () { }
  3470. }, { "style": { "height": "36px" } }).form; //創建窗體
  3471. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3472. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3473. })
  3474. _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); } }
  3475. break;
  3476. case "study":
  3477. _formdiv = new U.UF.UI.form(
  3478. "課程中心",
  3479. $$("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
  3480. "id": "study",
  3481. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3482. "onresize": function () { }
  3483. }, {
  3484. closecallback: function () { }
  3485. }, { "style": { "height": "36px" } }).form; //創建窗體
  3486. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "課程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3487. break;
  3488. case "mindNetwork": //好友打開
  3489. _formdiv = new U.UF.UI.form(
  3490. "思維網格",
  3491. $$("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 }), {
  3492. "id": "mindNetwork",
  3493. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3494. "onresize": function () { }
  3495. }, {
  3496. closecallback: function () { }
  3497. }, { "style": { "height": "36px" } }).form; //創建窗體
  3498. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思維網格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3499. break;
  3500. case "train": //好友打開
  3501. _formdiv = new U.UF.UI.form(
  3502. "訓練平臺",
  3503. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3504. "id": "train",
  3505. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3506. "onresize": function () { }
  3507. }, {
  3508. closecallback: function () { }
  3509. }, { "style": { "height": "36px" } }).form; //創建窗體
  3510. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "訓練平臺", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3511. break;
  3512. case "sys":
  3513. _formdiv = new U.UF.UI.form(
  3514. "目標管理",
  3515. $$("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 }), {
  3516. "id": "sys",
  3517. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3518. "onresize": function () { }
  3519. }, {
  3520. closecallback: function () { }
  3521. }, { "style": { "height": "36px" } }).form; //創建窗體
  3522. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目標管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3523. break;
  3524. case "courseDesign":
  3525. _formdiv = new U.UF.UI.form(
  3526. "項目設計",
  3527. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3528. "id": "courseDesign",
  3529. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3530. "onresize": function () { }
  3531. }, {
  3532. closecallback: function () { }
  3533. }, { "style": { "height": "36px" } }).form; //創建窗體
  3534. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "項目設計", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3535. break;
  3536. }
  3537. } else if (!_type) {
  3538. switch (str) {
  3539. case "my":
  3540. _formdiv = new U.UF.UI.form(
  3541. "我的資料",
  3542. $$("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 }), {
  3543. "id": "my",
  3544. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3545. "onresize": function () { }
  3546. }, {
  3547. closecallback: function () { }
  3548. }, { "style": { "height": "36px" } }).form; //創建窗體
  3549. _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); } }
  3550. break;
  3551. }
  3552. }
  3553. switch (str) {
  3554. // AIprogram2 AI體驗 aihub.cocorobo.cn
  3555. // Pythonprogram Python編程 python-blockly.cocorobo.cn
  3556. // AIprogram AI編程 ai-blockly.cocorobo.cn
  3557. case "formulaEdi": //公式編輯
  3558. _formdiv = new U.UF.UI.form(
  3559. "公式編輯",
  3560. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.latexlive.com/" }), {
  3561. "id": "formulaEdi",
  3562. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3563. "onresize": function () { }
  3564. }, {
  3565. closecallback: function () { }
  3566. }, { "style": { "height": "36px" } }).form; //創建窗體
  3567. _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); } }
  3568. break;
  3569. case "molStr": //分子結構
  3570. _formdiv = new U.UF.UI.form(
  3571. "分子結構",
  3572. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://molview.org/" }), {
  3573. "id": "molStr",
  3574. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3575. "onresize": function () { }
  3576. }, {
  3577. closecallback: function () { }
  3578. }, { "style": { "height": "36px" } }).form; //創建窗體
  3579. _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); } }
  3580. break;
  3581. case "timeAxis": //時間軸
  3582. _formdiv = new U.UF.UI.form(
  3583. "時間軸",
  3584. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://time.graphics/editor" }), {
  3585. "id": "timeAxis",
  3586. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3587. "onresize": function () { }
  3588. }, {
  3589. closecallback: function () { }
  3590. }, { "style": { "height": "36px" } }).form; //創建窗體
  3591. _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); } }
  3592. break;
  3593. case "AIprogram2": //AI體驗
  3594. _formdiv = new U.UF.UI.form(
  3595. "AI體驗",
  3596. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3597. "id": "AIprogram2",
  3598. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3599. "onresize": function () { }
  3600. }, {
  3601. closecallback: function () { }
  3602. }, { "style": { "height": "36px" } }).form; //創建窗體
  3603. _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); } }
  3604. break;
  3605. case "Pythonprogram": //python編程
  3606. _formdiv = new U.UF.UI.form(
  3607. "Python編程",
  3608. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3609. "id": "Pythonprogram",
  3610. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3611. "onresize": function () { }
  3612. }, {
  3613. closecallback: function () { }
  3614. }, { "style": { "height": "36px" } }).form; //創建窗體
  3615. _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); } }
  3616. break;
  3617. case "AIprogram": //ai編程
  3618. _formdiv = new U.UF.UI.form(
  3619. "AI編程平臺",
  3620. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3621. "id": "AIprogram",
  3622. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3623. "onresize": function () { }
  3624. }, {
  3625. closecallback: function () { }
  3626. }, { "style": { "height": "36px" } }).form; //創建窗體
  3627. _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); } }
  3628. break;
  3629. case "CocoPi": //CocoPi
  3630. _formdiv = new U.UF.UI.form(
  3631. "CocoPi",
  3632. $$("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" }), {
  3633. "id": "CocoPi",
  3634. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3635. "onresize": function () { }
  3636. }, {
  3637. closecallback: function () { }
  3638. }, { "style": { "height": "36px" } }).form; //創建窗體
  3639. _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); } }
  3640. break;
  3641. case "Wood": //Wood
  3642. _formdiv = new U.UF.UI.form(
  3643. "海龜編程",
  3644. $$("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/" }), {
  3645. "id": "Wood",
  3646. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3647. "onresize": function () { }
  3648. }, {
  3649. closecallback: function () { }
  3650. }, { "style": { "height": "36px" } }).form; //創建窗體
  3651. _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); } }
  3652. break;
  3653. case "car": //模擬駕駛
  3654. _formdiv = new U.UF.UI.form(
  3655. "模擬駕駛",
  3656. $$("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/" }), {
  3657. "id": "car",
  3658. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3659. "onresize": function () { }
  3660. }, {
  3661. closecallback: function () { }
  3662. }, { "style": { "height": "36px" } }).form; //創建窗體
  3663. _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); } }
  3664. break;
  3665. case "lineSearch": //路徑搜索
  3666. _formdiv = new U.UF.UI.form(
  3667. "路徑搜索",
  3668. $$("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/" }), {
  3669. "id": "lineSearch",
  3670. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3671. "onresize": function () { }
  3672. }, {
  3673. closecallback: function () { }
  3674. }, { "style": { "height": "36px" } }).form; //創建窗體
  3675. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/lineSearch.png)" }, "name": "路徑搜索", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3676. break;
  3677. case "deepLearning": //深度學習
  3678. _formdiv = new U.UF.UI.form(
  3679. "深度學習",
  3680. $$("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/#" }), {
  3681. "id": "deepLearning",
  3682. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3683. "onresize": function () { }
  3684. }, {
  3685. closecallback: function () { }
  3686. }, { "style": { "height": "36px" } }).form; //創建窗體
  3687. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/deepLearning.png)" }, "name": "深度學習", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3688. break;
  3689. case "allHistory": //深度學習
  3690. _formdiv = new U.UF.UI.form(
  3691. "全歷史",
  3692. $$("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/" }), {
  3693. "id": "allHistory",
  3694. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3695. "onresize": function () { }
  3696. }, {
  3697. closecallback: function () { }
  3698. }, { "style": { "height": "36px" } }).form; //創建窗體
  3699. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/allHistory.png)" }, "name": "全歷史", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3700. break;
  3701. case "chatPDF": //ai編程
  3702. _formdiv = new U.UF.UI.form(
  3703. "chatPDF",
  3704. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3705. "id": "chatPDF",
  3706. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3707. "onresize": function () { }
  3708. }, {
  3709. closecallback: function () { }
  3710. }, { "style": { "height": "36px" } }).form; //創建窗體
  3711. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/chatPDF.png)" }, "name": "chatPDF", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3712. break;
  3713. case "resources": //國家教育
  3714. _formdiv = new U.UF.UI.form(
  3715. "國家教育",
  3716. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3717. "id": "resources",
  3718. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3719. "onresize": function () { }
  3720. }, {
  3721. closecallback: function () { }
  3722. }, { "style": { "height": "36px" } }).form; //創建窗體
  3723. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/resources.png)" }, "name": "國家教育", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3724. break;
  3725. case "codeEdit": //源碼編輯
  3726. _formdiv = new U.UF.UI.form(
  3727. "源碼編輯",
  3728. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3729. "id": "codeEdit",
  3730. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3731. "onresize": function () { }
  3732. }, {
  3733. closecallback: function () { }
  3734. }, { "style": { "height": "36px" } }).form; //創建窗體
  3735. _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); } }
  3736. break; //
  3737. case "MindMap": //MindMap
  3738. _formdiv = new U.UF.UI.form(
  3739. "MindMap",
  3740. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3741. "id": "MindMap",
  3742. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3743. "onresize": function () { }
  3744. }, {
  3745. closecallback: function () { }
  3746. }, { "style": { "height": "36px" } }).form; //創建窗體
  3747. _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); } }
  3748. break;
  3749. case "netWorkPanel": //netWorkPanel
  3750. _formdiv = new U.UF.UI.form(
  3751. "netWorkPanel",
  3752. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3753. "id": "netWorkPanel",
  3754. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3755. "onresize": function () { }
  3756. }, {
  3757. closecallback: function () { }
  3758. }, { "style": { "height": "36px" } }).form; //創建窗體
  3759. _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); } }
  3760. break;
  3761. case "GeoGebra": //GeoGebra
  3762. _formdiv = new U.UF.UI.form(
  3763. "GeoGebra",
  3764. $$("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" }), {
  3765. "id": "GeoGebra",
  3766. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3767. "onresize": function () { }
  3768. }, {
  3769. closecallback: function () { }
  3770. }, { "style": { "height": "36px" } }).form; //創建窗體
  3771. _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); } }
  3772. break;
  3773. case "translation": //翻譯
  3774. _formdiv = new U.UF.UI.form(
  3775. "翻譯",
  3776. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3777. "id": "translation",
  3778. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3779. "onresize": function () { }
  3780. }, {
  3781. closecallback: function () { }
  3782. }, { "style": { "height": "36px" } }).form; //創建窗體
  3783. _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); } }
  3784. break;
  3785. case "mohe": //魔盒
  3786. _formdiv = new U.UF.UI.form(
  3787. "魔盒識字",
  3788. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3789. "id": "mohe",
  3790. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3791. "onresize": function () { }
  3792. }, {
  3793. closecallback: function () { }
  3794. }, { "style": { "height": "36px" } }).form; //創建窗體
  3795. _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); } }
  3796. break;
  3797. case "24game": //24點
  3798. _formdiv = new U.UF.UI.form(
  3799. "24點",
  3800. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3801. "id": "24game",
  3802. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3803. "onresize": function () { }
  3804. }, {
  3805. closecallback: function () { }
  3806. }, { "style": { "height": "36px" } }).form; //創建窗體
  3807. _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); } }
  3808. break;
  3809. case "case":
  3810. _formdiv = new U.UF.UI.form(
  3811. "課程進展",
  3812. $$("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 }), {
  3813. "id": "case",
  3814. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3815. "onresize": function () { }
  3816. }, {
  3817. closecallback: function () { }
  3818. }, { "style": { "height": "36px" } }).form; //創建窗體
  3819. _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); } }
  3820. break;
  3821. case "snf":
  3822. _formdiv = new U.UF.UI.form(
  3823. "賽諾梵",
  3824. $$("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" }), {
  3825. "id": "snf",
  3826. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3827. "onresize": function () { }
  3828. }, {
  3829. closecallback: function () { }
  3830. }, { "style": { "height": "36px" } }).form; //創建窗體
  3831. _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); } }
  3832. break;
  3833. case "hanFamily":
  3834. _formdiv = new U.UF.UI.form(
  3835. "漢字家族",
  3836. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3837. "id": "hanFamily",
  3838. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3839. "onresize": function () { }
  3840. }, {
  3841. closecallback: function () { }
  3842. }, { "style": { "height": "36px" } }).form; //創建窗體
  3843. _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); } }
  3844. break;
  3845. case "hanClassics":
  3846. _formdiv = new U.UF.UI.form(
  3847. "國學經典",
  3848. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3849. "id": "hanClassics",
  3850. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3851. "onresize": function () { }
  3852. }, {
  3853. closecallback: function () { }
  3854. }, { "style": { "height": "36px" } }).form; //創建窗體
  3855. _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); } }
  3856. break;
  3857. case "hanTraining":
  3858. _formdiv = new U.UF.UI.form(
  3859. "筆畫訓練",
  3860. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3861. "id": "hanTraining",
  3862. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3863. "onresize": function () { }
  3864. }, {
  3865. closecallback: function () { }
  3866. }, { "style": { "height": "36px" } }).form; //創建窗體
  3867. _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); } }
  3868. break;
  3869. case "hanClass":
  3870. _formdiv = new U.UF.UI.form(
  3871. "書法課堂",
  3872. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3873. "id": "hanClass",
  3874. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3875. "onresize": function () { }
  3876. }, {
  3877. closecallback: function () { }
  3878. }, { "style": { "height": "36px" } }).form; //創建窗體
  3879. _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); } }
  3880. break;
  3881. case "han":
  3882. _formdiv = new U.UF.UI.form(
  3883. "漢字宮",
  3884. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3885. "id": "han",
  3886. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3887. "onresize": function () { }
  3888. }, {
  3889. closecallback: function () { }
  3890. }, { "style": { "height": "36px" } }).form; //創建窗體
  3891. _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); } }
  3892. break;
  3893. case "projectGM": //課程管理
  3894. _formdiv = new U.UF.UI.form(
  3895. "課程管理",
  3896. $$("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 }), {
  3897. "id": "projectGM",
  3898. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3899. "onresize": function () { }
  3900. }, {
  3901. closecallback: function () { }
  3902. }, { "style": { "height": "36px" } }).form; //創建窗體
  3903. _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); } }
  3904. break;
  3905. case "studyGM": //課程中心
  3906. _formdiv = new U.UF.UI.form(
  3907. "課程中心",
  3908. $$("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
  3909. "id": "study",
  3910. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3911. "onresize": function () { }
  3912. }, {
  3913. closecallback: function () { }
  3914. }, { "style": { "height": "36px" } }).form; //創建窗體
  3915. _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); } }
  3916. break;
  3917. // studentGM
  3918. case "studentGM": //學生管理
  3919. _formdiv = new U.UF.UI.form(
  3920. "學生管理",
  3921. $$("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 }), {
  3922. "id": "studentGM",
  3923. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3924. "onresize": function () { }
  3925. }, {
  3926. closecallback: function () { }
  3927. }, { "style": { "height": "36px" } }).form; //創建窗體
  3928. _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); } }
  3929. break;
  3930. case "evaluateGM": //學生評價
  3931. _formdiv = new U.UF.UI.form(
  3932. "學生評價",
  3933. $$("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 }), {
  3934. "id": "evaluateGM",
  3935. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3936. "onresize": function () { }
  3937. }, {
  3938. closecallback: function () { }
  3939. }, { "style": { "height": "36px" } }).form; //創建窗體
  3940. _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); } }
  3941. break;
  3942. // classGM
  3943. case "classGM": //班級管理
  3944. _formdiv = new U.UF.UI.form(
  3945. "班級管理",
  3946. $$("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 }), {
  3947. "id": "classGM",
  3948. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3949. "onresize": function () { }
  3950. }, {
  3951. closecallback: function () { }
  3952. }, { "style": { "height": "36px" } }).form; //創建窗體
  3953. _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); } }
  3954. break;
  3955. // dataGM
  3956. case "dataGM":
  3957. _formdiv = new U.UF.UI.form(
  3958. "我的資料",
  3959. $$("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 }), {
  3960. "id": "dataGM",
  3961. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3962. "onresize": function () { }
  3963. }, {
  3964. closecallback: function () { }
  3965. }, { "style": { "height": "36px" } }).form; //創建窗體
  3966. _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); } }
  3967. break;
  3968. // caseGM
  3969. case "caseGM": //課程進展
  3970. _formdiv = new U.UF.UI.form(
  3971. "課程進展",
  3972. $$("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 }), {
  3973. "id": "caseGM",
  3974. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3975. "onresize": function () { }
  3976. }, {
  3977. closecallback: function () { }
  3978. }, { "style": { "height": "36px" } }).form; //創建窗體
  3979. _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); } }
  3980. break;
  3981. // meterialGM
  3982. case "meterialGM": //素材庫
  3983. _formdiv = new U.UF.UI.form(
  3984. "素材庫",
  3985. $$("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 }), {
  3986. "id": "meterialGM",
  3987. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3988. "onresize": function () { }
  3989. }, {
  3990. closecallback: function () { }
  3991. }, { "style": { "height": "36px" } }).form; //創建窗體
  3992. _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); } }
  3993. break;
  3994. // evaluateSGM
  3995. case "evaluateSGM": //我的評價
  3996. _formdiv = new U.UF.UI.form(
  3997. "我的評價",
  3998. $$("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 }), {
  3999. "id": "evaluateSGM",
  4000. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  4001. "onresize": function () { }
  4002. }, {
  4003. closecallback: function () { }
  4004. }, { "style": { "height": "36px" } }).form; //創建窗體
  4005. _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); } }
  4006. break;
  4007. case "jupyter": //jupyter
  4008. _formdiv = new U.UF.UI.form(
  4009. "jupyter",
  4010. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  4011. "id": "jupyter",
  4012. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4013. "onresize": function () { }
  4014. }, {
  4015. closecallback: function () { }
  4016. }, { "style": { "height": "36px" } }).form; //創建窗體
  4017. _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); } }
  4018. break;
  4019. case "number": //數字實驗室
  4020. _formdiv = new U.UF.UI.form(
  4021. "數字實驗室",
  4022. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  4023. "id": "number",
  4024. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4025. "onresize": function () { }
  4026. }, {
  4027. closecallback: function () { }
  4028. }, { "style": { "height": "36px" } }).form; //創建窗體
  4029. _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); } }
  4030. break;
  4031. case "studentCourse": //項目管理 學生
  4032. _formdiv = new U.UF.UI.form(
  4033. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  4034. $$("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 }), {
  4035. "id": "studentCourse",
  4036. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4037. "onresize": function () { }
  4038. }, {
  4039. closecallback: function () { }
  4040. }, { "style": { "height": "36px" } }).form; //創建窗體
  4041. _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); } }
  4042. break;
  4043. case "studentCourseS": //項目管理 老師
  4044. _formdiv = new U.UF.UI.form(
  4045. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  4046. $$("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 }), {
  4047. "id": "studentCourseS",
  4048. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4049. "onresize": function () { }
  4050. }, {
  4051. closecallback: function () { }
  4052. }, { "style": { "height": "36px" } }).form; //創建窗體
  4053. _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); } }
  4054. break;
  4055. case "studentIndex": //項目中心
  4056. _formdiv = new U.UF.UI.form(
  4057. "項目中心",
  4058. $$("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 }), {
  4059. "id": "studentIndex",
  4060. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4061. "onresize": function () { }
  4062. }, {
  4063. closecallback: function () { }
  4064. }, { "style": { "height": "36px" } }).form; //創建窗體
  4065. _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); } }
  4066. break;
  4067. case "CaseDesignS":
  4068. _formdiv = new U.UF.UI.form(
  4069. "項目進展",
  4070. $$("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 }), {
  4071. "id": "case",
  4072. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4073. "onresize": function () { }
  4074. }, {
  4075. closecallback: function () { }
  4076. }, { "style": { "height": "36px" } }).form; //創建窗體
  4077. _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); } }
  4078. break;
  4079. case "tcStudent": //騰訊學生管理
  4080. _formdiv = new U.UF.UI.form(
  4081. "學生管理",
  4082. $$("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 }), {
  4083. "id": "tcStudent",
  4084. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4085. "onresize": function () { }
  4086. }, {
  4087. closecallback: function () { }
  4088. }, { "style": { "height": "36px" } }).form; //創建窗體
  4089. _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); } }
  4090. break;
  4091. case "tcSchool": //騰訊學校管理
  4092. _formdiv = new U.UF.UI.form(
  4093. "學校管理",
  4094. $$("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 }), {
  4095. "id": "tcSchool",
  4096. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4097. "onresize": function () { }
  4098. }, {
  4099. closecallback: function () { }
  4100. }, { "style": { "height": "36px" } }).form; //創建窗體
  4101. _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); } }
  4102. break;
  4103. case "tcTeacher": //騰訊學校管理
  4104. _formdiv = new U.UF.UI.form(
  4105. "教師管理",
  4106. $$("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 }), {
  4107. "id": "tcTeacher",
  4108. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4109. "onresize": function () { }
  4110. }, {
  4111. closecallback: function () { }
  4112. }, { "style": { "height": "36px" } }).form; //創建窗體
  4113. _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); } }
  4114. break;
  4115. case "tcData": //騰訊我的資料
  4116. _formdiv = new U.UF.UI.form(
  4117. "我的資料",
  4118. $$("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 }), {
  4119. "id": "tcData",
  4120. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  4121. "onresize": function () { }
  4122. }, {
  4123. closecallback: function () { }
  4124. }, { "style": { "height": "36px" } }).form; //創建窗體
  4125. _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); } }
  4126. break;
  4127. case "tcNotice": //騰訊消息通知
  4128. _formdiv = new U.UF.UI.form(
  4129. "消息通知",
  4130. $$("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 }), {
  4131. "id": "tcNotice",
  4132. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  4133. "onresize": function () { }
  4134. }, {
  4135. closecallback: function () { }
  4136. }, { "style": { "height": "36px" } }).form; //創建窗體
  4137. _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); } }
  4138. break;
  4139. case "myReport": //好友打開
  4140. _formdiv = new U.UF.UI.form(
  4141. "我的評價",
  4142. $$("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 }), {
  4143. "id": "myReport",
  4144. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4145. "onresize": function () { }
  4146. }, {
  4147. closecallback: function () { }
  4148. }, { "style": { "height": "36px" } }).form; //創建窗體
  4149. _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); } }
  4150. break;
  4151. case "learnAna": //好友打開
  4152. _formdiv = new U.UF.UI.form(
  4153. "學習分析",
  4154. $$("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 }), {
  4155. "id": "learnAna",
  4156. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4157. "onresize": function () { }
  4158. }, {
  4159. closecallback: function () { }
  4160. }, { "style": { "height": "36px" } }).form; //創建窗體
  4161. _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); } }
  4162. break;
  4163. case "AIChat": //AI共創
  4164. _formdiv = new U.UF.UI.form(
  4165. "AI共創",
  4166. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/aichat/" }), {
  4167. "id": "AIChat",
  4168. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  4169. "onresize": function () { }
  4170. }, {
  4171. istop: true,
  4172. closecallback: function () { $("#aichat_icon").remove(); },
  4173. narrowcallback: function () {
  4174. if (!$("#aichat_icon")[0]) {
  4175. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  4176. }
  4177. },
  4178. }, { "style": { "height": "36px" } }).form; //創建窗體
  4179. _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); } }
  4180. break;
  4181. case "ainew": //AI共創
  4182. _formdiv = new U.UF.UI.form(
  4183. "AI協同",
  4184. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ainew/" }), {
  4185. "id": "ainew",
  4186. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4187. "onresize": function () { }
  4188. }, {
  4189. closecallback: function () { }
  4190. }, { "style": { "height": "36px" } }).form; //創建窗體
  4191. _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); } }
  4192. break;
  4193. case "futureClass": //AI共創
  4194. _formdiv = new U.UF.UI.form(
  4195. "協同建構",
  4196. $$("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.cn
  4197. "id": "synergyCourse",
  4198. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4199. "onresize": function () { }
  4200. }, {
  4201. closecallback: function () { }
  4202. }, { "style": { "height": "36px" } }).form; //創建窗體
  4203. _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); } }
  4204. break;
  4205. case "dataBoard": //數據看板
  4206. _formdiv = new U.UF.UI.form(
  4207. "數據看板",
  4208. $$("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 }), {
  4209. "id": "dataBoard",
  4210. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4211. "onresize": function () { }
  4212. }, {
  4213. closecallback: function () { }
  4214. }, { "style": { "height": "36px" } }).form; //創建窗體
  4215. _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); } }
  4216. break;
  4217. case "AIAnalyse": //AI共創
  4218. _formdiv = new U.UF.UI.form(
  4219. "AI分析",
  4220. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ai/" }), {
  4221. "id": "AIAnalyse",
  4222. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4223. "onresize": function () { }
  4224. }, {
  4225. closecallback: function () { }
  4226. }, { "style": { "height": "36px" } }).form; //創建窗體
  4227. _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); } }
  4228. break;
  4229. case "studioCourse": //AI共創
  4230. _formdiv = new U.UF.UI.form(
  4231. "工作管理",
  4232. $$("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 }), {
  4233. "id": "studioCourse",
  4234. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4235. "onresize": function () { }
  4236. }, {
  4237. closecallback: function () { }
  4238. }, { "style": { "height": "36px" } }).form; //創建窗體
  4239. _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); } }
  4240. break;
  4241. case "studioIndex": //AI共創
  4242. _formdiv = new U.UF.UI.form(
  4243. "工作中心",
  4244. $$("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 }), {
  4245. "id": "studioIndex",
  4246. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4247. "onresize": function () { }
  4248. }, {
  4249. closecallback: function () { }
  4250. }, { "style": { "height": "36px" } }).form; //創建窗體
  4251. _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); } }
  4252. break;
  4253. case "source":
  4254. _formdiv = new U.UF.UI.form(
  4255. "教學資源",
  4256. $$("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 }), {
  4257. "id": "source",
  4258. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4259. "onresize": function () { }
  4260. }, {
  4261. closecallback: function () { }
  4262. }, { "style": { "height": "36px" } }).form; //創建窗體
  4263. _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); } }
  4264. break;
  4265. case "testTeacher":
  4266. _formdiv = new U.UF.UI.form(
  4267. "評測管理",
  4268. $$("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 }), {
  4269. "id": "testTeacher",
  4270. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4271. "onresize": function () { }
  4272. }, {
  4273. closecallback: function () { }
  4274. }, { "style": { "height": "36px" } }).form; //創建窗體
  4275. _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); } }
  4276. break;
  4277. case "testStudent":
  4278. _formdiv = new U.UF.UI.form(
  4279. "評測中心",
  4280. $$("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 }), {
  4281. "id": "testStudent",
  4282. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4283. "onresize": function () { }
  4284. }, {
  4285. closecallback: function () { }
  4286. }, { "style": { "height": "36px" } }).form; //創建窗體
  4287. _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); } }
  4288. break;
  4289. }
  4290. //U.MD.D.I.openClick(str);
  4291. //如果有任務欄信息
  4292. if (_taskbar) {
  4293. U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4294. }
  4295. }
  4296. // U.MD.D.I.openClick = function(str){
  4297. // var click = '';
  4298. // switch(str){
  4299. // case 'friend':
  4300. // click = '我的好友';
  4301. // break;
  4302. // case 'domain':
  4303. // click = '域名管理';
  4304. // break;
  4305. // case 'disk':
  4306. // click = '我的雲盤';
  4307. // break;
  4308. // case 'word':
  4309. // click = 'Word';
  4310. // break;
  4311. // case 'excel':
  4312. // click = 'Execl';
  4313. // break;
  4314. // case 'txt':
  4315. // click = '文本文件';
  4316. // break;
  4317. // case 'lookupFriend':
  4318. // click = '查找好友';
  4319. // break;
  4320. // case 'ftp':
  4321. // click = 'FTP';
  4322. // break;
  4323. // case 'group':
  4324. // click = '群組';
  4325. // break;
  4326. // case 'set':
  4327. // click = '我的設置';
  4328. // break;
  4329. // case 'systemSet':
  4330. // click = '系統設置';
  4331. // break;
  4332. // case 'boomYun':
  4333. // click = '互聯辦公';
  4334. // break;
  4335. // case 'xz':
  4336. // click = '雲端下載';
  4337. // break;
  4338. // case 'client':
  4339. // click = '有思瀏覽器';
  4340. // break;
  4341. // case 'backEndProgramming':
  4342. // click = '在線後臺編程';
  4343. // break;
  4344. // case 'frontEndProgramming':
  4345. // click = '在線前端編程';
  4346. // break;
  4347. // default: break;
  4348. // }
  4349. // if(U.MD.D.I.Ip && click){
  4350. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  4351. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  4352. // })
  4353. // }
  4354. // }
  4355. /**
  4356. *函數作用:ajax簡易函數,使用post格式
  4357. *@param url {data} 後臺地址
  4358. *@param data {data} 參數json
  4359. *@param fn {data} 回調函數
  4360. *
  4361. */
  4362. // U.MD.D.I.Mysqlrequest = function(url,fn){
  4363. // var xhr = new XMLHttpRequest();
  4364. // xhr.open("GET",url,true);
  4365. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  4366. // xhr.onreadystatechange = function(){
  4367. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  4368. // fn.call(this,xhr.responseText);
  4369. // }
  4370. // };
  4371. // xhr.send();
  4372. // }
  4373. /*判斷是否是內網IP*/
  4374. // U.MD.D.I.isInnerIPFn = function(str){
  4375. // var curPageUrl = str;
  4376. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前綴
  4377. // curPageUrl =curPageUrl.replace(reg1,'');
  4378. // // console.log('curPageUrl-1 '+curPageUrl);
  4379. // var reg2 = /\:+/g;//替換冒號為一點
  4380. // curPageUrl =curPageUrl.replace(reg2,'.');
  4381. // // console.log('curPageUrl-2 '+curPageUrl);
  4382. // curPageUrl = curPageUrl.split('.');//通過一點來劃分數組
  4383. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  4384. // if(curPageUrl[2] != '16'){
  4385. // return ipAddress;
  4386. // }else{
  4387. // return false;
  4388. // }
  4389. // }
  4390. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  4391. // //compatibility for firefox and chrome
  4392. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  4393. // var pc = new myPeerConnection({
  4394. // iceServers: []
  4395. // }),
  4396. // noop = function() {},
  4397. // localIPs = {},
  4398. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  4399. // key;
  4400. // function iterateIP(ip) {
  4401. // if (!localIPs[ip]) onNewIP(ip);
  4402. // localIPs[ip] = true;
  4403. // }
  4404. // //create a bogus data channel
  4405. // pc.createDataChannel("");
  4406. // // create offer and set local description
  4407. // pc.createOffer().then(function(sdp) {
  4408. // sdp.sdp.split('\n').forEach(function(line) {
  4409. // if (line.indexOf('candidate') < 0) return;
  4410. // line.match(ipRegex).forEach(iterateIP);
  4411. // });
  4412. // pc.setLocalDescription(sdp, noop, noop);
  4413. // }).catch(function(reason) {
  4414. // // An error occurred, so handle the failure to connect
  4415. // });
  4416. // //sten for candidate events
  4417. // pc.onicecandidate = function(ice) {
  4418. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  4419. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  4420. // };
  4421. // }
  4422. // U.MD.D.I.getUserIpBool = function(callback){
  4423. // U.MD.D.I.getUserIP(function(ip){
  4424. // alert("Got IP! :" + ip);
  4425. // });
  4426. //}
  4427. //#endregion
  4428. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  4429. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4430. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4431. _userinfo = US.userInfo, //登錄用戶信息
  4432. _userid = US.userInfo.userid //登錄用戶id
  4433. let _iframe;
  4434. let _cid = cid,
  4435. _stage = stage,
  4436. _task = task,
  4437. _tool = tool;
  4438. var _jie = $$("div", {
  4439. "style": {
  4440. "position": "absolute",
  4441. "bottom": "50px",
  4442. "right": "50px",
  4443. "zIndex": "9999",
  4444. "backgroundColor": "#2268bc",
  4445. "color": "#fff",
  4446. "padding": "12px 20px",
  4447. "cursor": "pointer",
  4448. "borderRadius": "4px",
  4449. },
  4450. "innerHTML": "提交作業"
  4451. })
  4452. let aTool = ''
  4453. let _loading = document.createElement('div')
  4454. _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;"
  4455. // _loading.id = "";
  4456. let _lchild = document.createElement('div')
  4457. let _limg = document.createElement('img')
  4458. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4459. _limg.style = "width: 26px;margin-right: 10px;"
  4460. _lchild.appendChild(_limg)
  4461. let _lspan = document.createElement('span')
  4462. _lspan.innerHTML = "上傳中..."
  4463. _lchild.appendChild(_lspan)
  4464. _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%);"
  4465. _loading.appendChild(_lchild)
  4466. var _box = $$('div', {
  4467. "style": {
  4468. "position": "relative",
  4469. "width": "100%",
  4470. "height": "100%",
  4471. },
  4472. })
  4473. _box.appendChild(_loading)
  4474. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool + _userid
  4475. switch (str) {
  4476. case "whiteboard":
  4477. aTool = 1;
  4478. _iframe = $$("iframe", {
  4479. "frameborder": "no",
  4480. "border": "0",
  4481. "scrolling ": "no",
  4482. "style": {
  4483. "cssText": "border:0;width:100%;height:100%"
  4484. },
  4485. "src": "https://iwb.cocorobo.hk/"
  4486. })
  4487. _box.appendChild(_iframe);
  4488. _box.appendChild(_jie);
  4489. _formdiv = new U.UF.UI.form(
  4490. "電子白板",
  4491. _box, {
  4492. "id": "whiteboard" + cid + stage + task + tool,
  4493. "style": {
  4494. "width": "90%",
  4495. "height": "90%",
  4496. "overflow": 'hidden'
  4497. },
  4498. "onresize": function () { }
  4499. }, {
  4500. closecallback: function () { }
  4501. }, {
  4502. "style": {
  4503. "height": "36px"
  4504. }
  4505. }).form; //創建窗體
  4506. _taskbar = {
  4507. "id": str + _formdiv.id,
  4508. "style": {
  4509. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4510. },
  4511. "name": "電子白板",
  4512. "forms": _formdiv,
  4513. "click": function () {
  4514. U.MD.D.I.openApplication(str, obj, info);
  4515. }
  4516. }
  4517. break;
  4518. case "mind":
  4519. aTool = 3;
  4520. _iframe = $$("iframe", {
  4521. "frameborder": "no",
  4522. "border": "0",
  4523. "scrolling ": "no",
  4524. "style": {
  4525. "cssText": "border:0;width:100%;height:100%"
  4526. },
  4527. "src": "/kityminder-editor/dist/index.html"
  4528. })
  4529. _box.appendChild(_iframe);
  4530. _box.appendChild(_jie);
  4531. _formdiv = new U.UF.UI.form(
  4532. "思維導圖",
  4533. _box, { //"/jsmind/example/demo.html"
  4534. "id": "mind" + cid + stage + task + tool,
  4535. "style": {
  4536. "width": "90%",
  4537. "height": "90%",
  4538. "overflow": 'hidden'
  4539. },
  4540. "onresize": function () { }
  4541. }, {
  4542. closecallback: function () { }
  4543. }, {
  4544. "style": {
  4545. "height": "36px"
  4546. }
  4547. }).form; //創建窗體
  4548. _taskbar = {
  4549. "id": str + _formdiv.id,
  4550. "style": {
  4551. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4552. },
  4553. "name": "思維導圖",
  4554. "forms": _formdiv,
  4555. "click": function () {
  4556. U.MD.D.I.openApplication(str, obj, info);
  4557. }
  4558. }
  4559. break;
  4560. case "MindMap":
  4561. aTool = 3;
  4562. _iframe = $$("iframe", {
  4563. "frameborder": "no",
  4564. "border": "0",
  4565. "scrolling ": "no",
  4566. "style": {
  4567. "cssText": "border:0;width:100%;height:100%"
  4568. },
  4569. "src": "//cloud.cocorobo.hk/mind/"
  4570. })
  4571. _box.appendChild(_iframe);
  4572. _box.appendChild(_jie);
  4573. _formdiv = new U.UF.UI.form(
  4574. "思維導圖",
  4575. _box, { //"/jsmind/example/demo.html"
  4576. "id": "mind" + cid + stage + task + tool,
  4577. "style": {
  4578. "width": "90%",
  4579. "height": "90%",
  4580. "overflow": 'hidden'
  4581. },
  4582. "onresize": function () { }
  4583. }, {
  4584. closecallback: function () { }
  4585. }, {
  4586. "style": {
  4587. "height": "36px"
  4588. }
  4589. }).form; //創建窗體
  4590. _taskbar = {
  4591. "id": str + _formdiv.id,
  4592. "style": {
  4593. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4594. },
  4595. "name": "思維導圖",
  4596. "forms": _formdiv,
  4597. "click": function () {
  4598. U.MD.D.I.openApplication(str, obj, info);
  4599. }
  4600. }
  4601. break;
  4602. case "doc":
  4603. aTool = 6;
  4604. _iframe = $$("iframe", {
  4605. "frameborder": "no",
  4606. "border": "0",
  4607. "scrolling ": "no",
  4608. "style": {
  4609. "cssText": "border:0;width:100%;height:100%"
  4610. },
  4611. "src": "/Office/Word/WordEditArea.htm"
  4612. })
  4613. _box.appendChild(_iframe);
  4614. _box.appendChild(_jie);
  4615. _formdiv = new U.UF.UI.form(
  4616. "協同文檔",
  4617. _box, {
  4618. "id": "doc" + cid + stage + task + tool,
  4619. "style": {
  4620. "width": "90%",
  4621. "height": "90%",
  4622. "overflow": 'hidden'
  4623. },
  4624. "onresize": function () { }
  4625. }, {
  4626. closecallback: function () { }
  4627. }, {
  4628. "style": {
  4629. "height": "36px"
  4630. }
  4631. }).form; //創建窗體
  4632. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4633. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4634. })
  4635. _taskbar = {
  4636. "id": str + _formdiv.id,
  4637. "style": {
  4638. "backgroundImage": "url(/img/icon/doc.png)"
  4639. },
  4640. "name": "協同文檔",
  4641. "forms": _formdiv,
  4642. "click": function () {
  4643. U.MD.D.I.openApplication(str, obj, info);
  4644. }
  4645. }
  4646. break;
  4647. case "mindNetwork": //好友打開
  4648. aTool = 7;
  4649. _iframe = $$("iframe", {
  4650. "webkitallowfullscreen": "",
  4651. "mozallowfullscreen": "",
  4652. "allowfullscreen": "",
  4653. "frameborder": "no",
  4654. "border": "0",
  4655. "scrolling ": "no",
  4656. "style": {
  4657. "cssText": "border:0; width:100%; height:100%;"
  4658. },
  4659. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4660. })
  4661. _box.appendChild(_iframe);
  4662. _box.appendChild(_jie);
  4663. _formdiv = new U.UF.UI.form(
  4664. "思維網格",
  4665. _box, {
  4666. "id": "mindNetwork" + cid + stage + task + tool,
  4667. "style": {
  4668. "width": "90%",
  4669. "height": "90%",
  4670. "overflow": 'hidden'
  4671. },
  4672. "onresize": function () { }
  4673. }, {
  4674. closecallback: function () { }
  4675. }, {
  4676. "style": {
  4677. "height": "36px"
  4678. }
  4679. }).form; //創建窗體
  4680. _taskbar = {
  4681. "id": str + _formdiv.id,
  4682. "style": {
  4683. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4684. },
  4685. "name": "思維網格",
  4686. "forms": _formdiv,
  4687. "click": function () {
  4688. U.MD.D.I.openApplication(str, obj, info);
  4689. }
  4690. }
  4691. break;
  4692. case "courseDesign":
  4693. _iframe = $$("iframe", {
  4694. "webkitallowfullscreen": "",
  4695. "mozallowfullscreen": "",
  4696. "allowfullscreen": "",
  4697. "frameborder": "no",
  4698. "border": "0",
  4699. "scrolling ": "no",
  4700. "style": {
  4701. "cssText": "border:0; width:100%; height:100%;"
  4702. },
  4703. "src": "/course-design-vue"
  4704. })
  4705. _box.appendChild(_iframe);
  4706. _box.appendChild(_jie);
  4707. _formdiv = new U.UF.UI.form(
  4708. "項目設計",
  4709. _box, {
  4710. "id": "courseDesign" + cid + stage + task + tool,
  4711. "style": {
  4712. "width": "90%",
  4713. "height": "90%",
  4714. "overflow": 'hidden'
  4715. },
  4716. "onresize": function () { }
  4717. }, {
  4718. closecallback: function () { }
  4719. }, {
  4720. "style": {
  4721. "height": "36px"
  4722. }
  4723. }).form; //創建窗體
  4724. _taskbar = {
  4725. "id": str + _formdiv.id,
  4726. "style": {
  4727. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4728. },
  4729. "name": "項目設計",
  4730. "forms": _formdiv,
  4731. "click": function () {
  4732. U.MD.D.I.openApplication(str, obj, info);
  4733. }
  4734. }
  4735. break;
  4736. }
  4737. const script1 = document.createElement("script");
  4738. script1.type = "text/javascript";
  4739. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4740. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  4741. const script2 = document.createElement("script");
  4742. script2.type = "text/javascript";
  4743. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4744. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  4745. const script3 = document.createElement("script");
  4746. script3.type = "text/javascript";
  4747. script3.charset = "UTF-8";
  4748. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  4749. const script4 = document.createElement("script");
  4750. script4.type = "text/javascript";
  4751. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4752. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  4753. if (_iframe) {
  4754. if (str == 'doc') {
  4755. _iframe = _formdiv.querySelector('iframe')
  4756. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4757. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4758. _iframe.contentWindow.document.body.appendChild(script1);
  4759. _iframe.contentWindow.document.body.appendChild(script2);
  4760. // _iframe.contentWindow.document.body.appendChild(script3);
  4761. _iframe.contentWindow.document.body.appendChild(script4);
  4762. })
  4763. if (onloadListener) {
  4764. _iframe.contentDocument.location.reload()
  4765. } else {
  4766. _iframe.contentDocument.location.reload()
  4767. }
  4768. } else if (str == 'courseDesign') {
  4769. U.UF.DL.iframeLoad(_iframe, function () {
  4770. // _iframe.contentWindow.U.MD.O.W.load();
  4771. // _iframe.contentWindow.document.body.appendChild(script1);
  4772. _iframe.contentWindow.document.body.appendChild(script2);
  4773. _iframe.contentWindow.document.body.appendChild(script4);
  4774. })
  4775. } else if (str == 'mind') {
  4776. _iframe = _formdiv.querySelector('iframe')
  4777. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4778. //
  4779. _iframe.contentWindow.document.body.appendChild(script1);
  4780. _iframe.contentWindow.document.body.appendChild(script2);
  4781. _iframe.contentWindow.document.body.appendChild(script4);
  4782. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4783. })
  4784. if (onloadListener) {
  4785. _iframe.contentDocument.location.reload()
  4786. } else {
  4787. _iframe.contentDocument.location.reload()
  4788. }
  4789. } else if (str == 'whiteboard') {
  4790. _iframe = _formdiv.querySelector('iframe')
  4791. let onloadListener = _iframe.onload = () => {
  4792. _iframe.contentWindow.document.body.appendChild(script1);
  4793. _iframe.contentWindow.document.body.appendChild(script2);
  4794. _iframe.contentWindow.document.body.appendChild(script4);
  4795. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4796. };
  4797. if (onloadListener) {
  4798. _iframe.contentDocument.location.reload()
  4799. } else {
  4800. _iframe.contentDocument.location.reload()
  4801. }
  4802. } else {
  4803. _iframe.onload = () => {
  4804. _iframe.contentWindow.document.body.appendChild(script1);
  4805. _iframe.contentWindow.document.body.appendChild(script2);
  4806. // _iframe.contentWindow.document.body.appendChild(script3);
  4807. _iframe.contentWindow.document.body.appendChild(script4);
  4808. };
  4809. }
  4810. _jie.onclick = async () => {
  4811. let text = ''
  4812. if (aTool == 1) {
  4813. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4814. } else if (aTool == 6) {
  4815. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4816. } else if (aTool == 3) {
  4817. text = await U.MD.D.I.getEditorContent(_iframe);
  4818. }
  4819. _loading.style.display = 'flex'
  4820. console.log(_loading);
  4821. var _ajs = _iframe.contentWindow.document.createElement("script");
  4822. _ajs.type = "text/javascript";
  4823. _ajs.innerHTML =
  4824. // 'console.log(' + _loading + ');\n' +
  4825. 'var _js = document.createElement("script");\n' +
  4826. '_js.type="text/javascript";\n' +
  4827. '_js.charset="UTF-8";\n' +
  4828. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  4829. "_js.onload = function(){\n" +
  4830. ' var a = document.getElementsByTagName("img")\n' +
  4831. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4832. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4833. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4834. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4835. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  4836. "beforeUpload_shishi(file," +
  4837. "'" +
  4838. _userid +
  4839. "'" +
  4840. ", " +
  4841. "'" +
  4842. _cid +
  4843. "'" +
  4844. ", " +
  4845. "'" +
  4846. _stage +
  4847. "'" +
  4848. ", " +
  4849. "'" +
  4850. _task +
  4851. "'" +
  4852. ", " +
  4853. "'" +
  4854. _tool +
  4855. "'" +
  4856. ", " +
  4857. "'" +
  4858. (str + '_loadLi_Jie' + cid + stage + task + tool + _userid) +
  4859. "'" +
  4860. ", " +
  4861. "'" +
  4862. aTool +
  4863. "'" +
  4864. ", " +
  4865. "`" +
  4866. text +
  4867. "`" +
  4868. ")\n" +
  4869. " });\n" +
  4870. "}\n" +
  4871. "document.head.appendChild(_js);\n";
  4872. _iframe.contentWindow.document.head.appendChild(_ajs);
  4873. }
  4874. }
  4875. //U.MD.D.I.openClick(str);
  4876. //如果有任務欄信息
  4877. // if (_taskbar) {
  4878. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4879. // }
  4880. }
  4881. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4882. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4883. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4884. _userinfo = US.userInfo, //登錄用戶信息
  4885. _userid = US.userInfo.userid //登錄用戶id
  4886. let _iframe;
  4887. let _cid = cid,
  4888. _stage = stage,
  4889. _task = task,
  4890. _tool = tool;
  4891. var _jie = $$("div", {
  4892. "style": {
  4893. "position": "absolute",
  4894. "bottom": "50px",
  4895. "right": "50px",
  4896. "zIndex": "9999",
  4897. "backgroundColor": "#2268bc",
  4898. "color": "#fff",
  4899. "padding": "12px 20px",
  4900. "cursor": "pointer",
  4901. "borderRadius": "4px",
  4902. },
  4903. "innerHTML": "提交作業"
  4904. })
  4905. let aTool = ''
  4906. let _loading = document.createElement('div')
  4907. _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;"
  4908. // _loading.id = "";
  4909. let _lchild = document.createElement('div')
  4910. let _limg = document.createElement('img')
  4911. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4912. _limg.style = "width: 26px;margin-right: 10px;"
  4913. _lchild.appendChild(_limg)
  4914. let _lspan = document.createElement('span')
  4915. _lspan.innerHTML = "上傳中..."
  4916. _lchild.appendChild(_lspan)
  4917. _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%);"
  4918. _loading.appendChild(_lchild)
  4919. var _box = $$('div', {
  4920. "style": {
  4921. "position": "relative",
  4922. "width": "100%",
  4923. "height": "100%",
  4924. },
  4925. })
  4926. _box.appendChild(_loading)
  4927. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool + _userid
  4928. switch (str) {
  4929. case "whiteboard":
  4930. aTool = 1;
  4931. _iframe = $$("iframe", {
  4932. "frameborder": "no",
  4933. "border": "0",
  4934. "scrolling ": "no",
  4935. "style": {
  4936. "cssText": "border:0;width:100%;height:100%"
  4937. },
  4938. "src": "https://iwb.cocorobo.hk/"
  4939. })
  4940. _box.appendChild(_iframe);
  4941. _box.appendChild(_jie);
  4942. _formdiv = new U.UF.UI.form(
  4943. "電子白板",
  4944. _box, {
  4945. "id": "whiteboard" + cid + stage + task + tool,
  4946. "style": {
  4947. "width": "90%",
  4948. "height": "90%",
  4949. "overflow": 'hidden'
  4950. },
  4951. "onresize": function () { }
  4952. }, {
  4953. closecallback: function () { }
  4954. }, {
  4955. "style": {
  4956. "height": "36px"
  4957. }
  4958. }).form; //創建窗體
  4959. _taskbar = {
  4960. "id": str + _formdiv.id,
  4961. "style": {
  4962. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4963. },
  4964. "name": "電子白板",
  4965. "forms": _formdiv,
  4966. "click": function () {
  4967. U.MD.D.I.openApplication(str, obj, info);
  4968. }
  4969. }
  4970. break;
  4971. case "mind":
  4972. aTool = 3;
  4973. _iframe = $$("iframe", {
  4974. "frameborder": "no",
  4975. "border": "0",
  4976. "scrolling ": "no",
  4977. "style": {
  4978. "cssText": "border:0;width:100%;height:100%"
  4979. },
  4980. "src": "/kityminder-editor/dist/index.html"
  4981. })
  4982. _box.appendChild(_iframe);
  4983. _box.appendChild(_jie);
  4984. _formdiv = new U.UF.UI.form(
  4985. "思維導圖",
  4986. _box, { //"/jsmind/example/demo.html"
  4987. "id": "mind" + cid + stage + task + tool,
  4988. "style": {
  4989. "width": "90%",
  4990. "height": "90%",
  4991. "overflow": 'hidden'
  4992. },
  4993. "onresize": function () { }
  4994. }, {
  4995. closecallback: function () { }
  4996. }, {
  4997. "style": {
  4998. "height": "36px"
  4999. }
  5000. }).form; //創建窗體
  5001. _taskbar = {
  5002. "id": str + _formdiv.id,
  5003. "style": {
  5004. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5005. },
  5006. "name": "思維導圖",
  5007. "forms": _formdiv,
  5008. "click": function () {
  5009. U.MD.D.I.openApplication(str, obj, info);
  5010. }
  5011. }
  5012. break;
  5013. case "MindMap":
  5014. aTool = 3;
  5015. _iframe = $$("iframe", {
  5016. "frameborder": "no",
  5017. "border": "0",
  5018. "scrolling ": "no",
  5019. "style": {
  5020. "cssText": "border:0;width:100%;height:100%"
  5021. },
  5022. "src": "//cloud.cocorobo.hk/mind/"
  5023. })
  5024. _box.appendChild(_iframe);
  5025. _box.appendChild(_jie);
  5026. _formdiv = new U.UF.UI.form(
  5027. "思維導圖",
  5028. _box, { //"/jsmind/example/demo.html"
  5029. "id": "mind" + cid + stage + task + tool,
  5030. "style": {
  5031. "width": "90%",
  5032. "height": "90%",
  5033. "overflow": 'hidden'
  5034. },
  5035. "onresize": function () { }
  5036. }, {
  5037. closecallback: function () { }
  5038. }, {
  5039. "style": {
  5040. "height": "36px"
  5041. }
  5042. }).form; //創建窗體
  5043. _taskbar = {
  5044. "id": str + _formdiv.id,
  5045. "style": {
  5046. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5047. },
  5048. "name": "思維導圖",
  5049. "forms": _formdiv,
  5050. "click": function () {
  5051. U.MD.D.I.openApplication(str, obj, info);
  5052. }
  5053. }
  5054. break;
  5055. case "doc":
  5056. aTool = 6;
  5057. _iframe = $$("iframe", {
  5058. "frameborder": "no",
  5059. "border": "0",
  5060. "scrolling ": "no",
  5061. "style": {
  5062. "cssText": "border:0;width:100%;height:100%"
  5063. },
  5064. "src": "/Office/Word/WordEditArea.htm"
  5065. })
  5066. _box.appendChild(_iframe);
  5067. _box.appendChild(_jie);
  5068. _formdiv = new U.UF.UI.form(
  5069. "協同文檔",
  5070. _box, {
  5071. "id": "doc" + cid + stage + task + tool,
  5072. "style": {
  5073. "width": "90%",
  5074. "height": "90%",
  5075. "overflow": 'hidden'
  5076. },
  5077. "onresize": function () { }
  5078. }, {
  5079. closecallback: function () { }
  5080. }, {
  5081. "style": {
  5082. "height": "36px"
  5083. }
  5084. }).form; //創建窗體
  5085. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5086. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5087. })
  5088. _taskbar = {
  5089. "id": str + _formdiv.id,
  5090. "style": {
  5091. "backgroundImage": "url(/img/icon/doc.png)"
  5092. },
  5093. "name": "協同文檔",
  5094. "forms": _formdiv,
  5095. "click": function () {
  5096. U.MD.D.I.openApplication(str, obj, info);
  5097. }
  5098. }
  5099. break;
  5100. case "mindNetwork": //好友打開
  5101. aTool = 7;
  5102. _iframe = $$("iframe", {
  5103. "webkitallowfullscreen": "",
  5104. "mozallowfullscreen": "",
  5105. "allowfullscreen": "",
  5106. "frameborder": "no",
  5107. "border": "0",
  5108. "scrolling ": "no",
  5109. "style": {
  5110. "cssText": "border:0; width:100%; height:100%;"
  5111. },
  5112. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5113. })
  5114. _box.appendChild(_iframe);
  5115. _box.appendChild(_jie);
  5116. _formdiv = new U.UF.UI.form(
  5117. "思維網格",
  5118. _box, {
  5119. "id": "mindNetwork" + cid + stage + task + tool,
  5120. "style": {
  5121. "width": "90%",
  5122. "height": "90%",
  5123. "overflow": 'hidden'
  5124. },
  5125. "onresize": function () { }
  5126. }, {
  5127. closecallback: function () { }
  5128. }, {
  5129. "style": {
  5130. "height": "36px"
  5131. }
  5132. }).form; //創建窗體
  5133. _taskbar = {
  5134. "id": str + _formdiv.id,
  5135. "style": {
  5136. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5137. },
  5138. "name": "思維網格",
  5139. "forms": _formdiv,
  5140. "click": function () {
  5141. U.MD.D.I.openApplication(str, obj, info);
  5142. }
  5143. }
  5144. break;
  5145. case "courseDesign":
  5146. _iframe = $$("iframe", {
  5147. "webkitallowfullscreen": "",
  5148. "mozallowfullscreen": "",
  5149. "allowfullscreen": "",
  5150. "frameborder": "no",
  5151. "border": "0",
  5152. "scrolling ": "no",
  5153. "style": {
  5154. "cssText": "border:0; width:100%; height:100%;"
  5155. },
  5156. "src": "/course-design-vue"
  5157. })
  5158. _box.appendChild(_iframe);
  5159. _box.appendChild(_jie);
  5160. _formdiv = new U.UF.UI.form(
  5161. "項目設計",
  5162. _box, {
  5163. "id": "courseDesign" + cid + stage + task + tool,
  5164. "style": {
  5165. "width": "90%",
  5166. "height": "90%",
  5167. "overflow": 'hidden'
  5168. },
  5169. "onresize": function () { }
  5170. }, {
  5171. closecallback: function () { }
  5172. }, {
  5173. "style": {
  5174. "height": "36px"
  5175. }
  5176. }).form; //創建窗體
  5177. _taskbar = {
  5178. "id": str + _formdiv.id,
  5179. "style": {
  5180. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5181. },
  5182. "name": "項目設計",
  5183. "forms": _formdiv,
  5184. "click": function () {
  5185. U.MD.D.I.openApplication(str, obj, info);
  5186. }
  5187. }
  5188. break;
  5189. }
  5190. const script1 = document.createElement("script");
  5191. script1.type = "text/javascript";
  5192. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5193. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5194. const script2 = document.createElement("script");
  5195. script2.type = "text/javascript";
  5196. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5197. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5198. const script3 = document.createElement("script");
  5199. script3.type = "text/javascript";
  5200. script3.charset = "UTF-8";
  5201. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5202. const script4 = document.createElement("script");
  5203. script4.type = "text/javascript";
  5204. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5205. script4.src = window.origin + "/js/Common/jietu2E.js";
  5206. if (_iframe) {
  5207. if (str == 'doc') {
  5208. _iframe = _formdiv.querySelector('iframe')
  5209. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5210. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5211. _iframe.contentWindow.document.body.appendChild(script1);
  5212. _iframe.contentWindow.document.body.appendChild(script2);
  5213. // _iframe.contentWindow.document.body.appendChild(script3);
  5214. _iframe.contentWindow.document.body.appendChild(script4);
  5215. })
  5216. if (onloadListener) {
  5217. _iframe.contentDocument.location.reload()
  5218. } else {
  5219. _iframe.contentDocument.location.reload()
  5220. }
  5221. } else if (str == 'courseDesign') {
  5222. U.UF.DL.iframeLoad(_iframe, function () {
  5223. // _iframe.contentWindow.U.MD.O.W.load();
  5224. // _iframe.contentWindow.document.body.appendChild(script1);
  5225. _iframe.contentWindow.document.body.appendChild(script2);
  5226. _iframe.contentWindow.document.body.appendChild(script4);
  5227. })
  5228. } else if (str == 'mind') {
  5229. _iframe = _formdiv.querySelector('iframe')
  5230. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5231. //
  5232. _iframe.contentWindow.document.body.appendChild(script1);
  5233. _iframe.contentWindow.document.body.appendChild(script2);
  5234. _iframe.contentWindow.document.body.appendChild(script4);
  5235. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5236. })
  5237. if (onloadListener) {
  5238. _iframe.contentDocument.location.reload()
  5239. } else {
  5240. _iframe.contentDocument.location.reload()
  5241. }
  5242. } else if (str == 'whiteboard') {
  5243. _iframe = _formdiv.querySelector('iframe')
  5244. let onloadListener = _iframe.onload = () => {
  5245. _iframe.contentWindow.document.body.appendChild(script1);
  5246. _iframe.contentWindow.document.body.appendChild(script2);
  5247. _iframe.contentWindow.document.body.appendChild(script4);
  5248. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5249. };
  5250. if (onloadListener) {
  5251. _iframe.contentDocument.location.reload()
  5252. } else {
  5253. _iframe.contentDocument.location.reload()
  5254. }
  5255. } else {
  5256. _iframe.onload = () => {
  5257. _iframe.contentWindow.document.body.appendChild(script1);
  5258. _iframe.contentWindow.document.body.appendChild(script2);
  5259. // _iframe.contentWindow.document.body.appendChild(script3);
  5260. _iframe.contentWindow.document.body.appendChild(script4);
  5261. };
  5262. }
  5263. _jie.onclick = async () => {
  5264. let text = ''
  5265. if (aTool == 1) {
  5266. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5267. } else if (aTool == 6) {
  5268. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5269. } else if (aTool == 3) {
  5270. text = await U.MD.D.I.getEditorContent(_iframe);
  5271. }
  5272. _loading.style.display = 'flex'
  5273. console.log(_loading);
  5274. var _ajs = _iframe.contentWindow.document.createElement("script");
  5275. _ajs.type = "text/javascript";
  5276. _ajs.innerHTML =
  5277. // 'console.log(' + _loading + ');\n' +
  5278. 'var _js = document.createElement("script");\n' +
  5279. '_js.type="text/javascript";\n' +
  5280. '_js.charset="UTF-8";\n' +
  5281. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5282. "_js.onload = function(){\n" +
  5283. ' var a = document.getElementsByTagName("img")\n' +
  5284. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5285. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5286. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5287. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5288. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5289. "beforeUpload_shishi(file," +
  5290. "'" +
  5291. _userid +
  5292. "'" +
  5293. ", " +
  5294. "'" +
  5295. _cid +
  5296. "'" +
  5297. ", " +
  5298. "'" +
  5299. _stage +
  5300. "'" +
  5301. ", " +
  5302. "'" +
  5303. _task +
  5304. "'" +
  5305. ", " +
  5306. "'" +
  5307. _tool +
  5308. "'" +
  5309. ", " +
  5310. "'" +
  5311. (str + '_loadLi_JieE' + cid + stage + task + tool + _userid) +
  5312. "'" +
  5313. ", " +
  5314. "'" +
  5315. aTool +
  5316. "'" +
  5317. ", " +
  5318. "`" +
  5319. text +
  5320. "`" +
  5321. ")\n" +
  5322. " });\n" +
  5323. "}\n" +
  5324. "document.head.appendChild(_js);\n";
  5325. _iframe.contentWindow.document.head.appendChild(_ajs);
  5326. }
  5327. }
  5328. //U.MD.D.I.openClick(str);
  5329. //如果有任務欄信息
  5330. // if (_taskbar) {
  5331. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  5332. // }
  5333. }
  5334. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  5335. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5336. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5337. _userid = student.userid, //登錄用戶id
  5338. _username = student.student //用戶名字
  5339. let _iframe;
  5340. let _cid = cid,
  5341. _stage = stage,
  5342. _task = task,
  5343. _tool = tool;
  5344. var _jie = $$("div", {
  5345. "style": {
  5346. "position": "absolute",
  5347. "bottom": "50px",
  5348. "right": "50px",
  5349. "zIndex": "9999",
  5350. "backgroundColor": "#2268bc",
  5351. "color": "#fff",
  5352. "padding": "12px 20px",
  5353. "cursor": "pointer",
  5354. "borderRadius": "4px",
  5355. },
  5356. "innerHTML": "提交作業"
  5357. })
  5358. let aTool = ''
  5359. let _loading = document.createElement('div')
  5360. _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;"
  5361. // _loading.id = "";
  5362. let _lchild = document.createElement('div')
  5363. let _limg = document.createElement('img')
  5364. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5365. _limg.style = "width: 26px;margin-right: 10px;"
  5366. _lchild.appendChild(_limg)
  5367. let _lspan = document.createElement('span')
  5368. _lspan.innerHTML = "上傳中..."
  5369. _lchild.appendChild(_lspan)
  5370. _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%);"
  5371. _loading.appendChild(_lchild)
  5372. var _box = $$('div', {
  5373. "style": {
  5374. "position": "relative",
  5375. "width": "100%",
  5376. "height": "100%",
  5377. },
  5378. })
  5379. _box.appendChild(_loading)
  5380. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid
  5381. switch (str) {
  5382. case "whiteboard":
  5383. aTool = 1;
  5384. _iframe = $$("iframe", {
  5385. "frameborder": "no",
  5386. "border": "0",
  5387. "scrolling ": "no",
  5388. "style": {
  5389. "cssText": "border:0;width:100%;height:100%"
  5390. },
  5391. "src": "https://iwb.cocorobo.hk/"
  5392. })
  5393. _box.appendChild(_iframe);
  5394. _box.appendChild(_jie);
  5395. _formdiv = new U.UF.UI.form(
  5396. "電子白板-" + _username,
  5397. _box, {
  5398. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5399. "style": {
  5400. "width": "90%",
  5401. "height": "90%",
  5402. "overflow": 'hidden'
  5403. },
  5404. "onresize": function () { }
  5405. }, {
  5406. closecallback: function () { }
  5407. }, {
  5408. "style": {
  5409. "height": "36px"
  5410. }
  5411. }).form; //創建窗體
  5412. _taskbar = {
  5413. "id": str + _formdiv.id,
  5414. "style": {
  5415. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5416. },
  5417. "name": "電子白板",
  5418. "forms": _formdiv,
  5419. "click": function () {
  5420. U.MD.D.I.openApplication(str, obj, info);
  5421. }
  5422. }
  5423. break;
  5424. case "mind":
  5425. aTool = 3;
  5426. _iframe = $$("iframe", {
  5427. "frameborder": "no",
  5428. "border": "0",
  5429. "scrolling ": "no",
  5430. "style": {
  5431. "cssText": "border:0;width:100%;height:100%"
  5432. },
  5433. "src": "/kityminder-editor/dist/index.html"
  5434. })
  5435. _box.appendChild(_iframe);
  5436. _box.appendChild(_jie);
  5437. _formdiv = new U.UF.UI.form(
  5438. "思維導圖-" + _username,
  5439. _box, { //"/jsmind/example/demo.html"
  5440. "id": "mind" + cid + stage + task + tool + _userid,
  5441. "style": {
  5442. "width": "90%",
  5443. "height": "90%",
  5444. "overflow": 'hidden'
  5445. },
  5446. "onresize": function () { }
  5447. }, {
  5448. closecallback: function () { }
  5449. }, {
  5450. "style": {
  5451. "height": "36px"
  5452. }
  5453. }).form; //創建窗體
  5454. _taskbar = {
  5455. "id": str + _formdiv.id,
  5456. "style": {
  5457. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5458. },
  5459. "name": "思維導圖",
  5460. "forms": _formdiv,
  5461. "click": function () {
  5462. U.MD.D.I.openApplication(str, obj, info);
  5463. }
  5464. }
  5465. break;
  5466. case "MindMap":
  5467. aTool = 3;
  5468. _iframe = $$("iframe", {
  5469. "frameborder": "no",
  5470. "border": "0",
  5471. "scrolling ": "no",
  5472. "style": {
  5473. "cssText": "border:0;width:100%;height:100%"
  5474. },
  5475. "src": "//cloud.cocorobo.hk/mind/"
  5476. })
  5477. _box.appendChild(_iframe);
  5478. _box.appendChild(_jie);
  5479. _formdiv = new U.UF.UI.form(
  5480. "思維導圖-" + _username,
  5481. _box, { //"/jsmind/example/demo.html"
  5482. "id": "mind" + cid + stage + task + tool + _userid,
  5483. "style": {
  5484. "width": "90%",
  5485. "height": "90%",
  5486. "overflow": 'hidden'
  5487. },
  5488. "onresize": function () { }
  5489. }, {
  5490. closecallback: function () { }
  5491. }, {
  5492. "style": {
  5493. "height": "36px"
  5494. }
  5495. }).form; //創建窗體
  5496. _taskbar = {
  5497. "id": str + _formdiv.id,
  5498. "style": {
  5499. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5500. },
  5501. "name": "思維導圖",
  5502. "forms": _formdiv,
  5503. "click": function () {
  5504. U.MD.D.I.openApplication(str, obj, info);
  5505. }
  5506. }
  5507. break;
  5508. case "doc":
  5509. aTool = 6;
  5510. _iframe = $$("iframe", {
  5511. "frameborder": "no",
  5512. "border": "0",
  5513. "scrolling ": "no",
  5514. "style": {
  5515. "cssText": "border:0;width:100%;height:100%"
  5516. },
  5517. "src": "/Office/Word/WordEditArea.htm"
  5518. })
  5519. _box.appendChild(_iframe);
  5520. _box.appendChild(_jie);
  5521. _formdiv = new U.UF.UI.form(
  5522. "協同文檔-" + _username,
  5523. _box, {
  5524. "id": "doc" + cid + stage + task + tool + _userid,
  5525. "style": {
  5526. "width": "90%",
  5527. "height": "90%",
  5528. "overflow": 'hidden'
  5529. },
  5530. "onresize": function () { }
  5531. }, {
  5532. closecallback: function () { }
  5533. }, {
  5534. "style": {
  5535. "height": "36px"
  5536. }
  5537. }).form; //創建窗體
  5538. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5539. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5540. })
  5541. _taskbar = {
  5542. "id": str + _formdiv.id,
  5543. "style": {
  5544. "backgroundImage": "url(/img/icon/doc.png)"
  5545. },
  5546. "name": "協同文檔",
  5547. "forms": _formdiv,
  5548. "click": function () {
  5549. U.MD.D.I.openApplication(str, obj, info);
  5550. }
  5551. }
  5552. break;
  5553. case "mindNetwork": //好友打開
  5554. aTool = 7;
  5555. _iframe = $$("iframe", {
  5556. "webkitallowfullscreen": "",
  5557. "mozallowfullscreen": "",
  5558. "allowfullscreen": "",
  5559. "frameborder": "no",
  5560. "border": "0",
  5561. "scrolling ": "no",
  5562. "style": {
  5563. "cssText": "border:0; width:100%; height:100%;"
  5564. },
  5565. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5566. })
  5567. _box.appendChild(_iframe);
  5568. _box.appendChild(_jie);
  5569. _formdiv = new U.UF.UI.form(
  5570. "思維網格-" + _username,
  5571. _box, {
  5572. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5573. "style": {
  5574. "width": "90%",
  5575. "height": "90%",
  5576. "overflow": 'hidden'
  5577. },
  5578. "onresize": function () { }
  5579. }, {
  5580. closecallback: function () { }
  5581. }, {
  5582. "style": {
  5583. "height": "36px"
  5584. }
  5585. }).form; //創建窗體
  5586. _taskbar = {
  5587. "id": str + _formdiv.id,
  5588. "style": {
  5589. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5590. },
  5591. "name": "思維網格",
  5592. "forms": _formdiv,
  5593. "click": function () {
  5594. U.MD.D.I.openApplication(str, obj, info);
  5595. }
  5596. }
  5597. break;
  5598. case "courseDesign":
  5599. _iframe = $$("iframe", {
  5600. "webkitallowfullscreen": "",
  5601. "mozallowfullscreen": "",
  5602. "allowfullscreen": "",
  5603. "frameborder": "no",
  5604. "border": "0",
  5605. "scrolling ": "no",
  5606. "style": {
  5607. "cssText": "border:0; width:100%; height:100%;"
  5608. },
  5609. "src": "/course-design-vue"
  5610. })
  5611. _box.appendChild(_iframe);
  5612. _box.appendChild(_jie);
  5613. _formdiv = new U.UF.UI.form(
  5614. "項目設計-" + _username,
  5615. _box, {
  5616. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5617. "style": {
  5618. "width": "90%",
  5619. "height": "90%",
  5620. "overflow": 'hidden'
  5621. },
  5622. "onresize": function () { }
  5623. }, {
  5624. closecallback: function () { }
  5625. }, {
  5626. "style": {
  5627. "height": "36px"
  5628. }
  5629. }).form; //創建窗體
  5630. _taskbar = {
  5631. "id": str + _formdiv.id,
  5632. "style": {
  5633. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5634. },
  5635. "name": "項目設計",
  5636. "forms": _formdiv,
  5637. "click": function () {
  5638. U.MD.D.I.openApplication(str, obj, info);
  5639. }
  5640. }
  5641. break;
  5642. }
  5643. const script1 = document.createElement("script");
  5644. script1.type = "text/javascript";
  5645. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5646. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5647. const script2 = document.createElement("script");
  5648. script2.type = "text/javascript";
  5649. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5650. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5651. const script3 = document.createElement("script");
  5652. script3.type = "text/javascript";
  5653. script3.charset = "UTF-8";
  5654. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5655. const script4 = document.createElement("script");
  5656. script4.type = "text/javascript";
  5657. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5658. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  5659. if (_iframe) {
  5660. if (str == 'doc') {
  5661. _iframe = _formdiv.querySelector('iframe')
  5662. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5663. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5664. _iframe.contentWindow.document.body.appendChild(script1);
  5665. _iframe.contentWindow.document.body.appendChild(script2);
  5666. // _iframe.contentWindow.document.body.appendChild(script3);
  5667. _iframe.contentWindow.document.body.appendChild(script4);
  5668. })
  5669. if (onloadListener) {
  5670. _iframe.contentDocument.location.reload()
  5671. } else {
  5672. _iframe.contentDocument.location.reload()
  5673. }
  5674. } else if (str == 'courseDesign') {
  5675. U.UF.DL.iframeLoad(_iframe, function () {
  5676. // _iframe.contentWindow.U.MD.O.W.load();
  5677. // _iframe.contentWindow.document.body.appendChild(script1);
  5678. _iframe.contentWindow.document.body.appendChild(script2);
  5679. _iframe.contentWindow.document.body.appendChild(script4);
  5680. })
  5681. } else if (str == 'mind') {
  5682. _iframe = _formdiv.querySelector('iframe')
  5683. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5684. //
  5685. _iframe.contentWindow.document.body.appendChild(script1);
  5686. _iframe.contentWindow.document.body.appendChild(script2);
  5687. _iframe.contentWindow.document.body.appendChild(script4);
  5688. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5689. })
  5690. if (onloadListener) {
  5691. _iframe.contentDocument.location.reload()
  5692. } else {
  5693. _iframe.contentDocument.location.reload()
  5694. }
  5695. } else if (str == 'whiteboard') {
  5696. _iframe = _formdiv.querySelector('iframe')
  5697. let onloadListener = _iframe.onload = () => {
  5698. _iframe.contentWindow.document.body.appendChild(script1);
  5699. _iframe.contentWindow.document.body.appendChild(script2);
  5700. _iframe.contentWindow.document.body.appendChild(script4);
  5701. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5702. };
  5703. if (onloadListener) {
  5704. _iframe.contentDocument.location.reload()
  5705. } else {
  5706. _iframe.contentDocument.location.reload()
  5707. }
  5708. } else {
  5709. _iframe.onload = () => {
  5710. _iframe.contentWindow.document.body.appendChild(script1);
  5711. _iframe.contentWindow.document.body.appendChild(script2);
  5712. // _iframe.contentWindow.document.body.appendChild(script3);
  5713. _iframe.contentWindow.document.body.appendChild(script4);
  5714. };
  5715. }
  5716. _jie.onclick = async () => {
  5717. let text = ''
  5718. if (aTool == 1) {
  5719. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5720. } else if (aTool == 6) {
  5721. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5722. } else if (aTool == 3) {
  5723. text = await U.MD.D.I.getEditorContent(_iframe);
  5724. }
  5725. _loading.style.display = 'flex'
  5726. console.log(_loading);
  5727. var _ajs = _iframe.contentWindow.document.createElement("script");
  5728. _ajs.type = "text/javascript";
  5729. _ajs.innerHTML =
  5730. // 'console.log(' + _loading + ');\n' +
  5731. 'var _js = document.createElement("script");\n' +
  5732. '_js.type="text/javascript";\n' +
  5733. '_js.charset="UTF-8";\n' +
  5734. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5735. "_js.onload = function(){\n" +
  5736. ' var a = document.getElementsByTagName("img")\n' +
  5737. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5738. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5739. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5740. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5741. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5742. "beforeUpload_shishi(file," +
  5743. "'" +
  5744. _userid +
  5745. "'" +
  5746. ", " +
  5747. "'" +
  5748. _cid +
  5749. "'" +
  5750. ", " +
  5751. "'" +
  5752. _stage +
  5753. "'" +
  5754. ", " +
  5755. "'" +
  5756. _task +
  5757. "'" +
  5758. ", " +
  5759. "'" +
  5760. _tool +
  5761. "'" +
  5762. ", " +
  5763. "'" +
  5764. (str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid) +
  5765. "'" +
  5766. ", " +
  5767. "'" +
  5768. aTool +
  5769. "'" +
  5770. ", " +
  5771. "`" +
  5772. text +
  5773. "`" +
  5774. ")\n" +
  5775. " });\n" +
  5776. "}\n" +
  5777. "document.head.appendChild(_js);\n";
  5778. _iframe.contentWindow.document.head.appendChild(_ajs);
  5779. }
  5780. }
  5781. }
  5782. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5783. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5784. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5785. _userid = student.userid, //登錄用戶id
  5786. _username = student.student //用戶名字
  5787. let _iframe;
  5788. let _cid = cid,
  5789. _stage = stage,
  5790. _task = task,
  5791. _tool = tool;
  5792. var _jie = $$("div", {
  5793. "style": {
  5794. "position": "absolute",
  5795. "bottom": "50px",
  5796. "right": "50px",
  5797. "zIndex": "9999",
  5798. "backgroundColor": "#2268bc",
  5799. "color": "#fff",
  5800. "padding": "12px 20px",
  5801. "cursor": "pointer",
  5802. "borderRadius": "4px",
  5803. },
  5804. "innerHTML": "提交作業"
  5805. })
  5806. let aTool = ''
  5807. let _loading = document.createElement('div')
  5808. _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;"
  5809. // _loading.id = "";
  5810. let _lchild = document.createElement('div')
  5811. let _limg = document.createElement('img')
  5812. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5813. _limg.style = "width: 26px;margin-right: 10px;"
  5814. _lchild.appendChild(_limg)
  5815. let _lspan = document.createElement('span')
  5816. _lspan.innerHTML = "上傳中..."
  5817. _lchild.appendChild(_lspan)
  5818. _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%);"
  5819. _loading.appendChild(_lchild)
  5820. var _box = $$('div', {
  5821. "style": {
  5822. "position": "relative",
  5823. "width": "100%",
  5824. "height": "100%",
  5825. },
  5826. })
  5827. _box.appendChild(_loading)
  5828. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5829. switch (str) {
  5830. case "whiteboard":
  5831. aTool = 1;
  5832. _iframe = $$("iframe", {
  5833. "frameborder": "no",
  5834. "border": "0",
  5835. "scrolling ": "no",
  5836. "style": {
  5837. "cssText": "border:0;width:100%;height:100%"
  5838. },
  5839. "src": "https://iwb.cocorobo.hk/"
  5840. })
  5841. _box.appendChild(_iframe);
  5842. _box.appendChild(_jie);
  5843. _formdiv = new U.UF.UI.form(
  5844. "電子白板-" + _username,
  5845. _box, {
  5846. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5847. "style": {
  5848. "width": "90%",
  5849. "height": "90%",
  5850. "overflow": 'hidden'
  5851. },
  5852. "onresize": function () { }
  5853. }, {
  5854. closecallback: function () { }
  5855. }, {
  5856. "style": {
  5857. "height": "36px"
  5858. }
  5859. }).form; //創建窗體
  5860. _taskbar = {
  5861. "id": str + _formdiv.id,
  5862. "style": {
  5863. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5864. },
  5865. "name": "電子白板",
  5866. "forms": _formdiv,
  5867. "click": function () {
  5868. U.MD.D.I.openApplication(str, obj, info);
  5869. }
  5870. }
  5871. break;
  5872. case "mind":
  5873. aTool = 3;
  5874. _iframe = $$("iframe", {
  5875. "frameborder": "no",
  5876. "border": "0",
  5877. "scrolling ": "no",
  5878. "style": {
  5879. "cssText": "border:0;width:100%;height:100%"
  5880. },
  5881. "src": "/kityminder-editor/dist/index.html"
  5882. })
  5883. _box.appendChild(_iframe);
  5884. _box.appendChild(_jie);
  5885. _formdiv = new U.UF.UI.form(
  5886. "思維導圖-" + _username,
  5887. _box, { //"/jsmind/example/demo.html"
  5888. "id": "mind" + cid + stage + task + tool + _userid,
  5889. "style": {
  5890. "width": "90%",
  5891. "height": "90%",
  5892. "overflow": 'hidden'
  5893. },
  5894. "onresize": function () { }
  5895. }, {
  5896. closecallback: function () { }
  5897. }, {
  5898. "style": {
  5899. "height": "36px"
  5900. }
  5901. }).form; //創建窗體
  5902. _taskbar = {
  5903. "id": str + _formdiv.id,
  5904. "style": {
  5905. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5906. },
  5907. "name": "思維導圖",
  5908. "forms": _formdiv,
  5909. "click": function () {
  5910. U.MD.D.I.openApplication(str, obj, info);
  5911. }
  5912. }
  5913. break;
  5914. case "MindMap":
  5915. aTool = 3;
  5916. _iframe = $$("iframe", {
  5917. "frameborder": "no",
  5918. "border": "0",
  5919. "scrolling ": "no",
  5920. "style": {
  5921. "cssText": "border:0;width:100%;height:100%"
  5922. },
  5923. "src": "//cloud.cocorobo.hk/mind/"
  5924. })
  5925. _box.appendChild(_iframe);
  5926. _box.appendChild(_jie);
  5927. _formdiv = new U.UF.UI.form(
  5928. "思維導圖-" + _username,
  5929. _box, { //"/jsmind/example/demo.html"
  5930. "id": "mind" + cid + stage + task + tool + _userid,
  5931. "style": {
  5932. "width": "90%",
  5933. "height": "90%",
  5934. "overflow": 'hidden'
  5935. },
  5936. "onresize": function () { }
  5937. }, {
  5938. closecallback: function () { }
  5939. }, {
  5940. "style": {
  5941. "height": "36px"
  5942. }
  5943. }).form; //創建窗體
  5944. _taskbar = {
  5945. "id": str + _formdiv.id,
  5946. "style": {
  5947. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5948. },
  5949. "name": "思維導圖",
  5950. "forms": _formdiv,
  5951. "click": function () {
  5952. U.MD.D.I.openApplication(str, obj, info);
  5953. }
  5954. }
  5955. break;
  5956. case "doc":
  5957. aTool = 6;
  5958. _iframe = $$("iframe", {
  5959. "frameborder": "no",
  5960. "border": "0",
  5961. "scrolling ": "no",
  5962. "style": {
  5963. "cssText": "border:0;width:100%;height:100%"
  5964. },
  5965. "src": "/Office/Word/WordEditArea.htm"
  5966. })
  5967. _box.appendChild(_iframe);
  5968. _box.appendChild(_jie);
  5969. _formdiv = new U.UF.UI.form(
  5970. "協同文檔-" + _username,
  5971. _box, {
  5972. "id": "doc" + cid + stage + task + tool + _userid,
  5973. "style": {
  5974. "width": "90%",
  5975. "height": "90%",
  5976. "overflow": 'hidden'
  5977. },
  5978. "onresize": function () { }
  5979. }, {
  5980. closecallback: function () { }
  5981. }, {
  5982. "style": {
  5983. "height": "36px"
  5984. }
  5985. }).form; //創建窗體
  5986. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5987. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5988. })
  5989. _taskbar = {
  5990. "id": str + _formdiv.id,
  5991. "style": {
  5992. "backgroundImage": "url(/img/icon/doc.png)"
  5993. },
  5994. "name": "協同文檔",
  5995. "forms": _formdiv,
  5996. "click": function () {
  5997. U.MD.D.I.openApplication(str, obj, info);
  5998. }
  5999. }
  6000. break;
  6001. case "mindNetwork": //好友打開
  6002. aTool = 7;
  6003. _iframe = $$("iframe", {
  6004. "webkitallowfullscreen": "",
  6005. "mozallowfullscreen": "",
  6006. "allowfullscreen": "",
  6007. "frameborder": "no",
  6008. "border": "0",
  6009. "scrolling ": "no",
  6010. "style": {
  6011. "cssText": "border:0; width:100%; height:100%;"
  6012. },
  6013. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  6014. })
  6015. _box.appendChild(_iframe);
  6016. _box.appendChild(_jie);
  6017. _formdiv = new U.UF.UI.form(
  6018. "思維網格-" + _username,
  6019. _box, {
  6020. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  6021. "style": {
  6022. "width": "90%",
  6023. "height": "90%",
  6024. "overflow": 'hidden'
  6025. },
  6026. "onresize": function () { }
  6027. }, {
  6028. closecallback: function () { }
  6029. }, {
  6030. "style": {
  6031. "height": "36px"
  6032. }
  6033. }).form; //創建窗體
  6034. _taskbar = {
  6035. "id": str + _formdiv.id,
  6036. "style": {
  6037. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  6038. },
  6039. "name": "思維網格",
  6040. "forms": _formdiv,
  6041. "click": function () {
  6042. U.MD.D.I.openApplication(str, obj, info);
  6043. }
  6044. }
  6045. break;
  6046. case "courseDesign":
  6047. _iframe = $$("iframe", {
  6048. "webkitallowfullscreen": "",
  6049. "mozallowfullscreen": "",
  6050. "allowfullscreen": "",
  6051. "frameborder": "no",
  6052. "border": "0",
  6053. "scrolling ": "no",
  6054. "style": {
  6055. "cssText": "border:0; width:100%; height:100%;"
  6056. },
  6057. "src": "/course-design-vue"
  6058. })
  6059. _box.appendChild(_iframe);
  6060. _box.appendChild(_jie);
  6061. _formdiv = new U.UF.UI.form(
  6062. "項目設計-" + _username,
  6063. _box, {
  6064. "id": "courseDesign" + cid + stage + task + tool + _userid,
  6065. "style": {
  6066. "width": "90%",
  6067. "height": "90%",
  6068. "overflow": 'hidden'
  6069. },
  6070. "onresize": function () { }
  6071. }, {
  6072. closecallback: function () { }
  6073. }, {
  6074. "style": {
  6075. "height": "36px"
  6076. }
  6077. }).form; //創建窗體
  6078. _taskbar = {
  6079. "id": str + _formdiv.id,
  6080. "style": {
  6081. "backgroundImage": "url(/img/icon/courseDesign.png)"
  6082. },
  6083. "name": "項目設計",
  6084. "forms": _formdiv,
  6085. "click": function () {
  6086. U.MD.D.I.openApplication(str, obj, info);
  6087. }
  6088. }
  6089. break;
  6090. }
  6091. const script1 = document.createElement("script");
  6092. script1.type = "text/javascript";
  6093. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6094. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6095. const script2 = document.createElement("script");
  6096. script2.type = "text/javascript";
  6097. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6098. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6099. const script3 = document.createElement("script");
  6100. script3.type = "text/javascript";
  6101. script3.charset = "UTF-8";
  6102. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6103. const script4 = document.createElement("script");
  6104. script4.type = "text/javascript";
  6105. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  6106. script4.src = window.origin + "/js/Common/jietu2E.js";
  6107. if (_iframe) {
  6108. if (str == 'doc') {
  6109. _iframe = _formdiv.querySelector('iframe')
  6110. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6111. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  6112. _iframe.contentWindow.document.body.appendChild(script1);
  6113. _iframe.contentWindow.document.body.appendChild(script2);
  6114. // _iframe.contentWindow.document.body.appendChild(script3);
  6115. _iframe.contentWindow.document.body.appendChild(script4);
  6116. })
  6117. if (onloadListener) {
  6118. _iframe.contentDocument.location.reload()
  6119. } else {
  6120. _iframe.contentDocument.location.reload()
  6121. }
  6122. } else if (str == 'courseDesign') {
  6123. U.UF.DL.iframeLoad(_iframe, function () {
  6124. // _iframe.contentWindow.U.MD.O.W.load();
  6125. // _iframe.contentWindow.document.body.appendChild(script1);
  6126. _iframe.contentWindow.document.body.appendChild(script2);
  6127. _iframe.contentWindow.document.body.appendChild(script4);
  6128. })
  6129. } else if (str == 'mind') {
  6130. _iframe = _formdiv.querySelector('iframe')
  6131. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6132. //
  6133. _iframe.contentWindow.document.body.appendChild(script1);
  6134. _iframe.contentWindow.document.body.appendChild(script2);
  6135. _iframe.contentWindow.document.body.appendChild(script4);
  6136. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  6137. })
  6138. if (onloadListener) {
  6139. _iframe.contentDocument.location.reload()
  6140. } else {
  6141. _iframe.contentDocument.location.reload()
  6142. }
  6143. } else if (str == 'whiteboard') {
  6144. _iframe = _formdiv.querySelector('iframe')
  6145. let onloadListener = _iframe.onload = () => {
  6146. _iframe.contentWindow.document.body.appendChild(script1);
  6147. _iframe.contentWindow.document.body.appendChild(script2);
  6148. _iframe.contentWindow.document.body.appendChild(script4);
  6149. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  6150. };
  6151. if (onloadListener) {
  6152. _iframe.contentDocument.location.reload()
  6153. } else {
  6154. _iframe.contentDocument.location.reload()
  6155. }
  6156. } else {
  6157. _iframe.onload = () => {
  6158. _iframe.contentWindow.document.body.appendChild(script1);
  6159. _iframe.contentWindow.document.body.appendChild(script2);
  6160. // _iframe.contentWindow.document.body.appendChild(script3);
  6161. _iframe.contentWindow.document.body.appendChild(script4);
  6162. };
  6163. }
  6164. _jie.onclick = async () => {
  6165. let text = ''
  6166. if (aTool == 1) {
  6167. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6168. } else if (aTool == 6) {
  6169. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6170. } else if (aTool == 3) {
  6171. text = await U.MD.D.I.getEditorContent(_iframe);
  6172. }
  6173. _loading.style.display = 'flex'
  6174. console.log(_loading);
  6175. var _ajs = _iframe.contentWindow.document.createElement("script");
  6176. _ajs.type = "text/javascript";
  6177. _ajs.innerHTML =
  6178. // 'console.log(' + _loading + ');\n' +
  6179. 'var _js = document.createElement("script");\n' +
  6180. '_js.type="text/javascript";\n' +
  6181. '_js.charset="UTF-8";\n' +
  6182. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6183. "_js.onload = function(){\n" +
  6184. ' var a = document.getElementsByTagName("img")\n' +
  6185. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6186. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6187. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6188. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6189. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6190. "beforeUpload_shishi(file," +
  6191. "'" +
  6192. _userid +
  6193. "'" +
  6194. ", " +
  6195. "'" +
  6196. _cid +
  6197. "'" +
  6198. ", " +
  6199. "'" +
  6200. _stage +
  6201. "'" +
  6202. ", " +
  6203. "'" +
  6204. _task +
  6205. "'" +
  6206. ", " +
  6207. "'" +
  6208. _tool +
  6209. "'" +
  6210. ", " +
  6211. "'" +
  6212. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid) +
  6213. "'" +
  6214. ", " +
  6215. "'" +
  6216. aTool +
  6217. "'" +
  6218. ", " +
  6219. "`" +
  6220. text +
  6221. "`" +
  6222. ")\n" +
  6223. " });\n" +
  6224. "}\n" +
  6225. "document.head.appendChild(_js);\n";
  6226. _iframe.contentWindow.document.head.appendChild(_ajs);
  6227. }
  6228. }
  6229. }
  6230. U.MD.D.I.getEditorContent = function (iframe) {
  6231. return new Promise((resolve, reject) => {
  6232. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  6233. console.log(content);
  6234. resolve(content)
  6235. });
  6236. });
  6237. }
  6238. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  6239. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  6240. // if (res.value[0].length > 0) {
  6241. // // resolve(res.value[0][0].text);
  6242. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  6243. // $(fileInput).val('');
  6244. // });
  6245. // }
  6246. // }, [], { "type": "GET", "withCredentials": true });
  6247. var xmlhttp;
  6248. var Mac, Sn, DeviceId
  6249. if (window.XMLHttpRequest) {
  6250. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6251. xmlhttp = new XMLHttpRequest();
  6252. }
  6253. else {
  6254. // IE6, IE5 瀏覽器執行代碼
  6255. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6256. }
  6257. xmlhttp.onreadystatechange = function () {
  6258. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6259. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6260. // resolve(res.value[0][0].text);
  6261. if (type == '2') {
  6262. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6263. } else if (type == '3') {
  6264. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6265. }
  6266. } else {
  6267. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  6268. }
  6269. }
  6270. }
  6271. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6272. xmlhttp.send();
  6273. }
  6274. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  6275. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6276. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6277. _userinfo = US.userInfo, //登錄用戶信息
  6278. _userid = US.userInfo.userid //登錄用戶id
  6279. let _iframe;
  6280. let _cid = cid,
  6281. _stage = stage,
  6282. _task = task,
  6283. _tool = tool;
  6284. var _jie = $$("div", {
  6285. "style": {
  6286. "position": "absolute",
  6287. "bottom": "50px",
  6288. "right": "50px",
  6289. "zIndex": "9999",
  6290. "backgroundColor": "#2268bc",
  6291. "color": "#fff",
  6292. "padding": "12px 20px",
  6293. "cursor": "pointer",
  6294. "borderRadius": "4px",
  6295. },
  6296. "innerHTML": "確認並提交"
  6297. })
  6298. let aTool = ''
  6299. let _loading = document.createElement('div')
  6300. _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;"
  6301. // _loading.id = "";
  6302. let _lchild = document.createElement('div')
  6303. let _limg = document.createElement('img')
  6304. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6305. _limg.style = "width: 26px;margin-right: 10px;"
  6306. _lchild.appendChild(_limg)
  6307. let _lspan = document.createElement('span')
  6308. _lspan.innerHTML = "上傳中..."
  6309. _lchild.appendChild(_lspan)
  6310. _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%);"
  6311. _loading.appendChild(_lchild)
  6312. var _box = $$('div', {
  6313. "style": {
  6314. "position": "relative",
  6315. "width": "100%",
  6316. "height": "100%",
  6317. },
  6318. })
  6319. _box.appendChild(_loading)
  6320. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool + _userid
  6321. switch (str) {
  6322. case "whiteboard":
  6323. aTool = 1;
  6324. _iframe = $$("iframe", {
  6325. "frameborder": "no",
  6326. "border": "0",
  6327. "scrolling ": "no",
  6328. "style": {
  6329. "cssText": "border:0;width:100%;height:100%"
  6330. },
  6331. "src": "https://iwb.cocorobo.hk/"
  6332. })
  6333. _box.appendChild(_iframe);
  6334. _box.appendChild(_jie);
  6335. _formdiv = new U.UF.UI.form(
  6336. "電子白板",
  6337. _box, {
  6338. "id": "whiteboards" + cid + stage + task + tool,
  6339. "style": {
  6340. "width": "90%",
  6341. "height": "90%",
  6342. "overflow": 'hidden'
  6343. },
  6344. "onresize": function () { }
  6345. }, {
  6346. closecallback: function () { }
  6347. }, {
  6348. "style": {
  6349. "height": "36px"
  6350. }
  6351. }).form; //創建窗體
  6352. _taskbar = {
  6353. "id": str + _formdiv.id,
  6354. "style": {
  6355. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6356. },
  6357. "name": "電子白板",
  6358. "forms": _formdiv,
  6359. "click": function () {
  6360. U.MD.D.I.openApplication(str, obj, info);
  6361. }
  6362. }
  6363. break;
  6364. case "mind":
  6365. aTool = 3;
  6366. _iframe = $$("iframe", {
  6367. "frameborder": "no",
  6368. "border": "0",
  6369. "scrolling ": "no",
  6370. "style": {
  6371. "cssText": "border:0;width:100%;height:100%"
  6372. },
  6373. "src": "/kityminder-editor/dist/index.html"
  6374. });
  6375. _box.appendChild(_iframe);
  6376. _box.appendChild(_jie);
  6377. _formdiv = new U.UF.UI.form(
  6378. "思維導圖",
  6379. _box, { //"/jsmind/example/demo.html"
  6380. "id": "minds" + cid + stage + task + tool,
  6381. "style": {
  6382. "width": "90%",
  6383. "height": "90%",
  6384. "overflow": 'hidden'
  6385. },
  6386. "onresize": function () { }
  6387. }, {
  6388. closecallback: function () { }
  6389. }, {
  6390. "style": {
  6391. "height": "36px"
  6392. }
  6393. }).form; //創建窗體
  6394. _taskbar = {
  6395. "id": str + _formdiv.id,
  6396. "style": {
  6397. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6398. },
  6399. "name": "思維導圖",
  6400. "forms": _formdiv,
  6401. "click": function () {
  6402. U.MD.D.I.openApplication(str, obj, info);
  6403. }
  6404. }
  6405. break;
  6406. case "doc":
  6407. aTool = 6;
  6408. _iframe = $$("iframe", {
  6409. "frameborder": "no",
  6410. "border": "0",
  6411. "scrolling ": "no",
  6412. "style": {
  6413. "cssText": "border:0;width:100%;height:100%"
  6414. },
  6415. "src": "/Office/Word/WordEditArea.htm"
  6416. })
  6417. _box.appendChild(_iframe);
  6418. _box.appendChild(_jie);
  6419. _formdiv = new U.UF.UI.form(
  6420. "協同文檔",
  6421. _box, {
  6422. "id": "docs" + cid + stage + task + tool,
  6423. "style": {
  6424. "width": "90%",
  6425. "height": "90%",
  6426. "overflow": 'hidden'
  6427. },
  6428. "onresize": function () { }
  6429. }, {
  6430. closecallback: function () { }
  6431. }, {
  6432. "style": {
  6433. "height": "36px"
  6434. }
  6435. }).form; //創建窗體
  6436. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6437. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6438. })
  6439. _taskbar = {
  6440. "id": str + _formdiv.id,
  6441. "style": {
  6442. "backgroundImage": "url(/img/icon/doc.png)"
  6443. },
  6444. "name": "協同文檔",
  6445. "forms": _formdiv,
  6446. "click": function () {
  6447. U.MD.D.I.openApplication(str, obj, info);
  6448. }
  6449. }
  6450. break;
  6451. }
  6452. const script1 = document.createElement("script");
  6453. script1.type = "text/javascript";
  6454. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6455. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6456. const script2 = document.createElement("script");
  6457. script2.type = "text/javascript";
  6458. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6459. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6460. const script3 = document.createElement("script");
  6461. script3.type = "text/javascript";
  6462. script3.charset = "UTF-8";
  6463. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6464. const script4 = document.createElement("script");
  6465. script4.type = "text/javascript";
  6466. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6467. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu4.js";
  6468. if (_iframe) {
  6469. if (str == 'doc') {
  6470. _iframe = _formdiv.querySelector('iframe')
  6471. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6472. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6473. _iframe.contentWindow.document.body.appendChild(script1);
  6474. _iframe.contentWindow.document.body.appendChild(script2);
  6475. // _iframe.contentWindow.document.body.appendChild(script3);
  6476. _iframe.contentWindow.document.body.appendChild(script4);
  6477. })
  6478. if (onloadListener) {
  6479. _iframe.contentDocument.location.reload()
  6480. } else {
  6481. _iframe.contentDocument.location.reload()
  6482. }
  6483. } else if (str == 'mind') {
  6484. _iframe = _formdiv.querySelector('iframe')
  6485. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6486. _iframe.contentWindow.document.body.appendChild(script1);
  6487. _iframe.contentWindow.document.body.appendChild(script2);
  6488. _iframe.contentWindow.document.body.appendChild(script4);
  6489. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6490. })
  6491. if (onloadListener) {
  6492. _iframe.contentDocument.location.reload()
  6493. } else {
  6494. _iframe.contentDocument.location.reload()
  6495. }
  6496. } else {
  6497. _iframe.onload = () => {
  6498. _iframe.contentWindow.document.body.appendChild(script1);
  6499. _iframe.contentWindow.document.body.appendChild(script2);
  6500. // _iframe.contentWindow.document.body.appendChild(script3);
  6501. _iframe.contentWindow.document.body.appendChild(script4);
  6502. };
  6503. }
  6504. _jie.onclick = async () => {
  6505. let text = ''
  6506. if (aTool == 6) {
  6507. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6508. } else if (aTool == 3) {
  6509. text = await U.MD.D.I.getEditorContent(_iframe);
  6510. }
  6511. _loading.style.display = 'flex'
  6512. console.log(_loading);
  6513. var _ajs = _iframe.contentWindow.document.createElement("script");
  6514. _ajs.type = "text/javascript";
  6515. _ajs.innerHTML =
  6516. // 'console.log(' + _loading + ');\n' +
  6517. 'var _js = document.createElement("script");\n' +
  6518. '_js.type="text/javascript";\n' +
  6519. '_js.charset="UTF-8";\n' +
  6520. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6521. "_js.onload = function(){\n" +
  6522. ' var a = document.getElementsByTagName("img")\n' +
  6523. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6524. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6525. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6526. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6527. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6528. "beforeUpload_shishi(file," +
  6529. "'" +
  6530. _userid +
  6531. "'" +
  6532. ", " +
  6533. "'" +
  6534. _cid +
  6535. "'" +
  6536. ", " +
  6537. "'" +
  6538. _stage +
  6539. "'" +
  6540. ", " +
  6541. "'" +
  6542. _task +
  6543. "'" +
  6544. ", " +
  6545. "'" +
  6546. _tool +
  6547. "'" +
  6548. ", " +
  6549. "'" +
  6550. (str + '_loadLi_JieS' + cid + stage + task + tool + _userid) +
  6551. "'" +
  6552. ", " +
  6553. "'" +
  6554. aTool +
  6555. "'" +
  6556. ", " +
  6557. "`" +
  6558. text +
  6559. "`" +
  6560. ")\n" +
  6561. " });\n" +
  6562. "}\n" +
  6563. "document.head.appendChild(_js);\n";
  6564. _iframe.contentWindow.document.head.appendChild(_ajs);
  6565. }
  6566. }
  6567. //U.MD.D.I.openClick(str);
  6568. //如果有任務欄信息
  6569. // if (_taskbar) {
  6570. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6571. // }
  6572. }
  6573. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  6574. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6575. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6576. _userinfo = US.userInfo, //登錄用戶信息
  6577. _userid = US.userInfo.userid //登錄用戶id
  6578. let _iframe;
  6579. let _cid = cid,
  6580. _stage = stage,
  6581. _task = task,
  6582. _tool = tool;
  6583. var _jie = $$("div", {
  6584. "style": {
  6585. "position": "absolute",
  6586. "bottom": "50px",
  6587. "right": "50px",
  6588. "zIndex": "9999",
  6589. "backgroundColor": "#2268bc",
  6590. "color": "#fff",
  6591. "padding": "12px 20px",
  6592. "cursor": "pointer",
  6593. "borderRadius": "4px",
  6594. },
  6595. "innerHTML": "確認並提交"
  6596. })
  6597. let aTool = ''
  6598. let _loading = document.createElement('div')
  6599. _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;"
  6600. // _loading.id = "";
  6601. let _lchild = document.createElement('div')
  6602. let _limg = document.createElement('img')
  6603. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6604. _limg.style = "width: 26px;margin-right: 10px;"
  6605. _lchild.appendChild(_limg)
  6606. let _lspan = document.createElement('span')
  6607. _lspan.innerHTML = "上傳中..."
  6608. _lchild.appendChild(_lspan)
  6609. _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%);"
  6610. _loading.appendChild(_lchild)
  6611. var _box = $$('div', {
  6612. "style": {
  6613. "position": "relative",
  6614. "width": "100%",
  6615. "height": "100%",
  6616. },
  6617. })
  6618. _box.appendChild(_loading)
  6619. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid
  6620. switch (str) {
  6621. case "whiteboard":
  6622. aTool = 1;
  6623. _iframe = $$("iframe", {
  6624. "frameborder": "no",
  6625. "border": "0",
  6626. "scrolling ": "no",
  6627. "style": {
  6628. "cssText": "border:0;width:100%;height:100%"
  6629. },
  6630. "src": "https://iwb.cocorobo.hk/"
  6631. })
  6632. _box.appendChild(_iframe);
  6633. _box.appendChild(_jie);
  6634. _formdiv = new U.UF.UI.form(
  6635. "電子白板",
  6636. _box, {
  6637. "id": "whiteboards" + cid + stage + task + tool,
  6638. "style": {
  6639. "width": "90%",
  6640. "height": "90%",
  6641. "overflow": 'hidden'
  6642. },
  6643. "onresize": function () { }
  6644. }, {
  6645. closecallback: function () { }
  6646. }, {
  6647. "style": {
  6648. "height": "36px"
  6649. }
  6650. }).form; //創建窗體
  6651. _taskbar = {
  6652. "id": str + _formdiv.id,
  6653. "style": {
  6654. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6655. },
  6656. "name": "電子白板",
  6657. "forms": _formdiv,
  6658. "click": function () {
  6659. U.MD.D.I.openApplication(str, obj, info);
  6660. }
  6661. }
  6662. break;
  6663. case "mind":
  6664. aTool = 3;
  6665. _iframe = $$("iframe", {
  6666. "frameborder": "no",
  6667. "border": "0",
  6668. "scrolling ": "no",
  6669. "style": {
  6670. "cssText": "border:0;width:100%;height:100%"
  6671. },
  6672. "src": "/kityminder-editor/dist/index.html"
  6673. });
  6674. _box.appendChild(_iframe);
  6675. _box.appendChild(_jie);
  6676. _formdiv = new U.UF.UI.form(
  6677. "思維導圖",
  6678. _box, { //"/jsmind/example/demo.html"
  6679. "id": "minds" + cid + stage + task + tool,
  6680. "style": {
  6681. "width": "90%",
  6682. "height": "90%",
  6683. "overflow": 'hidden'
  6684. },
  6685. "onresize": function () { }
  6686. }, {
  6687. closecallback: function () { }
  6688. }, {
  6689. "style": {
  6690. "height": "36px"
  6691. }
  6692. }).form; //創建窗體
  6693. _taskbar = {
  6694. "id": str + _formdiv.id,
  6695. "style": {
  6696. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6697. },
  6698. "name": "思維導圖",
  6699. "forms": _formdiv,
  6700. "click": function () {
  6701. U.MD.D.I.openApplication(str, obj, info);
  6702. }
  6703. }
  6704. break;
  6705. case "doc":
  6706. aTool = 6;
  6707. _iframe = $$("iframe", {
  6708. "frameborder": "no",
  6709. "border": "0",
  6710. "scrolling ": "no",
  6711. "style": {
  6712. "cssText": "border:0;width:100%;height:100%"
  6713. },
  6714. "src": "/Office/Word/WordEditArea.htm"
  6715. })
  6716. _box.appendChild(_iframe);
  6717. _box.appendChild(_jie);
  6718. _formdiv = new U.UF.UI.form(
  6719. "協同文檔",
  6720. _box, {
  6721. "id": "docs" + cid + stage + task + tool,
  6722. "style": {
  6723. "width": "90%",
  6724. "height": "90%",
  6725. "overflow": 'hidden'
  6726. },
  6727. "onresize": function () { }
  6728. }, {
  6729. closecallback: function () { }
  6730. }, {
  6731. "style": {
  6732. "height": "36px"
  6733. }
  6734. }).form; //創建窗體
  6735. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6736. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6737. })
  6738. _taskbar = {
  6739. "id": str + _formdiv.id,
  6740. "style": {
  6741. "backgroundImage": "url(/img/icon/doc.png)"
  6742. },
  6743. "name": "協同文檔",
  6744. "forms": _formdiv,
  6745. "click": function () {
  6746. U.MD.D.I.openApplication(str, obj, info);
  6747. }
  6748. }
  6749. break;
  6750. }
  6751. const script1 = document.createElement("script");
  6752. script1.type = "text/javascript";
  6753. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6754. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6755. const script2 = document.createElement("script");
  6756. script2.type = "text/javascript";
  6757. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6758. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6759. const script3 = document.createElement("script");
  6760. script3.type = "text/javascript";
  6761. script3.charset = "UTF-8";
  6762. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6763. const script4 = document.createElement("script");
  6764. script4.type = "text/javascript";
  6765. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6766. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu5.js";
  6767. if (_iframe) {
  6768. if (str == 'doc') {
  6769. _iframe = _formdiv.querySelector('iframe')
  6770. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6771. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6772. _iframe.contentWindow.document.body.appendChild(script1);
  6773. _iframe.contentWindow.document.body.appendChild(script2);
  6774. // _iframe.contentWindow.document.body.appendChild(script3);
  6775. _iframe.contentWindow.document.body.appendChild(script4);
  6776. })
  6777. if (onloadListener) {
  6778. _iframe.contentDocument.location.reload()
  6779. } else {
  6780. _iframe.contentDocument.location.reload()
  6781. }
  6782. } else if (str == 'mind') {
  6783. _iframe = _formdiv.querySelector('iframe')
  6784. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6785. _iframe.contentWindow.document.body.appendChild(script1);
  6786. _iframe.contentWindow.document.body.appendChild(script2);
  6787. _iframe.contentWindow.document.body.appendChild(script4);
  6788. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6789. })
  6790. if (onloadListener) {
  6791. _iframe.contentDocument.location.reload()
  6792. } else {
  6793. _iframe.contentDocument.location.reload()
  6794. }
  6795. } else {
  6796. _iframe.onload = () => {
  6797. _iframe.contentWindow.document.body.appendChild(script1);
  6798. _iframe.contentWindow.document.body.appendChild(script2);
  6799. // _iframe.contentWindow.document.body.appendChild(script3);
  6800. _iframe.contentWindow.document.body.appendChild(script4);
  6801. };
  6802. }
  6803. _jie.onclick = async () => {
  6804. let text = ''
  6805. if (aTool == 6) {
  6806. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6807. } else if (aTool == 3) {
  6808. text = await U.MD.D.I.getEditorContent(_iframe);
  6809. }
  6810. _loading.style.display = 'flex'
  6811. console.log(_loading);
  6812. var _ajs = _iframe.contentWindow.document.createElement("script");
  6813. _ajs.type = "text/javascript";
  6814. _ajs.innerHTML =
  6815. // 'console.log(' + _loading + ');\n' +
  6816. 'var _js = document.createElement("script");\n' +
  6817. '_js.type="text/javascript";\n' +
  6818. '_js.charset="UTF-8";\n' +
  6819. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6820. "_js.onload = function(){\n" +
  6821. ' var a = document.getElementsByTagName("img")\n' +
  6822. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6823. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6824. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6825. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6826. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6827. "beforeUpload_shishi(file," +
  6828. "'" +
  6829. _userid +
  6830. "'" +
  6831. ", " +
  6832. "'" +
  6833. _cid +
  6834. "'" +
  6835. ", " +
  6836. "'" +
  6837. _stage +
  6838. "'" +
  6839. ", " +
  6840. "'" +
  6841. _task +
  6842. "'" +
  6843. ", " +
  6844. "'" +
  6845. _tool +
  6846. "'" +
  6847. ", " +
  6848. "'" +
  6849. (str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid) +
  6850. "'" +
  6851. ", " +
  6852. "'" +
  6853. aTool +
  6854. "'" +
  6855. ", " +
  6856. "`" +
  6857. text +
  6858. "`" +
  6859. ")\n" +
  6860. " });\n" +
  6861. "}\n" +
  6862. "document.head.appendChild(_js);\n";
  6863. _iframe.contentWindow.document.head.appendChild(_ajs);
  6864. }
  6865. }
  6866. //U.MD.D.I.openClick(str);
  6867. //如果有任務欄信息
  6868. // if (_taskbar) {
  6869. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6870. // }
  6871. }
  6872. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6873. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6874. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6875. _userinfo = US.userInfo, //登錄用戶信息
  6876. _userid = US.userInfo.userid //登錄用戶id
  6877. let _iframe;
  6878. let _cid = cid,
  6879. _stage = stage,
  6880. _task = task,
  6881. _tool = tool;
  6882. var _jie = $$("div", {
  6883. "style": {
  6884. "position": "absolute",
  6885. "bottom": "50px",
  6886. "right": "50px",
  6887. "zIndex": "9999",
  6888. "backgroundColor": "#2268bc",
  6889. "color": "#fff",
  6890. "padding": "12px 20px",
  6891. "cursor": "pointer",
  6892. "borderRadius": "4px",
  6893. },
  6894. "innerHTML": "上傳模板"
  6895. })
  6896. let aTool = ''
  6897. let _loading = document.createElement('div')
  6898. _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;"
  6899. // _loading.id = "";
  6900. let _lchild = document.createElement('div')
  6901. let _limg = document.createElement('img')
  6902. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6903. _limg.style = "width: 26px;margin-right: 10px;"
  6904. _lchild.appendChild(_limg)
  6905. let _lspan = document.createElement('span')
  6906. _lspan.innerHTML = "上傳中..."
  6907. _lchild.appendChild(_lspan)
  6908. _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%);"
  6909. _loading.appendChild(_lchild)
  6910. var _box = $$('div', {
  6911. "style": {
  6912. "position": "relative",
  6913. "width": "100%",
  6914. "height": "100%",
  6915. },
  6916. })
  6917. _box.appendChild(_loading)
  6918. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool + _userid
  6919. switch (str) {
  6920. case "whiteboard":
  6921. aTool = 1;
  6922. _iframe = $$("iframe", {
  6923. "frameborder": "no",
  6924. "border": "0",
  6925. "scrolling ": "no",
  6926. "style": {
  6927. "cssText": "border:0;width:100%;height:100%"
  6928. },
  6929. "src": "https://iwb.cocorobo.hk/"
  6930. })
  6931. _box.appendChild(_iframe);
  6932. _box.appendChild(_jie);
  6933. _formdiv = new U.UF.UI.form(
  6934. "電子白板",
  6935. _box, {
  6936. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6937. "style": {
  6938. "width": "90%",
  6939. "height": "90%",
  6940. "overflow": 'hidden'
  6941. },
  6942. "onresize": function () { }
  6943. }, {
  6944. closecallback: function () { }
  6945. }, {
  6946. "style": {
  6947. "height": "36px"
  6948. }
  6949. }).form; //創建窗體
  6950. _taskbar = {
  6951. "id": str + _formdiv.id,
  6952. "style": {
  6953. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6954. },
  6955. "name": "電子白板",
  6956. "forms": _formdiv,
  6957. "click": function () {
  6958. U.MD.D.I.openApplication(str, obj, info);
  6959. }
  6960. }
  6961. break;
  6962. case "mind":
  6963. aTool = 3;
  6964. _iframe = $$("iframe", {
  6965. "frameborder": "no",
  6966. "border": "0",
  6967. "scrolling ": "no",
  6968. "style": {
  6969. "cssText": "border:0;width:100%;height:100%"
  6970. },
  6971. "src": "/kityminder-editor/dist/index.html"
  6972. });
  6973. _box.appendChild(_iframe);
  6974. _box.appendChild(_jie);
  6975. _formdiv = new U.UF.UI.form(
  6976. "思維導圖",
  6977. _box, { //"/jsmind/example/demo.html"
  6978. "id": "minds_Yu" + cid + stage + task + tool,
  6979. "style": {
  6980. "width": "90%",
  6981. "height": "90%",
  6982. "overflow": 'hidden'
  6983. },
  6984. "onresize": function () { }
  6985. }, {
  6986. closecallback: function () { }
  6987. }, {
  6988. "style": {
  6989. "height": "36px"
  6990. }
  6991. }).form; //創建窗體
  6992. _taskbar = {
  6993. "id": str + _formdiv.id,
  6994. "style": {
  6995. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6996. },
  6997. "name": "思維導圖",
  6998. "forms": _formdiv,
  6999. "click": function () {
  7000. U.MD.D.I.openApplication(str, obj, info);
  7001. }
  7002. }
  7003. break;
  7004. case "doc":
  7005. aTool = 6;
  7006. _iframe = $$("iframe", {
  7007. "frameborder": "no",
  7008. "border": "0",
  7009. "scrolling ": "no",
  7010. "style": {
  7011. "cssText": "border:0;width:100%;height:100%"
  7012. },
  7013. "src": "/Office/Word/WordEditArea.htm"
  7014. })
  7015. _box.appendChild(_iframe);
  7016. _box.appendChild(_jie);
  7017. _formdiv = new U.UF.UI.form(
  7018. "協同文檔",
  7019. _box, {
  7020. "id": "docs_Yu" + cid + stage + task + tool,
  7021. "style": {
  7022. "width": "90%",
  7023. "height": "90%",
  7024. "overflow": 'hidden'
  7025. },
  7026. "onresize": function () { }
  7027. }, {
  7028. closecallback: function () { }
  7029. }, {
  7030. "style": {
  7031. "height": "36px"
  7032. }
  7033. }).form; //創建窗體
  7034. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  7035. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  7036. })
  7037. _taskbar = {
  7038. "id": str + _formdiv.id,
  7039. "style": {
  7040. "backgroundImage": "url(/img/icon/doc.png)"
  7041. },
  7042. "name": "協同文檔",
  7043. "forms": _formdiv,
  7044. "click": function () {
  7045. U.MD.D.I.openApplication(str, obj, info);
  7046. }
  7047. }
  7048. break;
  7049. case "CocoPi":
  7050. aTool = 57;
  7051. _iframe = $$("iframe", {
  7052. "allowpaymentrequest": "allowpaymentrequest",
  7053. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7054. "webkitallowfullscreen": "",
  7055. "mozallowfullscreen": "",
  7056. "frameborder": "no",
  7057. "border": "0",
  7058. "scrolling ": "no",
  7059. "style": {
  7060. "cssText": "border:0;width:100%;height:100%"
  7061. },
  7062. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7063. })
  7064. _box.appendChild(_iframe);
  7065. _box.appendChild(_jie);
  7066. _formdiv = new U.UF.UI.form(
  7067. "CocoPi",
  7068. _box, {
  7069. "id": "CocoPi_Yu" + cid + stage + task + tool,
  7070. "style": {
  7071. "width": "90%",
  7072. "height": "90%",
  7073. "overflow": 'hidden'
  7074. },
  7075. "onresize": function () { }
  7076. }, {
  7077. closecallback: function () { }
  7078. }, {
  7079. "style": {
  7080. "height": "36px"
  7081. }
  7082. }).form; //創建窗體
  7083. _taskbar = {
  7084. "id": str + _formdiv.id,
  7085. "style": {
  7086. "backgroundImage": "url(/img/icon/cocopi.png)"
  7087. },
  7088. "name": "CocoPi",
  7089. "forms": _formdiv,
  7090. "click": function () {
  7091. U.MD.D.I.openApplication(str, obj, info);
  7092. }
  7093. }
  7094. break;
  7095. }
  7096. if (_iframe) {
  7097. if (str == 'doc') {
  7098. _iframe = _formdiv.querySelector('iframe')
  7099. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7100. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  7101. })
  7102. if (onloadListener) {
  7103. _iframe.contentDocument.location.reload()
  7104. } else {
  7105. _iframe.contentDocument.location.reload()
  7106. }
  7107. } else if (str == 'mind') {
  7108. _iframe = _formdiv.querySelector('iframe')
  7109. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7110. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  7111. })
  7112. if (onloadListener) {
  7113. _iframe.contentDocument.location.reload()
  7114. } else {
  7115. _iframe.contentDocument.location.reload()
  7116. }
  7117. } else if (str == 'whiteboard') {
  7118. _iframe = _formdiv.querySelector('iframe')
  7119. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7120. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  7121. })
  7122. if (onloadListener) {
  7123. _iframe.contentDocument.location.reload()
  7124. } else {
  7125. _iframe.contentDocument.location.reload()
  7126. }
  7127. } else if (str == 'CocoPi') {
  7128. _iframe = _formdiv.querySelector('iframe')
  7129. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7130. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  7131. })
  7132. if (onloadListener) {
  7133. _iframe.contentDocument.location.reload()
  7134. } else {
  7135. _iframe.contentDocument.location.reload()
  7136. }
  7137. } else {
  7138. _iframe.onload = () => { };
  7139. }
  7140. _jie.onclick = async () => {
  7141. let text = ''
  7142. let type = '2'
  7143. if (aTool == 1) {
  7144. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  7145. type = '3'
  7146. } else if (aTool == 6) {
  7147. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  7148. type = '1'
  7149. } else if (aTool == 3) {
  7150. text = await U.MD.D.I.getEditorContent(_iframe);
  7151. type = '2'
  7152. } else if (aTool == 57) {
  7153. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  7154. type = '4'
  7155. }
  7156. _loading.style.display = 'flex'
  7157. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  7158. }
  7159. }
  7160. //U.MD.D.I.openClick(str);
  7161. //如果有任務欄信息
  7162. // if (_taskbar) {
  7163. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  7164. // }
  7165. }
  7166. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  7167. var xmlhttp;
  7168. var Mac, Sn, DeviceId
  7169. if (window.XMLHttpRequest) {
  7170. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7171. xmlhttp = new XMLHttpRequest();
  7172. }
  7173. else {
  7174. // IE6, IE5 瀏覽器執行代碼
  7175. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7176. }
  7177. xmlhttp.onreadystatechange = function () {
  7178. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7179. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7180. // resolve(res.value[0][0].text);
  7181. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7182. }
  7183. }
  7184. }
  7185. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7186. xmlhttp.send();
  7187. }
  7188. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  7189. var xmlhttp;
  7190. var Mac, Sn, DeviceId
  7191. if (window.XMLHttpRequest) {
  7192. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7193. xmlhttp = new XMLHttpRequest();
  7194. }
  7195. else {
  7196. // IE6, IE5 瀏覽器執行代碼
  7197. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7198. }
  7199. xmlhttp.onreadystatechange = function () {
  7200. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7201. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7202. // resolve(res.value[0][0].text);
  7203. if (type == '2') {
  7204. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7205. } else if (type == '3') {
  7206. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  7207. } else if (type == '4') {
  7208. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  7209. }
  7210. } else {
  7211. if (type == '2') {
  7212. iframe.contentWindow.editor.minder.importData('json', '')
  7213. } else if (type == '3') {
  7214. iframe.contentWindow.h.app.updateScene({ elements: [] })
  7215. } else if (type == '4') {
  7216. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7217. }
  7218. }
  7219. }
  7220. }
  7221. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7222. xmlhttp.send();
  7223. }
  7224. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  7225. var xmlhttp;
  7226. var Mac, Sn, DeviceId
  7227. if (window.XMLHttpRequest) {
  7228. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7229. xmlhttp = new XMLHttpRequest();
  7230. }
  7231. else {
  7232. // IE6, IE5 瀏覽器執行代碼
  7233. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7234. }
  7235. xmlhttp.onreadystatechange = function () {
  7236. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7237. if (xmlhttp.response) {
  7238. // resolve(res.value[0][0].text);
  7239. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  7240. // $(fileInput).val('');
  7241. // });
  7242. span.innerHTML = '上傳成功'
  7243. setTimeout(() => {
  7244. loading.style.display = 'none'
  7245. }, 1000);
  7246. }
  7247. }
  7248. }
  7249. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  7250. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  7251. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  7252. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  7253. // 設置請求頭,表示請求體的編碼格式
  7254. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  7255. // 設置請求體,使用url-encoded格式的數據
  7256. }
  7257. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  7258. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7259. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7260. _userinfo = US.userInfo, //登錄用戶信息
  7261. _userid = US.userInfo.userid //登錄用戶id
  7262. let _iframe;
  7263. let _cid = cid,
  7264. _stage = stage,
  7265. _task = task,
  7266. _tool = tool;
  7267. var _jie = $$("div", {
  7268. "style": {
  7269. "position": "absolute",
  7270. "bottom": "50px",
  7271. "right": "50px",
  7272. "zIndex": "9999",
  7273. "backgroundColor": "#2268bc",
  7274. "color": "#fff",
  7275. "padding": "12px 20px",
  7276. "cursor": "pointer",
  7277. "borderRadius": "4px",
  7278. },
  7279. "innerHTML": "提交作業"
  7280. })
  7281. let aTool = ''
  7282. let _loading = document.createElement('div')
  7283. _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;"
  7284. // _loading.id = "";
  7285. let _lchild = document.createElement('div')
  7286. let _limg = document.createElement('img')
  7287. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7288. _limg.style = "width: 26px;margin-right: 10px;"
  7289. _lchild.appendChild(_limg)
  7290. let _lspan = document.createElement('span')
  7291. _lspan.innerHTML = "上傳中..."
  7292. _lchild.appendChild(_lspan)
  7293. _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%);"
  7294. _loading.appendChild(_lchild)
  7295. var _box = $$('div', {
  7296. "style": {
  7297. "position": "relative",
  7298. "width": "100%",
  7299. "height": "100%",
  7300. },
  7301. })
  7302. _box.appendChild(_loading)
  7303. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool + _userid
  7304. switch (str) {
  7305. case "CocoPi":
  7306. aTool = 57;
  7307. _iframe = $$("iframe", {
  7308. "allowpaymentrequest": "allowpaymentrequest",
  7309. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7310. "webkitallowfullscreen": "",
  7311. "mozallowfullscreen": "",
  7312. "frameborder": "no",
  7313. "border": "0",
  7314. "scrolling ": "no",
  7315. "style": {
  7316. "cssText": "border:0;width:100%;height:100%"
  7317. },
  7318. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7319. })
  7320. _box.appendChild(_iframe);
  7321. _box.appendChild(_jie);
  7322. _formdiv = new U.UF.UI.form(
  7323. "CocoPi",
  7324. _box, {
  7325. "id": "CocoPi_Upload" + cid + stage + task + tool,
  7326. "style": {
  7327. "width": "90%",
  7328. "height": "90%",
  7329. "overflow": 'hidden'
  7330. },
  7331. "onresize": function () { }
  7332. }, {
  7333. closecallback: function () { }
  7334. }, {
  7335. "style": {
  7336. "height": "36px"
  7337. }
  7338. }).form; //創建窗體
  7339. _taskbar = {
  7340. "id": str + _formdiv.id,
  7341. "style": {
  7342. "backgroundImage": "url(/img/icon/cocopi.png)"
  7343. },
  7344. "name": "CocoPi",
  7345. "forms": _formdiv,
  7346. "click": function () {
  7347. U.MD.D.I.openApplication(str, obj, info);
  7348. }
  7349. }
  7350. break;
  7351. }
  7352. if (_iframe) {
  7353. if (str == 'CocoPi') {
  7354. _iframe = _formdiv.querySelector('iframe')
  7355. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7356. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7357. })
  7358. if (onloadListener) {
  7359. _iframe.contentDocument.location.reload()
  7360. } else {
  7361. _iframe.contentDocument.location.reload()
  7362. }
  7363. }
  7364. _jie.onclick = async () => {
  7365. let text = ''
  7366. if (aTool == 57) {
  7367. text = _iframe.contentWindow.getLoadXmlStr()
  7368. }
  7369. _loading.style.display = 'flex'
  7370. console.log(_loading);
  7371. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  7372. _loading.style.display = 'none'
  7373. let _div = document.createElement('div')
  7374. _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;"
  7375. let _inner = document.createElement('div')
  7376. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7377. _inner.innerHTML = "上傳成功"
  7378. _div.appendChild(_inner)
  7379. _iframe.contentWindow.window.document.body.appendChild(_div)
  7380. _div.onclick = () => {
  7381. _iframe.contentWindow.window.document.body.removeChild(_div)
  7382. }
  7383. setTimeout(() => {
  7384. _iframe.contentWindow.window.document.body.removeChild(_div)
  7385. }, 1000);
  7386. }, [], { "type": "POST", "withCredentials": true });
  7387. }
  7388. }
  7389. }
  7390. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  7391. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7392. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7393. _userid = student.userid, //登錄用戶id
  7394. _username = student.student //用戶名字
  7395. let _iframe;
  7396. let _cid = cid,
  7397. _stage = stage,
  7398. _task = task,
  7399. _tool = tool;
  7400. var _jie = $$("div", {
  7401. "style": {
  7402. "position": "absolute",
  7403. "bottom": "50px",
  7404. "right": "50px",
  7405. "zIndex": "9999",
  7406. "backgroundColor": "#2268bc",
  7407. "color": "#fff",
  7408. "padding": "12px 20px",
  7409. "cursor": "pointer",
  7410. "borderRadius": "4px",
  7411. },
  7412. "innerHTML": "提交作業"
  7413. })
  7414. let aTool = ''
  7415. let _loading = document.createElement('div')
  7416. _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;"
  7417. // _loading.id = "";
  7418. let _lchild = document.createElement('div')
  7419. let _limg = document.createElement('img')
  7420. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7421. _limg.style = "width: 26px;margin-right: 10px;"
  7422. _lchild.appendChild(_limg)
  7423. let _lspan = document.createElement('span')
  7424. _lspan.innerHTML = "上傳中..."
  7425. _lchild.appendChild(_lspan)
  7426. _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%);"
  7427. _loading.appendChild(_lchild)
  7428. var _box = $$('div', {
  7429. "style": {
  7430. "position": "relative",
  7431. "width": "100%",
  7432. "height": "100%",
  7433. },
  7434. })
  7435. _box.appendChild(_loading)
  7436. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool + _userid
  7437. switch (str) {
  7438. case "CocoPi":
  7439. aTool = 57;
  7440. _iframe = $$("iframe", {
  7441. "allowpaymentrequest": "allowpaymentrequest",
  7442. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7443. "webkitallowfullscreen": "",
  7444. "mozallowfullscreen": "",
  7445. "frameborder": "no",
  7446. "border": "0",
  7447. "scrolling ": "no",
  7448. "style": {
  7449. "cssText": "border:0;width:100%;height:100%"
  7450. },
  7451. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7452. })
  7453. _box.appendChild(_iframe);
  7454. _box.appendChild(_jie);
  7455. _formdiv = new U.UF.UI.form(
  7456. "CocoPi-" + _username,
  7457. _box, {
  7458. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  7459. "style": {
  7460. "width": "90%",
  7461. "height": "90%",
  7462. "overflow": 'hidden'
  7463. },
  7464. "onresize": function () { }
  7465. }, {
  7466. closecallback: function () { }
  7467. }, {
  7468. "style": {
  7469. "height": "36px"
  7470. }
  7471. }).form; //創建窗體
  7472. _taskbar = {
  7473. "id": str + _formdiv.id,
  7474. "style": {
  7475. "backgroundImage": "url(/img/icon/cocopi.png)"
  7476. },
  7477. "name": "CocoPi",
  7478. "forms": _formdiv,
  7479. "click": function () {
  7480. U.MD.D.I.openApplication(str, obj, info);
  7481. }
  7482. }
  7483. break;
  7484. }
  7485. if (_iframe) {
  7486. if (str == 'CocoPi') {
  7487. _iframe = _formdiv.querySelector('iframe')
  7488. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7489. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7490. })
  7491. if (onloadListener) {
  7492. _iframe.contentDocument.location.reload()
  7493. } else {
  7494. _iframe.contentDocument.location.reload()
  7495. }
  7496. }
  7497. _jie.onclick = async () => {
  7498. let text = ''
  7499. if (aTool == 57) {
  7500. text = _iframe.contentWindow.getLoadXmlStr()
  7501. }
  7502. _loading.style.display = 'flex'
  7503. console.log(_loading);
  7504. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  7505. _loading.style.display = 'none'
  7506. let _div = document.createElement('div')
  7507. _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;"
  7508. let _inner = document.createElement('div')
  7509. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7510. _inner.innerHTML = "上傳成功"
  7511. _div.appendChild(_inner)
  7512. _iframe.contentWindow.window.document.body.appendChild(_div)
  7513. _div.onclick = () => {
  7514. _iframe.contentWindow.window.document.body.removeChild(_div)
  7515. }
  7516. setTimeout(() => {
  7517. _iframe.contentWindow.window.document.body.removeChild(_div)
  7518. }, 1000);
  7519. }, [], { "type": "POST", "withCredentials": true });
  7520. }
  7521. }
  7522. }
  7523. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  7524. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  7525. if (res.value[0].length > 0) {
  7526. if (atool == 57) {
  7527. iframe.contentWindow.loadingXml(res.value[0][0].content)
  7528. }
  7529. } else {
  7530. if (atool == 57) {
  7531. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  7532. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7533. }
  7534. }
  7535. }, [], { "type": "POST", "withCredentials": true });
  7536. }