DeskTop.js 441 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610
  1. /*
  2. 此處為桌面系統啟動應用區域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面應用處理
  5. //判斷圖片是否在拖拽,如果是拖拽圖標的過程是不會打開圖片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教師桌面圖標的全局變量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  17. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  18. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  19. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  20. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  21. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  22. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  23. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  24. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  25. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  26. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  27. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  28. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  29. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  30. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  31. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  32. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  33. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  34. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  35. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  36. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  37. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  38. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  39. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  40. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  41. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  42. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  43. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  44. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  45. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  46. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  47. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  48. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  49. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  50. ];
  51. //極簡模式
  52. U.MD.D.I.easyDeskIcon = [
  53. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  55. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  56. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  57. // { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  58. ];
  59. //教師桌面圖標的全局變量
  60. U.MD.D.I.teacherDeskIcon2 = [
  61. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  62. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  63. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  64. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  65. // { "Name": "項目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  66. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  67. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  68. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  69. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  70. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  71. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  72. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  73. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  74. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  75. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  76. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  77. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  78. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  79. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  80. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  81. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  82. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  83. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  84. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  85. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  86. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  87. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  88. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  89. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  90. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  91. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  92. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  93. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  94. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  95. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  96. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  97. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  98. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  99. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  100. ];
  101. U.MD.D.I.studentDeskIcon = [
  102. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  103. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  104. // { "Name": "我的項目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  105. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  106. // { "Name": "我的評價", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  107. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  108. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  109. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  110. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  111. // { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  112. // { "Name": "量規評分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  113. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  114. // { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  115. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  116. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  117. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  118. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  119. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  120. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  121. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  122. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  123. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  124. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  125. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  126. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  127. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  128. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  129. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  130. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  131. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  132. ];
  133. U.MD.D.I.studentDeskIcon2 = [
  134. // { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  135. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  136. // { "Name": "實時課堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  137. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  138. ]
  139. U.MD.D.I.studentDeskIcon3 = [
  140. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  141. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  142. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. ]
  144. U.MD.D.I.schoolDeskIcon = [
  145. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  146. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  147. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  148. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  149. { "Name": "學習資料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  150. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  151. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  152. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  153. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  154. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  155. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  156. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  157. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  158. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  159. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  160. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  161. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  162. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  163. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  164. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  165. // { "Name": "國家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  166. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  167. ];
  168. U.MD.D.I.orgDeskIcon = [
  169. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  170. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  171. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  172. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  173. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  174. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  175. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  176. ];
  177. U.MD.D.I.orgStemDeskIcon = [
  178. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  179. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  180. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  181. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  182. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  183. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  184. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  185. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  186. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  187. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  188. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  189. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  190. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  191. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  192. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  193. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  194. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  195. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  196. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  197. ];
  198. U.MD.D.I.szulsDeskIcon = [
  199. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  200. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  201. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  202. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  204. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  205. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  206. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  207. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  209. ];
  210. U.MD.D.I.hanDeskIcon = [
  211. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  212. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  213. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  214. { "Name": "漢字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  215. { "Name": "國學經典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  216. { "Name": "筆畫訓練", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  217. { "Name": "書法課堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  218. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  219. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  220. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  221. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  222. ];
  223. U.MD.D.I.GMteacherDeskIcon = [
  224. { "Name": "課程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  225. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "學生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  227. { "Name": "學生評價", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  228. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  229. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  230. { "Name": "班級管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  231. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  232. { "Name": "課程進展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  233. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  234. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  235. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  236. ];
  237. U.MD.D.I.GMstudentDeskIcon = [
  238. { "Name": "課程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  239. { "Name": "我的評價", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  240. { "Name": "我的資料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  241. { "Name": "素材庫", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  242. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  243. ];
  244. //北師大
  245. U.MD.D.I.BSDNSteacherDeskIcon = [
  246. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  247. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  248. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  249. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  250. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  251. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  252. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  253. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  254. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  255. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  256. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  257. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  258. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  259. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  260. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  261. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  262. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  263. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  264. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  265. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  266. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  267. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  268. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  269. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  270. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  271. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  272. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  273. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  274. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  275. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  276. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  277. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  278. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  279. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  280. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  281. { "Name": "數字實驗室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  282. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  283. ];
  284. //松山湖
  285. U.MD.D.I.SONGteacherDeskIcon = [
  286. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  287. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  288. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  289. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  290. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  291. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  292. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  293. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  294. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  295. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  296. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  297. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  298. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  299. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  300. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  301. // { "Name": "實時課堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  302. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  303. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  304. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  305. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  306. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  307. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  308. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  309. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  310. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  311. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  312. // { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  313. // { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  314. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  315. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  316. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  317. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  318. // { "Name": "賽諾梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  319. // { "Name": "漢字宮", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  320. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  321. ];
  322. U.MD.D.I.tcStudentDeskIcon = [
  323. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  324. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  325. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  326. ];
  327. U.MD.D.I.tcTeacherDeskIcon = [
  328. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  329. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  330. { "Name": "師生項目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  331. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  332. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  333. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  334. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  335. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. ];
  338. U.MD.D.I.tcOrganizerDeskIcon = [
  339. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  340. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  341. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  342. { "Name": "師生項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  343. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  344. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  345. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  346. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  347. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  348. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  349. ];
  350. U.MD.D.I.szscStudentDeskIcon = [
  351. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  352. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  353. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  354. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  355. ];
  356. U.MD.D.I.szscTeacherDeskIcon = [
  357. // { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  358. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  359. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  360. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  361. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  362. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  363. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  364. { "Name": "學生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  365. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  366. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  367. ];
  368. U.MD.D.I.szscOrganizerDeskIcon = [
  369. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  370. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  371. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  372. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  373. // { "Name": "學校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  374. { "Name": "教師管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  375. { "Name": "我的資料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  376. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  377. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  378. ];
  379. U.MD.D.I.wankeTeacherDeskIcon = [ //1c3b9def-8fbe-11ed-b13d-005056b86db5
  380. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  381. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  382. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  383. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  384. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  385. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  386. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  387. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  388. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  389. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  390. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  391. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  392. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  393. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  394. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  395. ];
  396. U.MD.D.I.wankeAdminDeskIcon = [
  397. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  398. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  399. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  400. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  401. { "Name": "PBL項目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  402. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  403. { "Name": "項目進展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  404. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  405. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  406. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  407. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  408. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  409. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  410. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  411. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  412. ];
  413. U.MD.D.I.lhsTeacherDeskIcon = [ //未來小學
  414. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  415. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  416. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  417. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  418. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  419. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  420. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  421. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  422. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  423. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  424. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  425. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  426. ];
  427. U.MD.D.I.lhsAdminDeskIcon = [ //未來小學admin
  428. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  429. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  430. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  431. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  432. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  433. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  434. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  435. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  436. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  437. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  438. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  439. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  440. ];
  441. //明德教師桌面圖標的全局變量
  442. U.MD.D.I.MingdeTeacherDeskIcon = [
  443. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  444. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  445. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  446. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  447. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  448. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  449. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  450. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  451. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  452. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  453. // { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  454. // { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  455. // { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  456. // { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  457. // { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  458. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  459. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  460. // { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  461. // { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  462. // { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  463. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  464. // { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  465. // { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  466. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  467. // { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  468. // { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  469. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  470. // { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  471. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  472. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  473. ];
  474. //97c4ee8b-d010-4042-986d-e9d3c217264f
  475. //教師桌面圖標的全局變量
  476. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  477. { "Name": "工作項目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  478. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  479. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  480. // { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  481. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  482. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  483. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  484. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  485. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  486. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  487. ];
  488. //福田
  489. U.MD.D.I.futianTeacherDeskIcon = [
  490. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  491. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  492. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  493. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  494. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  495. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  496. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  497. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  498. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  499. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  500. ];
  501. //福田
  502. U.MD.D.I.futianAdminDeskIcon = [
  503. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  504. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  505. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  506. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  507. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  508. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  509. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  510. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  511. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  512. ];
  513. //lotech
  514. U.MD.D.I.lotechTeacherDeskIcon = [
  515. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  516. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  517. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  518. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  519. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  520. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  521. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  522. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  523. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  524. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  525. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  526. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  527. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  528. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  529. ];
  530. //龍華中心小學教師桌面圖標的全局變量
  531. U.MD.D.I.longhuateacherDeskIcon = [
  532. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  533. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  534. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  535. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  536. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  537. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  538. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  539. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  540. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  541. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  542. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  543. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  544. ];
  545. //教科院實小教師桌面圖標的全局變量
  546. U.MD.D.I.siesteacherDeskIcon = [
  547. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  548. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  549. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  550. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  551. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  552. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  553. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  554. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  555. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  556. // { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  557. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  558. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  559. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  560. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  561. ];
  562. //教科院實小教師桌面圖標的全局變量
  563. U.MD.D.I.siesStudentDeskIcon = [
  564. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  565. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  566. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  567. ];
  568. //福田
  569. U.MD.D.I.gdjgTeacherDeskIcon = [
  570. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  571. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  572. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  573. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  574. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  575. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  576. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  577. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  578. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  579. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  580. ];
  581. //gdjg
  582. U.MD.D.I.gdjgAdminDeskIcon = [
  583. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  584. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  585. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  586. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  587. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  588. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  589. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  590. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  591. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  592. ];
  593. //hk
  594. U.MD.D.I.hkteacherDeskIcon = [
  595. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  596. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  597. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  598. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  599. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  600. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  601. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  602. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  603. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  604. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  605. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  606. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  607. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  608. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  609. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  610. ];
  611. //hk
  612. U.MD.D.I.hkStudentDeskIcon = [
  613. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  614. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  615. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  616. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  617. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  618. ];
  619. //香海正覺蓮社佛教正覺中學
  620. U.MD.D.I.hkZJLSteacherDeskIcon = [
  621. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  622. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  623. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  624. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  625. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  626. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  627. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  628. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  629. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  630. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  631. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  632. // { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  633. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  634. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  635. ];
  636. //香海正覺蓮社佛教正覺中學
  637. U.MD.D.I.hkZJLSStudentDeskIcon = [
  638. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  639. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  640. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  641. ];
  642. //雲海
  643. U.MD.D.I.yunhaiTeacherDeskIcon = [
  644. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  645. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  646. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  647. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  648. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  649. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  650. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  651. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  652. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  653. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  654. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  655. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  656. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  657. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  658. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  659. ];
  660. //福田
  661. U.MD.D.I.heyuanTeacherDeskIcon = [
  662. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  663. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  664. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  665. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  666. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  667. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  668. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  669. // { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  670. // { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  671. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  672. ];
  673. //福田
  674. U.MD.D.I.heyuanAdminDeskIcon = [
  675. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  676. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  677. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  678. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  679. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  680. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  681. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  682. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  683. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  684. ];
  685. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  686. U.MD.D.I.szherTeacherDeskIcon = [
  687. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  688. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  689. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  690. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  691. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  692. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  693. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  694. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  695. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  696. ];
  697. //dsei
  698. U.MD.D.I.dseiTeacherDeskIcon = [
  699. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  700. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  701. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  702. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  703. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  704. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  705. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  706. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  707. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  708. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  709. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  710. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  711. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  712. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  713. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  714. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  715. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  716. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  717. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  718. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  719. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  720. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  721. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  722. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  723. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  724. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  725. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  726. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  727. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  728. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  729. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  730. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  731. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  732. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  733. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  734. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  735. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  736. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  737. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  738. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  739. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  740. ];
  741. //dsei
  742. U.MD.D.I.dseiAdminDeskIcon = [
  743. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  744. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  745. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  746. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  747. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  748. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  749. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  750. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  751. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  752. { "Name": "年級管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  753. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  754. { "Name": "我的資料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  755. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  756. { "Name": "素材庫", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  757. { "Name": "電子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  758. { "Name": "問卷調查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  759. { "Name": "便簽分類", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  760. { "Name": "思維導圖", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  761. { "Name": "協同文檔", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  762. { "Name": "思維網格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  763. { "Name": "目標管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  764. { "Name": "項目設計", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  765. { "Name": "訓練平臺", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  766. { "Name": "編程平臺", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  767. { "Name": "AI體驗", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  768. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  769. { "Name": "AI編程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  770. { "Name": "源碼編輯", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  771. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  772. { "Name": "翻譯", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  773. { "Name": "魔盒識字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  774. { "Name": "24點", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  775. { "Name": "數學畫板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  776. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  777. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  778. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  779. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  780. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  781. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  782. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  783. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  784. ];
  785. //dsei
  786. U.MD.D.I.dseiStudentDeskIcon = [
  787. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  788. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  789. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  790. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  791. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  792. ];
  793. //未來教育基地
  794. U.MD.D.I.szjkyTeacherDeskIcon = [
  795. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  796. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  797. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  798. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  799. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  800. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  801. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  802. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  803. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  804. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  805. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  806. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  807. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  808. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  809. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  810. ];
  811. //未來教育基地
  812. U.MD.D.I.szjkyAdminDeskIcon = [
  813. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  814. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  815. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  816. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  817. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  818. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  819. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  820. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  821. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  822. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  823. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  824. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  825. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  826. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  827. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  828. ];
  829. //未來教育基地
  830. U.MD.D.I.szjkyStudentDeskIcon = [
  831. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  832. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  833. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  834. ];
  835. //成華教育局
  836. U.MD.D.I.chjyjTeacherDeskIcon = [
  837. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  838. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  839. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  840. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  841. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  842. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  843. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  844. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  845. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  846. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  847. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  848. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  849. ];
  850. //成華教育局chjyj
  851. U.MD.D.I.chjyjAdminDeskIcon = [
  852. { "Name": "課程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  853. { "Name": "課程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  854. { "Name": "項目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  855. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  856. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  857. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  858. { "Name": "學生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  859. { "Name": "學生評價", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  860. { "Name": "班級管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  861. { "Name": "教學資源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  862. { "Name": "課程進展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  863. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  864. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  865. ];
  866. //成華教育局chjyj
  867. U.MD.D.I.chjyjStudentDeskIcon = [
  868. { "Name": "課程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  869. { "Name": "項目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  870. { "Name": "項目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  871. ];
  872. //#region 桌面初始化a
  873. /**
  874. * 初始化桌面的起始函數
  875. *
  876. */
  877. U.MD.D.I.init = function() {
  878. if ($("#U_MD_D_K")[0]) {
  879. //初始化桌面圖標
  880. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  881. // var clickUrl = ':12588/requestIp.php';
  882. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  883. // U.MD.D.I.Ip = data;
  884. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  885. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  886. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  887. // })
  888. // //初始化任務欄,因為是靜態的,所以直接改變樣式即可.
  889. // })
  890. }
  891. }
  892. /**
  893. * 模式切換
  894. *
  895. */
  896. U.MD.D.I.ModeCheck = function(type) {
  897. if (US.Config.type == type) {
  898. return
  899. }
  900. US.Config.type = type
  901. $('.U_PBL_Check .active')[0].className = ''
  902. if (type == 1) {
  903. $('.U_PBL_Check div')[0].className = 'active'
  904. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  905. } else {
  906. $('.U_PBL_Check div')[1].className = 'active'
  907. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  908. }
  909. //初始化桌面圖標
  910. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  911. if (type == 2) {
  912. U.MD.D.I.openApplication("project")
  913. }
  914. }
  915. /**
  916. * 隱藏任務欄
  917. *
  918. * @param {element} 桌面元素
  919. */
  920. U.MD.D.I.hiddenTaskbar = function(el) {
  921. //任務欄位置變小
  922. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  923. //桌面的位置變大
  924. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  925. }
  926. /**
  927. * 隱藏任務欄
  928. *
  929. * @param {element} 桌面元素
  930. */
  931. U.MD.D.I.hiddenTaskbarout = function(el) {
  932. //任務欄位置變小
  933. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  934. //任務欄位置變化
  935. U.selectEl(el).css({ "bottom": "-60px" });
  936. //桌面的位置變大
  937. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  938. }
  939. }
  940. /**
  941. * 初始化打印桌面圖標
  942. *
  943. * @param {element} 桌面元素
  944. */
  945. U.MD.D.I.initDesktopIcons = function(el, type) {
  946. var i, //用於循環
  947. _content, //桌面圖標元素
  948. _iconcontent, //桌面圖標元素
  949. _frag = $$("frag"), //定義一個碎片元素
  950. _type = US.userInfo.type,
  951. _org = US.userInfo.org,
  952. _oid = US.userInfo.organizeid,
  953. _role = US.userInfo.role,
  954. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //獲取教師端桌面圖標
  955. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //極簡模式桌面圖標
  956. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //獲取教師端桌面圖標
  957. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //獲取學生端桌面圖標
  958. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //獲取學生端桌面圖標
  959. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //獲取學生端桌面圖標
  960. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //獲取組織桌面圖標
  961. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  962. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  963. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  964. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //獲取測試學校桌面圖標
  965. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon, //獲取北師大
  966. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon, //獲取周佳名工作室
  967. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon, //獲取松山湖
  968. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon, //獲取萬科雙語
  969. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon, //獲取萬科雙語
  970. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon, //獲取萬科雙語
  971. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon, //獲取未來小學
  972. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon, //獲取未來小學
  973. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //獲取光明學校桌面圖標
  974. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //獲取光明學校桌面圖標
  975. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon, //騰訊學生
  976. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon, //騰訊學生
  977. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon, //福田
  978. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon, //福田
  979. _szjkyTeacherDeskIconInfo = U.MD.D.I.szjkyTeacherDeskIcon, //未來教育基地
  980. _szjkyAdminDeskIconInfo = U.MD.D.I.szjkyAdminDeskIcon, //未來教育基地
  981. _szjkyStudentDeskIconInfo = U.MD.D.I.szjkyStudentDeskIcon, //未來教育基地
  982. _chjyjTeacherDeskIconInfo = U.MD.D.I.chjyjTeacherDeskIcon, //成華教育局
  983. _chjyjAdminDeskIconInfo = U.MD.D.I.chjyjAdminDeskIcon, //成華教育局
  984. _chjyjStudentDeskIconInfo = U.MD.D.I.chjyjStudentDeskIcon, //成華教育局
  985. _dseiTeacherDeskIconInfo = U.MD.D.I.dseiTeacherDeskIcon, //dsei
  986. _dseiAdminDeskIconInfo = U.MD.D.I.dseiAdminDeskIcon, //dsei
  987. _dseiStudentDeskIconInfo = U.MD.D.I.dseiStudentDeskIcon, //dsei
  988. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon, //福田
  989. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon, //福田
  990. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon, //szher
  991. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon, //
  992. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon, //
  993. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon, //lotech
  994. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon, //龍華中心
  995. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon, //sies
  996. _siesStudentDeskIconInfo = U.MD.D.I.siesStudentDeskIcon, //sies
  997. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon, //騰訊學生
  998. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon, //hk
  999. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon, //hk
  1000. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon, //hk
  1001. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon, //hk
  1002. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon, //雲海
  1003. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon, //網絡夏令營
  1004. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon, //網絡夏令營
  1005. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon; //網絡夏令營
  1006. 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'];
  1007. 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'];
  1008. //清楚桌面圖標
  1009. el.innerHTML = "";
  1010. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  1011. _teacherDesktopIconInfo.push(
  1012. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1013. { "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)" } },
  1014. )
  1015. _easyDesktopIconInfo.push({ "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } })
  1016. }
  1017. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  1018. _teacherDesktopIconInfo.push(
  1019. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  1020. { "Name": "學習分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  1021. { "Name": "AI共創", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1022. { "Name": "AI協同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  1023. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  1024. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  1025. { "Name": "知識建構", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
  1026. { "Name": "數據看板", "Url": "dataBoard", "style": { "cssText": "background-image:url(/img/icon/dataBoard.png)" } },
  1027. )
  1028. }
  1029. if (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
  1030. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  1031. if (el.Name == '項目管理') {
  1032. el.Name = 'PBL項目'
  1033. }
  1034. return el
  1035. })
  1036. }
  1037. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  1038. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  1039. return el.Name != '魔盒識字' && el.Name != '24點'
  1040. })
  1041. }
  1042. 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) {
  1043. _studentDesktopIconInfo.push({ "Name": "我的評價", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } }, )
  1044. }
  1045. //循環創建桌面圖標
  1046. if (type == 1) {
  1047. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  1048. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1049. _content = $$("div", {
  1050. className: "U_MD_D_KO",
  1051. "onmousedown": U.UF.C.closure(function(obj) {
  1052. //防止拖動圖標即打開了桌面應用
  1053. U.MD.D.click(this, obj);
  1054. }, [_studentDesktopIconInfo[i]]),
  1055. "onclick": U.UF.C.closure(function(obj) {
  1056. //防止拖動圖標即打開了桌面應用
  1057. U.MD.D.click(this, obj);
  1058. }, [_studentDesktopIconInfo[i]])
  1059. }, _frag); //
  1060. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1061. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1062. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1063. }
  1064. } else if (_type == 2 && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1065. for (i = 0; i < _hkZJLSStudentDeskIconInfo.length; i++) {
  1066. _content = $$("div", {
  1067. className: "U_MD_D_KO",
  1068. "onmousedown": U.UF.C.closure(function(obj) {
  1069. //防止拖動圖標即打開了桌面應用
  1070. U.MD.D.click(this, obj);
  1071. }, [_hkZJLSStudentDeskIconInfo[i]]),
  1072. "onclick": U.UF.C.closure(function(obj) {
  1073. //防止拖動圖標即打開了桌面應用
  1074. U.MD.D.click(this, obj);
  1075. }, [_hkZJLSStudentDeskIconInfo[i]])
  1076. }, _frag); //
  1077. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1078. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  1079. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  1080. } //
  1081. } else if (_type == 2 && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5")) {
  1082. for (i = 0; i < _chjyjStudentDeskIconInfo.length; i++) {
  1083. _content = $$("div", {
  1084. className: "U_MD_D_KO",
  1085. "onmousedown": U.UF.C.closure(function(obj) {
  1086. //防止拖動圖標即打開了桌面應用
  1087. U.MD.D.click(this, obj);
  1088. }, [_chjyjStudentDeskIconInfo[i]]),
  1089. "onclick": U.UF.C.closure(function(obj) {
  1090. //防止拖動圖標即打開了桌面應用
  1091. U.MD.D.click(this, obj);
  1092. }, [_chjyjStudentDeskIconInfo[i]])
  1093. }, _frag); //
  1094. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1095. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjStudentDeskIconInfo[i].style }, _iconcontent);
  1096. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjStudentDeskIconInfo[i].Name }, _iconcontent);
  1097. }
  1098. } else if (_type == 2 && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5")) {
  1099. for (i = 0; i < _szjkyStudentDeskIconInfo.length; i++) {
  1100. _content = $$("div", {
  1101. className: "U_MD_D_KO",
  1102. "onmousedown": U.UF.C.closure(function(obj) {
  1103. //防止拖動圖標即打開了桌面應用
  1104. U.MD.D.click(this, obj);
  1105. }, [_szjkyStudentDeskIconInfo[i]]),
  1106. "onclick": U.UF.C.closure(function(obj) {
  1107. //防止拖動圖標即打開了桌面應用
  1108. U.MD.D.click(this, obj);
  1109. }, [_szjkyStudentDeskIconInfo[i]])
  1110. }, _frag); //
  1111. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1112. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyStudentDeskIconInfo[i].style }, _iconcontent);
  1113. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyStudentDeskIconInfo[i].Name }, _iconcontent);
  1114. }
  1115. } else if (_type == 2 && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5")) {
  1116. for (i = 0; i < _dseiStudentDeskIconInfo.length; i++) {
  1117. _content = $$("div", {
  1118. className: "U_MD_D_KO",
  1119. "onmousedown": U.UF.C.closure(function(obj) {
  1120. //防止拖動圖標即打開了桌面應用
  1121. U.MD.D.click(this, obj);
  1122. }, [_dseiStudentDeskIconInfo[i]]),
  1123. "onclick": U.UF.C.closure(function(obj) {
  1124. //防止拖動圖標即打開了桌面應用
  1125. U.MD.D.click(this, obj);
  1126. }, [_dseiStudentDeskIconInfo[i]])
  1127. }, _frag); //
  1128. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1129. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiStudentDeskIconInfo[i].style }, _iconcontent);
  1130. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiStudentDeskIconInfo[i].Name }, _iconcontent);
  1131. }
  1132. } else if (_type == 2 && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1133. for (i = 0; i < _siesStudentDeskIconInfo.length; i++) {
  1134. _content = $$("div", {
  1135. className: "U_MD_D_KO",
  1136. "onmousedown": U.UF.C.closure(function(obj) {
  1137. //防止拖動圖標即打開了桌面應用
  1138. U.MD.D.click(this, obj);
  1139. }, [_siesStudentDeskIconInfo[i]]),
  1140. "onclick": U.UF.C.closure(function(obj) {
  1141. //防止拖動圖標即打開了桌面應用
  1142. U.MD.D.click(this, obj);
  1143. }, [_siesStudentDeskIconInfo[i]])
  1144. }, _frag); //
  1145. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1146. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesStudentDeskIconInfo[i].style }, _iconcontent);
  1147. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesStudentDeskIconInfo[i].Name }, _iconcontent);
  1148. }
  1149. } else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1150. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  1151. _content = $$("div", {
  1152. className: "U_MD_D_KO",
  1153. "onmousedown": U.UF.C.closure(function(obj) {
  1154. //防止拖動圖標即打開了桌面應用
  1155. U.MD.D.click(this, obj);
  1156. }, [_hkStudentDeskIconInfo[i]]),
  1157. "onclick": U.UF.C.closure(function(obj) {
  1158. //防止拖動圖標即打開了桌面應用
  1159. U.MD.D.click(this, obj);
  1160. }, [_hkStudentDeskIconInfo[i]])
  1161. }, _frag); //
  1162. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1163. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  1164. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  1165. }
  1166. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  1167. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1168. _content = $$("div", {
  1169. className: "U_MD_D_KO",
  1170. "onmousedown": U.UF.C.closure(function(obj) {
  1171. //防止拖動圖標即打開了桌面應用
  1172. U.MD.D.click(this, obj);
  1173. }, [_studentDesktopIconInfo[i]]),
  1174. "onclick": U.UF.C.closure(function(obj) {
  1175. //防止拖動圖標即打開了桌面應用
  1176. U.MD.D.click(this, obj);
  1177. }, [_studentDesktopIconInfo[i]])
  1178. }, _frag); //
  1179. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1180. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1181. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1182. }
  1183. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  1184. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  1185. _content = $$("div", {
  1186. className: "U_MD_D_KO",
  1187. "onmousedown": U.UF.C.closure(function(obj) {
  1188. //防止拖動圖標即打開了桌面應用
  1189. U.MD.D.click(this, obj);
  1190. }, [_tcStudentDeskIconInfo[i]]),
  1191. "onclick": U.UF.C.closure(function(obj) {
  1192. //防止拖動圖標即打開了桌面應用
  1193. U.MD.D.click(this, obj);
  1194. }, [_tcStudentDeskIconInfo[i]])
  1195. }, _frag); //
  1196. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1197. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  1198. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  1199. }
  1200. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  1201. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  1202. _content = $$("div", {
  1203. className: "U_MD_D_KO",
  1204. "onmousedown": U.UF.C.closure(function(obj) {
  1205. //防止拖動圖標即打開了桌面應用
  1206. U.MD.D.click(this, obj);
  1207. }, [_szscStudentDeskIconInfo[i]]),
  1208. "onclick": U.UF.C.closure(function(obj) {
  1209. //防止拖動圖標即打開了桌面應用
  1210. U.MD.D.click(this, obj);
  1211. }, [_szscStudentDeskIconInfo[i]])
  1212. }, _frag); //
  1213. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1214. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  1215. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  1216. }
  1217. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  1218. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  1219. _content = $$("div", {
  1220. className: "U_MD_D_KO",
  1221. "onmousedown": U.UF.C.closure(function(obj) {
  1222. //防止拖動圖標即打開了桌面應用
  1223. U.MD.D.click(this, obj);
  1224. }, [_studentDesktopIconInfo3[i]]),
  1225. "onclick": U.UF.C.closure(function(obj) {
  1226. //防止拖動圖標即打開了桌面應用
  1227. U.MD.D.click(this, obj);
  1228. }, [_studentDesktopIconInfo3[i]])
  1229. }, _frag); //
  1230. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1231. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  1232. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  1233. }
  1234. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  1235. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  1236. _content = $$("div", {
  1237. className: "U_MD_D_KO",
  1238. "onmousedown": U.UF.C.closure(function(obj) {
  1239. //防止拖動圖標即打開了桌面應用
  1240. U.MD.D.click(this, obj);
  1241. }, [_studentDesktopIconInfo2[i]]),
  1242. "onclick": U.UF.C.closure(function(obj) {
  1243. //防止拖動圖標即打開了桌面應用
  1244. U.MD.D.click(this, obj);
  1245. }, [_studentDesktopIconInfo2[i]])
  1246. }, _frag); //
  1247. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1248. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  1249. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  1250. }
  1251. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  1252. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  1253. _content = $$("div", {
  1254. className: "U_MD_D_KO",
  1255. "onmousedown": U.UF.C.closure(function(obj) {
  1256. //防止拖動圖標即打開了桌面應用
  1257. U.MD.D.click(this, obj);
  1258. }, [_wanketeacherDesktopIconInfo[i]]),
  1259. "onclick": U.UF.C.closure(function(obj) {
  1260. //防止拖動圖標即打開了桌面應用
  1261. U.MD.D.click(this, obj);
  1262. }, [_wanketeacherDesktopIconInfo[i]])
  1263. }, _frag); //
  1264. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1265. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  1266. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  1267. }
  1268. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1269. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  1270. _content = $$("div", {
  1271. className: "U_MD_D_KO",
  1272. "onmousedown": U.UF.C.closure(function(obj) {
  1273. //防止拖動圖標即打開了桌面應用
  1274. U.MD.D.click(this, obj);
  1275. }, [_wankeAdminDesktopIconInfo[i]]),
  1276. "onclick": U.UF.C.closure(function(obj) {
  1277. //防止拖動圖標即打開了桌面應用
  1278. U.MD.D.click(this, obj);
  1279. }, [_wankeAdminDesktopIconInfo[i]])
  1280. }, _frag); //
  1281. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1282. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1283. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1284. }
  1285. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1286. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  1287. _content = $$("div", {
  1288. className: "U_MD_D_KO",
  1289. "onmousedown": U.UF.C.closure(function(obj) {
  1290. //防止拖動圖標即打開了桌面應用
  1291. U.MD.D.click(this, obj);
  1292. }, [_teacherDesktopIconInfo2[i]]),
  1293. "onclick": U.UF.C.closure(function(obj) {
  1294. //防止拖動圖標即打開了桌面應用
  1295. U.MD.D.click(this, obj);
  1296. }, [_teacherDesktopIconInfo2[i]])
  1297. }, _frag); //
  1298. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1299. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1300. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1301. }
  1302. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1303. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  1304. _content = $$("div", {
  1305. className: "U_MD_D_KO",
  1306. "onmousedown": U.UF.C.closure(function(obj) {
  1307. //防止拖動圖標即打開了桌面應用
  1308. U.MD.D.click(this, obj);
  1309. }, [_lotechTeacherDeskIconInfo[i]]),
  1310. "onclick": U.UF.C.closure(function(obj) {
  1311. //防止拖動圖標即打開了桌面應用
  1312. U.MD.D.click(this, obj);
  1313. }, [_lotechTeacherDeskIconInfo[i]])
  1314. }, _frag); //
  1315. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1316. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1317. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1318. }//
  1319. } else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1320. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1321. _content = $$("div", {
  1322. className: "U_MD_D_KO",
  1323. "onmousedown": U.UF.C.closure(function(obj) {
  1324. //防止拖動圖標即打開了桌面應用
  1325. U.MD.D.click(this, obj);
  1326. }, [_siesTeacherDeskIconInfo[i]]),
  1327. "onclick": U.UF.C.closure(function(obj) {
  1328. //防止拖動圖標即打開了桌面應用
  1329. U.MD.D.click(this, obj);
  1330. }, [_siesTeacherDeskIconInfo[i]])
  1331. }, _frag); //
  1332. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1333. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1334. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1335. }
  1336. } else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1337. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1338. _content = $$("div", {
  1339. className: "U_MD_D_KO",
  1340. "onmousedown": U.UF.C.closure(function(obj) {
  1341. //防止拖動圖標即打開了桌面應用
  1342. U.MD.D.click(this, obj);
  1343. }, [_longhuaTeacherDeskIconInfo[i]]),
  1344. "onclick": U.UF.C.closure(function(obj) {
  1345. //防止拖動圖標即打開了桌面應用
  1346. U.MD.D.click(this, obj);
  1347. }, [_longhuaTeacherDeskIconInfo[i]])
  1348. }, _frag); //
  1349. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1350. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1351. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1352. }
  1353. } else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1354. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1355. _content = $$("div", {
  1356. className: "U_MD_D_KO",
  1357. "onmousedown": U.UF.C.closure(function(obj) {
  1358. //防止拖動圖標即打開了桌面應用
  1359. U.MD.D.click(this, obj);
  1360. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1361. "onclick": U.UF.C.closure(function(obj) {
  1362. //防止拖動圖標即打開了桌面應用
  1363. U.MD.D.click(this, obj);
  1364. }, [_yunhaiTeacherDeskIconInfo[i]])
  1365. }, _frag); //
  1366. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1367. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1368. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1369. } //_hkStudentDeskIconInfo
  1370. } else if ((_type == 1 || _type == 4) && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1371. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.length; i++) {
  1372. _content = $$("div", {
  1373. className: "U_MD_D_KO",
  1374. "onmousedown": U.UF.C.closure(function(obj) {
  1375. //防止拖動圖標即打開了桌面應用
  1376. U.MD.D.click(this, obj);
  1377. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1378. "onclick": U.UF.C.closure(function(obj) {
  1379. //防止拖動圖標即打開了桌面應用
  1380. U.MD.D.click(this, obj);
  1381. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1382. }, _frag); //
  1383. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1384. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1385. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1386. }
  1387. } else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1388. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1389. _content = $$("div", {
  1390. className: "U_MD_D_KO",
  1391. "onmousedown": U.UF.C.closure(function(obj) {
  1392. //防止拖動圖標即打開了桌面應用
  1393. U.MD.D.click(this, obj);
  1394. }, [_hkTeacherDeskIconInfo[i]]),
  1395. "onclick": U.UF.C.closure(function(obj) {
  1396. //防止拖動圖標即打開了桌面應用
  1397. U.MD.D.click(this, obj);
  1398. }, [_hkTeacherDeskIconInfo[i]])
  1399. }, _frag); //
  1400. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1401. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1402. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1403. }
  1404. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1405. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1406. _content = $$("div", {
  1407. className: "U_MD_D_KO",
  1408. "onmousedown": U.UF.C.closure(function(obj) {
  1409. //防止拖動圖標即打開了桌面應用
  1410. U.MD.D.click(this, obj);
  1411. }, [_gdjgAdminDeskIconInfo[i]]),
  1412. "onclick": U.UF.C.closure(function(obj) {
  1413. //防止拖動圖標即打開了桌面應用
  1414. U.MD.D.click(this, obj);
  1415. }, [_gdjgAdminDeskIconInfo[i]])
  1416. }, _frag); //
  1417. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1418. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1419. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1420. }
  1421. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1422. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1423. _content = $$("div", {
  1424. className: "U_MD_D_KO",
  1425. "onmousedown": U.UF.C.closure(function(obj) {
  1426. //防止拖動圖標即打開了桌面應用
  1427. U.MD.D.click(this, obj);
  1428. }, [_gdjgTeacherDeskIconInfo[i]]),
  1429. "onclick": U.UF.C.closure(function(obj) {
  1430. //防止拖動圖標即打開了桌面應用
  1431. U.MD.D.click(this, obj);
  1432. }, [_gdjgTeacherDeskIconInfo[i]])
  1433. }, _frag); //
  1434. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1435. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1436. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1437. }
  1438. } else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1439. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1440. _content = $$("div", {
  1441. className: "U_MD_D_KO",
  1442. "onmousedown": U.UF.C.closure(function(obj) {
  1443. //防止拖動圖標即打開了桌面應用
  1444. U.MD.D.click(this, obj);
  1445. }, [_szherTeacherDeskIconInfo[i]]),
  1446. "onclick": U.UF.C.closure(function(obj) {
  1447. //防止拖動圖標即打開了桌面應用
  1448. U.MD.D.click(this, obj);
  1449. }, [_szherTeacherDeskIconInfo[i]])
  1450. }, _frag); //
  1451. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1452. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1453. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1454. }
  1455. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1456. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1457. _content = $$("div", {
  1458. className: "U_MD_D_KO",
  1459. "onmousedown": U.UF.C.closure(function(obj) {
  1460. //防止拖動圖標即打開了桌面應用
  1461. U.MD.D.click(this, obj);
  1462. }, [_heyuannAdminDeskIconInfo[i]]),
  1463. "onclick": U.UF.C.closure(function(obj) {
  1464. //防止拖動圖標即打開了桌面應用
  1465. U.MD.D.click(this, obj);
  1466. }, [_heyuannAdminDeskIconInfo[i]])
  1467. }, _frag); //
  1468. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1469. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1470. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1471. }
  1472. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1473. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1474. _content = $$("div", {
  1475. className: "U_MD_D_KO",
  1476. "onmousedown": U.UF.C.closure(function(obj) {
  1477. //防止拖動圖標即打開了桌面應用
  1478. U.MD.D.click(this, obj);
  1479. }, [_heyuanTeacherDeskIconInfo[i]]),
  1480. "onclick": U.UF.C.closure(function(obj) {
  1481. //防止拖動圖標即打開了桌面應用
  1482. U.MD.D.click(this, obj);
  1483. }, [_heyuanTeacherDeskIconInfo[i]])
  1484. }, _frag); //
  1485. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1486. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1487. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1488. } //
  1489. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 1) {
  1490. for (i = 0; i < _dseiAdminDeskIconInfo.length; i++) {
  1491. _content = $$("div", {
  1492. className: "U_MD_D_KO",
  1493. "onmousedown": U.UF.C.closure(function(obj) {
  1494. //防止拖動圖標即打開了桌面應用
  1495. U.MD.D.click(this, obj);
  1496. }, [_dseiAdminDeskIconInfo[i]]),
  1497. "onclick": U.UF.C.closure(function(obj) {
  1498. //防止拖動圖標即打開了桌面應用
  1499. U.MD.D.click(this, obj);
  1500. }, [_dseiAdminDeskIconInfo[i]])
  1501. }, _frag); //
  1502. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1503. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiAdminDeskIconInfo[i].style }, _iconcontent);
  1504. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiAdminDeskIconInfo[i].Name }, _iconcontent);
  1505. }
  1506. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 0) {
  1507. for (i = 0; i < _dseiTeacherDeskIconInfo.length; i++) {
  1508. _content = $$("div", {
  1509. className: "U_MD_D_KO",
  1510. "onmousedown": U.UF.C.closure(function(obj) {
  1511. //防止拖動圖標即打開了桌面應用
  1512. U.MD.D.click(this, obj);
  1513. }, [_dseiTeacherDeskIconInfo[i]]),
  1514. "onclick": U.UF.C.closure(function(obj) {
  1515. //防止拖動圖標即打開了桌面應用
  1516. U.MD.D.click(this, obj);
  1517. }, [_dseiTeacherDeskIconInfo[i]])
  1518. }, _frag); //
  1519. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1520. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiTeacherDeskIconInfo[i].style }, _iconcontent);
  1521. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1522. } //
  1523. }else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 1) {
  1524. for (i = 0; i < _chjyjAdminDeskIconInfo.length; i++) {
  1525. _content = $$("div", {
  1526. className: "U_MD_D_KO",
  1527. "onmousedown": U.UF.C.closure(function(obj) {
  1528. //防止拖動圖標即打開了桌面應用
  1529. U.MD.D.click(this, obj);
  1530. }, [_chjyjAdminDeskIconInfo[i]]),
  1531. "onclick": U.UF.C.closure(function(obj) {
  1532. //防止拖動圖標即打開了桌面應用
  1533. U.MD.D.click(this, obj);
  1534. }, [_chjyjAdminDeskIconInfo[i]])
  1535. }, _frag); //
  1536. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1537. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjAdminDeskIconInfo[i].style }, _iconcontent);
  1538. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjAdminDeskIconInfo[i].Name }, _iconcontent);
  1539. }//
  1540. } else if ((_type == 1 || _type == 4) && (_org == "2fa75e51-189a-11ee-91d8-005056b86db5") && _role == 0) {
  1541. for (i = 0; i < _chjyjTeacherDeskIconInfo.length; i++) {
  1542. _content = $$("div", {
  1543. className: "U_MD_D_KO",
  1544. "onmousedown": U.UF.C.closure(function(obj) {
  1545. //防止拖動圖標即打開了桌面應用
  1546. U.MD.D.click(this, obj);
  1547. }, [_chjyjTeacherDeskIconInfo[i]]),
  1548. "onclick": U.UF.C.closure(function(obj) {
  1549. //防止拖動圖標即打開了桌面應用
  1550. U.MD.D.click(this, obj);
  1551. }, [_chjyjTeacherDeskIconInfo[i]])
  1552. }, _frag); //
  1553. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1554. $$("div", { className: "U_MD_D_KOS U_Img", "style": _chjyjTeacherDeskIconInfo[i].style }, _iconcontent);
  1555. $$("div", { className: "U_MD_D_KOX", "innerHTML": _chjyjTeacherDeskIconInfo[i].Name }, _iconcontent);
  1556. }
  1557. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 1) {
  1558. for (i = 0; i < _szjkyAdminDeskIconInfo.length; i++) {
  1559. _content = $$("div", {
  1560. className: "U_MD_D_KO",
  1561. "onmousedown": U.UF.C.closure(function(obj) {
  1562. //防止拖動圖標即打開了桌面應用
  1563. U.MD.D.click(this, obj);
  1564. }, [_szjkyAdminDeskIconInfo[i]]),
  1565. "onclick": U.UF.C.closure(function(obj) {
  1566. //防止拖動圖標即打開了桌面應用
  1567. U.MD.D.click(this, obj);
  1568. }, [_szjkyAdminDeskIconInfo[i]])
  1569. }, _frag); //
  1570. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1571. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyAdminDeskIconInfo[i].style }, _iconcontent);
  1572. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyAdminDeskIconInfo[i].Name }, _iconcontent);
  1573. }//
  1574. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 0) {
  1575. for (i = 0; i < _szjkyTeacherDeskIconInfo.length; i++) {
  1576. _content = $$("div", {
  1577. className: "U_MD_D_KO",
  1578. "onmousedown": U.UF.C.closure(function(obj) {
  1579. //防止拖動圖標即打開了桌面應用
  1580. U.MD.D.click(this, obj);
  1581. }, [_szjkyTeacherDeskIconInfo[i]]),
  1582. "onclick": U.UF.C.closure(function(obj) {
  1583. //防止拖動圖標即打開了桌面應用
  1584. U.MD.D.click(this, obj);
  1585. }, [_szjkyTeacherDeskIconInfo[i]])
  1586. }, _frag); //
  1587. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1588. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyTeacherDeskIconInfo[i].style }, _iconcontent);
  1589. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyTeacherDeskIconInfo[i].Name }, _iconcontent);
  1590. }
  1591. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1592. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1593. _content = $$("div", {
  1594. className: "U_MD_D_KO",
  1595. "onmousedown": U.UF.C.closure(function(obj) {
  1596. //防止拖動圖標即打開了桌面應用
  1597. U.MD.D.click(this, obj);
  1598. }, [_futianAdminDeskIconInfo[i]]),
  1599. "onclick": U.UF.C.closure(function(obj) {
  1600. //防止拖動圖標即打開了桌面應用
  1601. U.MD.D.click(this, obj);
  1602. }, [_futianAdminDeskIconInfo[i]])
  1603. }, _frag); //
  1604. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1605. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1606. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1607. }
  1608. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1609. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1610. _content = $$("div", {
  1611. className: "U_MD_D_KO",
  1612. "onmousedown": U.UF.C.closure(function(obj) {
  1613. //防止拖動圖標即打開了桌面應用
  1614. U.MD.D.click(this, obj);
  1615. }, [_futianTeacherDeskIconInfo[i]]),
  1616. "onclick": U.UF.C.closure(function(obj) {
  1617. //防止拖動圖標即打開了桌面應用
  1618. U.MD.D.click(this, obj);
  1619. }, [_futianTeacherDeskIconInfo[i]])
  1620. }, _frag); //
  1621. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1622. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1623. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1624. }
  1625. } else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1626. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1627. _content = $$("div", {
  1628. className: "U_MD_D_KO",
  1629. "onmousedown": U.UF.C.closure(function(obj) {
  1630. //防止拖動圖標即打開了桌面應用
  1631. U.MD.D.click(this, obj);
  1632. }, [_MingdeTeacherDeskIcon[i]]),
  1633. "onclick": U.UF.C.closure(function(obj) {
  1634. //防止拖動圖標即打開了桌面應用
  1635. U.MD.D.click(this, obj);
  1636. }, [_MingdeTeacherDeskIcon[i]])
  1637. }, _frag); //
  1638. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1639. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1640. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1641. }
  1642. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1643. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1644. _content = $$("div", {
  1645. className: "U_MD_D_KO",
  1646. "onmousedown": U.UF.C.closure(function(obj) {
  1647. //防止拖動圖標即打開了桌面應用
  1648. U.MD.D.click(this, obj);
  1649. }, [_lhsAdminDesktopIconInfo[i]]),
  1650. "onclick": U.UF.C.closure(function(obj) {
  1651. //防止拖動圖標即打開了桌面應用
  1652. U.MD.D.click(this, obj);
  1653. }, [_lhsAdminDesktopIconInfo[i]])
  1654. }, _frag); //
  1655. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1656. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1657. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1658. }
  1659. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1660. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1661. _content = $$("div", {
  1662. className: "U_MD_D_KO",
  1663. "onmousedown": U.UF.C.closure(function(obj) {
  1664. //防止拖動圖標即打開了桌面應用
  1665. U.MD.D.click(this, obj);
  1666. }, [_lhsteacherDesktopIconInfo[i]]),
  1667. "onclick": U.UF.C.closure(function(obj) {
  1668. //防止拖動圖標即打開了桌面應用
  1669. U.MD.D.click(this, obj);
  1670. }, [_lhsteacherDesktopIconInfo[i]])
  1671. }, _frag); //
  1672. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1673. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1674. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1675. }
  1676. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1677. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1678. _content = $$("div", {
  1679. className: "U_MD_D_KO",
  1680. "onmousedown": U.UF.C.closure(function(obj) {
  1681. //防止拖動圖標即打開了桌面應用
  1682. U.MD.D.click(this, obj);
  1683. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1684. "onclick": U.UF.C.closure(function(obj) {
  1685. //防止拖動圖標即打開了桌面應用
  1686. U.MD.D.click(this, obj);
  1687. }, [_zhoujiateacherDesktopIconInfo[i]])
  1688. }, _frag); //
  1689. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1690. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1691. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1692. }
  1693. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1694. for (i = 0; i < _hanDeskIcon.length; i++) {
  1695. _content = $$("div", {
  1696. className: "U_MD_D_KO",
  1697. "onmousedown": U.UF.C.closure(function(obj) {
  1698. //防止拖動圖標即打開了桌面應用
  1699. U.MD.D.click(this, obj);
  1700. }, [_hanDeskIcon[i]]),
  1701. "onclick": U.UF.C.closure(function(obj) {
  1702. //防止拖動圖標即打開了桌面應用
  1703. U.MD.D.click(this, obj);
  1704. }, [_hanDeskIcon[i]])
  1705. }, _frag); //
  1706. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1707. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1708. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1709. }
  1710. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1711. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1712. _content = $$("div", {
  1713. className: "U_MD_D_KO",
  1714. "onmousedown": U.UF.C.closure(function(obj) {
  1715. //防止拖動圖標即打開了桌面應用
  1716. U.MD.D.click(this, obj);
  1717. }, [_orgStemDeskIcon[i]]),
  1718. "onclick": U.UF.C.closure(function(obj) {
  1719. //防止拖動圖標即打開了桌面應用
  1720. U.MD.D.click(this, obj);
  1721. }, [_orgStemDeskIcon[i]])
  1722. }, _frag); //
  1723. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1724. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1725. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1726. }
  1727. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1728. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1729. _content = $$("div", {
  1730. className: "U_MD_D_KO",
  1731. "onmousedown": U.UF.C.closure(function(obj) {
  1732. //防止拖動圖標即打開了桌面應用
  1733. U.MD.D.click(this, obj);
  1734. }, [_szulsDeskIcon[i]]),
  1735. "onclick": U.UF.C.closure(function(obj) {
  1736. //防止拖動圖標即打開了桌面應用
  1737. U.MD.D.click(this, obj);
  1738. }, [_szulsDeskIcon[i]])
  1739. }, _frag); //
  1740. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1741. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1742. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1743. }
  1744. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1745. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1746. _content = $$("div", {
  1747. className: "U_MD_D_KO",
  1748. "onmousedown": U.UF.C.closure(function(obj) {
  1749. //防止拖動圖標即打開了桌面應用
  1750. U.MD.D.click(this, obj);
  1751. }, [_orgDesktopIconInfo[i]]),
  1752. "onclick": U.UF.C.closure(function(obj) {
  1753. //防止拖動圖標即打開了桌面應用
  1754. U.MD.D.click(this, obj);
  1755. }, [_orgDesktopIconInfo[i]])
  1756. }, _frag); //
  1757. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1758. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1759. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1760. }
  1761. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1762. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1763. _content = $$("div", {
  1764. className: "U_MD_D_KO",
  1765. "onmousedown": U.UF.C.closure(function(obj) {
  1766. //防止拖動圖標即打開了桌面應用
  1767. U.MD.D.click(this, obj);
  1768. }, [_schoolDesktopIconInfo[i]]),
  1769. "onclick": U.UF.C.closure(function(obj) {
  1770. //防止拖動圖標即打開了桌面應用
  1771. U.MD.D.click(this, obj);
  1772. }, [_schoolDesktopIconInfo[i]])
  1773. }, _frag); //
  1774. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1775. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1776. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1777. }
  1778. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1779. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1780. _content = $$("div", {
  1781. className: "U_MD_D_KO",
  1782. "onmousedown": U.UF.C.closure(function(obj) {
  1783. //防止拖動圖標即打開了桌面應用
  1784. U.MD.D.click(this, obj);
  1785. }, [_GMteacherDesktopIconInfo[i]]),
  1786. "onclick": U.UF.C.closure(function(obj) {
  1787. //防止拖動圖標即打開了桌面應用
  1788. U.MD.D.click(this, obj);
  1789. }, [_GMteacherDesktopIconInfo[i]])
  1790. }, _frag); //
  1791. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1792. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1793. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1794. }
  1795. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1796. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1797. _content = $$("div", {
  1798. className: "U_MD_D_KO",
  1799. "onmousedown": U.UF.C.closure(function(obj) {
  1800. //防止拖動圖標即打開了桌面應用
  1801. U.MD.D.click(this, obj);
  1802. }, [_SONGteacherDesktopIconInfo[i]]),
  1803. "onclick": U.UF.C.closure(function(obj) {
  1804. //防止拖動圖標即打開了桌面應用
  1805. U.MD.D.click(this, obj);
  1806. }, [_SONGteacherDesktopIconInfo[i]])
  1807. }, _frag); //
  1808. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1809. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1810. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1811. }
  1812. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1813. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1814. _content = $$("div", {
  1815. className: "U_MD_D_KO",
  1816. "onmousedown": U.UF.C.closure(function(obj) {
  1817. //防止拖動圖標即打開了桌面應用
  1818. U.MD.D.click(this, obj);
  1819. }, [_GMstudentDesktopIconInfo[i]]),
  1820. "onclick": U.UF.C.closure(function(obj) {
  1821. //防止拖動圖標即打開了桌面應用
  1822. U.MD.D.click(this, obj);
  1823. }, [_GMstudentDesktopIconInfo[i]])
  1824. }, _frag); //
  1825. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1826. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1827. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1828. }
  1829. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1830. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1831. _content = $$("div", {
  1832. className: "U_MD_D_KO",
  1833. "onmousedown": U.UF.C.closure(function(obj) {
  1834. //防止拖動圖標即打開了桌面應用
  1835. U.MD.D.click(this, obj);
  1836. }, [_tcTeacherDeskIconInfo[i]]),
  1837. "onclick": U.UF.C.closure(function(obj) {
  1838. //防止拖動圖標即打開了桌面應用
  1839. U.MD.D.click(this, obj);
  1840. }, [_tcTeacherDeskIconInfo[i]])
  1841. }, _frag); //
  1842. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1843. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1844. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1845. }
  1846. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1847. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1848. _content = $$("div", {
  1849. className: "U_MD_D_KO",
  1850. "onmousedown": U.UF.C.closure(function(obj) {
  1851. //防止拖動圖標即打開了桌面應用
  1852. U.MD.D.click(this, obj);
  1853. }, [_tcOrganizerDeskIconInfo[i]]),
  1854. "onclick": U.UF.C.closure(function(obj) {
  1855. //防止拖動圖標即打開了桌面應用
  1856. U.MD.D.click(this, obj);
  1857. }, [_tcOrganizerDeskIconInfo[i]])
  1858. }, _frag); //
  1859. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1860. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1861. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1862. }
  1863. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1864. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1865. _content = $$("div", {
  1866. className: "U_MD_D_KO",
  1867. "onmousedown": U.UF.C.closure(function(obj) {
  1868. //防止拖動圖標即打開了桌面應用
  1869. U.MD.D.click(this, obj);
  1870. }, [_szscTeacherDeskIconInfo[i]]),
  1871. "onclick": U.UF.C.closure(function(obj) {
  1872. //防止拖動圖標即打開了桌面應用
  1873. U.MD.D.click(this, obj);
  1874. }, [_szscTeacherDeskIconInfo[i]])
  1875. }, _frag); //
  1876. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1877. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1878. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1879. }
  1880. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1881. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1882. _content = $$("div", {
  1883. className: "U_MD_D_KO",
  1884. "onmousedown": U.UF.C.closure(function(obj) {
  1885. //防止拖動圖標即打開了桌面應用
  1886. U.MD.D.click(this, obj);
  1887. }, [_szscOrganizerDeskIconInfo[i]]),
  1888. "onclick": U.UF.C.closure(function(obj) {
  1889. //防止拖動圖標即打開了桌面應用
  1890. U.MD.D.click(this, obj);
  1891. }, [_szscOrganizerDeskIconInfo[i]])
  1892. }, _frag); //
  1893. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1894. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1895. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1896. }
  1897. } else {
  1898. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1899. _content = $$("div", {
  1900. className: "U_MD_D_KO",
  1901. "onmousedown": U.UF.C.closure(function(obj) {
  1902. //防止拖動圖標即打開了桌面應用
  1903. U.MD.D.click(this, obj);
  1904. }, [_teacherDesktopIconInfo[i]]),
  1905. "onclick": U.UF.C.closure(function(obj) {
  1906. //防止拖動圖標即打開了桌面應用
  1907. U.MD.D.click(this, obj);
  1908. }, [_teacherDesktopIconInfo[i]])
  1909. }, _frag); //
  1910. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1911. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1912. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1913. }
  1914. }
  1915. } else {
  1916. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1917. _content = $$("div", {
  1918. className: "U_MD_D_KO",
  1919. style: { 'width': '124px', 'height': '145px' },
  1920. "onmousedown": U.UF.C.closure(function(obj) {
  1921. //防止拖動圖標即打開了桌面應用
  1922. U.MD.D.click(this, obj);
  1923. }, [_easyDesktopIconInfo[i]]),
  1924. "onclick": U.UF.C.closure(function(obj) {
  1925. //防止拖動圖標即打開了桌面應用
  1926. U.MD.D.click(this, obj);
  1927. }, [_easyDesktopIconInfo[i]])
  1928. }, _frag); //
  1929. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1930. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1931. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1932. }
  1933. }
  1934. if (type == 1) {
  1935. //加載好後給圖標定位
  1936. U.MD.D.iconPostion($(_frag).Child());
  1937. } else {
  1938. //加載好後給圖標定位
  1939. U.MD.D.iconPostion2($(_frag).Child());
  1940. }
  1941. //把圖標加載到頁面
  1942. el.appendChild(_frag);
  1943. }
  1944. /**
  1945. * 顯示任務欄
  1946. *
  1947. * @param {element} 桌面元素
  1948. */
  1949. U.MD.D.I.displayTaskbar = function(el) {
  1950. //判斷是否需要形式任務欄,由於用了mouseover事件會冒泡響應多次,這裏做了過濾
  1951. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1952. //任務欄位置變化
  1953. U.selectEl(el).css({ "bottom": "0px" });
  1954. //桌面位置變話
  1955. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1956. }
  1957. }
  1958. //#region 桌面圖標拖動邏輯
  1959. /**
  1960. * 桌面排列圖標
  1961. *
  1962. * @param {element} 桌面元素
  1963. * @param {object} 上下相距的距離
  1964. * @param {object} 左右相距的距離
  1965. * @return {object} 命名空間
  1966. */
  1967. U.MD.D.iconPostion = function(childs, top, left) {
  1968. var i; //用於循環處理
  1969. top = top || 15; //如果沒有設置元素的間距處理默認上間距為15
  1970. left = left || 20; //如果沒有設置元素的間距處理默認左間距為15
  1971. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  1972. for (i = 0; i < childs.length; i++) {
  1973. //如果豎排top超過了範圍處理
  1974. if (top + 95 > US.height - 10) {
  1975. //left超過了頁面範圍處理,則向上重疊打印處理
  1976. if ((left + 180) > US.width) {
  1977. top -= 110;
  1978. left -= 90;
  1979. }
  1980. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  1981. else {
  1982. left += 90;
  1983. top = 15;
  1984. };
  1985. }
  1986. //給圖標的位置賦值
  1987. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1988. if (i < childs.length - 1) {
  1989. //頁面圖標每次向下加95
  1990. top += 95;
  1991. }
  1992. }
  1993. //返回最後調用的圖標的位置
  1994. return [top, left];
  1995. }
  1996. /**
  1997. * 桌面排列圖標
  1998. *
  1999. * @param {element} 桌面元素
  2000. * @param {object} 上下相距的距離
  2001. * @param {object} 左右相距的距離
  2002. * @return {object} 命名空間
  2003. */
  2004. U.MD.D.iconPostion2 = function(childs, top, left) {
  2005. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用於循環處理
  2006. top = top || 70; //如果沒有設置元素的間距處理默認上間距為15
  2007. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果沒有設置元素的間距處理默認左間距為15
  2008. //循環所有的圖標,設置每個圖標的間距,打印順序是豎排打印的方式
  2009. for (i = 0; i < childs.length; i++) {
  2010. //如果豎排top超過了範圍處理
  2011. if (left + 150 > US.width - 10) {
  2012. //left超過了頁面範圍處理,則向上重疊打印處理
  2013. if ((top + 180) > US.Height) {
  2014. top -= 150;
  2015. left -= 150;
  2016. }
  2017. //沒有超過範圍,那麼left+90添加到下一個豎排打印
  2018. else {
  2019. top += 150;
  2020. left = ol;
  2021. };
  2022. }
  2023. //給圖標的位置賦值
  2024. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  2025. if (i < childs.length - 1) {
  2026. //頁面圖標每次向下加95
  2027. left += 150;
  2028. }
  2029. }
  2030. //返回最後調用的圖標的位置
  2031. return [top, left];
  2032. }
  2033. /**
  2034. * 桌面點擊事件邏輯
  2035. *
  2036. * @param {element} 桌面元素
  2037. * @param {object} 上下相距的距離
  2038. * @param {object} 左右相距的距離
  2039. * @return {object} 命名空間
  2040. */
  2041. U.MD.D.click = function(el, obj) {
  2042. var _buttonnumber = event.button; //點擊的按鈕的事件值
  2043. var _userinfo = US.userInfo;
  2044. U.UF.EV.stopBubble(); //阻止向上冒泡
  2045. //onmousedown 包含了左鍵和右鍵 這裏大於2是為了兼容 所有瀏覽器的右鍵處理
  2046. if (_buttonnumber < 2) {
  2047. //如果是click事件的處理
  2048. if (event.type == "click") {
  2049. //如果元素在mousemove事件中沒有移動則出發click事件
  2050. if (!U.MD.D.I.IsDrag) {
  2051. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2052. U.alert("請先登錄您的賬號!");
  2053. setTimeout(() => {
  2054. U.MD.U.L.login();
  2055. }, 2000);
  2056. } else {
  2057. //打開應用處理
  2058. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  2059. }
  2060. }
  2061. }
  2062. //如果是mouse事件的處理
  2063. else {
  2064. if (US.Config.type == '1') {
  2065. //拖動處理,添加拖動和拖動結束事件
  2066. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  2067. }
  2068. }
  2069. U.MD.D.I.IsDrag = false;
  2070. }
  2071. }
  2072. /**
  2073. * 拖動的處理
  2074. *
  2075. */
  2076. U.MD.D.iconMove = function() {
  2077. //如果當前位置點擊初始化的位置出現了變化,則設置是否拖動的屬性 U.MD.D.I.IsDrag為true
  2078. U.MD.D.I.IsDrag = true;
  2079. }
  2080. /**
  2081. * 拖動結束後,這裏是定位處理,以網狀的形式定位
  2082. *
  2083. * @param {element} 拖動的元素
  2084. * @return {object} 命名空間
  2085. */
  2086. U.MD.D.iconUp = function(el) {
  2087. var _top = 15,
  2088. _left = 20,
  2089. _margin,
  2090. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的圖標
  2091. _positioninfo = U.UF.EL.getElementInfo(el); //獲取拖動結束的元素的位置
  2092. if (_positioninfo["OT"] > 15) {
  2093. //網狀的形式定位,如果差超過了55,那麼向下定位,否則向上定位
  2094. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  2095. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  2096. }
  2097. if (_positioninfo["OL"] > 20) {
  2098. //網狀的形式定位,如果差超過了90,那麼向右定位,否則向左定位
  2099. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  2100. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  2101. }
  2102. //while循環判斷麼一個重疊的元素
  2103. do {
  2104. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //給重疊的元素向下定位
  2105. _top = _positioninfo[0] + 95; //得到定位後的top
  2106. _left = _positioninfo[1]; //得到定位後的left
  2107. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  2108. }
  2109. /**
  2110. * 判斷拖動後圖標是否重疊
  2111. *
  2112. * @param {element} 拖動的元素
  2113. * @param {element} 桌面所有的元素
  2114. * @param {array} 拖動元素的位置
  2115. ----------[0] 上 top
  2116. ----------[1] 左 left
  2117. * @return {object} 命名空間
  2118. */
  2119. U.MD.D.isOverlap = function(el, childs, postionarray) {
  2120. //循環所有的圖標
  2121. for (var i = 0; i < childs.length; i++) {
  2122. //判斷有沒有和該圖標誒子重疊的元素
  2123. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  2124. return childs[i]; //如果有返回
  2125. }
  2126. }
  2127. }
  2128. //#endregion
  2129. //#endregion
  2130. //#region 桌面應用
  2131. /**
  2132. * 打開應用
  2133. *
  2134. * @param {string} 類型
  2135. -----------------Disk 網盤系統
  2136. -----------------PDisk 學習系統網盤
  2137. -----------------Poto 圖片
  2138. -----------------Video 視頻
  2139. -----------------Music 音樂
  2140. -----------------Word word
  2141. -----------------Excel excel
  2142. -----------------Txt 記事本
  2143. -----------------PB 學習系統
  2144. -----------------Blog 朋友圈系統
  2145. -----------------FTP ftp系統
  2146. -----------------Group 好友群
  2147. -----------------SY 首頁系統
  2148. -----------------Set 個人設置
  2149. -----------------XSet 系統設置
  2150. -----------------App 我們所有的app
  2151. -----------------BC c.1473.cn 平臺
  2152. -----------------CWeb d.1473.cn 變成平臺
  2153. -----------------其他的外聯系統 我們統一用iframe打開
  2154. * @param {array} 類型
  2155. 如果第一個參數為"disk",則第二個參數為object,裏面包含了用戶id和目錄id{userid:"",directoryid:""}
  2156. 如果第一個參數為"word"或者"excel","txt",則第二個參數為文件信息fileinfo。
  2157. 如果第一個參數為"blog"或者"PDisk"。建議刪除。
  2158. 如果第一個參數為其他,則無第二個參數
  2159. * @returns {array}
  2160. */
  2161. window.addEventListener('message', function(e) { // 監聽 message 事件
  2162. // alert(e.data.type);
  2163. if (e.data.screenType && e.data.screenType == "2") { //課程管理傳入
  2164. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  2165. //3是展示全部階段 2學生 1老師 4專家
  2166. } else if (e.data.screenType && e.data.screenType == "2s") { //課程管理傳入
  2167. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  2168. //3是展示全部階段 2學生 1老師 4專家
  2169. } else if (e.data.screenType && e.data.screenType == "2studio") { //課程管理傳入
  2170. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  2171. //3是展示全部階段 2學生 1老師 4專家
  2172. } else if (e.data.screenType && e.data.screenType == "3") { //課程管理傳入
  2173. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  2174. } else if (e.data.screenType && e.data.screenType == "3NT") { //課程管理傳入
  2175. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  2176. } else if (e.data.screenType && e.data.screenType == "3s") { //課程管理傳入
  2177. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  2178. } else if (e.data.screenType && e.data.screenType == "3studio") { //課程管理傳入
  2179. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  2180. } else if (e.data.screenType && e.data.screenType == "3s2") { //課程管理傳入
  2181. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  2182. } else if (e.data.screenType && e.data.screenType == "2gm") { //課程管理傳入
  2183. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  2184. //3是展示全部階段 2學生 1老師 4專家
  2185. } else if (e.data.screenType && e.data.screenType == "3gm") { //課程管理傳入
  2186. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  2187. } else if (e.data.close && e.data.close == "1") { //更新用戶信息
  2188. U.MD.D.I.selectUser();
  2189. } else if (e.data.allScreen && e.data.allScreen == "1") {
  2190. var _formel = document.getElementById("study");
  2191. U.UF.F.windowZooming(_formel);
  2192. } else if (e.data.allScreen && e.data.allScreen == "2") {
  2193. var _formel = document.getElementById("studyDetail");
  2194. U.UF.F.windowZooming(_formel);
  2195. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  2196. var _formel = document.getElementById("studyDetail");
  2197. U.UF.F.windowZooming(_formel);
  2198. } else if (e.data.allScreen && e.data.allScreen == "3") {
  2199. var _formel = document.getElementById("studentStudy");
  2200. U.UF.F.windowZooming(_formel);
  2201. } else if (e.data.allScreen && e.data.allScreen == "6") {
  2202. // var _formel = document.getElementById("study");
  2203. //如果最大化了,那麼就把他縮小
  2204. // if (_formel.ismaximize) {
  2205. // return;
  2206. // }
  2207. // U.UF.F.windowZooming(_formel);
  2208. // U.UF.F.topWindow(_formel);
  2209. } else if (e.data.allScreen && e.data.allScreen == "4") {
  2210. // var _formel = document.getElementById("studyDetail");
  2211. //如果最大化了,那麼就把他縮小
  2212. // if (_formel.ismaximize) {
  2213. // return;
  2214. // }
  2215. // U.UF.F.windowZooming(_formel);
  2216. // U.UF.F.topWindow(_formel);
  2217. } else if (e.data.allScreen && e.data.allScreen == "5") {
  2218. // var _formel = document.getElementById("studentStudy");
  2219. // if (_formel.ismaximize) {
  2220. // return;
  2221. // }
  2222. // U.UF.F.windowZooming(_formel);
  2223. // U.UF.F.topWindow(_formel);
  2224. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  2225. var _formel = document.getElementById("study");
  2226. // if (_formel.ismaximize) {
  2227. // return;
  2228. // }
  2229. // U.UF.F.windowZooming(_formel);
  2230. U.UF.F.topWindow(_formel);
  2231. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  2232. var _formel = document.getElementById("studentIndex");
  2233. U.UF.F.windowZooming(_formel);
  2234. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  2235. var _formel = document.getElementById("studyDetailS");
  2236. U.UF.F.windowZooming(_formel);
  2237. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  2238. var _formel = document.getElementById("studioIndex");
  2239. U.UF.F.windowZooming(_formel);
  2240. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  2241. var _formel = document.getElementById("studyDetailStudio");
  2242. U.UF.F.windowZooming(_formel);
  2243. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  2244. var _formel = document.getElementById("studyDetailStudio");
  2245. U.UF.F.windowZooming(_formel);
  2246. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  2247. var _formel = document.getElementById("studyDetailNT");
  2248. U.UF.F.windowZooming(_formel);
  2249. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  2250. var _formel = document.getElementById("studyDetailS");
  2251. U.UF.F.windowZooming(_formel);
  2252. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  2253. var _formel = document.getElementById("studyDetailS");
  2254. U.UF.F.topWindow(_formel);
  2255. } else if (e.data.tools && e.data.tools == "1") {
  2256. // U.MD.D.I.openApplication("whiteboard")
  2257. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2258. } else if (e.data.tools && e.data.tools == "2") {
  2259. U.MD.D.I.openApplication("note")
  2260. } else if (e.data.tools && e.data.tools == "3") {
  2261. // U.MD.D.I.openApplication("mind")
  2262. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2263. } else if (e.data.tools && e.data.tools == "4") {
  2264. U.MD.D.I.openApplication("investigation")
  2265. } else if (e.data.tools && e.data.tools == "6") {
  2266. // U.MD.D.I.openApplication("doc")
  2267. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2268. } else if (e.data.tools && e.data.tools == "7") {
  2269. // U.MD.D.I.openApplication("mindNetwork")
  2270. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2271. } else if (e.data.tools && e.data.tools == "8") {
  2272. U.MD.D.I.openApplication("library")
  2273. } else if (e.data.tools && e.data.tools == "17") {
  2274. U.MD.D.I.openApplication("stuLibrary")
  2275. } else if (e.data.tools && e.data.tools == "18") {
  2276. U.MD.D.I.openApplication("train")
  2277. } else if (e.data.tools && e.data.tools == "21") {
  2278. U.MD.D.I.openApplication("program")
  2279. } else if (e.data.tools && e.data.tools == "22") {
  2280. U.MD.D.I.openApplication("AIprogram2")
  2281. } else if (e.data.tools && e.data.tools == "23") {
  2282. U.MD.D.I.openApplication("Pythonprogram")
  2283. } else if (e.data.tools && e.data.tools == "24") {
  2284. U.MD.D.I.openApplication("AIprogram")
  2285. } else if (e.data.tools && e.data.tools == "25") {
  2286. U.MD.D.I.openApplication("sys")
  2287. } else if (e.data.tools && e.data.tools == "26") {
  2288. // U.MD.D.I.openApplication("courseDesign")
  2289. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2290. } else if (e.data.tools && e.data.tools == "31") {
  2291. U.MD.D.I.openApplication("netWorkPanel")
  2292. } else if (e.data.tools && e.data.tools == "32") {
  2293. U.MD.D.I.openApplication("codeEdit")
  2294. } else if (e.data.tools && e.data.tools == "57") {
  2295. U.MD.D.I.openApplication("CocoPi")
  2296. } else if (e.data.tools && e.data.tools == "63") {
  2297. U.MD.D.I.openApplication("Wood")
  2298. } else if (e.data.tools && e.data.tools == "58") {
  2299. U.MD.D.I.openApplication("car")
  2300. } else if (e.data.tools && e.data.tools == "59") {
  2301. U.MD.D.I.openApplication("lineSearch")
  2302. } else if (e.data.tools && e.data.tools == "60") {
  2303. U.MD.D.I.openApplication("deepLearning")
  2304. } else if (e.data.tools && e.data.tools == "61") {
  2305. U.MD.D.I.openApplication("allHistory")
  2306. } else if (e.data.tools && e.data.tools == "28") {
  2307. U.MD.D.I.openApplication("translation")
  2308. } else if (e.data.tools && e.data.tools == "37") {
  2309. U.MD.D.I.openApplication("mohe")
  2310. } else if (e.data.tools && e.data.tools == "38") {
  2311. U.MD.D.I.openApplication("24game")
  2312. } else if (e.data.tools && e.data.tools == "39") {
  2313. U.MD.D.I.openApplication("GeoGebra")
  2314. } else if (e.data.tools && e.data.tools == "43") {
  2315. U.MD.D.I.openApplication("studentEvaluate")
  2316. } else if (e.data.tools && e.data.tools == "44") {
  2317. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  2318. } else if (e.data.tools && e.data.tools == "46") {
  2319. U.MD.D.I.openApplication("project")
  2320. } else if (e.data.tools && e.data.tools == "1s") {
  2321. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2322. } else if (e.data.tools && e.data.tools == "3s") {
  2323. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2324. } else if (e.data.tools && e.data.tools == "6s") {
  2325. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2326. } else if (e.data.tools && e.data.tools == "1studio") {
  2327. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2328. } else if (e.data.tools && e.data.tools == "3studio") {
  2329. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2330. } else if (e.data.tools && e.data.tools == "6studio") {
  2331. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2332. } else if (e.data.tools && e.data.tools == "3y") {
  2333. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2334. } else if (e.data.tools && e.data.tools == "1y") {
  2335. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2336. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  2337. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  2338. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  2339. U.MD.D.I.openApplication("AIAnalyse")
  2340. } else if (e.data.tools && e.data.tools == "1teacher") {
  2341. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2342. } else if (e.data.tools && e.data.tools == "3teacher") {
  2343. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2344. } else if (e.data.tools && e.data.tools == "7teacher") {
  2345. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2346. } else if (e.data.tools && e.data.tools == "1teacherE") {
  2347. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2348. } else if (e.data.tools && e.data.tools == "3teacherE") {
  2349. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2350. } else if (e.data.tools && e.data.tools == "1E") {
  2351. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2352. } else if (e.data.tools && e.data.tools == "3E") {
  2353. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2354. } else if (e.data.tools && e.data.tools == "57y") {
  2355. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2356. } else if (e.data.tools && e.data.tools == "57u") {
  2357. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2358. } else if (e.data.tools && e.data.tools == "57teacher") {
  2359. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2360. } else if (e.data.tools && e.data.tools == "64") {
  2361. U.MD.D.I.openApplication("AIChat")
  2362. } else if (e.data.tools && e.data.tools == "66") {
  2363. U.MD.D.I.openApplication("formulaEdi")
  2364. } else if (e.data.tools && e.data.tools == "67") {
  2365. U.MD.D.I.openApplication("molStr")
  2366. } else if (e.data.tools && e.data.tools == "68") {
  2367. U.MD.D.I.openApplication("timeAxis")
  2368. } else if (e.data.tools && e.data.tools == "openCourse") {
  2369. let _data = {
  2370. typea:e.data.typea || '',
  2371. typeb:e.data.typeb || '',
  2372. typed:e.data.typed || '',
  2373. }
  2374. U.MD.D.I.openInApplication("index", _data)
  2375. }
  2376. });
  2377. U.MD.D.I.selectUser = function() {
  2378. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function(res) { //US.userInfo.userid
  2379. if (res.value[0].length > 0) {
  2380. US.userInfo = res.value[0][0];
  2381. $(".userName")[0].innerHTML = US.userInfo.username;
  2382. }
  2383. }, [], { "type": "GET", "withCredentials": true });
  2384. }
  2385. U.MD.D.I.openInApplication = function(str, data, screenType, tType) {
  2386. var _userinfo = US.userInfo, //登錄用戶信息
  2387. _userid = US.userInfo.userid, //登錄用戶id
  2388. _oid = _userinfo.organizeid,
  2389. _type = US.userInfo.type,
  2390. _org = US.userInfo.org,
  2391. _role = US.userInfo.role,
  2392. _classId = US.userInfo.classid;
  2393. if (_type == 4) {
  2394. tType = 4
  2395. }
  2396. switch (str) {
  2397. case "studyDetailNT": //無終端模式
  2398. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2399. setTimeout(() => {
  2400. U.MD.U.L.login();
  2401. }, 2000);
  2402. } else {
  2403. _formdiv = new U.UF.UI.form(
  2404. "課程詳情",
  2405. $$("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 }), {
  2406. "id": "studyDetailNT",
  2407. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2408. "onresize": function() {}
  2409. }, {
  2410. closecallback: function() {}
  2411. }, { "style": { "height": "36px" } }).form; //創建窗體
  2412. _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); } }
  2413. break;
  2414. }
  2415. case "studyDetail":
  2416. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2417. setTimeout(() => {
  2418. U.MD.U.L.login();
  2419. }, 2000);
  2420. } else {
  2421. _formdiv = new U.UF.UI.form(
  2422. "課程詳情",
  2423. $$("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 }), {
  2424. "id": "studyDetail",
  2425. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2426. "onresize": function() {}
  2427. }, {
  2428. closecallback: function() {}
  2429. }, { "style": { "height": "36px" } }).form; //創建窗體
  2430. _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); } }
  2431. break;
  2432. }
  2433. case "studyDetailS":
  2434. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2435. setTimeout(() => {
  2436. U.MD.U.L.login();
  2437. }, 2000);
  2438. } else {
  2439. _formdiv = new U.UF.UI.form(
  2440. "項目詳情",
  2441. $$("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 }), {
  2442. "id": "studyDetailS",
  2443. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2444. "onresize": function() {}
  2445. }, {
  2446. closecallback: function() {}
  2447. }, { "style": { "height": "36px" } }).form; //創建窗體
  2448. _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); } }
  2449. break;
  2450. }
  2451. case "studyDetailStudio":
  2452. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2453. setTimeout(() => {
  2454. U.MD.U.L.login();
  2455. }, 2000);
  2456. } else {
  2457. _formdiv = new U.UF.UI.form(
  2458. "工作詳情",
  2459. $$("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 }), {
  2460. "id": "studyDetailStudio",
  2461. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2462. "onresize": function() {}
  2463. }, {
  2464. closecallback: function() {}
  2465. }, { "style": { "height": "36px" } }).form; //創建窗體
  2466. _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); } }
  2467. break;
  2468. }
  2469. case "studyDetailS5":
  2470. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2471. setTimeout(() => {
  2472. U.MD.U.L.login();
  2473. }, 2000);
  2474. } else {
  2475. _formdiv = new U.UF.UI.form(
  2476. "項目詳情",
  2477. $$("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 }), {
  2478. "id": "studyDetailS",
  2479. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2480. "onresize": function() {}
  2481. }, {
  2482. closecallback: function() {}
  2483. }, { "style": { "height": "36px" } }).form; //創建窗體
  2484. _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); } }
  2485. break;
  2486. }
  2487. case "studyDetailGM":
  2488. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2489. setTimeout(() => {
  2490. U.MD.U.L.login();
  2491. }, 2000);
  2492. } else {
  2493. _formdiv = new U.UF.UI.form(
  2494. "課程詳情",
  2495. $$("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 }), {
  2496. "id": "studyDetail",
  2497. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2498. "onresize": function() {}
  2499. }, {
  2500. closecallback: function() {}
  2501. }, { "style": { "height": "36px" } }).form; //創建窗體
  2502. _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); } }
  2503. break;
  2504. }
  2505. case "hanUrl":
  2506. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2507. setTimeout(() => {
  2508. U.MD.U.L.login();
  2509. }, 2000);
  2510. } else {
  2511. _formdiv = new U.UF.UI.form(
  2512. "漢字宮",
  2513. $$("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" }), {
  2514. "id": "hanUrl",
  2515. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2516. "onresize": function() {}
  2517. }, {
  2518. closecallback: function() {}
  2519. }, { "style": { "height": "36px" } }).form; //創建窗體
  2520. _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); } }
  2521. break;
  2522. }
  2523. case "index":
  2524. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2525. setTimeout(() => {
  2526. U.MD.U.L.login();
  2527. }, 2000);
  2528. } else {
  2529. _formdiv = new U.UF.UI.form(
  2530. "課程中心",
  2531. $$("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 }), {
  2532. "id": "study",
  2533. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2534. "onresize": function() {}
  2535. }, {
  2536. closecallback: function() {}
  2537. }, { "style": { "height": "36px" } }).form; //創建窗體
  2538. _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); } }
  2539. break;
  2540. }
  2541. }
  2542. }
  2543. U.MD.D.I.openApplication = function(str, obj, info) {
  2544. obj = obj || {};
  2545. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  2546. _formdiv, //創建任務欄時同時彈出的窗體元素。
  2547. _userinfo = US.userInfo, //登錄用戶信息
  2548. _userid = obj.userid || US.userInfo.userid, //登錄用戶id
  2549. _oid = obj.organizeid || _userinfo.organizeid,
  2550. _type = US.userInfo.type,
  2551. _org = US.userInfo.org,
  2552. _role = US.userInfo.role,
  2553. _classId = US.userInfo.classid,
  2554. _TscreenType = 1
  2555. _screenType = 2,
  2556. _SscreenType = 3;
  2557. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2558. return;
  2559. }
  2560. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2561. switch (str) {
  2562. case "studnetProject": //好友打開
  2563. _formdiv = new U.UF.UI.form(
  2564. "我的項目",
  2565. $$("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 }), {
  2566. "id": "studnetProject",
  2567. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2568. "onresize": function() {}
  2569. }, {
  2570. closecallback: function() {}
  2571. }, { "style": { "height": "36px" } }).form; //創建窗體
  2572. _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); } }
  2573. break;
  2574. case "studentEvaluate": //好友打開
  2575. _formdiv = new U.UF.UI.form(
  2576. "我的評價",
  2577. $$("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 }), {
  2578. "id": "studentEvaluate",
  2579. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2580. "onresize": function() {}
  2581. }, {
  2582. closecallback: function() {}
  2583. }, { "style": { "height": "36px" } }).form; //創建窗體
  2584. _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); } }
  2585. break;
  2586. case "my":
  2587. _formdiv = new U.UF.UI.form(
  2588. "我的資料",
  2589. $$("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 }), {
  2590. "id": "my",
  2591. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2592. "onresize": function() {}
  2593. }, {
  2594. closecallback: function() {}
  2595. }, { "style": { "height": "36px" } }).form; //創建窗體
  2596. _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); } }
  2597. break;
  2598. case "program":
  2599. _formdiv = new U.UF.UI.form(
  2600. "編程平臺",
  2601. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2602. "id": "program",
  2603. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2604. "onresize": function() {}
  2605. }, {
  2606. closecallback: function() {}
  2607. }, { "style": { "height": "36px" } }).form; //創建窗體
  2608. _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); } }
  2609. break;
  2610. case "library":
  2611. _formdiv = new U.UF.UI.form(
  2612. "素材庫",
  2613. $$("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 }), {
  2614. "id": "library",
  2615. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2616. "onresize": function() {}
  2617. }, {
  2618. closecallback: function() {}
  2619. }, { "style": { "height": "36px" } }).form; //創建窗體
  2620. _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); } }
  2621. break;
  2622. case "whiteboard":
  2623. _formdiv = new U.UF.UI.form(
  2624. "電子白板",
  2625. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2626. "id": "whiteboard",
  2627. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2628. "onresize": function() {}
  2629. }, {
  2630. closecallback: function() {}
  2631. }, { "style": { "height": "36px" } }).form; //創建窗體
  2632. _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); } }
  2633. break;
  2634. case "investigation":
  2635. _formdiv = new U.UF.UI.form(
  2636. "問卷調查",
  2637. $$("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 }), {
  2638. "id": "investigation",
  2639. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2640. "onresize": function() {}
  2641. }, {
  2642. closecallback: function() {}
  2643. }, { "style": { "height": "36px" } }).form; //創建窗體
  2644. _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); } }
  2645. break;
  2646. case "note":
  2647. _formdiv = new U.UF.UI.form(
  2648. "便簽分類",
  2649. $$("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 }), {
  2650. "id": "note",
  2651. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2652. "onresize": function() {}
  2653. }, {
  2654. closecallback: function() {}
  2655. }, { "style": { "height": "36px" } }).form; //創建窗體
  2656. _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); } }
  2657. break;
  2658. // case "score":
  2659. // _formdiv = new U.UF.UI.form(
  2660. // "量規評分",
  2661. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2662. // "id": "score",
  2663. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2664. // "onresize": function() {}
  2665. // }, {
  2666. // closecallback: function() {}
  2667. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2668. // _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); } }
  2669. // break;
  2670. case "mind":
  2671. _formdiv = new U.UF.UI.form(
  2672. "思維導圖",
  2673. $$("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"
  2674. "id": "mind",
  2675. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2676. "onresize": function() {}
  2677. }, {
  2678. closecallback: function() {}
  2679. }, { "style": { "height": "36px" } }).form; //創建窗體
  2680. _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); } }
  2681. break;
  2682. case "doc":
  2683. // U.MD.D.I.isRoom();
  2684. _formdiv = new U.UF.UI.form(
  2685. "協同文檔",
  2686. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2687. "id": "doc",
  2688. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2689. "onresize": function() {}
  2690. }, {
  2691. closecallback: function() {}
  2692. }, { "style": { "height": "36px" } }).form; //創建窗體
  2693. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2694. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2695. // })
  2696. _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); } }
  2697. break;
  2698. case "studentStudy":
  2699. _formdiv = new U.UF.UI.form(
  2700. "課程中心",
  2701. $$("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
  2702. "id": "studentStudy",
  2703. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2704. "onresize": function() {}
  2705. }, {
  2706. closecallback: function() {}
  2707. }, { "style": { "height": "36px" } }).form; //創建窗體
  2708. _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); } }
  2709. break;
  2710. case "train": //好友打開
  2711. _formdiv = new U.UF.UI.form(
  2712. "訓練平臺",
  2713. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2714. "id": "train",
  2715. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2716. "onresize": function() {}
  2717. }, {
  2718. closecallback: function() {}
  2719. }, { "style": { "height": "36px" } }).form; //創建窗體
  2720. _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); } }
  2721. break;
  2722. case "mindNetwork": //好友打開
  2723. _formdiv = new U.UF.UI.form(
  2724. "思維網格",
  2725. $$("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 }), {
  2726. "id": "mindNetwork",
  2727. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2728. "onresize": function() {}
  2729. }, {
  2730. closecallback: function() {}
  2731. }, { "style": { "height": "36px" } }).form; //創建窗體
  2732. _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); } }
  2733. break;
  2734. case "studentClassRoom": //好友打開
  2735. _formdiv = new U.UF.UI.form(
  2736. "實時課堂",
  2737. $$("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 }), {
  2738. "id": "studentClassRoom",
  2739. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2740. "onresize": function() {}
  2741. }, {
  2742. closecallback: function() {}
  2743. }, { "style": { "height": "36px" } }).form; //創建窗體
  2744. _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); } }
  2745. setTimeout(() => {
  2746. U.UF.F.windowZooming(_formdiv)
  2747. }, 0);
  2748. break;
  2749. }
  2750. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2751. switch (str) {
  2752. case "studnetProject": //好友打開
  2753. _formdiv = new U.UF.UI.form(
  2754. "我的項目",
  2755. $$("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 }), {
  2756. "id": "studnetProject",
  2757. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2758. "onresize": function() {}
  2759. }, {
  2760. closecallback: function() {}
  2761. }, { "style": { "height": "36px" } }).form; //創建窗體
  2762. _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); } }
  2763. break;
  2764. case "studentEvaluate": //好友打開
  2765. _formdiv = new U.UF.UI.form(
  2766. "我的評價",
  2767. $$("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 }), {
  2768. "id": "studentEvaluate",
  2769. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2770. "onresize": function() {}
  2771. }, {
  2772. closecallback: function() {}
  2773. }, { "style": { "height": "36px" } }).form; //創建窗體
  2774. _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); } }
  2775. break;
  2776. case "my":
  2777. _formdiv = new U.UF.UI.form(
  2778. "我的資料",
  2779. $$("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 }), {
  2780. "id": "my",
  2781. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2782. "onresize": function() {}
  2783. }, {
  2784. closecallback: function() {}
  2785. }, { "style": { "height": "36px" } }).form; //創建窗體
  2786. _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); } }
  2787. break;
  2788. case "program":
  2789. _formdiv = new U.UF.UI.form(
  2790. "編程平臺",
  2791. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2792. "id": "program",
  2793. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2794. "onresize": function() {}
  2795. }, {
  2796. closecallback: function() {}
  2797. }, { "style": { "height": "36px" } }).form; //創建窗體
  2798. _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); } }
  2799. break;
  2800. case "library":
  2801. _formdiv = new U.UF.UI.form(
  2802. "素材庫",
  2803. $$("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 }), {
  2804. "id": "library",
  2805. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2806. "onresize": function() {}
  2807. }, {
  2808. closecallback: function() {}
  2809. }, { "style": { "height": "36px" } }).form; //創建窗體
  2810. _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); } }
  2811. break;
  2812. case "whiteboard":
  2813. _formdiv = new U.UF.UI.form(
  2814. "電子白板",
  2815. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  2816. "id": "whiteboard",
  2817. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2818. "onresize": function() {}
  2819. }, {
  2820. closecallback: function() {}
  2821. }, { "style": { "height": "36px" } }).form; //創建窗體
  2822. _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); } }
  2823. break;
  2824. case "investigation":
  2825. _formdiv = new U.UF.UI.form(
  2826. "問卷調查",
  2827. $$("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 }), {
  2828. "id": "investigation",
  2829. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2830. "onresize": function() {}
  2831. }, {
  2832. closecallback: function() {}
  2833. }, { "style": { "height": "36px" } }).form; //創建窗體
  2834. _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); } }
  2835. break;
  2836. case "note":
  2837. _formdiv = new U.UF.UI.form(
  2838. "便簽分類",
  2839. $$("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 }), {
  2840. "id": "note",
  2841. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2842. "onresize": function() {}
  2843. }, {
  2844. closecallback: function() {}
  2845. }, { "style": { "height": "36px" } }).form; //創建窗體
  2846. _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); } }
  2847. break;
  2848. // case "score":
  2849. // _formdiv = new U.UF.UI.form(
  2850. // "量規評分",
  2851. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2852. // "id": "score",
  2853. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2854. // "onresize": function() {}
  2855. // }, {
  2856. // closecallback: function() {}
  2857. // }, { "style": { "height": "36px" } }).form; //創建窗體
  2858. // _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); } }
  2859. // break;
  2860. case "mind":
  2861. _formdiv = new U.UF.UI.form(
  2862. "思維導圖",
  2863. $$("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"
  2864. "id": "mind",
  2865. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2866. "onresize": function() {}
  2867. }, {
  2868. closecallback: function() {}
  2869. }, { "style": { "height": "36px" } }).form; //創建窗體
  2870. _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); } }
  2871. break;
  2872. case "doc":
  2873. // U.MD.D.I.isRoom();
  2874. _formdiv = new U.UF.UI.form(
  2875. "協同文檔",
  2876. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2877. "id": "doc",
  2878. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2879. "onresize": function() {}
  2880. }, {
  2881. closecallback: function() {}
  2882. }, { "style": { "height": "36px" } }).form; //創建窗體
  2883. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  2884. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2885. })
  2886. _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); } }
  2887. break;
  2888. case "train": //好友打開
  2889. _formdiv = new U.UF.UI.form(
  2890. "訓練平臺",
  2891. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2892. "id": "train",
  2893. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2894. "onresize": function() {}
  2895. }, {
  2896. closecallback: function() {}
  2897. }, { "style": { "height": "36px" } }).form; //創建窗體
  2898. _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); } }
  2899. break;
  2900. case "studentStudy":
  2901. _formdiv = new U.UF.UI.form(
  2902. "課程中心",
  2903. $$("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
  2904. "id": "studentStudy",
  2905. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2906. "onresize": function() {}
  2907. }, {
  2908. closecallback: function() {}
  2909. }, { "style": { "height": "36px" } }).form; //創建窗體
  2910. _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); } }
  2911. break;
  2912. case "mindNetwork": //好友打開
  2913. _formdiv = new U.UF.UI.form(
  2914. "思維網格",
  2915. $$("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 }), {
  2916. "id": "mindNetwork",
  2917. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2918. "onresize": function() {}
  2919. }, {
  2920. closecallback: function() {}
  2921. }, { "style": { "height": "36px" } }).form; //創建窗體
  2922. _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); } }
  2923. break;
  2924. case "studentClassRoom": //好友打開
  2925. _formdiv = new U.UF.UI.form(
  2926. "實時課堂",
  2927. $$("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 }), {
  2928. "id": "studentClassRoom",
  2929. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2930. "onresize": function() {}
  2931. }, {
  2932. closecallback: function() {}
  2933. }, { "style": { "height": "36px" } }).form; //創建窗體
  2934. _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); } }
  2935. setTimeout(() => {
  2936. U.UF.F.windowZooming(_formdiv)
  2937. }, 0);
  2938. break;
  2939. }
  2940. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2941. //選擇應用處理
  2942. switch (str) {
  2943. case "project": //好友打開
  2944. _formdiv = new U.UF.UI.form(
  2945. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作項目' : "課程管理",
  2946. $$("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 }), {
  2947. "id": "project",
  2948. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2949. "onresize": function() {}
  2950. }, {
  2951. closecallback: function() {}
  2952. }, { "style": { "height": "36px" } }).form; //創建窗體
  2953. _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); } }
  2954. break;
  2955. case "student":
  2956. _formdiv = new U.UF.UI.form(
  2957. "學生管理",
  2958. $$("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 }), {
  2959. "id": "student",
  2960. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2961. "onresize": function() {}
  2962. }, {
  2963. closecallback: function() {}
  2964. }, { "style": { "height": "36px" } }).form; //創建窗體
  2965. _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); } }
  2966. break;
  2967. case "evaluate":
  2968. _formdiv = new U.UF.UI.form(
  2969. "學生評價",
  2970. $$("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 }), {
  2971. "id": "evaluate",
  2972. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2973. "onresize": function() {}
  2974. }, {
  2975. closecallback: function() {}
  2976. }, { "style": { "height": "36px" } }).form; //創建窗體
  2977. _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); } }
  2978. break;
  2979. case "sys":
  2980. _formdiv = new U.UF.UI.form(
  2981. "目標管理",
  2982. $$("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 }), {
  2983. "id": "sys",
  2984. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2985. "onresize": function() {}
  2986. }, {
  2987. closecallback: function() {}
  2988. }, { "style": { "height": "36px" } }).form; //創建窗體
  2989. _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); } }
  2990. break;
  2991. case "courseDesign":
  2992. _formdiv = new U.UF.UI.form(
  2993. "項目設計",
  2994. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2995. "id": "courseDesign",
  2996. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2997. "onresize": function() {}
  2998. }, {
  2999. closecallback: function() {}
  3000. }, { "style": { "height": "36px" } }).form; //創建窗體
  3001. _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); } }
  3002. break;
  3003. case "program":
  3004. _formdiv = new U.UF.UI.form(
  3005. "編程平臺",
  3006. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3007. "id": "program",
  3008. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3009. "onresize": function() {}
  3010. }, {
  3011. closecallback: function() {}
  3012. }, { "style": { "height": "36px" } }).form; //創建窗體
  3013. _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); } }
  3014. break;
  3015. case "class":
  3016. _formdiv = new U.UF.UI.form(
  3017. "班級管理",
  3018. $$("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 }), {
  3019. "id": "class",
  3020. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3021. "onresize": function() {}
  3022. }, {
  3023. closecallback: function() {}
  3024. }, { "style": { "height": "36px" } }).form; //創建窗體
  3025. _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); } }
  3026. break;
  3027. case "Grade":
  3028. _formdiv = new U.UF.UI.form(
  3029. "年級管理",
  3030. $$("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 }), {
  3031. "id": "Grade",
  3032. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3033. "onresize": function() {}
  3034. }, {
  3035. closecallback: function() {}
  3036. }, { "style": { "height": "36px" } }).form; //創建窗體
  3037. _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); } }
  3038. break;
  3039. case "teacherOffice":
  3040. _formdiv = new U.UF.UI.form(
  3041. "教研室",
  3042. $$("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 }), {
  3043. "id": "teacherOffice",
  3044. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3045. "onresize": function() {}
  3046. }, {
  3047. closecallback: function() {}
  3048. }, { "style": { "height": "36px" } }).form; //創建窗體
  3049. _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); } }
  3050. break;
  3051. case "my":
  3052. _formdiv = new U.UF.UI.form(
  3053. "我的資料",
  3054. $$("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 }), {
  3055. "id": "my",
  3056. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3057. "onresize": function() {}
  3058. }, {
  3059. closecallback: function() {}
  3060. }, { "style": { "height": "36px" } }).form; //創建窗體
  3061. _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); } }
  3062. break;
  3063. case "notice":
  3064. _formdiv = new U.UF.UI.form(
  3065. "通知公告",
  3066. $$("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 }), {
  3067. "id": "notice",
  3068. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3069. "onresize": function() {}
  3070. }, {
  3071. closecallback: function() {}
  3072. }, { "style": { "height": "36px" } }).form; //創建窗體
  3073. _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); } }
  3074. break;
  3075. case "library":
  3076. _formdiv = new U.UF.UI.form(
  3077. "素材庫",
  3078. $$("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 }), {
  3079. "id": "library",
  3080. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3081. "onresize": function() {}
  3082. }, {
  3083. closecallback: function() {}
  3084. }, { "style": { "height": "36px" } }).form; //創建窗體
  3085. _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); } }
  3086. break;
  3087. case "whiteboard":
  3088. _formdiv = new U.UF.UI.form(
  3089. "電子白板",
  3090. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3091. "id": "whiteboard",
  3092. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3093. "onresize": function() {}
  3094. }, {
  3095. closecallback: function() {}
  3096. }, { "style": { "height": "36px" } }).form; //創建窗體
  3097. _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); } }
  3098. break;
  3099. case "investigation":
  3100. _formdiv = new U.UF.UI.form(
  3101. "問卷調查",
  3102. $$("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 }), {
  3103. "id": "investigation",
  3104. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3105. "onresize": function() {}
  3106. }, {
  3107. closecallback: function() {}
  3108. }, { "style": { "height": "36px" } }).form; //創建窗體
  3109. _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); } }
  3110. break;
  3111. case "note":
  3112. _formdiv = new U.UF.UI.form(
  3113. "便簽分類",
  3114. $$("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 }), {
  3115. "id": "note",
  3116. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  3117. "onresize": function() {}
  3118. }, {
  3119. closecallback: function() {}
  3120. }, { "style": { "height": "36px" } }).form; //創建窗體
  3121. _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); } }
  3122. break;
  3123. // case "score":
  3124. // _formdiv = new U.UF.UI.form(
  3125. // "量規評分",
  3126. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  3127. // "id": "score",
  3128. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3129. // "onresize": function() {}
  3130. // }, {
  3131. // closecallback: function() {}
  3132. // }, { "style": { "height": "36px" } }).form; //創建窗體
  3133. // _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); } }
  3134. // break;
  3135. case "mind":
  3136. _formdiv = new U.UF.UI.form(
  3137. "思維導圖",
  3138. $$("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"
  3139. "id": "mind",
  3140. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3141. "onresize": function() {}
  3142. }, {
  3143. closecallback: function() {}
  3144. }, { "style": { "height": "36px" } }).form; //創建窗體
  3145. _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); } }
  3146. break;
  3147. case "doc":
  3148. // U.MD.D.I.isRoom();
  3149. _formdiv = new U.UF.UI.form(
  3150. "協同文檔",
  3151. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3152. "id": "doc",
  3153. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3154. "onresize": function() {}
  3155. }, {
  3156. closecallback: function() {}
  3157. }, { "style": { "height": "36px" } }).form; //創建窗體
  3158. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  3159. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3160. })
  3161. _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); } }
  3162. break;
  3163. case "study":
  3164. _formdiv = new U.UF.UI.form(
  3165. "課程中心",
  3166. $$("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
  3167. "id": "study",
  3168. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3169. "onresize": function() {}
  3170. }, {
  3171. closecallback: function() {}
  3172. }, { "style": { "height": "36px" } }).form; //創建窗體
  3173. _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); } }
  3174. break;
  3175. case "mindNetwork": //好友打開
  3176. _formdiv = new U.UF.UI.form(
  3177. "思維網格",
  3178. $$("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 }), {
  3179. "id": "mindNetwork",
  3180. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3181. "onresize": function() {}
  3182. }, {
  3183. closecallback: function() {}
  3184. }, { "style": { "height": "36px" } }).form; //創建窗體
  3185. _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); } }
  3186. break;
  3187. case "train": //好友打開
  3188. _formdiv = new U.UF.UI.form(
  3189. "訓練平臺",
  3190. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3191. "id": "mindNetwork",
  3192. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3193. "onresize": function() {}
  3194. }, {
  3195. closecallback: function() {}
  3196. }, { "style": { "height": "36px" } }).form; //創建窗體
  3197. _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); } }
  3198. break;
  3199. case "teacherClassRoom": //好友打開
  3200. _formdiv = new U.UF.UI.form(
  3201. "實時課堂",
  3202. $$("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 }), {
  3203. "id": "teacherClassRoom",
  3204. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3205. "onresize": function() {}
  3206. }, {
  3207. closecallback: function() {}
  3208. }, { "style": { "height": "36px" } }).form; //創建窗體
  3209. _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); } }
  3210. setTimeout(() => {
  3211. U.UF.F.windowZooming(_formdiv)
  3212. }, 0);
  3213. break;
  3214. }
  3215. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  3216. switch (str) {
  3217. case "project": //好友打開
  3218. _formdiv = new U.UF.UI.form(
  3219. "課程管理",
  3220. $$("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 }), {
  3221. "id": "project",
  3222. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3223. "onresize": function() {}
  3224. }, {
  3225. closecallback: function() {}
  3226. }, { "style": { "height": "36px" } }).form; //創建窗體
  3227. _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); } }
  3228. break;
  3229. case "evaluate":
  3230. _formdiv = new U.UF.UI.form(
  3231. "學生評價",
  3232. $$("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 }), {
  3233. "id": "evaluate",
  3234. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3235. "onresize": function() {}
  3236. }, {
  3237. closecallback: function() {}
  3238. }, { "style": { "height": "36px" } }).form; //創建窗體
  3239. _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); } }
  3240. break;
  3241. case "notice":
  3242. _formdiv = new U.UF.UI.form(
  3243. "通知公告",
  3244. $$("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 }), {
  3245. "id": "notice",
  3246. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3247. "onresize": function() {}
  3248. }, {
  3249. closecallback: function() {}
  3250. }, { "style": { "height": "36px" } }).form; //創建窗體
  3251. _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); } }
  3252. break;
  3253. case "stuLibrary":
  3254. _formdiv = new U.UF.UI.form(
  3255. "學習資料",
  3256. $$("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 }), {
  3257. "id": "stuLibrary",
  3258. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3259. "onresize": function() {}
  3260. }, {
  3261. closecallback: function() {}
  3262. }, { "style": { "height": "36px" } }).form; //創建窗體
  3263. _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); } }
  3264. break;
  3265. case "program":
  3266. _formdiv = new U.UF.UI.form(
  3267. "編程平臺",
  3268. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3269. "id": "program",
  3270. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3271. "onresize": function() {}
  3272. }, {
  3273. closecallback: function() {}
  3274. }, { "style": { "height": "36px" } }).form; //創建窗體
  3275. _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); } }
  3276. break;
  3277. case "whiteboard":
  3278. _formdiv = new U.UF.UI.form(
  3279. "電子白板",
  3280. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.hk/" }), {
  3281. "id": "whiteboard",
  3282. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3283. "onresize": function() {}
  3284. }, {
  3285. closecallback: function() {}
  3286. }, { "style": { "height": "36px" } }).form; //創建窗體
  3287. _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); } }
  3288. break;
  3289. case "investigation":
  3290. _formdiv = new U.UF.UI.form(
  3291. "問卷調查",
  3292. $$("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 }), {
  3293. "id": "investigation",
  3294. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3295. "onresize": function() {}
  3296. }, {
  3297. closecallback: function() {}
  3298. }, { "style": { "height": "36px" } }).form; //創建窗體
  3299. _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); } }
  3300. break;
  3301. case "mind":
  3302. _formdiv = new U.UF.UI.form(
  3303. "思維導圖",
  3304. $$("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"
  3305. "id": "mind",
  3306. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3307. "onresize": function() {}
  3308. }, {
  3309. closecallback: function() {}
  3310. }, { "style": { "height": "36px" } }).form; //創建窗體
  3311. _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); } }
  3312. break;
  3313. case "doc":
  3314. // U.MD.D.I.isRoom();
  3315. _formdiv = new U.UF.UI.form(
  3316. "協同文檔",
  3317. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3318. "id": "doc",
  3319. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3320. "onresize": function() {}
  3321. }, {
  3322. closecallback: function() {}
  3323. }, { "style": { "height": "36px" } }).form; //創建窗體
  3324. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  3325. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3326. })
  3327. _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); } }
  3328. break;
  3329. case "study":
  3330. _formdiv = new U.UF.UI.form(
  3331. "課程中心",
  3332. $$("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
  3333. "id": "study",
  3334. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3335. "onresize": function() {}
  3336. }, {
  3337. closecallback: function() {}
  3338. }, { "style": { "height": "36px" } }).form; //創建窗體
  3339. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "課程中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3340. break;
  3341. case "mindNetwork": //好友打開
  3342. _formdiv = new U.UF.UI.form(
  3343. "思維網格",
  3344. $$("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 }), {
  3345. "id": "mindNetwork",
  3346. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3347. "onresize": function() {}
  3348. }, {
  3349. closecallback: function() {}
  3350. }, { "style": { "height": "36px" } }).form; //創建窗體
  3351. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思維網格", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3352. break;
  3353. case "train": //好友打開
  3354. _formdiv = new U.UF.UI.form(
  3355. "訓練平臺",
  3356. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3357. "id": "train",
  3358. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3359. "onresize": function() {}
  3360. }, {
  3361. closecallback: function() {}
  3362. }, { "style": { "height": "36px" } }).form; //創建窗體
  3363. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "訓練平臺", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3364. break;
  3365. case "sys":
  3366. _formdiv = new U.UF.UI.form(
  3367. "目標管理",
  3368. $$("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 }), {
  3369. "id": "sys",
  3370. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3371. "onresize": function() {}
  3372. }, {
  3373. closecallback: function() {}
  3374. }, { "style": { "height": "36px" } }).form; //創建窗體
  3375. _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); } }
  3376. break;
  3377. case "courseDesign":
  3378. _formdiv = new U.UF.UI.form(
  3379. "項目設計",
  3380. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3381. "id": "courseDesign",
  3382. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3383. "onresize": function() {}
  3384. }, {
  3385. closecallback: function() {}
  3386. }, { "style": { "height": "36px" } }).form; //創建窗體
  3387. _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); } }
  3388. break;
  3389. }
  3390. } else if (!_type) {
  3391. switch (str) {
  3392. case "my":
  3393. _formdiv = new U.UF.UI.form(
  3394. "我的資料",
  3395. $$("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 }), {
  3396. "id": "my",
  3397. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3398. "onresize": function() {}
  3399. }, {
  3400. closecallback: function() {}
  3401. }, { "style": { "height": "36px" } }).form; //創建窗體
  3402. _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); } }
  3403. break;
  3404. }
  3405. }
  3406. switch (str) {
  3407. // AIprogram2 AI體驗 aihub.cocorobo.cn
  3408. // Pythonprogram Python編程 python-blockly.cocorobo.cn
  3409. // AIprogram AI編程 ai-blockly.cocorobo.cn
  3410. case "formulaEdi": //公式編輯
  3411. _formdiv = new U.UF.UI.form(
  3412. "公式編輯",
  3413. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.latexlive.com/" }), {
  3414. "id": "formulaEdi",
  3415. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3416. "onresize": function() {}
  3417. }, {
  3418. closecallback: function() {}
  3419. }, { "style": { "height": "36px" } }).form; //創建窗體
  3420. _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); } }
  3421. break;
  3422. case "molStr": //分子結構
  3423. _formdiv = new U.UF.UI.form(
  3424. "分子結構",
  3425. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://molview.org/" }), {
  3426. "id": "molStr",
  3427. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3428. "onresize": function() {}
  3429. }, {
  3430. closecallback: function() {}
  3431. }, { "style": { "height": "36px" } }).form; //創建窗體
  3432. _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); } }
  3433. break;
  3434. case "timeAxis": //時間軸
  3435. _formdiv = new U.UF.UI.form(
  3436. "時間軸",
  3437. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://time.graphics/editor" }), {
  3438. "id": "timeAxis",
  3439. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3440. "onresize": function() {}
  3441. }, {
  3442. closecallback: function() {}
  3443. }, { "style": { "height": "36px" } }).form; //創建窗體
  3444. _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); } }
  3445. break;
  3446. case "AIprogram2": //AI體驗
  3447. _formdiv = new U.UF.UI.form(
  3448. "AI體驗",
  3449. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3450. "id": "AIprogram2",
  3451. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3452. "onresize": function() {}
  3453. }, {
  3454. closecallback: function() {}
  3455. }, { "style": { "height": "36px" } }).form; //創建窗體
  3456. _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); } }
  3457. break;
  3458. case "Pythonprogram": //python編程
  3459. _formdiv = new U.UF.UI.form(
  3460. "Python編程",
  3461. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3462. "id": "Pythonprogram",
  3463. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3464. "onresize": function() {}
  3465. }, {
  3466. closecallback: function() {}
  3467. }, { "style": { "height": "36px" } }).form; //創建窗體
  3468. _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); } }
  3469. break;
  3470. case "AIprogram": //ai編程
  3471. _formdiv = new U.UF.UI.form(
  3472. "AI編程平臺",
  3473. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3474. "id": "AIprogram",
  3475. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3476. "onresize": function() {}
  3477. }, {
  3478. closecallback: function() {}
  3479. }, { "style": { "height": "36px" } }).form; //創建窗體
  3480. _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); } }
  3481. break;
  3482. case "CocoPi": //CocoPi
  3483. _formdiv = new U.UF.UI.form(
  3484. "CocoPi",
  3485. $$("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" }), {
  3486. "id": "CocoPi",
  3487. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3488. "onresize": function() {}
  3489. }, {
  3490. closecallback: function() {}
  3491. }, { "style": { "height": "36px" } }).form; //創建窗體
  3492. _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); } }
  3493. break;
  3494. case "Wood": //Wood
  3495. _formdiv = new U.UF.UI.form(
  3496. "海龜編程",
  3497. $$("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/" }), {
  3498. "id": "Wood",
  3499. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3500. "onresize": function() {}
  3501. }, {
  3502. closecallback: function() {}
  3503. }, { "style": { "height": "36px" } }).form; //創建窗體
  3504. _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); } }
  3505. break;
  3506. case "car": //模擬駕駛
  3507. _formdiv = new U.UF.UI.form(
  3508. "模擬駕駛",
  3509. $$("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/" }), {
  3510. "id": "car",
  3511. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3512. "onresize": function() {}
  3513. }, {
  3514. closecallback: function() {}
  3515. }, { "style": { "height": "36px" } }).form; //創建窗體
  3516. _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); } }
  3517. break;
  3518. case "lineSearch": //路徑搜索
  3519. _formdiv = new U.UF.UI.form(
  3520. "路徑搜索",
  3521. $$("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/" }), {
  3522. "id": "lineSearch",
  3523. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3524. "onresize": function() {}
  3525. }, {
  3526. closecallback: function() {}
  3527. }, { "style": { "height": "36px" } }).form; //創建窗體
  3528. _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); } }
  3529. break;
  3530. case "deepLearning": //深度學習
  3531. _formdiv = new U.UF.UI.form(
  3532. "深度學習",
  3533. $$("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/#" }), {
  3534. "id": "deepLearning",
  3535. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3536. "onresize": function() {}
  3537. }, {
  3538. closecallback: function() {}
  3539. }, { "style": { "height": "36px" } }).form; //創建窗體
  3540. _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); } }
  3541. break;
  3542. case "allHistory": //深度學習
  3543. _formdiv = new U.UF.UI.form(
  3544. "全歷史",
  3545. $$("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/" }), {
  3546. "id": "allHistory",
  3547. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3548. "onresize": function() {}
  3549. }, {
  3550. closecallback: function() {}
  3551. }, { "style": { "height": "36px" } }).form; //創建窗體
  3552. _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); } }
  3553. break;
  3554. case "chatPDF": //ai編程
  3555. _formdiv = new U.UF.UI.form(
  3556. "chatPDF",
  3557. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3558. "id": "chatPDF",
  3559. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3560. "onresize": function() {}
  3561. }, {
  3562. closecallback: function() {}
  3563. }, { "style": { "height": "36px" } }).form; //創建窗體
  3564. _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); } }
  3565. break;
  3566. case "resources": //國家教育
  3567. _formdiv = new U.UF.UI.form(
  3568. "國家教育",
  3569. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3570. "id": "resources",
  3571. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3572. "onresize": function() {}
  3573. }, {
  3574. closecallback: function() {}
  3575. }, { "style": { "height": "36px" } }).form; //創建窗體
  3576. _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); } }
  3577. break;
  3578. case "codeEdit": //源碼編輯
  3579. _formdiv = new U.UF.UI.form(
  3580. "源碼編輯",
  3581. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3582. "id": "codeEdit",
  3583. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3584. "onresize": function() {}
  3585. }, {
  3586. closecallback: function() {}
  3587. }, { "style": { "height": "36px" } }).form; //創建窗體
  3588. _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); } }
  3589. break; //
  3590. case "MindMap": //MindMap
  3591. _formdiv = new U.UF.UI.form(
  3592. "MindMap",
  3593. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3594. "id": "MindMap",
  3595. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3596. "onresize": function() {}
  3597. }, {
  3598. closecallback: function() {}
  3599. }, { "style": { "height": "36px" } }).form; //創建窗體
  3600. _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); } }
  3601. break;
  3602. case "netWorkPanel": //netWorkPanel
  3603. _formdiv = new U.UF.UI.form(
  3604. "netWorkPanel",
  3605. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3606. "id": "netWorkPanel",
  3607. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3608. "onresize": function() {}
  3609. }, {
  3610. closecallback: function() {}
  3611. }, { "style": { "height": "36px" } }).form; //創建窗體
  3612. _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); } }
  3613. break;
  3614. case "GeoGebra": //GeoGebra
  3615. _formdiv = new U.UF.UI.form(
  3616. "GeoGebra",
  3617. $$("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" }), {
  3618. "id": "GeoGebra",
  3619. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3620. "onresize": function() {}
  3621. }, {
  3622. closecallback: function() {}
  3623. }, { "style": { "height": "36px" } }).form; //創建窗體
  3624. _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); } }
  3625. break;
  3626. case "translation": //翻譯
  3627. _formdiv = new U.UF.UI.form(
  3628. "翻譯",
  3629. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3630. "id": "translation",
  3631. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3632. "onresize": function() {}
  3633. }, {
  3634. closecallback: function() {}
  3635. }, { "style": { "height": "36px" } }).form; //創建窗體
  3636. _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); } }
  3637. break;
  3638. case "mohe": //魔盒
  3639. _formdiv = new U.UF.UI.form(
  3640. "魔盒識字",
  3641. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3642. "id": "mohe",
  3643. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3644. "onresize": function() {}
  3645. }, {
  3646. closecallback: function() {}
  3647. }, { "style": { "height": "36px" } }).form; //創建窗體
  3648. _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); } }
  3649. break;
  3650. case "24game": //24點
  3651. _formdiv = new U.UF.UI.form(
  3652. "24點",
  3653. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3654. "id": "24game",
  3655. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3656. "onresize": function() {}
  3657. }, {
  3658. closecallback: function() {}
  3659. }, { "style": { "height": "36px" } }).form; //創建窗體
  3660. _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); } }
  3661. break;
  3662. case "case":
  3663. _formdiv = new U.UF.UI.form(
  3664. "課程進展",
  3665. $$("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 }), {
  3666. "id": "case",
  3667. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3668. "onresize": function() {}
  3669. }, {
  3670. closecallback: function() {}
  3671. }, { "style": { "height": "36px" } }).form; //創建窗體
  3672. _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); } }
  3673. break;
  3674. case "snf":
  3675. _formdiv = new U.UF.UI.form(
  3676. "賽諾梵",
  3677. $$("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" }), {
  3678. "id": "snf",
  3679. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3680. "onresize": function() {}
  3681. }, {
  3682. closecallback: function() {}
  3683. }, { "style": { "height": "36px" } }).form; //創建窗體
  3684. _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); } }
  3685. break;
  3686. case "hanFamily":
  3687. _formdiv = new U.UF.UI.form(
  3688. "漢字家族",
  3689. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3690. "id": "hanFamily",
  3691. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3692. "onresize": function() {}
  3693. }, {
  3694. closecallback: function() {}
  3695. }, { "style": { "height": "36px" } }).form; //創建窗體
  3696. _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); } }
  3697. break;
  3698. case "hanClassics":
  3699. _formdiv = new U.UF.UI.form(
  3700. "國學經典",
  3701. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3702. "id": "hanClassics",
  3703. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3704. "onresize": function() {}
  3705. }, {
  3706. closecallback: function() {}
  3707. }, { "style": { "height": "36px" } }).form; //創建窗體
  3708. _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); } }
  3709. break;
  3710. case "hanTraining":
  3711. _formdiv = new U.UF.UI.form(
  3712. "筆畫訓練",
  3713. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3714. "id": "hanTraining",
  3715. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3716. "onresize": function() {}
  3717. }, {
  3718. closecallback: function() {}
  3719. }, { "style": { "height": "36px" } }).form; //創建窗體
  3720. _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); } }
  3721. break;
  3722. case "hanClass":
  3723. _formdiv = new U.UF.UI.form(
  3724. "書法課堂",
  3725. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3726. "id": "hanClass",
  3727. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3728. "onresize": function() {}
  3729. }, {
  3730. closecallback: function() {}
  3731. }, { "style": { "height": "36px" } }).form; //創建窗體
  3732. _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); } }
  3733. break;
  3734. case "han":
  3735. _formdiv = new U.UF.UI.form(
  3736. "漢字宮",
  3737. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3738. "id": "han",
  3739. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3740. "onresize": function() {}
  3741. }, {
  3742. closecallback: function() {}
  3743. }, { "style": { "height": "36px" } }).form; //創建窗體
  3744. _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); } }
  3745. break;
  3746. case "projectGM": //課程管理
  3747. _formdiv = new U.UF.UI.form(
  3748. "課程管理",
  3749. $$("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 }), {
  3750. "id": "projectGM",
  3751. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3752. "onresize": function() {}
  3753. }, {
  3754. closecallback: function() {}
  3755. }, { "style": { "height": "36px" } }).form; //創建窗體
  3756. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/courseMange.png)" }, "name": "課程管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3757. break;
  3758. case "studyGM": //課程中心
  3759. _formdiv = new U.UF.UI.form(
  3760. "課程中心",
  3761. $$("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
  3762. "id": "study",
  3763. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3764. "onresize": function() {}
  3765. }, {
  3766. closecallback: function() {}
  3767. }, { "style": { "height": "36px" } }).form; //創建窗體
  3768. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "課程中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3769. break;
  3770. // studentGM
  3771. case "studentGM": //學生管理
  3772. _formdiv = new U.UF.UI.form(
  3773. "學生管理",
  3774. $$("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 }), {
  3775. "id": "studentGM",
  3776. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3777. "onresize": function() {}
  3778. }, {
  3779. closecallback: function() {}
  3780. }, { "style": { "height": "36px" } }).form; //創建窗體
  3781. _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); } }
  3782. break;
  3783. case "evaluateGM": //學生評價
  3784. _formdiv = new U.UF.UI.form(
  3785. "學生評價",
  3786. $$("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 }), {
  3787. "id": "evaluateGM",
  3788. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3789. "onresize": function() {}
  3790. }, {
  3791. closecallback: function() {}
  3792. }, { "style": { "height": "36px" } }).form; //創建窗體
  3793. _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); } }
  3794. break;
  3795. // classGM
  3796. case "classGM": //班級管理
  3797. _formdiv = new U.UF.UI.form(
  3798. "班級管理",
  3799. $$("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 }), {
  3800. "id": "classGM",
  3801. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3802. "onresize": function() {}
  3803. }, {
  3804. closecallback: function() {}
  3805. }, { "style": { "height": "36px" } }).form; //創建窗體
  3806. _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); } }
  3807. break;
  3808. // dataGM
  3809. case "dataGM":
  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/#/dataGM?userid=" + _userid + "&org=" + _org }), {
  3813. "id": "dataGM",
  3814. "style": { "width": "42%", "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/gm/data.png)" }, "name": "我的資料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3820. break;
  3821. // caseGM
  3822. case "caseGM": //課程進展
  3823. _formdiv = new U.UF.UI.form(
  3824. "課程進展",
  3825. $$("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 }), {
  3826. "id": "caseGM",
  3827. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3828. "onresize": function() {}
  3829. }, {
  3830. closecallback: function() {}
  3831. }, { "style": { "height": "36px" } }).form; //創建窗體
  3832. _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); } }
  3833. break;
  3834. // meterialGM
  3835. case "meterialGM": //素材庫
  3836. _formdiv = new U.UF.UI.form(
  3837. "素材庫",
  3838. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/libraryGM?userid=" + _userid + "&org=" + _org }), {
  3839. "id": "meterialGM",
  3840. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3841. "onresize": function() {}
  3842. }, {
  3843. closecallback: function() {}
  3844. }, { "style": { "height": "36px" } }).form; //創建窗體
  3845. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/material.png)" }, "name": "素材庫", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3846. break;
  3847. // evaluateSGM
  3848. case "evaluateSGM": //我的評價
  3849. _formdiv = new U.UF.UI.form(
  3850. "我的評價",
  3851. $$("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 }), {
  3852. "id": "evaluateSGM",
  3853. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3854. "onresize": function() {}
  3855. }, {
  3856. closecallback: function() {}
  3857. }, { "style": { "height": "36px" } }).form; //創建窗體
  3858. _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); } }
  3859. break;
  3860. case "jupyter": //jupyter
  3861. _formdiv = new U.UF.UI.form(
  3862. "jupyter",
  3863. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3864. "id": "jupyter",
  3865. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3866. "onresize": function() {}
  3867. }, {
  3868. closecallback: function() {}
  3869. }, { "style": { "height": "36px" } }).form; //創建窗體
  3870. _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); } }
  3871. break;
  3872. case "number": //數字實驗室
  3873. _formdiv = new U.UF.UI.form(
  3874. "數字實驗室",
  3875. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3876. "id": "number",
  3877. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3878. "onresize": function() {}
  3879. }, {
  3880. closecallback: function() {}
  3881. }, { "style": { "height": "36px" } }).form; //創建窗體
  3882. _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); } }
  3883. break;
  3884. case "studentCourse": //項目管理 學生
  3885. _formdiv = new U.UF.UI.form(
  3886. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  3887. $$("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 }), {
  3888. "id": "studentCourse",
  3889. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3890. "onresize": function() {}
  3891. }, {
  3892. closecallback: function() {}
  3893. }, { "style": { "height": "36px" } }).form; //創建窗體
  3894. _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); } }
  3895. break;
  3896. case "studentCourseS": //項目管理 老師
  3897. _formdiv = new U.UF.UI.form(
  3898. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "師生項目" : "項目管理",
  3899. $$("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 }), {
  3900. "id": "studentCourseS",
  3901. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3902. "onresize": function() {}
  3903. }, {
  3904. closecallback: function() {}
  3905. }, { "style": { "height": "36px" } }).form; //創建窗體
  3906. _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); } }
  3907. break;
  3908. case "studentIndex": //項目中心
  3909. _formdiv = new U.UF.UI.form(
  3910. "項目中心",
  3911. $$("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 }), {
  3912. "id": "studentIndex",
  3913. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3914. "onresize": function() {}
  3915. }, {
  3916. closecallback: function() {}
  3917. }, { "style": { "height": "36px" } }).form; //創建窗體
  3918. _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); } }
  3919. break;
  3920. case "CaseDesignS":
  3921. _formdiv = new U.UF.UI.form(
  3922. "項目進展",
  3923. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesignS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3924. "id": "case",
  3925. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3926. "onresize": function() {}
  3927. }, {
  3928. closecallback: function() {}
  3929. }, { "style": { "height": "36px" } }).form; //創建窗體
  3930. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/CaseDesignS.png)" }, "name": "項目進展", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3931. break;
  3932. case "tcStudent": //騰訊學生管理
  3933. _formdiv = new U.UF.UI.form(
  3934. "學生管理",
  3935. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcStudent?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3936. "id": "tcStudent",
  3937. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3938. "onresize": function() {}
  3939. }, {
  3940. closecallback: function() {}
  3941. }, { "style": { "height": "36px" } }).form; //創建窗體
  3942. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "學生管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3943. break;
  3944. case "tcSchool": //騰訊學校管理
  3945. _formdiv = new U.UF.UI.form(
  3946. "學校管理",
  3947. $$("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 }), {
  3948. "id": "tcSchool",
  3949. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3950. "onresize": function() {}
  3951. }, {
  3952. closecallback: function() {}
  3953. }, { "style": { "height": "36px" } }).form; //創建窗體
  3954. _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); } }
  3955. break;
  3956. case "tcTeacher": //騰訊學校管理
  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/#/tcTeacher?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3960. "id": "tcTeacher",
  3961. "style": { "width": "90%", "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/teacher.png)" }, "name": "教師管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3967. break;
  3968. case "tcData": //騰訊我的資料
  3969. _formdiv = new U.UF.UI.form(
  3970. "我的資料",
  3971. $$("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 }), {
  3972. "id": "tcData",
  3973. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3974. "onresize": function() {}
  3975. }, {
  3976. closecallback: function() {}
  3977. }, { "style": { "height": "36px" } }).form; //創建窗體
  3978. _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); } }
  3979. break;
  3980. case "tcNotice": //騰訊消息通知
  3981. _formdiv = new U.UF.UI.form(
  3982. "消息通知",
  3983. $$("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 }), {
  3984. "id": "tcNotice",
  3985. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3986. "onresize": function() {}
  3987. }, {
  3988. closecallback: function() {}
  3989. }, { "style": { "height": "36px" } }).form; //創建窗體
  3990. _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); } }
  3991. break;
  3992. case "myReport": //好友打開
  3993. _formdiv = new U.UF.UI.form(
  3994. "我的評價",
  3995. $$("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 }), {
  3996. "id": "myReport",
  3997. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3998. "onresize": function() {}
  3999. }, {
  4000. closecallback: function() {}
  4001. }, { "style": { "height": "36px" } }).form; //創建窗體
  4002. _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); } }
  4003. break;
  4004. case "learnAna": //好友打開
  4005. _formdiv = new U.UF.UI.form(
  4006. "學習分析",
  4007. $$("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 }), {
  4008. "id": "learnAna",
  4009. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4010. "onresize": function() {}
  4011. }, {
  4012. closecallback: function() {}
  4013. }, { "style": { "height": "36px" } }).form; //創建窗體
  4014. _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); } }
  4015. break;
  4016. case "AIChat": //AI共創
  4017. _formdiv = new U.UF.UI.form(
  4018. "AI共創",
  4019. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/aichat/" }), {
  4020. "id": "AIChat",
  4021. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  4022. "onresize": function () { }
  4023. }, {
  4024. istop: true,
  4025. closecallback: function () { $("#aichat_icon").remove(); },
  4026. narrowcallback: function () {
  4027. if (!$("#aichat_icon")[0]) {
  4028. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  4029. }
  4030. },
  4031. }, { "style": { "height": "36px" } }).form; //創建窗體
  4032. _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); } }
  4033. break;
  4034. case "ainew": //AI共創
  4035. _formdiv = new U.UF.UI.form(
  4036. "AI協同",
  4037. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ainew/" }), {
  4038. "id": "ainew",
  4039. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4040. "onresize": function () { }
  4041. }, {
  4042. closecallback: function () { }
  4043. }, { "style": { "height": "36px" } }).form; //創建窗體
  4044. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI協同", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4045. break;
  4046. case "AIAnalyse": //AI共創
  4047. _formdiv = new U.UF.UI.form(
  4048. "AI分析",
  4049. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.hk/ai/" }), {
  4050. "id": "AIAnalyse",
  4051. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4052. "onresize": function () { }
  4053. }, {
  4054. closecallback: function () { }
  4055. }, { "style": { "height": "36px" } }).form; //創建窗體
  4056. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4057. break;
  4058. case "studioCourse": //AI共創
  4059. _formdiv = new U.UF.UI.form(
  4060. "工作管理",
  4061. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studioCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4062. "id": "studioCourse",
  4063. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4064. "onresize": function() {}
  4065. }, {
  4066. closecallback: function() {}
  4067. }, { "style": { "height": "36px" } }).form; //創建窗體
  4068. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioCourse.png)" }, "name": "工作管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  4069. break;
  4070. case "studioIndex": //AI共創
  4071. _formdiv = new U.UF.UI.form(
  4072. "工作中心",
  4073. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studioIndex?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType + "&role=" + _role }), {
  4074. "id": "studioIndex",
  4075. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  4076. "onresize": function() {}
  4077. }, {
  4078. closecallback: function() {}
  4079. }, { "style": { "height": "36px" } }).form; //創建窗體
  4080. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioIndex.png)" }, "name": "工作中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  4081. break;
  4082. case "source":
  4083. _formdiv = new U.UF.UI.form(
  4084. "教學資源",
  4085. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/teacherSource?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  4086. "id": "source",
  4087. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  4088. "onresize": function () { }
  4089. }, {
  4090. closecallback: function () { }
  4091. }, { "style": { "height": "36px" } }).form; //創建窗體
  4092. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/source.png)" }, "name": "教學資源", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  4093. break;
  4094. }
  4095. //U.MD.D.I.openClick(str);
  4096. //如果有任務欄信息
  4097. if (_taskbar) {
  4098. U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4099. }
  4100. }
  4101. // U.MD.D.I.openClick = function(str){
  4102. // var click = '';
  4103. // switch(str){
  4104. // case 'friend':
  4105. // click = '我的好友';
  4106. // break;
  4107. // case 'domain':
  4108. // click = '域名管理';
  4109. // break;
  4110. // case 'disk':
  4111. // click = '我的雲盤';
  4112. // break;
  4113. // case 'word':
  4114. // click = 'Word';
  4115. // break;
  4116. // case 'excel':
  4117. // click = 'Execl';
  4118. // break;
  4119. // case 'txt':
  4120. // click = '文本文件';
  4121. // break;
  4122. // case 'lookupFriend':
  4123. // click = '查找好友';
  4124. // break;
  4125. // case 'ftp':
  4126. // click = 'FTP';
  4127. // break;
  4128. // case 'group':
  4129. // click = '群組';
  4130. // break;
  4131. // case 'set':
  4132. // click = '我的設置';
  4133. // break;
  4134. // case 'systemSet':
  4135. // click = '系統設置';
  4136. // break;
  4137. // case 'boomYun':
  4138. // click = '互聯辦公';
  4139. // break;
  4140. // case 'xz':
  4141. // click = '雲端下載';
  4142. // break;
  4143. // case 'client':
  4144. // click = '有思瀏覽器';
  4145. // break;
  4146. // case 'backEndProgramming':
  4147. // click = '在線後臺編程';
  4148. // break;
  4149. // case 'frontEndProgramming':
  4150. // click = '在線前端編程';
  4151. // break;
  4152. // default: break;
  4153. // }
  4154. // if(U.MD.D.I.Ip && click){
  4155. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  4156. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  4157. // })
  4158. // }
  4159. // }
  4160. /**
  4161. *函數作用:ajax簡易函數,使用post格式
  4162. *@param url {data} 後臺地址
  4163. *@param data {data} 參數json
  4164. *@param fn {data} 回調函數
  4165. *
  4166. */
  4167. // U.MD.D.I.Mysqlrequest = function(url,fn){
  4168. // var xhr = new XMLHttpRequest();
  4169. // xhr.open("GET",url,true);
  4170. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  4171. // xhr.onreadystatechange = function(){
  4172. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  4173. // fn.call(this,xhr.responseText);
  4174. // }
  4175. // };
  4176. // xhr.send();
  4177. // }
  4178. /*判斷是否是內網IP*/
  4179. // U.MD.D.I.isInnerIPFn = function(str){
  4180. // var curPageUrl = str;
  4181. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前綴
  4182. // curPageUrl =curPageUrl.replace(reg1,'');
  4183. // // console.log('curPageUrl-1 '+curPageUrl);
  4184. // var reg2 = /\:+/g;//替換冒號為一點
  4185. // curPageUrl =curPageUrl.replace(reg2,'.');
  4186. // // console.log('curPageUrl-2 '+curPageUrl);
  4187. // curPageUrl = curPageUrl.split('.');//通過一點來劃分數組
  4188. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  4189. // if(curPageUrl[2] != '16'){
  4190. // return ipAddress;
  4191. // }else{
  4192. // return false;
  4193. // }
  4194. // }
  4195. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  4196. // //compatibility for firefox and chrome
  4197. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  4198. // var pc = new myPeerConnection({
  4199. // iceServers: []
  4200. // }),
  4201. // noop = function() {},
  4202. // localIPs = {},
  4203. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  4204. // key;
  4205. // function iterateIP(ip) {
  4206. // if (!localIPs[ip]) onNewIP(ip);
  4207. // localIPs[ip] = true;
  4208. // }
  4209. // //create a bogus data channel
  4210. // pc.createDataChannel("");
  4211. // // create offer and set local description
  4212. // pc.createOffer().then(function(sdp) {
  4213. // sdp.sdp.split('\n').forEach(function(line) {
  4214. // if (line.indexOf('candidate') < 0) return;
  4215. // line.match(ipRegex).forEach(iterateIP);
  4216. // });
  4217. // pc.setLocalDescription(sdp, noop, noop);
  4218. // }).catch(function(reason) {
  4219. // // An error occurred, so handle the failure to connect
  4220. // });
  4221. // //sten for candidate events
  4222. // pc.onicecandidate = function(ice) {
  4223. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  4224. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  4225. // };
  4226. // }
  4227. // U.MD.D.I.getUserIpBool = function(callback){
  4228. // U.MD.D.I.getUserIP(function(ip){
  4229. // alert("Got IP! :" + ip);
  4230. // });
  4231. //}
  4232. //#endregion
  4233. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  4234. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4235. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4236. _userinfo = US.userInfo, //登錄用戶信息
  4237. _userid = US.userInfo.userid //登錄用戶id
  4238. let _iframe;
  4239. let _cid = cid,
  4240. _stage = stage,
  4241. _task = task,
  4242. _tool = tool;
  4243. var _jie = $$("div", {
  4244. "style": {
  4245. "position": "absolute",
  4246. "bottom": "50px",
  4247. "right": "50px",
  4248. "zIndex": "9999",
  4249. "backgroundColor": "#2268bc",
  4250. "color": "#fff",
  4251. "padding": "12px 20px",
  4252. "cursor": "pointer",
  4253. "borderRadius": "4px",
  4254. },
  4255. "innerHTML": "提交作業"
  4256. })
  4257. let aTool = ''
  4258. let _loading = document.createElement('div')
  4259. _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;"
  4260. // _loading.id = "";
  4261. let _lchild = document.createElement('div')
  4262. let _limg = document.createElement('img')
  4263. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4264. _limg.style = "width: 26px;margin-right: 10px;"
  4265. _lchild.appendChild(_limg)
  4266. let _lspan = document.createElement('span')
  4267. _lspan.innerHTML = "上傳中..."
  4268. _lchild.appendChild(_lspan)
  4269. _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%);"
  4270. _loading.appendChild(_lchild)
  4271. var _box = $$('div', {
  4272. "style": {
  4273. "position": "relative",
  4274. "width": "100%",
  4275. "height": "100%",
  4276. },
  4277. })
  4278. _box.appendChild(_loading)
  4279. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool + _userid
  4280. switch (str) {
  4281. case "whiteboard":
  4282. aTool = 1;
  4283. _iframe = $$("iframe", {
  4284. "frameborder": "no",
  4285. "border": "0",
  4286. "scrolling ": "no",
  4287. "style": {
  4288. "cssText": "border:0;width:100%;height:100%"
  4289. },
  4290. "src": "https://iwb.cocorobo.hk/"
  4291. })
  4292. _box.appendChild(_iframe);
  4293. _box.appendChild(_jie);
  4294. _formdiv = new U.UF.UI.form(
  4295. "電子白板",
  4296. _box, {
  4297. "id": "whiteboard" + cid + stage + task + tool,
  4298. "style": {
  4299. "width": "90%",
  4300. "height": "90%",
  4301. "overflow": 'hidden'
  4302. },
  4303. "onresize": function () { }
  4304. }, {
  4305. closecallback: function () { }
  4306. }, {
  4307. "style": {
  4308. "height": "36px"
  4309. }
  4310. }).form; //創建窗體
  4311. _taskbar = {
  4312. "id": str + _formdiv.id,
  4313. "style": {
  4314. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4315. },
  4316. "name": "電子白板",
  4317. "forms": _formdiv,
  4318. "click": function() {
  4319. U.MD.D.I.openApplication(str, obj, info);
  4320. }
  4321. }
  4322. break;
  4323. case "mind":
  4324. aTool = 3;
  4325. _iframe = $$("iframe", {
  4326. "frameborder": "no",
  4327. "border": "0",
  4328. "scrolling ": "no",
  4329. "style": {
  4330. "cssText": "border:0;width:100%;height:100%"
  4331. },
  4332. "src": "/kityminder-editor/dist/index.html"
  4333. })
  4334. _box.appendChild(_iframe);
  4335. _box.appendChild(_jie);
  4336. _formdiv = new U.UF.UI.form(
  4337. "思維導圖",
  4338. _box, { //"/jsmind/example/demo.html"
  4339. "id": "mind" + cid + stage + task + tool,
  4340. "style": {
  4341. "width": "90%",
  4342. "height": "90%",
  4343. "overflow": 'hidden'
  4344. },
  4345. "onresize": function () { }
  4346. }, {
  4347. closecallback: function () { }
  4348. }, {
  4349. "style": {
  4350. "height": "36px"
  4351. }
  4352. }).form; //創建窗體
  4353. _taskbar = {
  4354. "id": str + _formdiv.id,
  4355. "style": {
  4356. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4357. },
  4358. "name": "思維導圖",
  4359. "forms": _formdiv,
  4360. "click": function() {
  4361. U.MD.D.I.openApplication(str, obj, info);
  4362. }
  4363. }
  4364. break;
  4365. case "MindMap":
  4366. aTool = 3;
  4367. _iframe = $$("iframe", {
  4368. "frameborder": "no",
  4369. "border": "0",
  4370. "scrolling ": "no",
  4371. "style": {
  4372. "cssText": "border:0;width:100%;height:100%"
  4373. },
  4374. "src": "//cloud.cocorobo.hk/mind/"
  4375. })
  4376. _box.appendChild(_iframe);
  4377. _box.appendChild(_jie);
  4378. _formdiv = new U.UF.UI.form(
  4379. "思維導圖",
  4380. _box, { //"/jsmind/example/demo.html"
  4381. "id": "mind" + cid + stage + task + tool,
  4382. "style": {
  4383. "width": "90%",
  4384. "height": "90%",
  4385. "overflow": 'hidden'
  4386. },
  4387. "onresize": function () { }
  4388. }, {
  4389. closecallback: function () { }
  4390. }, {
  4391. "style": {
  4392. "height": "36px"
  4393. }
  4394. }).form; //創建窗體
  4395. _taskbar = {
  4396. "id": str + _formdiv.id,
  4397. "style": {
  4398. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4399. },
  4400. "name": "思維導圖",
  4401. "forms": _formdiv,
  4402. "click": function() {
  4403. U.MD.D.I.openApplication(str, obj, info);
  4404. }
  4405. }
  4406. break;
  4407. case "doc":
  4408. aTool = 6;
  4409. _iframe = $$("iframe", {
  4410. "frameborder": "no",
  4411. "border": "0",
  4412. "scrolling ": "no",
  4413. "style": {
  4414. "cssText": "border:0;width:100%;height:100%"
  4415. },
  4416. "src": "/Office/Word/WordEditArea.htm"
  4417. })
  4418. _box.appendChild(_iframe);
  4419. _box.appendChild(_jie);
  4420. _formdiv = new U.UF.UI.form(
  4421. "協同文檔",
  4422. _box, {
  4423. "id": "doc" + cid + stage + task + tool,
  4424. "style": {
  4425. "width": "90%",
  4426. "height": "90%",
  4427. "overflow": 'hidden'
  4428. },
  4429. "onresize": function () { }
  4430. }, {
  4431. closecallback: function () { }
  4432. }, {
  4433. "style": {
  4434. "height": "36px"
  4435. }
  4436. }).form; //創建窗體
  4437. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  4438. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4439. })
  4440. _taskbar = {
  4441. "id": str + _formdiv.id,
  4442. "style": {
  4443. "backgroundImage": "url(/img/icon/doc.png)"
  4444. },
  4445. "name": "協同文檔",
  4446. "forms": _formdiv,
  4447. "click": function() {
  4448. U.MD.D.I.openApplication(str, obj, info);
  4449. }
  4450. }
  4451. break;
  4452. case "mindNetwork": //好友打開
  4453. aTool = 7;
  4454. _iframe = $$("iframe", {
  4455. "webkitallowfullscreen": "",
  4456. "mozallowfullscreen": "",
  4457. "allowfullscreen": "",
  4458. "frameborder": "no",
  4459. "border": "0",
  4460. "scrolling ": "no",
  4461. "style": {
  4462. "cssText": "border:0; width:100%; height:100%;"
  4463. },
  4464. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4465. })
  4466. _box.appendChild(_iframe);
  4467. _box.appendChild(_jie);
  4468. _formdiv = new U.UF.UI.form(
  4469. "思維網格",
  4470. _box, {
  4471. "id": "mindNetwork" + cid + stage + task + tool,
  4472. "style": {
  4473. "width": "90%",
  4474. "height": "90%",
  4475. "overflow": 'hidden'
  4476. },
  4477. "onresize": function () { }
  4478. }, {
  4479. closecallback: function () { }
  4480. }, {
  4481. "style": {
  4482. "height": "36px"
  4483. }
  4484. }).form; //創建窗體
  4485. _taskbar = {
  4486. "id": str + _formdiv.id,
  4487. "style": {
  4488. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4489. },
  4490. "name": "思維網格",
  4491. "forms": _formdiv,
  4492. "click": function() {
  4493. U.MD.D.I.openApplication(str, obj, info);
  4494. }
  4495. }
  4496. break;
  4497. case "courseDesign":
  4498. _iframe = $$("iframe", {
  4499. "webkitallowfullscreen": "",
  4500. "mozallowfullscreen": "",
  4501. "allowfullscreen": "",
  4502. "frameborder": "no",
  4503. "border": "0",
  4504. "scrolling ": "no",
  4505. "style": {
  4506. "cssText": "border:0; width:100%; height:100%;"
  4507. },
  4508. "src": "/course-design-vue"
  4509. })
  4510. _box.appendChild(_iframe);
  4511. _box.appendChild(_jie);
  4512. _formdiv = new U.UF.UI.form(
  4513. "項目設計",
  4514. _box, {
  4515. "id": "courseDesign" + cid + stage + task + tool,
  4516. "style": {
  4517. "width": "90%",
  4518. "height": "90%",
  4519. "overflow": 'hidden'
  4520. },
  4521. "onresize": function () { }
  4522. }, {
  4523. closecallback: function () { }
  4524. }, {
  4525. "style": {
  4526. "height": "36px"
  4527. }
  4528. }).form; //創建窗體
  4529. _taskbar = {
  4530. "id": str + _formdiv.id,
  4531. "style": {
  4532. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4533. },
  4534. "name": "項目設計",
  4535. "forms": _formdiv,
  4536. "click": function() {
  4537. U.MD.D.I.openApplication(str, obj, info);
  4538. }
  4539. }
  4540. break;
  4541. }
  4542. const script1 = document.createElement("script");
  4543. script1.type = "text/javascript";
  4544. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4545. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  4546. const script2 = document.createElement("script");
  4547. script2.type = "text/javascript";
  4548. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4549. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  4550. const script3 = document.createElement("script");
  4551. script3.type = "text/javascript";
  4552. script3.charset = "UTF-8";
  4553. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  4554. const script4 = document.createElement("script");
  4555. script4.type = "text/javascript";
  4556. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4557. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  4558. if (_iframe) {
  4559. if (str == 'doc') {
  4560. _iframe = _formdiv.querySelector('iframe')
  4561. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4562. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4563. _iframe.contentWindow.document.body.appendChild(script1);
  4564. _iframe.contentWindow.document.body.appendChild(script2);
  4565. // _iframe.contentWindow.document.body.appendChild(script3);
  4566. _iframe.contentWindow.document.body.appendChild(script4);
  4567. })
  4568. if (onloadListener) {
  4569. _iframe.contentDocument.location.reload()
  4570. } else {
  4571. _iframe.contentDocument.location.reload()
  4572. }
  4573. } else if (str == 'courseDesign') {
  4574. U.UF.DL.iframeLoad(_iframe, function() {
  4575. // _iframe.contentWindow.U.MD.O.W.load();
  4576. // _iframe.contentWindow.document.body.appendChild(script1);
  4577. _iframe.contentWindow.document.body.appendChild(script2);
  4578. _iframe.contentWindow.document.body.appendChild(script4);
  4579. })
  4580. } else if (str == 'mind') {
  4581. _iframe = _formdiv.querySelector('iframe')
  4582. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4583. //
  4584. _iframe.contentWindow.document.body.appendChild(script1);
  4585. _iframe.contentWindow.document.body.appendChild(script2);
  4586. _iframe.contentWindow.document.body.appendChild(script4);
  4587. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4588. })
  4589. if (onloadListener) {
  4590. _iframe.contentDocument.location.reload()
  4591. } else {
  4592. _iframe.contentDocument.location.reload()
  4593. }
  4594. } else if (str == 'whiteboard') {
  4595. _iframe = _formdiv.querySelector('iframe')
  4596. let onloadListener = _iframe.onload = () => {
  4597. _iframe.contentWindow.document.body.appendChild(script1);
  4598. _iframe.contentWindow.document.body.appendChild(script2);
  4599. _iframe.contentWindow.document.body.appendChild(script4);
  4600. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4601. };
  4602. if (onloadListener) {
  4603. _iframe.contentDocument.location.reload()
  4604. } else {
  4605. _iframe.contentDocument.location.reload()
  4606. }
  4607. } else {
  4608. _iframe.onload = () => {
  4609. _iframe.contentWindow.document.body.appendChild(script1);
  4610. _iframe.contentWindow.document.body.appendChild(script2);
  4611. // _iframe.contentWindow.document.body.appendChild(script3);
  4612. _iframe.contentWindow.document.body.appendChild(script4);
  4613. };
  4614. }
  4615. _jie.onclick = async() => {
  4616. let text = ''
  4617. if (aTool == 1) {
  4618. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4619. } else if (aTool == 6) {
  4620. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4621. } else if (aTool == 3) {
  4622. text = await U.MD.D.I.getEditorContent(_iframe);
  4623. }
  4624. _loading.style.display = 'flex'
  4625. console.log(_loading);
  4626. var _ajs = _iframe.contentWindow.document.createElement("script");
  4627. _ajs.type = "text/javascript";
  4628. _ajs.innerHTML =
  4629. // 'console.log(' + _loading + ');\n' +
  4630. 'var _js = document.createElement("script");\n' +
  4631. '_js.type="text/javascript";\n' +
  4632. '_js.charset="UTF-8";\n' +
  4633. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  4634. "_js.onload = function(){\n" +
  4635. ' var a = document.getElementsByTagName("img")\n' +
  4636. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4637. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4638. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4639. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4640. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  4641. "beforeUpload_shishi(file," +
  4642. "'" +
  4643. _userid +
  4644. "'" +
  4645. ", " +
  4646. "'" +
  4647. _cid +
  4648. "'" +
  4649. ", " +
  4650. "'" +
  4651. _stage +
  4652. "'" +
  4653. ", " +
  4654. "'" +
  4655. _task +
  4656. "'" +
  4657. ", " +
  4658. "'" +
  4659. _tool +
  4660. "'" +
  4661. ", " +
  4662. "'" +
  4663. (str + '_loadLi_Jie' + cid + stage + task + tool + _userid) +
  4664. "'" +
  4665. ", " +
  4666. "'" +
  4667. aTool +
  4668. "'" +
  4669. ", " +
  4670. "`" +
  4671. text +
  4672. "`" +
  4673. ")\n" +
  4674. " });\n" +
  4675. "}\n" +
  4676. "document.head.appendChild(_js);\n";
  4677. _iframe.contentWindow.document.head.appendChild(_ajs);
  4678. }
  4679. }
  4680. //U.MD.D.I.openClick(str);
  4681. //如果有任務欄信息
  4682. // if (_taskbar) {
  4683. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  4684. // }
  4685. }
  4686. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4687. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  4688. _formdiv, //創建任務欄時同時彈出的窗體元素。
  4689. _userinfo = US.userInfo, //登錄用戶信息
  4690. _userid = US.userInfo.userid //登錄用戶id
  4691. let _iframe;
  4692. let _cid = cid,
  4693. _stage = stage,
  4694. _task = task,
  4695. _tool = tool;
  4696. var _jie = $$("div", {
  4697. "style": {
  4698. "position": "absolute",
  4699. "bottom": "50px",
  4700. "right": "50px",
  4701. "zIndex": "9999",
  4702. "backgroundColor": "#2268bc",
  4703. "color": "#fff",
  4704. "padding": "12px 20px",
  4705. "cursor": "pointer",
  4706. "borderRadius": "4px",
  4707. },
  4708. "innerHTML": "提交作業"
  4709. })
  4710. let aTool = ''
  4711. let _loading = document.createElement('div')
  4712. _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;"
  4713. // _loading.id = "";
  4714. let _lchild = document.createElement('div')
  4715. let _limg = document.createElement('img')
  4716. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4717. _limg.style = "width: 26px;margin-right: 10px;"
  4718. _lchild.appendChild(_limg)
  4719. let _lspan = document.createElement('span')
  4720. _lspan.innerHTML = "上傳中..."
  4721. _lchild.appendChild(_lspan)
  4722. _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%);"
  4723. _loading.appendChild(_lchild)
  4724. var _box = $$('div', {
  4725. "style": {
  4726. "position": "relative",
  4727. "width": "100%",
  4728. "height": "100%",
  4729. },
  4730. })
  4731. _box.appendChild(_loading)
  4732. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool + _userid
  4733. switch (str) {
  4734. case "whiteboard":
  4735. aTool = 1;
  4736. _iframe = $$("iframe", {
  4737. "frameborder": "no",
  4738. "border": "0",
  4739. "scrolling ": "no",
  4740. "style": {
  4741. "cssText": "border:0;width:100%;height:100%"
  4742. },
  4743. "src": "https://iwb.cocorobo.hk/"
  4744. })
  4745. _box.appendChild(_iframe);
  4746. _box.appendChild(_jie);
  4747. _formdiv = new U.UF.UI.form(
  4748. "電子白板",
  4749. _box, {
  4750. "id": "whiteboard" + cid + stage + task + tool,
  4751. "style": {
  4752. "width": "90%",
  4753. "height": "90%",
  4754. "overflow": 'hidden'
  4755. },
  4756. "onresize": function () { }
  4757. }, {
  4758. closecallback: function () { }
  4759. }, {
  4760. "style": {
  4761. "height": "36px"
  4762. }
  4763. }).form; //創建窗體
  4764. _taskbar = {
  4765. "id": str + _formdiv.id,
  4766. "style": {
  4767. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4768. },
  4769. "name": "電子白板",
  4770. "forms": _formdiv,
  4771. "click": function() {
  4772. U.MD.D.I.openApplication(str, obj, info);
  4773. }
  4774. }
  4775. break;
  4776. case "mind":
  4777. aTool = 3;
  4778. _iframe = $$("iframe", {
  4779. "frameborder": "no",
  4780. "border": "0",
  4781. "scrolling ": "no",
  4782. "style": {
  4783. "cssText": "border:0;width:100%;height:100%"
  4784. },
  4785. "src": "/kityminder-editor/dist/index.html"
  4786. })
  4787. _box.appendChild(_iframe);
  4788. _box.appendChild(_jie);
  4789. _formdiv = new U.UF.UI.form(
  4790. "思維導圖",
  4791. _box, { //"/jsmind/example/demo.html"
  4792. "id": "mind" + cid + stage + task + tool,
  4793. "style": {
  4794. "width": "90%",
  4795. "height": "90%",
  4796. "overflow": 'hidden'
  4797. },
  4798. "onresize": function () { }
  4799. }, {
  4800. closecallback: function () { }
  4801. }, {
  4802. "style": {
  4803. "height": "36px"
  4804. }
  4805. }).form; //創建窗體
  4806. _taskbar = {
  4807. "id": str + _formdiv.id,
  4808. "style": {
  4809. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4810. },
  4811. "name": "思維導圖",
  4812. "forms": _formdiv,
  4813. "click": function() {
  4814. U.MD.D.I.openApplication(str, obj, info);
  4815. }
  4816. }
  4817. break;
  4818. case "MindMap":
  4819. aTool = 3;
  4820. _iframe = $$("iframe", {
  4821. "frameborder": "no",
  4822. "border": "0",
  4823. "scrolling ": "no",
  4824. "style": {
  4825. "cssText": "border:0;width:100%;height:100%"
  4826. },
  4827. "src": "//cloud.cocorobo.hk/mind/"
  4828. })
  4829. _box.appendChild(_iframe);
  4830. _box.appendChild(_jie);
  4831. _formdiv = new U.UF.UI.form(
  4832. "思維導圖",
  4833. _box, { //"/jsmind/example/demo.html"
  4834. "id": "mind" + cid + stage + task + tool,
  4835. "style": {
  4836. "width": "90%",
  4837. "height": "90%",
  4838. "overflow": 'hidden'
  4839. },
  4840. "onresize": function () { }
  4841. }, {
  4842. closecallback: function () { }
  4843. }, {
  4844. "style": {
  4845. "height": "36px"
  4846. }
  4847. }).form; //創建窗體
  4848. _taskbar = {
  4849. "id": str + _formdiv.id,
  4850. "style": {
  4851. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4852. },
  4853. "name": "思維導圖",
  4854. "forms": _formdiv,
  4855. "click": function() {
  4856. U.MD.D.I.openApplication(str, obj, info);
  4857. }
  4858. }
  4859. break;
  4860. case "doc":
  4861. aTool = 6;
  4862. _iframe = $$("iframe", {
  4863. "frameborder": "no",
  4864. "border": "0",
  4865. "scrolling ": "no",
  4866. "style": {
  4867. "cssText": "border:0;width:100%;height:100%"
  4868. },
  4869. "src": "/Office/Word/WordEditArea.htm"
  4870. })
  4871. _box.appendChild(_iframe);
  4872. _box.appendChild(_jie);
  4873. _formdiv = new U.UF.UI.form(
  4874. "協同文檔",
  4875. _box, {
  4876. "id": "doc" + cid + stage + task + tool,
  4877. "style": {
  4878. "width": "90%",
  4879. "height": "90%",
  4880. "overflow": 'hidden'
  4881. },
  4882. "onresize": function () { }
  4883. }, {
  4884. closecallback: function () { }
  4885. }, {
  4886. "style": {
  4887. "height": "36px"
  4888. }
  4889. }).form; //創建窗體
  4890. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  4891. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4892. })
  4893. _taskbar = {
  4894. "id": str + _formdiv.id,
  4895. "style": {
  4896. "backgroundImage": "url(/img/icon/doc.png)"
  4897. },
  4898. "name": "協同文檔",
  4899. "forms": _formdiv,
  4900. "click": function() {
  4901. U.MD.D.I.openApplication(str, obj, info);
  4902. }
  4903. }
  4904. break;
  4905. case "mindNetwork": //好友打開
  4906. aTool = 7;
  4907. _iframe = $$("iframe", {
  4908. "webkitallowfullscreen": "",
  4909. "mozallowfullscreen": "",
  4910. "allowfullscreen": "",
  4911. "frameborder": "no",
  4912. "border": "0",
  4913. "scrolling ": "no",
  4914. "style": {
  4915. "cssText": "border:0; width:100%; height:100%;"
  4916. },
  4917. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4918. })
  4919. _box.appendChild(_iframe);
  4920. _box.appendChild(_jie);
  4921. _formdiv = new U.UF.UI.form(
  4922. "思維網格",
  4923. _box, {
  4924. "id": "mindNetwork" + cid + stage + task + tool,
  4925. "style": {
  4926. "width": "90%",
  4927. "height": "90%",
  4928. "overflow": 'hidden'
  4929. },
  4930. "onresize": function () { }
  4931. }, {
  4932. closecallback: function () { }
  4933. }, {
  4934. "style": {
  4935. "height": "36px"
  4936. }
  4937. }).form; //創建窗體
  4938. _taskbar = {
  4939. "id": str + _formdiv.id,
  4940. "style": {
  4941. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4942. },
  4943. "name": "思維網格",
  4944. "forms": _formdiv,
  4945. "click": function() {
  4946. U.MD.D.I.openApplication(str, obj, info);
  4947. }
  4948. }
  4949. break;
  4950. case "courseDesign":
  4951. _iframe = $$("iframe", {
  4952. "webkitallowfullscreen": "",
  4953. "mozallowfullscreen": "",
  4954. "allowfullscreen": "",
  4955. "frameborder": "no",
  4956. "border": "0",
  4957. "scrolling ": "no",
  4958. "style": {
  4959. "cssText": "border:0; width:100%; height:100%;"
  4960. },
  4961. "src": "/course-design-vue"
  4962. })
  4963. _box.appendChild(_iframe);
  4964. _box.appendChild(_jie);
  4965. _formdiv = new U.UF.UI.form(
  4966. "項目設計",
  4967. _box, {
  4968. "id": "courseDesign" + cid + stage + task + tool,
  4969. "style": {
  4970. "width": "90%",
  4971. "height": "90%",
  4972. "overflow": 'hidden'
  4973. },
  4974. "onresize": function () { }
  4975. }, {
  4976. closecallback: function () { }
  4977. }, {
  4978. "style": {
  4979. "height": "36px"
  4980. }
  4981. }).form; //創建窗體
  4982. _taskbar = {
  4983. "id": str + _formdiv.id,
  4984. "style": {
  4985. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4986. },
  4987. "name": "項目設計",
  4988. "forms": _formdiv,
  4989. "click": function() {
  4990. U.MD.D.I.openApplication(str, obj, info);
  4991. }
  4992. }
  4993. break;
  4994. }
  4995. const script1 = document.createElement("script");
  4996. script1.type = "text/javascript";
  4997. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4998. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  4999. const script2 = document.createElement("script");
  5000. script2.type = "text/javascript";
  5001. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5002. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5003. const script3 = document.createElement("script");
  5004. script3.type = "text/javascript";
  5005. script3.charset = "UTF-8";
  5006. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5007. const script4 = document.createElement("script");
  5008. script4.type = "text/javascript";
  5009. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5010. script4.src = window.origin + "/js/Common/jietu2E.js";
  5011. if (_iframe) {
  5012. if (str == 'doc') {
  5013. _iframe = _formdiv.querySelector('iframe')
  5014. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5015. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5016. _iframe.contentWindow.document.body.appendChild(script1);
  5017. _iframe.contentWindow.document.body.appendChild(script2);
  5018. // _iframe.contentWindow.document.body.appendChild(script3);
  5019. _iframe.contentWindow.document.body.appendChild(script4);
  5020. })
  5021. if (onloadListener) {
  5022. _iframe.contentDocument.location.reload()
  5023. } else {
  5024. _iframe.contentDocument.location.reload()
  5025. }
  5026. } else if (str == 'courseDesign') {
  5027. U.UF.DL.iframeLoad(_iframe, function() {
  5028. // _iframe.contentWindow.U.MD.O.W.load();
  5029. // _iframe.contentWindow.document.body.appendChild(script1);
  5030. _iframe.contentWindow.document.body.appendChild(script2);
  5031. _iframe.contentWindow.document.body.appendChild(script4);
  5032. })
  5033. } else if (str == 'mind') {
  5034. _iframe = _formdiv.querySelector('iframe')
  5035. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5036. //
  5037. _iframe.contentWindow.document.body.appendChild(script1);
  5038. _iframe.contentWindow.document.body.appendChild(script2);
  5039. _iframe.contentWindow.document.body.appendChild(script4);
  5040. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5041. })
  5042. if (onloadListener) {
  5043. _iframe.contentDocument.location.reload()
  5044. } else {
  5045. _iframe.contentDocument.location.reload()
  5046. }
  5047. } else if (str == 'whiteboard') {
  5048. _iframe = _formdiv.querySelector('iframe')
  5049. let onloadListener = _iframe.onload = () => {
  5050. _iframe.contentWindow.document.body.appendChild(script1);
  5051. _iframe.contentWindow.document.body.appendChild(script2);
  5052. _iframe.contentWindow.document.body.appendChild(script4);
  5053. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5054. };
  5055. if (onloadListener) {
  5056. _iframe.contentDocument.location.reload()
  5057. } else {
  5058. _iframe.contentDocument.location.reload()
  5059. }
  5060. } else {
  5061. _iframe.onload = () => {
  5062. _iframe.contentWindow.document.body.appendChild(script1);
  5063. _iframe.contentWindow.document.body.appendChild(script2);
  5064. // _iframe.contentWindow.document.body.appendChild(script3);
  5065. _iframe.contentWindow.document.body.appendChild(script4);
  5066. };
  5067. }
  5068. _jie.onclick = async() => {
  5069. let text = ''
  5070. if (aTool == 1) {
  5071. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5072. } else if (aTool == 6) {
  5073. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5074. } else if (aTool == 3) {
  5075. text = await U.MD.D.I.getEditorContent(_iframe);
  5076. }
  5077. _loading.style.display = 'flex'
  5078. console.log(_loading);
  5079. var _ajs = _iframe.contentWindow.document.createElement("script");
  5080. _ajs.type = "text/javascript";
  5081. _ajs.innerHTML =
  5082. // 'console.log(' + _loading + ');\n' +
  5083. 'var _js = document.createElement("script");\n' +
  5084. '_js.type="text/javascript";\n' +
  5085. '_js.charset="UTF-8";\n' +
  5086. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5087. "_js.onload = function(){\n" +
  5088. ' var a = document.getElementsByTagName("img")\n' +
  5089. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5090. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5091. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5092. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5093. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5094. "beforeUpload_shishi(file," +
  5095. "'" +
  5096. _userid +
  5097. "'" +
  5098. ", " +
  5099. "'" +
  5100. _cid +
  5101. "'" +
  5102. ", " +
  5103. "'" +
  5104. _stage +
  5105. "'" +
  5106. ", " +
  5107. "'" +
  5108. _task +
  5109. "'" +
  5110. ", " +
  5111. "'" +
  5112. _tool +
  5113. "'" +
  5114. ", " +
  5115. "'" +
  5116. (str + '_loadLi_JieE' + cid + stage + task + tool + _userid) +
  5117. "'" +
  5118. ", " +
  5119. "'" +
  5120. aTool +
  5121. "'" +
  5122. ", " +
  5123. "`" +
  5124. text +
  5125. "`" +
  5126. ")\n" +
  5127. " });\n" +
  5128. "}\n" +
  5129. "document.head.appendChild(_js);\n";
  5130. _iframe.contentWindow.document.head.appendChild(_ajs);
  5131. }
  5132. }
  5133. //U.MD.D.I.openClick(str);
  5134. //如果有任務欄信息
  5135. // if (_taskbar) {
  5136. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  5137. // }
  5138. }
  5139. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  5140. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5141. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5142. _userid = student.userid, //登錄用戶id
  5143. _username = student.student //用戶名字
  5144. let _iframe;
  5145. let _cid = cid,
  5146. _stage = stage,
  5147. _task = task,
  5148. _tool = tool;
  5149. var _jie = $$("div", {
  5150. "style": {
  5151. "position": "absolute",
  5152. "bottom": "50px",
  5153. "right": "50px",
  5154. "zIndex": "9999",
  5155. "backgroundColor": "#2268bc",
  5156. "color": "#fff",
  5157. "padding": "12px 20px",
  5158. "cursor": "pointer",
  5159. "borderRadius": "4px",
  5160. },
  5161. "innerHTML": "提交作業"
  5162. })
  5163. let aTool = ''
  5164. let _loading = document.createElement('div')
  5165. _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;"
  5166. // _loading.id = "";
  5167. let _lchild = document.createElement('div')
  5168. let _limg = document.createElement('img')
  5169. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5170. _limg.style = "width: 26px;margin-right: 10px;"
  5171. _lchild.appendChild(_limg)
  5172. let _lspan = document.createElement('span')
  5173. _lspan.innerHTML = "上傳中..."
  5174. _lchild.appendChild(_lspan)
  5175. _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%);"
  5176. _loading.appendChild(_lchild)
  5177. var _box = $$('div', {
  5178. "style": {
  5179. "position": "relative",
  5180. "width": "100%",
  5181. "height": "100%",
  5182. },
  5183. })
  5184. _box.appendChild(_loading)
  5185. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid
  5186. switch (str) {
  5187. case "whiteboard":
  5188. aTool = 1;
  5189. _iframe = $$("iframe", {
  5190. "frameborder": "no",
  5191. "border": "0",
  5192. "scrolling ": "no",
  5193. "style": {
  5194. "cssText": "border:0;width:100%;height:100%"
  5195. },
  5196. "src": "https://iwb.cocorobo.hk/"
  5197. })
  5198. _box.appendChild(_iframe);
  5199. _box.appendChild(_jie);
  5200. _formdiv = new U.UF.UI.form(
  5201. "電子白板-" + _username,
  5202. _box, {
  5203. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5204. "style": {
  5205. "width": "90%",
  5206. "height": "90%",
  5207. "overflow": 'hidden'
  5208. },
  5209. "onresize": function () { }
  5210. }, {
  5211. closecallback: function () { }
  5212. }, {
  5213. "style": {
  5214. "height": "36px"
  5215. }
  5216. }).form; //創建窗體
  5217. _taskbar = {
  5218. "id": str + _formdiv.id,
  5219. "style": {
  5220. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5221. },
  5222. "name": "電子白板",
  5223. "forms": _formdiv,
  5224. "click": function() {
  5225. U.MD.D.I.openApplication(str, obj, info);
  5226. }
  5227. }
  5228. break;
  5229. case "mind":
  5230. aTool = 3;
  5231. _iframe = $$("iframe", {
  5232. "frameborder": "no",
  5233. "border": "0",
  5234. "scrolling ": "no",
  5235. "style": {
  5236. "cssText": "border:0;width:100%;height:100%"
  5237. },
  5238. "src": "/kityminder-editor/dist/index.html"
  5239. })
  5240. _box.appendChild(_iframe);
  5241. _box.appendChild(_jie);
  5242. _formdiv = new U.UF.UI.form(
  5243. "思維導圖-" + _username,
  5244. _box, { //"/jsmind/example/demo.html"
  5245. "id": "mind" + cid + stage + task + tool + _userid,
  5246. "style": {
  5247. "width": "90%",
  5248. "height": "90%",
  5249. "overflow": 'hidden'
  5250. },
  5251. "onresize": function () { }
  5252. }, {
  5253. closecallback: function () { }
  5254. }, {
  5255. "style": {
  5256. "height": "36px"
  5257. }
  5258. }).form; //創建窗體
  5259. _taskbar = {
  5260. "id": str + _formdiv.id,
  5261. "style": {
  5262. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5263. },
  5264. "name": "思維導圖",
  5265. "forms": _formdiv,
  5266. "click": function() {
  5267. U.MD.D.I.openApplication(str, obj, info);
  5268. }
  5269. }
  5270. break;
  5271. case "MindMap":
  5272. aTool = 3;
  5273. _iframe = $$("iframe", {
  5274. "frameborder": "no",
  5275. "border": "0",
  5276. "scrolling ": "no",
  5277. "style": {
  5278. "cssText": "border:0;width:100%;height:100%"
  5279. },
  5280. "src": "//cloud.cocorobo.hk/mind/"
  5281. })
  5282. _box.appendChild(_iframe);
  5283. _box.appendChild(_jie);
  5284. _formdiv = new U.UF.UI.form(
  5285. "思維導圖-" + _username,
  5286. _box, { //"/jsmind/example/demo.html"
  5287. "id": "mind" + cid + stage + task + tool + _userid,
  5288. "style": {
  5289. "width": "90%",
  5290. "height": "90%",
  5291. "overflow": 'hidden'
  5292. },
  5293. "onresize": function () { }
  5294. }, {
  5295. closecallback: function () { }
  5296. }, {
  5297. "style": {
  5298. "height": "36px"
  5299. }
  5300. }).form; //創建窗體
  5301. _taskbar = {
  5302. "id": str + _formdiv.id,
  5303. "style": {
  5304. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5305. },
  5306. "name": "思維導圖",
  5307. "forms": _formdiv,
  5308. "click": function() {
  5309. U.MD.D.I.openApplication(str, obj, info);
  5310. }
  5311. }
  5312. break;
  5313. case "doc":
  5314. aTool = 6;
  5315. _iframe = $$("iframe", {
  5316. "frameborder": "no",
  5317. "border": "0",
  5318. "scrolling ": "no",
  5319. "style": {
  5320. "cssText": "border:0;width:100%;height:100%"
  5321. },
  5322. "src": "/Office/Word/WordEditArea.htm"
  5323. })
  5324. _box.appendChild(_iframe);
  5325. _box.appendChild(_jie);
  5326. _formdiv = new U.UF.UI.form(
  5327. "協同文檔-" + _username,
  5328. _box, {
  5329. "id": "doc" + cid + stage + task + tool + _userid,
  5330. "style": {
  5331. "width": "90%",
  5332. "height": "90%",
  5333. "overflow": 'hidden'
  5334. },
  5335. "onresize": function () { }
  5336. }, {
  5337. closecallback: function () { }
  5338. }, {
  5339. "style": {
  5340. "height": "36px"
  5341. }
  5342. }).form; //創建窗體
  5343. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  5344. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5345. })
  5346. _taskbar = {
  5347. "id": str + _formdiv.id,
  5348. "style": {
  5349. "backgroundImage": "url(/img/icon/doc.png)"
  5350. },
  5351. "name": "協同文檔",
  5352. "forms": _formdiv,
  5353. "click": function() {
  5354. U.MD.D.I.openApplication(str, obj, info);
  5355. }
  5356. }
  5357. break;
  5358. case "mindNetwork": //好友打開
  5359. aTool = 7;
  5360. _iframe = $$("iframe", {
  5361. "webkitallowfullscreen": "",
  5362. "mozallowfullscreen": "",
  5363. "allowfullscreen": "",
  5364. "frameborder": "no",
  5365. "border": "0",
  5366. "scrolling ": "no",
  5367. "style": {
  5368. "cssText": "border:0; width:100%; height:100%;"
  5369. },
  5370. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5371. })
  5372. _box.appendChild(_iframe);
  5373. _box.appendChild(_jie);
  5374. _formdiv = new U.UF.UI.form(
  5375. "思維網格-" + _username,
  5376. _box, {
  5377. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5378. "style": {
  5379. "width": "90%",
  5380. "height": "90%",
  5381. "overflow": 'hidden'
  5382. },
  5383. "onresize": function () { }
  5384. }, {
  5385. closecallback: function () { }
  5386. }, {
  5387. "style": {
  5388. "height": "36px"
  5389. }
  5390. }).form; //創建窗體
  5391. _taskbar = {
  5392. "id": str + _formdiv.id,
  5393. "style": {
  5394. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5395. },
  5396. "name": "思維網格",
  5397. "forms": _formdiv,
  5398. "click": function() {
  5399. U.MD.D.I.openApplication(str, obj, info);
  5400. }
  5401. }
  5402. break;
  5403. case "courseDesign":
  5404. _iframe = $$("iframe", {
  5405. "webkitallowfullscreen": "",
  5406. "mozallowfullscreen": "",
  5407. "allowfullscreen": "",
  5408. "frameborder": "no",
  5409. "border": "0",
  5410. "scrolling ": "no",
  5411. "style": {
  5412. "cssText": "border:0; width:100%; height:100%;"
  5413. },
  5414. "src": "/course-design-vue"
  5415. })
  5416. _box.appendChild(_iframe);
  5417. _box.appendChild(_jie);
  5418. _formdiv = new U.UF.UI.form(
  5419. "項目設計-" + _username,
  5420. _box, {
  5421. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5422. "style": {
  5423. "width": "90%",
  5424. "height": "90%",
  5425. "overflow": 'hidden'
  5426. },
  5427. "onresize": function () { }
  5428. }, {
  5429. closecallback: function () { }
  5430. }, {
  5431. "style": {
  5432. "height": "36px"
  5433. }
  5434. }).form; //創建窗體
  5435. _taskbar = {
  5436. "id": str + _formdiv.id,
  5437. "style": {
  5438. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5439. },
  5440. "name": "項目設計",
  5441. "forms": _formdiv,
  5442. "click": function() {
  5443. U.MD.D.I.openApplication(str, obj, info);
  5444. }
  5445. }
  5446. break;
  5447. }
  5448. const script1 = document.createElement("script");
  5449. script1.type = "text/javascript";
  5450. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5451. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5452. const script2 = document.createElement("script");
  5453. script2.type = "text/javascript";
  5454. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5455. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5456. const script3 = document.createElement("script");
  5457. script3.type = "text/javascript";
  5458. script3.charset = "UTF-8";
  5459. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5460. const script4 = document.createElement("script");
  5461. script4.type = "text/javascript";
  5462. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5463. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu2.js";
  5464. if (_iframe) {
  5465. if (str == 'doc') {
  5466. _iframe = _formdiv.querySelector('iframe')
  5467. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5468. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5469. _iframe.contentWindow.document.body.appendChild(script1);
  5470. _iframe.contentWindow.document.body.appendChild(script2);
  5471. // _iframe.contentWindow.document.body.appendChild(script3);
  5472. _iframe.contentWindow.document.body.appendChild(script4);
  5473. })
  5474. if (onloadListener) {
  5475. _iframe.contentDocument.location.reload()
  5476. } else {
  5477. _iframe.contentDocument.location.reload()
  5478. }
  5479. } else if (str == 'courseDesign') {
  5480. U.UF.DL.iframeLoad(_iframe, function() {
  5481. // _iframe.contentWindow.U.MD.O.W.load();
  5482. // _iframe.contentWindow.document.body.appendChild(script1);
  5483. _iframe.contentWindow.document.body.appendChild(script2);
  5484. _iframe.contentWindow.document.body.appendChild(script4);
  5485. })
  5486. } else if (str == 'mind') {
  5487. _iframe = _formdiv.querySelector('iframe')
  5488. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5489. //
  5490. _iframe.contentWindow.document.body.appendChild(script1);
  5491. _iframe.contentWindow.document.body.appendChild(script2);
  5492. _iframe.contentWindow.document.body.appendChild(script4);
  5493. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5494. })
  5495. if (onloadListener) {
  5496. _iframe.contentDocument.location.reload()
  5497. } else {
  5498. _iframe.contentDocument.location.reload()
  5499. }
  5500. } else if (str == 'whiteboard') {
  5501. _iframe = _formdiv.querySelector('iframe')
  5502. let onloadListener = _iframe.onload = () => {
  5503. _iframe.contentWindow.document.body.appendChild(script1);
  5504. _iframe.contentWindow.document.body.appendChild(script2);
  5505. _iframe.contentWindow.document.body.appendChild(script4);
  5506. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5507. };
  5508. if (onloadListener) {
  5509. _iframe.contentDocument.location.reload()
  5510. } else {
  5511. _iframe.contentDocument.location.reload()
  5512. }
  5513. } else {
  5514. _iframe.onload = () => {
  5515. _iframe.contentWindow.document.body.appendChild(script1);
  5516. _iframe.contentWindow.document.body.appendChild(script2);
  5517. // _iframe.contentWindow.document.body.appendChild(script3);
  5518. _iframe.contentWindow.document.body.appendChild(script4);
  5519. };
  5520. }
  5521. _jie.onclick = async() => {
  5522. let text = ''
  5523. if (aTool == 1) {
  5524. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5525. } else if (aTool == 6) {
  5526. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5527. } else if (aTool == 3) {
  5528. text = await U.MD.D.I.getEditorContent(_iframe);
  5529. }
  5530. _loading.style.display = 'flex'
  5531. console.log(_loading);
  5532. var _ajs = _iframe.contentWindow.document.createElement("script");
  5533. _ajs.type = "text/javascript";
  5534. _ajs.innerHTML =
  5535. // 'console.log(' + _loading + ');\n' +
  5536. 'var _js = document.createElement("script");\n' +
  5537. '_js.type="text/javascript";\n' +
  5538. '_js.charset="UTF-8";\n' +
  5539. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5540. "_js.onload = function(){\n" +
  5541. ' var a = document.getElementsByTagName("img")\n' +
  5542. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5543. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5544. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5545. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5546. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5547. "beforeUpload_shishi(file," +
  5548. "'" +
  5549. _userid +
  5550. "'" +
  5551. ", " +
  5552. "'" +
  5553. _cid +
  5554. "'" +
  5555. ", " +
  5556. "'" +
  5557. _stage +
  5558. "'" +
  5559. ", " +
  5560. "'" +
  5561. _task +
  5562. "'" +
  5563. ", " +
  5564. "'" +
  5565. _tool +
  5566. "'" +
  5567. ", " +
  5568. "'" +
  5569. (str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid) +
  5570. "'" +
  5571. ", " +
  5572. "'" +
  5573. aTool +
  5574. "'" +
  5575. ", " +
  5576. "`" +
  5577. text +
  5578. "`" +
  5579. ")\n" +
  5580. " });\n" +
  5581. "}\n" +
  5582. "document.head.appendChild(_js);\n";
  5583. _iframe.contentWindow.document.head.appendChild(_ajs);
  5584. }
  5585. }
  5586. }
  5587. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5588. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  5589. _formdiv, //創建任務欄時同時彈出的窗體元素。
  5590. _userid = student.userid, //登錄用戶id
  5591. _username = student.student //用戶名字
  5592. let _iframe;
  5593. let _cid = cid,
  5594. _stage = stage,
  5595. _task = task,
  5596. _tool = tool;
  5597. var _jie = $$("div", {
  5598. "style": {
  5599. "position": "absolute",
  5600. "bottom": "50px",
  5601. "right": "50px",
  5602. "zIndex": "9999",
  5603. "backgroundColor": "#2268bc",
  5604. "color": "#fff",
  5605. "padding": "12px 20px",
  5606. "cursor": "pointer",
  5607. "borderRadius": "4px",
  5608. },
  5609. "innerHTML": "提交作業"
  5610. })
  5611. let aTool = ''
  5612. let _loading = document.createElement('div')
  5613. _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;"
  5614. // _loading.id = "";
  5615. let _lchild = document.createElement('div')
  5616. let _limg = document.createElement('img')
  5617. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5618. _limg.style = "width: 26px;margin-right: 10px;"
  5619. _lchild.appendChild(_limg)
  5620. let _lspan = document.createElement('span')
  5621. _lspan.innerHTML = "上傳中..."
  5622. _lchild.appendChild(_lspan)
  5623. _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%);"
  5624. _loading.appendChild(_lchild)
  5625. var _box = $$('div', {
  5626. "style": {
  5627. "position": "relative",
  5628. "width": "100%",
  5629. "height": "100%",
  5630. },
  5631. })
  5632. _box.appendChild(_loading)
  5633. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5634. switch (str) {
  5635. case "whiteboard":
  5636. aTool = 1;
  5637. _iframe = $$("iframe", {
  5638. "frameborder": "no",
  5639. "border": "0",
  5640. "scrolling ": "no",
  5641. "style": {
  5642. "cssText": "border:0;width:100%;height:100%"
  5643. },
  5644. "src": "https://iwb.cocorobo.hk/"
  5645. })
  5646. _box.appendChild(_iframe);
  5647. _box.appendChild(_jie);
  5648. _formdiv = new U.UF.UI.form(
  5649. "電子白板-" + _username,
  5650. _box, {
  5651. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5652. "style": {
  5653. "width": "90%",
  5654. "height": "90%",
  5655. "overflow": 'hidden'
  5656. },
  5657. "onresize": function () { }
  5658. }, {
  5659. closecallback: function () { }
  5660. }, {
  5661. "style": {
  5662. "height": "36px"
  5663. }
  5664. }).form; //創建窗體
  5665. _taskbar = {
  5666. "id": str + _formdiv.id,
  5667. "style": {
  5668. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5669. },
  5670. "name": "電子白板",
  5671. "forms": _formdiv,
  5672. "click": function() {
  5673. U.MD.D.I.openApplication(str, obj, info);
  5674. }
  5675. }
  5676. break;
  5677. case "mind":
  5678. aTool = 3;
  5679. _iframe = $$("iframe", {
  5680. "frameborder": "no",
  5681. "border": "0",
  5682. "scrolling ": "no",
  5683. "style": {
  5684. "cssText": "border:0;width:100%;height:100%"
  5685. },
  5686. "src": "/kityminder-editor/dist/index.html"
  5687. })
  5688. _box.appendChild(_iframe);
  5689. _box.appendChild(_jie);
  5690. _formdiv = new U.UF.UI.form(
  5691. "思維導圖-" + _username,
  5692. _box, { //"/jsmind/example/demo.html"
  5693. "id": "mind" + cid + stage + task + tool + _userid,
  5694. "style": {
  5695. "width": "90%",
  5696. "height": "90%",
  5697. "overflow": 'hidden'
  5698. },
  5699. "onresize": function () { }
  5700. }, {
  5701. closecallback: function () { }
  5702. }, {
  5703. "style": {
  5704. "height": "36px"
  5705. }
  5706. }).form; //創建窗體
  5707. _taskbar = {
  5708. "id": str + _formdiv.id,
  5709. "style": {
  5710. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5711. },
  5712. "name": "思維導圖",
  5713. "forms": _formdiv,
  5714. "click": function() {
  5715. U.MD.D.I.openApplication(str, obj, info);
  5716. }
  5717. }
  5718. break;
  5719. case "MindMap":
  5720. aTool = 3;
  5721. _iframe = $$("iframe", {
  5722. "frameborder": "no",
  5723. "border": "0",
  5724. "scrolling ": "no",
  5725. "style": {
  5726. "cssText": "border:0;width:100%;height:100%"
  5727. },
  5728. "src": "//cloud.cocorobo.hk/mind/"
  5729. })
  5730. _box.appendChild(_iframe);
  5731. _box.appendChild(_jie);
  5732. _formdiv = new U.UF.UI.form(
  5733. "思維導圖-" + _username,
  5734. _box, { //"/jsmind/example/demo.html"
  5735. "id": "mind" + cid + stage + task + tool + _userid,
  5736. "style": {
  5737. "width": "90%",
  5738. "height": "90%",
  5739. "overflow": 'hidden'
  5740. },
  5741. "onresize": function () { }
  5742. }, {
  5743. closecallback: function () { }
  5744. }, {
  5745. "style": {
  5746. "height": "36px"
  5747. }
  5748. }).form; //創建窗體
  5749. _taskbar = {
  5750. "id": str + _formdiv.id,
  5751. "style": {
  5752. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5753. },
  5754. "name": "思維導圖",
  5755. "forms": _formdiv,
  5756. "click": function() {
  5757. U.MD.D.I.openApplication(str, obj, info);
  5758. }
  5759. }
  5760. break;
  5761. case "doc":
  5762. aTool = 6;
  5763. _iframe = $$("iframe", {
  5764. "frameborder": "no",
  5765. "border": "0",
  5766. "scrolling ": "no",
  5767. "style": {
  5768. "cssText": "border:0;width:100%;height:100%"
  5769. },
  5770. "src": "/Office/Word/WordEditArea.htm"
  5771. })
  5772. _box.appendChild(_iframe);
  5773. _box.appendChild(_jie);
  5774. _formdiv = new U.UF.UI.form(
  5775. "協同文檔-" + _username,
  5776. _box, {
  5777. "id": "doc" + cid + stage + task + tool + _userid,
  5778. "style": {
  5779. "width": "90%",
  5780. "height": "90%",
  5781. "overflow": 'hidden'
  5782. },
  5783. "onresize": function () { }
  5784. }, {
  5785. closecallback: function () { }
  5786. }, {
  5787. "style": {
  5788. "height": "36px"
  5789. }
  5790. }).form; //創建窗體
  5791. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  5792. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5793. })
  5794. _taskbar = {
  5795. "id": str + _formdiv.id,
  5796. "style": {
  5797. "backgroundImage": "url(/img/icon/doc.png)"
  5798. },
  5799. "name": "協同文檔",
  5800. "forms": _formdiv,
  5801. "click": function() {
  5802. U.MD.D.I.openApplication(str, obj, info);
  5803. }
  5804. }
  5805. break;
  5806. case "mindNetwork": //好友打開
  5807. aTool = 7;
  5808. _iframe = $$("iframe", {
  5809. "webkitallowfullscreen": "",
  5810. "mozallowfullscreen": "",
  5811. "allowfullscreen": "",
  5812. "frameborder": "no",
  5813. "border": "0",
  5814. "scrolling ": "no",
  5815. "style": {
  5816. "cssText": "border:0; width:100%; height:100%;"
  5817. },
  5818. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5819. })
  5820. _box.appendChild(_iframe);
  5821. _box.appendChild(_jie);
  5822. _formdiv = new U.UF.UI.form(
  5823. "思維網格-" + _username,
  5824. _box, {
  5825. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5826. "style": {
  5827. "width": "90%",
  5828. "height": "90%",
  5829. "overflow": 'hidden'
  5830. },
  5831. "onresize": function () { }
  5832. }, {
  5833. closecallback: function () { }
  5834. }, {
  5835. "style": {
  5836. "height": "36px"
  5837. }
  5838. }).form; //創建窗體
  5839. _taskbar = {
  5840. "id": str + _formdiv.id,
  5841. "style": {
  5842. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5843. },
  5844. "name": "思維網格",
  5845. "forms": _formdiv,
  5846. "click": function() {
  5847. U.MD.D.I.openApplication(str, obj, info);
  5848. }
  5849. }
  5850. break;
  5851. case "courseDesign":
  5852. _iframe = $$("iframe", {
  5853. "webkitallowfullscreen": "",
  5854. "mozallowfullscreen": "",
  5855. "allowfullscreen": "",
  5856. "frameborder": "no",
  5857. "border": "0",
  5858. "scrolling ": "no",
  5859. "style": {
  5860. "cssText": "border:0; width:100%; height:100%;"
  5861. },
  5862. "src": "/course-design-vue"
  5863. })
  5864. _box.appendChild(_iframe);
  5865. _box.appendChild(_jie);
  5866. _formdiv = new U.UF.UI.form(
  5867. "項目設計-" + _username,
  5868. _box, {
  5869. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5870. "style": {
  5871. "width": "90%",
  5872. "height": "90%",
  5873. "overflow": 'hidden'
  5874. },
  5875. "onresize": function () { }
  5876. }, {
  5877. closecallback: function () { }
  5878. }, {
  5879. "style": {
  5880. "height": "36px"
  5881. }
  5882. }).form; //創建窗體
  5883. _taskbar = {
  5884. "id": str + _formdiv.id,
  5885. "style": {
  5886. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5887. },
  5888. "name": "項目設計",
  5889. "forms": _formdiv,
  5890. "click": function() {
  5891. U.MD.D.I.openApplication(str, obj, info);
  5892. }
  5893. }
  5894. break;
  5895. }
  5896. const script1 = document.createElement("script");
  5897. script1.type = "text/javascript";
  5898. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5899. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  5900. const script2 = document.createElement("script");
  5901. script2.type = "text/javascript";
  5902. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5903. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  5904. const script3 = document.createElement("script");
  5905. script3.type = "text/javascript";
  5906. script3.charset = "UTF-8";
  5907. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  5908. const script4 = document.createElement("script");
  5909. script4.type = "text/javascript";
  5910. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5911. script4.src = window.origin + "/js/Common/jietu2E.js";
  5912. if (_iframe) {
  5913. if (str == 'doc') {
  5914. _iframe = _formdiv.querySelector('iframe')
  5915. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5916. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5917. _iframe.contentWindow.document.body.appendChild(script1);
  5918. _iframe.contentWindow.document.body.appendChild(script2);
  5919. // _iframe.contentWindow.document.body.appendChild(script3);
  5920. _iframe.contentWindow.document.body.appendChild(script4);
  5921. })
  5922. if (onloadListener) {
  5923. _iframe.contentDocument.location.reload()
  5924. } else {
  5925. _iframe.contentDocument.location.reload()
  5926. }
  5927. } else if (str == 'courseDesign') {
  5928. U.UF.DL.iframeLoad(_iframe, function() {
  5929. // _iframe.contentWindow.U.MD.O.W.load();
  5930. // _iframe.contentWindow.document.body.appendChild(script1);
  5931. _iframe.contentWindow.document.body.appendChild(script2);
  5932. _iframe.contentWindow.document.body.appendChild(script4);
  5933. })
  5934. } else if (str == 'mind') {
  5935. _iframe = _formdiv.querySelector('iframe')
  5936. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5937. //
  5938. _iframe.contentWindow.document.body.appendChild(script1);
  5939. _iframe.contentWindow.document.body.appendChild(script2);
  5940. _iframe.contentWindow.document.body.appendChild(script4);
  5941. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5942. })
  5943. if (onloadListener) {
  5944. _iframe.contentDocument.location.reload()
  5945. } else {
  5946. _iframe.contentDocument.location.reload()
  5947. }
  5948. } else if (str == 'whiteboard') {
  5949. _iframe = _formdiv.querySelector('iframe')
  5950. let onloadListener = _iframe.onload = () => {
  5951. _iframe.contentWindow.document.body.appendChild(script1);
  5952. _iframe.contentWindow.document.body.appendChild(script2);
  5953. _iframe.contentWindow.document.body.appendChild(script4);
  5954. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5955. };
  5956. if (onloadListener) {
  5957. _iframe.contentDocument.location.reload()
  5958. } else {
  5959. _iframe.contentDocument.location.reload()
  5960. }
  5961. } else {
  5962. _iframe.onload = () => {
  5963. _iframe.contentWindow.document.body.appendChild(script1);
  5964. _iframe.contentWindow.document.body.appendChild(script2);
  5965. // _iframe.contentWindow.document.body.appendChild(script3);
  5966. _iframe.contentWindow.document.body.appendChild(script4);
  5967. };
  5968. }
  5969. _jie.onclick = async() => {
  5970. let text = ''
  5971. if (aTool == 1) {
  5972. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5973. } else if (aTool == 6) {
  5974. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5975. } else if (aTool == 3) {
  5976. text = await U.MD.D.I.getEditorContent(_iframe);
  5977. }
  5978. _loading.style.display = 'flex'
  5979. console.log(_loading);
  5980. var _ajs = _iframe.contentWindow.document.createElement("script");
  5981. _ajs.type = "text/javascript";
  5982. _ajs.innerHTML =
  5983. // 'console.log(' + _loading + ');\n' +
  5984. 'var _js = document.createElement("script");\n' +
  5985. '_js.type="text/javascript";\n' +
  5986. '_js.charset="UTF-8";\n' +
  5987. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  5988. "_js.onload = function(){\n" +
  5989. ' var a = document.getElementsByTagName("img")\n' +
  5990. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5991. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5992. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5993. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5994. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  5995. "beforeUpload_shishi(file," +
  5996. "'" +
  5997. _userid +
  5998. "'" +
  5999. ", " +
  6000. "'" +
  6001. _cid +
  6002. "'" +
  6003. ", " +
  6004. "'" +
  6005. _stage +
  6006. "'" +
  6007. ", " +
  6008. "'" +
  6009. _task +
  6010. "'" +
  6011. ", " +
  6012. "'" +
  6013. _tool +
  6014. "'" +
  6015. ", " +
  6016. "'" +
  6017. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid) +
  6018. "'" +
  6019. ", " +
  6020. "'" +
  6021. aTool +
  6022. "'" +
  6023. ", " +
  6024. "`" +
  6025. text +
  6026. "`" +
  6027. ")\n" +
  6028. " });\n" +
  6029. "}\n" +
  6030. "document.head.appendChild(_js);\n";
  6031. _iframe.contentWindow.document.head.appendChild(_ajs);
  6032. }
  6033. }
  6034. }
  6035. U.MD.D.I.getEditorContent = function(iframe) {
  6036. return new Promise((resolve, reject) => {
  6037. iframe.contentWindow.editor.minder.exportData('json').then(function(content) {
  6038. console.log(content);
  6039. resolve(content)
  6040. });
  6041. });
  6042. }
  6043. U.MD.D.I.getContent = function(cid, s, task, t, uid, type, iframe) {
  6044. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  6045. // if (res.value[0].length > 0) {
  6046. // // resolve(res.value[0][0].text);
  6047. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  6048. // $(fileInput).val('');
  6049. // });
  6050. // }
  6051. // }, [], { "type": "GET", "withCredentials": true });
  6052. var xmlhttp;
  6053. var Mac, Sn, DeviceId
  6054. if (window.XMLHttpRequest) {
  6055. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6056. xmlhttp = new XMLHttpRequest();
  6057. }
  6058. else {
  6059. // IE6, IE5 瀏覽器執行代碼
  6060. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6061. }
  6062. xmlhttp.onreadystatechange = function() {
  6063. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6064. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6065. // resolve(res.value[0][0].text);
  6066. if (type == '2') {
  6067. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6068. } else if (type == '3') {
  6069. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6070. }
  6071. } else {
  6072. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  6073. }
  6074. }
  6075. }
  6076. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6077. xmlhttp.send();
  6078. }
  6079. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  6080. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6081. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6082. _userinfo = US.userInfo, //登錄用戶信息
  6083. _userid = US.userInfo.userid //登錄用戶id
  6084. let _iframe;
  6085. let _cid = cid,
  6086. _stage = stage,
  6087. _task = task,
  6088. _tool = tool;
  6089. var _jie = $$("div", {
  6090. "style": {
  6091. "position": "absolute",
  6092. "bottom": "50px",
  6093. "right": "50px",
  6094. "zIndex": "9999",
  6095. "backgroundColor": "#2268bc",
  6096. "color": "#fff",
  6097. "padding": "12px 20px",
  6098. "cursor": "pointer",
  6099. "borderRadius": "4px",
  6100. },
  6101. "innerHTML": "確認並提交"
  6102. })
  6103. let aTool = ''
  6104. let _loading = document.createElement('div')
  6105. _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;"
  6106. // _loading.id = "";
  6107. let _lchild = document.createElement('div')
  6108. let _limg = document.createElement('img')
  6109. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6110. _limg.style = "width: 26px;margin-right: 10px;"
  6111. _lchild.appendChild(_limg)
  6112. let _lspan = document.createElement('span')
  6113. _lspan.innerHTML = "上傳中..."
  6114. _lchild.appendChild(_lspan)
  6115. _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%);"
  6116. _loading.appendChild(_lchild)
  6117. var _box = $$('div', {
  6118. "style": {
  6119. "position": "relative",
  6120. "width": "100%",
  6121. "height": "100%",
  6122. },
  6123. })
  6124. _box.appendChild(_loading)
  6125. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool + _userid
  6126. switch (str) {
  6127. case "whiteboard":
  6128. aTool = 1;
  6129. _iframe = $$("iframe", {
  6130. "frameborder": "no",
  6131. "border": "0",
  6132. "scrolling ": "no",
  6133. "style": {
  6134. "cssText": "border:0;width:100%;height:100%"
  6135. },
  6136. "src": "https://iwb.cocorobo.hk/"
  6137. })
  6138. _box.appendChild(_iframe);
  6139. _box.appendChild(_jie);
  6140. _formdiv = new U.UF.UI.form(
  6141. "電子白板",
  6142. _box, {
  6143. "id": "whiteboards" + cid + stage + task + tool,
  6144. "style": {
  6145. "width": "90%",
  6146. "height": "90%",
  6147. "overflow": 'hidden'
  6148. },
  6149. "onresize": function () { }
  6150. }, {
  6151. closecallback: function () { }
  6152. }, {
  6153. "style": {
  6154. "height": "36px"
  6155. }
  6156. }).form; //創建窗體
  6157. _taskbar = {
  6158. "id": str + _formdiv.id,
  6159. "style": {
  6160. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6161. },
  6162. "name": "電子白板",
  6163. "forms": _formdiv,
  6164. "click": function() {
  6165. U.MD.D.I.openApplication(str, obj, info);
  6166. }
  6167. }
  6168. break;
  6169. case "mind":
  6170. aTool = 3;
  6171. _iframe = $$("iframe", {
  6172. "frameborder": "no",
  6173. "border": "0",
  6174. "scrolling ": "no",
  6175. "style": {
  6176. "cssText": "border:0;width:100%;height:100%"
  6177. },
  6178. "src": "/kityminder-editor/dist/index.html"
  6179. });
  6180. _box.appendChild(_iframe);
  6181. _box.appendChild(_jie);
  6182. _formdiv = new U.UF.UI.form(
  6183. "思維導圖",
  6184. _box, { //"/jsmind/example/demo.html"
  6185. "id": "minds" + cid + stage + task + tool,
  6186. "style": {
  6187. "width": "90%",
  6188. "height": "90%",
  6189. "overflow": 'hidden'
  6190. },
  6191. "onresize": function () { }
  6192. }, {
  6193. closecallback: function () { }
  6194. }, {
  6195. "style": {
  6196. "height": "36px"
  6197. }
  6198. }).form; //創建窗體
  6199. _taskbar = {
  6200. "id": str + _formdiv.id,
  6201. "style": {
  6202. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6203. },
  6204. "name": "思維導圖",
  6205. "forms": _formdiv,
  6206. "click": function() {
  6207. U.MD.D.I.openApplication(str, obj, info);
  6208. }
  6209. }
  6210. break;
  6211. case "doc":
  6212. aTool = 6;
  6213. _iframe = $$("iframe", {
  6214. "frameborder": "no",
  6215. "border": "0",
  6216. "scrolling ": "no",
  6217. "style": {
  6218. "cssText": "border:0;width:100%;height:100%"
  6219. },
  6220. "src": "/Office/Word/WordEditArea.htm"
  6221. })
  6222. _box.appendChild(_iframe);
  6223. _box.appendChild(_jie);
  6224. _formdiv = new U.UF.UI.form(
  6225. "協同文檔",
  6226. _box, {
  6227. "id": "docs" + cid + stage + task + tool,
  6228. "style": {
  6229. "width": "90%",
  6230. "height": "90%",
  6231. "overflow": 'hidden'
  6232. },
  6233. "onresize": function () { }
  6234. }, {
  6235. closecallback: function () { }
  6236. }, {
  6237. "style": {
  6238. "height": "36px"
  6239. }
  6240. }).form; //創建窗體
  6241. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6242. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6243. })
  6244. _taskbar = {
  6245. "id": str + _formdiv.id,
  6246. "style": {
  6247. "backgroundImage": "url(/img/icon/doc.png)"
  6248. },
  6249. "name": "協同文檔",
  6250. "forms": _formdiv,
  6251. "click": function() {
  6252. U.MD.D.I.openApplication(str, obj, info);
  6253. }
  6254. }
  6255. break;
  6256. }
  6257. const script1 = document.createElement("script");
  6258. script1.type = "text/javascript";
  6259. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6260. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6261. const script2 = document.createElement("script");
  6262. script2.type = "text/javascript";
  6263. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6264. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6265. const script3 = document.createElement("script");
  6266. script3.type = "text/javascript";
  6267. script3.charset = "UTF-8";
  6268. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6269. const script4 = document.createElement("script");
  6270. script4.type = "text/javascript";
  6271. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6272. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu4.js";
  6273. if (_iframe) {
  6274. if (str == 'doc') {
  6275. _iframe = _formdiv.querySelector('iframe')
  6276. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6277. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6278. _iframe.contentWindow.document.body.appendChild(script1);
  6279. _iframe.contentWindow.document.body.appendChild(script2);
  6280. // _iframe.contentWindow.document.body.appendChild(script3);
  6281. _iframe.contentWindow.document.body.appendChild(script4);
  6282. })
  6283. if (onloadListener) {
  6284. _iframe.contentDocument.location.reload()
  6285. } else {
  6286. _iframe.contentDocument.location.reload()
  6287. }
  6288. } else if (str == 'mind') {
  6289. _iframe = _formdiv.querySelector('iframe')
  6290. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6291. _iframe.contentWindow.document.body.appendChild(script1);
  6292. _iframe.contentWindow.document.body.appendChild(script2);
  6293. _iframe.contentWindow.document.body.appendChild(script4);
  6294. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6295. })
  6296. if (onloadListener) {
  6297. _iframe.contentDocument.location.reload()
  6298. } else {
  6299. _iframe.contentDocument.location.reload()
  6300. }
  6301. } else {
  6302. _iframe.onload = () => {
  6303. _iframe.contentWindow.document.body.appendChild(script1);
  6304. _iframe.contentWindow.document.body.appendChild(script2);
  6305. // _iframe.contentWindow.document.body.appendChild(script3);
  6306. _iframe.contentWindow.document.body.appendChild(script4);
  6307. };
  6308. }
  6309. _jie.onclick = async() => {
  6310. let text = ''
  6311. if (aTool == 6) {
  6312. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6313. } else if (aTool == 3) {
  6314. text = await U.MD.D.I.getEditorContent(_iframe);
  6315. }
  6316. _loading.style.display = 'flex'
  6317. console.log(_loading);
  6318. var _ajs = _iframe.contentWindow.document.createElement("script");
  6319. _ajs.type = "text/javascript";
  6320. _ajs.innerHTML =
  6321. // 'console.log(' + _loading + ');\n' +
  6322. 'var _js = document.createElement("script");\n' +
  6323. '_js.type="text/javascript";\n' +
  6324. '_js.charset="UTF-8";\n' +
  6325. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6326. "_js.onload = function(){\n" +
  6327. ' var a = document.getElementsByTagName("img")\n' +
  6328. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6329. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6330. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6331. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6332. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6333. "beforeUpload_shishi(file," +
  6334. "'" +
  6335. _userid +
  6336. "'" +
  6337. ", " +
  6338. "'" +
  6339. _cid +
  6340. "'" +
  6341. ", " +
  6342. "'" +
  6343. _stage +
  6344. "'" +
  6345. ", " +
  6346. "'" +
  6347. _task +
  6348. "'" +
  6349. ", " +
  6350. "'" +
  6351. _tool +
  6352. "'" +
  6353. ", " +
  6354. "'" +
  6355. (str + '_loadLi_JieS' + cid + stage + task + tool + _userid) +
  6356. "'" +
  6357. ", " +
  6358. "'" +
  6359. aTool +
  6360. "'" +
  6361. ", " +
  6362. "`" +
  6363. text +
  6364. "`" +
  6365. ")\n" +
  6366. " });\n" +
  6367. "}\n" +
  6368. "document.head.appendChild(_js);\n";
  6369. _iframe.contentWindow.document.head.appendChild(_ajs);
  6370. }
  6371. }
  6372. //U.MD.D.I.openClick(str);
  6373. //如果有任務欄信息
  6374. // if (_taskbar) {
  6375. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6376. // }
  6377. }
  6378. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  6379. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6380. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6381. _userinfo = US.userInfo, //登錄用戶信息
  6382. _userid = US.userInfo.userid //登錄用戶id
  6383. let _iframe;
  6384. let _cid = cid,
  6385. _stage = stage,
  6386. _task = task,
  6387. _tool = tool;
  6388. var _jie = $$("div", {
  6389. "style": {
  6390. "position": "absolute",
  6391. "bottom": "50px",
  6392. "right": "50px",
  6393. "zIndex": "9999",
  6394. "backgroundColor": "#2268bc",
  6395. "color": "#fff",
  6396. "padding": "12px 20px",
  6397. "cursor": "pointer",
  6398. "borderRadius": "4px",
  6399. },
  6400. "innerHTML": "確認並提交"
  6401. })
  6402. let aTool = ''
  6403. let _loading = document.createElement('div')
  6404. _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;"
  6405. // _loading.id = "";
  6406. let _lchild = document.createElement('div')
  6407. let _limg = document.createElement('img')
  6408. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6409. _limg.style = "width: 26px;margin-right: 10px;"
  6410. _lchild.appendChild(_limg)
  6411. let _lspan = document.createElement('span')
  6412. _lspan.innerHTML = "上傳中..."
  6413. _lchild.appendChild(_lspan)
  6414. _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%);"
  6415. _loading.appendChild(_lchild)
  6416. var _box = $$('div', {
  6417. "style": {
  6418. "position": "relative",
  6419. "width": "100%",
  6420. "height": "100%",
  6421. },
  6422. })
  6423. _box.appendChild(_loading)
  6424. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid
  6425. switch (str) {
  6426. case "whiteboard":
  6427. aTool = 1;
  6428. _iframe = $$("iframe", {
  6429. "frameborder": "no",
  6430. "border": "0",
  6431. "scrolling ": "no",
  6432. "style": {
  6433. "cssText": "border:0;width:100%;height:100%"
  6434. },
  6435. "src": "https://iwb.cocorobo.hk/"
  6436. })
  6437. _box.appendChild(_iframe);
  6438. _box.appendChild(_jie);
  6439. _formdiv = new U.UF.UI.form(
  6440. "電子白板",
  6441. _box, {
  6442. "id": "whiteboards" + cid + stage + task + tool,
  6443. "style": {
  6444. "width": "90%",
  6445. "height": "90%",
  6446. "overflow": 'hidden'
  6447. },
  6448. "onresize": function () { }
  6449. }, {
  6450. closecallback: function () { }
  6451. }, {
  6452. "style": {
  6453. "height": "36px"
  6454. }
  6455. }).form; //創建窗體
  6456. _taskbar = {
  6457. "id": str + _formdiv.id,
  6458. "style": {
  6459. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6460. },
  6461. "name": "電子白板",
  6462. "forms": _formdiv,
  6463. "click": function() {
  6464. U.MD.D.I.openApplication(str, obj, info);
  6465. }
  6466. }
  6467. break;
  6468. case "mind":
  6469. aTool = 3;
  6470. _iframe = $$("iframe", {
  6471. "frameborder": "no",
  6472. "border": "0",
  6473. "scrolling ": "no",
  6474. "style": {
  6475. "cssText": "border:0;width:100%;height:100%"
  6476. },
  6477. "src": "/kityminder-editor/dist/index.html"
  6478. });
  6479. _box.appendChild(_iframe);
  6480. _box.appendChild(_jie);
  6481. _formdiv = new U.UF.UI.form(
  6482. "思維導圖",
  6483. _box, { //"/jsmind/example/demo.html"
  6484. "id": "minds" + cid + stage + task + tool,
  6485. "style": {
  6486. "width": "90%",
  6487. "height": "90%",
  6488. "overflow": 'hidden'
  6489. },
  6490. "onresize": function () { }
  6491. }, {
  6492. closecallback: function () { }
  6493. }, {
  6494. "style": {
  6495. "height": "36px"
  6496. }
  6497. }).form; //創建窗體
  6498. _taskbar = {
  6499. "id": str + _formdiv.id,
  6500. "style": {
  6501. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6502. },
  6503. "name": "思維導圖",
  6504. "forms": _formdiv,
  6505. "click": function() {
  6506. U.MD.D.I.openApplication(str, obj, info);
  6507. }
  6508. }
  6509. break;
  6510. case "doc":
  6511. aTool = 6;
  6512. _iframe = $$("iframe", {
  6513. "frameborder": "no",
  6514. "border": "0",
  6515. "scrolling ": "no",
  6516. "style": {
  6517. "cssText": "border:0;width:100%;height:100%"
  6518. },
  6519. "src": "/Office/Word/WordEditArea.htm"
  6520. })
  6521. _box.appendChild(_iframe);
  6522. _box.appendChild(_jie);
  6523. _formdiv = new U.UF.UI.form(
  6524. "協同文檔",
  6525. _box, {
  6526. "id": "docs" + cid + stage + task + tool,
  6527. "style": {
  6528. "width": "90%",
  6529. "height": "90%",
  6530. "overflow": 'hidden'
  6531. },
  6532. "onresize": function () { }
  6533. }, {
  6534. closecallback: function () { }
  6535. }, {
  6536. "style": {
  6537. "height": "36px"
  6538. }
  6539. }).form; //創建窗體
  6540. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6541. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6542. })
  6543. _taskbar = {
  6544. "id": str + _formdiv.id,
  6545. "style": {
  6546. "backgroundImage": "url(/img/icon/doc.png)"
  6547. },
  6548. "name": "協同文檔",
  6549. "forms": _formdiv,
  6550. "click": function() {
  6551. U.MD.D.I.openApplication(str, obj, info);
  6552. }
  6553. }
  6554. break;
  6555. }
  6556. const script1 = document.createElement("script");
  6557. script1.type = "text/javascript";
  6558. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6559. script1.src = "https://cloud.cocorobo.hk/js/Common/jquery-3.6.0.min.js";
  6560. const script2 = document.createElement("script");
  6561. script2.type = "text/javascript";
  6562. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6563. script2.src = "https://cloud.cocorobo.hk/js/Common/aws-sdk-2.235.1.min.js";
  6564. const script3 = document.createElement("script");
  6565. script3.type = "text/javascript";
  6566. script3.charset = "UTF-8";
  6567. script3.src = "https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";
  6568. const script4 = document.createElement("script");
  6569. script4.type = "text/javascript";
  6570. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6571. script4.src = "https://cloud.cocorobo.hk/js/Common/jietu5.js";
  6572. if (_iframe) {
  6573. if (str == 'doc') {
  6574. _iframe = _formdiv.querySelector('iframe')
  6575. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6576. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6577. _iframe.contentWindow.document.body.appendChild(script1);
  6578. _iframe.contentWindow.document.body.appendChild(script2);
  6579. // _iframe.contentWindow.document.body.appendChild(script3);
  6580. _iframe.contentWindow.document.body.appendChild(script4);
  6581. })
  6582. if (onloadListener) {
  6583. _iframe.contentDocument.location.reload()
  6584. } else {
  6585. _iframe.contentDocument.location.reload()
  6586. }
  6587. } else if (str == 'mind') {
  6588. _iframe = _formdiv.querySelector('iframe')
  6589. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6590. _iframe.contentWindow.document.body.appendChild(script1);
  6591. _iframe.contentWindow.document.body.appendChild(script2);
  6592. _iframe.contentWindow.document.body.appendChild(script4);
  6593. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6594. })
  6595. if (onloadListener) {
  6596. _iframe.contentDocument.location.reload()
  6597. } else {
  6598. _iframe.contentDocument.location.reload()
  6599. }
  6600. } else {
  6601. _iframe.onload = () => {
  6602. _iframe.contentWindow.document.body.appendChild(script1);
  6603. _iframe.contentWindow.document.body.appendChild(script2);
  6604. // _iframe.contentWindow.document.body.appendChild(script3);
  6605. _iframe.contentWindow.document.body.appendChild(script4);
  6606. };
  6607. }
  6608. _jie.onclick = async() => {
  6609. let text = ''
  6610. if (aTool == 6) {
  6611. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6612. } else if (aTool == 3) {
  6613. text = await U.MD.D.I.getEditorContent(_iframe);
  6614. }
  6615. _loading.style.display = 'flex'
  6616. console.log(_loading);
  6617. var _ajs = _iframe.contentWindow.document.createElement("script");
  6618. _ajs.type = "text/javascript";
  6619. _ajs.innerHTML =
  6620. // 'console.log(' + _loading + ');\n' +
  6621. 'var _js = document.createElement("script");\n' +
  6622. '_js.type="text/javascript";\n' +
  6623. '_js.charset="UTF-8";\n' +
  6624. '_js.src="https://cloud.cocorobo.hk/js/Common/html2canvas.min.js";\n' +
  6625. "_js.onload = function(){\n" +
  6626. ' var a = document.getElementsByTagName("img")\n' +
  6627. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6628. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6629. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6630. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6631. 'var file = dataURLtoFile_shishi(base64Url, "截圖")\n' +
  6632. "beforeUpload_shishi(file," +
  6633. "'" +
  6634. _userid +
  6635. "'" +
  6636. ", " +
  6637. "'" +
  6638. _cid +
  6639. "'" +
  6640. ", " +
  6641. "'" +
  6642. _stage +
  6643. "'" +
  6644. ", " +
  6645. "'" +
  6646. _task +
  6647. "'" +
  6648. ", " +
  6649. "'" +
  6650. _tool +
  6651. "'" +
  6652. ", " +
  6653. "'" +
  6654. (str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid) +
  6655. "'" +
  6656. ", " +
  6657. "'" +
  6658. aTool +
  6659. "'" +
  6660. ", " +
  6661. "`" +
  6662. text +
  6663. "`" +
  6664. ")\n" +
  6665. " });\n" +
  6666. "}\n" +
  6667. "document.head.appendChild(_js);\n";
  6668. _iframe.contentWindow.document.head.appendChild(_ajs);
  6669. }
  6670. }
  6671. //U.MD.D.I.openClick(str);
  6672. //如果有任務欄信息
  6673. // if (_taskbar) {
  6674. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6675. // }
  6676. }
  6677. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6678. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  6679. _formdiv, //創建任務欄時同時彈出的窗體元素。
  6680. _userinfo = US.userInfo, //登錄用戶信息
  6681. _userid = US.userInfo.userid //登錄用戶id
  6682. let _iframe;
  6683. let _cid = cid,
  6684. _stage = stage,
  6685. _task = task,
  6686. _tool = tool;
  6687. var _jie = $$("div", {
  6688. "style": {
  6689. "position": "absolute",
  6690. "bottom": "50px",
  6691. "right": "50px",
  6692. "zIndex": "9999",
  6693. "backgroundColor": "#2268bc",
  6694. "color": "#fff",
  6695. "padding": "12px 20px",
  6696. "cursor": "pointer",
  6697. "borderRadius": "4px",
  6698. },
  6699. "innerHTML": "上傳模板"
  6700. })
  6701. let aTool = ''
  6702. let _loading = document.createElement('div')
  6703. _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;"
  6704. // _loading.id = "";
  6705. let _lchild = document.createElement('div')
  6706. let _limg = document.createElement('img')
  6707. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6708. _limg.style = "width: 26px;margin-right: 10px;"
  6709. _lchild.appendChild(_limg)
  6710. let _lspan = document.createElement('span')
  6711. _lspan.innerHTML = "上傳中..."
  6712. _lchild.appendChild(_lspan)
  6713. _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%);"
  6714. _loading.appendChild(_lchild)
  6715. var _box = $$('div', {
  6716. "style": {
  6717. "position": "relative",
  6718. "width": "100%",
  6719. "height": "100%",
  6720. },
  6721. })
  6722. _box.appendChild(_loading)
  6723. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool + _userid
  6724. switch (str) {
  6725. case "whiteboard":
  6726. aTool = 1;
  6727. _iframe = $$("iframe", {
  6728. "frameborder": "no",
  6729. "border": "0",
  6730. "scrolling ": "no",
  6731. "style": {
  6732. "cssText": "border:0;width:100%;height:100%"
  6733. },
  6734. "src": "https://iwb.cocorobo.hk/"
  6735. })
  6736. _box.appendChild(_iframe);
  6737. _box.appendChild(_jie);
  6738. _formdiv = new U.UF.UI.form(
  6739. "電子白板",
  6740. _box, {
  6741. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6742. "style": {
  6743. "width": "90%",
  6744. "height": "90%",
  6745. "overflow": 'hidden'
  6746. },
  6747. "onresize": function () { }
  6748. }, {
  6749. closecallback: function () { }
  6750. }, {
  6751. "style": {
  6752. "height": "36px"
  6753. }
  6754. }).form; //創建窗體
  6755. _taskbar = {
  6756. "id": str + _formdiv.id,
  6757. "style": {
  6758. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6759. },
  6760. "name": "電子白板",
  6761. "forms": _formdiv,
  6762. "click": function() {
  6763. U.MD.D.I.openApplication(str, obj, info);
  6764. }
  6765. }
  6766. break;
  6767. case "mind":
  6768. aTool = 3;
  6769. _iframe = $$("iframe", {
  6770. "frameborder": "no",
  6771. "border": "0",
  6772. "scrolling ": "no",
  6773. "style": {
  6774. "cssText": "border:0;width:100%;height:100%"
  6775. },
  6776. "src": "/kityminder-editor/dist/index.html"
  6777. });
  6778. _box.appendChild(_iframe);
  6779. _box.appendChild(_jie);
  6780. _formdiv = new U.UF.UI.form(
  6781. "思維導圖",
  6782. _box, { //"/jsmind/example/demo.html"
  6783. "id": "minds_Yu" + cid + stage + task + tool,
  6784. "style": {
  6785. "width": "90%",
  6786. "height": "90%",
  6787. "overflow": 'hidden'
  6788. },
  6789. "onresize": function () { }
  6790. }, {
  6791. closecallback: function () { }
  6792. }, {
  6793. "style": {
  6794. "height": "36px"
  6795. }
  6796. }).form; //創建窗體
  6797. _taskbar = {
  6798. "id": str + _formdiv.id,
  6799. "style": {
  6800. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6801. },
  6802. "name": "思維導圖",
  6803. "forms": _formdiv,
  6804. "click": function() {
  6805. U.MD.D.I.openApplication(str, obj, info);
  6806. }
  6807. }
  6808. break;
  6809. case "doc":
  6810. aTool = 6;
  6811. _iframe = $$("iframe", {
  6812. "frameborder": "no",
  6813. "border": "0",
  6814. "scrolling ": "no",
  6815. "style": {
  6816. "cssText": "border:0;width:100%;height:100%"
  6817. },
  6818. "src": "/Office/Word/WordEditArea.htm"
  6819. })
  6820. _box.appendChild(_iframe);
  6821. _box.appendChild(_jie);
  6822. _formdiv = new U.UF.UI.form(
  6823. "協同文檔",
  6824. _box, {
  6825. "id": "docs_Yu" + cid + stage + task + tool,
  6826. "style": {
  6827. "width": "90%",
  6828. "height": "90%",
  6829. "overflow": 'hidden'
  6830. },
  6831. "onresize": function () { }
  6832. }, {
  6833. closecallback: function () { }
  6834. }, {
  6835. "style": {
  6836. "height": "36px"
  6837. }
  6838. }).form; //創建窗體
  6839. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6840. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6841. })
  6842. _taskbar = {
  6843. "id": str + _formdiv.id,
  6844. "style": {
  6845. "backgroundImage": "url(/img/icon/doc.png)"
  6846. },
  6847. "name": "協同文檔",
  6848. "forms": _formdiv,
  6849. "click": function() {
  6850. U.MD.D.I.openApplication(str, obj, info);
  6851. }
  6852. }
  6853. break;
  6854. case "CocoPi":
  6855. aTool = 57;
  6856. _iframe = $$("iframe", {
  6857. "allowpaymentrequest":"allowpaymentrequest",
  6858. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6859. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6860. "frameborder": "no",
  6861. "border": "0",
  6862. "scrolling ": "no",
  6863. "style": {
  6864. "cssText": "border:0;width:100%;height:100%"
  6865. },
  6866. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  6867. })
  6868. _box.appendChild(_iframe);
  6869. _box.appendChild(_jie);
  6870. _formdiv = new U.UF.UI.form(
  6871. "CocoPi",
  6872. _box, {
  6873. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6874. "style": {
  6875. "width": "90%",
  6876. "height": "90%",
  6877. "overflow": 'hidden'
  6878. },
  6879. "onresize": function() {}
  6880. }, {
  6881. closecallback: function() {}
  6882. }, {
  6883. "style": {
  6884. "height": "36px"
  6885. }
  6886. }).form; //創建窗體
  6887. _taskbar = {
  6888. "id": str + _formdiv.id,
  6889. "style": {
  6890. "backgroundImage": "url(/img/icon/cocopi.png)"
  6891. },
  6892. "name": "CocoPi",
  6893. "forms": _formdiv,
  6894. "click": function () {
  6895. U.MD.D.I.openApplication(str, obj, info);
  6896. }
  6897. }
  6898. break;
  6899. }
  6900. if (_iframe) {
  6901. if (str == 'doc') {
  6902. _iframe = _formdiv.querySelector('iframe')
  6903. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6904. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6905. })
  6906. if (onloadListener) {
  6907. _iframe.contentDocument.location.reload()
  6908. } else {
  6909. _iframe.contentDocument.location.reload()
  6910. }
  6911. } else if (str == 'mind') {
  6912. _iframe = _formdiv.querySelector('iframe')
  6913. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6914. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6915. })
  6916. if (onloadListener) {
  6917. _iframe.contentDocument.location.reload()
  6918. } else {
  6919. _iframe.contentDocument.location.reload()
  6920. }
  6921. } else if (str == 'whiteboard') {
  6922. _iframe = _formdiv.querySelector('iframe')
  6923. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6924. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6925. })
  6926. if (onloadListener) {
  6927. _iframe.contentDocument.location.reload()
  6928. } else {
  6929. _iframe.contentDocument.location.reload()
  6930. }
  6931. } else if (str == 'CocoPi') {
  6932. _iframe = _formdiv.querySelector('iframe')
  6933. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6934. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6935. })
  6936. if (onloadListener) {
  6937. _iframe.contentDocument.location.reload()
  6938. } else {
  6939. _iframe.contentDocument.location.reload()
  6940. }
  6941. } else {
  6942. _iframe.onload = () => {};
  6943. }
  6944. _jie.onclick = async() => {
  6945. let text = ''
  6946. let type = '2'
  6947. if (aTool == 1) {
  6948. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6949. type = '3'
  6950. } else if (aTool == 6) {
  6951. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6952. type = '1'
  6953. } else if (aTool == 3) {
  6954. text = await U.MD.D.I.getEditorContent(_iframe);
  6955. type = '2'
  6956. } else if (aTool == 57) {
  6957. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6958. type = '4'
  6959. }
  6960. _loading.style.display = 'flex'
  6961. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6962. }
  6963. }
  6964. //U.MD.D.I.openClick(str);
  6965. //如果有任務欄信息
  6966. // if (_taskbar) {
  6967. // U.MD.D.T.taskbar(_taskbar); //創建任務處理
  6968. // }
  6969. }
  6970. U.MD.D.I.getContents = function(cid, s, task, t, uid, type, iframe) {
  6971. var xmlhttp;
  6972. var Mac, Sn, DeviceId
  6973. if (window.XMLHttpRequest) {
  6974. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6975. xmlhttp = new XMLHttpRequest();
  6976. }
  6977. else {
  6978. // IE6, IE5 瀏覽器執行代碼
  6979. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6980. }
  6981. xmlhttp.onreadystatechange = function() {
  6982. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6983. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6984. // resolve(res.value[0][0].text);
  6985. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6986. }
  6987. }
  6988. }
  6989. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6990. xmlhttp.send();
  6991. }
  6992. U.MD.D.I.getContents2 = function(cid, s, task, t, uid, type, iframe) {
  6993. var xmlhttp;
  6994. var Mac, Sn, DeviceId
  6995. if (window.XMLHttpRequest) {
  6996. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  6997. xmlhttp = new XMLHttpRequest();
  6998. }
  6999. else {
  7000. // IE6, IE5 瀏覽器執行代碼
  7001. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7002. }
  7003. xmlhttp.onreadystatechange = function() {
  7004. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7005. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  7006. // resolve(res.value[0][0].text);
  7007. if (type == '2') {
  7008. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  7009. } else if (type == '3') {
  7010. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  7011. } else if (type == '4') {
  7012. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  7013. }
  7014. } else {
  7015. if (type == '2') {
  7016. iframe.contentWindow.editor.minder.importData('json', '')
  7017. } else if (type == '3') {
  7018. iframe.contentWindow.h.app.updateScene({ elements: [] })
  7019. } else if (type == '4') {
  7020. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7021. }
  7022. }
  7023. }
  7024. }
  7025. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  7026. xmlhttp.send();
  7027. }
  7028. U.MD.D.I.setContents = function(cid, s, task, t, uid, type, text, loading, span) {
  7029. var xmlhttp;
  7030. var Mac, Sn, DeviceId
  7031. if (window.XMLHttpRequest) {
  7032. // IE7+, Firefox, Chrome, Opera, Safari 瀏覽器執行代碼
  7033. xmlhttp = new XMLHttpRequest();
  7034. }
  7035. else {
  7036. // IE6, IE5 瀏覽器執行代碼
  7037. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  7038. }
  7039. xmlhttp.onreadystatechange = function () {
  7040. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  7041. if (xmlhttp.response) {
  7042. // resolve(res.value[0][0].text);
  7043. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  7044. // $(fileInput).val('');
  7045. // });
  7046. span.innerHTML = '上傳成功'
  7047. setTimeout(() => {
  7048. loading.style.display = 'none'
  7049. }, 1000);
  7050. }
  7051. }
  7052. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  7053. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  7054. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  7055. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  7056. // 設置請求頭,表示請求體的編碼格式
  7057. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  7058. // 設置請求體,使用url-encoded格式的數據
  7059. }
  7060. }
  7061. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  7062. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7063. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7064. _userinfo = US.userInfo, //登錄用戶信息
  7065. _userid = US.userInfo.userid //登錄用戶id
  7066. let _iframe;
  7067. let _cid = cid,
  7068. _stage = stage,
  7069. _task = task,
  7070. _tool = tool;
  7071. var _jie = $$("div", {
  7072. "style": {
  7073. "position": "absolute",
  7074. "bottom": "50px",
  7075. "right": "50px",
  7076. "zIndex": "9999",
  7077. "backgroundColor": "#2268bc",
  7078. "color": "#fff",
  7079. "padding": "12px 20px",
  7080. "cursor": "pointer",
  7081. "borderRadius": "4px",
  7082. },
  7083. "innerHTML": "提交作業"
  7084. })
  7085. let aTool = ''
  7086. let _loading = document.createElement('div')
  7087. _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;"
  7088. // _loading.id = "";
  7089. let _lchild = document.createElement('div')
  7090. let _limg = document.createElement('img')
  7091. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7092. _limg.style = "width: 26px;margin-right: 10px;"
  7093. _lchild.appendChild(_limg)
  7094. let _lspan = document.createElement('span')
  7095. _lspan.innerHTML = "上傳中..."
  7096. _lchild.appendChild(_lspan)
  7097. _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%);"
  7098. _loading.appendChild(_lchild)
  7099. var _box = $$('div', {
  7100. "style": {
  7101. "position": "relative",
  7102. "width": "100%",
  7103. "height": "100%",
  7104. },
  7105. })
  7106. _box.appendChild(_loading)
  7107. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool + _userid
  7108. switch (str) {
  7109. case "CocoPi":
  7110. aTool = 57;
  7111. _iframe = $$("iframe", {
  7112. "allowpaymentrequest": "allowpaymentrequest",
  7113. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7114. "webkitallowfullscreen": "",
  7115. "mozallowfullscreen": "",
  7116. "frameborder": "no",
  7117. "border": "0",
  7118. "scrolling ": "no",
  7119. "style": {
  7120. "cssText": "border:0;width:100%;height:100%"
  7121. },
  7122. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7123. })
  7124. _box.appendChild(_iframe);
  7125. _box.appendChild(_jie);
  7126. _formdiv = new U.UF.UI.form(
  7127. "CocoPi",
  7128. _box, {
  7129. "id": "CocoPi_Upload" + cid + stage + task + tool,
  7130. "style": {
  7131. "width": "90%",
  7132. "height": "90%",
  7133. "overflow": 'hidden'
  7134. },
  7135. "onresize": function () { }
  7136. }, {
  7137. closecallback: function () { }
  7138. }, {
  7139. "style": {
  7140. "height": "36px"
  7141. }
  7142. }).form; //創建窗體
  7143. _taskbar = {
  7144. "id": str + _formdiv.id,
  7145. "style": {
  7146. "backgroundImage": "url(/img/icon/cocopi.png)"
  7147. },
  7148. "name": "CocoPi",
  7149. "forms": _formdiv,
  7150. "click": function() {
  7151. U.MD.D.I.openApplication(str, obj, info);
  7152. }
  7153. }
  7154. break;
  7155. }
  7156. if (_iframe) {
  7157. if (str == 'CocoPi') {
  7158. _iframe = _formdiv.querySelector('iframe')
  7159. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7160. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7161. })
  7162. if (onloadListener) {
  7163. _iframe.contentDocument.location.reload()
  7164. } else {
  7165. _iframe.contentDocument.location.reload()
  7166. }
  7167. }
  7168. _jie.onclick = async() => {
  7169. let text = ''
  7170. if (aTool == 57) {
  7171. text = _iframe.contentWindow.getLoadXmlStr()
  7172. }
  7173. _loading.style.display = 'flex'
  7174. console.log(_loading);
  7175. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function(res) {
  7176. _loading.style.display = 'none'
  7177. let _div = document.createElement('div')
  7178. _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;"
  7179. let _inner = document.createElement('div')
  7180. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7181. _inner.innerHTML = "上傳成功"
  7182. _div.appendChild(_inner)
  7183. _iframe.contentWindow.window.document.body.appendChild(_div)
  7184. _div.onclick = () => {
  7185. _iframe.contentWindow.window.document.body.removeChild(_div)
  7186. }
  7187. setTimeout(() => {
  7188. _iframe.contentWindow.window.document.body.removeChild(_div)
  7189. }, 1000);
  7190. }, [], { "type": "POST", "withCredentials": true });
  7191. }
  7192. }
  7193. }
  7194. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  7195. var _taskbar, //_taskbar 作為任務欄顯示的元素,包含圖標和名字
  7196. _formdiv, //創建任務欄時同時彈出的窗體元素。
  7197. _userid = student.userid, //登錄用戶id
  7198. _username = student.student //用戶名字
  7199. let _iframe;
  7200. let _cid = cid,
  7201. _stage = stage,
  7202. _task = task,
  7203. _tool = tool;
  7204. var _jie = $$("div", {
  7205. "style": {
  7206. "position": "absolute",
  7207. "bottom": "50px",
  7208. "right": "50px",
  7209. "zIndex": "9999",
  7210. "backgroundColor": "#2268bc",
  7211. "color": "#fff",
  7212. "padding": "12px 20px",
  7213. "cursor": "pointer",
  7214. "borderRadius": "4px",
  7215. },
  7216. "innerHTML": "提交作業"
  7217. })
  7218. let aTool = ''
  7219. let _loading = document.createElement('div')
  7220. _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;"
  7221. // _loading.id = "";
  7222. let _lchild = document.createElement('div')
  7223. let _limg = document.createElement('img')
  7224. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7225. _limg.style = "width: 26px;margin-right: 10px;"
  7226. _lchild.appendChild(_limg)
  7227. let _lspan = document.createElement('span')
  7228. _lspan.innerHTML = "上傳中..."
  7229. _lchild.appendChild(_lspan)
  7230. _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%);"
  7231. _loading.appendChild(_lchild)
  7232. var _box = $$('div', {
  7233. "style": {
  7234. "position": "relative",
  7235. "width": "100%",
  7236. "height": "100%",
  7237. },
  7238. })
  7239. _box.appendChild(_loading)
  7240. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool + _userid
  7241. switch (str) {
  7242. case "CocoPi":
  7243. aTool = 57;
  7244. _iframe = $$("iframe", {
  7245. "allowpaymentrequest": "allowpaymentrequest",
  7246. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7247. "webkitallowfullscreen": "",
  7248. "mozallowfullscreen": "",
  7249. "frameborder": "no",
  7250. "border": "0",
  7251. "scrolling ": "no",
  7252. "style": {
  7253. "cssText": "border:0;width:100%;height:100%"
  7254. },
  7255. "src": "https://pi.cocorobo.hk/?lang=zh-hant"
  7256. })
  7257. _box.appendChild(_iframe);
  7258. _box.appendChild(_jie);
  7259. _formdiv = new U.UF.UI.form(
  7260. "CocoPi-" + _username,
  7261. _box, {
  7262. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  7263. "style": {
  7264. "width": "90%",
  7265. "height": "90%",
  7266. "overflow": 'hidden'
  7267. },
  7268. "onresize": function () { }
  7269. }, {
  7270. closecallback: function () { }
  7271. }, {
  7272. "style": {
  7273. "height": "36px"
  7274. }
  7275. }).form; //創建窗體
  7276. _taskbar = {
  7277. "id": str + _formdiv.id,
  7278. "style": {
  7279. "backgroundImage": "url(/img/icon/cocopi.png)"
  7280. },
  7281. "name": "CocoPi",
  7282. "forms": _formdiv,
  7283. "click": function() {
  7284. U.MD.D.I.openApplication(str, obj, info);
  7285. }
  7286. }
  7287. break;
  7288. }
  7289. if (_iframe) {
  7290. if (str == 'CocoPi') {
  7291. _iframe = _formdiv.querySelector('iframe')
  7292. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7293. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7294. })
  7295. if (onloadListener) {
  7296. _iframe.contentDocument.location.reload()
  7297. } else {
  7298. _iframe.contentDocument.location.reload()
  7299. }
  7300. }
  7301. _jie.onclick = async() => {
  7302. let text = ''
  7303. if (aTool == 57) {
  7304. text = _iframe.contentWindow.getLoadXmlStr()
  7305. }
  7306. _loading.style.display = 'flex'
  7307. console.log(_loading);
  7308. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function(res) {
  7309. _loading.style.display = 'none'
  7310. let _div = document.createElement('div')
  7311. _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;"
  7312. let _inner = document.createElement('div')
  7313. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7314. _inner.innerHTML = "上傳成功"
  7315. _div.appendChild(_inner)
  7316. _iframe.contentWindow.window.document.body.appendChild(_div)
  7317. _div.onclick = () => {
  7318. _iframe.contentWindow.window.document.body.removeChild(_div)
  7319. }
  7320. setTimeout(() => {
  7321. _iframe.contentWindow.window.document.body.removeChild(_div)
  7322. }, 1000);
  7323. }, [], { "type": "POST", "withCredentials": true });
  7324. }
  7325. }
  7326. }
  7327. U.MD.D.I.getUploadContent = function(cid, s, task, t, uid, atool, type, iframe) {
  7328. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function(res) {
  7329. if (res.value[0].length > 0) {
  7330. if (atool == 57) {
  7331. iframe.contentWindow.loadingXml(res.value[0][0].content)
  7332. }
  7333. } else {
  7334. if (atool == 57) {
  7335. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  7336. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7337. }
  7338. }
  7339. }, [], { "type": "POST", "withCredentials": true });
  7340. }