index.html 201 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <!-- <title>CocoBlockly X – CocoRobo AI & IoT Module</title> -->
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <meta http-equiv="Content-Type" content="text/html; scharset=UTF-8">
  8. <meta name="theme-color" content="#2C4FCD">
  9. <link type="text/css" rel="stylesheet" href="libs/materialize.min.css" media="screen,projection">
  10. <link rel="stylesheet" href="libs/codemirror/codemirror.css" />
  11. <link rel="stylesheet" href="libs/font-awesome.min.css" />
  12. <link rel="stylesheet" href="libs/summernote/summernote.css" />
  13. <link rel="stylesheet" href="libs/multi-select.css" />
  14. <link rel="stylesheet" href="src/blockpy.css" />
  15. <link rel="stylesheet" href="index.css" />
  16. <link rel="stylesheet" href="cocoblockly.css" />
  17. <!-- JQuery, D3, Math.js, Bootstrap -->
  18. <!-- <script type="text/javascript" src="libs/jquery.js"></script> -->
  19. <script type="text/javascript" src="uform.js"></script>
  20. <script type="text/javascript" src="js_libs/jquery-2.1.3.min.js"></script>
  21. <script type="text/javascript" src="libs/jquery-ui.min.js"></script>
  22. <script type="text/javascript" src="libs/jquery.hotkeys.js"></script>
  23. <script type="text/javascript" src="libs/jquery.multi-select.js"></script>
  24. <script type="text/javascript" src="libs/materialize.min.js"></script>
  25. <!-- <script src="materialize/js/materialize.js"></script> -->
  26. <script type="text/javascript" src="libs/d3.min.js"></script>
  27. <script type="text/javascript" src="libs/math.0.19.0.min.js"></script>
  28. <!-- <script type="text/javascript" src="libs/bootstrap.min.js"></script>
  29. <script type="text/javascript" src="libs/bootstrap-wysiwyg.js"></script> -->
  30. <script type="text/javascript" src="libs/mindmup-editabletable.js"></script>
  31. <script type="text/javascript" src="libs/codemirror/codemirror.js"></script>
  32. <script type="text/javascript" src="libs/codemirror/python.js"></script>
  33. <script type="text/javascript" src="libs/codemirror/htmlmixed.js"></script>
  34. <script type="text/javascript" src="libs/codemirror/xml.js"></script>
  35. <script type="text/javascript" src="libs/knockout-3.4.0.js"></script>
  36. <script type="text/javascript" src="libs/stringify.js"></script>
  37. <!-- Summernote, a rich text editor -->
  38. <script type="text/javascript" src="libs/summernote/summernote.min.js"></script>
  39. <script type="text/javascript" src="libs/summernote/summernote-ext-hint.js"></script>
  40. <script type="text/javascript" src="libs/summernote/summernote-ext-video.js"></script>
  41. <!-- Blockly -->
  42. <!-- <script type="text/javascript" src="blockly/blockly_uncompressed.js"></script> -->
  43. <!-- <script type="text/javascript" src="blockly/blockly_compressed.js"></script>
  44. <script type="text/javascript" src="src/imported.js"></script>
  45. <script type="text/javascript" src="blockly/blocks_compressed.js"></script>
  46. <script type="text/javascript" src="src/python_to_blockly.js"></script>
  47. <script type="text/javascript" src="blockly/python_compressed.js"></script> -->
  48. <script type="text/javascript" src="blockly/blocks/python/head.js"></script>
  49. <script type="text/javascript" src="blockly/blocks/python/citys.js"></script>
  50. <script type="text/javascript" src="blockly/blocks/python/define_colors.js"></script>
  51. <script type="text/javascript" src="blockly/blocks/python/blockly_compressed.js"></script>
  52. <script type="text/javascript" src="blockly/blocks/python/blocks_compressed.js"></script>
  53. <script type="text/javascript" src="blockly/blocks/python/python_compressed.js"></script>
  54. <script type="text/javascript" src="blockly/blocks/python/blocks_microbit.min.js"></script>
  55. <script type="text/javascript" src="blockly/blocks/python/blocks_mpython.min.js"></script>
  56. <script type="text/javascript" src="blockly/blocks/python/python_microbit.min.js"></script>
  57. <script type="text/javascript" src="blockly/blocks/python/python_mpython.min.js"></script>
  58. <script type="text/javascript" src="src/imported.js"></script>
  59. <script type="text/javascript" src="src/python_to_blockly.js"></script>
  60. <script type="text/javascript" src="blockly/blocks/python/ai.js"></script>
  61. <script type="text/javascript" src="blockly/blocks/python/iot.js"></script>
  62. <script type="text/javascript" src="blockly/blocks/python/esp32.js"></script>
  63. <script type="text/javascript" src="blockly/blocks/python/extension_module.js"></script>
  64. <script type="text/javascript" src="blockly/blocks/python/mainwifi.js"></script>
  65. <script type="text/javascript" src="blockly/blocks/text.js"></script>
  66. <script type="text/javascript" src="blockly/blocks/utility.js"></script>
  67. <!-- <script type="text/javascript" src="blockly/generators/utility.js"></script> -->
  68. <!--
  69. <script type="text/javascript" src="blockly/blocks/math.js"></script>
  70. <script type="text/javascript" src="blockly/generators/python/math.js"></script>-->
  71. <script type="text/javascript" src="blockly/generators/python.js"></script>
  72. <script type="text/javascript" src="blockly/blocks/python/time.js"></script>
  73. <script type="text/javascript" src="blockly/generators/python/time.js"></script>
  74. <script type="text/javascript" src="blockly/blocks/python/mainwifi.js"></script>
  75. <script type="text/javascript" src="blockly/generators/python/mainwifi.js"></script>
  76. <script type="text/javascript" src="blockly/blocks/python/screen.js"></script>
  77. <script type="text/javascript" src="blockly/generators/python/screen.js"></script>
  78. <script type="text/javascript" src="blockly/msg/index.js"></script>
  79. <script type="text/javascript" src="src/blockly/FileSaver.js"></script>
  80. <script type="text/javascript" src="src/blockly/term.js"></script>
  81. <script type="text/javascript" src="src/blockly/web.js"></script>
  82. <script type="text/javascript" src="src/blockly/load.js"></script>
  83. <script type="text/javascript" src="src/blockly/Devices.js"></script>
  84. <!-- Skulpt -->
  85. <script type="text/javascript" src="skulpt/dist/skulpt.min.js"></script>
  86. <script type="text/javascript" src="skulpt/dist/skulpt-stdlib.js"></script>
  87. <!-- Source Code -->
  88. <script type="text/javascript" src="src/utilities.js"></script>
  89. <script type="text/javascript" src="src/python_errors.js"></script>
  90. <script type="text/javascript" src="src/ast_node_visitor.js"></script>
  91. <script type="text/javascript" src="src/abstract_interpreter.js"></script>
  92. <script type="text/javascript" src="src/pytifa.js"></script>
  93. <script type="text/javascript" src="src/abstract_interpreter_definitions.js"></script>
  94. <script type="text/javascript" src="src/dialog.js"></script>
  95. <script type="text/javascript" src="src/storage.js"></script>
  96. <script type="text/javascript" src="src/printer.js"></script>
  97. <script type="text/javascript" src="src/interface.js"></script>
  98. <script type="text/javascript" src="src/server.js"></script>
  99. <script type="text/javascript" src="src/english.js"></script>
  100. <script type="text/javascript" src="src/corgis.js"></script>
  101. <script type="text/javascript" src="src/history.js"></script>
  102. <script type="text/javascript" src="src/presentation.js"></script>
  103. <script type="text/javascript" src="src/editor.js"></script>
  104. <script type="text/javascript" src="src/feedback.js"></script>
  105. <script type="text/javascript" src="src/toolbar.js"></script>
  106. <script type="text/javascript" src="src/sk_mod_instructor_extended.js"></script>
  107. <script type="text/javascript" src="src/sk_mod_instructor.js"></script>
  108. <script type="text/javascript" src="src/engine.js"></script>
  109. <script type="text/javascript" src="src/main.js"></script>
  110. <!-- FileSaver JS -->
  111. <script src="src/js_libs/FileSaver.min.js"></script>
  112. <!-- JS Diff -->
  113. <script src="src/js_libs/diff.js"></script>
  114. <!-- Prettify JS -->
  115. <script src="src/prettify/prettify.js"></script>
  116. <!-- Lazyload JS -->
  117. <script src="src/lazysize/lazysizes.min.js"></script>
  118. <!-- Socket.io -->
  119. <script src="src/socket.io-client/dist/socket.io.js"></script>
  120. <!-- clipboard -->
  121. <script src="src/clipboard/dist/clipboard.js"></script>
  122. <!-- Event Proxy -->
  123. <script type="text/javascript" src="src/blockly/eventproxy.js"></script>
  124. <!-- jQuery and Materialize JS -->
  125. <!-- <script src="js_libs/jquery-2.1.3.min.js"></script> -->
  126. <script src="materialize/js/materialize.js"></script>
  127. <!-- echarts -->
  128. <script src="./js_libs/echarts.min.js"></script>
  129. <!-- platform.js -->
  130. <!-- Desktop version of Ardublockly JS, needs to be loaded first. -->
  131. <!-- <script src="ardublockly_desktop.js"></script> -->
  132. <script type="text/javascript" src="src/webcam.min.js"></script>
  133. <script src="src/platformjs/platform.js"></script>
  134. <script src="ardublockly_lang.js"></script>
  135. <script src="ardublockly_toolbox.js"></script>
  136. <!-- <script src="ardublockly_blockly.js"></script> -->
  137. <script src="ardublocklyserver_ajax.js"></script>
  138. <script type="text/javascript" src="src/blockly/ardublockly_desktop.js"></script>
  139. <script type="text/javascript" src="src/blockly/ardublockly_design.js"></script>
  140. <script type="text/javascript" src="src/blockly/ardublockly_blockly.js"></script>
  141. <script type="text/javascript" src="src/blockly/ardublockly.js"></script>
  142. <script type="text/javascript" src="src/blockly/cocoblockly.js"></script>
  143. <script src="src/blockly/account.js"></script>
  144. <script src="src/blockly/socket.js"></script>
  145. <script src="src/blockly/machine.js"></script>
  146. <script type="text/javascript" src="./libs/clipboard.min.js"></script>
  147. <script type="text/javascript" src="./index.js"></script>
  148. </head>
  149. <body>
  150. <div id="white-box">
  151. <div id="preloader">
  152. <img src="./images/preloader.gif">
  153. <h4 style="margin:0;">Loading...</h4>
  154. </div>
  155. </div>
  156. <!-- modal -->
  157. <!-- <div class="modals">
  158. <span></span>
  159. </div> -->
  160. <div id="container">
  161. <!-- Horizontal Navigation bar -->
  162. <nav id="nav_" class="nav-fixed arduino_teal" style="overflow:hidden;background-color: #3454D2;">
  163. <div id="nav_shadow" class="shadowbox" style="display:none;"></div>
  164. <div class="nav-wrapper"
  165. style="min-width: 1200px;font-family: '微软雅黑';padding:0px 10px;display: flex;justify-content: space-between;position:static;">
  166. <a id="logo-container" class="brand-logo" style="display: none;">
  167. <span style="font-size:28px;font-family:'GT Walsheim Pro Trial Bold';"
  168. class="app_title translatable_title">CocoBlockly X</span>
  169. <!-- Sketch name editable text field -->
  170. <span class="sketch_name_wrapper" style="position:relative">
  171. <!-- <a id="button_delete" class="lang_resize" style="position:relative">
  172. <img style="height:28px;margin-top:20px" src="./icons/trash.png"> -->
  173. </a>
  174. <ul id="nav-mobile" class="hide-on-med-and-down" style="display: inline-block;">
  175. <!-- <li>
  176. <img style="height: 40px;margin-top: 10px;" class="left nav-icon" src="./icons/logo.png">
  177. </li> -->
  178. <li style="display: block;">
  179. <a id="nav_language" class='dropdown-button lang_resize' data-activates='languages'
  180. style="position:relative;padding: 0 25px;">
  181. <span class="translatable_language" style="display: none;">Language</span>
  182. <img class="left nav-icon" src="../images/language.svg" style="width: 30px;height: 50px;margin: 7px 0 0;">
  183. <i class="down" style="position: relative;top: 30px;left: 2px;float: right;"></i>
  184. </a>
  185. <ul id='languages' class='dropdown-content active'>
  186. <li id="EN" onclick="changeLanguage('en')">
  187. <span>English</span>
  188. </li>
  189. <li id="TC" onclick="changeLanguage('zh-hant')">
  190. <span>繁体中文</span>
  191. </li>
  192. <li id="CN" onclick="changeLanguage('zh-hans')">
  193. <span>简体中文</span>
  194. </li>
  195. </ul>
  196. </li>
  197. <!-- <li>
  198. <span class="vertical-separator"></span>
  199. </li> -->
  200. <li style="display: block;">
  201. <a id="local_storage" class='dropdown-button lang_resize' data-activates='local_saveOrOpen'
  202. style="position:relative;padding: 0 25px;">
  203. <span class="translatable_files">文件</span>
  204. <!-- <img class="left nav-icon" src="./icons/local_storage.png"> -->
  205. </a>
  206. <ul id='local_saveOrOpen' class='dropdown-content' style="top:62px">
  207. <li id="button_load">
  208. <span class="translatable_import_local_file">导入本地文件</span>
  209. </li>
  210. <!-- <li id="button_import_cloud">
  211. <span class="translatable_import_cloud_file">导入云端文件</span>
  212. </li> -->
  213. <li id="button_save" class='modal-trigger' href="#donload_file_cocorobo">
  214. <span class="translatable_export_local_file">保存到本地</span>
  215. </li>
  216. <!-- <li id="button_save_cloud">
  217. <span class="translatable_export_cloud_file">保存到云端</span>
  218. </li> -->
  219. </ul>
  220. <div id="fileImport" class="btn" style="display:none;">
  221. <input type="file" accept=".py">
  222. </div>
  223. <div id="xmlFileImport" class="btn" style="display:none;">
  224. <input type="file" accept=".xml">
  225. </div>
  226. <div id="pyFileImport" class="btn" style="display:none;">
  227. <input type="file" accept=".py">
  228. </div>
  229. </li>
  230. <li style="display: block;">
  231. <a id="local_connect" class='dropdown-button lang_resize' data-activates='local_connect_select'
  232. style="position:relative;padding: 0 25px;">
  233. <span class="translatable_connect">连接</span>
  234. </a>
  235. <ul id='local_connect_select' class='dropdown-content' style="top:62px;overflow: visible;">
  236. <li id="plugin_download" href="javaScript:(0)">
  237. <span class="translatable_download_uploader">下载安装程序</span>
  238. <ul id="plugin_mac_or_windows" class='dropdown-content'
  239. style="display:none; position: absolute; left: 139px; top: 0px;">
  240. <li id="Mac" onclick="openUrl('../LenovoBlockpy.pkg')">
  241. <span><img src="./icons/mac-icon.png">Mac</span>
  242. </li>
  243. <li id="Windows" onclick="openUrl('../LenovoBlockpy.exe')">
  244. <span><img src="./icons/windows-icon.png">Windows</span>
  245. </li>
  246. </ul>
  247. </li>
  248. <li id="button_upgrade_firmware" class="modal-trigger" href = "#firmware_upgrade_modal">
  249. <span class="translatable_upgrade_firmware">固件升级</span>
  250. </li>
  251. <li id="button_connection_type" style="display: none;">
  252. <span class="translatable_connect_method">连接方式</span>
  253. <ul id="connect_method" class='dropdown-content'
  254. style="display:none; position: absolute; left: 139px; top: 100px;">
  255. <li id="select_connecteds" style="text-align: center;"
  256. onclick="selectConnectMethods(0)">
  257. <span id="Wired" class="translatable_select_connecteds">有线上传</span>
  258. </li>
  259. <li id="no_select_connecteds" style="text-align: center;"
  260. onclick="selectConnectMethods(1)">
  261. <span id="Wireless" class="translatable_no_select_connecteds">无线上传</span>
  262. </li>
  263. </ul>
  264. </li>
  265. </ul>
  266. </li>
  267. <li style="display: block;">
  268. <a id="help" class='dropdown-button lang_resize' data-activates='local_help'
  269. style="position:relative;padding: 0 25px;">
  270. <span class="translatable_help_board">帮助</span>
  271. </a>
  272. <ul id='local_help' class='dropdown-content' style="top:62px; overflow: visible;">
  273. <li id="local_help_ai">
  274. <span class="translatable_ai_kit">AI Kit</span>
  275. <ul id="local_help_ai_kit" class='dropdown-content'
  276. style="display:none; position: absolute; left: 139px; top: 0px;overflow: hidden;white-space: nowrap;text-overflow:ellipsis;">
  277. <li id="ai_kit_0" onclick="openUrl('../hans/#/aikit/AI_1')">
  278. <span class="translatable_ai_kit_0">Mac</span>
  279. </li>
  280. <li id="ai_kit_1" onclick="openUrl('../hans/#/aikit/AI_2')">
  281. <span class="translatable_ai_kit_1">Windows</span>
  282. </li>
  283. <li id="ai_kit_2" onclick="openUrl('../hans/#/aikit/AI_3')">
  284. <span class="translatable_ai_kit_2">Windows</span>
  285. </li>
  286. <li id="ai_kit_3" onclick="openUrl('../hans/#/aikit/AI_4')">
  287. <span class="translatable_ai_kit_3">Windows</span>
  288. </li>
  289. </ul>
  290. </li>
  291. <li id="local_help_extends">
  292. <span class="translatable_extends">拓展转接模组</span>
  293. <ul id="help_extends" class='dropdown-content'
  294. style="display:none; position: absolute; left: 139px; top: 50px;">
  295. <li id="extends_0" onclick="openUrl('../hans/#/extension/EX_01')">
  296. <span class="translatable_extends_0">Mac</span>
  297. </li>
  298. <li id="extends_1" onclick="openUrl('../hans/#/extension/EX_02')">
  299. <span class="translatable_extends_1">Windows</span>
  300. </li>
  301. <li id="extends_2" onclick="openUrl('../hans/#/extension/EX_03')">
  302. <span class="translatable_extends_2">Windows</span>
  303. </li>
  304. </ul>
  305. </li>
  306. <li id="local_help_error" onclick="openUrl('../hans/#/aikit/A0')">
  307. <span class="translatable_error">常见错误处理</span>
  308. </li>
  309. </ul>
  310. </li>
  311. <li>
  312. <div style="margin: 0px 20px 0px 0px;">
  313. <input type="text" value="A.I. Module" id="iot_modules" readonly
  314. class="selectMode_input browser-default"
  315. style="font-size:14px;border: none;width: 145px;">
  316. <i id="down" class="down"
  317. style="position: relative;top: -20px;float: right;right: 9px;"></i>
  318. <div class="downbox MouduleBox" id="downboxModule" style="top: 64px;">
  319. <div style="border: none;"><a href="javaScript:(0)"
  320. class="translatable_ai_module">A.I. Module</a></div>
  321. <div style="border: none;"><a href="javaScript:(0)"
  322. class="translatable_iot_module">IoT Module
  323. Mode</a></div>
  324. <div style="border: none;"><a id="python_full_screen"
  325. class="translatable_python_full_screen_mode">Cloud
  326. Mode</a></div>
  327. </div>
  328. </div>
  329. </li>
  330. <li class="Mode_select_box">
  331. <div class="ModeSelectBox">
  332. <div class="ModeSelect">
  333. <div style="font-size: 14px;">样例 </div>
  334. <i class="down" style="position: relative;top: -34px;left: 20px;float: right;"></i>
  335. <div class="downbox ModeBox downbox-style">
  336. <div style="display: block;">
  337. <div>人工智能教材程序</div>
  338. <i class="downboxdown"></i>
  339. <div class="Hardware2 HarxA" style="height:auto;top:-35px">
  340. <div class="Hardware9">
  341. <div>三年级</div>
  342. <i class="downboxdown"></i>
  343. <ul class="Hardware4 HarxA">
  344. <li>录制语音指令</li>
  345. <li>语音识别台灯</li>
  346. <!-- <li>人脸识别防盗门</li> -->
  347. </ul>
  348. </div>
  349. <div class="Hardware5">
  350. <div>五年级</div>
  351. <i class="downboxdown"></i>
  352. <ul class="Hardware4 HarxA">
  353. <li>录制语音指令</li>
  354. <li>智能窗帘</li>
  355. <li>水果采摘机器人</li>
  356. <!-- <li>智能质检机器人</li> -->
  357. </ul>
  358. </div>
  359. <div class="Hardware6">
  360. <div>六年级</div>
  361. <i class="downboxdown"></i>
  362. <ul class="Hardware4 HarxA">
  363. <!-- <li>无人驾驶循环小车</li> -->
  364. <li>智能交通信号灯</li>
  365. <li>导盲项链</li>
  366. <!-- <li>二维码包裹分拣机器人</li> -->
  367. </ul>
  368. </div>
  369. <div class="Hardware7">
  370. <div>七年级</div>
  371. <i class="downboxdown"></i>
  372. <ul class="Hardware4 HarxA">
  373. <li>人脸辨识电子警察</li>
  374. </ul>
  375. </div>
  376. <div class="Hardware8">
  377. <div>八年级</div>
  378. <i class="downboxdown"></i>
  379. <ul class="Hardware4 HarxA">
  380. <li>支付台</li>
  381. </ul>
  382. </div>
  383. </div>
  384. </div>
  385. <div style="display: block;">
  386. <div>IoT 模块基础案例</div>
  387. <i class="downboxdown"></i>
  388. <ul class="Hardware2 HarxA">
  389. <li>侧边按键控制蜂鸣器</li>
  390. <li> 侧边按键控制开关 LED</li>
  391. <li> 触摸区域控制 LED</li>
  392. <li> 蜂鸣器警报</li>
  393. <li> 黑暗环境感应光照灯</li>
  394. <li> 倾斜方向感应 LED</li>
  395. <li> 湿度报警器</li>
  396. <li> 摇晃感应 LED</li>
  397. <li> LED 显示光线强度值</li>
  398. </ul>
  399. </div>
  400. <div style="display: block;">
  401. <div>IoT 模块扩展功能案例</div>
  402. <i class="downboxdown"></i>
  403. <ul class="Hardware2 HarxA">
  404. <li>使用 LED 灯屏</li>
  405. <li>使用电机驱动模块</li>
  406. <li>使用游戏手柄 + LED 灯屏</li>
  407. <li>使用游戏手柄 + 屏幕模块</li>
  408. <li>在扩展模块上控制舵机</li>
  409. <li>屏幕显示Hello World</li>
  410. <li>屏幕绘制线条动画</li>
  411. <li>按键控制屏幕直线转动</li>
  412. <li>按键控制颜色切换</li>
  413. <li>计步器</li>
  414. </ul>
  415. </div>
  416. <div style="display: block;">
  417. <div>IoT 模块联网案例</div>
  418. <i class="downboxdown"></i>
  419. <ul class="Hardware2 HarxA">
  420. <li>按键发送光照数据至 CocoCloud</li>
  421. <li>按键发送环境数据至 IFTTT</li>
  422. <li>按键获取光照数据并根据条件亮灯</li>
  423. <li>定时发送环境数据至 CocoCloud</li>
  424. <li>定时接收环境数据并根据条件亮灯</li>
  425. <li>建立 WiFi 热点并显示连接设备数量</li>
  426. <li>局域网环境数据存储 - 服务器端</li>
  427. <li>局域网环境数据获取 - 客户端</li>
  428. <li>连接 WiFi 网络</li>
  429. <li>模块间按钮状态存储 - 服务端</li>
  430. <li>模块间按钮状态接收 - 客户端</li>
  431. <li>模块间进行 WebSocket 实时通信 - 发送端</li>
  432. <li>模块间进行 WebSocket 实时通信 - 接收端</li>
  433. <li>同步网络时间</li>
  434. <li>数字手表显示实时时间</li>
  435. </ul>
  436. </div>
  437. <div style="display: block;">
  438. <div>IoT工作坊上</div>
  439. <i class="downboxdown"></i>
  440. <ul class="Hardware2 HarxA">
  441. <li>01 点亮正中间的LED灯</li>
  442. <li>02 点亮所有LED灯</li>
  443. <li>03 流水灯</li>
  444. <li>04 蜂鸣器警报</li>
  445. <li>05 8-bit音乐</li>
  446. <li>06 串口通讯:按钮开关</li>
  447. <li>07 串口通讯:触摸开关</li>
  448. <li>08 按钮开关蜂鸣器</li>
  449. <li>09 触摸开关灯</li>
  450. <li>10 补光装置</li>
  451. <li>11 湿度报警器</li>
  452. </ul>
  453. </div>
  454. <div style="display: block;">
  455. <div>IoT工作坊下</div>
  456. <i class="downboxdown"></i>
  457. <ul class="Hardware2 HarxA">
  458. <li>12 晃晃灯</li>
  459. <!-- <li>13 连接Wi-Fi</li> -->
  460. <li>14 连接Wi-Fi并显示连接状态</li>
  461. <li>15 建立热点并显示已连接的设备数</li>
  462. <li>16 亮度数据上传与下载</li>
  463. <li>17 舵机来回摆动</li>
  464. <li>19 舵机定时摆动</li>
  465. <li>20 按键控制舵机</li>
  466. <li>18 门(人脸识别)</li>
  467. <li>体验 iot-机械车(语音控制)</li>
  468. <li>体验 iot-机械人(陀螺仪)</li>
  469. <li>体验 iot-机械人(姿态识别)</li>
  470. <li>体验 iot-台灯(语音控制)</li>
  471. </ul>
  472. </div>
  473. <div style="display: block;">
  474. <div>AI 模块机器学习案例</div>
  475. <i class="downboxdown"></i>
  476. <ul class="Hardware2 HarxA">
  477. <li>垃圾分类识别(香港版)</li>
  478. <li>人脸检测</li>
  479. <li>物体识别</li>
  480. <li>人脸检测</li>
  481. <li>物体识别</li>
  482. <li>语音录制</li>
  483. <li>语音识别</li>
  484. <li>MNIST 手写数字识别</li>
  485. </ul>
  486. </div>
  487. <div style="display: block;">
  488. <div>AI 模块基础案例</div>
  489. <i class="downboxdown"></i>
  490. <ul class="Hardware2 HarxA">
  491. <li>按键控制屏幕时针转动</li>
  492. <li style="display:none">按键控制图片改变颜色制式</li>
  493. <li style="display:none">按键控制图片进行反色变化</li>
  494. <li>按键控制颜色切换</li>
  495. <li>迷你相机</li>
  496. <li>屏幕方向旋转</li>
  497. <li>屏幕绘制线条动画</li>
  498. </ul>
  499. </div>
  500. <div style="display: block;">
  501. <div>AI 模块扩展功能案例</div>
  502. <i class="downboxdown"></i>
  503. <ul class="Hardware2 HarxA">
  504. <li>使用 LED 灯屏</li>
  505. <li>使用电机驱动模块</li>
  506. <li>使用游戏手柄 + 屏幕模块</li>
  507. <li>在扩展模块上控制舵机</li>
  508. <li>贪吃蛇</li>
  509. </ul>
  510. </div>
  511. <div style="display: block;">
  512. <div>AI AI 模块视觉案例</div>
  513. <i class="downboxdown"></i>
  514. <ul class="Hardware2 HarxA">
  515. <li>按键改变相机图像的亮度</li>
  516. <li>区域颜色分析</li>
  517. <li>识别 QR 二维码</li>
  518. <li>寻线(黑线)</li>
  519. <li>寻找绿色的圆形</li>
  520. <li>寻找绿色区域并进行追踪</li>
  521. </ul>
  522. </div>
  523. <div style="display: block;">
  524. <div>AI AI 模块影音案例</div>
  525. <i class="downboxdown"></i>
  526. <ul class="Hardware2 HarxA">
  527. <li style="display:none">播放录制的视频档案</li>
  528. <li>播放音乐</li>
  529. <li style="display:none">录制摄像头画面并保存</li>
  530. <li>麦克风声音频谱分析</li>
  531. </ul>
  532. </div>
  533. <div style="display: block;">
  534. <div>AI基础篇案例上</div>
  535. <i class="downboxdown"></i>
  536. <ul class="Hardware2 HarxA">
  537. <li>Hello World</li>
  538. <li>螢幕顯示 Hello World</li>
  539. <li>畫布應用</li>
  540. <li>迷你相機</li>
  541. <li>簡易物體識別</li>
  542. </ul>
  543. </div>
  544. <div style="display: block;">
  545. <div>AI 基础篇案例下</div>
  546. <i class="downboxdown"></i>
  547. <ul class="Hardware2 HarxA">
  548. <li>物體識別進階</li>
  549. <li>人臉檢測</li>
  550. <li>顏色識別</li>
  551. <li>形狀識別(圓形)</li>
  552. <li>形狀識別(矩形)</li>
  553. <li>音頻分析</li>
  554. </ul>
  555. </div>
  556. <div style="display: block;">
  557. <div>AI 扩展使用案例</div>
  558. <i class="downboxdown"></i>
  559. <ul class="Hardware2 HarxA">
  560. <li>私服马达</li>
  561. <li>超声波感测器</li>
  562. <!-- <li>测距仪</li> -->
  563. <li>灯带</li>
  564. <li id="AI_Workshop_III_ex5_Microbit">Microbit</li>
  565. <li id="AI_Workshop_III_ex6_MicrobitFace">人脸检测</li>
  566. <li>电动门</li>
  567. </ul>
  568. </div>
  569. <div style="display: block;">
  570. <div>AI 垃圾分类</div>
  571. <i class="downboxdown"></i>
  572. <ul class="Hardware2 HarxA">
  573. <li>私服马达</li>
  574. <li>超声波感测器</li>
  575. <li>电动门</li>
  576. </ul>
  577. </div>
  578. <div style="display: block;">
  579. <div>AI 自动驾驶</div>
  580. <i class="downboxdown"></i>
  581. <ul class="Hardware2 HarxA">
  582. <li>第一場-路標識別(香港標識)</li>
  583. <li>第二場-巡線(雙線)</li>
  584. <li>第二場-巡線(單線-靠左行駛))</li>
  585. <li>第一場-路標識別(香港標識)</li>
  586. </ul>
  587. </div>
  588. </div>
  589. </div>
  590. </div>
  591. </li>
  592. <!-- help button -->
  593. <!-- <li id="cloudBtn-shares">
  594. <i class="material-icons" style="margin-left:5px;cursor: pointer;">share</i>
  595. </li>
  596. <i id="workspace_screenshot" class="material-icons sketch_name_icon right"
  597. style="margin-left:5px;cursor: pointer;">photo_camera</i>
  598. <i id="button_delete" class="material-icons sketch_name_icon right"
  599. style="margin-left:5px;cursor: pointer;">delete</i> -->
  600. </ul>
  601. <!-- <i id="workspace_screenshot" class="material-icons sketch_name_icon right"
  602. style="margin-left:5px;cursor: pointer;">photo_camera</i> -->
  603. <!-- <i class="material-icons sketch_name_icon right">create</i> -->
  604. <!-- <input id="sketch_name" class="sketch_name" type="text"> -->
  605. <input id="sketch_name_w" class="sketch_name" type="text" name="wifi" style="display:none">
  606. </span>
  607. <!-- </a> -->
  608. <!-- Horizontal Navbar links only shown on large resolutions -->
  609. <ul id="nav-mobile" class="right hide-on-med-and-down nav-mobile-right" style="display: flex;">
  610. <!-- AI Demo -->
  611. <!-- <li>
  612. <a id="AI_experience" class='dropdown-button lang_resize' data-activates='AI_experience_dropdown' style="position:relative">
  613. <span class="translatable_AI_experience">AI</span>
  614. <img class="left nav-icon" src="./icons/nav-ai-experience.png">
  615. </a>
  616. <ul id='AI_experience_dropdown' class='dropdown-content' style="top:62px">
  617. <li id="webcam" class='modal-trigger' href="#webcam_capture_modal">
  618. <span class="translatable_AI_emotion">Emotion Recognotion</span>
  619. </li>
  620. <li class="divider"></li>
  621. <li id="voice-input" class='modal-trigger' href="#voice_input_modal">
  622. <span class="translatable_AI_speech">Speech Recognotion</span>
  623. </li>
  624. </ul>
  625. </li> -->
  626. <!-- help button -->
  627. <li style="display: none;">
  628. <a id="help" style="display:none" class='dropdown-button lang_resize'
  629. data-activates="help_board" style="position:relative">
  630. <!-- <i class="material-icons left" style="margin-right: 5px;font-size: 34px;">help_outline</i> -->
  631. <span class="translatable_help_board">Help</span>
  632. <img class="left nav-icon" src="./icons/nav_help.png">
  633. </a>
  634. <ul id='help_board' class='dropdown-content' style="top:62px">
  635. <li id="">
  636. <a href="http://help.cocorobo.cn/" target="_blank">
  637. <span class="translatable_tutorial">Tutorial</span>
  638. </a>
  639. </li>
  640. <!-- <li class="divider"></li>
  641. <li>
  642. <a href="#tourmode" class="modal-trigger">
  643. <span class="translatable_tour">Start Tour</span>
  644. </a>
  645. </li> -->
  646. <li class="divider"></li>
  647. <!-- <li>
  648. <a href="#env_detect" class="modal-trigger">
  649. <span class="translatable_env_detect">Environment Detect</span>
  650. </a>
  651. </li> -->
  652. <li class="divider"></li>
  653. <li>
  654. <a href="http://help.cocorobo.cn/#/changelog" target="_blank">
  655. <span class="translatable_changelog">Change Log</span>
  656. </a>
  657. </li>
  658. </ul>
  659. </li>
  660. <li style="display:none;">
  661. <select onchange="selectmode(this)" id="mode"
  662. 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;">
  663. <option value="" style="color: #000;">AI Mode</option>
  664. <option value="" style="color: #000;">Main Mode</option>
  665. </select>
  666. </li>
  667. <li id="cloudBtn-shares">
  668. <i class="material-icons" style="margin-left:5px;cursor: pointer;display: none;">share</i>
  669. </li>
  670. <i id="workspace_screenshot" style="margin-left:5px;cursor: pointer;display: none;">
  671. <img src="./images/screenshot.png" style="width: 40px;height: 35px;margin:15px;" />
  672. </i>
  673. <i id="button_delete" class="material-icons sketch_name_icon right"
  674. style="margin-left:5px;cursor: pointer;display: none;">delete</i>
  675. <li id="sketch_name-li" style="position: absolute;right: 135px;">
  676. <input id="sketch_name" placeholder="请输入作品名称" class="sketch_name"
  677. style="background: #fff;padding: 4px 10px 4px 7px;color:#222222;width:200px;font-style: initial;line-height: 30px;font-size: 14px;"
  678. type="text">
  679. </li>
  680. <li id="downloadbutton-li" style="position: absolute;right: 68px;">
  681. <button id="downloadbutton" class="translatable_sketch_save"
  682. style="color: #fff;font-weight: 700;background: #4A6AFF;border: none;font-size: 14px;padding:13px 20px 9px 20px;cursor: pointer;margin-top: 13px;">保存</button>
  683. </li>
  684. <!-- App Center demo -->
  685. <!-- <li>
  686. <a id="app_center_title" href="#app_center_modal" class="modal-trigger lang_resize"
  687. style="position:relative">
  688. <span id="app_center_title_demo">
  689. <span class="translatable_labscenter">Labs</span>
  690. <img class="left nav-icon" src="./icons/cocoblockly-navbar_labs-icon.png">
  691. </span>
  692. </a>
  693. </li> -->
  694. <!-- <li>
  695. <a id="nav_learn" class='dropdown-button lang_resize' data-activates="learn_board"
  696. style="position:relative">
  697. <i class="material-icons left" style="margin-right: 5px;font-size: 34px;">help_outline</i>
  698. <span class="translatable_learn_board">Files</span>
  699. <img class="left nav-icon" src="./icons/learn_nav_icon.png">
  700. </a>
  701. <ul id='learn_board' class='dropdown-content'>
  702. <li>
  703. <a href="//edu.cocorobo.cn/" target="_blank">
  704. <span class="translatable_cocoedu">Education Platform</span>
  705. </a>
  706. </li>
  707. <li class="divider"></li>
  708. <li>
  709. <a href="//aihub.cocorobo.cn" target="_blank">
  710. <span class="translatable_learn_principle">Learn AI: Theory</span>
  711. </a>
  712. </li>
  713. <li class="divider"></li>
  714. <li>
  715. <a href="//aihub.cocorobo.cn/vision" target="_blank">
  716. <span class="translatable_learn_vision">Learn AI: Vision</span>
  717. </a>
  718. </li>
  719. <li class="divider"></li>
  720. <li>
  721. <a href="//aihub.cocorobo.cn/speech" target="_blank">
  722. <span class="translatable_learn_speech">Learn AI: Speech</span>
  723. </a>
  724. </li>
  725. <li class="divider"></li>
  726. <li>
  727. <a href="//aihub.cocorobo.cn/text" target="_blank">
  728. <span class="translatable_learn_text">Learn AI: Text</span>
  729. </a>
  730. </li>
  731. <li class="divider"></li>
  732. <li>
  733. <a href="//beta.aihub.cocorobo.cn/art" target="_blank">
  734. <span class="translatable_learn_art">Learn AI: Art</span>
  735. </a>
  736. </li>
  737. </ul>
  738. </li> -->
  739. <!-- <li>
  740. target="_blank"
  741. <a id="help" style="display: none;" class='dropdown-button lang_resize'
  742. href="//x.help.cocorobo.cn" style="position:relative">
  743. <i class="material-icons left" style="margin-right: 5px;font-size: 34px;">help_outline</i>
  744. <span class="translatable_help_board">Help</span>
  745. <img class="left nav-icon" src="./icons/nav_help.png">
  746. </a>
  747. </li> -->
  748. <!-- <li>
  749. <a target="_blank" id="nav_journal" class='dropdown-button lang_resize' href="/md.html"
  750. style="position:relative">
  751. <span class="translatable_journal">日志</span>
  752. <img class="left nav-icon" src="./icons/news.png">
  753. </a>
  754. </li> -->
  755. <!-- <li>
  756. <a id="help" class='dropdown-button lang_resize' target="_blank" href="//x-help.cocorobo.cn"
  757. style="position:relative">
  758. <i class="material-icons left" style="margin-right: 5px;font-size: 34px;">help_outline</i>
  759. <span class="translatable_help_board">Help</span>
  760. <img class="left nav-icon" src="./icons/nav_help.png">
  761. </a>
  762. <a id="nav_devices" class='dropdown-button lang_resize' style="position:relative">
  763. <span class="translatable_devices">Devices</span>
  764. <img class="left nav-icon" src="./icons/Devices.png">
  765. </a>
  766. </li> -->
  767. <!-- <li style="display: block;">
  768. <a id="local_storage" class='dropdown-button lang_resize' data-activates='local_saveOrOpen'
  769. style="position:relative">
  770. <span class="translatable_storage">Files</span>
  771. <img class="left nav-icon" src="./icons/local_storage.png">
  772. </a>
  773. <ul id='local_saveOrOpen' class='dropdown-content' style="top:62px">
  774. <li id="button_cloud" class='modal-trigger' href="#cloud_storage_modal">
  775. <span class="translatable_cloud_storage">Cloud</span>
  776. </li>
  777. <li class="divider"></li>
  778. <li id="button_load">
  779. <span class="translatable_import">Import</span>
  780. </li>
  781. <li class="divider"></li>
  782. <li id="button_save">
  783. <span class="translatable_export">Export</span>
  784. </li>
  785. </ul>
  786. <div id="fileImport" class="btn" style="display:none;">
  787. <input type="file" accept=".py">
  788. </div>
  789. <div id="xmlFileImport" class="btn" style="display:none;">
  790. <input type="file" accept=".xml">
  791. </div>
  792. <div id="pyFileImport" class="btn" style="display:none;">
  793. <input type="file" accept=".py">
  794. </div>
  795. </li> -->
  796. <!-- <li>
  797. <a id="nav_language" class='dropdown-button lang_resize' data-activates='languages'
  798. style="position:relative">
  799. <span class="translatable_language">Language</span>
  800. <img class="left nav-icon" src="./icons/language2.png">
  801. </a>
  802. <ul id='languages' class='dropdown-content active'>
  803. <li onclick="changeLanguage('en')">
  804. <a>English</a>
  805. </li>
  806. <li class="divider"></li>
  807. <li onclick="changeLanguage('zh-hant')">
  808. <a>繁体中文</a>
  809. </li>
  810. <li class="divider"></li>
  811. <li onclick="changeLanguage('zh-hans')">
  812. <a>简体中文</a>
  813. </li>
  814. </ul>
  815. </li> -->
  816. <!-- <li>
  817. <span class="vertical-separator"></span>
  818. </li> -->
  819. <!-- <li>
  820. <a id="nav_account" href="#login_modal" class="modal-trigger lang_resize"
  821. style="position:relative"
  822. onclick="$('#api-key').html(''); $('#api-key').html($('#cloud_events').val()); document.getElementById('api-key').value = $('#cloud_events').val();">
  823. <span id="account_alias"></span>
  824. <button id="account_loginTitle" class="translatable_login_title"
  825. 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>
  826. <span id="account_loginTitle" class="translatable_login_title">Login</span>
  827. <img class="nav-icon2 left" src="./icons/user.png">
  828. </a>
  829. </li> -->
  830. <!--<li>
  831. <a id="back_home" class="lang_resize" target="_blank" href="//cocorobo.cn/online/"
  832. style="position:relative">
  833. <img class="nav-icon2" src="./icons/home_icon.png">
  834. </a>
  835. </li> -->
  836. </ul>
  837. </div>
  838. </nav>
  839. <!-- shadow -->
  840. <div id="main_shadow" class="shadowbox" style="display:none;">
  841. <div id="shadow_content" class="shadow_container">
  842. <div class="shadow_top">
  843. <img src="./images/drag_import.png" style="width:200px">
  844. <p class="translatable_drag_import">Drag and drop your file to here</p>
  845. </div>
  846. </div>
  847. </div>
  848. <!-- Content -->
  849. <div id="main_content" style=" width:100%;overflow:hidden;">
  850. <div id="term" style=" width:100%; height:70%;display:none">
  851. </div>
  852. <div style="height:100%;" id="blockpy-div">
  853. <div>
  854. <div id='blockpy-content' style="height:100%">
  855. <div class="blockpy-editor" style="display:none">
  856. <div class="white blockpy-blocks blockpy-editor-menu"> <img id="fullscreenIcon"
  857. class="fullscreenIcon" src="./images/icon-fullscreen.svg"> <img
  858. id="fullscreenExitIcon" class="fullscreenIcon hidden"
  859. src="./images/icon-fullscreen-exit.svg">
  860. <div class='blockly-div' style="width:100%;height:100%;"></div>
  861. </div>
  862. </div>
  863. <div id="py-editor" class="blockpy-editor card-panel"
  864. style=' height:100%;display:block;overflow:auto;float:left;border-right:1px solid #ccc;'>
  865. <div class="card-header"
  866. style='display:none;position:relative;height: 60px;line-height: 60px;background: #f1f2f5; border-bottom: unset;'>
  867. <!--<span class="header-icon">&lt &gt</span>--> <span id="python_SourceCode" class="header-text translate-code
  868. translatable_pythonSourceCode switch_box switch_select"
  869. style='margin-left: 25px;'>Python
  870. Source Code</span> <span id="Serial_Interaction"
  871. class="header-text switch_box1">串口交互窗</span>
  872. <!-- <i id="repl_delete"
  873. class="material-icons sketch_name_icon right"
  874. style="margin-left: 20px;cursor: pointer;position: absolute;top: 30px;left: 260px;display:none;">delete</i> -->
  875. <div class="editDiv" id="editDiv" style="top: 0;">
  876. <!-- <span class="translatable_editing">Enable Editing</span>
  877. <span style="display: none;" class="translatable_close_editing">Close
  878. Editing</span> -->
  879. <input type="checkbox" id="toggle-button">
  880. <!--label中的for跟input的id绑定。作用是在点击label时选中input或者取消选中input-->
  881. <label for="toggle-button" class="button-label">
  882. <span class="circle"></span>
  883. <span class="text on"></span>
  884. <span class="text off"></span>
  885. </label>
  886. </div>
  887. <a class="copy_code" style="position:absolute;top: 5px;right: 75px;"
  888. data-clipboard-action="copy">
  889. <img src="./images/icon-copy.png" style="width: 33px;margin-top:
  890. 7px;"> </a>
  891. <a class="blockpy-toolbar-download" style="position:absolute;top: 5px;right:
  892. 39px;"> <img src="./images/icon-downward.png" style="width: 33px;margin-top: 7px;">
  893. </a>
  894. <a class="blockpy-toolbar-upload" style="position:absolute;top: 5px;right: 5px;">
  895. <img src="./images/upload.png" style="width: 33px;margin-top: 7px;"> </a>
  896. <img class="fullscreenIcon hidden" src="./images/icon-fullscreen.svg">
  897. <img class="fullscreenIcon hidden" src="./images/icon-fullscreen-exit.svg">
  898. </div>
  899. <div class="card-content" style="position:relative;height:100%;overflow:auto;"
  900. id="python_box">
  901. <div class="blockpy-toolbar" style="position: relative;">
  902. <div class='blockpy-text blockpy-editor-menu'>
  903. <div class='blockpy-text-sidebar'></div>
  904. <textarea readonly class='codemirror-div language-python'></textarea>
  905. </div>
  906. <div style="display: none;" class="edit" id="edit"></div>
  907. <!-- <a class="copy_code" style="position:fixed;top:112px;right:25px;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:fixed;top:113px;right:55px;z-index:999;cursor:pointer;"> <img src="./images/icon-downward.svg" width="24px"> </div>-->
  908. </div>
  909. </div>
  910. <!-- <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> -->
  911. </div>
  912. <div id='sss' style='display:block;overflow: hidden;'>
  913. <div class='blockpy-content-left card-panel card'
  914. style='display: block;background: #f8f8f8;height: 100%;position:relative;'>
  915. <div class="card-content"
  916. style="position:relative;height: calc(100% - 243px);overflow:auto;padding:5px 10px;background-color: #fff; color: #000;"
  917. id="repl_box">
  918. <div class="editDiv" id="editDiv" style="width: 100%;left: -10px;background: #E6F1FF;">
  919. <span class="translatable_serial_plotter switch_select" onclick="switchSerial('1')">The
  920. data to print</span>
  921. <span class="translatable_serial_visualization" onclick="switchSerial('2')">Visual
  922. display</span>
  923. <!-- <i id="repl_delete" class="material-icons sketch_name_icon right"
  924. style="margin-left: 20px;cursor: pointer;position: absolute;top: 6px;right: 12px;display:block;">delete</i> -->
  925. <a id="repl_delete" class="waves-effect waves-light btn"
  926. style="padding:0 0.5rem;border-radius: 3px;height: 36px; margin:0 20px;cursor: pointer;position: absolute;top: 50px;right: 0px;background-color: #ADADAD !important;">
  927. <span style="font-size: 14px;color: #FFFFFF;letter-spacing: 0;" class="translatable_Clear_data">清除数据</span>
  928. </a>
  929. </div>
  930. <div class="blockpy-toolbar" id="repl_box_content"
  931. style="display:block;padding-top:35px;">
  932. </div>
  933. <div style="width: 100%;height: calc(100% - 50px);display: none;margin: 35px 0 10px 0;position: relative;"
  934. id="echartsShow">
  935. <div id="echartsMain" class="echartsMain"></div>
  936. <div id="echartsMains" style="display: none;">
  937. <span id="echartsMainSpan"></span>
  938. </div>
  939. </div>
  940. </div>
  941. <div class="card-header"
  942. style='height: 60px;line-height: 60px;background: #E6F1FF;text-align: center;'>
  943. <!-- http://help.cocorobo.cn/#/getting-started/info target="_blank"-->
  944. <div style='float:right;display: none;'>
  945. <a class="header-link upload_instruction" style="display: none;" href="#"
  946. data-tooltip-id="61c522fa-be27-2a3e-1f2d-cde212348740">
  947. <img src="./icons/instruction.png">
  948. </a>
  949. <a id="plugin_download" class="header-link" href="javaScript:(0)"
  950. data-tooltip-id="9e546554-688a-01c7-cde3-faaff99b557d"> <img
  951. src="./icons/plugin_download.png">
  952. <img style="position:absolute;height:10px;right:45px;bottom:32px; display:none; "
  953. src="./icons/icon_new.png">
  954. </a>
  955. <a href="#iframe" class="modal-trigger header-link" id="showIframe">
  956. <img src="./icons/firmware.png">
  957. </a>
  958. <!-- <a href="#updatePy" class="modal-trigger header-link">
  959. <img src="./icons/加载.png">
  960. </a> -->
  961. <label class="hidden"><input type="checkbox" class="filled-in" />
  962. <span class="translatable_Adapter_fill_connected filled-in_nocheked"
  963. style="color: #26a69a;font-size: 17px;font-weight: 600;">Adapter is
  964. disconnected</span>
  965. </label>
  966. </div>
  967. <!--<span class="header-icon"><img style="width: 30px;margin: 8px 8px 8px 20px;" src="./images/zhixing.png"> </span>-->
  968. <span class="header-text translate-code translatable_title_device"
  969. style='font-weight: 800;font-size: 20px;margin-left: 25px;display: none;'>Device</span>
  970. <div style="display: none;margin-left: 20px;"><select class="select-connected "
  971. id="select-connected">
  972. <option class="select-connected translatable_select_connecteds"
  973. style="color: #000;">The
  974. cable to upload</option>
  975. <option style="color: #000;" class="translatable_no_select_connecteds">
  976. Wireless cable
  977. upload</option>
  978. </select></div>
  979. <!-- <div id="discnt_icon" style="float: left;">
  980. <a href="#env_detect" class="modal-trigger"><img
  981. style="height:17px;margin-left:8px;transform:translateY(2px);"
  982. src="./icons/uploader_disconnect.png"></a>
  983. </div>
  984. <div id="cnt_icon" style="display:none;float: left;"><img
  985. style="height:17px;margin-left:8px;transform:translateY(2px);"
  986. src="./icons/uploader_connect.png"></div> -->
  987. <span id="device_connect_status" class="translatable_device_no_connect"
  988. style="color: #2D2F33;font-family: '微软雅黑';font-size: 16px;font-weight: bold;">硬件(未连接)</span>
  989. <a id="send_string" onclick="sendstring('machine.reset()')" class="waves-effect
  990. waves-light blue disabled"
  991. style="margin-right:0.5rem;background-color: #E6F1FF !important;float: right;margin-top: 10px;">
  992. <!-- <span id="resetDevice">Reset Device</span> -->
  993. <!-- <img id="refresh-disabled" src="./images/icon-refresh-disabled.svg"
  994. style="margin-top: 7px;display: block;"> -->
  995. <img id="refresh" src="./images/icon-refresh.svg"
  996. style="margin-top: 7px;display: block;">
  997. <img id="refresh-press" src="./images/icon-refresh-press.svg"
  998. style="margin-top: 7px;display: none;">
  999. </a>
  1000. </div>
  1001. <div class="card-content"
  1002. style="padding:0 10px;width:100%;height: 183px;background: #FFFFFF;">
  1003. <div class="row" id="status" style="display: none;">
  1004. <div class="col s12"><img id="error-btn" class="activator"
  1005. src="./icons/error.png">
  1006. <span id="status_bar" class="translatable_statusbar">直接将代码上传到电子模块中。</span>
  1007. </div>
  1008. </div>
  1009. <div class="row" style="width: 100%;margin: 0;margin-top: 20px;">
  1010. <div id="uploader-btns" class="col s7">
  1011. <a onclick='sendfile();' id="send_file" class="waves-effect
  1012. waves-light btn blue disabled" style="padding:0 0.5rem;border-radius: 3px;
  1013. width: 88px;height: 36px;">
  1014. <!-- <i style="cursor: pointer;" class="fa fa-play-circle"
  1015. aria-hidden="true"></i> -->
  1016. <img src="../images/run.svg"
  1017. style="vertical-align: middle;cursor: pointer;margin-right: 5px;">
  1018. <span id="runCode"
  1019. style="font-size: 14px;color: #FFFFFF;letter-spacing: 0;"></span>
  1020. </a>
  1021. <a onclick="uploadpyfile()" id="uploadpy" class="waves-effect
  1022. waves-light btn blue disabled" style="padding:0 0.5rem;border-radius: 3px;
  1023. width: 88px;height: 36px;margin: 0px 0px 0 25px;">
  1024. <!-- <i style="cursor: pointer;" class="fa fa-upload" aria-hidden="true"></i> -->
  1025. <img src="../images/uploadCode.svg"
  1026. style="vertical-align: middle;cursor: pointer;margin-right: 5px;">
  1027. <span id="uploadFiles"
  1028. style="font-size: 14px;color: #FFFFFF;letter-spacing: 0;"></span>
  1029. </a>
  1030. <div style="float: right;">
  1031. <li style="display: none;">
  1032. <ul id="localsssssaveOrOpen" class="dropdown-content active">
  1033. <li style="padding: 14px 16px;" onclick="uploadfile(true)">
  1034. <a>开机启动可视化菜单界面</a></li>
  1035. <li style="padding: 14px 16px;" onclick="uploadfile(false)">
  1036. <a>开机运行上次的程序</a></li>
  1037. </ul>
  1038. <a id="qiehuanbtn"
  1039. class="qiehuanbtn btn dropdown-trigger blue lang_resize dropdown-button disabled"
  1040. data-activates="localsssssaveOrOpen"><span
  1041. id="runCuploadFilesode">更换启动模式</span><i
  1042. class="material-icons right"
  1043. style="margin-left: 0;">arrow_drop_down</i></a>
  1044. </li>
  1045. <!-- <a id="send_string" onclick="sendstring('machine.reset()')" class="waves-effect
  1046. waves-light btn blue disabled" style="margin-right:0.5rem;"><span
  1047. id="resetDevice">Reset Device</span></a> -->
  1048. </div>
  1049. </div>
  1050. <a onclick="getmcnty()" class="waves-effect waves-light btn blue"
  1051. style="display:none"><span id="gettype">Upload
  1052. files</span></a>
  1053. <div class="col s5 btn-network" style="padding-right:1px;">
  1054. <div class="select-wrapper initialized">
  1055. <!-- <span class="caret">▼</span> -->
  1056. <i class="down"
  1057. style="position: relative;top: 25px;left: 0px;float: right;border-width: 6px;border-color: #ccc transparent transparent transparent;z-index: 99;"></i>
  1058. <input
  1059. type="text" class="select-dropdown" id="select_dropdown"
  1060. readonly="true"
  1061. data-activates="select-options-eca84f35-6884-7dc4-9d8b-c14115abe698"
  1062. value="">
  1063. <ul id="select-options-eca84f35-6884-7dc4-9d8b-c14115abe698" class="dropdown-content
  1064. select-dropdown ">
  1065. <li class="disabled "><span></span></li>
  1066. </ul><select id="ports"
  1067. data-select-id="eca84f35-6884-7dc4-9d8b-c14115abe698"
  1068. class="initialized">
  1069. <option value="null" disabled=""></option>
  1070. </select>
  1071. </div>
  1072. </div>
  1073. <div class="col s5 btn-network hidden" style="padding-right:1px;width: 50%;">
  1074. <div class="select-wrapper initialized" style='width: 61%;float: left;'>
  1075. <input type="text" class="select-dropdown" data-activates=""
  1076. id='ipAddress' placeholder="请输入ip地址">
  1077. </div>
  1078. <div style='display:inline-block'><a onclick='button_click();' class="waves-effect waves-light
  1079. btn blue" style="margin-left: 0.5rem;margin-top: 4px;"><span
  1080. id="ConnectBtn">Connect
  1081. </spanbutton_click></a></div>
  1082. </div>
  1083. </div>
  1084. <!-- <div class="row btn-network hidden">
  1085. <div class="col cs6" style="padding-right:1px;width:100%">
  1086. <div class="select-wrapper initialized" style='float: left;width: 45%;'>
  1087. <input type="text" class="select-dropdown" data-activates=""
  1088. id='ipAddress' placeholder="请输入ip地址">
  1089. </div>
  1090. <div style='display:inline-block'><a onclick='button_click();' class="waves-effect waves-light
  1091. btn blue" style="margin-left: 0.5rem;margin-top: 4px;"><span
  1092. id="ConnectBtn">Connect
  1093. </spanbutton_click></a></div>
  1094. </div>
  1095. </div>
  1096. <div class="row" style="position: absolute;bottom: 15px;width: 98%;margin: 0;">
  1097. <div id="uploader-btns" class="col s12">
  1098. <a onclick='sendfile();' id="send_file" class="waves-effect
  1099. waves-light btn blue disabled"
  1100. style="margin-right:0.5rem;padding:0 0.5rem;">
  1101. <i style="cursor: pointer;" class="fa fa-play-circle"
  1102. aria-hidden="true"></i>
  1103. <span id="runCode"></span>
  1104. </a>
  1105. <a onclick="uploadpyfile()" id="uploadpy" class="waves-effect
  1106. waves-light btn blue disabled" style="padding:0 0.5rem;">
  1107. <i style="cursor: pointer;" class="fa fa-upload" aria-hidden="true"></i>
  1108. <span id="uploadFiles"></span>
  1109. </a>
  1110. <div style="float: right;">
  1111. <li style="display: none;">
  1112. <ul id="localsssssaveOrOpen" class="dropdown-content active">
  1113. <li style="padding: 14px 16px;" onclick="uploadfile(true)">
  1114. <a>开机启动可视化菜单界面</a></li>
  1115. <li style="padding: 14px 16px;" onclick="uploadfile(false)">
  1116. <a>开机运行上次的程序</a></li>
  1117. </ul>
  1118. <a id="qiehuanbtn"
  1119. class="qiehuanbtn btn dropdown-trigger blue lang_resize dropdown-button disabled"
  1120. data-activates="localsssssaveOrOpen"><span
  1121. id="runCuploadFilesode">更换启动模式</span><i
  1122. class="material-icons right"
  1123. style="margin-left: 0;">arrow_drop_down</i></a>
  1124. </li>
  1125. <a id="send_string" onclick="sendstring('machine.reset()')" class="waves-effect
  1126. waves-light btn blue disabled" style="margin-right:0.5rem;"><span
  1127. id="resetDevice">Reset
  1128. Device</span></a>
  1129. </div>
  1130. </div>
  1131. <a onclick="getmcnty()" class="waves-effect waves-light btn blue"
  1132. style="display:none"><span id="gettype">Upload
  1133. files</span></a>
  1134. </div> -->
  1135. <div class="row" id="uploader_connect_status"
  1136. style="margin-top: 16px;display: block;">
  1137. <div class="col s12">
  1138. <div style="margin:7px 0;">
  1139. <span class="translatable_uploader_connect_status"
  1140. style="font-size: 16px;color: #3D3D3D;letter-spacing: 0;">请到"连接"下载安装程序并连接硬件。</span>
  1141. </div>
  1142. </div>
  1143. </div>
  1144. <div class="row" id="progress" style="margin-top: 16px;display: none;">
  1145. <div class="col s12">
  1146. <div class="progress" style="margin:7px 0;">
  1147. <div class="determinate green" style="width:0%;"></div>
  1148. </div>
  1149. </div>
  1150. </div>
  1151. <div class="row">
  1152. <div class="col s6" style="float: right;">
  1153. <div style="float: right;">
  1154. <div style="display: inline-block;vertical-align: middle;">
  1155. <img id="runSuccess" src="../images/success.svg"
  1156. style="display: none;" />
  1157. <img id="runFail" src="../images/fail.svg" style="display: none;" />
  1158. </div>
  1159. <div style="display: inline-block;">
  1160. <span id="statusMsg" style="display: none;"></span>
  1161. </div>
  1162. </div>
  1163. </div>
  1164. </div>
  1165. </div>
  1166. <div class="blockpy-toolbar btn-toolbar hidden" style="align-self:center;margin: 20px 8px 0;text-align:
  1167. center;">
  1168. <div class="btn-toolbar-title">直接将代码上传到电子模块中<div></div>
  1169. </div>
  1170. <div class="btn-toolbar-inputbox"><input type="text" name="webrepl_url" id="url"
  1171. placeholder="Select a device"><input type="submit" id='button'
  1172. value='Connect' onclick='button_click(); return false'></div>
  1173. <div class="btn-toolbar-btnbox"></div>
  1174. <!--<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>-->
  1175. <!--<button class='waves-effect waves-light btn blue blockpy-run translate-execute'>UPLOAD</button>-->
  1176. <!-- <button href="#aiymodal" class='waves-effect waves-light btn blue modal-trigger'>run on aiy</button> -->
  1177. <!--<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>-->
  1178. </div>
  1179. <div class="blockpy-toolbar btn-toolbar hidden" style="align-self:center;margin: 20px 8px 0;text-align:
  1180. center;">
  1181. <div class="btn-toolbar-title2">直接将代码上传到电子模块中 <div></div>
  1182. </div>
  1183. <div class="btn-toolbar-inputbox2"><select>
  1184. <option></option>
  1185. </select></div>
  1186. </div>
  1187. <div class="card-reveal grey darken-3 white-text" style="padding:8px 13px;">
  1188. <div class="card-title" style="height:18%;margin-bottom:2px;">
  1189. <span class="translatable_errmsg" style="font-weight:normal;">Error
  1190. Message</span>
  1191. <a id="err-copy" style="display:inline-block;margin-left:26px;"
  1192. data-clipboard-action="copy" data-clipboard-target="#err-msg">
  1193. <i class="material-icons right"
  1194. style="color:#fff;font-size:18px;cursor:pointer;">content_copy</i>
  1195. </a>
  1196. <i class="material-icons right" style="cursor:pointer;">close</i>
  1197. </div>
  1198. <div style="width:100%;height:78%;">
  1199. <textarea readonly id="err-msg"
  1200. style="color:#fff;overflow:visible;font-family:consolas;font-size:14px;height:100%;resize:none;border:none;"></textarea>
  1201. </div>
  1202. </div>
  1203. </div>
  1204. <!-- <div class="card plugin_options options_hide">
  1205. <div class="card-content">
  1206. <div>
  1207. <span id="downloadver" style="display:none">1.0.6</span>
  1208. <a download=""
  1209. href="//cocorobo.cn/downloads/CocoBlocklyXUploaderInstallerv1.0.10.pkg"
  1210. target="_black"><img src="./icons/mac-icon.png">Mac </a>
  1211. <a download=""
  1212. href="//cocorobo.cn/downloads/CocoBlocklyXUploaderInstallerv1.0.11.exe"
  1213. target="_black"><img src="./icons/windows-icon.png">Windows </a> </div>
  1214. </div>
  1215. </div> -->
  1216. </div>
  1217. </div>
  1218. </div>
  1219. <div class='modal blockpy-popup'>
  1220. <div class='modal-content' id='modal-message'>
  1221. <div class='modal-header'>
  1222. <h4 class='modal-title'>Dynamic Content</h4>
  1223. </div>
  1224. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;">
  1225. <div class='modal-body' style='width:100%;min-height:200px;'> </div>
  1226. </div>
  1227. <div class='modal-footer'> <button
  1228. class='waves-effect waves-light btn blue modal-close translate-close'>close</button>
  1229. </div>
  1230. </div>
  1231. <div id="aiymodal" class="modal">
  1232. <div class="modal-content" height="50%">
  1233. <h4>Run on AIY</h4>
  1234. <p>This feature gives you the ability to run your AIY python code directly to the AIY Vision Kit
  1235. or Voice Kit, follow the instruction below:</p>
  1236. <div style="margin-top:30px;"> <b
  1237. style="background-color:#fff; border-radius:25px;padding:
  1238. 10px 20px; box-shadow: 1px 5px 23px -10px rgba(0,0,0,0.59);">Step 1</b> </div>
  1239. <div style="margin-top:30px;"> Run the <b data-position="bottom" data-tooltip="I am a
  1240. tooltip" class="tooltipped">AIY Helper</b>, <a id="AIYdownload"
  1241. style="cursor:pointer;">Download</a> the python code to local, <br />make sure you are
  1242. in the same network with the Google AIY Vision Kit. </div>
  1243. <div style="margin-top:30px;"> <b
  1244. style="background-color:#fff; border-radius:25px;padding:
  1245. 10px 20px; box-shadow: 1px 5px 23px -10px rgba(0,0,0,0.59);">Step 2</b> </div>
  1246. <div class="input-field col s9" style="margin-top:0px;"> Enter the IP Address of your Google
  1247. AIY Kit: <div class="input-field inline"> <input id="aiyip_input" class="validate">
  1248. </div> <a id="aiyModalRun" onclick="functionSSH();" style="margin-left:10px;"
  1249. class="waves-effect blue waves-light btn">Run</a> <a id="aiyModalStop"
  1250. onclick="functionSSHstop();" style="margin-left:10px;" class="waves-effect blue
  1251. waves-light btn">Stop</a>
  1252. <!-- <a id="aiyModalRun" style="margin-left:10px;" class="waves-effect blue waves-light btn">Run</a> -->
  1253. <!-- <a id="aiyModalStop" style="margin-left:10px;" class="waves-effect blue waves-light btn">Stop</a> -->
  1254. </div>
  1255. <div id="modal_preload" style="display:none">
  1256. <div style="position:relative;top:50%;transform:translateY(-50%);height:128px;width:128px;margin:0
  1257. auto;">
  1258. <div class="preloader-wrapper big active" style="top:0;left:0">
  1259. <div class="spinner-layer spinner-blue-only">
  1260. <div class="circle-clipper left">
  1261. <div class="circle"></div>
  1262. </div>
  1263. <div class="gap-patch">
  1264. <div class="circle"></div>
  1265. </div>
  1266. <div class="circle-clipper right">
  1267. <div class="circle" style="border-width: 8px;"></div>
  1268. </div>
  1269. </div>
  1270. </div>
  1271. </div>
  1272. </div>
  1273. </div>
  1274. <div class="modal-footer" style="margin-top:-20px;"> <a href="#!" class="modal-close
  1275. waves-effect waves-green btn-flat">Close</a> </div>
  1276. </div>
  1277. </div>
  1278. <!-- <ul id="icon-tool">
  1279. <li class="card-icon active" onclick="">
  1280. <i class="material-icons media">build</i>
  1281. </li>
  1282. <li id="file-tool" class="card-icon">
  1283. <i class="material-icons media">folder</i>
  1284. </li>
  1285. <li id="lang-tool" class="card-icon">
  1286. <i class="material-icons media">translate</i>
  1287. </li>
  1288. </ul> -->
  1289. <ul id="icon-tool" class="card-icon-area" style="display: none;">
  1290. <li class="card-icon active hidden" onclick="changeSideCard('code')">
  1291. <i class="material-icons media">build</i>
  1292. </li>
  1293. <li class="card-icon hidden" onclick="changeSideCard('monitor')">
  1294. <i class="material-icons ">search</i>
  1295. </li>
  1296. <!-- <li class="card-icon" onclick="changeSideCard('fullmode')">
  1297. <i class="material-icons ">crop_free</i>
  1298. </li> -->
  1299. <li id="bar_python" class="card-icon">
  1300. <a href="/python" target="_blank">
  1301. <img class="bar-icon" src="./icons/python_icon.png" style="height: 30px;">
  1302. </a>
  1303. </li>
  1304. <li id="lang-tool" class="card-icon">
  1305. <i class="material-icons">translate</i>
  1306. </li>
  1307. <li id="apps_center" class="card-icon modal-trigger" href="#app_center_modal" style="display:none;">
  1308. <img class="bar-icon Img-filter" src="./icons/cocoblockly-navbar_labs-icon.png">
  1309. </li>
  1310. <li id="bar_storage" class="card-icon">
  1311. <img class="bar-icon" src="./icons/storage_icon-blockly-widget.png">
  1312. </li>
  1313. <!-- http://help.cocorobo.cn/ target="_blank"-->
  1314. <li id="bar_help" class="card-icon">
  1315. <a href="//x-help.cocorobo.cn" target="_blank">
  1316. <img class="bar-icon" src="./icons/help_icon-blockly-widget.png">
  1317. </a>
  1318. </li>
  1319. <li id="bar_ai" class="card-icon" onclick="$('.MouduleBox')[1].style.display = 'block';">
  1320. <a href="#">
  1321. <img class="bar-icon" src="./icons/AIicon.png">
  1322. </a>
  1323. </li>
  1324. <li id="bar_t" class="card-icon modal-trigger" onclick="$('#ai_tt')[0].style.display = 'block';">
  1325. <a href="#">
  1326. <img class="bar-icon" src="./icons/l.png">
  1327. </a>
  1328. </li>
  1329. </ul>
  1330. <a id='side-lang-trigger' class='dropdown-button' data-activates='side-lang'></a>
  1331. <!-- <div id='side-lang-trigger'>
  1332. <a class='dropdown-trigger' data-target='side-lang'></a>
  1333. </div> -->
  1334. <ul id="side-lang" class='dropdown-content'>
  1335. <li onclick="changeLanguage('en')">
  1336. <a>English</a>
  1337. </li>
  1338. <li class="divider"></li>
  1339. <li onclick="changeLanguage('zh-hant')">
  1340. <a>繁体中文</a>
  1341. </li>
  1342. <li class="divider"></li>
  1343. <li onclick="changeLanguage('zh-hans')">
  1344. <a>简体中文</a>
  1345. </li>
  1346. </ul>
  1347. <a id='side-storage-trigger' class='dropdown-button' data-activates='side-storage'></a>
  1348. <ul id='side-storage' class='dropdown-content'>
  1349. <li class='modal-trigger' href="#cloud_storage_modal" style="display:none;">
  1350. <span class="translatable_cloud_storage">Cloud</span>
  1351. </li>
  1352. <li class="divider"></li>
  1353. <li class='modal-trigger' href="#Storage_import_modal">
  1354. <span class="translatable_localimport">Import</span>
  1355. </li>
  1356. <li class="divider"></li>
  1357. <li class='modal-trigger' href="#Storage_export_modal">
  1358. <span class="translatable_localexport">Export</span>
  1359. </li>
  1360. </ul>
  1361. <div id='side-file-trigger'>
  1362. <a class='dropdown-trigger' data-target="side-file"></a>
  1363. </div>
  1364. <ul id='side-file' class='dropdown-content blockpy-toolbar'>
  1365. <li id="side_button_load">
  1366. <span class="translate_import">Import</span>
  1367. </li>
  1368. <li class="divider"></li>
  1369. <li id="side_button_save">
  1370. <span class="translate_export">Export</span>
  1371. </li>
  1372. </ul>
  1373. </div>
  1374. <!-- <footer id="footer">
  1375. <div style="padding:0 1.5rem">
  1376. <div><span class="translatable_copyright" style="color:#fff;">CocoRobo LTD © 2020 Copyright</span></div>
  1377. <div><span>CocoBlockly X Beta</span></div>
  1378. </div>
  1379. </footer> -->
  1380. <!-- app center modal -->
  1381. <div id="app_center_modal" class="modal modal_closes">
  1382. <span class="modal_close" style="padding: 15px;position: absolute;right: 0;cursor: pointer;"><i
  1383. class="small material-icons" style="font-size: 1.5rem;">close</i></span>
  1384. <div id="TM_login"></div>
  1385. <div class="modal-content" style="padding: 20px;">
  1386. <span class="modal_close" style="padding: 15px;">
  1387. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  1388. </span>
  1389. <h4 class="translatable_labs_center_modal_title">CocoBlockly X Labs</h4>
  1390. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  1391. <div class="row" style="text-align:left;">
  1392. <div style="float:center;" class="col s3">
  1393. <p class="translatable_app_center_all_categories" style="padding-bottom:0px;font-weight: bold">
  1394. All
  1395. Categories:</p>
  1396. <div id="center_categories" class="collection ">
  1397. <a name="center_ai"
  1398. class="collection-item grey-text text-darken-4 active translatable_app_center_ai"
  1399. onclick="ACCategorySelect(1)">Artificial Intelligence</a>
  1400. <a name="center_iot"
  1401. class="collection-item grey-text text-darken-4 translatable_app_center_iot"
  1402. onclick="ACCategorySelect(2)">Internet of Things</a>
  1403. <a name="center_robot"
  1404. class="collection-item grey-text text-darken-4 translatable_app_center_robot"
  1405. onclick="ACCategorySelect(3)">Robot Controller</a>
  1406. <a name="center_science"
  1407. class="collection-item grey-text text-darken-4 translatable_app_center_science"
  1408. onclick="ACCategorySelect(4)">Science Experiements</a>
  1409. <a name="center_game"
  1410. class="collection-item grey-text text-darken-4 translatable_app_center_games"
  1411. onclick="ACCategorySelect(5)">Games</a>
  1412. <a name="center_arvr"
  1413. class="collection-item grey-text text-darken-4 translatable_app_center_arvr"
  1414. onclick="ACCategorySelect(6)">AR/VR</a>
  1415. </div>
  1416. </div>
  1417. <div style="float:center;padding-top:5px; overflow-y:auto;max-height:400px" class="col s9">
  1418. <div id="center_ai" class=" col s12">
  1419. <h5 class="translatable_app_center_ai">Artificial Intelligence</h5>
  1420. <ul class="tabs">
  1421. <li class="tab col s2"><a href="#center_ai_vision"
  1422. class="translatable_app_center_tab_vision active">Vision</a></li>
  1423. <li class="tab col s2"><a href="#center_ai_speech"
  1424. class="translatable_app_center_tab_speech">Speech</a></li>
  1425. <li class="tab col s2"><a href="#center_ai_text"
  1426. class="translatable_app_center_tab_text">Text</a></li>
  1427. </ul>
  1428. <div id="center_ai_vision" class="col s12">
  1429. <div class="row">
  1430. <div style="float:left;" class="col s6">
  1431. <div class="card">
  1432. <div class="card-image waves-effect waves-block waves-light">
  1433. <img class="" src="icons/AppCenter_ai_teachableMachine.jpg"
  1434. style="border: solid 1.2px lightgray;">
  1435. </div>
  1436. <div class="card-content">
  1437. <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
  1438. <span id="ac-card-title"
  1439. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_Teachabel_Machine">Teachable
  1440. Machine</span>
  1441. <p class="">
  1442. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1443. href="#setting_teacher">Enter</a>
  1444. </p>
  1445. </div>
  1446. </div>
  1447. </div>
  1448. <div style="float:left;" class="col s6">
  1449. <div class="card">
  1450. <div class="card-image waves-effect waves-block waves-light">
  1451. <!-- <img class="activator" src="icons/app-center_ai_emotion.jpg"> -->
  1452. <img class="" src="icons/AppCenter_ai_emotion.jpg">
  1453. </div>
  1454. <div class="card-content">
  1455. <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
  1456. <span id="ac-card-title emotion_recognition_enter_button"
  1457. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_emotion_recognition">Emotion
  1458. Recognition</span>
  1459. <p class="">
  1460. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1461. href="#setting_webcam_capture_modal">Enter</a>
  1462. </p>
  1463. </div>
  1464. </div>
  1465. </div>
  1466. </div>
  1467. <div class="row">
  1468. <div style="float:left;" class="col s6">
  1469. <div class="card">
  1470. <div class="card-image waves-effect waves-block waves-light">
  1471. <!-- <img class="activator" src="icons/app-center_ai_emotion.jpg"> -->
  1472. <img class="" src="icons/AppCenter_ai_gesture_recognition.jpg">
  1473. </div>
  1474. <div class="card-content">
  1475. <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
  1476. <span id="ac-card-title emotion_recognition_enter_button"
  1477. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_gesture_recognition translatable_gesturesTitle">Gesture
  1478. Recognition</span>
  1479. <p class="">
  1480. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1481. href="#setting_gesture_recog_modal">Enter</a>
  1482. </p>
  1483. </div>
  1484. </div>
  1485. </div>
  1486. <div style="float:left;" class="col s6">
  1487. <div class="card">
  1488. <div class="card-image waves-effect waves-block waves-light">
  1489. <!-- <img class="activator" src="icons/app-center_ai_emotion.jpg"> -->
  1490. <img class="" src="icons/object_recognition_header.jpg">
  1491. </div>
  1492. <div class="card-content">
  1493. <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
  1494. <span id="ac-card-title emotion_recognition_enter_button"
  1495. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_object_recognition translatable_objectRecognition">Object
  1496. Recognition</span>
  1497. <p class="">
  1498. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1499. href="#setting_objectRecog">Enter</a>
  1500. </p>
  1501. </div>
  1502. </div>
  1503. </div>
  1504. <div style="float:left;" class="col s6">
  1505. <div class="card">
  1506. <div class="card-image waves-effect waves-block waves-light">
  1507. <!-- <img class="activator" src="icons/app-center_ai_emotion.jpg"> -->
  1508. <img class="" src="icons/posenet_recogition.png">
  1509. </div>
  1510. <div class="card-content">
  1511. <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
  1512. <span id="ac-card-title emotion_recognition_enter_button"
  1513. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_object_recognition translatable_posenetRecognition">Posenet
  1514. Recognition</span>
  1515. <p class="">
  1516. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1517. href="#setting_posenetRecog">Enter</a>
  1518. </p>
  1519. </div>
  1520. </div>
  1521. </div>
  1522. <div style="float:left;" class="col s6">
  1523. <div class="card">
  1524. <div class="card-image waves-effect waves-block waves-light">
  1525. <img class="" src="images/tm_with_pose.jpg"
  1526. style="border: solid 1.2px lightgray;">
  1527. </div>
  1528. <div class="card-content">
  1529. <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
  1530. <span id="ac-card-title"
  1531. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_Teachabel_Machine_posenet">Teachable
  1532. Machine (with Pose Recognition)</span>
  1533. <p class="">
  1534. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1535. href="#setting_teacher_ponsenet">Enter</a>
  1536. </p>
  1537. </div>
  1538. </div>
  1539. </div>
  1540. </div>
  1541. </div>
  1542. <div id="center_ai_speech" class="col s12">
  1543. <div style="float:center;" class="col s6">
  1544. <div class="card">
  1545. <div class="card-image waves-effect waves-block waves-light">
  1546. <img class="" src="icons/AppCenter_ai_speech.jpg">
  1547. </div>
  1548. <div class="card-content">
  1549. <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
  1550. <span id="ac-card-title"
  1551. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_speech_recognition">Speech
  1552. Recognition</span>
  1553. <p class="">
  1554. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1555. href="#voice_input_modal">Enter</a>
  1556. </p>
  1557. </div>
  1558. </div>
  1559. </div>
  1560. </div>
  1561. <div id="center_ai_text" class="col s12">
  1562. <div style="float:center;" class="col s6">
  1563. <div class="card">
  1564. <div class="card-image waves-effect waves-block waves-light">
  1565. <img class="" src="./icons/AppCenter_comingSoon.jpg">
  1566. </div>
  1567. <div class="card-content">
  1568. <span id="ac-card-title"
  1569. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_wait_to_come">Comming
  1570. soon</span>
  1571. <p class="">
  1572. <!-- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button disabled" href="#">Enter</a> -->
  1573. </p>
  1574. </div>
  1575. </div>
  1576. </div>
  1577. </div>
  1578. </div>
  1579. <div id="center_iot" class=" col s12" style="display:none">
  1580. <h5 class="translatable_app_center_iot">Internet of Things</h5>
  1581. <div style="float:center;" class="col s6">
  1582. <div class="card">
  1583. <div class="card-image waves-effect waves-block waves-light">
  1584. <img class="" src="icons/AppCenter_iot_thingspeak.jpg">
  1585. </div>
  1586. <div class="card-content">
  1587. <!-- <span class="AI_card_content">3RD-PARTY APP</span> -->
  1588. <span id="ac-card-title"
  1589. class="ac-card-title card-title activator grey-text text-darken-4 ">ThingSpeak</span>
  1590. <p class="">
  1591. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1592. href="https://thingspeak.com" target="_blank">Enter</a>
  1593. </p>
  1594. </div>
  1595. </div>
  1596. </div>
  1597. <div style="float:center;" class="col s6">
  1598. <div class="card">
  1599. <div class="card-image waves-effect waves-block waves-light">
  1600. <img class="" src="icons/AppCenter_iot_ifttt.jpg">
  1601. </div>
  1602. <div class="card-content">
  1603. <!-- <span class="AI_card_content">3RD-PARTY APP</span> -->
  1604. <span id="ac-card-title"
  1605. class="ac-card-title card-title activator grey-text text-darken-4 ">IFTTT</span>
  1606. <p class="">
  1607. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1608. href="https://ifttt.com/maker_webhooks" target="_blank">Enter</a>
  1609. </p>
  1610. </div>
  1611. </div>
  1612. </div>
  1613. </div>
  1614. <div id="center_robot" class=" col s12" style="display:none">
  1615. <h5 class="translatable_app_center_robot">Robot Controller</h5>
  1616. <div style="float:center;" class="col s6">
  1617. <div class="card">
  1618. <div class="card-image waves-effect waves-block waves-light">
  1619. <img class="" src="./icons/AppCenter_comingSoon.jpg">
  1620. </div>
  1621. <div class="card-content">
  1622. <span id="ac-card-title"
  1623. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_wait_to_come">Comming
  1624. soon</span>
  1625. <p class="">
  1626. <!-- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button disabled" href="#">Enter</a> -->
  1627. </p>
  1628. </div>
  1629. </div>
  1630. </div>
  1631. </div>
  1632. <div id="center_science" class="col s12" style="display:none">
  1633. <h5 class="translatable_app_center_science">Science Experiements</h5>
  1634. <div style="float:center;" class="col s6">
  1635. <div class="card">
  1636. <div class="card-image waves-effect waves-block waves-light">
  1637. <img class="" src="./icons/AppCenter_comingSoon.jpg">
  1638. </div>
  1639. <div class="card-content">
  1640. <span id="ac-card-title"
  1641. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_wait_to_come">Comming
  1642. soon</span>
  1643. <p class="">
  1644. <!-- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button disabled" href="#">Enter</a> -->
  1645. </p>
  1646. </div>
  1647. </div>
  1648. </div>
  1649. </div>
  1650. <div id="center_game" class=" col s12" style="display:none">
  1651. <h5 class="translatable_app_center_games">Interactive Games</h5>
  1652. <div style="float:center;" class="col s6">
  1653. <div class="card">
  1654. <div class="card-image waves-effect waves-block waves-light">
  1655. <img class="" src="./icons/AppCenter_game_floppy-bird.jpg">
  1656. </div>
  1657. <div class="card-content">
  1658. <!-- <span class="AI_card_content">3RD-PARTY APP</span> -->
  1659. <span id="ac-card-title"
  1660. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_game_flappy">Floppy
  1661. bird</span>
  1662. <p class="">
  1663. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button "
  1664. href="https://cocorobo.cn/demo/floppybird/" target="_blank">Enter</a>
  1665. </p>
  1666. </div>
  1667. </div>
  1668. </div>
  1669. <div style="float:center;" class="col s6">
  1670. <div class="card">
  1671. <div class="card-image waves-effect waves-block waves-light">
  1672. <img class="" src="icons/AppCenter_game_space_lamb.jpg">
  1673. </div>
  1674. <div class="card-content">
  1675. <!-- <span class="AI_card_content">3RD-PARTY APP</span> -->
  1676. <span id="ac-card-title"
  1677. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_game_space_lamb">Space
  1678. Lamb</span>
  1679. <p class="">
  1680. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button "
  1681. href="https://spacelamb.12wave.com" target="_blank">Enter</a>
  1682. </p>
  1683. </div>
  1684. </div>
  1685. </div>
  1686. </div>
  1687. <div id="center_arvr" class=" col s12" style="display:none">
  1688. <h5 class="translatable_app_center_arvr">AR/VR</h5>
  1689. <div style="float:center;" class="col s6">
  1690. <div class="card">
  1691. <div class="card-image waves-effect waves-block waves-light">
  1692. <!-- <img class="activator" src="icons/app-center_ai_speech.jpg"> -->
  1693. <img class="" src="icons/AppCenter_comingSoon.jpg">
  1694. </div>
  1695. <div class="card-content">
  1696. <span id="ac-card-title"
  1697. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_wait_to_come">Comming
  1698. soon</span>
  1699. <p class="">
  1700. <!-- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button disabled" href="#">Enter</a> -->
  1701. </p>
  1702. </div>
  1703. </div>
  1704. </div>
  1705. </div>
  1706. </div>
  1707. </div>
  1708. </div>
  1709. </div>
  1710. <!-- 显示Teachable Machine modal配置弹框 -->
  1711. <div id="setting_teacher" class="modal modal_closes">
  1712. <span class="modal_close" style="padding: 15px;position: absolute;right: 0;cursor: pointer;"><i
  1713. class="small material-icons" style="font-size: 1.5rem;">close</i></span>
  1714. <div class="modal-content" style="padding: 20px;">
  1715. <span class="modal_close" style="padding: 15px;">
  1716. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  1717. </span>
  1718. <h4 class="translatable_labs_center_modal_title">CocoBlockly Labs</h4>
  1719. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  1720. <div style="display:flex;justify-content:space-around;">
  1721. <div class="modal_setting_teacher_left setting_left_all">
  1722. <div class="card-image waves-effect waves-block waves-light">
  1723. <img class="" src="icons/AppCenter_ai_teachableMachine.jpg"
  1724. style="border: solid 1.2px lightgray;width: 100%;">
  1725. </div>
  1726. <div>
  1727. <span id="ac-card-title"
  1728. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_Teachabel_Machine"
  1729. style="font-size: 30px;">Teachable
  1730. Machine</span>
  1731. <p class="translatable_Teachabel_Machin_content">The trend of robot development is
  1732. artificial
  1733. intelligence. Deep learning is the frontier technology of intelligent robot and a new
  1734. topic
  1735. in the field of machine learning.Deep learning technology is widely used in agriculture,
  1736. industry, military, aviation and other fields, and the organic combination with machines
  1737. can
  1738. design intelligent robots with high working efficiency, high real-time and high
  1739. accuracy.
  1740. </p>
  1741. </div>
  1742. </div>
  1743. <div class="modal_setting_teacher_right setting_right_all">
  1744. <div class="translatable_computer_configuration"
  1745. style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
  1746. <span>Computer Configuration Requirements</span>
  1747. </div>
  1748. <div class="setting_border">
  1749. <p><span class="translatable_the_operating_system">Minimum Opearting System
  1750. version</span>:Windows (>Windows7), macOS (>10.11)</p>
  1751. <p><span class="translatable_resolution_of_the">Suggested Resolution
  1752. Supported</span>:1440*768
  1753. </p>
  1754. <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
  1755. <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
  1756. <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
  1757. <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
  1758. class="translatable_need">OK</span></p>
  1759. <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
  1760. class="translatable_no_need">NO</span></p>
  1761. </div>
  1762. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1763. href="#Teachable_Machine" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
  1764. </div>
  1765. </div>
  1766. </div>
  1767. </div>
  1768. <!--Teachable Machine modal-->
  1769. <div id="Teachable_Machine" class="modal TM_class modal_closes">
  1770. <span class="modal_close" style="padding: 15px;position: absolute;right: 0;cursor: pointer;"><i
  1771. class="small material-icons" style="font-size: 1.5rem;">close</i></span>
  1772. <div id="TM_login" style="margin-top:10px;top:10%;position:relative"></div>
  1773. <div id="TM_iframe" style="height:100%; width:100%; display:none"></div>
  1774. <div id="teachable_modal" class="object_modal">
  1775. <img src="./gif/loading.gif"
  1776. style="position: absolute;top: calc(50% - 140px);width: 500px;left: calc(50% - 250px);" />
  1777. </div>
  1778. </div>
  1779. <!-- 显示Teachable Machine modal配置弹框 -->
  1780. <div id="setting_teacher_ponsenet" class="modal modal_closes">
  1781. <span class="modal_close" style="padding: 15px;position: absolute;right: 0;cursor: pointer;"><i
  1782. class="small material-icons" style="font-size: 1.5rem;">close</i></span>
  1783. <div class="modal-content" style="padding: 20px;">
  1784. <h4 class="translatable_labs_center_modal_title">CocoBlockly Labs</h4>
  1785. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  1786. <div style="display:flex;justify-content:space-around;">
  1787. <div class="modal_setting_teacher_left setting_left_all">
  1788. <div class="card-image waves-effect waves-block waves-light">
  1789. <img class="" src="images/tm_with_pose.jpg"
  1790. style="border: solid 1.2px lightgray;width: 100%;">
  1791. </div>
  1792. <div>
  1793. <span id="ac-card-title"
  1794. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_Teachabel_Machine_posenet"
  1795. style="font-size: 30px;">Teachable
  1796. Machine</span>
  1797. <p class="translatable_Teachabel_Machin_content">The trend of robot development is
  1798. artificial
  1799. intelligence. Deep learning is the frontier technology of intelligent robot and a new
  1800. topic
  1801. in the field of machine learning.Deep learning technology is widely used in agriculture,
  1802. industry, military, aviation and other fields, and the organic combination with machines
  1803. can
  1804. design intelligent robots with high working efficiency, high real-time and high
  1805. accuracy.
  1806. </p>
  1807. </div>
  1808. </div>
  1809. <div class="modal_setting_teacher_right setting_right_all">
  1810. <div class="translatable_computer_configuration"
  1811. style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
  1812. <span>Computer Configuration Requirements</span>
  1813. </div>
  1814. <div class="setting_border">
  1815. <p><span class="translatable_the_operating_system">Minimum Opearting System
  1816. version</span>:Windows (>Windows7), macOS (>10.11)</p>
  1817. <p><span class="translatable_resolution_of_the">Suggested Resolution
  1818. Supported</span>:1440*768
  1819. </p>
  1820. <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
  1821. <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
  1822. <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
  1823. <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
  1824. class="translatable_need">OK</span></p>
  1825. <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
  1826. class="translatable_no_need">NO</span></p>
  1827. </div>
  1828. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1829. href="#Teachable_Machine_ponsenet"
  1830. style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
  1831. </div>
  1832. </div>
  1833. </div>
  1834. </div>
  1835. <!--Teachable Machine modal-->
  1836. <div id="Teachable_Machine_ponsenet" class="modal TM_class modal_closes" style="position:relative">
  1837. <span class="modal_close" style="padding: 15px;position: absolute;right: 0;cursor: pointer;"><i
  1838. class="small material-icons" style="font-size: 1.5rem;">close</i></span>
  1839. <div id="TM_posenet_login" style="margin-top:10px;top:10%;position:relative"></div>
  1840. <div id="TM_posenet_iframe" style="height:100%; width:100%;"></div>
  1841. <div id="teachable_posenet_modal" class="object_modal">
  1842. <img src="./gif/loading.gif"
  1843. style="position: absolute;top: calc(50% - 140px);width: 500px;left: calc(50% - 250px);" />
  1844. </div>
  1845. </div>
  1846. <!-- 显示Object Recog_modal modal配置弹框-->
  1847. <div id="setting_objectRecog" class="modal modal_closes">
  1848. <span class="modal_close" style="padding: 15px;position: absolute;right: 0;cursor: pointer;"><i
  1849. class="small material-icons" style="font-size: 1.5rem;">close</i></span>
  1850. <div class="modal-content" style="padding: 20px;">
  1851. <span class="modal_close" style="padding: 15px;">
  1852. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  1853. </span>
  1854. <h4 class="translatable_labs_center_modal_title">CocoBlockly Labs</h4>
  1855. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  1856. <div style="display: flex;justify-content:space-around;">
  1857. <div class="modal_setting_objectRecog_left setting_left_all">
  1858. <div class="card-image waves-effect waves-block waves-light">
  1859. <img class="" src="icons/object_recognition_header.jpg"
  1860. style="border: solid 1.2px lightgray;width: 100%;">
  1861. </div>
  1862. <div>
  1863. <span id="ac-card-title emotion_recognition_enter_button" class="ac-card-title card-title activator grey-text text-darken-4
  1864. translatable_app_center_object_recognition translatable_objectRecognition"
  1865. style="font-size: 30px;">Object
  1866. Recognition</span>
  1867. <p class="translatable_objectRecognition_content">The development trend of object
  1868. recognition is
  1869. artificial intelligence. Object recognition is the frontier technology of intelligent
  1870. recognition and a new subject in the field of recognition.Object recognition technology
  1871. is
  1872. widely used in agriculture, industry, military, aviation and other fields.
  1873. </p>
  1874. </div>
  1875. </div>
  1876. <div class="modal_setting_objectRecog_right setting_right_all" style="width: 48%;">
  1877. <div class="translatable_computer_configuration"
  1878. style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
  1879. <span>Computer Configuration Requirements</span>
  1880. </div>
  1881. <div class="setting_border">
  1882. <p><span class="translatable_the_operating_system">Minimum Opearting System
  1883. version</span>:Windows (>Windows7), macOS (>10.11)</p>
  1884. <p><span class="translatable_resolution_of_the">Suggested Resolution
  1885. Supported</span>:1440*768
  1886. </p>
  1887. <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
  1888. <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
  1889. <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
  1890. <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
  1891. class="translatable_need">OK</span></p>
  1892. <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
  1893. class="translatable_no_need">NO</span></p>
  1894. </div>
  1895. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1896. href="#Object_recog_modal" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
  1897. </div>
  1898. </div>
  1899. </div>
  1900. </div>
  1901. <!--Object Recog_modal modal-->
  1902. <div id="Object_recog_modal" class="modal TM_class modal_closes" style="position:relative">
  1903. <span class="modal_close" style="padding: 15px;position: absolute;right: 0;cursor: pointer;"><i
  1904. class="small material-icons" style="font-size: 1.5rem;">close</i></span>
  1905. <div id="TM_login_object" style="margin-top:10px;top:10%;position:relative"></div>
  1906. <div id="TM_iframe_object" style="height:100%; width:100%; display:none"></div>
  1907. <div id="object_modal" class="object_modal">
  1908. <img src="./gif/loading.gif"
  1909. style="position: absolute;top: calc(50% - 140px);width: 500px;left: calc(50% - 250px);" />
  1910. </div>
  1911. </div>
  1912. <!-- 显示posenet Recog_modal modal配置弹框 -->
  1913. <div id="setting_posenetRecog" class="modal modal_closes">
  1914. <span class="modal_close" style="padding: 15px;position: absolute;right: 0;cursor: pointer;"><i
  1915. class="small material-icons" style="font-size: 1.5rem;">close</i></span>
  1916. <div class="modal-content" style="padding: 20px;">
  1917. <span class="modal_close" style="padding: 15px;">
  1918. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  1919. </span>
  1920. <h4 class="translatable_labs_center_modal_title">CocoBlockly Labs</h4>
  1921. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  1922. <div style="display: flex;justify-content:space-around;">
  1923. <div class="modal_setting_objectRecog_left setting_left_all">
  1924. <div class="card-image waves-effect waves-block waves-light">
  1925. <img class="" src="icons/posenet_recogition.png"
  1926. style="border: solid 1.2px lightgray;width: 100%;">
  1927. </div>
  1928. <div>
  1929. <span id="ac-card-title emotion_recognition_enter_button" class="ac-card-title card-title activator grey-text text-darken-4
  1930. translatable_app_center_object_recognition translatable_posenetRecognition"
  1931. style="font-size: 30px;">Posenet
  1932. Recognition</span>
  1933. <p class="translatable_posenetRecognition_content">The development trend of object
  1934. recognition
  1935. is
  1936. artificial intelligence. Object recognition is the frontier technology of intelligent
  1937. recognition and a new subject in the field of recognition.Object recognition technology
  1938. is
  1939. widely used in agriculture, industry, military, aviation and other fields.
  1940. </p>
  1941. </div>
  1942. </div>
  1943. <div class="modal_setting_objectRecog_right setting_right_all" style="width: 48%;">
  1944. <div class="translatable_computer_configuration"
  1945. style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
  1946. <span>Computer Configuration Requirements</span>
  1947. </div>
  1948. <div class="setting_border">
  1949. <p><span class="translatable_the_operating_system">Minimum Opearting System
  1950. version</span>:Windows (>Windows7), macOS (>10.11)</p>
  1951. <p><span class="translatable_resolution_of_the">Suggested Resolution
  1952. Supported</span>:1440*768
  1953. </p>
  1954. <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
  1955. <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
  1956. <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
  1957. <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
  1958. class="translatable_need">OK</span></p>
  1959. <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
  1960. class="translatable_no_need">NO</span></p>
  1961. </div>
  1962. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  1963. href="#Posent_recog_modal" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
  1964. </div>
  1965. </div>
  1966. </div>
  1967. </div>
  1968. <!--Object Recog_modal modal-->
  1969. <div id="Posent_recog_modal" class="modal TM_class modal_closes" style="position:relative">
  1970. <span class="modal_close" style="padding: 15px;position: absolute;right: 0;cursor: pointer;"><i
  1971. class="small material-icons" style="font-size: 1.5rem;">close</i></span>
  1972. <div id="TM_login_posenet" style="margin-top:10px;top:10%;position:relative"></div>
  1973. <div id="TM_iframe_posenet" style="height:100%; width:100%; display:none"></div>
  1974. <div id="posenet_modal" class="object_modal">
  1975. <img src="./gif/loading.gif"
  1976. style="position: absolute;top: calc(50% - 140px);width: 500px;left: calc(50% - 250px);" />
  1977. </div>
  1978. </div>
  1979. <!-- 显示webcam input modal配置弹框 -->
  1980. <div id="setting_webcam_capture_modal" class="modal modal_closes">
  1981. <span class="modal_close" style="padding: 15px;position: absolute;right: 0;cursor: pointer;"><i
  1982. class="small material-icons" style="font-size: 1.5rem;">close</i></span>
  1983. <div class="modal-content" style="padding: 20px;">
  1984. <span class="modal_close" style="padding: 15px;">
  1985. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  1986. </span>
  1987. <h4 class="translatable_labs_center_modal_title">CocoBlockly Labs</h4>
  1988. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  1989. <div style="display:flex;justify-content:space-around;">
  1990. <div class="modal_setting_teacher_left setting_left_all">
  1991. <div class="card-image waves-effect waves-block waves-light">
  1992. <img class="" src="icons/AppCenter_ai_emotion.jpg"
  1993. style="border: solid 1.2px lightgray;width: 100%;">
  1994. </div>
  1995. <div>
  1996. <span id="ac-card-title emotion_recognition_enter_button"
  1997. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_emotion_recognition"
  1998. style="font-size: 30px;">Emotion
  1999. Recognition</span>
  2000. <p class="translatable_webcam_capture_content">The trend of robot development is artificial
  2001. intelligence. Deep learning is the frontier technology of intelligent robot and a new
  2002. topic
  2003. in the field of machine learning.Deep learning technology is widely used in agriculture,
  2004. industry, military, aviation and other fields, and the organic combination with machines
  2005. can
  2006. design intelligent robots with high working efficiency, high real-time and high
  2007. accuracy.
  2008. </p>
  2009. </div>
  2010. </div>
  2011. <div class="modal_setting_teacher_right setting_right_all">
  2012. <div class="translatable_computer_configuration"
  2013. style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
  2014. <span>Computer Configuration Requirements</span>
  2015. </div>
  2016. <div class="setting_border">
  2017. <p><span class="translatable_the_operating_system">Minimum Opearting System
  2018. version</span>:Windows (>Windows7), macOS (>10.11)</p>
  2019. <p><span class="translatable_resolution_of_the">Suggested Resolution
  2020. Supported</span>:1440*768
  2021. </p>
  2022. <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
  2023. <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
  2024. <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
  2025. <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
  2026. class="translatable_need">Ok</span></p>
  2027. <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
  2028. class="translatable_no_need">NO</span></p>
  2029. </div>
  2030. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  2031. href="#webcam_capture_modal" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
  2032. </div>
  2033. </div>
  2034. </div>
  2035. </div>
  2036. <div id="donload_file_cocorobo" class="modal modal_closes donload_file_cocorobo">
  2037. <div class="modal-content" style="padding: 0;">
  2038. <span class="modal_close" style="padding: 15px;">
  2039. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2040. </span>
  2041. <h4 class="cloudStorage translatable_localStorageTitle">Cloud Storage</h4>
  2042. <!-- <div id="cloud_askLogin"></div> -->
  2043. <div class="cloud_fileName">
  2044. <div class="translatable_project_name"
  2045. style="font-size: 16px;color: #3D3D3D;letter-spacing: 0;margin-top: 15px;margin-left: 25px;">作品名称
  2046. </div>
  2047. <div style="text-align: center;margin-top: 15px;">
  2048. <input id="donload_file_cloud_input" type="text" placeholder="名称" />
  2049. </div>
  2050. <div style="margin-top: 20px;text-align: center;">
  2051. <button id="donload_file_confirm_btn" type="button"
  2052. style="cursor: pointer;background: #4A6AFF;border-radius: 3px;width: 90px;line-height: 36px;border: none;margin-right: 30px;">
  2053. <span class="translatable_cofirm_btn"
  2054. style="font-size: 14px;color: #FFFFFF;letter-spacing: 0;">确 定</span>
  2055. </button>
  2056. <button id="donload_file_cancel_btn" class="cancelBtn" type="button"
  2057. style="cursor: pointer;border-radius: 3px;width: 90px;line-height: 36px;border: 1px solid #CCCCCC;">
  2058. <span class="translatable_cancel_btn" style="font-size: 14px;color:#888888;letter-spacing: 0;">取
  2059. 消</span>
  2060. </button>
  2061. </div>
  2062. </div>
  2063. </div>
  2064. </div>
  2065. <div id="firmware_upgrade_modal" class="modal modal_closes firmware_upgrade_modal">
  2066. <div class="modal-content">
  2067. <span class="modal_close" style="padding: 15px;">
  2068. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2069. </span>
  2070. <div id="firmware_upgrade_Area">
  2071. <div style="text-align: center;">
  2072. <div class="firmware_module" style="margin-right: 20%;">
  2073. <div style="display: table;width: 126px;height: 126px;">
  2074. <div class="firmware_module_ai"><div class="translatable_ai_module_a">AI 模块</div>V1.0</div>
  2075. </div>
  2076. </div>
  2077. <div class="firmware_module">
  2078. <div style="display: table;width: 126px;height: 126px;">
  2079. <div class="firmware_module_iot"><div class="translatable_iot_module_a">IOT 模块</div>V0.2</div>
  2080. </div>
  2081. </div>
  2082. </div>
  2083. <div style="text-align: center;">
  2084. <div class="firmware_module_download" style="margin-right: 20%;">
  2085. <div style="display: table;">
  2086. <button style="cursor: pointer;background: #4A6AFF;border-radius: 3px;width: 130px;line-height: 36px;border: none;" onclick='openUrl("../firmware/ai-module_firmware_2020-10-14.rar")'>
  2087. <span class="button_text translatable_button_text">下载固件升级包</span>
  2088. </button>
  2089. </div>
  2090. </div>
  2091. <div class="firmware_module_download">
  2092. <div style="display: table;">
  2093. <button style="cursor: pointer;background: #4A6AFF;border-radius: 3px;width: 130px;line-height: 36px;border: none;" onclick='openUrl("../firmware/mcu-module_firmware_2020-9-21_STABLE.bin")'>
  2094. <span class="button_text translatable_button_text">下载固件升级包</span>
  2095. </button>
  2096. </div>
  2097. </div>
  2098. </div>
  2099. </div>
  2100. </div>
  2101. </div>
  2102. <!-- webcam input modal -->
  2103. <div id="webcam_capture_modal" class="modal">
  2104. <div id="emotionRecognitionTitle" class="modal-content">
  2105. <div style="margin-bottom:-10px;margin-top:10px;" class="row">
  2106. <div class="col s8">
  2107. <h4 class="translatable_webcamDemoTitle">Emotion Recognition</h4>
  2108. </div>
  2109. <div style="text-align:right;" class="col s4">
  2110. <a style="cursor: pointer;text-decoration:none; color:rgba(0,0,0.9);"
  2111. id="emotion_recognition_close" class="modal-action modal-close">
  2112. <h4><i class="small material-icons">close</i></h4>
  2113. </a>
  2114. </div>
  2115. </div>
  2116. <!--<div> <span class="translatable_cloudFileTooltip" sytle="margin-left:10px">Type project's name and click save</span></div>-->
  2117. <div class="row">
  2118. <div class="col s12">
  2119. <div class="switch" style="margin-bottom:20px;">
  2120. <label>
  2121. <span class="translatable_emotion_camera_off">Camera Off</span>
  2122. <input id="camera_switch" type="checkbox" onclick="cameraSwitch()">
  2123. <span class="lever "></span><span class="translatable_emotion_camera_on">On</span>
  2124. </label>
  2125. </div>
  2126. </div>
  2127. </div>
  2128. <div class="row" style="text-align:left;">
  2129. <div style="float:center;" class="col s6">
  2130. <p class="translatable_face_webcam" style="margin-top:-20px;">Webcam:</p>
  2131. <div id="webCamera"></div>
  2132. <div class="translatable_emotion_camera_turnon_text" id="webCamPlaceholder">Turn on the Camera
  2133. first
  2134. </div>
  2135. </div>
  2136. <div style="float:center;" class="col s6">
  2137. <p class="translatable_face_latest_snapshot" style="margin-top:-20px;">Last snapshot:</p>
  2138. <div id="emotionResults"></div>
  2139. <div class="translatable_emotion_snapshot_text" id="SnapshotPlaceholder">Your snapshot will be
  2140. here
  2141. </div>
  2142. </div>
  2143. </div>
  2144. <div class="row">
  2145. <div class="col s12">
  2146. <a id="emotionRequestStatus"
  2147. class="disabled waves-effect waves-light btn blue translatable_face_analyze"
  2148. onclick="processImage()">Analyze</a>
  2149. <span id="azureRequestStatusText" style="padding-left:20px;"> </span>
  2150. </div>
  2151. </div>
  2152. <div class="row" style="text-align:left;">
  2153. <div id="emotionResultsAll" class="col s12">
  2154. <span class="translatable_emotion_result_title" id="facialanalysistitle"
  2155. style="font-weight:200;">Facial Analysis:</span>
  2156. <div style="display: flex;flex-wrap: wrap;margin-top: 10px;">
  2157. <p id="emotionResultsAll_property" style="width: 50%;">
  2158. <b class="translatable_emotion_result_age_title">Age:</b>
  2159. <span id="emotionResults_age"
  2160. class="emotionResultsAll_single translatable_emotion_result_default">Nothing
  2161. detected.</span>
  2162. </p>
  2163. <p id="emotionResultsAll_property" style="width: 50%;">
  2164. <b class="translatable_emotion_result_emotion_title">Emotion:</b>
  2165. <span id="emotionResults_emotion"
  2166. class="emotionResultsAll_single translatable_emotion_result_default">Nothing
  2167. detected.</span>
  2168. </p>
  2169. <p id="emotionResultsAll_property" style="width: 50%;">
  2170. <b class="translatable_emotion_result_gender_title">Gender:</b>
  2171. <span id="emotionResults_gender"
  2172. class="emotionResultsAll_single translatable_emotion_result_default">Nothing
  2173. detected.</span>
  2174. </p>
  2175. <p id="emotionResultsAll_property" style="width: 50%;">
  2176. <b class="translatable_emotion_result_glasses_title">Glasses:</b>
  2177. <span id="emotionResults_glasses"
  2178. class="emotionResultsAll_single translatable_emotion_result_default">Nothing
  2179. detected.</span>
  2180. </p>
  2181. <!-- <p id="emotionResultsAll_property" style="width: 50%;">
  2182. <b class="translatable_emotion_result_appearance_title">Appearance:</b>
  2183. <span id="emotionResults_appearance"
  2184. class="emotionResultsAll_single translatable_emotion_result_default">Nothing
  2185. detected.</span>
  2186. </p> -->
  2187. <p id="emotionResultsAll_property" style="width: 50%;">
  2188. <b class="translatable_emotion_result_expression_title">Expression:</b>
  2189. <span id="emotionResults_expression" class="emotionResultsAll_single">Nothing
  2190. detected.</span>
  2191. </p>
  2192. <p id="emotionResultsAll_property"
  2193. style="width: 100%;border-top: 1px solid #ccc;margin-top: 10px;padding-top: 10px;">
  2194. <b class="translatable_emotion_result_expression_title">Emotion:</b>
  2195. <span class="emotionResultsAll_single">smile、laugh、none</span>
  2196. </p>
  2197. <p id="emotionResultsAll_property" style="width: 100%;">
  2198. <b class="translatable_emotion_result_emotion_title">Expression:</b>
  2199. <span
  2200. class="emotionResultsAll_single">angry、disgust、fear、happy、sad、surprise、neutral、pouty、grimace</span>
  2201. </p>
  2202. </div>
  2203. </div>
  2204. <div class="col s12 select_send_way" style="position: relative; margin:12px 0;padding: 0;">
  2205. <span class="select_send_way_color translatable_send_cloud">Send Cloud</span>
  2206. <!-- <span class="translatable_send_module">Send Module</span> -->
  2207. </div>
  2208. </div>
  2209. <div class="row">
  2210. <div class="col s12 send_cloud" style="position: relative">
  2211. <div id="cloudRequestStatus" class="col s12">
  2212. </div>
  2213. <div class="translatable_selectEvent">Choose a CocoCloud event here, the analyzed result will
  2214. directly send to there</div>
  2215. <div style="width:100%;margin-top: 15px;">
  2216. <select class="browser-default" id="AI_webcam_events">
  2217. <option class="translatable_noEvent" value=null disabled>No event here. Login first
  2218. </option>
  2219. </select>
  2220. </div>
  2221. <span style="float:right;top: -45px;position: relative;margin-top: -38px;">
  2222. <i id="update_Coevent_web" class="material-icons">autorenew</i>
  2223. </span>
  2224. </div>
  2225. <div class="col s12 send_module" style="position: relative;display: none;height: 100px;">
  2226. <div class="translatable_send_module">Send Module</div>
  2227. <div class="col s6" style="margin-top:2px;padding: 0;">
  2228. <span class="translatable_send_result">Send Result:</span>
  2229. <select class="browser-default" id="select_send_capture"
  2230. style="width: 120px;display: inline-block;height: 35px;">
  2231. <option value="emotionResults_age" class="translatable_emotion_result_age_title">Age
  2232. </option>
  2233. <option value="emotionResults_emotion"
  2234. class="translatable_emotion_result_emotion_title">
  2235. Emotion</option>
  2236. <option value="emotionResults_gender" class="translatable_emotion_result_gender_title">
  2237. Sex
  2238. </option>
  2239. <option value="emotionResults_glasses"
  2240. class="translatable_emotion_result_glasses_title">
  2241. Glasses</option>
  2242. <option value="emotionResults_expression"
  2243. class="translatable_emotion_result_expression_title">Expression</option>
  2244. </select>
  2245. <span class="translatable_port">Port:</span>
  2246. <span class="port" style="padding-left:10px;"></span>
  2247. </div>
  2248. <div class="col s6" style="margin-top:2px;">
  2249. <a class="waves-effect waves-light blue lighten-2 btn translatable_connectBtn translatable_connectBtns disabled"
  2250. style="float:right;margin-right:5px">connect</a>
  2251. <a class="waves-effect waves-light blue lighten-2 btn translatable_disconnectBtn translatable_disconnectBtns "
  2252. style="float:right;margin-right:5px;display:none">disconnect</a>
  2253. </div>
  2254. </div>
  2255. </div>
  2256. </div>
  2257. </div>
  2258. <!-- 显示gesture recognition modal配置弹框 -->
  2259. <div id="setting_gesture_recog_modal" class="modal modal_closes">
  2260. <span class="modal_close" style="padding: 15px;position: absolute;right: 0;cursor: pointer;"><i
  2261. class="small material-icons" style="font-size: 1.5rem;">close</i></span>
  2262. <div class="modal-content" style="padding: 20px;">
  2263. <span class="modal_close" style="padding: 15px;">
  2264. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2265. </span>
  2266. <h4 class="translatable_labs_center_modal_title">CocoBlockly Labs</h4>
  2267. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  2268. <div style="display:flex;justify-content:space-around;">
  2269. <div class="modal_setting_teacher_left setting_left_all">
  2270. <div class="card-image waves-effect waves-block waves-light">
  2271. <img class="" src="icons/AppCenter_ai_gesture_recognition.jpg"
  2272. style="border: solid 1.2px lightgray;width: 100%;">
  2273. </div>
  2274. <div>
  2275. <span id="ac-card-title emotion_recognition_enter_button"
  2276. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_gesture_recognition translatable_gesturesTitle"
  2277. style="font-size: 30px;">Gesture
  2278. Recognition</span>
  2279. <p class="translatable_gesture_recog_content">The trend of robot development is artificial
  2280. intelligence. Deep learning is the frontier technology of intelligent robot and a new
  2281. topic
  2282. in the field of machine learning.Deep learning technology is widely used in agriculture,
  2283. industry, military, aviation and other fields, and the organic combination with machines
  2284. can
  2285. design intelligent robots with high working efficiency, high real-time and high
  2286. accuracy.
  2287. </p>
  2288. </div>
  2289. </div>
  2290. <div class="modal_setting_teacher_right setting_right_all">
  2291. <div class="translatable_computer_configuration"
  2292. style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
  2293. <span>Computer Configuration Requirements</span>
  2294. </div>
  2295. <div class="setting_border">
  2296. <p><span class="translatable_the_operating_system">Minimum Opearting System
  2297. version</span>:Windows (>Windows7), macOS (>10.11)</p>
  2298. <p><span class="translatable_resolution_of_the">Suggested Resolution
  2299. Supported</span>:1440*768
  2300. </p>
  2301. <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
  2302. <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
  2303. <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
  2304. <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
  2305. class="translatable_need">Ok</span></p>
  2306. <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
  2307. class="translatable_no_need">NO</span></p>
  2308. </div>
  2309. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  2310. href="#gesture_recog_modal" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
  2311. </div>
  2312. </div>
  2313. </div>
  2314. </div>
  2315. <!-- gesture recognition modal -->
  2316. <div id="gesture_recog_modal" class="modal">
  2317. <div id="gestureRecognitionTitle" class="modal-content">
  2318. <div style="margin-bottom:-10px;margin-top:10px;" class="row">
  2319. <div class="col s10">
  2320. <h4 class="translatable_gesturesTitle">Gesture Recognition</h4>
  2321. </div>
  2322. <div style="text-align:right;" class="col s2">
  2323. <a style="cursor: pointer;text-decoration:none; color:rgba(0,0,0.9);"
  2324. id="gesture_recognition_close" class="modal-action modal-close">
  2325. <h4><i class="small material-icons">close</i></h4>
  2326. </a>
  2327. </div>
  2328. </div>
  2329. <div class="row">
  2330. <div class="col s12">
  2331. <div class="switch" style="margin-bottom:20px;">
  2332. <label>
  2333. <span class="translatable_emotion_camera_off">Camera Off</span>
  2334. <input id="camera_switch_gesture" type="checkbox" onclick="cameraSwitchGesture();">
  2335. <span class="lever "></span><span class="translatable_emotion_camera_on">On</span>
  2336. </label>
  2337. </div>
  2338. </div>
  2339. </div>
  2340. <div style="margin-bottom:10px;" class="row">
  2341. <div style="float:center;" class="col s5">
  2342. <p class="translatable_gesture_webcam" style="margin-top:-20px;">Webcam:</p>
  2343. <div id="webCameraGestureFrame">
  2344. <div id="webCameraGesture"></div>
  2345. </div>
  2346. <div class="translatable_emotion_camera_turnon_text" id="gesture_webCamPlaceholder">Turn on the
  2347. Camera first
  2348. </div>
  2349. </div>
  2350. <div style="float:center;" class="col s7">
  2351. <a id="gestureAnalyzeButton"
  2352. class="disabled waves-effect waves-light btn blue translatable_gesture_recognition"
  2353. onclick="gestureRecognize();">Recognize</a>
  2354. <div id="gestureResultAreaFrame">
  2355. <h4 class="gestureResultAreaTitle translatable_gesture_recognition_result">Recognition
  2356. Result:
  2357. </h4>
  2358. <div id="gestureResultAreaContent" class="translatable_gesture_result">
  2359. No result yet.
  2360. </div>
  2361. </div>
  2362. <div class="col s12 select_send_way" style="position: relative; margin:12px 0;padding: 0;">
  2363. <span class="select_send_way_color translatable_send_cloud">Send Cloud</span>
  2364. <!-- <span class="translatable_send_module">Send Module</span> -->
  2365. </div>
  2366. <div class="s12" style="position: relative;margin-top: 45px;">
  2367. <div class="send_cloud">
  2368. <div id="cloudRequestStatuss" class="s12">
  2369. </div>
  2370. <div class="translatable_selectEvent" style="padding-right: 0.75rem;">Choose a CocoCloud
  2371. event
  2372. here, the analyzed result will
  2373. directly send to there</div>
  2374. <div style="width:100%;margin-top: 15px;">
  2375. <select class="browser-default" id="AI_gesture_events">
  2376. <option class="translatable_noEvent" value=null disabled>No event here. Login
  2377. first
  2378. </option>
  2379. </select>
  2380. </div>
  2381. <span style="float:right;top: -45px;position: relative;margin-top: -38px;">
  2382. <i id="update_Coevent_web" class="material-icons">autorenew</i>
  2383. </span>
  2384. </div>
  2385. <div class="col s12 send_module"
  2386. style="position: relative;display: none;height: 100px;padding: 0;">
  2387. <div class="translatable_send_module">Send Module</div>
  2388. <div class="input-field col s6" style="margin-top:2px;padding: 0;">
  2389. <span class="translatable_port">Port:</span>
  2390. <span class="port" style="padding-left:10px;"></span>
  2391. </div>
  2392. <div class="col s6" style="margin-top:2px;">
  2393. <a class="waves-effect waves-light blue lighten-2 btn translatable_connectBtns translatable_connectBtn disabled"
  2394. style="float:right;margin-right:5px">connect</a>
  2395. <a class="waves-effect waves-light blue lighten-2 btn translatable_disconnectBtns translatable_disconnectBtn"
  2396. style="float:right;margin-right:5px;display:none">disconnect</a>
  2397. </div>
  2398. </div>
  2399. </div>
  2400. </div>
  2401. </div>
  2402. <!-- <div class="row">
  2403. <div class="col s12">
  2404. <hr style="margin-top: 20px; border-top: 0.5px solid rgba(0,0,0,.1);" />
  2405. </div>
  2406. </div> -->
  2407. </div>
  2408. </div>
  2409. <!-- 显示voice speech modal配置弹框 -->
  2410. <div id="setting_voice_input_modal" class="modal modal_closes">
  2411. <span class="modal_close" style="padding: 15px;position: absolute;right: 0;cursor: pointer;"><i
  2412. class="small material-icons" style="font-size: 1.5rem;">close</i></span>
  2413. <div class="modal-content" style="padding: 20px;">
  2414. <h4 class="translatable_labs_center_modal_title">CocoBlockly Labs</h4>
  2415. <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
  2416. <div style="display:flex;justify-content:space-around;">
  2417. <div class="modal_setting_teacher_left setting_left_all">
  2418. <div class="card-image waves-effect waves-block waves-light">
  2419. <img class="" src="icons/AppCenter_ai_speech.jpg"
  2420. style="border: solid 1.2px lightgray;width: 100%;">
  2421. </div>
  2422. <div>
  2423. <span id="ac-card-title"
  2424. class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_speech_recognition"
  2425. style="font-size: 30px;">Speech
  2426. Recognition</span>
  2427. <p class="translatable_voice_input_content">The trend of robot development is artificial
  2428. intelligence. Deep learning is the frontier technology of intelligent robot and a new
  2429. topic
  2430. in the field of machine learning.Deep learning technology is widely used in agriculture,
  2431. industry, military, aviation and other fields, and the organic combination with machines
  2432. can
  2433. design intelligent robots with high working efficiency, high real-time and high
  2434. accuracy.
  2435. </p>
  2436. </div>
  2437. </div>
  2438. <div class="modal_setting_teacher_right setting_right_all">
  2439. <div class="translatable_computer_configuration"
  2440. style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
  2441. <span>Computer Configuration Requirements</span>
  2442. </div>
  2443. <div class="setting_border">
  2444. <p><span class="translatable_the_operating_system">Minimum Opearting System
  2445. version</span>:Windows (>Windows7), macOS (>10.11)</p>
  2446. <p><span class="translatable_resolution_of_the">Suggested Resolution
  2447. Supported</span>:1440*768
  2448. </p>
  2449. <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
  2450. <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
  2451. <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
  2452. <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
  2453. class="translatable_no_need">NO</span></p>
  2454. <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
  2455. class="translatable_need">OK</span></p>
  2456. </div>
  2457. <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
  2458. href="#voice_input_modal" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
  2459. </div>
  2460. </div>
  2461. </div>
  2462. </div>
  2463. <!-- voice speech modal -->
  2464. <div id="voice_input_modal" class="modal voice-modal-trigger">
  2465. <div class="modal-content">
  2466. <div style="margin-top:10px;" class="row">
  2467. <div class="col s8">
  2468. <h4 class="translatable_speechDemoTitle">Speech Recognition</h4>
  2469. </div>
  2470. <div style="text-align:right;" class="col s4">
  2471. <a style="cursor: pointer;text-decoration:none; color:rgba(0,0,0.9);" id="voice_input_close"
  2472. class="modal-action modal-close">
  2473. <h4><i class="small material-icons">close</i></h4>
  2474. </a>
  2475. </div>
  2476. </div>
  2477. <div style="margin-bottom:10px;margin-top:-20px;" class="row">
  2478. <div class="col s12">
  2479. <p class="translatable_speechTip" style="font-size:15px;font-weight:200;">Voice recognition for
  2480. English, Cantonese & Mandarin.</p>
  2481. <hr
  2482. style="position:relative;top:-2px;margin-bottom:15px;border-color:rgba(0,0,0,.1); border-width: 1px;">
  2483. </div>
  2484. </div>
  2485. <div class="row" style="margin-top:-15px;margin-bottom:10px">
  2486. <div class="col s4">
  2487. <p class="translatable_speech_language_select">Select a language to recognize:</p>
  2488. </div>
  2489. <div style="margin-left:-20px;" class="col s2 speech_language" style="position:relative;top:3px">
  2490. <select id="speech_language_selection" class="browser-default" style="max-width:200px">
  2491. <option value="english" class="translatable_speech_language_English">English</option>
  2492. <option value="cantonese" class="translatable_speech_language_Cantonese">Cantonese</option>
  2493. <option value="mandarin" class="translatable_speech_language_Mandarin">Mandarin</option>
  2494. </select>
  2495. </div>
  2496. <div class="col" style="position:relative;top:5px">
  2497. <a id="speech_button" class="waves-effect waves-light btn blue translatable_speech_recognition"
  2498. style="padding:0 8px" onclick="processSpeech()/*startSpeech()*/">Start Recording</a>
  2499. </div>
  2500. <div class="col s3" style="position:relative;top:15px;">
  2501. <span style="font-weight:200;margin-left:-5px;" id="speech_process_title"
  2502. style="position:relative;top:-6px;"></span>
  2503. </div>
  2504. </div>
  2505. <div class="row">
  2506. <textarea id="speech_textarea" row="3" class="disabled translatable_speech_textarea_title"
  2507. style="width:772px;height:130px;resize:none;border-radius:5px;padding:10px;color:rgba(0,0,0,.4);"
  2508. readonly> Click on the mic button to start dictating...</textarea>
  2509. </div>
  2510. <div style="margin-top:5px;" class="row">
  2511. <div class="col s12 select_send_way" style="position: relative; margin-bottom:12px;">
  2512. <span class="select_send_way_color translatable_send_cloud">Send Cloud</span>
  2513. <!-- <span class="translatable_send_module">Send Module</span> -->
  2514. </div>
  2515. <div class="col s12 send_cloud" style="position: relative">
  2516. <div class="col s12">
  2517. <span id="speechDemoCloudRequest" style="font-weight:200;"></span>
  2518. </div>
  2519. <div class="translatable_selectEvent">Choose a CocoCloud event here, the analyzed result will
  2520. directly send to there</div>
  2521. <div style="width:95%">
  2522. <select style="margin-top:10px;" class="browser-default" id="AI_voice_events">
  2523. <option class="translatable_noEvent" value=null disabled>No event here. Login first
  2524. </option>
  2525. </select>
  2526. </div>
  2527. <span style="float:right;top: -45px;position: relative;">
  2528. <i id="update_Coevent_voice" class="material-icons">autorenew</i>
  2529. </span>
  2530. </div>
  2531. <div class="col s12 send_module" style="position: relative;display: none;height: 100px;">
  2532. <div class="translatable_send_module">Send Module</div>
  2533. <div class="input-field col s6" style="margin-top:2px;">
  2534. <span class="translatable_port">Port:</span>
  2535. <span class="port" style="padding-left:10px;"></span>
  2536. </div>
  2537. <div class="col s6" style="margin-top:2px;">
  2538. <a class="waves-effect waves-light blue lighten-2 btn translatable_connectBtns translatable_connectBtn disabled"
  2539. style="float:right;margin-right:5px">connect</a>
  2540. <a class="waves-effect waves-light blue lighten-2 btn translatable_disconnectBtn translatable_disconnectBtns "
  2541. style="float:right;margin-right:5px;display:none">disconnect</a>
  2542. </div>
  2543. </div>
  2544. </div>
  2545. </div>
  2546. </div>
  2547. </div>
  2548. </div>
  2549. </div>
  2550. <!-- iframe -->
  2551. <div id="iframe" class="modal modal_closes" style="width: 70%;">
  2552. <span class="modal_close" style="padding: 15px;right: 12px;">
  2553. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2554. </span>
  2555. <!-- <iframe frameborder="0" style="width: 100%;height: 50vh;"></iframe> -->
  2556. </div>
  2557. <div id="updatePy" class="modal">
  2558. <!-- <i id="updatePy_icon" class="material-icons right" style="cursor:pointer;">close</i> -->
  2559. <div style="padding: 20px;">
  2560. <h2 style="font-size: 30px;margin-bottom: 0;" class="translatable_update_file">更新文件</h2>
  2561. <p>选择文件夹</p>
  2562. <div id="select_folder" class="select_folder" style="height: 300px;">
  2563. </div>
  2564. <!-- <div class="folder_name">
  2565. <span>文件名:</span>
  2566. <input class="folder_name_inpit" type="text">
  2567. </div> -->
  2568. <div class="update_bottom">
  2569. <button class="cancle">取消</button>
  2570. <button class="confim">确定</button>
  2571. </div>
  2572. </div>
  2573. </div>
  2574. <!-- Custom Alert: Content is loaded using JavaScript to display alerts -->
  2575. <div id="cus_alert" class="modale modal_small modal_custom">
  2576. <div class="modal-content">
  2577. <h5 id="cus_alert_title">Empty Alert</h5>
  2578. <p><span id="cus_alert_body">Empty alert text</span></p>
  2579. </div>
  2580. <div class="modal-footer">
  2581. <a id="cus_alert_button" class="waves-effect btn-flat modal-close blue"><span id="cus_alert_button_content"
  2582. style="color:#fff"></span></a>
  2583. <a id="cus_alert_ok_link" class="waves-effect btn-flat modal-close blue"><span class="translatable_okay"
  2584. style="color:#fff">Okay</span></a>
  2585. </div>
  2586. </div>
  2587. <!-- Env Detect Modal -->
  2588. <div id="env_detect" class="modal modal_closes">
  2589. <div class="modal-content">
  2590. <span class="modal_close" style="padding: 15px;">
  2591. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2592. </span>
  2593. <h4 class="translatable_env_detect" style="margin-bottom:2.5rem;">Environment Detect</h4>
  2594. <div id="detect_before" style="position:relative;">
  2595. <div>
  2596. <img src="./icons/device-detect.svg" />
  2597. </div>
  2598. <div id="detect_preload" style="display:none;">
  2599. <div
  2600. style="position:relative;top:50%;transform:translateY(-50%);height:128px;width:128px;margin:0 auto;">
  2601. <div class="preloader-wrapper big active">
  2602. <div class="spinner-layer spinner-blue-only">
  2603. <div class="circle-clipper left">
  2604. <div class="circle"></div>
  2605. </div>
  2606. <div class="gap-patch">
  2607. <div class="circle"></div>
  2608. </div>
  2609. <div class="circle-clipper right">
  2610. <div class="circle"></div>
  2611. </div>
  2612. </div>
  2613. </div>
  2614. </div>
  2615. </div>
  2616. </div>
  2617. <div id="detect_result" style="display:none;">
  2618. <div style="border-bottom:2.5px #0057ff6e solid;padding:0.25rem 0;">
  2619. <h5 class="translatable_title_device">Device</h5>
  2620. <h5 class="translatable_title_result">Result</h5>
  2621. <h5 class="translatable_title_support">Support</h5>
  2622. <h5 class="translatable_title_suggest">Suggest</h5>
  2623. </div>
  2624. <div id="env_detect_os" style="margin-top:0.5rem;">
  2625. <div class="translatable_os">System</div>
  2626. <div></div>
  2627. <div class="detect-icons"></div>
  2628. <div></div>
  2629. </div>
  2630. <div id="env_detect_browser">
  2631. <div class="translatable_browser">Browser</div>
  2632. <div></div>
  2633. <div class="detect-icons"></div>
  2634. <div></div>
  2635. </div>
  2636. <div id="env_detect_plugin" style="margin-bottom:0.5rem;">
  2637. <div>Uploader</div>
  2638. <div></div>
  2639. <div class="detect-icons"></div>
  2640. <div></div>
  2641. </div>
  2642. </div>
  2643. </div>
  2644. <div class="modal-footer">
  2645. <a id="detect-btn" class="waves-effect waves-light btn-large blue">
  2646. <span class="translatable_detect">Detect</span>
  2647. </a>
  2648. </div>
  2649. </div>
  2650. <!-- Serial Monitor -->
  2651. <div id="Serial-monitor" class="card card-serialMonitor" style="display:none;height:0;opacity:0;">
  2652. <div class="code-header">
  2653. <span class="code-header-logo"><i class="material-icons" style="padding-top:10px">search</i></span>
  2654. <span class="card-title translatable_serialMonitor">Serial Monitor</span>
  2655. </div>
  2656. <div class="card-content" style="padding:8px 10px;">
  2657. <div class="row">
  2658. <div class="input-field col s6" style="margin-top:2px;">
  2659. <p id="ports-monitor" style="font-size:16px"><span class="translatable_port">Port:</span><span
  2660. style="padding-left:10px;"></span>
  2661. </p>
  2662. </div>
  2663. <div class="col s6" style="margin-top:2px;">
  2664. <a id="comms-cnt"
  2665. class="waves-effect waves-light blue lighten-2 btn translatable_connectBtn disabled"
  2666. style="float:right;margin-right:5px">connect</a>
  2667. <a id="comms-discnt" class="waves-effect waves-light blue lighten-2 btn translatable_disconnectBtn "
  2668. style="float:right;margin-right:5px;display:none">disconnect</a>
  2669. </div>
  2670. </div>
  2671. <div class="row">
  2672. <div class="input-field col s5">
  2673. <select id="serial_output_style" style="font-size:16px">
  2674. <option value="" selected class="translatable_no_line_ending">No line ending
  2675. </option>
  2676. <option value="nl" class="translatable_newline">Newline</option>
  2677. <option value="cr" class="translatable_CR">Carriage return</option>
  2678. <option value="blc" class="translatable_NL_CR">Both NL &amp; CR</option>
  2679. </select>
  2680. </div>
  2681. <div class="input-field col s5">
  2682. <select id="serial_baud" style="font-size:16px">
  2683. <option value="300">300 <span class="translatable_baud">baud</span></option>
  2684. <option value="1200">1200 <span class="translatable_baud">baud</span></option>
  2685. <option value="2400">2400 <span class="translatable_baud">baud</span></option>
  2686. <option value="4800">4800 <span class="translatable_baud">baud</span></option>
  2687. <option value="9600" selected>9600 <span class="translatable_baud">baud</span>
  2688. </option>
  2689. <option value="19200">19200 <span class="translatable_baud">baud</span></option>
  2690. <option value="38400">38400 <span class="translatable_baud">baud</span></option>
  2691. <option value="57600">57600 <span class="translatable_baud">baud</span></option>
  2692. <option value="115200">115200 <span class="translatable_baud">baud</span></option>
  2693. </select>
  2694. </div>
  2695. </div>
  2696. <div class="row">
  2697. <div class="input-field col s10">
  2698. <input id="comms-msg" type="text" style="margin:0">
  2699. <label for="Sending_Messages" class="translatable_sendMsg" style="font-size:16px">Sending
  2700. Messages</label>
  2701. </div>
  2702. <div class="input-field col s2">
  2703. <a id="comms-send" class="waves-effect waves-light blue lighten-2 btn translatable_sendBtn disabled"
  2704. style="float:right;padding-right:5px">SEND</a>
  2705. </div>
  2706. </div>
  2707. <div class="row">
  2708. <div class="col s12">
  2709. <textarea id="commsBox" label="readonly" readonly></textarea>
  2710. </div>
  2711. </div>
  2712. <div class="row" style="margin-bottom:8px">
  2713. <div class="col s4" style="margin-top:8px">
  2714. <input id="autoscroll" type="checkbox" class="filled-in" checked="checked">
  2715. <label for="autoscroll">
  2716. <span class="translatable_autoScroll">Autoscroll</span>
  2717. </label>
  2718. </div>
  2719. <div class="input-field col s8" style="margin:4px,0,8px,0">
  2720. <a id="comms-clear" class="waves-effect waves-light blue lighten-2 btn translatable_comms_clear"
  2721. style="float:right;margin-right:5px">CLEAR</a>
  2722. <a id="comms-export"
  2723. class="waves-effect waves-light blue lighten-2 btn translatable_comms_export modal-trigger"
  2724. href="#export-file" style="float:right;margin-right:5px">EXPORT</a>
  2725. </div>
  2726. </div>
  2727. </div>
  2728. </div>
  2729. <!-- login modal -->
  2730. <div id="login_modal" class="modal modal_closes" style="top:62px">
  2731. <div id="login_modal_preload" class="progress" style="display:none">
  2732. <div class="indeterminate"></div>
  2733. </div>
  2734. <div class="modal-content" style="padding:0;">
  2735. <span class="modal_close" style="padding: 15px;">
  2736. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2737. </span>
  2738. <!-- add for login iframe -->
  2739. <div id="before_login"></div>
  2740. <div id="after_login">
  2741. <div id="userProfile_alias"></div>
  2742. <div style="width: 250px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"><span
  2743. class="translatable_user_email">Email:</span><span id="userProfile_username"> </span></div>
  2744. <div><span class="translatable_user_school">School:</span><span id="userProfile_school"></span></div>
  2745. <div id="userProfile_apikey">
  2746. <div>
  2747. <span class="translatable_Event">Event: </span>
  2748. <span style="margin-top: -13px;float:right;transform:translateY(35%);">
  2749. <i id="update_Coevent" class="material-icons" onclick="updateProject()">autorenew</i>
  2750. </span>
  2751. <p class="get_event" style="margin: 5px 0;color: #2196F3;"></p>
  2752. <select
  2753. style="outline:0; width: 100%; margin: 6px auto 8px auto; border: 1px solid rgba(0,0,0,.2);"
  2754. class="browser-default" id="cloud_events" onchange="changeProject()">
  2755. <option value=null disabled>No Event</option>
  2756. </select>
  2757. </div>
  2758. <div style="margin-top:5px">
  2759. <span>API Key: </span>
  2760. <a id="apikey-copy" data-clipboard-action="copy" data-clipboard-target="#api-key">
  2761. <i class="material-icons tiny">content_copy</i>
  2762. </a>
  2763. <textarea style="padding: 6px 6px; margin-top: 4px;" id="api-key" readonly></textarea>
  2764. </div>
  2765. </div>
  2766. </div>
  2767. </div>
  2768. <div class="modal-footer" style="display:none;">
  2769. <a id="modal_logout_btn" class="waves-effect btn-flat blue">
  2770. <span class="translatable_signout">Sign Out</span>
  2771. <img class="xuanhuan svgImg" src="./images/loading.svg" alt="">
  2772. </a>
  2773. <a id="modal_cococloud_btn" href="//cocorobo.cn/cloud" target="_black"
  2774. class="waves-effect btn-flat blue"><span class="translatable_cococloud">Go to CocoCloud</span></a>
  2775. </div>
  2776. </div>
  2777. <!-- local storage - import modal -->
  2778. <div id="Storage_import_modal" class="modal mm modal_closes" style="width:500px">
  2779. <div class="modal-content">
  2780. <span class="modal_close" style="padding: 15px;"><i class="small material-icons"
  2781. style="font-size: 1.5rem;">close</i></span>
  2782. <h4 class="translatable_localStorageImport">Import Project</h4>
  2783. <div> <span class="translatable_ImportPyTooltip" sytle="margin-left:10px">Select your project file(*.xml)
  2784. and
  2785. import it to the current workspace.Warning:will replace current blocks</span></div>
  2786. <div id="import_area" class="row" style="margin: 10px;height: 170px;position: relative;">
  2787. <a id="modal_import_btn" class="waves-effect btn-flat blue"
  2788. style="top:180px;left:320px;position:fixed;"><span class="translatable_import"
  2789. style="font-size:15px;color:#fff">Import</span></a>
  2790. <span class="translatable_ImportContent"
  2791. style="top: 230px;width:300px;left:27%;position:fixed;text-align:center;">Click to choose a file
  2792. from
  2793. your computer</span>
  2794. </div>
  2795. </div>
  2796. </div>
  2797. <!-- General Alert: Content is loaded using JavaScript to display alerts -->
  2798. <div id="gen_alert" class="modale modal_closes modal_small" style="width:730px">
  2799. <div class="modal-content">
  2800. <span class="modal_close" style="padding: 15px;">
  2801. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2802. </span>
  2803. <h5 id="gen_alert_title">Empty Alert</h5>
  2804. <p><span id="gen_alert_body">Empty alert text</span></p>
  2805. </div>
  2806. <div class="modal-footer">
  2807. <a id="gen_alert_ok_link" class="waves-effect btn-flat modal-close blue"><span class="translatable_okay"
  2808. style="color:#fff">Okay</span></a>
  2809. <a id="gen_alert_cancel_link" class="waves-effect btn-flat modal-close blue"><span
  2810. class="translatable_cancel" style="color:#fff">Cancel</span></a>
  2811. </div>
  2812. </div>
  2813. <!-- Example Alert: Content is loaded using JavaScript to display alerts -->
  2814. <div id="example_alert" class="modale modal_small" style="height:30%;width: 30%;">
  2815. <div class="modal-content">
  2816. <div id="loading" style="text-align:center;display: none;">
  2817. <img src="./gif/loading.gif" style="width: 300px;" />
  2818. </div>
  2819. <p
  2820. style="text-align:center;font-weight:bold;font-size:20px;z-index: 1087;position: absolute;left: 0;right: 0;top: 50%;">
  2821. <span id="example_alert_body">Empty alert text</span>
  2822. </p>
  2823. </div>
  2824. </div>
  2825. <!-- local storage - export modal -->
  2826. <div id="Storage_export_modal" class="modal mm modal_closes" style="width:730px">
  2827. <div class="modal-content">
  2828. <span class="modal_close" style="padding: 15px;"><i class="small material-icons"
  2829. style="font-size: 1.5rem;">close</i></span>
  2830. <h4 class="translatable_localStorageExport">Export Project</h4>
  2831. <div> <span class="translatable_ExportPyTooltip" sytle="margin-left:10px">Export current project blocks and
  2832. save it your computer,so you can open it next time when you need it</span></div>
  2833. <div class="row" style="margin: 10px;height: 200px;width: 640px;position: relative;">
  2834. <div style="display:block">
  2835. <div class="col l6">
  2836. <img src="./icons/blockly-file-export_py.png"
  2837. style="width:20%;position:relative;left:50%;right:50%;transform:translateX(-50%);">
  2838. </div>
  2839. <div class="col l6">
  2840. <img src="./icons/blockly-file-export_png.png"
  2841. style="width:20%;position:relative;left:50%;right:50%;transform:translateX(-50%);">
  2842. </div>
  2843. </div>
  2844. <div>
  2845. <div class="col l6">
  2846. <a id="modal_exportFileBtn" class="waves-effect btn-flat blue"
  2847. style="left: 50%;right: 50%;transform: translateX(-50%)"><span
  2848. class="translatable_exportFile" style="font-size:15px;color:#fff">Project
  2849. File</span></a>
  2850. </div>
  2851. <div class="col l6">
  2852. <a id="modal_exportSnapBtn" class="waves-effect btn-flat blue"
  2853. style="left: 50%;right: 50%;transform: translateX(-50%)"><span
  2854. class="translatable_exportSnap" style="font-size:15px;color:#fff">Snapshot</span></a>
  2855. </div>
  2856. </div>
  2857. <div>
  2858. <div class="col l6">
  2859. <p class="translatable_ExportPyFileContent"
  2860. style="display:block;text-align:center;width:80%;position: relative;left: 50%;right: 50%;transform: translateX(-50%);font-size:0.875rem">
  2861. Will export as an *xml file.<br>for you to continuing code nextime</p>
  2862. </div>
  2863. <div class="col l6">
  2864. <p class="translatable_ExportSnapContent"
  2865. style="display:block;text-align:center;width:80%;position: relative;left: 50%;right: 50%;transform: translateX(-50%);font-size:0.875rem">
  2866. Will export to a *png picture.<br>for your reference</p>
  2867. </div>
  2868. </div>
  2869. </div>
  2870. </div>
  2871. </div>
  2872. <div style="display: none;" id="content_blocks"></div>
  2873. <!-- cloud storage modal -->
  2874. <div id="cloud_storage_modal" class="modal modal_closes">
  2875. <div class="modal-content">
  2876. <span class="modal_close" style="padding: 15px;">
  2877. <i class="small material-icons" style="font-size: 1.5rem;">close</i>
  2878. </span>
  2879. <h4 class="translatable_cloudStorageTitle">Cloud Storage</h4>
  2880. <div id="cloud_askLogin"></div>
  2881. <div id="cloud_fileListArea" class="cloud-file" style="display:none">
  2882. </div>
  2883. </div>
  2884. <div id="cloud_modal_preload" style="display:none">
  2885. <div style="position:relative;top:50%;transform:translateY(-50%);height:128px;width:128px;margin:0 auto;">
  2886. <div class="preloader-wrapper big active" style="top:0;left:0">
  2887. <div class="spinner-layer spinner-blue-only">
  2888. <div class="circle-clipper left">
  2889. <div class="circle"></div>
  2890. </div>
  2891. <div class="gap-patch">
  2892. <div class="circle"></div>
  2893. </div>
  2894. <div class="circle-clipper right">
  2895. <div class="circle"></div>
  2896. </div>
  2897. </div>
  2898. </div>
  2899. </div>
  2900. </div>
  2901. </div>
  2902. <!-- share modal -->
  2903. <div id="share" class="modal">
  2904. <div class="modal-content">
  2905. <h4 class="">程序分享</h4>
  2906. <div style="text-align: center;">
  2907. <div id="QrImg" style="display: inline-block;"></div>
  2908. </div>
  2909. <p class="qrImgUrl"></p>
  2910. </div>
  2911. </div>
  2912. <div class="downbox MouduleBox" style="display:none;position: fixed;width:175px;height:162px;right:50px;top:225px;">
  2913. <div>
  2914. <div class="translatable_iot_module">IoT Module</div>
  2915. </div>
  2916. <div>
  2917. <div class="translatable_ai_module">A.I. Module</div>
  2918. </div>
  2919. <div><a href="//beta.python-blockly.cocorobo.cn" style="color: #424242 !important;"
  2920. class="translatable_cloud_mode">Cloud
  2921. Mode</a></div>
  2922. <div><a href="//beta.ai-blockly.cocorobo.cn" style="color: #424242 !important;"
  2923. class="translatable_javascript_mode">JavaScript Mode</a></div>
  2924. </div>
  2925. <div id="ai_tt" class="downbox MouduleBox" style="display:none;position: fixed;width:230px;right:50px;top:225px;">
  2926. <div>1.Hello World</div>
  2927. <div>2.螢幕顯示 Hello World</div>
  2928. <div>3.畫布應用</div>
  2929. <div>4.迷你相機</div>
  2930. <div>5.簡易物體識別</div>
  2931. </div>
  2932. <!-- <iframe id="web" name="web" src="//beta.x.cocorobo.cn/web.html" style="display: none"></iframe> -->
  2933. </body>
  2934. <script>
  2935. $("#modal_logout_btn").on("click", function () {
  2936. $("#modal_logout_btn").removeClass('blue');
  2937. $("#modal_logout_btn").css('background', 'gray')
  2938. $(".svgImg").css('display', 'block')
  2939. $(".translate-signout").css('opacity', '0.5')
  2940. $.ajax(`${CCB.base_url}api/logout`, {
  2941. type: "GET",
  2942. xhrFields: {
  2943. withCredentials: true
  2944. },
  2945. success: () => {
  2946. // $('#login_iframe').attr('src', '//staging.cocorobo.cn/login/');
  2947. appendIframe("TM_login");
  2948. $('#TM_login').children().css("height", "820px");
  2949. appendIframe("before_login");
  2950. appendIframe("cloud_askLogin");
  2951. Materialize.toast(CCB.str_group.success_userLogout, 4000);
  2952. CCB.userState = false;
  2953. $("#cloud_fileListArea").html("");
  2954. loginModalStatus();
  2955. $("#modal_logout_btn").addClass('blue')
  2956. $(".svgImg").css('display', 'none');
  2957. $(".translate-signout").css('opacity', '1')
  2958. }
  2959. });
  2960. });
  2961. </script>
  2962. <script type="text/javascript" src="./src/blockly/demo.js"></script>
  2963. <script type='text/javascript' src="./src/blockly/recorder.js"></script>
  2964. <script type='text/javascript' src="./src/blockly/jquery.s2t.js"></script>
  2965. </html>