index.html 269 KB

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