index.html 266 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>CocoBlockly CocoPi – CocoRobo CocoPi Module</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <meta http-equiv="Content-Type" content="text/html; scharset=UTF-8">
  8. <meta name="theme-color" content="#2C4FCD">
  9. <link type="text/css" rel="stylesheet" href="libs/materialize.min.css" media="screen,projection">
  10. <link rel="stylesheet" href="libs/codemirror/codemirror.css" />
  11. <link rel="stylesheet" href="libs/codemirror/show-hint.css" />
  12. <link rel="stylesheet" href="libs/font-awesome.min.css" />
  13. <link rel="stylesheet" href="libs/summernote/summernote.css" />
  14. <link rel="stylesheet" href="libs/multi-select.css" />
  15. <link rel="stylesheet" href="src/blockpy.css" />
  16. <link rel="stylesheet" href="index.css" />
  17. <link rel="stylesheet" href="cocoblockly.css" />
  18. <!-- JQuery, D3, Math.js, Bootstrap -->
  19. <!-- <script type="text/javascript" src="libs/jquery.js"></script> -->
  20. <!--MD5加密-->
  21. <script type="text/javascript" src="static/js/md5.js"></script>
  22. <script type="text/javascript" src="uform.js"></script>
  23. <script type="text/javascript" src="js_libs/jquery-2.1.3.min.js"></script>
  24. <!-- <script type="text/javascript" src="js_libs/qrcode.min.js"></script> -->
  25. <script type="text/javascript" src="libs/jquery-ui.min.js"></script>
  26. <script type="text/javascript" src="libs/jquery.hotkeys.js"></script>
  27. <script type="text/javascript" src="libs/jquery.multi-select.js"></script>
  28. <!-- <script type="text/javascript" src="libs/materialize.min.js"></script> -->
  29. <!-- <script src="materialize/js/materialize.js"></script> -->
  30. <script type="text/javascript" src="libs/d3.min.js"></script>
  31. <script type="text/javascript" src="libs/math.0.19.0.min.js"></script>
  32. <!-- <script type="text/javascript" src="libs/bootstrap.min.js"></script>
  33. <script type="text/javascript" src="libs/bootstrap-wysiwyg.js"></script> -->
  34. <script type="text/javascript" src="libs/mindmup-editabletable.js"></script>
  35. <script type="text/javascript" src="libs/codemirror/codemirror.js"></script>
  36. <script type="text/javascript" src="libs/codemirror/python.js"></script>
  37. <script type="text/javascript" src="libs/codemirror/htmlmixed.js"></script>
  38. <script type="text/javaScript" src="libs/codemirror/show-hint.js"></script>
  39. <script type="text/javascript" src="libs/codemirror/xml.js"></script>
  40. <script type="text/javascript" src="libs/knockout-3.4.0.js"></script>
  41. <script type="text/javascript" src="libs/stringify.js"></script>
  42. <!-- Summernote, a rich text editor -->
  43. <script type="text/javascript" src="libs/summernote/summernote.min.js"></script>
  44. <script type="text/javascript" src="libs/summernote/summernote-ext-hint.js"></script>
  45. <script type="text/javascript" src="libs/summernote/summernote-ext-video.js"></script>
  46. <!-- Blockly -->
  47. <!-- <script type="text/javascript" src="blockly/blockly_uncompressed.js"></script> -->
  48. <!-- <script type="text/javascript" src="blockly/blockly_compressed.js"></script>
  49. <script type="text/javascript" src="src/imported.js"></script>
  50. <script type="text/javascript" src="blockly/blocks_compressed.js"></script>
  51. <script type="text/javascript" src="src/python_to_blockly.js"></script>
  52. <script type="text/javascript" src="blockly/python_compressed.js"></script> -->
  53. <script type="text/javascript" src="blockly/blocks/python/head.js"></script>
  54. <script type="text/javascript" src="blockly/blocks/python/citys.js"></script>
  55. <script type="text/javascript" src="blockly/blocks/python/define_colors.js"></script>
  56. <script type="text/javascript" src="blockly/blocks/python/blockly_compressed.js"></script>
  57. <script type="text/javascript" src="blockly/blocks/python/blocks_compressed.js"></script>
  58. <script type="text/javascript" src="blockly/blocks/python/python_compressed.js"></script>
  59. <script type="text/javascript" src="blockly/blocks/python/blocks_microbit.min.js"></script>
  60. <script type="text/javascript" src="blockly/blocks/python/blocks_mpython.min.js"></script>
  61. <script type="text/javascript" src="blockly/blocks/python/python_microbit.min.js"></script>
  62. <script type="text/javascript" src="blockly/blocks/python/python_mpython.min.js"></script>
  63. <script type="text/javascript" src="src/imported.js"></script>
  64. <script type="text/javascript" src="src/python_to_blockly.js"></script>
  65. <script type="text/javascript" src="blockly/blocks/python/ai.js"></script>
  66. <script type="text/javascript" src="blockly/blocks/python/iot.js"></script>
  67. <script type="text/javascript" src="blockly/blocks/python/esp32.js"></script>
  68. <script type="text/javascript" src="blockly/blocks/python/extension_module.js"></script>
  69. <script type="text/javascript" src="blockly/blocks/python/mainwifi.js"></script>
  70. <script type="text/javascript" src="blockly/blocks/text.js"></script>
  71. <script type="text/javascript" src="blockly/blocks/utility.js"></script>
  72. <!-- <script type="text/javascript" src="blockly/generators/utility.js"></script> -->
  73. <!--
  74. <script type="text/javascript" src="blockly/blocks/math.js"></script>
  75. <script type="text/javascript" src="blockly/generators/python/math.js"></script>-->
  76. <script type="text/javascript" src="blockly/generators/python.js"></script>
  77. <script type="text/javascript" src="blockly/blocks/python/time.js"></script>
  78. <script type="text/javascript" src="blockly/generators/python/time.js"></script>
  79. <script type="text/javascript" src="blockly/blocks/python/mainwifi.js"></script>
  80. <script type="text/javascript" src="blockly/generators/python/mainwifi.js"></script>
  81. <script type="text/javascript" src="blockly/blocks/python/screen.js"></script>
  82. <script type="text/javascript" src="blockly/generators/python/screen.js"></script>
  83. <script type="text/javascript" src="blockly/msg/index.js"></script>
  84. <script type="text/javascript" src="src/blockly/FileSaver.js"></script>
  85. <script type="text/javascript" src="src/blockly/term.js"></script>
  86. <script type="text/javascript" src="src/blockly/web.js"></script>
  87. <script type="text/javascript" src="src/blockly/load.js"></script>
  88. <script type="text/javascript" src="src/blockly/Devices.js"></script>
  89. <!-- Skulpt -->
  90. <!-- <script type="text/javascript" src="skulpt/dist/skulpt.min.js"></script>
  91. <script type="text/javascript" src="skulpt/dist/skulpt-stdlib.js"></script> -->
  92. <!-- Source Code -->
  93. <script type="text/javascript" src="src/utilities.js"></script>
  94. <script type="text/javascript" src="src/python_errors.js"></script>
  95. <script type="text/javascript" src="src/ast_node_visitor.js"></script>
  96. <script type="text/javascript" src="src/abstract_interpreter.js"></script>
  97. <script type="text/javascript" src="src/pytifa.js"></script>
  98. <script type="text/javascript" src="src/abstract_interpreter_definitions.js"></script>
  99. <script type="text/javascript" src="src/dialog.js"></script>
  100. <script type="text/javascript" src="src/storage.js"></script>
  101. <!-- <script type="text/javascript" src="src/printer.js"></script> -->
  102. <script type="text/javascript" src="src/interface.js"></script>
  103. <script type="text/javascript" src="src/server.js"></script>
  104. <script type="text/javascript" src="src/english.js"></script>
  105. <script type="text/javascript" src="src/corgis.js"></script>
  106. <script type="text/javascript" src="src/history.js"></script>
  107. <script type="text/javascript" src="src/presentation.js"></script>
  108. <script type="text/javascript" src="src/editor.js"></script>
  109. <!-- <script type="text/javascript" src="src/feedback.js"></script> -->
  110. <script type="text/javascript" src="src/toolbar.js"></script>
  111. <script type="text/javascript" src="src/sk_mod_instructor_extended.js"></script>
  112. <script type="text/javascript" src="src/sk_mod_instructor.js"></script>
  113. <!-- <script type="text/javascript" src="src/engine.js"></script> -->
  114. <script type="text/javascript" src="src/main.js"></script>
  115. <!-- FileSaver JS -->
  116. <script src="src/js_libs/FileSaver.min.js"></script>
  117. <!-- JS Diff -->
  118. <script src="src/js_libs/diff.js"></script>
  119. <!-- Prettify JS -->
  120. <script src="src/prettify/prettify.js"></script>
  121. <!-- Lazyload JS -->
  122. <script src="src/lazysize/lazysizes.min.js"></script>
  123. <!-- Socket.io -->
  124. <!-- <script src="src/socket.io-client/dist/socket.io.js"></script> -->
  125. <!-- clipboard -->
  126. <!-- <script src="src/clipboard/dist/clipboard.js"></script> -->
  127. <!-- Event Proxy -->
  128. <script type="text/javascript" src="src/blockly/eventproxy.js"></script>
  129. <!-- jQuery and Materialize JS -->
  130. <!-- <script src="js_libs/jquery-2.1.3.min.js"></script> -->
  131. <script src="materialize/js/materialize.js"></script>
  132. <!-- echarts -->
  133. <script src="./js_libs/echarts.min.js"></script>
  134. <!-- platform.js -->
  135. <!-- Desktop version of Ardublockly JS, needs to be loaded first. -->
  136. <!-- <script src="ardublockly_desktop.js"></script> -->
  137. <script type="text/javascript" src="src/webcam.min.js"></script>
  138. <script src="src/platformjs/platform.js"></script>
  139. <script src="ardublockly_lang.js"></script>
  140. <script src="ardublockly_toolbox.js"></script>
  141. <!-- <script src="ardublockly_blockly.js"></script> -->
  142. <script src="ardublocklyserver_ajax.js"></script>
  143. <script type="text/javascript" src="src/blockly/ardublockly_desktop.js"></script>
  144. <script type="text/javascript" src="src/blockly/ardublockly_design.js"></script>
  145. <script type="text/javascript" src="src/blockly/ardublockly_blockly.js"></script>
  146. <script type="text/javascript" src="src/blockly/ardublockly.js"></script>
  147. <script type="text/javascript" src="src/blockly/cocoblockly.js"></script>
  148. <script src="src/blockly/account.js"></script>
  149. <script src="src/blockly/socket.js"></script>
  150. <script src="src/blockly/machine.js"></script>
  151. <script type="text/javascript" src="./libs/clipboard.min.js"></script>
  152. <script type="text/javascript" src="./index.js"></script>
  153. </head>
  154. <body>
  155. <div id="white-box">
  156. <div id="preloader">
  157. <img src="./images/preloader.gif">
  158. <h4 style="margin:0;">Loading...</h4>
  159. </div>
  160. </div>
  161. <!-- modal -->
  162. <!-- <div class="modals">
  163. <span></span>
  164. </div> -->
  165. <div id="container" class="noselecttext">
  166. <!-- Horizontal Navigation bar -->
  167. <nav id="nav_" class="nav-fixed arduino_teal" style="overflow:hidden">
  168. <div id="nav_shadow" class="shadowbox" style="display:none;"></div>
  169. <div class="nav-wrapper"
  170. style="min-width: 1200px; padding:0px 10px;display: flex;justify-content: space-between;position:static;">
  171. <a id="logo-container" class="brand-logo" style="display: none;">
  172. <span style="font-size:28px;font-family:'GT Walsheim Pro Trial Bold';"
  173. class="app_title translatable_title">CocoBlockly Pi</span>
  174. <!-- Sketch name editable text field -->
  175. <span class="sketch_name_wrapper" style="position:relative">
  176. <!-- <a id="button_delete" class="lang_resize" style="position:relative">
  177. <img style="height:28px;margin-top:20px" src="./icons/trash.png"> -->
  178. </a>
  179. <ul id="nav-mobile" class="hide-on-med-and-down" style="display: inline-block;">
  180. <li style="font-size: 30px;">
  181. <!-- <img style="height: 40px;margin-top: 10px;" class="left nav-icon" src="./icons/logo.png"> -->
  182. <img style="height: 40px;margin-top: 10px;" class="left nav-icon" src="./icons/logo1.png">
  183. </li>
  184. <li>
  185. <span class="vertical-separator"></span>
  186. </li>
  187. <!-- help button -->
  188. <li>
  189. <input id="sketch_name" placeholder="My Project Name"
  190. class="sketch_name translatable_sketch_name"
  191. style="background: rgba(0,0,0,0.4);padding: 4px 10px 4px 5px;border-radius: 20px;font-style: inherit;"
  192. type="text">
  193. </li>
  194. <li>
  195. <button id="downloadbutton" class="translatable_sketch_save"
  196. style="color: #2c4fcd;font-weight: 700;border-radius: 30px;background: #fff;border: none;margin: 0 0 0 15px;font-size: 14px;padding: 8px 14px;">Save</button>
  197. </li>
  198. <li id="cloudBtn-shares" style="display: none;">
  199. <i class="material-icons" style="margin-left:5px;cursor: pointer;">share</i>
  200. </li>
  201. <i id="workspace_screenshot" class="material-icons sketch_name_icon right"
  202. style="margin-left:5px;cursor: pointer;display: none;">photo_camera</i>
  203. <i id="button_delete" class="material-icons sketch_name_icon right"
  204. style="margin-left:5px;cursor: pointer;">delete</i>
  205. </ul>
  206. <!-- <i id="workspace_screenshot" class="material-icons sketch_name_icon right"
  207. style="margin-left:5px;cursor: pointer;">photo_camera</i> -->
  208. <!-- <i class="material-icons sketch_name_icon right">create</i> -->
  209. <!-- <input id="sketch_name" class="sketch_name" type="text"> -->
  210. <input id="sketch_name_w" class="sketch_name" type="text" name="wifi" style="display:none">
  211. </span>
  212. <!-- </a> -->
  213. <!-- Horizontal Navbar links only shown on large resolutions -->
  214. <ul id="nav-mobile" class="right hide-on-med-and-down nav-mobile-right" style="display: flex;">
  215. <!-- AI Demo -->
  216. <!-- <li>
  217. <a id="AI_experience" class='dropdown-button lang_resize' data-activates='AI_experience_dropdown' style="position:relative">
  218. <span class="translatable_AI_experience">AI</span>
  219. <img class="left nav-icon" src="./icons/nav-ai-experience.png">
  220. </a>
  221. <ul id='AI_experience_dropdown' class='dropdown-content' style="top:62px">
  222. <li id="webcam" class='modal-trigger' href="#webcam_capture_modal">
  223. <span class="translatable_AI_emotion">Emotion Recognotion</span>
  224. </li>
  225. <li class="divider"></li>
  226. <li id="voice-input" class='modal-trigger' href="#voice_input_modal">
  227. <span class="translatable_AI_speech">Speech Recognotion</span>
  228. </li>
  229. </ul>
  230. </li> -->
  231. <!-- help button -->
  232. <li style="display: none;">
  233. <a id="help" style="display:none" class='dropdown-button lang_resize'
  234. data-activates="help_board" style="position:relative">
  235. <!-- <i class="material-icons left" style="margin-right: 5px;font-size: 34px;">help_outline</i> -->
  236. <span class="translatable_help_board">Help</span>
  237. <img class="left nav-icon" src="./icons/nav_help.png">
  238. </a>
  239. <ul id='help_board' class='dropdown-content' style="top:62px">
  240. <li id="">
  241. <a href="http://help.cocorobo.cn/" target="_blank">
  242. <span class="translatable_tutorial">Tutorial</span>
  243. </a>
  244. </li>
  245. <!-- <li class="divider"></li>
  246. <li>
  247. <a href="#tourmode" class="modal-trigger">
  248. <span class="translatable_tour">Start Tour</span>
  249. </a>
  250. </li> -->
  251. <li class="divider"></li>
  252. <!-- <li>
  253. <a href="#env_detect" class="modal-trigger">
  254. <span class="translatable_env_detect">Environment Detect</span>
  255. </a>
  256. </li> -->
  257. <li class="divider"></li>
  258. <li>
  259. <a href="http://help.cocorobo.cn/#/changelog" target="_blank">
  260. <span class="translatable_changelog">Change Log</span>
  261. </a>
  262. </li>
  263. </ul>
  264. </li>
  265. <li style="display:none;">
  266. <select onchange="selectmode(this)" id="mode"
  267. style="outline:0;position:relative;color: #fff;font-weight: 500;width: 175px;height: 35px;border-radius: 30px;background: #fff0;border: 2px solid #fff;margin: 15px 35px 0px 0px;display: block;">
  268. <!-- <option value="" style="color: #000;">Main Mode</option> -->
  269. <option value="" style="color: #000;">AI Mode</option>
  270. </select>
  271. </li>
  272. <li class="Mode_select_box">
  273. <div class="ModeSelectBox">
  274. <!-- <div class="ModeSelect" style="width: 100%;"> -->
  275. <div class="ModeSelect" style="width: 100%;">
  276. <div style="font-size: 0.9rem;">样例 </div>
  277. <i class="down"
  278. style="position: relative;top: -34px;left: 20px;float: right;display: none;"></i>
  279. <div class="downbox ModeBox downbox-style">
  280. <div style="display: none;">
  281. <div>人工智能教材程序</div>
  282. <i class="downboxdown"></i>
  283. <div class="Hardware2 HarxA" style="height:auto;top:-35px">
  284. <div class="Hardware9">
  285. <div>三年级</div>
  286. <i class="downboxdown"></i>
  287. <ul class="Hardware4 HarxA">
  288. <li>录制语音指令</li>
  289. <li>语音识别台灯</li>
  290. <!-- <li>人脸识别防盗门</li> -->
  291. </ul>
  292. </div>
  293. <div class="Hardware4n">
  294. <div>四年级</div>
  295. <i class="downboxdown"></i>
  296. <ul class="Hardware4 HarxA">
  297. <li>人臉檢測</li>
  298. <li>物體識別進階</li>
  299. </ul>
  300. </div>
  301. <div class="Hardware5">
  302. <div>五年级</div>
  303. <i class="downboxdown"></i>
  304. <ul class="Hardware4 HarxA">
  305. <li>录制语音指令</li>
  306. <li>智能窗帘</li>
  307. <li>水果采摘机器人</li>
  308. <li>智能质检机器人</li>
  309. </ul>
  310. </div>
  311. <div class="Hardware6">
  312. <div>六年级</div>
  313. <i class="downboxdown"></i>
  314. <ul class="Hardware4 HarxA">
  315. <li>智能交通信号灯</li>
  316. <li>导盲项链</li>
  317. <li>二维码包裹分拣机器人</li>
  318. <li>无人驾驶循环小车</li>
  319. </ul>
  320. </div>
  321. <div class="Hardware7">
  322. <div>七年级</div>
  323. <i class="downboxdown"></i>
  324. <ul class="Hardware4 HarxA">
  325. <li>人脸辨识电子警察</li>
  326. </ul>
  327. </div>
  328. <div class="Hardware8">
  329. <div>八年级</div>
  330. <i class="downboxdown"></i>
  331. <ul class="Hardware4 HarxA">
  332. <li>支付台</li>
  333. </ul>
  334. </div>
  335. </div>
  336. </div>
  337. <div style="display: none;">
  338. <div>IoT 模块基础案例</div>
  339. <i class="downboxdown"></i>
  340. <ul class="Hardware2 HarxA">
  341. <li>侧边按键控制蜂鸣器</li>
  342. <li> 侧边按键控制开关 LED</li>
  343. <li> 触摸区域控制 LED</li>
  344. <li> 蜂鸣器警报</li>
  345. <li> 黑暗环境感应光照灯</li>
  346. <li> 倾斜方向感应 LED</li>
  347. <li> 湿度报警器</li>
  348. <li> 摇晃感应 LED</li>
  349. <li> LED 显示光线强度值</li>
  350. </ul>
  351. </div>
  352. <div style="display: none;">
  353. <div>IoT 模块扩展功能案例</div>
  354. <i class="downboxdown"></i>
  355. <ul class="Hardware2 HarxA">
  356. <li>使用 LED 灯屏</li>
  357. <li>使用电机驱动模块</li>
  358. <li>使用游戏手柄 + LED 灯屏</li>
  359. <li>使用游戏手柄 + 屏幕模块</li>
  360. <li>在扩展模块上控制舵机</li>
  361. <li>屏幕显示Hello World</li>
  362. <li>屏幕绘制线条动画</li>
  363. <li>按键控制屏幕直线转动</li>
  364. <li>按键控制颜色切换</li>
  365. <li>计步器</li>
  366. <li>计步器+LED 灯屏</li>
  367. <li>使用蓝牙发送数据</li>
  368. <li>屏幕显示蓝牙接收的数据</li>
  369. </ul>
  370. </div>
  371. <div style="display: none;">
  372. <div>IoT 模块联网案例</div>
  373. <i class="downboxdown"></i>
  374. <ul class="Hardware2 HarxA" style="top: calc(50% - 50px);">
  375. <li>按键发送光照数据至 CocoCloud</li>
  376. <li>按键发送环境数据至 IFTTT</li>
  377. <li>按键获取光照数据并根据条件亮灯</li>
  378. <li>定时发送环境数据至 CocoCloud</li>
  379. <li>定时接收环境数据并根据条件亮灯</li>
  380. <li>建立 WiFi 热点并显示连接设备数量</li>
  381. <li style="display: none;">局域网环境数据存储 - 服务器端</li>
  382. <li style="display: none;">局域网环境数据获取 - 客户端</li>
  383. <li>连接 WiFi 网络</li>
  384. <li style="display: none;">模块间按钮状态存储 - 服务端</li>
  385. <li style="display: none;">模块间按钮状态接收 - 客户端</li>
  386. <li style="display: none;">模块间进行 WebSocket 实时通信 - 发送端</li>
  387. <li style="display: none;">模块间进行 WebSocket 实时通信 - 接收端</li>
  388. <li>同步网络时间</li>
  389. <li>数字手表显示实时时间</li>
  390. </ul>
  391. </div>
  392. <div style="display: none;">
  393. <div>IoT工作坊上</div>
  394. <i class="downboxdown"></i>
  395. <ul class="Hardware2 HarxA" style="top: calc(50% - 30px)">
  396. <li>01 点亮正中间的LED灯</li>
  397. <li>02 点亮所有LED灯</li>
  398. <li>03 流水灯</li>
  399. <li>04 蜂鸣器警报</li>
  400. <li>05 8-bit音乐</li>
  401. <li>06 串口通讯:按钮开关</li>
  402. <li>07 串口通讯:触摸开关</li>
  403. <li>08 按钮开关蜂鸣器</li>
  404. <li>09 触摸开关灯</li>
  405. <li>10 补光装置</li>
  406. <li>11 湿度报警器</li>
  407. </ul>
  408. </div>
  409. <div style="display: none;">
  410. <div>IoT工作坊下</div>
  411. <i class="downboxdown"></i>
  412. <ul class="Hardware2 HarxA" style="top: calc(50% - 120px)">
  413. <li>12 晃晃灯</li>
  414. <!-- <li>13 连接Wi-Fi</li> -->
  415. <li>14 连接Wi-Fi并显示连接状态</li>
  416. <li>15 建立热点并显示已连接的设备数</li>
  417. <li>16 亮度数据上传与下载</li>
  418. <li>17 舵机来回摆动</li>
  419. <li>19 舵机定时摆动</li>
  420. <li>20 按键控制舵机</li>
  421. <li>18 门(人脸识别)</li>
  422. <li>体验 iot-机械车(语音控制)</li>
  423. <li>体验 iot-机械人(陀螺仪)</li>
  424. <li>体验 iot-机械人(姿态识别)</li>
  425. <li>体验 iot-台灯(语音控制)</li>
  426. </ul>
  427. </div>
  428. <div style="display: none;">
  429. <div>AI 模块机器学习案例</div>
  430. <i class="downboxdown"></i>
  431. <ul class="Hardware2 HarxA">
  432. <li>人脸辨识智能门</li>
  433. <li>垃圾分类识别(香港版)</li>
  434. <li>人脸检测</li>
  435. <li>物体识别</li>
  436. <li>人脸检测</li>
  437. <li>物体识别</li>
  438. <li>语音录制</li>
  439. <li>语音识别</li>
  440. <li>MNIST 手写数字识别</li>
  441. </ul>
  442. </div>
  443. <div style="display: none;">
  444. <div>AI 模块基础案例</div>
  445. <i class="downboxdown"></i>
  446. <ul class="Hardware2 HarxA">
  447. <li>按键控制屏幕时针转动</li>
  448. <li style="display:none">按键控制图片改变颜色制式</li>
  449. <li style="display:none">按键控制图片进行反色变化</li>
  450. <li>按键控制颜色切换</li>
  451. <li>迷你相机</li>
  452. <li>屏幕方向旋转</li>
  453. <li>屏幕绘制线条动画</li>
  454. </ul>
  455. </div>
  456. <div style="display: none;">
  457. <div>AI 模块扩展功能案例</div>
  458. <i class="downboxdown"></i>
  459. <ul class="Hardware2 HarxA">
  460. <li>使用 LED 灯屏</li>
  461. <li>使用电机驱动模块</li>
  462. <li>使用游戏手柄 + 屏幕模块</li>
  463. <li>在扩展模块上控制舵机</li>
  464. <li>贪吃蛇</li>
  465. </ul>
  466. </div>
  467. <div style="display: none;">
  468. <div>AI AI 模块视觉案例</div>
  469. <i class="downboxdown"></i>
  470. <ul class="Hardware2 HarxA">
  471. <li>按键改变相机图像的亮度</li>
  472. <li>区域颜色分析</li>
  473. <li>识别 QR 二维码</li>
  474. <li>寻线(黑线)</li>
  475. <li>寻找绿色的圆形</li>
  476. <li>寻找绿色区域并进行追踪</li>
  477. </ul>
  478. </div>
  479. <div style="display: none;">
  480. <div>AI AI 模块影音案例</div>
  481. <i class="downboxdown"></i>
  482. <ul class="Hardware2 HarxA">
  483. <li>播放录制的视频档案</li>
  484. <li>播放音乐</li>
  485. <li>录制摄像头画面并保存</li>
  486. <li>麦克风声音频谱分析</li>
  487. </ul>
  488. </div>
  489. <div style="display: none;">
  490. <div>AI基础篇案例上</div>
  491. <i class="downboxdown"></i>
  492. <ul class="Hardware2 HarxA">
  493. <li>Hello World</li>
  494. <li>螢幕顯示 Hello World</li>
  495. <li>畫布應用</li>
  496. <li>迷你相機</li>
  497. <li>簡易物體識別</li>
  498. </ul>
  499. </div>
  500. <div style="display: none;">
  501. <div>AI 基础篇案例下</div>
  502. <i class="downboxdown"></i>
  503. <ul class="Hardware2 HarxA" style="top: calc(50% - 50px)">
  504. <li>物體識別進階</li>
  505. <li>人臉檢測</li>
  506. <li>顏色識別</li>
  507. <li>形狀識別(圓形)</li>
  508. <li>形狀識別(矩形)</li>
  509. <li>音頻分析</li>
  510. </ul>
  511. </div>
  512. <div style="display: none;">
  513. <div>AI 扩展使用案例</div>
  514. <i class="downboxdown"></i>
  515. <ul class="Hardware2 HarxA" style="top: calc(50% - 80px)">
  516. <li>私服马达</li>
  517. <li>超声波感测器</li>
  518. <!-- <li>测距仪</li> -->
  519. <li>灯带</li>
  520. <li id="AI_Workshop_III_ex5_Microbit">Microbit</li>
  521. <li id="AI_Workshop_III_ex6_MicrobitFace">人脸检测</li>
  522. <li>电动门</li>
  523. </ul>
  524. </div>
  525. <div style="display: none;">
  526. <div>AI 垃圾分类</div>
  527. <i class="downboxdown"></i>
  528. <ul class="Hardware2 HarxA" style="top: calc(50% - 80px)">
  529. <li>私服马达</li>
  530. <li>超声波感测器</li>
  531. <li>电动门</li>
  532. </ul>
  533. </div>
  534. <div style="display: none;">
  535. <div>AI 自动驾驶</div>
  536. <i class="downboxdown"></i>
  537. <ul class="Hardware2 HarxA" style="top: calc(50% - 80px)">
  538. <li>第一場-路標識別(香港標識)</li>
  539. <li>第二場-巡線(雙線)</li>
  540. <li>第二場-巡線(單線-靠左行駛)</li>
  541. <li>第一場-路標識別(香港標識)</li>
  542. </ul>
  543. </div>
  544. <div style="display: none;">
  545. <div>串口通讯</div>
  546. <i class="downboxdown"></i>
  547. <ul class="Hardware2 HarxA" style="top: calc(50% - 90px)">
  548. <li>IoT串口发送光线强度值</li>
  549. <li>AI屏幕显示串口光线强度值(配合1使用)</li>
  550. <li>AI串口发送人脸检测结果</li>
  551. <li>IoT屏幕显示串口人脸检测结果(配合3使用)</li>
  552. </ul>
  553. </div>
  554. <div>
  555. <div>机器狗案例</div>
  556. <i class="downboxdown"></i>
  557. <ul class="Hardware2 HarxA">
  558. <li>机器狗-人脸检测</li>
  559. <li>机器狗-人脸追踪</li>
  560. <li>机器狗-面部识别</li>
  561. <li>机器狗-图片分类</li>
  562. <li>机器狗-普通话识别</li>
  563. <li>机器狗-人体跟随</li>
  564. <li>机器狗-人体跟随</li>
  565. <li>机器狗-表情显示</li>
  566. <li>机器狗-音频分析</li>
  567. </ul>
  568. </div>
  569. </div>
  570. </div>
  571. </div>
  572. </li>
  573. <li style="display: none;">
  574. <div style="line-height: 30px;" class="selectMode_input">
  575. <!-- <input type="text" value="IoT Module" id="iot_modules" readonly
  576. class="selectMode_input browser-default" style="font-size: 0.9rem;"> -->
  577. <span class="">V 831</span>
  578. <i class="down" style="position: relative;top: 12px;float: right;"></i>
  579. <div class="downbox MouduleBox">
  580. <div>
  581. <!-- <div class="translatable_hardware_mode">Graphical Mode</div>
  582. <i class="downboxdown"></i> -->
  583. <ul class="Hardware2">
  584. <!-- <li class="translatable_iot_module">IoT Module</li> -->
  585. <li class="translatable_ai_module">A.I. Module</li>
  586. <li class="translatable_cloud_mode" style="display: none;"
  587. onclick='toHref("//python-blockly.cocorobo.cn")'>Cloud Mode</li>
  588. <li class="translatable_javascript_mode" style="display: none;"
  589. onclick='toHref("//ai-blockly.cocorobo.cn")'>JavaScript Mode</li>
  590. </ul>
  591. </div>
  592. <div class="aaa" style="display: none;">
  593. <div class="translatable_code_mode">Code Mode</div>
  594. <i class="downboxdown" style="top: 41px;"></i>
  595. <ul class="Hardware2" style="top: 44px;">
  596. <li class="translatable_iot_module" onclick='toHref_own("/python?id=iot")'>IoT
  597. Module</li>
  598. <li class="translatable_ai_module" onclick='toHref_own("/python?id=ai")'>A.I.
  599. Module
  600. </li>
  601. <!-- <li class="translatable_cloud_mode"
  602. onclick='toHref("//python-blockly.cocorobo.cn")'>Cloud Mode</li> -->
  603. </ul>
  604. </div>
  605. <!-- <div><a href="//python-blockly.cocorobo.hk" style="color: #424242 !important;"
  606. class="translatable_cloud_mode">Cloud
  607. Mode</a></div>
  608. <div><a href="//ai-blockly.cocorobo.hk" style="color: #424242 !important;"
  609. class="translatable_javascript_mode">JavaScript Mode</a></div> -->
  610. </div>
  611. </div>
  612. </li>
  613. <li>
  614. <a id="model_download_modal" style="position:relative; display: none;">
  615. <!-- <i class="material-icons left" style="margin-right: 5px;font-size: 34px;">help_outline</i> -->
  616. <span class="translatable_models">Help</span>
  617. <img class="left nav-icon" src="./icons/nav_models.png">
  618. </a>
  619. <!-- <a id="nav_devices" class='dropdown-button lang_resize' style="position:relative">
  620. <span class="translatable_devices">Devices</span>
  621. <img class="left nav-icon" src="./icons/Devices.png">
  622. </a> -->
  623. </li>
  624. <!-- App Center demo -->
  625. <li>
  626. <a id="app_center_title" href="#app_center_modal" class="modal-trigger lang_resize"
  627. style="position:relative">
  628. <span id="app_center_title_demo">
  629. <span class="translatable_labscenter">Labs</span>
  630. <img class="left nav-icon" src="./icons/cocoblockly-navbar_labs-icon.png">
  631. </span>
  632. </a>
  633. </li>
  634. <li>
  635. <a id="nav_learn" class='dropdown-button lang_resize' data-activates="learn_board"
  636. style="position:relative">
  637. <!-- <i class="material-icons left" style="margin-right: 5px;font-size: 34px;">help_outline</i> -->
  638. <span class="translatable_learn_board">Files</span>
  639. <img class="left nav-icon" src="./icons/learn_nav_icon.png">
  640. </a>
  641. <ul id='learn_board' class='dropdown-content'>
  642. <li>
  643. <a href="//edu.cocorobo.cn/" target="_blank">
  644. <span class="translatable_cocoedu">Education Platform</span>
  645. </a>
  646. </li>
  647. <li class="divider"></li>
  648. <li>
  649. <a href="//xunlian.cocorobo.cn" target="_blank">
  650. <span class="translatable_learn_training">AI Training</span>
  651. </a>
  652. </li>
  653. <li class="divider"></li>
  654. <li>
  655. <a href="//biaoji.cocorobo.cn/" target="_blank">
  656. <span class="translatable_learn_labeling">AI Labeling</span>
  657. </a>
  658. </li>
  659. <li class="divider"></li>
  660. <li>
  661. <a href="//aihub.cocorobo.cn" target="_blank">
  662. <span class="translatable_learn_principle">Learn AI: Theory</span>
  663. </a>
  664. </li>
  665. <li class="divider"></li>
  666. <li>
  667. <a href="//aihub.cocorobo.cn/vision" target="_blank">
  668. <span class="translatable_learn_vision">Learn AI: Vision</span>
  669. </a>
  670. </li>
  671. <li class="divider"></li>
  672. <li>
  673. <a href="//aihub.cocorobo.cn/speech" target="_blank">
  674. <span class="translatable_learn_speech">Learn AI: Speech</span>
  675. </a>
  676. </li>
  677. <li class="divider"></li>
  678. <li>
  679. <a href="//aihub.cocorobo.cn/text" target="_blank">
  680. <span class="translatable_learn_text">Learn AI: Text</span>
  681. </a>
  682. </li>
  683. <li class="divider"></li>
  684. <li>
  685. <a href="//aihub.cocorobo.cn/art" target="_blank">
  686. <span class="translatable_learn_art">Learn AI: Art</span>
  687. </a>
  688. </li>
  689. </ul>
  690. </li>
  691. <li style=" display: none;">
  692. <!-- target="_blank" -->
  693. <a id="help" style="display: none;" class='dropdown-button lang_resize'
  694. href="//x.help.cocorobo.cn" style="position:relative">
  695. <!-- <i class="material-icons left" style="margin-right: 5px;font-size: 34px;">help_outline</i> -->
  696. <span class="translatable_help_board">Help</span>
  697. <img class="left nav-icon" src="./icons/nav_help.png">
  698. </a>
  699. </li>
  700. <!-- <li>
  701. <a target="_blank" id="nav_journal" class='dropdown-button lang_resize' href="/md.html"
  702. style="position:relative">
  703. <span class="translatable_journal">日志</span>
  704. <img class="left nav-icon" src="./icons/news.png">
  705. </a>
  706. </li> -->
  707. <li style="display: none;">
  708. <a id="help" target="_blank" href="//x-help.cocorobo.cn" style="position:relative">
  709. <!-- <i class="material-icons left" style="margin-right: 5px;font-size: 34px;">help_outline</i> -->
  710. <span class="translatable_help_board">Help</span>
  711. <img class="left nav-icon" src="./icons/nav_help.png">
  712. </a>
  713. <!-- <a id="nav_devices" class='dropdown-button lang_resize' style="position:relative">
  714. <span class="translatable_devices">Devices</span>
  715. <img class="left nav-icon" src="./icons/Devices.png">
  716. </a> -->
  717. </li>
  718. <li style="display: block;">
  719. <a id="local_storage" class='dropdown-button lang_resize' data-activates='local_saveOrOpen'
  720. style="position:relative">
  721. <span class="translatable_storage">Files</span>
  722. <img class="left nav-icon" src="./icons/local_storage.png">
  723. </a>
  724. <ul id='local_saveOrOpen' class='dropdown-content' style="top:62px">
  725. <li id="button_cloud" class='modal-trigger' href="#cloud_storage_modal">
  726. <span class="translatable_cloud_storage">Cloud</span>
  727. </li>
  728. <li class="divider"></li>
  729. <li id="button_load">
  730. <span class="translatable_import">Import</span>
  731. </li>
  732. <li class="divider"></li>
  733. <li id="button_save">
  734. <span class="translatable_export">Export</span>
  735. </li>
  736. </ul>
  737. <div id="fileImport" class="btn" style="display:none;">
  738. <input type="file" accept=".py">
  739. </div>
  740. <div id="xmlFileImport" class="btn" style="display:none;">
  741. <input type="file" accept=".xml">
  742. </div>
  743. <div id="pyFileImport" class="btn" style="display:none;">
  744. <input type="file" accept=".py">
  745. </div>
  746. <div id="allFileImport" class="btn" style="display:none;">
  747. <input type="file">
  748. </div>
  749. </li>
  750. <li>
  751. <a id="nav_language" class='dropdown-button lang_resize' data-activates='languages'
  752. style="position:relative">
  753. <span class="translatable_language">Language</span>
  754. <img class="left nav-icon" src="./icons/language2.png">
  755. </a>
  756. <ul id='languages' class='dropdown-content active'>
  757. <li style="display: none;" onclick="changeLanguage('en')">
  758. <a>English</a>
  759. </li>
  760. <li class="divider"></li>
  761. <li onclick="changeLanguage('zh-hant')">
  762. <a>繁体中文</a>
  763. </li>
  764. <li class="divider"></li>
  765. <li onclick="changeLanguage('zh-hans')">
  766. <a>简体中文</a>
  767. </li>
  768. </ul>
  769. </li>
  770. <!-- <li>
  771. <span class="vertical-separator"></span>
  772. </li> -->
  773. <li>
  774. <a id="nav_account" href="#login_modal" class="modal-trigger lang_resize"
  775. style="position:relative"
  776. onclick="$('#api-key').html(''); $('#api-key').html($('#cloud_events').val()); document.getElementById('api-key').value = $('#cloud_events').val();">
  777. <span id="account_alias"></span>
  778. <button id="account_loginTitle" class="translatable_login_title"
  779. style="color: #fff;font-weight: 500;width: 80px;height: 35px;border-radius: 30px;background: #fff0;border: 2px solid #fff;margin: 0 0 0 15px;">Login</button>
  780. <!-- <span id="account_loginTitle" class="translatable_login_title">Login</span> -->
  781. <img class="nav-icon2 left" src="./icons/user.png">
  782. </a>
  783. </li>
  784. <!--<li>
  785. <a id="back_home" class="lang_resize" target="_blank" href="//cocorobo.cn/online/"
  786. style="position:relative">
  787. <img class="nav-icon2" src="./icons/home_icon.png">
  788. </a>
  789. </li> -->
  790. </ul>
  791. </div>
  792. </nav>
  793. <!-- shadow -->
  794. <div id="main_shadow" class="shadowbox" style="display:none;">
  795. <div id="shadow_content" class="shadow_container">
  796. <div class="shadow_top">
  797. <img src="./images/drag_import.png" style="width:200px">
  798. <p class="translatable_drag_import">Drag and drop your file to here</p>
  799. </div>
  800. </div>
  801. </div>
  802. <!-- Content -->
  803. <div id="main_content" style=" width:100%;">
  804. <div id="term" style=" width:100%; height:70%;display:none">
  805. </div>
  806. <div style="height:100%;" id="blockpy-div">
  807. <div>
  808. <div id='blockpy-content' style="display: flex;width: 100vw;">
  809. <div class="blockpy-editor" style="display:none;">
  810. <div class="white blockpy-blocks blockpy-editor-menu"> <img class="fullscreenIcon"
  811. src="./images/icon-fullscreen.svg"> <img class="fullscreenIcon hidden"
  812. src="./images/icon-fullscreen-exit.svg">
  813. <div class='blockly-div' style="width:100%;height:100%;"></div>
  814. </div>
  815. </div>
  816. <div id="py-editor" class="blockpy-editor card-panel"
  817. style='height:100%;display:block;overflow:auto;float:left;border-right:1px solid #ccc;width: 66.7%;height: calc(100vh - 111px);'>
  818. <div class="card-content" style="position:relative;overflow:auto;height: 100% !important;"
  819. id="python_box">
  820. <div class="blockpy-toolbar" style="position: relative;height: 100%;">
  821. <div class='blockpy-text blockpy-editor-menu'>
  822. <div class='blockpy-text-sidebar'></div>
  823. <textarea readonly class='codemirror-div language-python'></textarea>
  824. </div>
  825. <div style="display: none;" class="edit" id="edit"></div>
  826. </div>
  827. </div>
  828. </div>
  829. <p id="left_move_right"></p>
  830. <div id='sss' style="display:block;overflow: hidden;width: 32.6%;min-width: 470px;">
  831. <div class='blockpy-content-left card-panel card' id="mouseMove-top"
  832. style='display: block;background: #f8f8f8;height: calc(100% - 235px);position:relative;'>
  833. <div class="card-header"
  834. style='position:relative;height: 60px;line-height: 60px;background: #f1f2f5; border-bottom: unset;'>
  835. <span id="Serial_Interaction" onclick="serialSwich('Serial_Interaction')"
  836. class="header-text translate-code translatable_Serial_Interaction switch_box switch_select">串口交互窗</span>
  837. <span id="serial_plotter"
  838. class="translatable_serial_plotter header-text translate-code switch_box1 switch_box"
  839. onclick="serialSwich('serial_plotter')">The
  840. data to print
  841. </span>
  842. <i id="repl_delete" class="material-icons sketch_name_icon"
  843. style="cursor: pointer;position: relative;top: 15px;display: none;">delete</i>
  844. <!-- <div class="editDiv" id="editDiv" style="top: 0;">
  845. <input type="checkbox" id="toggle-button">
  846. <label for="toggle-button" class="button-label">
  847. <span class="circle"></span>
  848. <span class="text on"></span>
  849. <span class="text off"></span>
  850. </label>
  851. </div> -->
  852. <a class="copy_code" style="position:absolute;top: 5px;right: 75px;"
  853. data-clipboard-action="copy">
  854. <img src="./images/icon-copy.png" style="width: 33px;margin-top:
  855. 7px;"> </a>
  856. <a class="blockpy-toolbar-download" style="position:absolute;top: 5px;right:
  857. 39px;"> <img src="./images/icon-downward.png"
  858. style="width: 33px;margin-top: 7px;"> </a>
  859. <a class="blockpy-toolbar-upload" style="position:absolute;top: 5px;right: 5px;">
  860. <img src="./images/upload.png" style="width: 33px;margin-top: 7px;"> </a>
  861. <img class="fullscreenIcon hidden" src="./images/icon-fullscreen.svg">
  862. <img class="fullscreenIcon hidden" src="./images/icon-fullscreen-exit.svg">
  863. </div>
  864. <div class="card-content"
  865. style="min-width:570px;position:relative;height: calc(100% - 60px);overflow:hidden;padding: 0 10px;background: #000;"
  866. id="repl_box">
  867. <div class="blockpy-toolbar" id="terminal" style="display:block;height: 99%;">
  868. <iframe id="webadb_iframe" src="/ya-webadb/apps/demo/out/shell.html"
  869. frameborder="0" style="width: 100%;height: 100%;" scrolling="no"
  870. allow="camera *; fullscreen *;fullscreen 'src'">
  871. </iframe>
  872. <div id="wabadb_iframe_model" class="hidden"></div>
  873. </div>
  874. </div>
  875. <div class="blockpy-toolbar hidden" id="serial_plotter_content"
  876. style="height: calc(99% - 57px);user-select: text;">
  877. <div class="editDiv" style="width: 100%;position: sticky;top: 0px;height: 100%;">
  878. <span class="translatable_serial_plotter serial-active"
  879. onclick="switchSerial('2')">终端显示</span>
  880. <span class="translatable_image_transmission"
  881. onclick="switchSerial('1')">图传</span>
  882. <div id="repl_box_content"
  883. style="height: calc(100% - 30px);background: rgb(255, 255, 255);overflow-y: auto;">
  884. </div>
  885. <div style="width: 100%;height: calc(100% - 30px);display: none;overflow-y: auto;background: rgb(255, 255, 255);position: relative;"
  886. id="image_transmission">
  887. <!-- <img id="image_transmission_canvas" style="width:100%;"> -->
  888. <canvas id="image_transmission_canvas" style="width:100%;height:100%">
  889. </div>
  890. </div>
  891. </div>
  892. <!-- <a class="copy_code" style="position:absolute;top:160px;right:70px;z-index:999;cursor:pointer;" data-clipboard-action="copy"> <img src="./images/icon-copy.svg" width="24px"> </a> <div class="blockpy-toolbar-download" style="position:absolute;top:160px;right:95px;z-index:999;cursor:pointer;"> <img src="./images/icon-downward.svg" width="24px"> </div> -->
  893. </div>
  894. <p id="mouseMove"></p>
  895. <div id="mouseMove-bottom" class='blockpy-content-left card-panel card'
  896. style='display: block;background: #f8f8f8;min-height: 225px;position:relative;'>
  897. <div class="card-header" style='height: 60px;line-height: 60px;background: #f1f2f5;'>
  898. <!-- http://help.cocorobo.cn/#/getting-started/info target="_blank"-->
  899. <div style='float:right;'>
  900. <a class="header-link upload_instruction" style="display: none;" href="#"
  901. data-tooltip-id="61c522fa-be27-2a3e-1f2d-cde212348740">
  902. <img src="./icons/instruction.png">
  903. </a>
  904. <a id="plugin_download" style="display: none;" class="header-link"
  905. href="javaScript:(0)"
  906. data-tooltip-id="9e546554-688a-01c7-cde3-faaff99b557d"> <img
  907. src="./icons/plugin_download.png">
  908. <img id="plugin_download_new"
  909. style="position:absolute;height:10px;left:3px;top:0px;display:none;"
  910. src="./icons/plugin_download_new.png">
  911. </a>
  912. <a style="display: none;" href="#iframe" class="modal-trigger header-link"
  913. id="showIframe">
  914. <img src="./icons/firmware.png">
  915. </a>
  916. <a href="#qrCode" class="modal-trigger header-link" id="">
  917. <i id="QRCodeIcon" style="margin-top: 11px;"
  918. class="material-icons sketch_name_icon hidden">wifi</i>
  919. </a>
  920. <a href="javascript:;" style=" display: none;" id="updatePython"
  921. class="modal-trigger header-link" style="display: none;">
  922. <img src="./icons/加载.png">
  923. </a>
  924. <label class="hidden"><input type="checkbox" class="filled-in" />
  925. <span class="translatable_Adapter_fill_connected filled-in_nocheked"
  926. style="color: #26a69a;font-size: 17px;font-weight: 600;">Adapter is
  927. disconnected</span>
  928. </label>
  929. </div>
  930. <!--<span class="header-icon"><img style="width: 30px;margin: 8px 8px 8px 20px;" src="./images/zhixing.png"> </span>-->
  931. <span class="header-text translate-code translatable_title_device"
  932. style='font-weight: 800;font-size: 20px;margin-left: 25px;'>Device</span>
  933. <a href="#webadbIframeFile" id="message_file" class="modal-trigger"
  934. style="position: relative;top: 5px;display: none;">
  935. <i class="material-icons sketch_name_icon">create_new_folder</i>
  936. </a>
  937. <div style="display: inline-block;margin-left: 20px;"><select
  938. class="select-connected " id="select-connected">
  939. <option class="select-connected translatable_select_connecteds"
  940. style="color: #000;">The
  941. cable to upload</option>
  942. <option style="color: #000;" class="translatable_no_select_connecteds">
  943. Wireless cable
  944. upload</option>
  945. </select></div>
  946. <!-- inline-block -->
  947. <div id="discnt_icon" style="display:inline-block;">
  948. <a href="#env_detect" class="modal-trigger"><img
  949. style="height:17px;margin-left:8px;transform:translateY(2px);"
  950. src="./icons/uploader_disconnect.png"></a>
  951. </div>
  952. <div id="cnt_icon" style="display:none;"><img
  953. style="height:17px;margin-left:8px;transform:translateY(2px);"
  954. src="./icons/uploader_connect.png"></div>
  955. <div id="webadbErro" style="display: none;">
  956. <i style="color: red;position: absolute;top: 17px;"
  957. class="material-icons sketch_name_icon hidden">error</i>
  958. </div>
  959. </div>
  960. <div class="card-content" style="padding:8px 10px;width:100%;">
  961. <div class="row" style="margin-bottom: 5px;">
  962. <div class="col s12"><img id="error-btn" class="activator"
  963. src="./icons/error.png">
  964. <span id="status_bar">
  965. <span id="status_txt"
  966. class="translatable_statusNotConn">模块已断开,请重新连接。</span>
  967. </span>
  968. </div>
  969. </div>
  970. <div class="row">
  971. <div class="progress" style="margin:7px 0;">
  972. <div class="determinate blue" style="width:0%;"></div>
  973. </div>
  974. </div>
  975. <div class="row">
  976. <div class="col s8" style="display: flex;">
  977. <button id="webadb_connect" class="webadb_connect_class btn blue " disabled
  978. onclick="webadbConnect()">连接</button>
  979. <input id="IP" type="text" placeholder="请输入ip地址" style="display: none;">
  980. </div>
  981. <div class="col s4">
  982. <button id="webadb_add" style="width:100%;"
  983. class="translatable_addDevice btn blue"
  984. onclick="addWebadb()">添加</button>
  985. </div>
  986. </div>
  987. <div class="row btn-network" style="display: none;">
  988. <div class="col s6" style="padding-right:1px;">
  989. <div class="select-wrapper initialized"><span class="caret">▼</span><input
  990. type="text" class="select-dropdown" id="select_dropdown"
  991. readonly="true"
  992. data-activates="select-options-eca84f35-6884-7dc4-9d8b-c14115abe698"
  993. value="检测不到连接端口">
  994. <ul id="select-options-eca84f35-6884-7dc4-9d8b-c14115abe698" class="dropdown-content
  995. select-dropdown ">
  996. <li class="disabled "><span>检测不到连接端口</span></li>
  997. </ul>
  998. <!-- <select id="ports"
  999. data-select-id="eca84f35-6884-7dc4-9d8b-c14115abe698"
  1000. class="initialized">
  1001. <option value="null" disabled="">检测不到连接端口</option>
  1002. </select> -->
  1003. </div>
  1004. </div>
  1005. </div>
  1006. <div class="row btn-network hidden" style="display: none;">
  1007. <div class="col cs6" style="padding-right:1px;width:100%">
  1008. <div class="select-wrapper initialized" style='float: left;width: 45%;'>
  1009. <input type="text" class="select-dropdown" data-activates=""
  1010. id='ipAddress' placeholder="请输入ip地址">
  1011. </div>
  1012. <div style='display:inline-block'><a onclick='button_click();' class="waves-effect waves-light
  1013. btn blue" style="margin-left: 0.5rem;margin-top: 4px;"><span
  1014. id="ConnectBtn">Connect
  1015. </spanbutton_click></a>
  1016. </div>
  1017. </div>
  1018. </div>
  1019. <div class="row" style="margin-top: 2%">
  1020. <div id="uploader-btns" class="col s8" style="display: flex;">
  1021. <div id="runCode" onclick="run_code()" style="width: 100%;" class="waves-effect
  1022. waves-light btn blue disabled">
  1023. <i style="cursor: pointer;" class="fa fa-play-circle"
  1024. aria-hidden="true"></i>
  1025. <span class="translatable_runCode"></span>
  1026. </div>
  1027. <!-- onclick="uploadpyfile()" -->
  1028. <a id="uploadpy" class="waves-effect
  1029. waves-light btn blue disabled" style="margin-left:0.5rem;width: 100%;">
  1030. <i style="cursor: pointer;" class="fa fa-upload" aria-hidden="true"></i>
  1031. <span class="translatable_uploadFiles"></span>
  1032. </a>
  1033. <a id="backHome" onclick="backHome()" class="waves-effect
  1034. waves-light btn blue disabled"
  1035. style="margin-left:0.5rem;width: 100%;">
  1036. <img src="./icons/stop.png" style="top:6px">
  1037. <span class="translatable_resetMainUI">返回菜单</span>
  1038. </a>
  1039. <li id="changeRunCuploadFilesode"
  1040. style="display: none;margin-right:0.5rem;display: none;">
  1041. <ul id="localsssssaveOrOpen" class="dropdown-content active">
  1042. <li style="padding: 14px 16px;" onclick="uploadfile(true)">
  1043. <a>开机启动可视化菜单界面</a>
  1044. </li>
  1045. <li style="padding: 14px 16px;" onclick="uploadfile(false)">
  1046. <a>开机运行上次的程序</a>
  1047. </li>
  1048. </ul>
  1049. <a id="qiehuanbtn"
  1050. class="qiehuanbtn btn dropdown-trigger blue lang_resize dropdown-button disabled"
  1051. data-activates="localsssssaveOrOpen"><span
  1052. id="runCuploadFilesode">更换启动模式</span><i
  1053. class="material-icons right"
  1054. style="margin-left: 0;">arrow_drop_down</i></a>
  1055. </li>
  1056. <!-- <a id="resetMainUIBtn" onclick="resetmainUI()" class="waves-effect
  1057. waves-light btn blue disabled"
  1058. style="margin-right:0.5rem;">
  1059. <span id="resetMainUI">Reset Main UI</span></a> -->
  1060. <!-- <div style="float: right;">
  1061. <a id="poweroff" onclick="systemCommand('poweroff')" class="waves-effect
  1062. waves-light btn blue disabled"
  1063. style="margin-right:0.5rem;"><span
  1064. class="translatable_shutDown">关机</span></a>
  1065. </div>
  1066. <div style="float: right;">
  1067. <a id="resetDevice" onclick="systemCommand('reboot')" class="waves-effect
  1068. waves-light btn blue disabled" style="margin-right:0.5rem;"><span
  1069. class="translatable_resetDevice">Reset
  1070. Device</span></a>
  1071. </div> -->
  1072. </div>
  1073. <div class="col s4">
  1074. <div class="systemBtn" style="display:flex;">
  1075. <a id="resetDevice" onclick="systemCommand('reboot')" class="waves-effect
  1076. waves-light btn blue disabled"
  1077. style="width:100%;margin-right:0.5rem;"><span
  1078. class="translatable_resetDevice">Reset
  1079. Device</span></a>
  1080. <a id="poweroff" onclick="systemCommand('poweroff')" class="waves-effect
  1081. waves-light btn blue disabled" style="width:100%;"><span
  1082. class="translatable_shutDown">关机</span></a>
  1083. </div>
  1084. </div>
  1085. <a onclick="getmcnty()" class="waves-effect waves-light btn blue"
  1086. style="display:none"><span id="gettype">Upload
  1087. files</span></a>
  1088. </div>
  1089. </div>
  1090. <div class="blockpy-toolbar btn-toolbar hidden" style="align-self:center;margin: 20px 8px 0;text-align:
  1091. center;">
  1092. <div class="btn-toolbar-title">直接将代码上传到电子模块中<div></div>
  1093. </div>
  1094. <div class="btn-toolbar-inputbox"><input type="text" name="webrepl_url" id="url"
  1095. placeholder="Select a device"><input type="submit" id='button'
  1096. value='Connect' onclick='button_click(); return false'></div>
  1097. <div class="btn-toolbar-btnbox"></div>
  1098. <!--<button onclick='sendfile();' style='width: 80%;background: #6e83cc !important;margin-top: 15px;font-size: 16px;height:45px' class='waves-effect waves-light btn blue blockpy-run translate-execute'>上傳</button>-->
  1099. <!--<button class='waves-effect waves-light btn blue blockpy-run translate-execute'>UPLOAD</button>-->
  1100. <!-- <button href="#aiymodal" class='waves-effect waves-light btn blue modal-trigger'>run on aiy</button> -->
  1101. <!--<button id="resetAll" class='waves-effect waves-light btn blue translate-reset' style="float:right;">reset</button> <button id="clearOutput" class='waves-effect waves-light btn blue translate-clear' style="float:right;margin-right:5px;">clear</button>-->
  1102. </div>
  1103. <div class="blockpy-toolbar btn-toolbar hidden" style="align-self:center;margin: 20px 8px 0;text-align:
  1104. center;">
  1105. <div class="btn-toolbar-title2">直接将代码上传到电子模块中 <div></div>
  1106. </div>
  1107. <div class="btn-toolbar-inputbox2"><select>
  1108. <option>检测不到连接端口</option>
  1109. </select></div>
  1110. </div>
  1111. <div class="card-reveal grey darken-3 white-text" style="padding:8px 13px;">
  1112. <div class="card-title" style="height:18%;margin-bottom:2px;">
  1113. <span class="translatable_errmsg" style="font-weight:normal;">Error
  1114. Message</span>
  1115. <a id="err-copy" style="display:inline-block;margin-left:26px;"
  1116. data-clipboard-action="copy" data-clipboard-target="#err-msg">
  1117. <i class="material-icons right"
  1118. style="color:#fff;font-size:18px;cursor:pointer;">content_copy</i>
  1119. </a>
  1120. <i class="material-icons right" style="cursor:pointer;">close</i>
  1121. </div>
  1122. <div style="width:100%;height:78%;">
  1123. <textarea readonly id="err-msg"
  1124. style="color:#fff;overflow:visible;font-family:consolas;font-size:14px;height:100%;resize:none;border:none;"></textarea>
  1125. </div>
  1126. </div>
  1127. </div>
  1128. <div class="card plugin_options options_hide">
  1129. <div class="card-content">
  1130. <div>
  1131. <span id="downloadver" style="display:none">1.0.10</span>
  1132. <a download=""
  1133. href="//cocorobo.cn/downloads/CocoBlocklyXUploaderInstallerv1.0.17.pkg"
  1134. target="_black"><img src="./icons/mac-icon.png">Mac </a>
  1135. <a download=""
  1136. href="//cocorobo.cn/downloads/CocoBlocklyXUploaderInstallerv1.0.17.exe"
  1137. target="_black"><img src="./icons/windows-icon.png">Windows </a>
  1138. </div>
  1139. </div>
  1140. </div>
  1141. </div>
  1142. </div>
  1143. </div>
  1144. <div class='modal blockpy-popup'>
  1145. <div class='modal-content' id='modal-message'>
  1146. <div class='modal-header'>
  1147. <h4 class='modal-title'>Dynamic Content</h4>
  1148. </div>
  1149. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;">
  1150. <div class='modal-body' style='width:100%;min-height:200px;'> </div>
  1151. </div>
  1152. <div class='modal-footer'> <button
  1153. class='waves-effect waves-light btn blue modal-close translate-close'>close</button>
  1154. </div>
  1155. </div>
  1156. <div id="aiymodal" class="modal">
  1157. <div class="modal-content" height="50%">
  1158. <h4>Run on AIY</h4>
  1159. <p>This feature gives you the ability to run your AIY python code directly to the AIY Vision Kit
  1160. or Voice Kit, follow the instruction below:</p>
  1161. <div style="margin-top:30px;"> <b
  1162. style="background-color:#fff; border-radius:25px;padding:
  1163. 10px 20px; box-shadow: 1px 5px 23px -10px rgba(0,0,0,0.59);">Step 1</b> </div>
  1164. <div style="margin-top:30px;"> Run the <b data-position="bottom" data-tooltip="I am a
  1165. tooltip" class="tooltipped">AIY Helper</b>, <a id="AIYdownload"
  1166. style="cursor:pointer;">Download</a> the python code to local, <br />make sure you are
  1167. in the same network with the Google AIY Vision Kit. </div>
  1168. <div style="margin-top:30px;"> <b
  1169. style="background-color:#fff; border-radius:25px;padding:
  1170. 10px 20px; box-shadow: 1px 5px 23px -10px rgba(0,0,0,0.59);">Step 2</b> </div>
  1171. <div class="input-field col s9" style="margin-top:0px;"> Enter the IP Address of your Google
  1172. AIY Kit: <div class="input-field inline"> <input id="aiyip_input" class="validate">
  1173. </div> <a id="aiyModalRun" onclick="functionSSH();" style="margin-left:10px;"
  1174. class="waves-effect blue waves-light btn">Run</a> <a id="aiyModalStop"
  1175. onclick="functionSSHstop();" style="margin-left:10px;" class="waves-effect blue
  1176. waves-light btn">Stop</a>
  1177. <!-- <a id="aiyModalRun" style="margin-left:10px;" class="waves-effect blue waves-light btn">Run</a> -->
  1178. <!-- <a id="aiyModalStop" style="margin-left:10px;" class="waves-effect blue waves-light btn">Stop</a> -->
  1179. </div>
  1180. <div id="modal_preload" style="display:none">
  1181. <div style="position:relative;top:50%;transform:translateY(-50%);height:128px;width:128px;margin:0
  1182. auto;">
  1183. <div class="preloader-wrapper big active" style="top:0;left:0">
  1184. <div class="spinner-layer spinner-blue-only">
  1185. <div class="circle-clipper left">
  1186. <div class="circle"></div>
  1187. </div>
  1188. <div class="gap-patch">
  1189. <div class="circle"></div>
  1190. </div>
  1191. <div class="circle-clipper right">
  1192. <div class="circle" style="border-width: 8px;"></div>
  1193. </div>
  1194. </div>
  1195. </div>
  1196. </div>
  1197. </div>
  1198. </div>
  1199. <div class="modal-footer" style="margin-top:-20px;"> <a href="#!" class="modal-close
  1200. waves-effect waves-green btn-flat">Close</a> </div>
  1201. </div>
  1202. </div>
  1203. <ul id="icon-tool" class="card-icon-area">
  1204. <li class="card-icon active hidden" onclick="changeSideCard('code')">
  1205. <i class="material-icons media">build</i>
  1206. </li>
  1207. <li class="card-icon hidden" onclick="changeSideCard('monitor')">
  1208. <i class="material-icons ">search</i>
  1209. </li>
  1210. <!-- <li class="card-icon" onclick="changeSideCard('fullmode')">
  1211. <i class="material-icons ">crop_free</i>
  1212. </li> -->
  1213. <li id="bar_python" class="card-icon">
  1214. <a href="/python" target="_blank">
  1215. <img class="bar-icon" src="./icons/python_icon.png" style="height: 30px;">
  1216. </a>
  1217. </li>
  1218. <li id="lang-tool" class="card-icon">
  1219. <i class="material-icons">translate</i>
  1220. </li>
  1221. <li id="apps_center" class="card-icon modal-trigger" href="#app_center_modal" style="display:none;">
  1222. <img class="bar-icon Img-filter" src="./icons/cocoblockly-navbar_labs-icon.png">
  1223. </li>
  1224. <li id="bar_storage" class="card-icon">
  1225. <img class="bar-icon" src="./icons/storage_icon-blockly-widget.png">
  1226. </li>
  1227. <!-- http://help.cocorobo.cn/ target="_blank"-->
  1228. <li id="bar_help" style="display: none;" class="card-icon">
  1229. <a href="//x-help.cocorobo.cn" target="_blank">
  1230. <img class="bar-icon" src="./icons/help_icon-blockly-widget.png">
  1231. </a>
  1232. </li>
  1233. <li id="bar_ai" class="card-icon" style="display: none;"
  1234. onclick="$('.MouduleBox')[1].style.display = 'block';">
  1235. <a href="#">
  1236. <img class="bar-icon" src="./icons/AIicon.png">
  1237. </a>
  1238. </li>
  1239. <!-- <li id="bar_t" class="card-icon" onclick="$('#ai_tt')[0].style.display = 'block';">
  1240. <img class="bar-icon" src="./icons/l.png">
  1241. </li> -->
  1242. </ul>
  1243. <a id='side-lang-trigger' class='dropdown-button' style="top:110px" data-activates='side-lang'></a>
  1244. <!-- <div id='side-lang-trigger'>
  1245. <a class='dropdown-trigger' data-target='side-lang'></a>
  1246. </div> -->
  1247. <ul id="side-lang" class='dropdown-content'>
  1248. <li onclick="changeLanguage('en')">
  1249. <a>English</a>
  1250. </li>
  1251. <li class="divider"></li>
  1252. <li onclick="changeLanguage('zh-hant')">
  1253. <a>繁体中文</a>
  1254. </li>
  1255. <li class="divider"></li>
  1256. <li onclick="changeLanguage('zh-hans')">
  1257. <a>简体中文</a>
  1258. </li>
  1259. </ul>
  1260. <a id='side-storage-trigger' class='dropdown-button' style="top:200px" data-activates='side-storage'></a>
  1261. <ul id='side-storage' class='dropdown-content'>
  1262. <li class='modal-trigger' href="#cloud_storage_modal" style="display:none;">
  1263. <span class="translatable_cloud_storage">Cloud</span>
  1264. </li>
  1265. <li class="divider"></li>
  1266. <li class='modal-trigger' href="#Storage_import_modal">
  1267. <span class="translatable_localimport">Import</span>
  1268. </li>
  1269. <li class="divider"></li>
  1270. <li class='modal-trigger' href="#Storage_export_modal">
  1271. <span class="translatable_localexport">Export</span>
  1272. </li>
  1273. </ul>
  1274. <div id='side-file-trigger'>
  1275. <a class='dropdown-trigger' data-target="side-file"></a>
  1276. </div>
  1277. <ul id='side-file' class='dropdown-content blockpy-toolbar'>
  1278. <li id="side_button_load">
  1279. <span class="translate_import">Import</span>
  1280. </li>
  1281. <li class="divider"></li>
  1282. <li id="side_button_save">
  1283. <span class="translate_export">Export</span>
  1284. </li>
  1285. </ul>
  1286. </div>
  1287. <footer id="footer">
  1288. <div style="padding:0 1.5rem">
  1289. <div>
  1290. <span class="translatable_copyright_left" style="color:#fff;">可可乐博(深圳)科技有限公司 © </span>
  1291. <span id="copyright_middle" style="color:#fff;"> 2023</span>
  1292. <span class="translatable_copyright_right" style="color:#fff;">版权所有</span>
  1293. </div>
  1294. <div style="">
  1295. <span id="update_log" style="cursor: pointer;">
  1296. <span class="translatable_update_logs" style="color: #fff;">更新日志</span>
  1297. <i class="material-icons sketch_name_icon"
  1298. style="margin-left:5px;cursor: pointer;position: relative;top: 7px;">message</i>
  1299. </span>
  1300. <!-- <span>
  1301. <a id="help" target="_blank" href="//x-help.cocorobo.cn" style="position:relative">
  1302. <span class="translatable_help_board" style="color: #fff;">Help</span>
  1303. <img class="left nav-icon" src="./icons/nav_help.png" style="height: 20px;margin-top: 3px;">
  1304. </a>
  1305. </span> -->
  1306. <span class="vertical-separator" style="padding: 4px 6px 4px 6px;"></span>
  1307. <span>CocoBlockly Pi</span>
  1308. </div>
  1309. </div>
  1310. </footer>
  1311. <!-- Wetech -->
  1312. <div id="WeTech_Modal" class="modal WeTech_Modal modal_closes" style="width:730px">
  1313. <div class="modal-content">
  1314. <span class="modal_close" style="padding: 5px;"><i class="small material-icons"
  1315. style="font-size: 1.5rem;">close</i></span>
  1316. <h4 class="translatable_app_center_WeTech" style="width: 80%;">WeTech</h4>
  1317. <div id="wetech_no_login" style="display: none;height: 300px;padding-top: 50px;padding-bottom: 50px;">
  1318. <div style="text-align: center;">
  1319. <div>
  1320. <span id="weTech_user">用户名:</span>
  1321. <input type="text" class="wetechUsername" id="WeTech_username" />
  1322. </div>
  1323. <div>
  1324. <span id="weTech_pass">密&nbsp;&nbsp;&nbsp;码:</span>
  1325. <input type="password" class="wetechPassword" id="WeTech_password" />
  1326. </div>
  1327. </div>
  1328. <div style="text-align: center;margin-top: 20px;">
  1329. <button type="button" id="wetechLogin" class="loginbtn" onclick="wetech_login()"
  1330. style="cursor: pointer;">登录</button>
  1331. </div>
  1332. <div style="text-align: center;margin-top: 16px;">
  1333. <span style="color: red;" id="loginError"></span>
  1334. </div>
  1335. </div>
  1336. <div id="wetech_logined" style="display: none;">
  1337. <div style="display: flex;justify-content: flex-end;margin-bottom:10px;"><span id="usernames"
  1338. style="margin-right: 10px;"></span><a style="cursor: pointer;"
  1339. onclick="wetech_logout()"><span id="weTech_logout">退出</span></a></div>
  1340. <div style="display: flex;justify-content: space-between;">
  1341. <div style="width: 49%;border: 1px solid black;height: 300px;overflow-x: hidden;overflow-y: scroll;padding: 6px;padding-left: 10px;"
  1342. id="gateway">
  1343. </div>
  1344. <div style="width: 49%;border: 1px solid black;height: 300px;overflow-x: hidden;overflow-y: scroll;padding: 6px;padding-left: 7px;"
  1345. id="device">
  1346. </div>
  1347. </div>
  1348. </div>
  1349. </div>
  1350. </div>
  1351. <!-- app center modal -->
  1352. <div id="app_center_modal" class="modal">
  1353. <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
  1354. class="small material-icons" style="font-size: 1.5rem;"
  1355. onclick="$('#app_center_modal').modal('close')">close</i></span>
  1356. <!-- <div id="TM_login"></div> -->
  1357. <div class="modal-content" style="padding: 20px;">
  1358. <span class="modal_close" style="padding: 5px;">
  1359. <i class="small material-icons" style="font-size: 1.5rem;"
  1360. onclick="$('#app_center_modal').modal('close')">close</i>
  1361. </span>
  1362. <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Pi Labs</h4>
  1363. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  1364. <div class="row" style="text-align:left;">
  1365. <div style="float:center;" class="col s3">
  1366. <p class="translatable_app_center_all_categories" style="padding-bottom:0px;font-weight: bold">
  1367. All
  1368. Categories:</p>
  1369. <div id="center_categories" class="collection ">
  1370. <a name="center_ai"
  1371. class="collection-item grey-text text-darken-4 active translatable_app_center_ai"
  1372. onclick="ACCategorySelect(1)">Artificial Intelligence</a>
  1373. <a name="center_iot"
  1374. class="collection-item grey-text text-darken-4 translatable_app_center_iot"
  1375. onclick="ACCategorySelect(2)">Internet of Things</a>
  1376. <a name="center_robot"
  1377. class="collection-item grey-text text-darken-4 translatable_app_center_robot"
  1378. onclick="ACCategorySelect(3)">Robot Controller</a>
  1379. <a name="center_science"
  1380. class="collection-item grey-text text-darken-4 translatable_app_center_science"
  1381. onclick="ACCategorySelect(4)">Science Experiements</a>
  1382. <a name="center_game"
  1383. class="collection-item grey-text text-darken-4 translatable_app_center_games"
  1384. onclick="ACCategorySelect(5)">Games</a>
  1385. <a name="center_arvr"
  1386. class="collection-item grey-text text-darken-4 translatable_app_center_arvr"
  1387. onclick="ACCategorySelect(6)">AR/VR</a>
  1388. </div>
  1389. </div>
  1390. <div style="float:center;padding-top:5px; overflow-y:auto;max-height:400px" class="col s9">
  1391. <div id="center_ai" class=" col s12">
  1392. <h5 class="translatable_app_center_ai">Artificial Intelligence</h5>
  1393. <ul class="tabs">
  1394. <li class="tab col s2"><a href="#center_ai_vision"
  1395. class="translatable_app_center_tab_vision active">Vision</a></li>
  1396. <li class="tab col s2"><a href="#center_ai_speech"
  1397. class="translatable_app_center_tab_speech">Speech</a></li>
  1398. <li class="tab col s2"><a href="#center_ai_text"
  1399. class="translatable_app_center_tab_text">Text</a></li>
  1400. </ul>
  1401. <div id="center_ai_vision" class="col s12">
  1402. <div class="row">
  1403. <div style="float:left;" class="col s6">
  1404. <div class="card">
  1405. <div class="card-image waves-effect waves-block waves-light">
  1406. <img class="" src="icons/AppCenter_ai_teachableMachine.jpg"
  1407. style="border: solid 1.2px lightgray;">
  1408. </div>
  1409. <div class="card-content">
  1410. <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
  1411. <span id="ac-card-title"
  1412. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_Teachabel_Machine">Teachable
  1413. Machine</span>
  1414. <p class="">
  1415. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1416. href="#setting_teacher">Enter</a>
  1417. </p>
  1418. </div>
  1419. </div>
  1420. </div>
  1421. <div style="float:left;" class="col s6">
  1422. <div class="card">
  1423. <div class="card-image waves-effect waves-block waves-light">
  1424. <!-- <img class="activator" src="icons/app-center_ai_emotion.jpg"> -->
  1425. <img class="" src="icons/AppCenter_ai_emotion.jpg">
  1426. </div>
  1427. <div class="card-content">
  1428. <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
  1429. <span id="ac-card-title emotion_recognition_enter_button"
  1430. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_emotion_recognition">Emotion
  1431. Recognition</span>
  1432. <p class="">
  1433. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1434. href="#setting_webcam_capture_modal">Enter</a>
  1435. </p>
  1436. </div>
  1437. </div>
  1438. </div>
  1439. </div>
  1440. <div class="row">
  1441. <div style="float:left;" class="col s6">
  1442. <div class="card">
  1443. <div class="card-image waves-effect waves-block waves-light">
  1444. <!-- <img class="activator" src="icons/app-center_ai_emotion.jpg"> -->
  1445. <img class="" src="icons/AppCenter_ai_gesture_recognition.jpg">
  1446. </div>
  1447. <div class="card-content">
  1448. <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
  1449. <span id="ac-card-title emotion_recognition_enter_button"
  1450. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_gesture_recognition translatable_gesturesTitle">Gesture
  1451. Recognition</span>
  1452. <p class="">
  1453. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1454. href="#setting_gesture_recog_modal">Enter</a>
  1455. </p>
  1456. </div>
  1457. </div>
  1458. </div>
  1459. <div style="float:left;" class="col s6">
  1460. <div class="card">
  1461. <div class="card-image waves-effect waves-block waves-light">
  1462. <!-- <img class="activator" src="icons/app-center_ai_emotion.jpg"> -->
  1463. <img class="" src="icons/object_recognition_header.jpg">
  1464. </div>
  1465. <div class="card-content">
  1466. <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
  1467. <span id="ac-card-title emotion_recognition_enter_button"
  1468. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_object_recognition translatable_objectRecognition">Object
  1469. Recognition</span>
  1470. <p class="">
  1471. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1472. href="#setting_objectRecog">Enter</a>
  1473. </p>
  1474. </div>
  1475. </div>
  1476. </div>
  1477. <div style="float:left;" class="col s6">
  1478. <div class="card">
  1479. <div class="card-image waves-effect waves-block waves-light">
  1480. <!-- <img class="activator" src="icons/app-center_ai_emotion.jpg"> -->
  1481. <img class="" src="icons/posenet_recogition.png">
  1482. </div>
  1483. <div class="card-content">
  1484. <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
  1485. <span id="ac-card-title emotion_recognition_enter_button"
  1486. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_object_recognition translatable_posenetRecognition">Posenet
  1487. Recognition</span>
  1488. <p class="">
  1489. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1490. href="#setting_posenetRecog">Enter</a>
  1491. </p>
  1492. </div>
  1493. </div>
  1494. </div>
  1495. <div style="float:left;" class="col s6">
  1496. <div class="card">
  1497. <div class="card-image waves-effect waves-block waves-light">
  1498. <img class="" src="images/tm_with_pose.jpg"
  1499. style="border: solid 1.2px lightgray;">
  1500. </div>
  1501. <div class="card-content">
  1502. <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
  1503. <span id="ac-card-title"
  1504. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_Teachabel_Machine_posenet">Teachable
  1505. Machine (with Pose Recognition)</span>
  1506. <p class="">
  1507. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1508. href="#setting_teacher_ponsenet">Enter</a>
  1509. </p>
  1510. </div>
  1511. </div>
  1512. </div>
  1513. </div>
  1514. </div>
  1515. <div id="center_ai_speech" class="col s12">
  1516. <div style="float:center;" class="col s6">
  1517. <div class="card">
  1518. <div class="card-image waves-effect waves-block waves-light">
  1519. <img class="" src="icons/AppCenter_ai_speech.jpg">
  1520. </div>
  1521. <div class="card-content">
  1522. <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
  1523. <span id="ac-card-title"
  1524. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_speech_recognition">Speech
  1525. Recognition</span>
  1526. <p class="">
  1527. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1528. href="#setting_voice_input_modal">Enter</a>
  1529. </p>
  1530. </div>
  1531. </div>
  1532. </div>
  1533. </div>
  1534. <div id="center_ai_text" class="col s12">
  1535. <div style="float:center;" class="col s6">
  1536. <div class="card">
  1537. <div class="card-image waves-effect waves-block waves-light">
  1538. <img class="" src="./icons/AppCenter_comingSoon.jpg">
  1539. </div>
  1540. <div class="card-content">
  1541. <span id="ac-card-title"
  1542. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_wait_to_come">Comming
  1543. soon</span>
  1544. <p class="">
  1545. <!-- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button disabled" href="#">Enter</a> -->
  1546. </p>
  1547. </div>
  1548. </div>
  1549. </div>
  1550. </div>
  1551. </div>
  1552. <div id="center_iot" class=" col s12" style="display:none">
  1553. <h5 class="translatable_app_center_iot">Internet of Things</h5>
  1554. <!-- <div style="float:center;display: none;" class="col s6">
  1555. <div class="card">
  1556. <div class="card-image waves-effect waves-block waves-light">
  1557. <img class="" src="icons/WeTech.jpg">
  1558. </div>
  1559. <div class="card-content">
  1560. <span id="ac-card-title"
  1561. class="ac-card-title card-title activator grey-text text-darken-4 ">WeTech</span>
  1562. <p class="">
  1563. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1564. onclick='openLabs("#WeTech_Modal")'>Enter</a>
  1565. </p>
  1566. </div>
  1567. </div>
  1568. </div> -->
  1569. <div style="float:center;" class="col s6">
  1570. <div class="card">
  1571. <div class="card-image waves-effect waves-block waves-light">
  1572. <img class="" src="icons/AppCenter_iot_thingspeak.jpg">
  1573. </div>
  1574. <div class="card-content">
  1575. <!-- <span class="AI_card_content">3RD-PARTY APP</span> -->
  1576. <span id="ac-card-title"
  1577. class="ac-card-title card-title activator grey-text text-darken-4 ">ThingSpeak</span>
  1578. <p class="">
  1579. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1580. onclick='openLabs("//thingspeak.com")'>Enter</a>
  1581. </p>
  1582. </div>
  1583. </div>
  1584. </div>
  1585. <div style="float:center;" class="col s6">
  1586. <div class="card">
  1587. <div class="card-image waves-effect waves-block waves-light">
  1588. <img class="" src="icons/AppCenter_iot_ifttt.jpg">
  1589. </div>
  1590. <div class="card-content">
  1591. <!-- <span class="AI_card_content">3RD-PARTY APP</span> -->
  1592. <span id="ac-card-title"
  1593. class="ac-card-title card-title activator grey-text text-darken-4 ">IFTTT</span>
  1594. <p class="">
  1595. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1596. onclick='openLabs("//ifttt.com/maker_webhooks")'>Enter</a>
  1597. </p>
  1598. </div>
  1599. </div>
  1600. </div>
  1601. </div>
  1602. <div id="center_robot" class=" col s12" style="display:none">
  1603. <h5 class="translatable_app_center_robot">Robot Controller</h5>
  1604. <div style="float:center;" class="col s6">
  1605. <div class="card">
  1606. <div class="card-image waves-effect waves-block waves-light">
  1607. <img class="" src="./icons/AppCenter_comingSoon.jpg">
  1608. </div>
  1609. <div class="card-content">
  1610. <span id="ac-card-title"
  1611. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_wait_to_come">Comming
  1612. soon</span>
  1613. <p class="">
  1614. <!-- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button disabled" href="#">Enter</a> -->
  1615. </p>
  1616. </div>
  1617. </div>
  1618. </div>
  1619. </div>
  1620. <div id="center_science" class="col s12" style="display:none">
  1621. <h5 class="translatable_app_center_science">Science Experiements</h5>
  1622. <div style="float:center;" class="col s6">
  1623. <div class="card">
  1624. <div class="card-image waves-effect waves-block waves-light">
  1625. <img class="" src="./icons/AppCenter_comingSoon.jpg">
  1626. </div>
  1627. <div class="card-content">
  1628. <span id="ac-card-title"
  1629. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_wait_to_come">Comming
  1630. soon</span>
  1631. <p class="">
  1632. <!-- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button disabled" href="#">Enter</a> -->
  1633. </p>
  1634. </div>
  1635. </div>
  1636. </div>
  1637. </div>
  1638. <div id="center_game" class=" col s12" style="display:none">
  1639. <h5 class="translatable_app_center_games">Interactive Games</h5>
  1640. <div style="float:center;" class="col s6">
  1641. <div class="card">
  1642. <div class="card-image waves-effect waves-block waves-light">
  1643. <img class="" src="./icons/AppCenter_game_floppy-bird.jpg">
  1644. </div>
  1645. <div class="card-content">
  1646. <!-- <span class="AI_card_content">3RD-PARTY APP</span> -->
  1647. <span id="ac-card-title"
  1648. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_game_flappy">Floppy
  1649. bird</span>
  1650. <p class="">
  1651. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button "
  1652. href="https://cocorobo.cn/demo/floppybird/" target="_blank">Enter</a>
  1653. </p>
  1654. </div>
  1655. </div>
  1656. </div>
  1657. <div style="float:center;" class="col s6">
  1658. <div class="card">
  1659. <div class="card-image waves-effect waves-block waves-light">
  1660. <img class="" src="icons/AppCenter_game_space_lamb.jpg">
  1661. </div>
  1662. <div class="card-content">
  1663. <!-- <span class="AI_card_content">3RD-PARTY APP</span> -->
  1664. <span id="ac-card-title"
  1665. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_game_space_lamb">Space
  1666. Lamb</span>
  1667. <p class="">
  1668. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button "
  1669. onclick='openLabs("//spacelamb.12wave.com")'>Enter</a>
  1670. </p>
  1671. </div>
  1672. </div>
  1673. </div>
  1674. </div>
  1675. <div id="center_arvr" class=" col s12" style="display:none">
  1676. <h5 class="translatable_app_center_arvr">AR/VR</h5>
  1677. <div style="float:center;" class="col s6">
  1678. <div class="card">
  1679. <div class="card-image waves-effect waves-block waves-light">
  1680. <!-- <img class="activator" src="icons/app-center_ai_speech.jpg"> -->
  1681. <img class="" src="icons/AppCenter_comingSoon.jpg">
  1682. </div>
  1683. <div class="card-content">
  1684. <span id="ac-card-title"
  1685. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_wait_to_come">Comming
  1686. soon</span>
  1687. <p class="">
  1688. <!-- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button disabled" href="#">Enter</a> -->
  1689. </p>
  1690. </div>
  1691. </div>
  1692. </div>
  1693. </div>
  1694. </div>
  1695. </div>
  1696. </div>
  1697. </div>
  1698. <!--center game modal-->
  1699. <div id="center_game_modal" class="modal">
  1700. <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
  1701. class="small material-icons" style="font-size: 1.5rem;"
  1702. onclick="$('#center_game_modal').modal('close');$('#app_center_modal').modal('open');CCB.downloadModelUrl = '';">close</i></span>
  1703. <div id="TM_center_game" style="margin-top:10px;top:10%;position:relative"></div>
  1704. </div>
  1705. <!-- 显示Teachable Machine modal配置弹框 -->
  1706. <div id="setting_teacher" class="modal">
  1707. <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
  1708. class="small material-icons" style="font-size: 1.5rem;"
  1709. onclick="$('#setting_teacher').modal('close');$('#app_center_modal').modal('open')">close</i></span>
  1710. <div class="modal-content" style="padding: 20px;">
  1711. <span class="modal_close" style="padding: 5px;">
  1712. <i class="small material-icons" style="font-size: 1.5rem;"
  1713. onclick="$('#setting_teacher').modal('close');$('#app_center_modal').modal('open')">close</i>
  1714. </span>
  1715. <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Labs</h4>
  1716. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  1717. <div style="display:flex;justify-content:space-around;">
  1718. <div class="modal_setting_teacher_left setting_left_all">
  1719. <div class="card-image waves-effect waves-block waves-light">
  1720. <img class="" src="icons/AppCenter_ai_teachableMachine.jpg"
  1721. style="border: solid 1.2px lightgray;width: 100%;">
  1722. </div>
  1723. <div>
  1724. <span id="ac-card-title"
  1725. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_Teachabel_Machine"
  1726. style="font-size: 30px;">Teachable
  1727. Machine</span>
  1728. <p class="translatable_Teachabel_Machin_content">The trend of robot development is
  1729. artificial
  1730. intelligence. Deep learning is the frontier technology of intelligent robot and a new
  1731. topic
  1732. in the field of machine learning.Deep learning technology is widely used in agriculture,
  1733. industry, military, aviation and other fields, and the organic combination with machines
  1734. can
  1735. design intelligent robots with high working efficiency, high real-time and high
  1736. accuracy.
  1737. </p>
  1738. </div>
  1739. </div>
  1740. <div class="modal_setting_teacher_right setting_right_all">
  1741. <div class="translatable_computer_configuration"
  1742. style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
  1743. <span>Computer Configuration Requirements</span>
  1744. </div>
  1745. <div class="setting_border">
  1746. <p><span class="translatable_the_operating_system">Minimum Opearting System
  1747. version</span>:Windows (>Windows7), macOS (>10.11)</p>
  1748. <p><span class="translatable_resolution_of_the">Suggested Resolution
  1749. Supported</span>:1440*768
  1750. </p>
  1751. <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
  1752. <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
  1753. <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
  1754. <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
  1755. class="translatable_need">OK</span></p>
  1756. <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
  1757. class="translatable_no_need">NO</span></p>
  1758. </div>
  1759. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1760. href="#Teachable_Machine" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
  1761. </div>
  1762. </div>
  1763. </div>
  1764. </div>
  1765. <!--Teachable Machine modal-->
  1766. <div id="Teachable_Machine" class="modal TM_class">
  1767. <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
  1768. class="small material-icons" style="font-size: 1.5rem;"
  1769. onclick="$('#Teachable_Machine').modal('close');$('#setting_teacher').modal('open');">close</i></span>
  1770. <div id="TM_login" style="margin-top:10px;top:10%;position:relative"></div>
  1771. <div id="TM_iframe" style="height:100%; width:100%; display:none"></div>
  1772. <div id="teachable_modal" class="object_modal">
  1773. <img src="./gif/loading.gif"
  1774. style="position: absolute;top: calc(50% - 140px);width: 500px;left: calc(50% - 250px);" />
  1775. </div>
  1776. </div>
  1777. <!-- 显示Teachable Machine modal配置弹框 -->
  1778. <div id="setting_teacher_ponsenet" class="modal">
  1779. <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
  1780. class="small material-icons" style="font-size: 1.5rem;"
  1781. onclick="$('#setting_teacher_ponsenet').modal('close');$('#app_center_modal').modal('open')">close</i></span>
  1782. <div class="modal-content" style="padding: 20px;">
  1783. <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Labs</h4>
  1784. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  1785. <div style="display:flex;justify-content:space-around;">
  1786. <div class="modal_setting_teacher_left setting_left_all">
  1787. <div class="card-image waves-effect waves-block waves-light">
  1788. <img class="" src="images/tm_with_pose.jpg"
  1789. style="border: solid 1.2px lightgray;width: 100%;">
  1790. </div>
  1791. <div>
  1792. <span id="ac-card-title"
  1793. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_Teachabel_Machine_posenet"
  1794. style="font-size: 30px;">Teachable
  1795. Machine</span>
  1796. <p class="translatable_Teachabel_Machin_content">The trend of robot development is
  1797. artificial
  1798. intelligence. Deep learning is the frontier technology of intelligent robot and a new
  1799. topic
  1800. in the field of machine learning.Deep learning technology is widely used in agriculture,
  1801. industry, military, aviation and other fields, and the organic combination with machines
  1802. can
  1803. design intelligent robots with high working efficiency, high real-time and high
  1804. accuracy.
  1805. </p>
  1806. </div>
  1807. </div>
  1808. <div class="modal_setting_teacher_right setting_right_all">
  1809. <div class="translatable_computer_configuration"
  1810. style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
  1811. <span>Computer Configuration Requirements</span>
  1812. </div>
  1813. <div class="setting_border">
  1814. <p><span class="translatable_the_operating_system">Minimum Opearting System
  1815. version</span>:Windows (>Windows7), macOS (>10.11)</p>
  1816. <p><span class="translatable_resolution_of_the">Suggested Resolution
  1817. Supported</span>:1440*768
  1818. </p>
  1819. <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
  1820. <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
  1821. <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
  1822. <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
  1823. class="translatable_need">OK</span></p>
  1824. <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
  1825. class="translatable_no_need">NO</span></p>
  1826. </div>
  1827. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1828. href="#Teachable_Machine_ponsenet"
  1829. style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
  1830. </div>
  1831. </div>
  1832. </div>
  1833. </div>
  1834. <!--Teachable Machine modal-->
  1835. <div id="Teachable_Machine_ponsenet" class="modal TM_class" style="position:relative">
  1836. <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
  1837. class="small material-icons" style="font-size: 1.5rem;"
  1838. onclick="$('#Teachable_Machine_ponsenet').modal('close');$('#setting_teacher_ponsenet').modal('open')">close</i></span>
  1839. <div id="TM_posenet_login" style="margin-top:10px;top:10%;position:relative"></div>
  1840. <div id="TM_posenet_iframe" style="height:100%; width:100%;display: none;"></div>
  1841. <div id="teachable_posenet_modal" class="object_modal">
  1842. <img src="./gif/loading.gif"
  1843. style="position: absolute;top: calc(50% - 140px);width: 500px;left: calc(50% - 250px);" />
  1844. </div>
  1845. </div>
  1846. <!-- 显示Object Recog_modal modal配置弹框-->
  1847. <div id="setting_objectRecog" class="modal">
  1848. <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
  1849. class="small material-icons" style="font-size: 1.5rem;"
  1850. onclick="$('#setting_objectRecog').modal('close');$('#app_center_modal').modal('open')">close</i></span>
  1851. <div class="modal-content" style="padding: 20px;">
  1852. <span class="modal_close" style="padding: 5px;">
  1853. <i class="small material-icons" style="font-size: 1.5rem;"
  1854. onclick="$('#setting_objectRecog').modal('close');$('#app_center_modal').modal('open')">close</i>
  1855. </span>
  1856. <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Labs</h4>
  1857. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  1858. <div style="display: flex;justify-content:space-around;">
  1859. <div class="modal_setting_objectRecog_left setting_left_all">
  1860. <div class="card-image waves-effect waves-block waves-light">
  1861. <img class="" src="icons/object_recognition_header.jpg"
  1862. style="border: solid 1.2px lightgray;width: 100%;">
  1863. </div>
  1864. <div>
  1865. <span id="ac-card-title emotion_recognition_enter_button" class="ac-card-title card-title activator grey-text text-darken-4
  1866. translatable_app_center_object_recognition translatable_objectRecognition"
  1867. style="font-size: 30px;">Object
  1868. Recognition</span>
  1869. <p class="translatable_objectRecognition_content">The development trend of object
  1870. recognition is
  1871. artificial intelligence. Object recognition is the frontier technology of intelligent
  1872. recognition and a new subject in the field of recognition.Object recognition technology
  1873. is
  1874. widely used in agriculture, industry, military, aviation and other fields.
  1875. </p>
  1876. </div>
  1877. </div>
  1878. <div class="modal_setting_objectRecog_right setting_right_all" style="width: 48%;">
  1879. <div class="translatable_computer_configuration"
  1880. style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
  1881. <span>Computer Configuration Requirements</span>
  1882. </div>
  1883. <div class="setting_border">
  1884. <p><span class="translatable_the_operating_system">Minimum Opearting System
  1885. version</span>:Windows (>Windows7), macOS (>10.11)</p>
  1886. <p><span class="translatable_resolution_of_the">Suggested Resolution
  1887. Supported</span>:1440*768
  1888. </p>
  1889. <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
  1890. <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
  1891. <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
  1892. <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
  1893. class="translatable_need">OK</span></p>
  1894. <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
  1895. class="translatable_no_need">NO</span></p>
  1896. </div>
  1897. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1898. href="#Object_recog_modal" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
  1899. </div>
  1900. </div>
  1901. </div>
  1902. </div>
  1903. <!--Object Recog_modal modal-->
  1904. <div id="Object_recog_modal" class="modal TM_class1" style="position:relative">
  1905. <span class="modal_close" style="padding: 5px;position: absolute;right: 10px;cursor: pointer;"><i
  1906. class="small material-icons" style="font-size: 1.5rem;"
  1907. onclick="$('#Object_recog_modal').modal('close');$('#setting_objectRecog').modal('open')">close</i></span>
  1908. <div id="TM_login_object" style="margin-top:10px;top:10%;position:relative"></div>
  1909. <div id="TM_iframe_object" style="height:98%; width:100%; display:none"></div>
  1910. <div id="object_modal" class="object_modal">
  1911. <img src="./gif/loading.gif"
  1912. style="position: absolute;top: calc(50% - 140px);width: 500px;left: calc(50% - 250px);" />
  1913. </div>
  1914. </div>
  1915. <!-- 显示posenet Recog_modal modal配置弹框 -->
  1916. <div id="setting_posenetRecog" class="modal">
  1917. <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
  1918. class="small material-icons" style="font-size: 1.5rem;"
  1919. onclick="$('#setting_posenetRecog').modal('close');$('#app_center_modal').modal('open')">close</i></span>
  1920. <div class="modal-content" style="padding: 20px;">
  1921. <span class="modal_close" style="padding: 5px;">
  1922. <i class="small material-icons" style="font-size: 1.5rem;"
  1923. onclick="$('#setting_posenetRecog').modal('close');$('#app_center_modal').modal('open')">close</i>
  1924. </span>
  1925. <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Labs</h4>
  1926. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  1927. <div style="display: flex;justify-content:space-around;">
  1928. <div class="modal_setting_objectRecog_left setting_left_all">
  1929. <div class="card-image waves-effect waves-block waves-light">
  1930. <img class="" src="icons/posenet_recogition.png"
  1931. style="border: solid 1.2px lightgray;width: 100%;">
  1932. </div>
  1933. <div>
  1934. <span id="ac-card-title emotion_recognition_enter_button" class="ac-card-title card-title activator grey-text text-darken-4
  1935. translatable_app_center_object_recognition translatable_posenetRecognition"
  1936. style="font-size: 30px;">Posenet
  1937. Recognition</span>
  1938. <p class="translatable_posenetRecognition_content">The development trend of object
  1939. recognition
  1940. is
  1941. artificial intelligence. Object recognition is the frontier technology of intelligent
  1942. recognition and a new subject in the field of recognition.Object recognition technology
  1943. is
  1944. widely used in agriculture, industry, military, aviation and other fields.
  1945. </p>
  1946. </div>
  1947. </div>
  1948. <div class="modal_setting_objectRecog_right setting_right_all" style="width: 48%;">
  1949. <div class="translatable_computer_configuration"
  1950. style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
  1951. <span>Computer Configuration Requirements</span>
  1952. </div>
  1953. <div class="setting_border">
  1954. <p><span class="translatable_the_operating_system">Minimum Opearting System
  1955. version</span>:Windows (>Windows7), macOS (>10.11)</p>
  1956. <p><span class="translatable_resolution_of_the">Suggested Resolution
  1957. Supported</span>:1440*768
  1958. </p>
  1959. <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
  1960. <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
  1961. <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
  1962. <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
  1963. class="translatable_need">OK</span></p>
  1964. <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
  1965. class="translatable_no_need">NO</span></p>
  1966. </div>
  1967. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1968. href="#Posent_recog_modal" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
  1969. </div>
  1970. </div>
  1971. </div>
  1972. </div>
  1973. <!--Object Recog_modal modal-->
  1974. <div id="Posent_recog_modal" class="modal TM_class" style="position:relative">
  1975. <span class="modal_close" style="padding: 5px;position: absolute;right: 10px;cursor: pointer;"><i
  1976. class="small material-icons" style="font-size: 1.5rem;"
  1977. onclick="$('#Posent_recog_modal').modal('close');$('#setting_posenetRecog').modal('open')">close</i></span>
  1978. <div id="TM_login_posenet" style="margin-top:10px;top:10%;position:relative"></div>
  1979. <div id="TM_iframe_posenet" style="height:98%; width:100%; display:none"></div>
  1980. <div id="posenet_modal" class="object_modal">
  1981. <img src="./gif/loading.gif"
  1982. style="position: absolute;top: calc(50% - 140px);width: 500px;left: calc(50% - 250px);" />
  1983. </div>
  1984. </div>
  1985. <!-- 显示webcam input modal配置弹框 -->
  1986. <div id="setting_webcam_capture_modal" class="modal">
  1987. <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
  1988. class="small material-icons" style="font-size: 1.5rem;"
  1989. onclick="$('#setting_webcam_capture_modal').modal('close');$('#app_center_modal').modal('open')">close</i></span>
  1990. <div class="modal-content" style="padding: 20px;">
  1991. <span class="modal_close" style="padding: 5px;">
  1992. <i class="small material-icons" style="font-size: 1.5rem;"
  1993. onclick="$('#setting_webcam_capture_modal').modal('close');$('#app_center_modal').modal('open')">close</i>
  1994. </span>
  1995. <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Labs</h4>
  1996. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  1997. <div style="display:flex;justify-content:space-around;">
  1998. <div class="modal_setting_teacher_left setting_left_all">
  1999. <div class="card-image waves-effect waves-block waves-light">
  2000. <img class="" src="icons/AppCenter_ai_emotion.jpg"
  2001. style="border: solid 1.2px lightgray;width: 100%;">
  2002. </div>
  2003. <div>
  2004. <span id="ac-card-title emotion_recognition_enter_button"
  2005. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_emotion_recognition"
  2006. style="font-size: 30px;">Emotion
  2007. Recognition</span>
  2008. <p class="translatable_webcam_capture_content">The trend of robot development is artificial
  2009. intelligence. Deep learning is the frontier technology of intelligent robot and a new
  2010. topic
  2011. in the field of machine learning.Deep learning technology is widely used in agriculture,
  2012. industry, military, aviation and other fields, and the organic combination with machines
  2013. can
  2014. design intelligent robots with high working efficiency, high real-time and high
  2015. accuracy.
  2016. </p>
  2017. </div>
  2018. </div>
  2019. <div class="modal_setting_teacher_right setting_right_all">
  2020. <div class="translatable_computer_configuration"
  2021. style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
  2022. <span>Computer Configuration Requirements</span>
  2023. </div>
  2024. <div class="setting_border">
  2025. <p><span class="translatable_the_operating_system">Minimum Opearting System
  2026. version</span>:Windows (>Windows7), macOS (>10.11)</p>
  2027. <p><span class="translatable_resolution_of_the">Suggested Resolution
  2028. Supported</span>:1440*768
  2029. </p>
  2030. <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
  2031. <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
  2032. <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
  2033. <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
  2034. class="translatable_need">Ok</span></p>
  2035. <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
  2036. class="translatable_no_need">NO</span></p>
  2037. </div>
  2038. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  2039. href="#webcam_capture_modal" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
  2040. </div>
  2041. </div>
  2042. </div>
  2043. </div>
  2044. <!-- webcam input modal -->
  2045. <div id="webcam_capture_modal" class="modal">
  2046. <span class="modal_close" style="padding: 5px;position: absolute;right: 10px;cursor: pointer;"><i
  2047. class="small material-icons" style="font-size: 1.5rem;"
  2048. id="emotion_recognition_close">close</i></span>
  2049. <div id="TM_login_webcam_capture_modal" style="margin-top:10px;top:10%;position:relative"></div>
  2050. <div id="emotionRecognitionTitle" class="modal-content" style="display: none;">
  2051. <div style="margin-bottom:-10px;margin-top:10px;" class="row">
  2052. <div class="col s8">
  2053. <h4 class="translatable_webcamDemoTitle">Emotion Recognition</h4>
  2054. </div>
  2055. <div style="text-align:right;display: none;" class="col s4">
  2056. <a style="cursor: pointer;text-decoration:none; color:rgba(0,0,0.9);"
  2057. class="modal-action modal-close">
  2058. <h4><i class="small material-icons">close</i></h4>
  2059. </a>
  2060. </div>
  2061. </div>
  2062. <!--<div> <span class="translatable_cloudFileTooltip" sytle="margin-left:10px">Type project's name and click save</span></div>-->
  2063. <div class="row">
  2064. <div class="col s12">
  2065. <div class="switch" style="margin-bottom:20px;">
  2066. <label>
  2067. <span class="translatable_emotion_camera_off">Camera Off</span>
  2068. <input id="camera_switch" type="checkbox" onclick="cameraSwitch()">
  2069. <span class="lever "></span><span class="translatable_emotion_camera_on">On</span>
  2070. </label>
  2071. </div>
  2072. </div>
  2073. </div>
  2074. <div class="row" style="text-align:left;">
  2075. <div style="float:center;" class="col s6">
  2076. <p class="translatable_face_webcam" style="margin-top:-20px;">Webcam:</p>
  2077. <div id="webCamera"></div>
  2078. <div class="translatable_emotion_camera_turnon_text" id="webCamPlaceholder">Turn on the Camera
  2079. first
  2080. </div>
  2081. </div>
  2082. <div style="float:center;" class="col s6">
  2083. <p class="translatable_face_latest_snapshot" style="margin-top:-20px;">Last snapshot:</p>
  2084. <div id="emotionResults"></div>
  2085. <div class="translatable_emotion_snapshot_text" id="SnapshotPlaceholder">Your snapshot will be
  2086. here
  2087. </div>
  2088. </div>
  2089. </div>
  2090. <div class="row">
  2091. <div class="col s12">
  2092. <a id="emotionRequestStatus"
  2093. class="disabled waves-effect waves-light btn blue translatable_face_analyze"
  2094. onclick="processImage()">Analyze</a>
  2095. <span id="azureRequestStatusText" style="padding-left:20px;"> </span>
  2096. </div>
  2097. </div>
  2098. <div class="row" style="text-align:left;">
  2099. <div id="emotionResultsAll" class="col s12">
  2100. <span class="translatable_emotion_result_title" id="facialanalysistitle"
  2101. style="font-weight:200;">Facial Analysis:</span>
  2102. <div style="display: flex;flex-wrap: wrap;margin-top: 10px;">
  2103. <p id="emotionResultsAll_property" style="width: 50%;">
  2104. <b class="translatable_emotion_result_age_title">Age:</b>
  2105. <span id="emotionResults_age"
  2106. class="emotionResultsAll_single translatable_emotion_result_default">Nothing
  2107. detected.</span>
  2108. </p>
  2109. <p id="emotionResultsAll_property" style="width: 50%;">
  2110. <b class="translatable_emotion_result_emotion_title">Emotion:</b>
  2111. <span id="emotionResults_emotion"
  2112. class="emotionResultsAll_single translatable_emotion_result_default">Nothing
  2113. detected.</span>
  2114. </p>
  2115. <p id="emotionResultsAll_property" style="width: 50%;">
  2116. <b class="translatable_emotion_result_gender_title">Gender:</b>
  2117. <span id="emotionResults_gender"
  2118. class="emotionResultsAll_single translatable_emotion_result_default">Nothing
  2119. detected.</span>
  2120. </p>
  2121. <p id="emotionResultsAll_property" style="width: 50%;">
  2122. <b class="translatable_emotion_result_glasses_title">Glasses:</b>
  2123. <span id="emotionResults_glasses"
  2124. class="emotionResultsAll_single translatable_emotion_result_default">Nothing
  2125. detected.</span>
  2126. </p>
  2127. <!-- <p id="emotionResultsAll_property" style="width: 50%;">
  2128. <b class="translatable_emotion_result_appearance_title">Appearance:</b>
  2129. <span id="emotionResults_appearance"
  2130. class="emotionResultsAll_single translatable_emotion_result_default">Nothing
  2131. detected.</span>
  2132. </p> -->
  2133. <p id="emotionResultsAll_property" style="width: 50%;">
  2134. <b class="translatable_emotion_result_expression_title">Expression:</b>
  2135. <span id="emotionResults_expression"
  2136. class="emotionResultsAll_single translatable_emotion_result_default">Nothing
  2137. detected.</span>
  2138. </p>
  2139. <p id="emotionResultsAll_property"
  2140. style="width: 100%;border-top: 1px solid #ccc;margin-top: 10px;padding-top: 10px;">
  2141. <b class="translatable_emotion_result_expression_title">Emotion:</b>
  2142. <span
  2143. class="emotionResultsAll_single translatable_emotion_expression">smile、laugh、none</span>
  2144. </p>
  2145. <p id="emotionResultsAll_property" style="width: 100%;">
  2146. <b class="translatable_emotion_result_emotion_title">Expression:</b>
  2147. <span
  2148. class="emotionResultsAll_single translatable_emotion">angry、disgust、fear、happy、sad、surprise、neutral、pouty、grimace</span>
  2149. </p>
  2150. </div>
  2151. </div>
  2152. <div class="col s12 select_send_way" style="position: relative; margin:12px 0;padding: 0;">
  2153. <span class="select_send_way_color translatable_send_cloud">Send Cloud</span>
  2154. <!-- <span class="translatable_send_module">Send Module</span> -->
  2155. </div>
  2156. </div>
  2157. <div class="row">
  2158. <div class="col s12 send_cloud" style="position: relative">
  2159. <div id="cloudRequestStatus" class="col s12">
  2160. </div>
  2161. <div class="translatable_selectEvent">Choose a CocoCloud event here, the analyzed result will
  2162. directly send to there</div>
  2163. <div style="width:100%;margin-top: 15px;">
  2164. <select class="browser-default" id="AI_webcam_events">
  2165. <option class="translatable_noEvent" value=null disabled>No event here. Login first
  2166. </option>
  2167. </select>
  2168. </div>
  2169. <span style="float:right;top: -45px;position: relative;margin-top: -38px;">
  2170. <i id="update_Coevent_web" class="material-icons">autorenew</i>
  2171. </span>
  2172. </div>
  2173. <div class="col s12 send_module" style="position: relative;display: none;height: 100px;">
  2174. <div class="translatable_send_module">Send Module</div>
  2175. <div class="col s6" style="margin-top:2px;padding: 0;">
  2176. <span class="translatable_send_result">Send Result:</span>
  2177. <select class="browser-default" id="select_send_capture"
  2178. style="width: 120px;display: inline-block;height: 35px;">
  2179. <option value="emotionResults_age" class="translatable_emotion_result_age_title">Age
  2180. </option>
  2181. <option value="emotionResults_emotion"
  2182. class="translatable_emotion_result_emotion_title">
  2183. Emotion</option>
  2184. <option value="emotionResults_gender" class="translatable_emotion_result_gender_title">
  2185. Sex
  2186. </option>
  2187. <option value="emotionResults_glasses"
  2188. class="translatable_emotion_result_glasses_title">
  2189. Glasses</option>
  2190. <option value="emotionResults_expression"
  2191. class="translatable_emotion_result_expression_title">Expression</option>
  2192. </select>
  2193. <span class="translatable_port">Port:</span>
  2194. <span class="port" style="padding-left:10px;"></span>
  2195. </div>
  2196. <div class="col s6" style="margin-top:2px;">
  2197. <a class="waves-effect waves-light blue lighten-2 btn translatable_connectBtn translatable_connectBtns disabled"
  2198. style="float:right;margin-right:5px">connect</a>
  2199. <a class="waves-effect waves-light blue lighten-2 btn translatable_disconnectBtn translatable_disconnectBtns "
  2200. style="float:right;margin-right:5px;display:none">disconnect</a>
  2201. </div>
  2202. </div>
  2203. </div>
  2204. </div>
  2205. </div>
  2206. <!-- 显示gesture recognition modal配置弹框 -->
  2207. <div id="setting_gesture_recog_modal" class="modal">
  2208. <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
  2209. class="small material-icons" style="font-size: 1.5rem;"
  2210. onclick="$('#setting_gesture_recog_modal').modal('close');$('#app_center_modal').modal('open')">close</i></span>
  2211. <div class="modal-content" style="padding: 20px;">
  2212. <span class="modal_close" style="padding: 5px;">
  2213. <i class="small material-icons" style="font-size: 1.5rem;"
  2214. onclick="$('#setting_gesture_recog_modal').modal('close');$('#app_center_modal').modal('open')">close</i>
  2215. </span>
  2216. <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Labs</h4>
  2217. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  2218. <div style="display:flex;justify-content:space-around;">
  2219. <div class="modal_setting_teacher_left setting_left_all">
  2220. <div class="card-image waves-effect waves-block waves-light">
  2221. <img class="" src="icons/AppCenter_ai_gesture_recognition.jpg"
  2222. style="border: solid 1.2px lightgray;width: 100%;">
  2223. </div>
  2224. <div>
  2225. <span id="ac-card-title emotion_recognition_enter_button"
  2226. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_gesture_recognition translatable_gesturesTitle"
  2227. style="font-size: 30px;">Gesture
  2228. Recognition</span>
  2229. <p class="translatable_gesture_recog_content">The trend of robot development is artificial
  2230. intelligence. Deep learning is the frontier technology of intelligent robot and a new
  2231. topic
  2232. in the field of machine learning.Deep learning technology is widely used in agriculture,
  2233. industry, military, aviation and other fields, and the organic combination with machines
  2234. can
  2235. design intelligent robots with high working efficiency, high real-time and high
  2236. accuracy.
  2237. </p>
  2238. </div>
  2239. </div>
  2240. <div class="modal_setting_teacher_right setting_right_all">
  2241. <div class="translatable_computer_configuration"
  2242. style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
  2243. <span>Computer Configuration Requirements</span>
  2244. </div>
  2245. <div class="setting_border">
  2246. <p><span class="translatable_the_operating_system">Minimum Opearting System
  2247. version</span>:Windows (>Windows7), macOS (>10.11)</p>
  2248. <p><span class="translatable_resolution_of_the">Suggested Resolution
  2249. Supported</span>:1440*768
  2250. </p>
  2251. <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
  2252. <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
  2253. <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
  2254. <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
  2255. class="translatable_need">Ok</span></p>
  2256. <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
  2257. class="translatable_no_need">NO</span></p>
  2258. </div>
  2259. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  2260. href="#gesture_recog_modal" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
  2261. </div>
  2262. </div>
  2263. </div>
  2264. </div>
  2265. <!-- gesture recognition modal -->
  2266. <div id="gesture_recog_modal" class="modal">
  2267. <span class="modal_close" style="padding: 5px;position: absolute;right: 10px;cursor: pointer;"><i
  2268. class="small material-icons" style="font-size: 1.5rem;"
  2269. id="gesture_recognition_close">close</i></span>
  2270. <div id="TM_login_gesture_recog_modal" style="margin-top:10px;top:10%;position:relative"></div>
  2271. <div id="gestureRecognitionTitle" class="modal-content" style="display: none;">
  2272. <div style="margin-bottom:-10px;margin-top:10px;" class="row">
  2273. <div class="col s10">
  2274. <h4 class="translatable_gesturesTitle">Gesture Recognition</h4>
  2275. </div>
  2276. <div style="text-align:right;display: none;" class="col s2">
  2277. <a style="cursor: pointer;text-decoration:none; color:rgba(0,0,0.9);"
  2278. class="modal-action modal-close">
  2279. <h4><i class="small material-icons">close</i></h4>
  2280. </a>
  2281. </div>
  2282. </div>
  2283. <div class="row">
  2284. <div class="col s12">
  2285. <div class="switch" style="margin-bottom:20px;">
  2286. <label>
  2287. <span class="translatable_emotion_camera_off">Camera Off</span>
  2288. <input id="camera_switch_gesture" type="checkbox" onclick="cameraSwitchGesture();">
  2289. <span class="lever "></span><span class="translatable_emotion_camera_on">On</span>
  2290. </label>
  2291. </div>
  2292. </div>
  2293. </div>
  2294. <div style="margin-bottom:10px;" class="row">
  2295. <div style="float:center;" class="col s5">
  2296. <p class="translatable_gesture_webcam" style="margin-top:-20px;">Webcam:</p>
  2297. <div id="webCameraGestureFrame">
  2298. <div id="webCameraGesture"></div>
  2299. </div>
  2300. <div class="translatable_emotion_camera_turnon_text" id="gesture_webCamPlaceholder">Turn on the
  2301. Camera first
  2302. </div>
  2303. </div>
  2304. <div style="float:center;" class="col s7">
  2305. <a id="gestureAnalyzeButton"
  2306. class="disabled waves-effect waves-light btn blue translatable_gesture_recognition"
  2307. onclick="gestureRecognize();">Recognize</a>
  2308. <div id="gestureResultAreaFrame">
  2309. <h4 class="gestureResultAreaTitle translatable_gesture_recognition_result">Recognition
  2310. Result:
  2311. </h4>
  2312. <div id="gestureResultAreaContent" class="translatable_gesture_result">
  2313. No result yet.
  2314. </div>
  2315. </div>
  2316. <div class="col s12 select_send_way" style="position: relative; margin:12px 0;padding: 0;">
  2317. <span class="select_send_way_color translatable_send_cloud">Send Cloud</span>
  2318. <!-- <span class="translatable_send_module">Send Module</span> -->
  2319. </div>
  2320. <div class="s12" style="position: relative;margin-top: 45px;">
  2321. <div class="send_cloud">
  2322. <div id="cloudRequestStatuss" class="s12">
  2323. </div>
  2324. <div class="translatable_selectEvent" style="padding-right: 0.75rem;">Choose a CocoCloud
  2325. event
  2326. here, the analyzed result will
  2327. directly send to there</div>
  2328. <div style="width:100%;margin-top: 15px;">
  2329. <select class="browser-default" id="AI_gesture_events">
  2330. <option class="translatable_noEvent" value=null disabled>No event here. Login
  2331. first
  2332. </option>
  2333. </select>
  2334. </div>
  2335. <span style="float:right;top: -45px;position: relative;margin-top: -38px;">
  2336. <i id="update_Coevent_web" class="material-icons">autorenew</i>
  2337. </span>
  2338. </div>
  2339. <div class="col s12 send_module"
  2340. style="position: relative;display: none;height: 100px;padding: 0;">
  2341. <div class="translatable_send_module">Send Module</div>
  2342. <div class="input-field col s6" style="margin-top:2px;padding: 0;">
  2343. <span class="translatable_port">Port:</span>
  2344. <span class="port" style="padding-left:10px;"></span>
  2345. </div>
  2346. <div class="col s6" style="margin-top:2px;">
  2347. <a class="waves-effect waves-light blue lighten-2 btn translatable_connectBtns translatable_connectBtn disabled"
  2348. style="float:right;margin-right:5px">connect</a>
  2349. <a class="waves-effect waves-light blue lighten-2 btn translatable_disconnectBtns translatable_disconnectBtn"
  2350. style="float:right;margin-right:5px;display:none">disconnect</a>
  2351. </div>
  2352. </div>
  2353. </div>
  2354. </div>
  2355. </div>
  2356. <!-- <div class="row">
  2357. <div class="col s12">
  2358. <hr style="margin-top: 20px; border-top: 0.5px solid rgba(0,0,0,.1);" />
  2359. </div>
  2360. </div> -->
  2361. </div>
  2362. </div>
  2363. <!-- 显示voice speech modal配置弹框 -->
  2364. <div id="setting_voice_input_modal" class="modal">
  2365. <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
  2366. class="small material-icons" style="font-size: 1.5rem;"
  2367. onclick="$('#setting_voice_input_modal').modal('close');$('#app_center_modal').modal('open')">close</i></span>
  2368. <div class="modal-content" style="padding: 20px;">
  2369. <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Labs</h4>
  2370. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  2371. <div style="display:flex;justify-content:space-around;">
  2372. <div class="modal_setting_teacher_left setting_left_all">
  2373. <div class="card-image waves-effect waves-block waves-light">
  2374. <img class="" src="icons/AppCenter_ai_speech.jpg"
  2375. style="border: solid 1.2px lightgray;width: 100%;">
  2376. </div>
  2377. <div>
  2378. <span id="ac-card-title"
  2379. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_speech_recognition"
  2380. style="font-size: 30px;">Speech
  2381. Recognition</span>
  2382. <p class="translatable_voice_input_content">The trend of robot development is artificial
  2383. intelligence. Deep learning is the frontier technology of intelligent robot and a new
  2384. topic
  2385. in the field of machine learning.Deep learning technology is widely used in agriculture,
  2386. industry, military, aviation and other fields, and the organic combination with machines
  2387. can
  2388. design intelligent robots with high working efficiency, high real-time and high
  2389. accuracy.
  2390. </p>
  2391. </div>
  2392. </div>
  2393. <div class="modal_setting_teacher_right setting_right_all">
  2394. <div class="translatable_computer_configuration"
  2395. style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
  2396. <span>Computer Configuration Requirements</span>
  2397. </div>
  2398. <div class="setting_border">
  2399. <p><span class="translatable_the_operating_system">Minimum Opearting System
  2400. version</span>:Windows (>Windows7), macOS (>10.11)</p>
  2401. <p><span class="translatable_resolution_of_the">Suggested Resolution
  2402. Supported</span>:1440*768
  2403. </p>
  2404. <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
  2405. <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
  2406. <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
  2407. <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
  2408. class="translatable_no_need">NO</span></p>
  2409. <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
  2410. class="translatable_need">OK</span></p>
  2411. </div>
  2412. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  2413. href="#voice_input_modal" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
  2414. </div>
  2415. </div>
  2416. </div>
  2417. </div>
  2418. <!-- voice speech modal -->
  2419. <div id="voice_input_modal" class="modal voice-modal-trigger">
  2420. <span class="modal_close" style="padding: 5px;position: absolute;right: 10px;cursor: pointer;"><i
  2421. class="small material-icons" style="font-size: 1.5rem;" id="voice_input_close">close</i></span>
  2422. <div id="TM_login_voice_input_modal" style="margin-top:10px;top:10%;position:relative"></div>
  2423. <div class="modal-content" id="voice_input_modal_reg" style="display: none;">
  2424. <div style="margin-top:10px;" class="row">
  2425. <div class="col s8">
  2426. <h4 class="translatable_speechDemoTitle">Speech Recognition</h4>
  2427. </div>
  2428. <div style="text-align:right;display: none;" class="col s4">
  2429. <a style="cursor: pointer;text-decoration:none; color:rgba(0,0,0.9);"
  2430. class="modal-action modal-close">
  2431. <h4><i class="small material-icons">close</i></h4>
  2432. </a>
  2433. </div>
  2434. </div>
  2435. <div style="margin-bottom:10px;margin-top:-20px;" class="row">
  2436. <div class="col s12">
  2437. <p class="translatable_speechTip" style="font-size:15px;font-weight:200;">Voice recognition for
  2438. English, Cantonese & Mandarin.</p>
  2439. <hr
  2440. style="position:relative;top:-2px;margin-bottom:15px;border-color:rgba(0,0,0,.1); border-width: 1px;">
  2441. </div>
  2442. </div>
  2443. <div class="row" style="margin-top:-15px;margin-bottom:10px">
  2444. <div class="col s4">
  2445. <p class="translatable_speech_language_select">Select a language to recognize:</p>
  2446. </div>
  2447. <div style="margin-left:-20px;" class="col s2 speech_language" style="position:relative;top:3px">
  2448. <select id="speech_language_selection" class="browser-default" style="max-width:200px">
  2449. <option value="english" class="translatable_speech_language_English">English</option>
  2450. <option value="cantonese" class="translatable_speech_language_Cantonese">Cantonese</option>
  2451. <option value="mandarin" class="translatable_speech_language_Mandarin">Mandarin</option>
  2452. </select>
  2453. </div>
  2454. <div class="col" style="position:relative;top:5px">
  2455. <a id="speech_button" class="waves-effect waves-light btn blue translatable_speech_recognition"
  2456. style="padding:0 8px" onclick="processSpeech()/*startSpeech()*/">Start Recording</a>
  2457. </div>
  2458. <div class="col s3" style="position:relative;top:15px;">
  2459. <span style="font-weight:200;margin-left:-5px;" id="speech_process_title"
  2460. style="position:relative;top:-6px;"></span>
  2461. </div>
  2462. </div>
  2463. <div class="row">
  2464. <textarea id="speech_textarea" row="3" class="disabled translatable_speech_textarea_title"
  2465. style="width:772px;height:130px;resize:none;border-radius:5px;padding:10px;color:rgba(0,0,0,.4);"
  2466. readonly> Click on the mic button to start dictating...</textarea>
  2467. </div>
  2468. <div style="margin-top:5px;" class="row">
  2469. <div class="col s12 select_send_way" style="position: relative; margin-bottom:12px;">
  2470. <span class="select_send_way_color translatable_send_cloud">Send Cloud</span>
  2471. <!-- <span class="translatable_send_module">Send Module</span> -->
  2472. </div>
  2473. <div class="col s12 send_cloud" style="position: relative">
  2474. <div class="col s12">
  2475. <span id="speechDemoCloudRequest" style="font-weight:200;"></span>
  2476. </div>
  2477. <div class="translatable_selectEvent">Choose a CocoCloud event here, the analyzed result will
  2478. directly send to there</div>
  2479. <div style="width:95%">
  2480. <select style="margin-top:10px;" class="browser-default" id="AI_voice_events">
  2481. <option class="translatable_noEvent" value=null disabled>No event here. Login first
  2482. </option>
  2483. </select>
  2484. </div>
  2485. <span style="float:right;top: -45px;position: relative;">
  2486. <i id="update_Coevent_voice" class="material-icons">autorenew</i>
  2487. </span>
  2488. </div>
  2489. <div class="col s12 send_module" style="position: relative;display: none;height: 100px;">
  2490. <div class="translatable_send_module">Send Module</div>
  2491. <div class="input-field col s6" style="margin-top:2px;">
  2492. <span class="translatable_port">Port:</span>
  2493. <span class="port" style="padding-left:10px;"></span>
  2494. </div>
  2495. <div class="col s6" style="margin-top:2px;">
  2496. <a class="waves-effect waves-light blue lighten-2 btn translatable_connectBtns translatable_connectBtn disabled"
  2497. style="float:right;margin-right:5px">connect</a>
  2498. <a class="waves-effect waves-light blue lighten-2 btn translatable_disconnectBtn translatable_disconnectBtns "
  2499. style="float:right;margin-right:5px;display:none">disconnect</a>
  2500. </div>
  2501. </div>
  2502. </div>
  2503. </div>
  2504. </div>
  2505. </div>
  2506. </div>
  2507. </div>
  2508. <!-- iframe -->
  2509. <div id="iframe" class="modal auxiliary modal_closes overflowHidden">
  2510. <div class="modal-content" style="background-color: white;height: 100%;">
  2511. <span class="modal_close" style="padding: 5px;right: 15px;top: 10px;">
  2512. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2513. </span>
  2514. <h4 class="translatable_auxiliary">辅助工具</h4>
  2515. <div class="download_auxiliary">
  2516. <div style="width:80%" class="translatable_system_SDFormatterv4">
  2517. 这是一个内存可格式化软件,通过该软件,可以将内存卡格式化之后,可以使内存卡安装831镜像的系统</div>
  2518. <a href="//cocorobo.cn/downloads/SDFormatterv4.zip" target="_black"
  2519. class="translatable_download_file btn blue">下载</a>
  2520. </div>
  2521. <div class="download_auxiliary">
  2522. <div style="width:80%" class="translatable_system_PhoenixCard">这是一个把镜像系统文件烧录到内存卡中的一个软件</div>
  2523. <a href="//cocorobo.cn/downloads/PhoenixCard-v2.4.8.zip" target="_black"
  2524. class="translatable_download_file btn blue">下载</a>
  2525. </div>
  2526. <div class="download_auxiliary">
  2527. <div style="width:80%" class="translatable_system_file">这个是我们镜像系统中的文件,系统镜像烧录之后,需要把这个压缩包解压放入系统文件里面。</div>
  2528. <a href="//cocorobo.cn/downloads/systemFile.zip" target="_black"
  2529. class="translatable_download_file btn blue">下载</a>
  2530. </div>
  2531. <div class="download_auxiliary">
  2532. <div style="width:80%" class="translatable_android_zip">这是一个安卓手机的谷歌浏览器的安装包,安卓后可以在手机上体验我们的平台。</div>
  2533. <a href="//cocorobo.cn/downloads/com.android.chrome_v103.0.5060.129_itmop.com.apk" target="_black"
  2534. class="translatable_download_file btn blue">下载</a>
  2535. </div>
  2536. </div>
  2537. <!-- <iframe frameborder="0" style="width: 100%;height: 50vh;"></iframe> -->
  2538. </div>
  2539. <div id="qrCode" class="modal auxiliary modal_closes overflowHidden">
  2540. <div class="modal-content" style="background-color: white;height: 100%;">
  2541. <span class="modal_close" style="padding: 5px;right: 15px;top: 10px;">
  2542. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2543. </span>
  2544. <h4 class="translatable_getQrCode">扫描二维码,连接网络</h4>
  2545. <div class="qrcodeInput">
  2546. <span class="translatable_SSID">SSID:</span>
  2547. <input id="SSID" type="text">
  2548. </div>
  2549. <div class="qrcodeInput">
  2550. <span class="translatable_PWD">PWD:</span>
  2551. <input id="PAS" type="text">
  2552. </div>
  2553. <div class="qrcodeInput">
  2554. <button class="btn blue translatable_QrCode" onclick="getQrCode()">生成二维码</button>
  2555. </div>
  2556. <div style="width: 200px;margin: 20px auto;" class="codeImgDiv">
  2557. <div id="codeImg"></div>
  2558. </div>
  2559. <div class="qrcodeInput"
  2560. style="position: absolute;bottom: 50px;left: 50%;transform: translate(-50%, 10px);">
  2561. <p class="translatable_CocoPi_note">打开CocoPi上的扫码联网样例,扫描屏幕二维码,连接上网</p>
  2562. </div>
  2563. </div>
  2564. </div>
  2565. <div id="updatePy" class="modal">
  2566. <!-- <span class="modal_close" style="padding: 15px;right: 12px;">
  2567. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2568. </span> -->
  2569. <!-- <i id="updatePy_icon" class="material-icons right" style="cursor:pointer;">close</i> -->
  2570. <div style="padding: 20px;">
  2571. <h2 style="font-size: 30px;margin-bottom: 0;width: 80%;" class="translatable_update_file">更新文件</h2>
  2572. <div style="width: 100%;">
  2573. <div style="width: 30%;display:inline-block;">
  2574. <p class="translatable_choose_file">选择文件夹</p>
  2575. </div>
  2576. <div style="width: 1%;display:inline-block;"></div>
  2577. <div style="width: 68%;display:inline-block;text-align: right;" class="fileManage">
  2578. <button id="return_folder" class="translatable_folder" onclick="return_pre_folder()"
  2579. style="margin-right: 10px;height: 33px;display: none;">返回上一级</button>
  2580. <button style="margin-right: 10px;height: 33px;" id="fileUpload">
  2581. <img src="blockly/media/fileManage/upload.png"
  2582. style="vertical-align:middle;width: 20px;height: 20px;" />
  2583. <span class="translatable_upload_file">上传文件</span>
  2584. <!-- <input type="file" id="translatable_upload_file"> -->
  2585. </button>
  2586. <button style="margin-right: 10px;height: 33px;" id="new_folder_btn">
  2587. <img src="blockly/media/fileManage/create.png"
  2588. style="vertical-align:middle;width: 20px;height: 20px;" />
  2589. <span class="translatable_new_folder">新文件夹</span>
  2590. </button>
  2591. <!-- <a id="new_folder" href="#new_folder_modal" class="modal-trigger header-link" style="display: none;">...</a> -->
  2592. <button id="delete_folder" class="translatable_delete" onclick="deleteFileOrFolder()"
  2593. style="background-color: #6481e7;display: inline-block;">删除</button>
  2594. <button id="cancle_delete" class="translatable_cancel_delete" onclick="cancelDeleteFileOrFolder()"
  2595. style="background-color: #6481e7;display: none;">取消删除</button>
  2596. </div>
  2597. </div>
  2598. <div id="select_folder" class="select_folder"
  2599. style="min-height: 300px;max-height: 300px;overflow: auto;overflow-x: hidden;overflow-y: scroll;"></div>
  2600. <!-- <div class="folder_name">
  2601. <span>文件名:</span>
  2602. <input class="folder_name_inpit" type="text">
  2603. </div> -->
  2604. <div class="update_bottom">
  2605. <button class="cancle translatable_cancel">取消</button>
  2606. <button class="confim translatable_confirm" style="display: none;">确定</button>
  2607. </div>
  2608. </div>
  2609. </div>
  2610. <div id="new_folder_modal" class="modal">
  2611. <span style="padding: 5px;right: 12px;position: absolute;top: 0;cursor: pointer;z-index: 10;"
  2612. id="new_folder_modal_close">
  2613. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2614. </span>
  2615. <div style="padding: 20px;">
  2616. <h2 style="font-size: 30px;margin-bottom: 0;width: 80%;" class="translatable_new_file_folder">新建文件夹</h2>
  2617. <div style="width: 100%;">
  2618. <div style="width: 49%;display:inline-block;">
  2619. <p class="translatable_new_file_folder_name">请输入文件夹名称..</p>
  2620. </div>
  2621. </div>
  2622. <input type="text" style="border: 1px solid #9e9e9e;padding-left: 5px;" id="folder_name"
  2623. class="folder_name_inpit" />
  2624. <!-- <div class="folder_name">
  2625. <span>文件名:</span>
  2626. <input class="folder_name_inpit" type="text">
  2627. </div> -->
  2628. <div class="update_new_folder_bottom">
  2629. <button class="new_folder_cancle translatable_cancel" style="margin-right: 10px;">取消</button>
  2630. <button class="new_folder_confim translatable_confirm">确定</button>
  2631. </div>
  2632. </div>
  2633. </div>
  2634. <!-- Custom Alert: Content is loaded using JavaScript to display alerts -->
  2635. <div id="cus_alert" class="modale modal_small modal_custom">
  2636. <div class="modal-content">
  2637. <h5 id="cus_alert_title">Empty Alert</h5>
  2638. <p><span id="cus_alert_body">Empty alert text</span></p>
  2639. </div>
  2640. <div class="modal-footer">
  2641. <a id="cus_alert_button" class="waves-effect btn-flat modal-close blue"><span id="cus_alert_button_content"
  2642. style="color:#fff"></span></a>
  2643. <a id="cus_alert_ok_link" class="waves-effect btn-flat modal-close blue"><span class="translatable_okay"
  2644. style="color:#fff">Okay</span></a>
  2645. </div>
  2646. </div>
  2647. <!-- Env Detect Modal -->
  2648. <div id="env_detect" class="modal modal_closes">
  2649. <div class="modal-content">
  2650. <span class="modal_close" style="padding: 5px;">
  2651. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2652. </span>
  2653. <h4 class="translatable_env_detect" style="margin-bottom:2.5rem;width: 80%;">Environment Detect</h4>
  2654. <div id="detect_before" style="position:relative;">
  2655. <div>
  2656. <img src="./icons/device-detect.svg" />
  2657. </div>
  2658. <div id="detect_preload" style="display:none;">
  2659. <div
  2660. style="position:relative;top:50%;transform:translateY(-50%);height:128px;width:128px;margin:0 auto;">
  2661. <div class="preloader-wrapper big active">
  2662. <div class="spinner-layer spinner-blue-only">
  2663. <div class="circle-clipper left">
  2664. <div class="circle"></div>
  2665. </div>
  2666. <div class="gap-patch">
  2667. <div class="circle"></div>
  2668. </div>
  2669. <div class="circle-clipper right">
  2670. <div class="circle"></div>
  2671. </div>
  2672. </div>
  2673. </div>
  2674. </div>
  2675. </div>
  2676. </div>
  2677. <div id="detect_result" style="display:none;">
  2678. <div style="border-bottom:2.5px #0057ff6e solid;padding:0.25rem 0;">
  2679. <h5 class="translatable_title_device">Device</h5>
  2680. <h5 class="translatable_title_result">Result</h5>
  2681. <h5 class="translatable_title_support">Support</h5>
  2682. <h5 class="translatable_title_suggest">Suggest</h5>
  2683. </div>
  2684. <div id="env_detect_os" style="margin-top:0.5rem;">
  2685. <div class="translatable_os">System</div>
  2686. <div></div>
  2687. <div class="detect-icons"></div>
  2688. <div></div>
  2689. </div>
  2690. <div id="env_detect_browser">
  2691. <div class="translatable_browser">Browser</div>
  2692. <div></div>
  2693. <div class="detect-icons"></div>
  2694. <div></div>
  2695. </div>
  2696. <div id="env_detect_plugin" style="margin-bottom:0.5rem;">
  2697. <div>Uploader</div>
  2698. <div></div>
  2699. <div class="detect-icons"></div>
  2700. <div></div>
  2701. </div>
  2702. <div id="env_detect_patch">
  2703. <div class="translatable_patch">Patch</div>
  2704. <div></div>
  2705. <div class="detect-icons"></div>
  2706. <div></div>
  2707. </div>
  2708. </div>
  2709. </div>
  2710. <div class="modal-footer">
  2711. <a id="detect-btn" class="waves-effect waves-light btn-large blue">
  2712. <span class="translatable_detect">Detect</span>
  2713. </a>
  2714. </div>
  2715. </div>
  2716. <!-- Serial Monitor -->
  2717. <div id="Serial-monitor" class="card card-serialMonitor" style="display:none;height:0;opacity:0;">
  2718. <div class="code-header">
  2719. <span class="code-header-logo"><i class="material-icons" style="padding-top:10px">search</i></span>
  2720. <span class="card-title translatable_serialMonitor">Serial Monitor</span>
  2721. </div>
  2722. <div class="card-content" style="padding:8px 10px;">
  2723. <div class="row">
  2724. <div class="input-field col s6" style="margin-top:2px;">
  2725. <p id="ports-monitor" style="font-size:16px"><span class="translatable_port">Port:</span><span
  2726. style="padding-left:10px;"></span>
  2727. </p>
  2728. </div>
  2729. <div class="col s6" style="margin-top:2px;">
  2730. <a id="comms-cnt"
  2731. class="waves-effect waves-light blue lighten-2 btn translatable_connectBtn disabled"
  2732. style="float:right;margin-right:5px">connect</a>
  2733. <a id="comms-discnt" class="waves-effect waves-light blue lighten-2 btn translatable_disconnectBtn "
  2734. style="float:right;margin-right:5px;display:none">disconnect</a>
  2735. </div>
  2736. </div>
  2737. <div class="row">
  2738. <div class="input-field col s5">
  2739. <select id="serial_output_style" style="font-size:16px">
  2740. <option value="" selected class="translatable_no_line_ending">No line ending
  2741. </option>
  2742. <option value="nl" class="translatable_newline">Newline</option>
  2743. <option value="cr" class="translatable_CR">Carriage return</option>
  2744. <option value="blc" class="translatable_NL_CR">Both NL &amp; CR</option>
  2745. </select>
  2746. </div>
  2747. <div class="input-field col s5">
  2748. <select id="serial_baud" style="font-size:16px">
  2749. <option value="300">300 <span class="translatable_baud">baud</span></option>
  2750. <option value="1200">1200 <span class="translatable_baud">baud</span></option>
  2751. <option value="2400">2400 <span class="translatable_baud">baud</span></option>
  2752. <option value="4800">4800 <span class="translatable_baud">baud</span></option>
  2753. <option value="9600" selected>9600 <span class="translatable_baud">baud</span>
  2754. </option>
  2755. <option value="19200">19200 <span class="translatable_baud">baud</span></option>
  2756. <option value="38400">38400 <span class="translatable_baud">baud</span></option>
  2757. <option value="57600">57600 <span class="translatable_baud">baud</span></option>
  2758. <option value="115200">115200 <span class="translatable_baud">baud</span></option>
  2759. </select>
  2760. </div>
  2761. </div>
  2762. <div class="row">
  2763. <div class="input-field col s10">
  2764. <input id="comms-msg" type="text" style="margin:0">
  2765. <label for="Sending_Messages" class="translatable_sendMsg" style="font-size:16px">Sending
  2766. Messages</label>
  2767. </div>
  2768. <div class="input-field col s2">
  2769. <a id="comms-send" class="waves-effect waves-light blue lighten-2 btn translatable_sendBtn disabled"
  2770. style="float:right;padding-right:5px">SEND</a>
  2771. </div>
  2772. </div>
  2773. <div class="row">
  2774. <div class="col s12">
  2775. <textarea id="commsBox" label="readonly" readonly></textarea>
  2776. </div>
  2777. </div>
  2778. <div class="row" style="margin-bottom:8px">
  2779. <div class="col s4" style="margin-top:8px">
  2780. <input id="autoscroll" type="checkbox" class="filled-in" checked="checked">
  2781. <label for="autoscroll">
  2782. <span class="translatable_autoScroll">Autoscroll</span>
  2783. </label>
  2784. </div>
  2785. <div class="input-field col s8" style="margin:4px,0,8px,0">
  2786. <a id="comms-clear" class="waves-effect waves-light blue lighten-2 btn translatable_comms_clear"
  2787. style="float:right;margin-right:5px">CLEAR</a>
  2788. <a id="comms-export"
  2789. class="waves-effect waves-light blue lighten-2 btn translatable_comms_export modal-trigger"
  2790. href="#export-file" style="float:right;margin-right:5px">EXPORT</a>
  2791. </div>
  2792. </div>
  2793. </div>
  2794. </div>
  2795. <!-- login modal -->
  2796. <div id="login_modal" class="modal modal_closes" style="top:62px">
  2797. <div id="login_modal_preload" class="progress" style="display:none">
  2798. <div class="indeterminate"></div>
  2799. </div>
  2800. <div class="modal-content" style="padding:0;">
  2801. <span class="modal_close" style="padding: 5px;">
  2802. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2803. </span>
  2804. <!-- add for login iframe -->
  2805. <div id="before_login"></div>
  2806. <div id="after_login">
  2807. <div id="userProfile_alias"></div>
  2808. <div style="width: 250px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"><span
  2809. class="translatable_user_email">Email:</span><span id="userProfile_username"> </span></div>
  2810. <div><span class="translatable_user_school">School:</span><span id="userProfile_school"></span></div>
  2811. <div id="userProfile_apikey">
  2812. <div>
  2813. <span class="translatable_Event">Event: </span>
  2814. <span style="margin-top: -13px;float:right;transform:translateY(35%);">
  2815. <i id="update_Coevent" class="material-icons" onclick="updateProject()">autorenew</i>
  2816. </span>
  2817. <p class="get_event" style="margin: 5px 0;color: #2196F3;"></p>
  2818. <select
  2819. style="outline:0; width: 100%; margin: 6px auto 8px auto; border: 1px solid rgba(0,0,0,.2);"
  2820. class="browser-default" id="cloud_events" onchange="changeProject()">
  2821. <option value=null disabled>No Event</option>
  2822. </select>
  2823. </div>
  2824. <div style="margin-top:5px">
  2825. <span>API Key: </span>
  2826. <a id="apikey-copy" data-clipboard-action="copy" data-clipboard-target="#api-key">
  2827. <i class="material-icons tiny">content_copy</i>
  2828. </a>
  2829. <textarea style="padding: 6px 6px; margin-top: 4px;" id="api-key" readonly></textarea>
  2830. </div>
  2831. </div>
  2832. </div>
  2833. </div>
  2834. <div class="modal-footer" style="display:none;">
  2835. <a id="modal_logout_btn" class="waves-effect btn-flat blue">
  2836. <span class="translatable_signout">Sign Out</span>
  2837. <img class="xuanhuan svgImg" src="images/loading.svg" alt="">
  2838. </a>
  2839. <a id="modal_cococloud_btn" href="//cocorobo.cn/cloud" target="_black"
  2840. class="waves-effect btn-flat blue"><span class="translatable_cococloud">Go to CocoCloud</span></a>
  2841. </div>
  2842. </div>
  2843. <!-- local storage - import modal -->
  2844. <div id="Storage_import_modal" class="modal mm modal_closes" style="width:500px">
  2845. <div class="modal-content">
  2846. <span class="modal_close" style="padding: 5px;"><i class="small material-icons"
  2847. style="font-size: 1.5rem;">close</i></span>
  2848. <h4 class="translatable_localStorageImport" style="width: 80%;">Import Project</h4>
  2849. <div> <span class="translatable_ImportTooltip" sytle="margin-left:10px">Select your project file(*.xml) and
  2850. import it to the current workspace.Warning:will replace current blocks</span></div>
  2851. <div id="import_area" class="row" style="margin: 10px;height: 170px;position: relative;">
  2852. <a id="modal_import_btn" class="waves-effect btn-flat blue"
  2853. style="top:180px;left:320px;position:fixed;"><span class="translatable_import"
  2854. style="font-size:15px;color:#fff">Import</span></a>
  2855. <span class="translatable_ImportContent"
  2856. style="top: 230px;width:300px;left:27%;position:fixed;text-align:center;">Click to choose a file
  2857. from
  2858. your computer</span>
  2859. </div>
  2860. </div>
  2861. </div>
  2862. <!-- General Alert: Content is loaded using JavaScript to display alerts -->
  2863. <div id="wifi_process" class="modale modal_closes modal_small" style="width:730px">
  2864. <div class="modal-content">
  2865. <span class="modal_close" style="padding: 5px;">
  2866. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2867. </span>
  2868. <h5 style="width: 80%;" class="translatable_wifiProblem">无线连接问题</h5>
  2869. <p class="translatable_problem1">1、首先将模块和平台连接在同一网络下;</p>
  2870. <p class="translatable_problem2">2、填写联网成功获取的IP地址</p>
  2871. <p><span class="translatable_problem3">3、该功能需要你同意访问,</span>&nbsp;&nbsp;&nbsp;<span style="color: #2196F3;"
  2872. id="getIpLink"></span></p>
  2873. <p class="translatable_problem4">4、点击下方按钮,页面将进行跳转</p>
  2874. </div>
  2875. <div class="modal-footer">
  2876. <a onclick="linkOkay()" class="waves-effect btn-flat blue"><span class="translatable_okay"
  2877. style="color:#fff">Okay</span></a>
  2878. <a class="waves-effect btn-flat modal-close blue"><span class="translatable_cancel"
  2879. style="color:#fff">Cancel</span></a>
  2880. </div>
  2881. </div>
  2882. <div id="gen_alert" class="modale modal_closes modal_small" style="width:730px">
  2883. <div class="modal-content">
  2884. <span class="modal_close" style="padding: 5px;">
  2885. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2886. </span>
  2887. <h5 id="gen_alert_title" style="width: 80%;">Empty Alert</h5>
  2888. <p><span id="gen_alert_body">Empty alert text</span></p>
  2889. </div>
  2890. <div class="modal-footer">
  2891. <a id="gen_alert_ok_link" class="waves-effect btn-flat modal-close blue"><span class="translatable_okay"
  2892. style="color:#fff">Okay</span></a>
  2893. <a id="gen_alert_cancel_link" class="waves-effect btn-flat modal-close blue"><span
  2894. class="translatable_cancel" style="color:#fff">Cancel</span></a>
  2895. </div>
  2896. </div>
  2897. <!-- Example Alert: Content is loaded using JavaScript to display alerts -->
  2898. <div id="example_alert" class="modale modal_small" style="height:30%;width: 30%;">
  2899. <div class="modal-content">
  2900. <div id="loading" style="text-align:center;display: none;">
  2901. <img src="./gif/loading.gif" style="width: 300px;" />
  2902. </div>
  2903. <p
  2904. style="text-align:center;font-weight:bold;font-size:20px;z-index: 1087;position: absolute;left: 0;right: 0;top: 50%;">
  2905. <span id="example_alert_body">Empty alert text</span>
  2906. </p>
  2907. </div>
  2908. </div>
  2909. <!-- local storage - export modal -->
  2910. <div id="Storage_export_modal" class="modal mm modal_closes" style="width:730px">
  2911. <div class="modal-content">
  2912. <span class="modal_close" style="padding: 5px;"><i class="small material-icons"
  2913. style="font-size: 1.5rem;">close</i></span>
  2914. <h4 class="translatable_localStorageExport" style="width: 80%;">Export Project</h4>
  2915. <div> <span class="translatable_ExportTooltip" sytle="margin-left:10px">Export current project blocks and
  2916. save it your computer,so you can open it next time when you need it</span></div>
  2917. <div class="row" style="margin: 10px;height: 200px;width: 640px;position: relative;">
  2918. <div style="display:block">
  2919. <div class="col l6">
  2920. <img src="./icons/blockly-file-export_xml.png"
  2921. style="width:20%;position:relative;left:50%;right:50%;transform:translateX(-50%);">
  2922. </div>
  2923. <div class="col l6">
  2924. <img src="./icons/blockly-file-export_png.png"
  2925. style="width:20%;position:relative;left:50%;right:50%;transform:translateX(-50%);">
  2926. </div>
  2927. </div>
  2928. <div>
  2929. <div class="col l6">
  2930. <a id="modal_exportFileBtn" class="waves-effect btn-flat blue"
  2931. style="left: 50%;right: 50%;transform: translateX(-50%)"><span
  2932. class="translatable_exportFile" style="font-size:15px;color:#fff">Project
  2933. File</span></a>
  2934. </div>
  2935. <div class="col l6">
  2936. <a id="modal_exportSnapBtn" class="waves-effect btn-flat blue"
  2937. style="left: 50%;right: 50%;transform: translateX(-50%)"><span
  2938. class="translatable_exportSnap" style="font-size:15px;color:#fff">Snapshot</span></a>
  2939. </div>
  2940. </div>
  2941. <div>
  2942. <div class="col l6">
  2943. <p class="translatable_ExportFileContent"
  2944. style="display:block;text-align:center;width:80%;position: relative;left: 50%;right: 50%;transform: translateX(-50%);font-size:0.875rem">
  2945. Will export as an *xml file.<br>for you to continuing code nextime</p>
  2946. </div>
  2947. <div class="col l6">
  2948. <p class="translatable_ExportSnapContent"
  2949. style="display:block;text-align:center;width:80%;position: relative;left: 50%;right: 50%;transform: translateX(-50%);font-size:0.875rem">
  2950. Will export to a *png picture.<br>for your reference</p>
  2951. </div>
  2952. </div>
  2953. </div>
  2954. </div>
  2955. </div>
  2956. <div style="display: none;" id="content_blocks"></div>
  2957. <!-- cloud storage modal -->
  2958. <div id="cloud_storage_modal" class="modal modal_closes">
  2959. <div class="modal-content" style="background-color: white;">
  2960. <span class="modal_close" style="padding: 5px;">
  2961. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2962. </span>
  2963. <h4 class="translatable_cloudStorageTitle" style="position: relative;z-index: 1050;width: 80%;">Cloud
  2964. Storage</h4>
  2965. <div id="cloud_askLogin"></div>
  2966. <div id="cloud_fileListArea" class="cloud-file" style="display:none">
  2967. </div>
  2968. </div>
  2969. <div id="cloud_modal_preload" style="display:none">
  2970. <div style="position:relative;top:50%;transform:translateY(-50%);height:128px;width:128px;margin:0 auto;">
  2971. <div class="preloader-wrapper big active" style="top:0;left:0">
  2972. <div class="spinner-layer spinner-blue-only">
  2973. <div class="circle-clipper left">
  2974. <div class="circle"></div>
  2975. </div>
  2976. <div class="gap-patch">
  2977. <div class="circle"></div>
  2978. </div>
  2979. <div class="circle-clipper right">
  2980. <div class="circle"></div>
  2981. </div>
  2982. </div>
  2983. </div>
  2984. </div>
  2985. </div>
  2986. </div>
  2987. <!-- share modal -->
  2988. <div id="share" class="modal">
  2989. <div class="modal-content">
  2990. <h4 class="">程序分享</h4>
  2991. <div style="text-align: center;">
  2992. <div id="QrImg" style="display: inline-block;"></div>
  2993. </div>
  2994. <p class="qrImgUrl"></p>
  2995. </div>
  2996. </div>
  2997. <!-- 手动选择模式 modal-->
  2998. <div id="selectModule" class="modal selectModuleModal">
  2999. <div class="modal-content" style="text-align: center;">
  3000. <h6 class="translatable_selectModule">选择模块</h6>
  3001. <div
  3002. style="text-align: center;display: flex;flex-direction: row;justify-content: space-between;align-items: center;margin-top: 20px;">
  3003. <div style="display: flex;flex-direction: column;height: 220px;width: 220px;justify-content: center;align-items: center;"
  3004. id="AI_module" onclick="select_Module('AI_module')">
  3005. <span class="translatable_ai_mode" style="margin-bottom: 10px;">AI 模块</span>
  3006. <img src="./images/AI_Module.png" width="200" />
  3007. </div>
  3008. <div style="display: flex;flex-direction: column;height: 220px;width: 220px;justify-content: center;align-items: center;"
  3009. id="IoT_module" onclick="select_Module('IoT_module')">
  3010. <span class="translatable_iot_mode" style="margin-bottom: 10px;">IoT 模块</span>
  3011. <img src="./images/IoT_Module.png" width="200" />
  3012. </div>
  3013. </div>
  3014. <div style="margin-top: 20px;">
  3015. <button onclick="selectModule_confirm()"
  3016. class="waves-effect waves-light btn blue translatable_confirm">确定</button>
  3017. </div>
  3018. </div>
  3019. </div>
  3020. <div class="downbox MouduleBox" id="MouduleBox"
  3021. style="display:none;position: fixed;width:175px;height:122px;right:50px;top:225px;">
  3022. <div>
  3023. <div class="translatable_iot_module">IoT Module</div>
  3024. </div>
  3025. <div>
  3026. <div class="">V 831</div>
  3027. </div>
  3028. <div><a href="//python-blockly.cocorobo.cn" style="color: #424242 !important;"
  3029. class="translatable_cloud_mode">Cloud
  3030. Mode</a></div>
  3031. <div><a href="//ai-blockly.cocorobo.cn" style="color: #424242 !important;"
  3032. class="translatable_javascript_mode">JavaScript Mode</a></div>
  3033. </div>
  3034. <div id="ai_tt" class="MouduleBox"
  3035. style="display:none;position: fixed;width:230px;right:-15px;top:225px;z-index: 1000;">
  3036. <div class="downbox1 ModeBox1 downbox-style">
  3037. <div>
  3038. <div>人工智能教材程序</div>
  3039. <i class="downboxdown1"></i>
  3040. <div class="Hardware2 HarxA1" id="aaaa" style="height:auto;top:-35px">
  3041. <div class="Hardware9">
  3042. <div>三年级</div>
  3043. <i class="downboxdown1"></i>
  3044. <ul class="Hardware4 HarxA1" style="left: calc(100% - 415px);">
  3045. <li>录制语音指令</li>
  3046. <li>语音识别台灯</li>
  3047. <!-- <li>人脸识别防盗门</li> -->
  3048. </ul>
  3049. </div>
  3050. <div class="Hardware4n" style="display: none;">
  3051. <div>四年级</div>
  3052. <i class="downboxdown1"></i>
  3053. <ul class="Hardware4 HarxA1" style="left: calc(100% - 415px);">
  3054. <li>人臉檢測</li>
  3055. <li>物體識別進階</li>
  3056. </ul>
  3057. </div>
  3058. <div class="Hardware5">
  3059. <div>五年级</div>
  3060. <i class="downboxdown1"></i>
  3061. <ul class="Hardware4 HarxA1" style="left: calc(100% - 415px);">
  3062. <li>录制语音指令</li>
  3063. <li>智能窗帘</li>
  3064. <li>水果采摘机器人</li>
  3065. <li>智能质检机器人</li>
  3066. </ul>
  3067. </div>
  3068. <div class="Hardware6">
  3069. <div>六年级</div>
  3070. <i class="downboxdown1"></i>
  3071. <ul class="Hardware4 HarxA1" style="left: calc(100% - 415px);">
  3072. <li>智能交通信号灯</li>
  3073. <li>导盲项链</li>
  3074. <li>二维码包裹分拣机器人</li>
  3075. <li>无人驾驶循环小车</li>
  3076. </ul>
  3077. </div>
  3078. <div class="Hardware7">
  3079. <div>七年级</div>
  3080. <i class="downboxdown1"></i>
  3081. <ul class="Hardware4 HarxA1" style="left: calc(100% - 415px);">
  3082. <li>人脸辨识电子警察</li>
  3083. </ul>
  3084. </div>
  3085. <div class="Hardware8">
  3086. <div>八年级</div>
  3087. <i class="downboxdown1"></i>
  3088. <ul class="Hardware4 HarxA1" style="left: calc(100% - 415px);">
  3089. <li>支付台</li>
  3090. </ul>
  3091. </div>
  3092. </div>
  3093. </div>
  3094. <div>
  3095. <div>IoT 模块基础案例</div>
  3096. <i class="downboxdown1"></i>
  3097. <ul class="Hardware2 HarxA1">
  3098. <li>侧边按键控制蜂鸣器</li>
  3099. <li> 侧边按键控制开关 LED</li>
  3100. <li> 触摸区域控制 LED</li>
  3101. <li> 蜂鸣器警报</li>
  3102. <li> 黑暗环境感应光照灯</li>
  3103. <li> 倾斜方向感应 LED</li>
  3104. <li> 湿度报警器</li>
  3105. <li> 摇晃感应 LED</li>
  3106. <li> LED 显示光线强度值</li>
  3107. </ul>
  3108. </div>
  3109. <div>
  3110. <div>IoT 模块扩展功能案例</div>
  3111. <i class="downboxdown1"></i>
  3112. <ul class="Hardware2 HarxA1">
  3113. <li>使用 LED 灯屏</li>
  3114. <li>使用电机驱动模块</li>
  3115. <li>使用游戏手柄 + LED 灯屏</li>
  3116. <li>使用游戏手柄 + 屏幕模块</li>
  3117. <li>在扩展模块上控制舵机</li>
  3118. <li>屏幕显示Hello World</li>
  3119. <li>屏幕绘制线条动画</li>
  3120. <li>按键控制屏幕直线转动</li>
  3121. <li>按键控制颜色切换</li>
  3122. <li>计步器</li>
  3123. <li>计步器 + LED 灯屏</li>
  3124. <li>使用蓝牙发送数据</li>
  3125. <li>屏幕显示蓝牙接收的数据</li>
  3126. </ul>
  3127. </div>
  3128. <div>
  3129. <div>IoT 模块联网案例</div>
  3130. <i class="downboxdown1"></i>
  3131. <ul class="Hardware2 HarxA1 HarxA1_last" style="top: calc(50% - 50px);">
  3132. <li>按键发送光照数据至 CocoCloud</li>
  3133. <li>按键发送环境数据至 IFTTT</li>
  3134. <li>按键获取光照数据并根据条件亮灯</li>
  3135. <li>定时发送环境数据至 CocoCloud</li>
  3136. <li>定时接收环境数据并根据条件亮灯</li>
  3137. <li>建立 WiFi 热点并显示连接设备数量</li>
  3138. <li style="display: none;">局域网环境数据存储 - 服务器端</li>
  3139. <li style="display: none;">局域网环境数据获取 - 客户端</li>
  3140. <li>连接 WiFi 网络</li>
  3141. <li style="display: none;">模块间按钮状态存储 - 服务端</li>
  3142. <li style="display: none;">模块间按钮状态接收 - 客户端</li>
  3143. <li style="display: none;">模块间进行 WebSocket 实时通信 - 发送端</li>
  3144. <li style="display: none;">模块间进行 WebSocket 实时通信 - 接收端</li>
  3145. <li>同步网络时间</li>
  3146. <li>数字手表显示实时时间</li>
  3147. </ul>
  3148. </div>
  3149. <div>
  3150. <div>AI 模块机器学习案例</div>
  3151. <i class="downboxdown1"></i>
  3152. <ul class="Hardware2 HarxA1">
  3153. <li>人脸辨识智能门</li>
  3154. <li>垃圾分类识别(香港版)</li>
  3155. <li>人脸检测</li>
  3156. <li>物体识别</li>
  3157. <li>人脸检测</li>
  3158. <li>物体识别</li>
  3159. <li>语音录制</li>
  3160. <li>语音识别</li>
  3161. <li>MNIST 手写数字识别</li>
  3162. </ul>
  3163. </div>
  3164. <div>
  3165. <div>AI 自动驾驶</div>
  3166. <i class="downboxdown1"></i>
  3167. <ul class="Hardware2 HarxA1" style="top: calc(50% - 80px)">
  3168. <li>第一場-路標識別(香港標識)</li>
  3169. <li>第二場-巡線(雙線)</li>
  3170. <li>第二場-巡線(單線-靠左行駛)</li>
  3171. <li>第一場-路標識別(香港標識)</li>
  3172. </ul>
  3173. </div>
  3174. </div>
  3175. </div>
  3176. <!-- <iframe id="web" name="web" src="//x.cocorobo.cn/web.html" style="display: none"></iframe> -->
  3177. <!-- 案例modal -->
  3178. <div id="select_Example_modal" class="modal select_Example_modal modal_closes">
  3179. <div class="modal-content" style="background-color: white;height: 100%;">
  3180. <span class="modal_close" style="padding: 5px;right: 15px;top: 10px;">
  3181. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  3182. </span>
  3183. <h4 class="select_Example_title translatable_select_Example">Example</h4>
  3184. <!-- <div id="cloud_askLogin"></div> -->
  3185. <div id="select_ExampleArea" class="cloud-file" style="background-color: white;height: 90%;">
  3186. <div class="examplate_style">
  3187. <div class="container-middle">
  3188. <div id="item" style="display: flex;flex-direction: column;">
  3189. <div class="con" style="position: relative;">
  3190. <ul style="display: flex;flex-direction: column;">
  3191. <li class="container-top-active translatable_basic_use">基础使用</li>
  3192. <li class="container-top-noactive translatable_ExtendedFunction">媒体处理</li>
  3193. <li class="container-top-noactive translatable_AI">AI 智能</li>
  3194. <li class="container-top-noactive translatable_catIoTService">物联网</li>
  3195. <li class="container-top-noactive translatable_Expand">扩展</li>
  3196. </ul>
  3197. </div>
  3198. </div>
  3199. </div>
  3200. <div class="container-middle-1">
  3201. <div id="item_1" style="display: flex;flex-direction: column;">
  3202. <div class="con" style="display: flex;flex-direction: column;position: relative;">
  3203. <ul style="display: flex;flex-direction: column;">
  3204. <li class="container-top-active arrow_active translatable_basic_use">基础使用</li>
  3205. <li class="container-top-noactive arrow translatable_screen_module">屏幕模块</li>
  3206. <li class="container-top-noactive arrow translatable_catCamera">摄像头</li>
  3207. <li class="container-top-noactive arrow translatable_catSensor">传感器</li>
  3208. <li class="container-top-noactive arrow translatable_serialcomm_print">串口打印</li>
  3209. <li class="container-top-noactive arrow translatable_catComms">串口通讯</li>
  3210. <li class="container-top-noactive arrow translatable_basic_power">动力</li>
  3211. </ul>
  3212. </div>
  3213. <div class="con" style="display: none; position: relative;">
  3214. <ul style="display: flex;flex-direction: column;">
  3215. <li class="container-top-active translatable_catImageProcess">图形处理</li>
  3216. <li class="container-top-noactive arrow translatable_catAudio">音频处理</li>
  3217. <li class="container-top-active translatable_catIV">视频处理</li>
  3218. </ul>
  3219. </div>
  3220. <div class="con" style="display: none; position: relative;">
  3221. <ul style="display: flex;flex-direction: column;">
  3222. <li class="container-top-active translatable_catModels">AI 模型</li>
  3223. </ul>
  3224. <ul style="display: flex;flex-direction: column;">
  3225. <li class="container-top-active translatable_xunfeiIndetify">在线识别</li>
  3226. </ul>
  3227. </div>
  3228. <div class="con" style="display: none; position: relative;">
  3229. <ul style="display: flex;flex-direction: column;">
  3230. <li class="container-top-active translatable_catBasics">物联网</li>
  3231. <li class="container-top-active translatable_catWeb">网络</li>
  3232. </ul>
  3233. </div>
  3234. <div class="con" style="display: none; position: relative;">
  3235. <ul style="display: flex;flex-direction: column;">
  3236. <li class="container-top-active translatable_extended_use">系统</li>
  3237. </ul>
  3238. </div>
  3239. </div>
  3240. </div>
  3241. <div class="container-bottom" id="example">
  3242. <div class="con" style="position: relative;">
  3243. <ul style="display: flex;flex-direction: column;">
  3244. <li class="container-top-noactive" onclick="clickLoadingExample('基础/按钮控制LED.xml')">
  3245. <div class="translatable_basis_led">按钮控制LED灯亮灭</div>
  3246. </li>
  3247. <li class="container-top-noactive" onclick="clickLoadingExample('基础/按键控制RGB灯亮.xml')">
  3248. <div class="translatable_basis_RGB">按键控制RGB灯亮</div>
  3249. </li>
  3250. </ul>
  3251. </div>
  3252. <div class="con" style="display: none;position: relative;">
  3253. <ul style="display: flex;flex-direction: column;">
  3254. <li class="container-top-noactive" onclick="clickLoadingExample('屏幕显示hello_world.xml')">
  3255. <div class="translatable_select_thwos">屏幕显示Hello World</div>
  3256. </li>
  3257. <li class="container-top-noactive" onclick="clickLoadingExample('屏幕显示实心矩形.xml')">
  3258. <div class="translatable_show_rectangle">屏幕显示实心矩形</div>
  3259. </li>
  3260. <li class="container-top-noactive" onclick="clickLoadingExample('屏幕加载图片.xml')">
  3261. <div class="translatable_show_image">屏幕显示图片</div>
  3262. </li>
  3263. <li class="container-top-noactive" onclick="clickLoadingExample('竖屏显示矩形.xml')">
  3264. <div class="translatable_portrait_screen_rectangle">竖屏显示矩形</div>
  3265. </li>
  3266. <li class="container-top-noactive" onclick="clickLoadingExample('屏幕/自动切换图片.xml')">
  3267. <div class="translatable_switch_pictures">自动切换图片</div>
  3268. </li>
  3269. <li class="container-top-noactive" onclick="clickLoadingExample('屏幕/按键切换背景色.xml')">
  3270. <div class="translatable_switch_background">按键切换背景色</div>
  3271. </li>
  3272. <li class="container-top-noactive" onclick="clickLoadingExample('屏幕/旋转指定角度.xml')">
  3273. <div class="translatable_Angular_rotation">旋转指定角度</div>
  3274. </li>
  3275. <li class="container-top-noactive" onclick="clickLoadingExample('屏幕/小游戏:漫步者.xml')">
  3276. <div class="translatable_Rambler">小游戏:漫步者</div>
  3277. </li>
  3278. </ul>
  3279. </div>
  3280. <div class="con" style="display: none; position: relative;">
  3281. <ul style="display: flex;flex-direction: column;">
  3282. <li class="container-top-noactive" onclick="clickLoadingExample('照相机.xml')">
  3283. <div class="translatable_select_MC">照相机</div>
  3284. </li>
  3285. <li class="container-top-noactive" onclick="clickLoadingExample('图像传输显示电脑.xml')">
  3286. <div class="translatable_img_transmission_show">图像传输显示电脑</div>
  3287. </li>
  3288. </ul>
  3289. </div>
  3290. <div class="con" style="display: none; position: relative;">
  3291. <ul style="display: flex;flex-direction: column;">
  3292. <li class="container-top-noactive" onclick="clickLoadingExample('传感器/光照值.xml')">
  3293. <div class="translatable_light_value">光照值显示</div>
  3294. </li>
  3295. <li class="container-top-noactive" onclick="clickLoadingExample('传感器/温湿度.xml')">
  3296. <div class="translatable_temperature_and_humidity">温湿度屏幕显示</div>
  3297. </li>
  3298. <li class="container-top-noactive" onclick="clickLoadingExample('屏幕/贪吃蛇.xml')">
  3299. <div class="translatable_select_greedy_snake">贪吃蛇</div>
  3300. </li>
  3301. <!-- <li class="container-top-noactive" onclick="clickLoadingExample('传感器/加速度.xml')">
  3302. <div class="translatable_acceleration_value">QMI8658 加速度值显示</div>
  3303. </li>
  3304. <li class="container-top-noactive" onclick="clickLoadingExample('传感器/旋转值.xml')">
  3305. <div class="translatable_rotation_value">QMI8658 旋转值显示</div>
  3306. </li>
  3307. <li class="container-top-noactive" onclick="clickLoadingExample('传感器/倾斜角度.xml')">
  3308. <div class="translatable_angle_value">QMI8658 倾斜角度显示</div>
  3309. </li> -->
  3310. </ul>
  3311. </div>
  3312. <div class="con" style="display: none; position: relative;">
  3313. <ul style="display: flex;flex-direction: column;">
  3314. <li class="container-top-noactive" onclick="clickLoadingExample('输出Hello_world.xml')">
  3315. <div class="translatable_print_hello_world">输出hello World</div>
  3316. </li>
  3317. </ul>
  3318. </div>
  3319. <div class="con" style="display: none; position: relative;">
  3320. <ul style="display: flex;flex-direction: column;">
  3321. <li class="container-top-noactive" onclick="clickLoadingExample('串口/串口发送数据至其他设备.xml')">
  3322. <div class="translatable_serial_comm_fa">串口通信(发)</div>
  3323. </li>
  3324. <li class="container-top-noactive" onclick="clickLoadingExample('串口/uart_receive.xml')">
  3325. <div class="translatable_serial_comm">串口通信(收)</div>
  3326. </li>
  3327. </ul>
  3328. </div>
  3329. <div class="con" style="display: none; position: relative;">
  3330. <ul style="display: flex;flex-direction: column;">
  3331. <li class="container-top-noactive" onclick="clickLoadingExample('动力/舵机程序.xml')">
  3332. <div class="translatable_fullRotate">控制舵机</div>
  3333. </li>
  3334. <li class="container-top-noactive" onclick="clickLoadingExample('动力/电机程序.xml')">
  3335. <div class="translatable_motor_rotation">电机旋转</div>
  3336. </li>
  3337. </ul>
  3338. </div>
  3339. <div class="con" style="display: none; position: relative;">
  3340. <ul style="display: flex;flex-direction: column;">
  3341. <li class="container-top-noactive" onclick="clickLoadingExample('图像处理/区域颜色分析.xml')">
  3342. <div class="translatable_area_color_analysis">区域颜色分析</div>
  3343. </li>
  3344. <li class="container-top-noactive" onclick="clickLoadingExample('图像处理/循线-单.xml')">
  3345. <div class="translatable_ai_tpl2">循线(单线)</div>
  3346. </li>
  3347. <li class="container-top-noactive" onclick="clickLoadingExample('图像处理/二维码识别.xml')">
  3348. <div class="translatable_QR_code_recognition">二维码识别</div>
  3349. </li>
  3350. </div>
  3351. <div class="con" style="display: none;position: relative;">
  3352. <ul style="display: flex;flex-direction: column;">
  3353. <!-- <li class="container-top-noactive" onclick="clickLoadingExample('屏幕绘制直线.xml')">
  3354. <div class="translatable_screen_module">屏幕绘制直线</div>
  3355. </li> -->
  3356. <li class="container-top-noactive" onclick="clickLoadingExample('luzhiyinpin.xml')">
  3357. <div class="translatable_Record_audio">录制音频</div>
  3358. </li>
  3359. <li class="container-top-noactive" onclick="clickLoadingExample('bofangyinpin.xml')">
  3360. <div class="translatable_select_PAF">播放音频</div>
  3361. </li>
  3362. </ul>
  3363. </div>
  3364. <div class="con" style="display: none; position: relative;">
  3365. <ul style="display: flex;flex-direction: column;">
  3366. <li class="container-top-noactive"
  3367. onclick="clickLoadingExample('video/play_vidoe.xml')">
  3368. <div class="translatable_paly_video">播放视频</div>
  3369. </li>
  3370. </ul>
  3371. </div>
  3372. <div class="con" style="display: none; position: relative;">
  3373. <ul style="display: flex;flex-direction: column;">
  3374. <li class="container-top-noactive" onclick="clickLoadingExample('AI/人脸检测.xml')">
  3375. <div class="translatable_basis_face_recognition">人脸检测</div>
  3376. </li>
  3377. <li class="container-top-noactive" onclick="clickLoadingExample('AI/人脸采集.xml')">
  3378. <div class="translatable_face_collection">人脸识别(采集人脸)</div>
  3379. </li>
  3380. <li class="container-top-noactive" onclick="clickLoadingExample('AI/人脸识别.xml')">
  3381. <div class="translatable_face_recognition">人脸识别(识别人脸)</div>
  3382. </li>
  3383. <li class="container-top-noactive" onclick="clickLoadingExample('AI/物体检测.xml')">
  3384. <div class="translatable_basis_object_recognition">物体检测</div>
  3385. </li>
  3386. <li class="container-top-noactive" onclick="clickLoadingExample('AI/猜拳手势识别.xml')">
  3387. <div class="translatable_Guesswork_recognition">猜拳手势识别</div>
  3388. </li>
  3389. <li class="container-top-noactive" onclick="clickLoadingExample('AI/实时边缘检测.xml')">
  3390. <div class="translatable_edge_detection">实时边缘检测</div>
  3391. </li>
  3392. <li class="container-top-noactive" onclick="clickLoadingExample('AI/图片边缘检测.xml')">
  3393. <div class="translatable_image_edge_detection">图片边缘检测</div>
  3394. </li>
  3395. <li class="container-top-noactive" onclick="clickLoadingExample('AI/数字识别.xml')">
  3396. <div class="translatable_digital_recognition">数字识别</div>
  3397. </li>
  3398. <li class="container-top-noactive" onclick="clickLoadingExample('AI/自学习.xml')">
  3399. <div class="translatable_self_learning">自学习分类</div>
  3400. </li>
  3401. <li class="container-top-noactive" onclick="clickLoadingExample('AI/自定义训练识别.xml')">
  3402. <div class="translatable_custom_training">自定义训练识别</div>
  3403. </li>
  3404. <li class="container-top-noactive" onclick="clickLoadingExample('AI/语音录制识别.xml')">
  3405. <div class="translatable_recorded_voice_command">语音录制识别</div>
  3406. </li>
  3407. <li class="container-top-noactive" onclick="clickLoadingExample('AI/语音录制(识别).xml')">
  3408. <div class="translatable_AI_speech_1">语音录制识别</div>
  3409. </li>
  3410. <li class="container-top-noactive" onclick="clickLoadingExample('AI/车牌识别.xml')">
  3411. <div class="translatable_basis_card_recognition">车牌识别</div>
  3412. </li>
  3413. <li class="container-top-noactive"
  3414. onclick="clickLoadingExample('AI/numpyMnist训练模型.xml')">
  3415. <div class="translatable_numpy_mnist_train_model">numpy + mnist 训练模型</div>
  3416. </li>
  3417. <li class="container-top-noactive" onclick="clickLoadingExample('AI/numpyMnist识别.xml')">
  3418. <div class="translatable_numpy_mnist_result">numpy + mnist 识别</div>
  3419. </li>
  3420. </ul>
  3421. </div>
  3422. <div class="con" style="display: none; position: relative;">
  3423. <ul style="display: flex;flex-direction: column;">
  3424. <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/在线人脸检测.xml')">
  3425. <div class="translatable_FaceIndetify">在线人脸识别</div>
  3426. </li>
  3427. <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/在线语音识别.xml')">
  3428. <div class="translatable_VoiceIndetify">在线语音识别</div>
  3429. </li>
  3430. <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/在线文本转语音并播放.xml')">
  3431. <div class="translatable_textConVoice">文本转语音并播放</div>
  3432. </li>
  3433. <!-- <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/车牌识别.xml')">
  3434. <div class="translatable_card_indetify">车牌识别</div>
  3435. </li> -->
  3436. <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/机器翻译.xml')">
  3437. <div class="translatable_machine_translation">机器翻译</div>
  3438. </li>
  3439. <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/文字识别.xml')">
  3440. <div class="translatable_Handwritten_texts">在线文字识别</div>
  3441. </li>
  3442. <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/公式识别.xml')">
  3443. <div class="translatable_formula">公式识别</div>
  3444. </li>
  3445. <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/情绪识别.xml')">
  3446. <div class="translatable_AI_emotion">情绪识别</div>
  3447. </li>
  3448. <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/手势识别.xml')">
  3449. <div class="translatable_gesturesTitle">手势识别</div>
  3450. </li>
  3451. </ul>
  3452. </div>
  3453. <div class="con" style="display: none; position: relative;">
  3454. <ul style="display: flex;flex-direction: column;">
  3455. <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/设置wifi联网.xml')">
  3456. <div class="translatable_set_Wifi">设置wifi联网</div>
  3457. </li>
  3458. <li class="container-top-noactive" onclick="clickLoadingExample('web/同步网络时间.xml')">
  3459. <div class="translatable_select_snt">同步网络时间</div>
  3460. </li>
  3461. </ul>
  3462. </div>
  3463. <div class="con" style="display: none; position: relative;">
  3464. <ul style="display: flex;flex-direction: column;">
  3465. <li class="container-top-noactive" onclick="clickLoadingExample('web/获取网络天气.xml')">
  3466. <div class="translatable_get_web_weather">获取网络天气</div>
  3467. </li>
  3468. <li class="container-top-noactive" onclick="clickLoadingExample('web/云端发送光线值.xml')">
  3469. <div class="translatable_serial_comm_iot_send">云端发送光线值</div>
  3470. </li>
  3471. </ul>
  3472. </div>
  3473. <div class="con" style="display: none; position: relative;">
  3474. <ul style="display: flex;flex-direction: column;">
  3475. <li class="container-top-noactive" onclick="clickLoadingExample('扩展/LED灯带.xml')">
  3476. <div class="translatable_catLEDStrip">LED灯带</div>
  3477. </li>
  3478. <!-- <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/在线物体识别.xml')">
  3479. <div class="translatable_online_object_indetify">物体识别</div>
  3480. </li> -->
  3481. </ul>
  3482. </div>
  3483. </div>
  3484. </div>
  3485. </div>
  3486. </div>
  3487. </div>
  3488. <!-- webadb 文件 -->
  3489. <div id="webadbIframeFile" class="modal modal_closes">
  3490. <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
  3491. class="small material-icons" style="font-size: 1.5rem;">close</i></span>
  3492. <div id="file_manager_back" onclick="document.getElementById('file_manager').contentWindow.history.back()"
  3493. style="padding: 5px;position: absolute;left: -2px;top: 7px;cursor: pointer;width: 35px;"><i
  3494. class="small material-icons" style="font-size: 1.5rem;">arrow_back</i></div>
  3495. <iframe id="file_manager" frameborder="0" style="width: 100%;height: 100%;" scrolling="no"
  3496. allow="camera *; fullscreen *;fullscreen 'src'"></iframe>
  3497. </div>
  3498. <!-- 模型下载modal -->
  3499. <div id="select_Model_download_modal" class="modal select_Example_modal modal_closes">
  3500. <span class="modal_close" style="padding: 22px;position: absolute;right: 0;cursor: pointer;"><i
  3501. class="small material-icons" style="font-size: 1.5rem;"
  3502. onclick="$('#select_Model_download_modal').modal('close')">close</i></span>
  3503. <div id="TM_login_Model_download_modal" style="display: none;"></div>
  3504. <div id="Model_download_modal" class="modal-content" style="background-color: white;height: 95%;padding: 30px;">
  3505. <!-- <span class="modal_close" style="padding: 5px;right: 15px;top: 20px;">
  3506. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  3507. </span> -->
  3508. <h4 class="select_Example_title translatable_model_download" style="width: 80%;">Model Download</h4>
  3509. <!-- <div id="cloud_askLogin"></div> -->
  3510. <div id="select_ExampleArea" class="cloud-file"
  3511. style="background-color: white;height: 90%;overflow-y: auto;overflow-x: hidden;margin-top: 40px;">
  3512. <div
  3513. style="margin: 40px auto 0 auto;height: 100%;font-size: 16px;background-color: white;flex-direction: row;display: flex;margin-top: 0;">
  3514. <div style="display: flex;flex-direction: column;width: 98%;">
  3515. <div
  3516. style="display: flex;flex-direction: row;justify-content: space-between;min-height: 400px;">
  3517. <div class="model_download_modal_column"
  3518. style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
  3519. <div class="modelDownloadItemImg"
  3520. style="background: url('./images/model/AI训练平台.jpg') no-repeat center center;position: relative;">
  3521. <!-- <div
  3522. style="background: #6689FC;border-radius: 0px 20px 0px 20px;position: absolute;right: 0;padding: 7px;">
  3523. <span
  3524. style="font-size: 15px;font-weight: bold;color: #FFFFFF;line-height: 16px;"
  3525. class="translatable_model_download_new">最新上线</span>
  3526. </div> -->
  3527. </div>
  3528. <div style="display: flex;flex-direction: row;justify-content: space-between;">
  3529. <div class="modelDownloadItemTitle translatable_model_download_AI_training">
  3530. AI 训练平台</div>
  3531. <div class="vision_category"
  3532. style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
  3533. <div class="modelDownloadItemCategory">
  3534. <span
  3535. class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
  3536. </div>
  3537. </div>
  3538. </div>
  3539. <div class="modelDownloadItemDesc translatable_model_download_AI_training_desc">
  3540. 使用可可乐博训练平台可以帮助您处理数据集,引导您一步步的开始模型训练。
  3541. </div>
  3542. <div style="text-align: center;width: 100%;">
  3543. translatable <button class="modelDownloadItemBtn"
  3544. onclick="enterTraining('//beta.model-training.cocorobo.hk')">
  3545. <span
  3546. class="modelDownloadItemBtntext translatable_app_center_enter_button">进入</span>
  3547. </button>
  3548. </div>
  3549. </div>
  3550. <div class="model_download_modal_column"
  3551. style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
  3552. <div class="modelDownloadItemImg"
  3553. style="background: url('./images/model/AI训练平台.jpg') no-repeat center center;position: relative;">
  3554. <!-- <div
  3555. style="background: #6689FC;border-radius: 0px 20px 0px 20px;position: absolute;right: 0;padding: 7px;">
  3556. <span
  3557. style="font-size: 15px;font-weight: bold;color: #FFFFFF;line-height: 16px;"
  3558. class="translatable_model_download_new">最新上线</span>
  3559. </div> -->
  3560. </div>
  3561. <div style="display: flex;flex-direction: row;justify-content: space-between;">
  3562. <div class="modelDownloadItemTitle translatable_model_download_AI_training">
  3563. AI 训练平台</div>
  3564. <div class="vision_category"
  3565. style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
  3566. <div class="modelDownloadItemCategory">
  3567. <span
  3568. class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
  3569. </div>
  3570. </div>
  3571. </div>
  3572. <div class="modelDownloadItemDesc translatable_model_download_AI_training_desc">
  3573. 使用可可乐博训练平台可以帮助您处理数据集,引导您一步步的开始模型训练。
  3574. </div>
  3575. <div style="text-align: center;width: 100%;">
  3576. <button class="modelDownloadItemBtn"
  3577. onclick="enterTraining('//xunlian.cocorobo.cn')">
  3578. <span
  3579. class="modelDownloadItemBtntext translatable_app_center_enter_button">进入</span>
  3580. </button>
  3581. </div>
  3582. </div>
  3583. <div class="model_download_modal_column"
  3584. style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
  3585. <div class="modelDownloadItemImg"
  3586. style="background: url('./images/model/手势识别追踪模型.jpg') no-repeat center center;position: relative;">
  3587. <div
  3588. style="background: #6689FC;border-radius: 0px 20px 0px 20px;position: absolute;right: 0;padding: 7px;">
  3589. <span
  3590. style="font-size: 15px;font-weight: bold;color: #FFFFFF;line-height: 16px;"
  3591. class="translatable_model_download_new">最新上线</span>
  3592. </div>
  3593. </div>
  3594. <div style="display: flex;flex-direction: row;justify-content: space-between;">
  3595. <div class="modelDownloadItemTitle translatable_model_download_gesture_recognition">
  3596. 手势识别追踪模型</div>
  3597. <div class="vision_category"
  3598. style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
  3599. <div class="modelDownloadItemCategory">
  3600. <span
  3601. class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
  3602. </div>
  3603. </div>
  3604. </div>
  3605. <div class="modelDownloadItemDesc translatable_model_download_gesture_recognition_desc">
  3606. 识别人的不同手势,并追踪人手相对于屏幕所处的位置
  3607. </div>
  3608. <div style="text-align: center;width: 100%;">
  3609. <button class="modelDownloadbtndisabled" disabled>
  3610. <span class="modelDownloadItemBtntext translatable_download_file">下载</span>
  3611. </button>
  3612. </div>
  3613. </div>
  3614. <div class="model_download_modal_column"
  3615. style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
  3616. <div class="modelDownloadItemImg"
  3617. style="background: url('./images/model/人脸识别追踪模型.jpg') no-repeat center center;">
  3618. </div>
  3619. <div style="display: flex;flex-direction: row;justify-content: space-between;">
  3620. <div class="modelDownloadItemTitle translatable_model_download_face_recognition">
  3621. 手势识别追踪模型</div>
  3622. <div class="vision_category"
  3623. style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
  3624. <div class="modelDownloadItemCategory">
  3625. <span
  3626. class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
  3627. </div>
  3628. </div>
  3629. </div>
  3630. <div class="modelDownloadItemDesc translatable_model_download_face_recognition_desc">
  3631. 识别人的不同手势,并追踪人手相对于屏幕所处的位置
  3632. </div>
  3633. <div style="text-align: center;width: 100%;">
  3634. <button class="modelDownloadItemBtn"
  3635. onclick="downloadModel('./kmodels/face-recognition.kmodel')">
  3636. <span class="modelDownloadItemBtntext translatable_download_file">下载</span>
  3637. </button>
  3638. </div>
  3639. </div>
  3640. <div class="model_download_modal_column"
  3641. style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
  3642. <div class="modelDownloadItemImg"
  3643. style="background: url('./images/model/物体识别追踪模型.jpg') no-repeat center center;">
  3644. </div>
  3645. <div style="display: flex;flex-direction: row;justify-content: space-between;">
  3646. <div class="modelDownloadItemTitle translatable_model_download_object_recognition">
  3647. 手势识别追踪模型</div>
  3648. <div class="vision_category"
  3649. style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
  3650. <div class="modelDownloadItemCategory">
  3651. <span
  3652. class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
  3653. </div>
  3654. </div>
  3655. </div>
  3656. <div class="modelDownloadItemDesc translatable_model_download_object_recognition_desc">
  3657. 识别人的不同手势,并追踪人手相对于屏幕所处的位置
  3658. </div>
  3659. <div style="text-align: center;width: 100%;">
  3660. <button class="modelDownloadItemBtn"
  3661. onclick="downloadModel('./kmodels/tinyyolo_v2_20class.kmodel')">
  3662. <span class="modelDownloadItemBtntext translatable_download_file">下载</span>
  3663. </button>
  3664. </div>
  3665. </div>
  3666. </div>
  3667. <div
  3668. style="display: flex;flex-direction: row;justify-content: space-between;margin-top: 40px;min-height: 400px;">
  3669. <div class="model_download_modal_column"
  3670. style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
  3671. <div class="modelDownloadItemImg"
  3672. style="background: url('./images/model/普通话识别模型.jpg') no-repeat center center;">
  3673. </div>
  3674. <div style="display: flex;flex-direction: row;justify-content: space-between;">
  3675. <div
  3676. class="modelDownloadItemTitle translatable_model_download_mandarin_recognition">
  3677. 手势识别追踪模型</div>
  3678. <div class="vision_category"
  3679. style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
  3680. <div class="modelDownloadItemCategory">
  3681. <span
  3682. class="modelDownloadItemCategoryTitle translatable_model_download_voice">视觉</span>
  3683. </div>
  3684. </div>
  3685. </div>
  3686. <div
  3687. class="modelDownloadItemDesc translatable_model_download_mandarin_recognition_desc">
  3688. 识别人的不同手势,并追踪人手相对于屏幕所处的位置
  3689. </div>
  3690. <div style="text-align: center;width: 100%;">
  3691. <button class="modelDownloadbtndisabled" disabled>
  3692. <span class="modelDownloadItemBtntext translatable_download_file">下载</span>
  3693. </button>
  3694. </div>
  3695. </div>
  3696. <div class="model_download_modal_column"
  3697. style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
  3698. <div class="modelDownloadItemImg"
  3699. style="background: url('./images/model/交通路标识别模型.jpg') no-repeat center center;">
  3700. </div>
  3701. <div style="display: flex;flex-direction: row;justify-content: space-between;">
  3702. <div
  3703. class="modelDownloadItemTitle translatable_model_download_traffic_sign_recognition">
  3704. 手势识别追踪模型</div>
  3705. <div class="vision_category"
  3706. style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
  3707. <div class="modelDownloadItemCategory">
  3708. <span
  3709. class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
  3710. </div>
  3711. </div>
  3712. </div>
  3713. <div
  3714. class="modelDownloadItemDesc translatable_model_download_traffic_sign_recognition_desc">
  3715. 识别人的不同手势,并追踪人手相对于屏幕所处的位置
  3716. </div>
  3717. <div style="text-align: center;width: 100%;">
  3718. <button class="modelDownloadbtndisabled" disabled>
  3719. <span class="modelDownloadItemBtntext translatable_download_file">下载</span>
  3720. </button>
  3721. </div>
  3722. </div>
  3723. <div class="model_download_modal_column"
  3724. style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
  3725. <div class="modelDownloadItemImg"
  3726. style="background: url('./images/model/垃圾分类识别模型.jpg') no-repeat center center;">
  3727. </div>
  3728. <div style="display: flex;flex-direction: row;justify-content: space-between;">
  3729. <div
  3730. class="modelDownloadItemTitle translatable_model_download_refuse_classification_recognition">
  3731. 手势识别追踪模型</div>
  3732. <div class="vision_category"
  3733. style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
  3734. <div class="modelDownloadItemCategory">
  3735. <span
  3736. class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
  3737. </div>
  3738. </div>
  3739. </div>
  3740. <div
  3741. class="modelDownloadItemDesc translatable_model_download_refuse_classification_recognition_desc">
  3742. 识别人的不同手势,并追踪人手相对于屏幕所处的位置
  3743. </div>
  3744. <div style="text-align: center;width: 100%;">
  3745. <button class="modelDownloadbtndisabled" disabled>
  3746. <span class="modelDownloadItemBtntext translatable_download_file">下载</span>
  3747. </button>
  3748. </div>
  3749. </div>
  3750. <div class="model_download_modal_column"
  3751. style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
  3752. <div class="modelDownloadItemImg"
  3753. style="background: url('./images/model/手写数字识别模型.jpg') no-repeat center center;">
  3754. </div>
  3755. <div style="display: flex;flex-direction: row;justify-content: space-between;">
  3756. <div
  3757. class="modelDownloadItemTitle translatable_model_download_handwritten_recognition">
  3758. 手势识别追踪模型</div>
  3759. <div class="vision_category"
  3760. style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
  3761. <div class="modelDownloadItemCategory">
  3762. <span
  3763. class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
  3764. </div>
  3765. </div>
  3766. </div>
  3767. <div
  3768. class="modelDownloadItemDesc translatable_model_download_handwritten_recognition_desc">
  3769. 识别人的不同手势,并追踪人手相对于屏幕所处的位置
  3770. </div>
  3771. <div style="text-align: center;width: 100%;">
  3772. <button class="modelDownloadbtndisabled" disabled>
  3773. <span class="modelDownloadItemBtntext translatable_download_file">下载</span>
  3774. </button>
  3775. </div>
  3776. </div>
  3777. </div>
  3778. </div>
  3779. </div>
  3780. </div>
  3781. </div>
  3782. </div>
  3783. <div id="loadModal" class="modal loadModals_Example_modal modal_closes">
  3784. <div class="modal-content update-new" style="display: block;height: 100%;">
  3785. <h4 style="display: inline-block;" class="select_load_title translatable_LoadingH4">最新更新及注意事项
  3786. </h4>
  3787. <span style="font-size: 2rem;font-weight: bold;" class="updateTime"></span>
  3788. <span class="modal_close" style="padding: 5px;right: 15px;top: 10px;">
  3789. <i class="small material-icons" style="font-size: 1.5rem;"
  3790. onclick="$('#loadModal').modal('close')">close</i>
  3791. </span>
  3792. <div style="display: flex;justify-content: space-between;height: calc(100% - 100px);">
  3793. <!-- <p>更新内容</p> -->
  3794. <div class="loadContent left-bottom-radius">
  3795. <h6 class="UpdateContent translatable_UpdateContent">更新内容</h6>
  3796. <ul class="updateConten">
  3797. <li>
  3798. 积木
  3799. <ul id="blockLis" class="updateContent">
  3800. </ul>
  3801. </li>
  3802. <li>样例
  3803. <ul id="exampleLis" class="updateContent">
  3804. </ul>
  3805. </li>
  3806. </ul>
  3807. </div>
  3808. <!-- <p>更新注意事项</p> -->
  3809. <div class="loadContent right-bottom-radius">
  3810. <h6 class="attention-Content translatable_attentionContent">注意事项</h6>
  3811. <ul class="updateConten" id="noteLis">
  3812. </ul>
  3813. </div>
  3814. </div>
  3815. <div style="padding:1% 0;text-align: right;">
  3816. <span class="btn blue" onclick="switchUpdate('2')">历史更新</span>
  3817. </div>
  3818. </div>
  3819. <div class="modal-content update-old" style="display: none;height: 100%;">
  3820. <h4 class="select_load_title translatable_LoadingH4history">历史更新记录
  3821. </h4>
  3822. <span class="updateTime"></span>
  3823. <span class="modal_close" style="padding: 5px;right: 15px;top: 10px;">
  3824. <i class="small material-icons" style="font-size: 1.5rem;"
  3825. onclick="$('#loadModal').modal('close')">close</i>
  3826. </span>
  3827. <div style="display: flex;justify-content: space-between;height: calc(100% - 100px);">
  3828. <!-- <p>更新内容</p> -->
  3829. <div class="loadContent">
  3830. <h6 class="UpdateContent translatable_UpdateContent">更新内容</h6>
  3831. <ul class="updateConten" id="leftUpdateOld">
  3832. </ul>
  3833. </div>
  3834. <!-- <p>更新注意事项</p> -->
  3835. <div class="loadContent">
  3836. <h6 class="attention-Content translatable_attentionContent">注意事项</h6>
  3837. <ul class="updateConten" id="noteLisOld">
  3838. </ul>
  3839. </div>
  3840. </div>
  3841. <div style="padding:1% 0;text-align: right;">
  3842. <span class="btn blue" onclick="switchUpdate('1')">最新更新</span>
  3843. </div>
  3844. </div>
  3845. </div>
  3846. </body>
  3847. <script>
  3848. $("#modal_logout_btn").on("click", function () {
  3849. $("#modal_logout_btn").removeClass('blue');
  3850. $("#modal_logout_btn").css('background', 'gray')
  3851. $(".svgImg").css('display', 'block')
  3852. $(".translate-signout").css('opacity', '0.5')
  3853. $.ajax(`${CCB.base_url}api/logout`, {
  3854. type: "GET",
  3855. xhrFields: {
  3856. withCredentials: true
  3857. },
  3858. success: () => {
  3859. // $('#login_iframe').attr('src', '//staging.cocorobo.cn/login/');
  3860. appendIframe("TM_login");
  3861. $('#TM_login').children().css("height", "820px");
  3862. appendIframe("TM_login_Model_download_modal");
  3863. $('#TM_login_Model_download_modal').children().css("height", "820px");
  3864. $('#TM_login_Model_download_modal').children().css("margin-top", "-225px");
  3865. appendIframe("TM_login_object");
  3866. $('#TM_login_object').children().css("height", "820px");
  3867. appendIframe("TM_login_posenet");
  3868. $('#TM_login_posenet').children().css("height", "820px");
  3869. appendIframe("TM_posenet_login");
  3870. $('#TM_posenet_login').children().css("height", "820px");
  3871. appendIframe("before_login");
  3872. appendIframe("cloud_askLogin");
  3873. appendIframe("TM_login_webcam_capture_modal");
  3874. $('#TM_login_webcam_capture_modal').children().css("width", "820px");
  3875. $('#TM_login_webcam_capture_modal').children().css("height", "820px");
  3876. appendIframe("TM_login_gesture_recog_modal");
  3877. $('#TM_login_gesture_recog_modal').children().css("width", "820px");
  3878. $('#TM_login_gesture_recog_modal').children().css("height", "820px");
  3879. appendIframe("TM_login_voice_input_modal");
  3880. $('#TM_login_voice_input_modal').children().css("width", "820px");
  3881. $('#TM_login_voice_input_modal').children().css("height", "820px");
  3882. appendIframe("TM_center_game");
  3883. $('#TM_center_game').children().css("margin-top", "-300px");
  3884. $('#TM_center_game').children().css("height", "820px");
  3885. Materialize.toast(CCB.str_group.success_userLogout, 4000);
  3886. CCB.userState = false;
  3887. $("#cloud_fileListArea").html("");
  3888. loginModalStatus();
  3889. $("#modal_logout_btn").addClass('blue')
  3890. $(".svgImg").css('display', 'none');
  3891. $(".translate-signout").css('opacity', '1')
  3892. }
  3893. });
  3894. });
  3895. </script>
  3896. <script type="text/javascript" src="./src/blockly/demo.js"></script>
  3897. <script type='text/javascript' src="./src/blockly/recorder.js"></script>
  3898. <script type='text/javascript' src="./src/blockly/jquery.s2t.js"></script>
  3899. </html>