123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <title>CocoBlockly CocoPi – CocoRobo CocoPi Module</title>
- <meta name="viewport"
- content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
- <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0" /> -->
- <meta http-equiv="Content-Type" content="text/html; scharset=UTF-8">
- <meta name="theme-color" content="#2C4FCD">
- <link type="text/css" rel="stylesheet" href="libs/materialize.min.css" media="screen,projection">
- <link rel="stylesheet" href="libs/codemirror/codemirror.css" />
- <link rel="stylesheet" href="libs/font-awesome.min.css" />
- <link rel="stylesheet" href="libs/summernote/summernote.css" />
- <link rel="stylesheet" href="libs/multi-select.css" />
- <link rel="stylesheet" href="src/blockpy.css" />
- <link rel="stylesheet" href="index.css" />
- <link rel="stylesheet" href="cocoblockly.css" />
- <!-- JQuery, D3, Math.js, Bootstrap -->
- <!-- <script type="text/javascript" src="libs/jquery.js"></script> -->
- <!--MD5加密-->
- <script type="text/javascript" src="static/js/md5.js"></script>
- <script type="text/javascript" src="uform.js"></script>
- <script type="text/javascript" src="js_libs/jquery-2.1.3.min.js"></script>
- <!-- <script type="text/javascript" src="js_libs/qrcode.min.js"></script> -->
- <script type="text/javascript" src="libs/jquery-ui.min.js"></script>
- <script type="text/javascript" src="libs/jquery.hotkeys.js"></script>
- <script type="text/javascript" src="libs/jquery.multi-select.js"></script>
- <!-- <script type="text/javascript" src="libs/materialize.min.js"></script> -->
- <!-- <script src="materialize/js/materialize.js"></script> -->
- <script type="text/javascript" src="libs/d3.min.js"></script>
- <script type="text/javascript" src="libs/math.0.19.0.min.js"></script>
- <!-- <script type="text/javascript" src="libs/bootstrap.min.js"></script>
- <script type="text/javascript" src="libs/bootstrap-wysiwyg.js"></script> -->
- <script type="text/javascript" src="libs/mindmup-editabletable.js"></script>
- <script type="text/javascript" src="libs/codemirror/codemirror.js"></script>
- <script type="text/javascript" src="libs/codemirror/python.js"></script>
- <script type="text/javascript" src="libs/codemirror/htmlmixed.js"></script>
- <script type="text/javascript" src="libs/codemirror/xml.js"></script>
- <script type="text/javascript" src="libs/knockout-3.4.0.js"></script>
- <script type="text/javascript" src="libs/stringify.js"></script>
- <!-- Summernote, a rich text editor -->
- <script type="text/javascript" src="libs/summernote/summernote.min.js"></script>
- <script type="text/javascript" src="libs/summernote/summernote-ext-hint.js"></script>
- <script type="text/javascript" src="libs/summernote/summernote-ext-video.js"></script>
- <!-- Blockly -->
- <!-- <script type="text/javascript" src="blockly/blockly_uncompressed.js"></script> -->
- <!-- <script type="text/javascript" src="blockly/blockly_compressed.js"></script>
- <script type="text/javascript" src="src/imported.js"></script>
- <script type="text/javascript" src="blockly/blocks_compressed.js"></script>
- <script type="text/javascript" src="src/python_to_blockly.js"></script>
- <script type="text/javascript" src="blockly/python_compressed.js"></script> -->
- <script type="text/javascript" src="blockly/blocks/python/head.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/citys.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/define_colors.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/blockly_compressed.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/blocks_compressed.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/python_compressed.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/blocks_microbit.min.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/blocks_mpython.min.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/python_microbit.min.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/python_mpython.min.js"></script>
- <script type="text/javascript" src="src/imported.js"></script>
- <script type="text/javascript" src="src/python_to_blockly.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/ai.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/iot.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/esp32.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/extension_module.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/mainwifi.js"></script>
- <script type="text/javascript" src="blockly/blocks/text.js"></script>
- <script type="text/javascript" src="blockly/blocks/utility.js"></script>
- <!-- <script type="text/javascript" src="blockly/generators/utility.js"></script> -->
- <!--
- <script type="text/javascript" src="blockly/blocks/math.js"></script>
- <script type="text/javascript" src="blockly/generators/python/math.js"></script>-->
- <script type="text/javascript" src="blockly/generators/python.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/time.js"></script>
- <script type="text/javascript" src="blockly/generators/python/time.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/mainwifi.js"></script>
- <script type="text/javascript" src="blockly/generators/python/mainwifi.js"></script>
- <script type="text/javascript" src="blockly/blocks/python/screen.js"></script>
- <script type="text/javascript" src="blockly/generators/python/screen.js"></script>
- <script type="text/javascript" src="blockly/msg/index.js"></script>
- <script type="text/javascript" src="src/blockly/FileSaver.js"></script>
- <script type="text/javascript" src="src/blockly/term.js"></script>
- <script type="text/javascript" src="src/blockly/web.js"></script>
- <script type="text/javascript" src="src/blockly/load.js"></script>
- <script type="text/javascript" src="src/blockly/Devices.js"></script>
- <!-- Skulpt -->
- <!-- <script type="text/javascript" src="skulpt/dist/skulpt.min.js"></script>
- <script type="text/javascript" src="skulpt/dist/skulpt-stdlib.js"></script> -->
- <!-- Source Code -->
- <script type="text/javascript" src="src/utilities.js"></script>
- <script type="text/javascript" src="src/python_errors.js"></script>
- <script type="text/javascript" src="src/ast_node_visitor.js"></script>
- <script type="text/javascript" src="src/abstract_interpreter.js"></script>
- <script type="text/javascript" src="src/pytifa.js"></script>
- <script type="text/javascript" src="src/abstract_interpreter_definitions.js"></script>
- <script type="text/javascript" src="src/dialog.js"></script>
- <script type="text/javascript" src="src/storage.js"></script>
- <!-- <script type="text/javascript" src="src/printer.js"></script> -->
- <script type="text/javascript" src="src/interface.js"></script>
- <script type="text/javascript" src="src/server.js"></script>
- <script type="text/javascript" src="src/english.js"></script>
- <script type="text/javascript" src="src/corgis.js"></script>
- <script type="text/javascript" src="src/history.js"></script>
- <script type="text/javascript" src="src/presentation.js"></script>
- <script type="text/javascript" src="src/editor.js"></script>
- <!-- <script type="text/javascript" src="src/feedback.js"></script> -->
- <script type="text/javascript" src="src/toolbar.js"></script>
- <script type="text/javascript" src="src/sk_mod_instructor_extended.js"></script>
- <script type="text/javascript" src="src/sk_mod_instructor.js"></script>
- <!-- <script type="text/javascript" src="src/engine.js"></script> -->
- <script type="text/javascript" src="src/main.js"></script>
- <!-- FileSaver JS -->
- <script src="src/js_libs/FileSaver.min.js"></script>
- <!-- JS Diff -->
- <script src="src/js_libs/diff.js"></script>
- <!-- Prettify JS -->
- <script src="src/prettify/prettify.js"></script>
- <!-- Lazyload JS -->
- <script src="src/lazysize/lazysizes.min.js"></script>
- <!-- Socket.io -->
- <!-- <script src="src/socket.io-client/dist/socket.io.js"></script> -->
- <!-- clipboard -->
- <!-- <script src="src/clipboard/dist/clipboard.js"></script> -->
- <!-- Event Proxy -->
- <script type="text/javascript" src="src/blockly/eventproxy.js"></script>
- <!-- jQuery and Materialize JS -->
- <!-- <script src="js_libs/jquery-2.1.3.min.js"></script> -->
- <script src="materialize/js/materialize.js"></script>
- <!-- echarts -->
- <script src="./js_libs/echarts.min.js"></script>
- <!-- platform.js -->
- <!-- Desktop version of Ardublockly JS, needs to be loaded first. -->
- <!-- <script src="ardublockly_desktop.js"></script> -->
- <script type="text/javascript" src="src/webcam.min.js"></script>
- <script src="src/platformjs/platform.js"></script>
- <script src="ardublockly_lang.js"></script>
- <script src="ardublockly_toolbox.js"></script>
- <!-- <script src="ardublockly_blockly.js"></script> -->
- <script src="ardublocklyserver_ajax.js"></script>
- <script type="text/javascript" src="src/blockly/ardublockly_desktop.js"></script>
- <script type="text/javascript" src="src/blockly/ardublockly_design.js"></script>
- <script type="text/javascript" src="src/blockly/ardublockly_blockly.js"></script>
- <script type="text/javascript" src="src/blockly/ardublockly.js"></script>
- <script type="text/javascript" src="src/blockly/cocoblockly.js"></script>
- <script src="src/blockly/account.js"></script>
- <script src="src/blockly/socket.js"></script>
- <script src="src/blockly/machine.js"></script>
- <script type="text/javascript" src="./libs/clipboard.min.js"></script>
- <script type="text/javascript" src="./index.js"></script>
- <script type="text/javaScript" src="src/webble.js"></script>
- <script type="text/javascript" src="./JSZip.js"></script>
- <script type="text/javascript" src="./crc32.js"></script>
- </head>
- <body>
- <div id="white-box">
- <div id="preloader">
- <img src="./images/preloader.gif">
- <h4 style="margin:0;">Loading...</h4>
- </div>
- </div>
- <!-- modal -->
- <!-- <div class="modals">
- <span></span>
- </div> -->
- <div id="container" class="noselecttext">
- <!-- Horizontal Navigation bar -->
- <nav id="nav_" class="nav-fixed arduino_teal" style="overflow:hidden">
- <div id="nav_shadow" class="shadowbox" style="display:none;"></div>
- <div class="nav-wrapper"
- style="min-width: 1200px; padding:0px 10px;display: flex;justify-content: space-between;position:static;">
- <ul id="nav-mobile" class="" style="display: inline-block;">
- <li style="font-size: 30px;" class="nav_logo">
- <!-- <img style="height: 40px;margin-top: 10px;" class="left nav-icon" src="./icons/logo.png"> -->
- <img style="height: 40px;margin-top: 10px;" class="left nav-icon" src="./icons/logo1.png">
- </li>
- <li>
- <span class="vertical-separator"></span>
- </li>
- <!-- help button -->
- <li>
- <input id="sketch_name" placeholder="My Project Name"
- class="sketch_name translatable_sketch_name"
- style="background: rgba(0,0,0,0.4);padding: 4px 10px 4px 5px;border-radius: 20px;font-style: inherit;"
- type="text">
- </li>
- <li>
- <button id="downloadbutton" class="translatable_sketch_save"
- style="color: #2c4fcd;font-weight: 700;border-radius: 30px;background: #fff;border: none;margin: 0 0 0 15px;font-size: 14px;padding: 8px 14px;">Save</button>
- </li>
- <li id="cloudBtn-shares">
- <i class="material-icons" style="margin-left:5px;cursor: pointer;">share</i>
- </li>
- <i id="workspace_screenshot" class="material-icons sketch_name_icon right"
- style="margin-left:5px;cursor: pointer;">photo_camera</i>
- <i id="button_delete" class="material-icons sketch_name_icon right"
- style="margin-left:5px;cursor: pointer;">delete</i>
- </ul>
- <!-- <i id="workspace_screenshot" class="material-icons sketch_name_icon right"
- style="margin-left:5px;cursor: pointer;">photo_camera</i> -->
- <!-- <i class="material-icons sketch_name_icon right">create</i> -->
- <!-- <input id="sketch_name" class="sketch_name" type="text"> -->
- <input id="sketch_name_w" class="sketch_name" type="text" name="wifi" style="display:none">
- </span>
- <!-- </a> -->
- <!-- Horizontal Navbar links only shown on large resolutions -->
- <ul id="nav-mobile" class="right nav-mobile-right" style="display: flex;">
- <!-- AI Demo -->
- <!-- <li>
- <a id="AI_experience" class='dropdown-button lang_resize' data-activates='AI_experience_dropdown' style="position:relative">
- <span class="translatable_AI_experience">AI</span>
- <img class="left nav-icon" src="./icons/nav-ai-experience.png">
- </a>
- <ul id='AI_experience_dropdown' class='dropdown-content' style="top:62px">
- <li id="webcam" class='modal-trigger' href="#webcam_capture_modal">
- <span class="translatable_AI_emotion">Emotion Recognotion</span>
- </li>
- <li class="divider"></li>
- <li id="voice-input" class='modal-trigger' href="#voice_input_modal">
- <span class="translatable_AI_speech">Speech Recognotion</span>
- </li>
- </ul>
- </li> -->
- <!-- help button -->
- <li style="display: none;">
- <a id="help" style="display:none" class='dropdown-button lang_resize'
- data-activates="help_board" style="position:relative">
- <!-- <i class="material-icons left" style="margin-right: 5px;font-size: 34px;">help_outline</i> -->
- <span class="translatable_help_board">Help</span>
- <img class="left nav-icon" src="./icons/nav_help.png">
- </a>
- <ul id='help_board' class='dropdown-content' style="top:62px">
- <li id="">
- <a href="http://help.cocorobo.cn/" target="_blank">
- <span class="translatable_tutorial">Tutorial</span>
- </a>
- </li>
- <!-- <li class="divider"></li>
- <li>
- <a href="#tourmode" class="modal-trigger">
- <span class="translatable_tour">Start Tour</span>
- </a>
- </li> -->
- <li class="divider"></li>
- <!-- <li>
- <a href="#env_detect" class="modal-trigger">
- <span class="translatable_env_detect">Environment Detect</span>
- </a>
- </li> -->
- <li class="divider"></li>
- <li>
- <a href="http://help.cocorobo.cn/#/changelog" target="_blank">
- <span class="translatable_changelog">Change Log</span>
- </a>
- </li>
- </ul>
- </li>
- <li style="display:none;">
- <select onchange="selectmode(this)" id="mode"
- 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;">
- <!-- <option value="" style="color: #000;">Main Mode</option> -->
- <option value="" style="color: #000;">AI Mode</option>
- </select>
- </li>
- <li class="Mode_select_box">
- <div class="ModeSelectBox">
- <!-- <div class="ModeSelect" style="width: 100%;"> -->
- <div class="ModeSelect" style="width: 100%;">
- <div style="font-size: 0.9rem;">样例 </div>
- <i class="down"
- style="position: relative;top: -34px;left: 20px;float: right;display: none;"></i>
- <div class="downbox ModeBox downbox-style">
- <div style="display: none;">
- <div>人工智能教材程序</div>
- <i class="downboxdown"></i>
- <div class="Hardware2 HarxA" style="height:auto;top:-35px">
- <div class="Hardware9">
- <div>三年级</div>
- <i class="downboxdown"></i>
- <ul class="Hardware4 HarxA">
- <li>录制语音指令</li>
- <li>语音识别台灯</li>
- <!-- <li>人脸识别防盗门</li> -->
- </ul>
- </div>
- <div class="Hardware4n">
- <div>四年级</div>
- <i class="downboxdown"></i>
- <ul class="Hardware4 HarxA">
- <li>人臉檢測</li>
- <li>物體識別進階</li>
- </ul>
- </div>
- <div class="Hardware5">
- <div>五年级</div>
- <i class="downboxdown"></i>
- <ul class="Hardware4 HarxA">
- <li>录制语音指令</li>
- <li>智能窗帘</li>
- <li>水果采摘机器人</li>
- <li>智能质检机器人</li>
- </ul>
- </div>
- <div class="Hardware6">
- <div>六年级</div>
- <i class="downboxdown"></i>
- <ul class="Hardware4 HarxA">
- <li>智能交通信号灯</li>
- <li>导盲项链</li>
- <li>二维码包裹分拣机器人</li>
- <li>无人驾驶循环小车</li>
- </ul>
- </div>
- <div class="Hardware7">
- <div>七年级</div>
- <i class="downboxdown"></i>
- <ul class="Hardware4 HarxA">
- <li>人脸辨识电子警察</li>
- </ul>
- </div>
- <div class="Hardware8">
- <div>八年级</div>
- <i class="downboxdown"></i>
- <ul class="Hardware4 HarxA">
- <li>支付台</li>
- </ul>
- </div>
- </div>
- </div>
- <div style="display: none;">
- <div>IoT 模块基础案例</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA">
- <li>侧边按键控制蜂鸣器</li>
- <li> 侧边按键控制开关 LED</li>
- <li> 触摸区域控制 LED</li>
- <li> 蜂鸣器警报</li>
- <li> 黑暗环境感应光照灯</li>
- <li> 倾斜方向感应 LED</li>
- <li> 湿度报警器</li>
- <li> 摇晃感应 LED</li>
- <li> LED 显示光线强度值</li>
- </ul>
- </div>
- <div style="display: none;">
- <div>IoT 模块扩展功能案例</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA">
- <li>使用 LED 灯屏</li>
- <li>使用电机驱动模块</li>
- <li>使用游戏手柄 + LED 灯屏</li>
- <li>使用游戏手柄 + 屏幕模块</li>
- <li>在扩展模块上控制舵机</li>
- <li>屏幕显示Hello World</li>
- <li>屏幕绘制线条动画</li>
- <li>按键控制屏幕直线转动</li>
- <li>按键控制颜色切换</li>
- <li>计步器</li>
- <li>计步器+LED 灯屏</li>
- <li>使用蓝牙发送数据</li>
- <li>屏幕显示蓝牙接收的数据</li>
- </ul>
- </div>
- <div style="display: none;">
- <div>IoT 模块联网案例</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA" style="top: calc(50% - 50px);">
- <li>按键发送光照数据至 CocoCloud</li>
- <li>按键发送环境数据至 IFTTT</li>
- <li>按键获取光照数据并根据条件亮灯</li>
- <li>定时发送环境数据至 CocoCloud</li>
- <li>定时接收环境数据并根据条件亮灯</li>
- <li>建立 WiFi 热点并显示连接设备数量</li>
- <li style="display: none;">局域网环境数据存储 - 服务器端</li>
- <li style="display: none;">局域网环境数据获取 - 客户端</li>
- <li>连接 WiFi 网络</li>
- <li style="display: none;">模块间按钮状态存储 - 服务端</li>
- <li style="display: none;">模块间按钮状态接收 - 客户端</li>
- <li style="display: none;">模块间进行 WebSocket 实时通信 - 发送端</li>
- <li style="display: none;">模块间进行 WebSocket 实时通信 - 接收端</li>
- <li>同步网络时间</li>
- <li>数字手表显示实时时间</li>
- </ul>
- </div>
- <div style="display: none;">
- <div>IoT工作坊上</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA" style="top: calc(50% - 30px)">
- <li>01 点亮正中间的LED灯</li>
- <li>02 点亮所有LED灯</li>
- <li>03 流水灯</li>
- <li>04 蜂鸣器警报</li>
- <li>05 8-bit音乐</li>
- <li>06 串口通讯:按钮开关</li>
- <li>07 串口通讯:触摸开关</li>
- <li>08 按钮开关蜂鸣器</li>
- <li>09 触摸开关灯</li>
- <li>10 补光装置</li>
- <li>11 湿度报警器</li>
- </ul>
- </div>
- <div style="display: none;">
- <div>IoT工作坊下</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA" style="top: calc(50% - 120px)">
- <li>12 晃晃灯</li>
- <!-- <li>13 连接Wi-Fi</li> -->
- <li>14 连接Wi-Fi并显示连接状态</li>
- <li>15 建立热点并显示已连接的设备数</li>
- <li>16 亮度数据上传与下载</li>
- <li>17 舵机来回摆动</li>
- <li>19 舵机定时摆动</li>
- <li>20 按键控制舵机</li>
- <li>18 门(人脸识别)</li>
- <li>体验 iot-机械车(语音控制)</li>
- <li>体验 iot-机械人(陀螺仪)</li>
- <li>体验 iot-机械人(姿态识别)</li>
- <li>体验 iot-台灯(语音控制)</li>
- </ul>
- </div>
- <div style="display: none;">
- <div>AI 模块机器学习案例</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA">
- <li>人脸辨识智能门</li>
- <li>垃圾分类识别(香港版)</li>
- <li>人脸检测</li>
- <li>物体识别</li>
- <li>人脸检测</li>
- <li>物体识别</li>
- <li>语音录制</li>
- <li>语音识别</li>
- <li>MNIST 手写数字识别</li>
- </ul>
- </div>
- <div style="display: none;">
- <div>AI 模块基础案例</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA">
- <li>按键控制屏幕时针转动</li>
- <li style="display:none">按键控制图片改变颜色制式</li>
- <li style="display:none">按键控制图片进行反色变化</li>
- <li>按键控制颜色切换</li>
- <li>迷你相机</li>
- <li>屏幕方向旋转</li>
- <li>屏幕绘制线条动画</li>
- </ul>
- </div>
- <div style="display: none;">
- <div>AI 模块扩展功能案例</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA">
- <li>使用 LED 灯屏</li>
- <li>使用电机驱动模块</li>
- <li>使用游戏手柄 + 屏幕模块</li>
- <li>在扩展模块上控制舵机</li>
- <li>贪吃蛇</li>
- </ul>
- </div>
- <div style="display: none;">
- <div>AI AI 模块视觉案例</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA">
- <li>按键改变相机图像的亮度</li>
- <li>区域颜色分析</li>
- <li>识别 QR 二维码</li>
- <li>寻线(黑线)</li>
- <li>寻找绿色的圆形</li>
- <li>寻找绿色区域并进行追踪</li>
- </ul>
- </div>
- <div style="display: none;">
- <div>AI AI 模块影音案例</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA">
- <li>播放录制的视频档案</li>
- <li>播放音乐</li>
- <li>录制摄像头画面并保存</li>
- <li>麦克风声音频谱分析</li>
- </ul>
- </div>
- <div style="display: none;">
- <div>AI基础篇案例上</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA">
- <li>Hello World</li>
- <li>螢幕顯示 Hello World</li>
- <li>畫布應用</li>
- <li>迷你相機</li>
- <li>簡易物體識別</li>
- </ul>
- </div>
- <div style="display: none;">
- <div>AI 基础篇案例下</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA" style="top: calc(50% - 50px)">
- <li>物體識別進階</li>
- <li>人臉檢測</li>
- <li>顏色識別</li>
- <li>形狀識別(圓形)</li>
- <li>形狀識別(矩形)</li>
- <li>音頻分析</li>
- </ul>
- </div>
- <div style="display: none;">
- <div>AI 扩展使用案例</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA" style="top: calc(50% - 80px)">
- <li>私服马达</li>
- <li>超声波感测器</li>
- <!-- <li>测距仪</li> -->
- <li>灯带</li>
- <li id="AI_Workshop_III_ex5_Microbit">Microbit</li>
- <li id="AI_Workshop_III_ex6_MicrobitFace">人脸检测</li>
- <li>电动门</li>
- </ul>
- </div>
- <div style="display: none;">
- <div>AI 垃圾分类</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA" style="top: calc(50% - 80px)">
- <li>私服马达</li>
- <li>超声波感测器</li>
- <li>电动门</li>
- </ul>
- </div>
- <div style="display: none;">
- <div>AI 自动驾驶</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA" style="top: calc(50% - 80px)">
- <li>第一場-路標識別(香港標識)</li>
- <li>第二場-巡線(雙線)</li>
- <li>第二場-巡線(單線-靠左行駛)</li>
- <li>第一場-路標識別(香港標識)</li>
- </ul>
- </div>
- <div style="display: none;">
- <div>串口通讯</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA" style="top: calc(50% - 90px)">
- <li>IoT串口发送光线强度值</li>
- <li>AI屏幕显示串口光线强度值(配合1使用)</li>
- <li>AI串口发送人脸检测结果</li>
- <li>IoT屏幕显示串口人脸检测结果(配合3使用)</li>
- </ul>
- </div>
- <div>
- <div>机器狗案例</div>
- <i class="downboxdown"></i>
- <ul class="Hardware2 HarxA">
- <li>机器狗-人脸检测</li>
- <li>机器狗-人脸追踪</li>
- <li>机器狗-面部识别</li>
- <li>机器狗-图片分类</li>
- <li>机器狗-普通话识别</li>
- <li>机器狗-人体跟随</li>
- <li>机器狗-人体跟随</li>
- <li>机器狗-表情显示</li>
- <li>机器狗-音频分析</li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </li>
- <li style="display: none;">
- <div style="line-height: 30px;" class="selectMode_input">
- <!-- <input type="text" value="IoT Module" id="iot_modules" readonly
- class="selectMode_input browser-default" style="font-size: 0.9rem;"> -->
- <span class="">V 831</span>
- <i class="down" style="position: relative;top: 12px;float: right;"></i>
- <div class="downbox MouduleBox">
- <div>
- <!-- <div class="translatable_hardware_mode">Graphical Mode</div>
- <i class="downboxdown"></i> -->
- <ul class="Hardware2">
- <!-- <li class="translatable_iot_module">IoT Module</li> -->
- <li class="translatable_ai_module">A.I. Module</li>
- <li class="translatable_cloud_mode" style="display: none;"
- onclick='toHref("//python-blockly.cocorobo.cn")'>Cloud Mode</li>
- <li class="translatable_javascript_mode" style="display: none;"
- onclick='toHref("//ai-blockly.cocorobo.cn")'>JavaScript Mode</li>
- </ul>
- </div>
- <div class="aaa" style="display: none;">
- <div class="translatable_code_mode">Code Mode</div>
- <i class="downboxdown" style="top: 41px;"></i>
- <ul class="Hardware2" style="top: 44px;">
- <li class="translatable_iot_module" onclick='toHref_own("/python?id=iot")'>IoT
- Module</li>
- <li class="translatable_ai_module" onclick='toHref_own("/python?id=ai")'>A.I.
- Module
- </li>
- <!-- <li class="translatable_cloud_mode"
- onclick='toHref("//python-blockly.cocorobo.cn")'>Cloud Mode</li> -->
- </ul>
- </div>
- <!-- <div><a href="//python-blockly.cocorobo.hk" style="color: #424242 !important;"
- class="translatable_cloud_mode">Cloud
- Mode</a></div>
- <div><a href="//ai-blockly.cocorobo.hk" style="color: #424242 !important;"
- class="translatable_javascript_mode">JavaScript Mode</a></div> -->
- </div>
- </div>
- </li>
- <li>
- <a id="model_download_modal" style="position:relative; display: none;">
- <!-- <i class="material-icons left" style="margin-right: 5px;font-size: 34px;">help_outline</i> -->
- <span class="translatable_models">Help</span>
- <img class="left nav-icon" src="./icons/nav_models.png">
- </a>
- <!-- <a id="nav_devices" class='dropdown-button lang_resize' style="position:relative">
- <span class="translatable_devices">Devices</span>
- <img class="left nav-icon" src="./icons/Devices.png">
- </a> -->
- </li>
- <!-- App Center demo -->
- <li>
- <a id="app_center_title" href="#app_center_modal" class="modal-trigger lang_resize"
- style="position:relative">
- <span id="app_center_title_demo">
- <span class="translatable_labscenter">Labs</span>
- <img class="left nav-icon" src="./icons/cocoblockly-navbar_labs-icon.png">
- </span>
- </a>
- </li>
- <li>
- <a id="nav_learn" class='dropdown-button lang_resize' data-activates="learn_board"
- style="position:relative">
- <!-- <i class="material-icons left" style="margin-right: 5px;font-size: 34px;">help_outline</i> -->
- <span class="translatable_learn_board">Files</span>
- <img class="left nav-icon" src="./icons/learn_nav_icon.png">
- </a>
- <ul id='learn_board' class='dropdown-content'>
- <li>
- <a href="//edu.cocorobo.cn/" target="_blank">
- <span class="translatable_cocoedu">Education Platform</span>
- </a>
- </li>
- <li class="divider"></li>
- <li>
- <a href="//xunlian.cocorobo.cn" target="_blank">
- <span class="translatable_learn_training">AI Training</span>
- </a>
- </li>
- <li class="divider"></li>
- <li>
- <a href="//biaoji.cocorobo.cn/" target="_blank">
- <span class="translatable_learn_labeling">AI Labeling</span>
- </a>
- </li>
- <li class="divider"></li>
- <li>
- <a href="//aihub.cocorobo.cn" target="_blank">
- <span class="translatable_learn_principle">Learn AI: Theory</span>
- </a>
- </li>
- <li class="divider"></li>
- <li>
- <a href="//aihub.cocorobo.cn/vision" target="_blank">
- <span class="translatable_learn_vision">Learn AI: Vision</span>
- </a>
- </li>
- <li class="divider"></li>
- <li>
- <a href="//aihub.cocorobo.cn/speech" target="_blank">
- <span class="translatable_learn_speech">Learn AI: Speech</span>
- </a>
- </li>
- <li class="divider"></li>
- <li>
- <a href="//aihub.cocorobo.cn/text" target="_blank">
- <span class="translatable_learn_text">Learn AI: Text</span>
- </a>
- </li>
- <li class="divider"></li>
- <li>
- <a href="//aihub.cocorobo.cn/art" target="_blank">
- <span class="translatable_learn_art">Learn AI: Art</span>
- </a>
- </li>
- </ul>
- </li>
- <li style=" display: none;">
- <!-- target="_blank" -->
- <a id="help" style="display: none;" class='dropdown-button lang_resize'
- href="//x.help.cocorobo.cn" style="position:relative">
- <!-- <i class="material-icons left" style="margin-right: 5px;font-size: 34px;">help_outline</i> -->
- <span class="translatable_help_board">Help</span>
- <img class="left nav-icon" src="./icons/nav_help.png">
- </a>
- </li>
- <!-- <li>
- <a target="_blank" id="nav_journal" class='dropdown-button lang_resize' href="/md.html"
- style="position:relative">
- <span class="translatable_journal">日志</span>
- <img class="left nav-icon" src="./icons/news.png">
- </a>
- </li> -->
- <li style="display: none;">
- <a id="help" target="_blank" href="//x-help.cocorobo.cn" style="position:relative">
- <!-- <i class="material-icons left" style="margin-right: 5px;font-size: 34px;">help_outline</i> -->
- <span class="translatable_help_board">Help</span>
- <img class="left nav-icon" src="./icons/nav_help.png">
- </a>
- <!-- <a id="nav_devices" class='dropdown-button lang_resize' style="position:relative">
- <span class="translatable_devices">Devices</span>
- <img class="left nav-icon" src="./icons/Devices.png">
- </a> -->
- </li>
- <li style="display: block;" class="local_storage">
- <a id="local_storage" class='dropdown-button lang_resize' data-activates='local_saveOrOpen'
- style="position:relative">
- <span class="translatable_storage">Files</span>
- <img class="left nav-icon" src="./icons/local_storage.png">
- </a>
- <ul id='local_saveOrOpen' class='dropdown-content' style="top:62px">
- <li id="button_cloud" class='modal-trigger' href="#cloud_storage_modal">
- <span class="translatable_cloud_storage">Cloud</span>
- </li>
- <li class="divider"></li>
- <li id="button_load">
- <span class="translatable_import">Import</span>
- </li>
- <li class="divider"></li>
- <li id="button_save">
- <span class="translatable_export">Export</span>
- </li>
- </ul>
- <div id="fileImport" class="btn" style="display:none;">
- <input type="file" accept=".py">
- </div>
- <div id="xmlFileImport" class="btn" style="display:none;">
- <input type="file" accept=".xml">
- </div>
- <div id="pyFileImport" class="btn" style="display:none;">
- <input type="file" accept=".py">
- </div>
- <div id="allFileImport" class="btn" style="display:none;">
- <input type="file">
- </div>
- </li>
- <li class="nav_language">
- <a id="nav_language" class='dropdown-button lang_resize' data-activates='languages'
- style="position:relative">
- <span class="translatable_language">Language</span>
- <img class="left nav-icon" src="./icons/language2.png">
- </a>
- <ul id='languages' class='dropdown-content active'>
- <li onclick="changeLanguage('en')">
- <a>English</a>
- </li>
- <li class="divider"></li>
- <li onclick="changeLanguage('zh-hant')">
- <a>繁体中文</a>
- </li>
- <li class="divider"></li>
- <li onclick="changeLanguage('zh-hans')">
- <a>简体中文</a>
- </li>
- </ul>
- </li>
- <!-- <li>
- <span class="vertical-separator"></span>
- </li> -->
- <li>
- <a id="nav_account" href="#login_modal" class="modal-trigger lang_resize"
- style="position:relative"
- onclick="$('#api-key').html(''); $('#api-key').html($('#cloud_events').val()); document.getElementById('api-key').value = $('#cloud_events').val();">
- <span id="account_alias"></span>
- <button id="account_loginTitle" class="translatable_login_title"
- 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>
- <!-- <span id="account_loginTitle" class="translatable_login_title">Login</span> -->
- <img class="nav-icon2 left" src="./icons/user.png">
- </a>
- </li>
- <!--<li>
- <a id="back_home" class="lang_resize" target="_blank" href="//cocorobo.cn/online/"
- style="position:relative">
- <img class="nav-icon2" src="./icons/home_icon.png">
- </a>
- </li> -->
- </ul>
- </div>
- </nav>
- <!-- shadow -->
- <div id="main_shadow" class="shadowbox" style="display:none;">
- <div id="shadow_content" class="shadow_container">
- <div class="shadow_top">
- <img src="./images/drag_import.png" style="width:200px">
- <p class="translatable_drag_import">Drag and drop your file to here</p>
- </div>
- </div>
- </div>
- <!-- Content -->
- <div id="main_content" style=" width:100%;">
- <div id="term" style=" width:100%; height:70%;display:none">
- </div>
- <div style="height:100%;" id="blockpy-div">
- <div>
- <div id='blockpy-content' style="display: flex;width: 100vw;height: 100%;">
- <div id="blocks_content" class="blockpy-editor" style="width:65%">
- <div class="white blockpy-blocks blockpy-editor-menu">
- <span onclick="mobileSwitchMode('block')"
- class="mobileSwitch btn translatable_console_mode"
- style="display: none;">代码模式</span>
- <img class="fullscreenIcon" src="./images/icon-fullscreen.svg">
- <img class="fullscreenIcon hidden" src="./images/icon-fullscreen-exit.svg">
- <div class='blockly-div' style="width:100%;height:100%;"></div>
- </div>
- </div>
- <p id="left_move_right"></p>
- <div id='sss' style="display:block;overflow: hidden;width: 35%;min-width: 510px;">
- <span onclick="mobileSwitchMode('python')"
- class="mobileSwitch btn translatable_hardware_mode" style="display: none;">积木模式</span>
- <div id="py-editor" class="blockpy-editor card-panel" style="position: relative;">
- <div class="card-header"
- style='position:relative;height: 60px;line-height: 60px;background: #f1f2f5; border-bottom: unset;'>
- <!--<span class="header-icon">< ></span>--> <span
- onclick="serialSwich('python_SourceCode')" id="python_SourceCode"
- class="header-text translate-code translatable_pythonSourceCode switch_box switch_select">Python
- Source Code</span>
- <span id="Serial_Interaction" onclick="serialSwich('Serial_Interaction')"
- class="header-text translate-code translatable_Serial_Interaction switch_box1 switch_box">串口交互窗</span>
- <span id="serial_plotter"
- class="translatable_serial_plotter header-text translate-code switch_box1 switch_box"
- onclick="serialSwich('serial_plotter')">The
- data to print
- </span>
- <span style="display: none;" id="help_documents"
- class="header-text translate-code switch_box1 switch_box"
- onclick="serialSwich('help_document')">帮助文档
- </span>
- <i id="repl_delete" class="material-icons sketch_name_icon"
- style="cursor: pointer;position: relative;top: 15px;display: none;">delete</i>
- <div class="editDiv" id="editDiv" style="top: 0;">
- <input type="checkbox" id="toggle-button">
- <!--label中的for跟input的id绑定。作用是在点击label时选中input或者取消选中input-->
- <label for="toggle-button" class="button-label">
- <span class="circle"></span>
- <span class="text on"></span>
- <span class="text off"></span>
- </label>
- </div>
- <a class="copy_code" style="position:absolute;top: 5px;right: 39px;"
- data-clipboard-action="copy">
- <img src="./images/icon-copy.png" style="width: 33px;margin-top:
- 7px;"> </a>
- <a class="blockpy-toolbar-download" style="position:absolute;top: 5px;right:
- 5px;"> <img src="./images/icon-downward.png"
- style="width: 33px;margin-top: 7px;"> </a>
- <a class="blockpy-toolbar-upload"
- style="display:none;position:absolute;top: 5px;right: 5px;">
- <img src="./images/upload.png" style="width: 33px;margin-top: 7px;"> </a>
- <img class="fullscreenIcon hidden" src="./images/icon-fullscreen.svg">
- <img class="fullscreenIcon hidden" src="./images/icon-fullscreen-exit.svg">
- </div>
- <div class="card-content" style="position:relative;overflow:auto;" id="python_box">
- <div class="blockpy-toolbar" style="position: relative;">
- <div class='blockpy-text blockpy-editor-menu'>
- <div class='blockpy-text-sidebar'></div>
- <textarea readonly class='codemirror-div language-python'></textarea>
- </div>
- <div class="edit" id="edit"></div>
- </div>
- </div>
- <div class="card-content hidden"
- style="height:100%;position:relative;overflow:hidden;background-color: #fff; color: #000;"
- id="repl_box">
- <div class="blockpy-toolbar" id="terminal"
- style="display:block;height: 99%;padding: 0 10px;background: #000;min-width:570px;">
- <iframe id="webadb_iframe" src="/ya-webadb/apps/demo/out/shell.html"
- frameborder="0" style="width: 100%;height: 100%;" scrolling="no"
- allow="camera *; fullscreen *;fullscreen 'src'">
- </iframe>
- <div id="wabadb_iframe_model" class="hidden"></div>
- </div>
- <!-- <div class="edit" id="edit"></div> -->
- </div>
- <div class="blockpy-toolbar hidden" id="serial_plotter_content"
- style="user-select: text;overflow-y: auto;">
- <div class="editDiv" id="editDiv"
- style="width: 100%;position: sticky;top: 0px;height: 100%;">
- <span class="translatable_serial_plotter serial-active"
- onclick="switchSerial('2')">终端显示</span>
- <span class="translatable_image_transmission"
- onclick="switchSerial('1')">图传</span>
- <div class="editDiv" id="isImageTransmission"
- style="top: 3px;left: 205px;display: none;">
- <!-- <span class="translatable_editing">Enable Editing</span>
- <span style="display: none;" class="translatable_close_editing">Close
- Editing</span> -->
- <input type="checkbox" id="toggle-button1">
- <!--label中的for跟input的id绑定。作用是在点击label时选中input或者取消选中input-->
- <label for="toggle-button1" class="button-label">
- <span class="circle"></span>
- <span class="text on"></span>
- <span class="text off"></span>
- </label>
- </div>
- <div id="repl_box_content"
- style="height: calc(100% - 30px);background: rgb(255, 255, 255);overflow-y: auto;">
- </div>
- <div style="width: 100%;height: calc(100% - 30px);display: none;overflow-y: auto;background: rgb(255, 255, 255);position: relative;"
- id="image_transmission">
- <!-- <img id="image_transmission_canvas" style="width:100%;"> -->
- <canvas id="image_transmission_canvas"
- style="width:100%;aspect-ratio: 4 / 3;">
- </div>
- </div>
- </div>
- <div class="card-content hidden" id="help_document">
- 1、首先将板子和平台进行连接
- 2、成功连接后,点击运行上传或运行按钮(上传是将程序上传到我们的硬件中、运行是将程序在这个板子上面运行)
- 3、成功运行之后,会在板子上面显示 hello World
- </div>
- <!-- <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> -->
- </div>
- <p id="mouseMove"></p>
- <div id="mouseMove-bottom" class='blockpy-content-left card'
- style='display: block;margin-top:0px;background: #f8f8f8;height: 225px;position:relative;'>
- <div class="card-header" style='height: 60px;line-height: 60px;background: #f1f2f5;'>
- <!-- http://help.cocorobo.cn/#/getting-started/info target="_blank"-->
- <div style='float:right;'>
- <a class="header-link upload_instruction" style="display: none;" href="#"
- data-tooltip-id="61c522fa-be27-2a3e-1f2d-cde212348740">
- <img src="./icons/instruction.png">
- </a>
- <a id="plugin_download" style="display: none;" class="header-link"
- href="javaScript:(0)"
- data-tooltip-id="9e546554-688a-01c7-cde3-faaff99b557d"> <img
- src="./icons/plugin_download.png">
- <img id="plugin_download_new"
- style="position:absolute;height:10px;left:3px;top:0px;display:none;"
- src="./icons/plugin_download_new.png">
- </a>
- <a style="display: none;" href="#iframe" class="modal-trigger header-link"
- id="showIframe">
- <img src="./icons/firmware.png">
- </a>
- <a href="#qrCode" class="modal-trigger header-link" id="">
- <i id="QRCodeIcon" style="margin-top: 11px;"
- class="material-icons sketch_name_icon hidden">wifi</i>
- </a>
- <a href="javascript:;" id="updatePython" class="modal-trigger header-link"
- style="display: none;">
- <img src="./icons/加载.png">
- </a>
- <label class="hidden"><input type="checkbox" class="filled-in" />
- <span class="translatable_Adapter_fill_connected filled-in_nocheked"
- style="color: #26a69a;font-size: 17px;font-weight: 600;">Adapter is
- disconnected</span>
- </label>
- </div>
- <!--<span class="header-icon"><img style="width: 30px;margin: 8px 8px 8px 20px;" src="./images/zhixing.png"> </span>-->
- <span class="header-text translate-code translatable_title_device"
- style='font-weight: 800;font-size: 20px;margin-left: 5px;'>Device</span>
- <a href="#webadbIframeFile" id="message_file" class="modal-trigger"
- style="position: relative;top: 5px;display: none;">
- <i class="material-icons sketch_name_icon">create_new_folder</i>
- </a>
- <div style="display: inline-block;"><select class="select-connected "
- id="select-connected">
- <option class="select-connected translatable_select_connecteds"
- style="color: #000;">The
- cable to upload</option>
- <option style="color: #000;" class="translatable_no_select_connecteds">
- Wireless cable
- upload</option>
- <!-- <option style="color: #000;" class="translatable_catBluetoothContent">
- 蓝牙连接</option> -->
- </select></div>
- <!-- inline-block -->
- <div id="discnt_icon" style="display:inline-block;">
- <a href="#env_detect" class="modal-trigger">
- <img style="height:17px;margin-left:8px;transform:translateY(2px);"
- src="./icons/uploader_disconnect.png">
- </a>
- </div>
- <div id="cnt_icon" style="display:none;"><img
- style="height:17px;margin-left:8px;transform:translateY(2px);"
- src="./icons/uploader_connect.png"></div>
- <div id="webadbErro" style="display: none;">
- <i style="color: red;position: absolute;top: 17px;"
- class="material-icons sketch_name_icon hidden">error</i>
- </div>
- </div>
- <div class="card-content" style="padding:0px 0px;width:100%;">
- <div class="row" style="margin-bottom: 5px;">
- <div class="col s12"><img id="error-btn" class="activator"
- src="./icons/error.png">
- <span id="status_bar">
- <span id="status_txt"
- class="translatable_statusNotConn">模块已断开,请重新连接。</span>
- <!-- <span id="operation_status"
- class="">执行成功</span> -->
- </span>
- </div>
- </div>
- <div class="row">
- <div class="progress" style="margin:7px 0;">
- <div class="determinate blue" style="width:0%;"></div>
- </div>
- </div>
- <div class="row">
- <div class="col s8" style="display: flex;">
- <button id="webadb_connect" class="webadb_connect_class btn blue " disabled
- onclick="webadbConnect()">连接</button>
- <input id="IP" type="text" placeholder="请输入ip地址" style="display: none;">
- </div>
- <div class="col s4">
- <button id="webadb_add" style="width:100%"
- class="translatable_addDevice btn blue"
- onclick="addWebadb()">添加</button>
- </div>
- </div>
- <div class="row btn-network" style="display: none;">
- <div class="col s6" style="padding-right:1px;">
- <div class="select-wrapper initialized"><span class="caret">▼</span><input
- type="text" class="select-dropdown" id="select_dropdown"
- readonly="true"
- data-activates="select-options-eca84f35-6884-7dc4-9d8b-c14115abe698"
- value="检测不到连接端口">
- <ul id="select-options-eca84f35-6884-7dc4-9d8b-c14115abe698" class="dropdown-content
- select-dropdown ">
- <li class="disabled "><span>检测不到连接端口</span></li>
- </ul>
- <!-- <select id="ports"
- data-select-id="eca84f35-6884-7dc4-9d8b-c14115abe698"
- class="initialized">
- <option value="null" disabled="">检测不到连接端口</option>
- </select> -->
- </div>
- </div>
- </div>
- <div class="row btn-network hidden" style="display: none;">
- <div class="col cs6" style="padding-right:1px;width:100%">
- <div class="select-wrapper initialized" style='float: left;width: 45%;'>
- <input type="text" class="select-dropdown" data-activates=""
- id='ipAddress' placeholder="请输入ip地址">
- </div>
- <div style='display:inline-block'><a onclick='button_click();' class="waves-effect waves-light
- btn blue" style="margin-left: 0.5rem;margin-top: 4px;"><span
- id="ConnectBtn">Connect
- </spanbutton_click></a>
- </div>
- </div>
- </div>
- <div class="row rowTop" style="margin-top: 2%">
- <div id="uploader-btns" class="col s8" style="display: flex;">
- <div id="runCode" onclick="run_code()" style="width: 100%;"
- class="waves-effect waves-light btn blue disabled">
- <i style="cursor: pointer;" class="fa fa-play-circle"
- aria-hidden="true"></i>
- <span class="translatable_runCode"></span>
- </div>
- <!-- onclick="uploadpyfile()" -->
- <a id="uploadpy" class="waves-effect
- waves-light btn blue disabled"
- style="padding:0 0.5rem;width: 100%;margin-left:0.5rem;">
- <i style="cursor: pointer;" class="fa fa-upload" aria-hidden="true"></i>
- <span class="translatable_uploadFiles"></span>
- </a>
- <a id="backHome" onclick="backHome()" class="waves-effect
- waves-light btn blue disabled"
- style="margin-left:0.5rem;width: 100%;">
- <img src="./icons/stop.png" style="top:6px">
- <span class="translatable_resetMainUI">返回菜单</span>
- </a>
- <li id="changeRunCuploadFilesode"
- style="display: none;margin-right:0.5rem;display: none;">
- <ul id="localsssssaveOrOpen" class="dropdown-content active">
- <li style="padding: 14px 16px;" onclick="uploadfile(true)">
- <a>开机启动可视化菜单界面</a>
- </li>
- <li style="padding: 14px 16px;" onclick="uploadfile(false)">
- <a>开机运行上次的程序</a>
- </li>
- </ul>
- <a id="qiehuanbtn"
- class="qiehuanbtn btn dropdown-trigger blue lang_resize dropdown-button disabled"
- data-activates="localsssssaveOrOpen"><span
- id="runCuploadFilesode">更换启动模式</span><i
- class="material-icons right"
- style="margin-left: 0;">arrow_drop_down</i></a>
- </li>
- <!-- <a id="resetMainUIBtn" onclick="resetmainUI()" class="waves-effect
- waves-light btn blue disabled"
- style="margin-right:0.5rem;">
- <span id="resetMainUI">Reset Main UI</span></a> -->
- </div>
- <div class="col s4">
- <div class="systemBtn" style="display:flex;">
- <a id="resetDevice" onclick="systemCommand('reboot')" class="waves-effect
- waves-light btn blue disabled"
- style="width:100%;margin-right:0.5rem;"><span
- class="translatable_resetDevice">Reset
- Device</span></a>
- <a id="poweroff" onclick="systemCommand('poweroff')" class="waves-effect
- waves-light btn blue disabled" style="width:100%;"><span
- class="translatable_shutDown">关机</span></a>
- </div>
- </div>
- <a onclick="getmcnty()" class="waves-effect waves-light btn blue"
- style="display:none"><span id="gettype">Upload
- files</span></a>
- </div>
- </div>
- <div class="blockpy-toolbar btn-toolbar hidden" style="align-self:center;margin: 20px 8px 0;text-align:
- center;">
- <div class="btn-toolbar-title">直接将代码上传到电子模块中<div></div>
- </div>
- <div class="btn-toolbar-inputbox"><input type="text" name="webrepl_url" id="url"
- placeholder="Select a device"><input type="submit" id='button'
- value='Connect' onclick='button_click(); return false'></div>
- <div class="btn-toolbar-btnbox"></div>
- <!--<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>-->
- <!--<button class='waves-effect waves-light btn blue blockpy-run translate-execute'>UPLOAD</button>-->
- <!-- <button href="#aiymodal" class='waves-effect waves-light btn blue modal-trigger'>run on aiy</button> -->
- <!--<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>-->
- </div>
- <div class="blockpy-toolbar btn-toolbar hidden" style="align-self:center;margin: 20px 8px 0;text-align:
- center;">
- <div class="btn-toolbar-title2">直接将代码上传到电子模块中 <div></div>
- </div>
- <div class="btn-toolbar-inputbox2"><select>
- <option>检测不到连接端口</option>
- </select></div>
- </div>
- <div class="card-reveal grey darken-3 white-text" style="padding:8px 13px;">
- <div class="card-title" style="height:18%;margin-bottom:2px;">
- <span class="translatable_errmsg" style="font-weight:normal;">Error
- Message</span>
- <a id="err-copy" style="display:inline-block;margin-left:26px;"
- data-clipboard-action="copy" data-clipboard-target="#err-msg">
- <i class="material-icons right"
- style="color:#fff;font-size:18px;cursor:pointer;">content_copy</i>
- </a>
- <i class="material-icons right" style="cursor:pointer;">close</i>
- </div>
- <div style="width:100%;height:78%;">
- <textarea readonly id="err-msg"
- style="color:#fff;overflow:visible;font-family:consolas;font-size:14px;height:100%;resize:none;border:none;"></textarea>
- </div>
- </div>
- </div>
- <div class="card plugin_options options_hide">
- <div class="card-content">
- <div>
- <span id="downloadver" style="display:none">1.0.10</span>
- <a download=""
- href="//cocorobo.cn/downloads/CocoBlocklyXUploaderInstallerv1.0.17.pkg"
- target="_black"><img src="./icons/mac-icon.png">Mac </a>
- <a download=""
- href="//cocorobo.cn/downloads/CocoBlocklyXUploaderInstallerv1.0.17.exe"
- target="_black"><img src="./icons/windows-icon.png">Windows </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class='modal blockpy-popup'>
- <div class='modal-content' id='modal-message'>
- <div class='modal-header'>
- <h4 class='modal-title'>Dynamic Content</h4>
- </div>
- <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;">
- <div class='modal-body' style='width:100%;min-height:200px;'> </div>
- </div>
- <div class='modal-footer'> <button
- class='waves-effect waves-light btn blue modal-close translate-close'>close</button>
- </div>
- </div>
- <div id="aiymodal" class="modal">
- <div class="modal-content" height="50%">
- <h4>Run on AIY</h4>
- <p>This feature gives you the ability to run your AIY python code directly to the AIY Vision Kit
- or Voice Kit, follow the instruction below:</p>
- <div style="margin-top:30px;"> <b
- style="background-color:#fff; border-radius:25px;padding:
- 10px 20px; box-shadow: 1px 5px 23px -10px rgba(0,0,0,0.59);">Step 1</b> </div>
- <div style="margin-top:30px;"> Run the <b data-position="bottom" data-tooltip="I am a
- tooltip" class="tooltipped">AIY Helper</b>, <a id="AIYdownload"
- style="cursor:pointer;">Download</a> the python code to local, <br />make sure you are
- in the same network with the Google AIY Vision Kit. </div>
- <div style="margin-top:30px;"> <b
- style="background-color:#fff; border-radius:25px;padding:
- 10px 20px; box-shadow: 1px 5px 23px -10px rgba(0,0,0,0.59);">Step 2</b> </div>
- <div class="input-field col s9" style="margin-top:0px;"> Enter the IP Address of your Google
- AIY Kit: <div class="input-field inline"> <input id="aiyip_input" class="validate">
- </div> <a id="aiyModalRun" onclick="functionSSH();" style="margin-left:10px;"
- class="waves-effect blue waves-light btn">Run</a> <a id="aiyModalStop"
- onclick="functionSSHstop();" style="margin-left:10px;" class="waves-effect blue
- waves-light btn">Stop</a>
- <!-- <a id="aiyModalRun" style="margin-left:10px;" class="waves-effect blue waves-light btn">Run</a> -->
- <!-- <a id="aiyModalStop" style="margin-left:10px;" class="waves-effect blue waves-light btn">Stop</a> -->
- </div>
- <div id="modal_preload" style="display:none">
- <div style="position:relative;top:50%;transform:translateY(-50%);height:128px;width:128px;margin:0
- auto;">
- <div class="preloader-wrapper big active" style="top:0;left:0">
- <div class="spinner-layer spinner-blue-only">
- <div class="circle-clipper left">
- <div class="circle"></div>
- </div>
- <div class="gap-patch">
- <div class="circle"></div>
- </div>
- <div class="circle-clipper right">
- <div class="circle" style="border-width: 8px;"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="modal-footer" style="margin-top:-20px;"> <a href="#!" class="modal-close
- waves-effect waves-green btn-flat">Close</a> </div>
- </div>
- </div>
- <ul id="icon-tool" class="card-icon-area">
- <li class="card-icon active hidden" onclick="changeSideCard('code')">
- <i class="material-icons media">build</i>
- </li>
- <li class="card-icon hidden" onclick="changeSideCard('monitor')">
- <i class="material-icons ">search</i>
- </li>
- <!-- <li class="card-icon" onclick="changeSideCard('fullmode')">
- <i class="material-icons ">crop_free</i>
- </li> -->
- <li id="bar_python" class="card-icon">
- <a href="/python" target="_blank">
- <img class="bar-icon" src="./icons/python_icon.png" style="height: 30px;">
- </a>
- </li>
- <li id="lang-tool" class="card-icon">
- <i class="material-icons">translate</i>
- </li>
- <li id="apps_center" class="card-icon modal-trigger" href="#app_center_modal" style="display:none;">
- <img class="bar-icon Img-filter" src="./icons/cocoblockly-navbar_labs-icon.png">
- </li>
- <li id="bar_storage" class="card-icon">
- <img class="bar-icon" src="./icons/storage_icon-blockly-widget.png">
- </li>
- <!-- http://help.cocorobo.cn/ target="_blank"-->
- <li id="bar_help" style="display: none;" class="card-icon">
- <a href="//x-help.cocorobo.cn" target="_blank">
- <img class="bar-icon" src="./icons/help_icon-blockly-widget.png">
- </a>
- </li>
- <li id="bar_ai" class="card-icon" style="display: none;"
- onclick="$('.MouduleBox')[1].style.display = 'block';">
- <a href="#">
- <img class="bar-icon" src="./icons/AIicon.png">
- </a>
- </li>
- <!-- <li id="bar_t" class="card-icon" onclick="$('#ai_tt')[0].style.display = 'block';">
- <img class="bar-icon" src="./icons/l.png">
- </li> -->
- </ul>
- <a id='side-lang-trigger' class='dropdown-button' style="top:110px" data-activates='side-lang'></a>
- <!-- <div id='side-lang-trigger'>
- <a class='dropdown-trigger' data-target='side-lang'></a>
- </div> -->
- <ul id="side-lang" class='dropdown-content'>
- <li onclick="changeLanguage('en')">
- <a>English</a>
- </li>
- <li class="divider"></li>
- <li onclick="changeLanguage('zh-hant')">
- <a>繁体中文</a>
- </li>
- <li class="divider"></li>
- <li onclick="changeLanguage('zh-hans')">
- <a>简体中文</a>
- </li>
- </ul>
- <a id='side-storage-trigger' class='dropdown-button' style="top:200px" data-activates='side-storage'></a>
- <ul id='side-storage' class='dropdown-content'>
- <li class='modal-trigger' href="#cloud_storage_modal" style="display:none;">
- <span class="translatable_cloud_storage">Cloud</span>
- </li>
- <li class="divider"></li>
- <li class='modal-trigger' href="#Storage_import_modal">
- <span class="translatable_localimport">Import</span>
- </li>
- <li class="divider"></li>
- <li class='modal-trigger' href="#Storage_export_modal">
- <span class="translatable_localexport">Export</span>
- </li>
- </ul>
- <div id='side-file-trigger'>
- <a class='dropdown-trigger' data-target="side-file"></a>
- </div>
- <ul id='side-file' class='dropdown-content blockpy-toolbar'>
- <li id="side_button_load">
- <span class="translate_import">Import</span>
- </li>
- <li class="divider"></li>
- <li id="side_button_save">
- <span class="translate_export">Export</span>
- </li>
- </ul>
- </div>
- <footer id="footer">
- <div style="padding:0 1.5rem">
- <div>
- <span class="translatable_copyright_left" style="color:#fff;">可可乐博(深圳)科技有限公司 © </span>
- <span id="copyright_middle" style="color:#fff;"> 2023</span>
- <span class="translatable_copyright_right" style="color:#fff;">版权所有</span>
- </div>
- <div style="">
- <span id="update_log" style="cursor: pointer;">
- <span class="translatable_update_logs" style="color: #fff;">更新日志</span>
- <i class="material-icons sketch_name_icon"
- style="margin-left:5px;cursor: pointer;position: relative;top: 7px;">message</i>
- </span>
- <span class="vertical-separator" style="padding: 4px 6px 4px 6px;"></span>
- <span>
- <a id="help" target="_blank" href="//pi-help.cocorobo.cn" style="position:relative">
- <span class="translatable_help_board" style="color: #fff;">Help</span>
- <img class="nav-icon" src="./icons/nav_help.png"
- style="height: 20px;margin-top: 3px;position: relative;top: 3px;margin-right: 0;">
- </a>
- </span>
- <span class="vertical-separator" style="padding: 4px 6px 4px 6px;"></span>
- <span>CocoBlockly Pi</span>
- </div>
- </div>
- </footer>
- <!-- Wetech -->
- <div id="WeTech_Modal" class="modal WeTech_Modal modal_closes" style="width:730px">
- <div class="modal-content">
- <span class="modal_close" style="padding: 5px;"><i class="small material-icons"
- style="font-size: 1.5rem;">close</i></span>
- <h4 class="translatable_app_center_WeTech" style="width: 80%;">WeTech</h4>
- <div id="wetech_no_login" style="display: none;height: 300px;padding-top: 50px;padding-bottom: 50px;">
- <div style="text-align: center;">
- <div>
- <span id="weTech_user">用户名:</span>
- <input type="text" class="wetechUsername" id="WeTech_username" />
- </div>
- <div>
- <span id="weTech_pass">密 码:</span>
- <input type="password" class="wetechPassword" id="WeTech_password" />
- </div>
- </div>
- <div style="text-align: center;margin-top: 20px;">
- <button type="button" id="wetechLogin" class="loginbtn" onclick="wetech_login()"
- style="cursor: pointer;">登录</button>
- </div>
- <div style="text-align: center;margin-top: 16px;">
- <span style="color: red;" id="loginError"></span>
- </div>
- </div>
- <div id="wetech_logined" style="display: none;">
- <div style="display: flex;justify-content: flex-end;margin-bottom:10px;"><span id="usernames"
- style="margin-right: 10px;"></span><a style="cursor: pointer;"
- onclick="wetech_logout()"><span id="weTech_logout">退出</span></a></div>
- <div style="display: flex;justify-content: space-between;">
- <div style="width: 49%;border: 1px solid black;height: 300px;overflow-x: hidden;overflow-y: scroll;padding: 6px;padding-left: 10px;"
- id="gateway">
- </div>
- <div style="width: 49%;border: 1px solid black;height: 300px;overflow-x: hidden;overflow-y: scroll;padding: 6px;padding-left: 7px;"
- id="device">
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- app center modal -->
- <div id="app_center_modal" class="modal">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#app_center_modal').modal('close')">close</i></span>
- <!-- <div id="TM_login"></div> -->
- <div class="modal-content" style="padding: 20px;">
- <span class="modal_close" style="padding: 5px;">
- <i class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#app_center_modal').modal('close')">close</i>
- </span>
- <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Pi Labs</h4>
- <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
- <div class="row" style="text-align:left;">
- <div style="float:center;" class="col s3">
- <p class="translatable_app_center_all_categories" style="padding-bottom:0px;font-weight: bold">
- All
- Categories:</p>
- <div id="center_categories" class="collection ">
- <a name="center_ai"
- class="collection-item grey-text text-darken-4 active translatable_app_center_ai"
- onclick="ACCategorySelect(1)">Artificial Intelligence</a>
- <a name="center_iot"
- class="collection-item grey-text text-darken-4 translatable_app_center_iot"
- onclick="ACCategorySelect(2)">Internet of Things</a>
- <a name="center_robot"
- class="collection-item grey-text text-darken-4 translatable_app_center_robot"
- onclick="ACCategorySelect(3)">Robot Controller</a>
- <a name="center_science"
- class="collection-item grey-text text-darken-4 translatable_app_center_science"
- onclick="ACCategorySelect(4)">Science Experiements</a>
- <a name="center_game"
- class="collection-item grey-text text-darken-4 translatable_app_center_games"
- onclick="ACCategorySelect(5)">Games</a>
- <a name="center_arvr"
- class="collection-item grey-text text-darken-4 translatable_app_center_arvr"
- onclick="ACCategorySelect(6)">AR/VR</a>
- </div>
- </div>
- <div style="float:center;padding-top:5px; overflow-y:auto;max-height:400px" class="col s9">
- <div id="center_ai" class=" col s12">
- <h5 class="translatable_app_center_ai">Artificial Intelligence</h5>
- <ul class="tabs">
- <li class="tab col s2"><a href="#center_ai_vision"
- class="translatable_app_center_tab_vision active">Vision</a></li>
- <li class="tab col s2"><a href="#center_ai_speech"
- class="translatable_app_center_tab_speech">Speech</a></li>
- <li class="tab col s2"><a href="#center_ai_text"
- class="translatable_app_center_tab_text">Text</a></li>
- </ul>
- <div id="center_ai_vision" class="col s12">
- <div class="row">
- <div style="float:left;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="icons/AppCenter_ai_teachableMachine.jpg"
- style="border: solid 1.2px lightgray;">
- </div>
- <div class="card-content">
- <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
- <span id="ac-card-title"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_Teachabel_Machine">Teachable
- Machine</span>
- <p class="">
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- href="#setting_teacher">Enter</a>
- </p>
- </div>
- </div>
- </div>
- <div style="float:left;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <!-- <img class="activator" src="icons/app-center_ai_emotion.jpg"> -->
- <img class="" src="icons/AppCenter_ai_emotion.jpg">
- </div>
- <div class="card-content">
- <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
- <span id="ac-card-title emotion_recognition_enter_button"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_emotion_recognition">Emotion
- Recognition</span>
- <p class="">
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- href="#setting_webcam_capture_modal">Enter</a>
- </p>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div style="float:left;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <!-- <img class="activator" src="icons/app-center_ai_emotion.jpg"> -->
- <img class="" src="icons/AppCenter_ai_gesture_recognition.jpg">
- </div>
- <div class="card-content">
- <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
- <span id="ac-card-title emotion_recognition_enter_button"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_gesture_recognition translatable_gesturesTitle">Gesture
- Recognition</span>
- <p class="">
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- href="#setting_gesture_recog_modal">Enter</a>
- </p>
- </div>
- </div>
- </div>
- <div style="float:left;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <!-- <img class="activator" src="icons/app-center_ai_emotion.jpg"> -->
- <img class="" src="icons/object_recognition_header.jpg">
- </div>
- <div class="card-content">
- <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
- <span id="ac-card-title emotion_recognition_enter_button"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_object_recognition translatable_objectRecognition">Object
- Recognition</span>
- <p class="">
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- href="#setting_objectRecog">Enter</a>
- </p>
- </div>
- </div>
- </div>
- <div style="float:left;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <!-- <img class="activator" src="icons/app-center_ai_emotion.jpg"> -->
- <img class="" src="icons/posenet_recogition.png">
- </div>
- <div class="card-content">
- <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
- <span id="ac-card-title emotion_recognition_enter_button"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_object_recognition translatable_posenetRecognition">Posenet
- Recognition</span>
- <p class="">
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- href="#setting_posenetRecog">Enter</a>
- </p>
- </div>
- </div>
- </div>
- <div style="float:left;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="images/tm_with_pose.jpg"
- style="border: solid 1.2px lightgray;">
- </div>
- <div class="card-content">
- <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
- <span id="ac-card-title"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_Teachabel_Machine_posenet">Teachable
- Machine (with Pose Recognition)</span>
- <p class="">
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- href="#setting_teacher_ponsenet">Enter</a>
- </p>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div id="center_ai_speech" class="col s12">
- <div style="float:center;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="icons/AppCenter_ai_speech.jpg">
- </div>
- <div class="card-content">
- <!-- <span class="AI_card_content">COCOCLOUD APP</span> -->
- <span id="ac-card-title"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_speech_recognition">Speech
- Recognition</span>
- <p class="">
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- href="#setting_voice_input_modal">Enter</a>
- </p>
- </div>
- </div>
- </div>
- </div>
- <div id="center_ai_text" class="col s12">
- <div style="float:center;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="./icons/AppCenter_comingSoon.jpg">
- </div>
- <div class="card-content">
- <span id="ac-card-title"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_wait_to_come">Comming
- soon</span>
- <p class="">
- <!-- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button disabled" href="#">Enter</a> -->
- </p>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div id="center_iot" class=" col s12" style="display:none">
- <h5 class="translatable_app_center_iot">Internet of Things</h5>
- <!-- <div style="float:center;display: none;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="icons/WeTech.jpg">
- </div>
- <div class="card-content">
- <span id="ac-card-title"
- class="ac-card-title card-title activator grey-text text-darken-4 ">WeTech</span>
- <p class="">
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- onclick='openLabs("#WeTech_Modal")'>Enter</a>
- </p>
- </div>
- </div>
- </div> -->
- <div style="float:center;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="icons/AppCenter_iot_thingspeak.jpg">
- </div>
- <div class="card-content">
- <!-- <span class="AI_card_content">3RD-PARTY APP</span> -->
- <span id="ac-card-title"
- class="ac-card-title card-title activator grey-text text-darken-4 ">ThingSpeak</span>
- <p class="">
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- onclick='openLabs("//thingspeak.com")'>Enter</a>
- </p>
- </div>
- </div>
- </div>
- <div style="float:center;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="icons/AppCenter_iot_ifttt.jpg">
- </div>
- <div class="card-content">
- <!-- <span class="AI_card_content">3RD-PARTY APP</span> -->
- <span id="ac-card-title"
- class="ac-card-title card-title activator grey-text text-darken-4 ">IFTTT</span>
- <p class="">
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- onclick='openLabs("//ifttt.com/maker_webhooks")'>Enter</a>
- </p>
- </div>
- </div>
- </div>
- </div>
- <div id="center_robot" class=" col s12" style="display:none">
- <h5 class="translatable_app_center_robot">Robot Controller</h5>
- <div style="float:center;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="./icons/AppCenter_comingSoon.jpg">
- </div>
- <div class="card-content">
- <span id="ac-card-title"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_wait_to_come">Comming
- soon</span>
- <p class="">
- <!-- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button disabled" href="#">Enter</a> -->
- </p>
- </div>
- </div>
- </div>
- </div>
- <div id="center_science" class="col s12" style="display:none">
- <h5 class="translatable_app_center_science">Science Experiements</h5>
- <div style="float:center;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="./icons/AppCenter_comingSoon.jpg">
- </div>
- <div class="card-content">
- <span id="ac-card-title"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_wait_to_come">Comming
- soon</span>
- <p class="">
- <!-- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button disabled" href="#">Enter</a> -->
- </p>
- </div>
- </div>
- </div>
- </div>
- <div id="center_game" class=" col s12" style="display:none">
- <h5 class="translatable_app_center_games">Interactive Games</h5>
- <div style="float:center;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="./icons/AppCenter_game_floppy-bird.jpg">
- </div>
- <div class="card-content">
- <!-- <span class="AI_card_content">3RD-PARTY APP</span> -->
- <span id="ac-card-title"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_game_flappy">Floppy
- bird</span>
- <p class="">
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button "
- href="https://cocorobo.cn/demo/floppybird/" target="_blank">Enter</a>
- </p>
- </div>
- </div>
- </div>
- <div style="float:center;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="icons/AppCenter_game_space_lamb.jpg">
- </div>
- <div class="card-content">
- <!-- <span class="AI_card_content">3RD-PARTY APP</span> -->
- <span id="ac-card-title"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_game_space_lamb">Space
- Lamb</span>
- <p class="">
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button "
- onclick='openLabs("//spacelamb.12wave.com")'>Enter</a>
- </p>
- </div>
- </div>
- </div>
- </div>
- <div id="center_arvr" class=" col s12" style="display:none">
- <h5 class="translatable_app_center_arvr">AR/VR</h5>
- <div style="float:center;" class="col s6">
- <div class="card">
- <div class="card-image waves-effect waves-block waves-light">
- <!-- <img class="activator" src="icons/app-center_ai_speech.jpg"> -->
- <img class="" src="icons/AppCenter_comingSoon.jpg">
- </div>
- <div class="card-content">
- <span id="ac-card-title"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_wait_to_come">Comming
- soon</span>
- <p class="">
- <!-- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button disabled" href="#">Enter</a> -->
- </p>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--center game modal-->
- <div id="center_game_modal" class="modal">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#center_game_modal').modal('close');$('#app_center_modal').modal('open');CCB.downloadModelUrl = '';">close</i></span>
- <div id="TM_center_game" style="margin-top:10px;top:10%;position:relative"></div>
- </div>
- <!-- 显示Teachable Machine modal配置弹框 -->
- <div id="setting_teacher" class="modal">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#setting_teacher').modal('close');$('#app_center_modal').modal('open')">close</i></span>
- <div class="modal-content" style="padding: 20px;">
- <span class="modal_close" style="padding: 5px;">
- <i class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#setting_teacher').modal('close');$('#app_center_modal').modal('open')">close</i>
- </span>
- <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Labs</h4>
- <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
- <div style="display:flex;justify-content:space-around;">
- <div class="modal_setting_teacher_left setting_left_all">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="icons/AppCenter_ai_teachableMachine.jpg"
- style="border: solid 1.2px lightgray;width: 100%;">
- </div>
- <div>
- <span id="ac-card-title"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_Teachabel_Machine"
- style="font-size: 30px;">Teachable
- Machine</span>
- <p class="translatable_Teachabel_Machin_content">The trend of robot development is
- artificial
- intelligence. Deep learning is the frontier technology of intelligent robot and a new
- topic
- in the field of machine learning.Deep learning technology is widely used in agriculture,
- industry, military, aviation and other fields, and the organic combination with machines
- can
- design intelligent robots with high working efficiency, high real-time and high
- accuracy.
- </p>
- </div>
- </div>
- <div class="modal_setting_teacher_right setting_right_all">
- <div class="translatable_computer_configuration"
- style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
- <span>Computer Configuration Requirements</span>
- </div>
- <div class="setting_border">
- <p><span class="translatable_the_operating_system">Minimum Opearting System
- version</span>:Windows (>Windows7), macOS (>10.11)</p>
- <p><span class="translatable_resolution_of_the">Suggested Resolution
- Supported</span>:1440*768
- </p>
- <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
- <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
- <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
- <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
- class="translatable_need">OK</span></p>
- <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
- class="translatable_no_need">NO</span></p>
- </div>
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- href="#Teachable_Machine" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
- </div>
- </div>
- </div>
- </div>
- <!--Teachable Machine modal-->
- <div id="Teachable_Machine" class="modal TM_class">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#Teachable_Machine').modal('close');$('#setting_teacher').modal('open');">close</i></span>
- <div id="TM_login" style="margin-top:10px;top:10%;position:relative"></div>
- <div id="TM_iframe" style="height:100%; width:100%; display:none"></div>
- <div id="teachable_modal" class="object_modal">
- <img src="./gif/loading.gif"
- style="position: absolute;top: calc(50% - 140px);width: 500px;left: calc(50% - 250px);" />
- </div>
- </div>
- <!-- 显示Teachable Machine modal配置弹框 -->
- <div id="setting_teacher_ponsenet" class="modal">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#setting_teacher_ponsenet').modal('close');$('#app_center_modal').modal('open')">close</i></span>
- <div class="modal-content" style="padding: 20px;">
- <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Labs</h4>
- <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
- <div style="display:flex;justify-content:space-around;">
- <div class="modal_setting_teacher_left setting_left_all">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="images/tm_with_pose.jpg"
- style="border: solid 1.2px lightgray;width: 100%;">
- </div>
- <div>
- <span id="ac-card-title"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_Teachabel_Machine_posenet"
- style="font-size: 30px;">Teachable
- Machine</span>
- <p class="translatable_Teachabel_Machin_content">The trend of robot development is
- artificial
- intelligence. Deep learning is the frontier technology of intelligent robot and a new
- topic
- in the field of machine learning.Deep learning technology is widely used in agriculture,
- industry, military, aviation and other fields, and the organic combination with machines
- can
- design intelligent robots with high working efficiency, high real-time and high
- accuracy.
- </p>
- </div>
- </div>
- <div class="modal_setting_teacher_right setting_right_all">
- <div class="translatable_computer_configuration"
- style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
- <span>Computer Configuration Requirements</span>
- </div>
- <div class="setting_border">
- <p><span class="translatable_the_operating_system">Minimum Opearting System
- version</span>:Windows (>Windows7), macOS (>10.11)</p>
- <p><span class="translatable_resolution_of_the">Suggested Resolution
- Supported</span>:1440*768
- </p>
- <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
- <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
- <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
- <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
- class="translatable_need">OK</span></p>
- <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
- class="translatable_no_need">NO</span></p>
- </div>
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- href="#Teachable_Machine_ponsenet"
- style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
- </div>
- </div>
- </div>
- </div>
- <!--Teachable Machine modal-->
- <div id="Teachable_Machine_ponsenet" class="modal TM_class" style="position:relative">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#Teachable_Machine_ponsenet').modal('close');$('#setting_teacher_ponsenet').modal('open')">close</i></span>
- <div id="TM_posenet_login" style="margin-top:10px;top:10%;position:relative"></div>
- <div id="TM_posenet_iframe" style="height:100%; width:100%;display: none;"></div>
- <div id="teachable_posenet_modal" class="object_modal">
- <img src="./gif/loading.gif"
- style="position: absolute;top: calc(50% - 140px);width: 500px;left: calc(50% - 250px);" />
- </div>
- </div>
- <!-- 显示Object Recog_modal modal配置弹框-->
- <div id="setting_objectRecog" class="modal">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#setting_objectRecog').modal('close');$('#app_center_modal').modal('open')">close</i></span>
- <div class="modal-content" style="padding: 20px;">
- <span class="modal_close" style="padding: 5px;">
- <i class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#setting_objectRecog').modal('close');$('#app_center_modal').modal('open')">close</i>
- </span>
- <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Labs</h4>
- <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
- <div style="display: flex;justify-content:space-around;">
- <div class="modal_setting_objectRecog_left setting_left_all">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="icons/object_recognition_header.jpg"
- style="border: solid 1.2px lightgray;width: 100%;">
- </div>
- <div>
- <span id="ac-card-title emotion_recognition_enter_button" class="ac-card-title card-title activator grey-text text-darken-4
- translatable_app_center_object_recognition translatable_objectRecognition"
- style="font-size: 30px;">Object
- Recognition</span>
- <p class="translatable_objectRecognition_content">The development trend of object
- recognition is
- artificial intelligence. Object recognition is the frontier technology of intelligent
- recognition and a new subject in the field of recognition.Object recognition technology
- is
- widely used in agriculture, industry, military, aviation and other fields.
- </p>
- </div>
- </div>
- <div class="modal_setting_objectRecog_right setting_right_all" style="width: 48%;">
- <div class="translatable_computer_configuration"
- style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
- <span>Computer Configuration Requirements</span>
- </div>
- <div class="setting_border">
- <p><span class="translatable_the_operating_system">Minimum Opearting System
- version</span>:Windows (>Windows7), macOS (>10.11)</p>
- <p><span class="translatable_resolution_of_the">Suggested Resolution
- Supported</span>:1440*768
- </p>
- <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
- <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
- <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
- <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
- class="translatable_need">OK</span></p>
- <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
- class="translatable_no_need">NO</span></p>
- </div>
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- href="#Object_recog_modal" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
- </div>
- </div>
- </div>
- </div>
- <!--Object Recog_modal modal-->
- <div id="Object_recog_modal" class="modal TM_class1" style="position:relative">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 10px;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#Object_recog_modal').modal('close');$('#setting_objectRecog').modal('open')">close</i></span>
- <div id="TM_login_object" style="margin-top:10px;top:10%;position:relative"></div>
- <div id="TM_iframe_object" style="height:98%; width:100%; display:none"></div>
- <div id="object_modal" class="object_modal">
- <img src="./gif/loading.gif"
- style="position: absolute;top: calc(50% - 140px);width: 500px;left: calc(50% - 250px);" />
- </div>
- </div>
- <!-- 显示posenet Recog_modal modal配置弹框 -->
- <div id="setting_posenetRecog" class="modal">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#setting_posenetRecog').modal('close');$('#app_center_modal').modal('open')">close</i></span>
- <div class="modal-content" style="padding: 20px;">
- <span class="modal_close" style="padding: 5px;">
- <i class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#setting_posenetRecog').modal('close');$('#app_center_modal').modal('open')">close</i>
- </span>
- <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Labs</h4>
- <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
- <div style="display: flex;justify-content:space-around;">
- <div class="modal_setting_objectRecog_left setting_left_all">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="icons/posenet_recogition.png"
- style="border: solid 1.2px lightgray;width: 100%;">
- </div>
- <div>
- <span id="ac-card-title emotion_recognition_enter_button" class="ac-card-title card-title activator grey-text text-darken-4
- translatable_app_center_object_recognition translatable_posenetRecognition"
- style="font-size: 30px;">Posenet
- Recognition</span>
- <p class="translatable_posenetRecognition_content">The development trend of object
- recognition
- is
- artificial intelligence. Object recognition is the frontier technology of intelligent
- recognition and a new subject in the field of recognition.Object recognition technology
- is
- widely used in agriculture, industry, military, aviation and other fields.
- </p>
- </div>
- </div>
- <div class="modal_setting_objectRecog_right setting_right_all" style="width: 48%;">
- <div class="translatable_computer_configuration"
- style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
- <span>Computer Configuration Requirements</span>
- </div>
- <div class="setting_border">
- <p><span class="translatable_the_operating_system">Minimum Opearting System
- version</span>:Windows (>Windows7), macOS (>10.11)</p>
- <p><span class="translatable_resolution_of_the">Suggested Resolution
- Supported</span>:1440*768
- </p>
- <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
- <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
- <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
- <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
- class="translatable_need">OK</span></p>
- <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
- class="translatable_no_need">NO</span></p>
- </div>
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- href="#Posent_recog_modal" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
- </div>
- </div>
- </div>
- </div>
- <!--Object Recog_modal modal-->
- <div id="Posent_recog_modal" class="modal TM_class" style="position:relative">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 10px;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#Posent_recog_modal').modal('close');$('#setting_posenetRecog').modal('open')">close</i></span>
- <div id="TM_login_posenet" style="margin-top:10px;top:10%;position:relative"></div>
- <div id="TM_iframe_posenet" style="height:98%; width:100%; display:none"></div>
- <div id="posenet_modal" class="object_modal">
- <img src="./gif/loading.gif"
- style="position: absolute;top: calc(50% - 140px);width: 500px;left: calc(50% - 250px);" />
- </div>
- </div>
- <!-- 显示webcam input modal配置弹框 -->
- <div id="setting_webcam_capture_modal" class="modal">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#setting_webcam_capture_modal').modal('close');$('#app_center_modal').modal('open')">close</i></span>
- <div class="modal-content" style="padding: 20px;">
- <span class="modal_close" style="padding: 5px;">
- <i class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#setting_webcam_capture_modal').modal('close');$('#app_center_modal').modal('open')">close</i>
- </span>
- <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Labs</h4>
- <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
- <div style="display:flex;justify-content:space-around;">
- <div class="modal_setting_teacher_left setting_left_all">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="icons/AppCenter_ai_emotion.jpg"
- style="border: solid 1.2px lightgray;width: 100%;">
- </div>
- <div>
- <span id="ac-card-title emotion_recognition_enter_button"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_emotion_recognition"
- style="font-size: 30px;">Emotion
- Recognition</span>
- <p class="translatable_webcam_capture_content">The trend of robot development is artificial
- intelligence. Deep learning is the frontier technology of intelligent robot and a new
- topic
- in the field of machine learning.Deep learning technology is widely used in agriculture,
- industry, military, aviation and other fields, and the organic combination with machines
- can
- design intelligent robots with high working efficiency, high real-time and high
- accuracy.
- </p>
- </div>
- </div>
- <div class="modal_setting_teacher_right setting_right_all">
- <div class="translatable_computer_configuration"
- style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
- <span>Computer Configuration Requirements</span>
- </div>
- <div class="setting_border">
- <p><span class="translatable_the_operating_system">Minimum Opearting System
- version</span>:Windows (>Windows7), macOS (>10.11)</p>
- <p><span class="translatable_resolution_of_the">Suggested Resolution
- Supported</span>:1440*768
- </p>
- <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
- <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
- <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
- <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
- class="translatable_need">Ok</span></p>
- <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
- class="translatable_no_need">NO</span></p>
- </div>
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- href="#webcam_capture_modal" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
- </div>
- </div>
- </div>
- </div>
- <!-- webcam input modal -->
- <div id="webcam_capture_modal" class="modal">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 10px;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- id="emotion_recognition_close">close</i></span>
- <div id="TM_login_webcam_capture_modal" style="margin-top:10px;top:10%;position:relative"></div>
- <div id="emotionRecognitionTitle" class="modal-content" style="display: none;">
- <div style="margin-bottom:-10px;margin-top:10px;" class="row">
- <div class="col s8">
- <h4 class="translatable_webcamDemoTitle">Emotion Recognition</h4>
- </div>
- <div style="text-align:right;display: none;" class="col s4">
- <a style="cursor: pointer;text-decoration:none; color:rgba(0,0,0.9);"
- class="modal-action modal-close">
- <h4><i class="small material-icons">close</i></h4>
- </a>
- </div>
- </div>
- <!--<div> <span class="translatable_cloudFileTooltip" sytle="margin-left:10px">Type project's name and click save</span></div>-->
- <div class="row">
- <div class="col s12">
- <div class="switch" style="margin-bottom:20px;">
- <label>
- <span class="translatable_emotion_camera_off">Camera Off</span>
- <input id="camera_switch" type="checkbox" onclick="cameraSwitch()">
- <span class="lever "></span><span class="translatable_emotion_camera_on">On</span>
- </label>
- </div>
- </div>
- </div>
- <div class="row" style="text-align:left;">
- <div style="float:center;" class="col s6">
- <p class="translatable_face_webcam" style="margin-top:-20px;">Webcam:</p>
- <div id="webCamera"></div>
- <div class="translatable_emotion_camera_turnon_text" id="webCamPlaceholder">Turn on the Camera
- first
- </div>
- </div>
- <div style="float:center;" class="col s6">
- <p class="translatable_face_latest_snapshot" style="margin-top:-20px;">Last snapshot:</p>
- <div id="emotionResults"></div>
- <div class="translatable_emotion_snapshot_text" id="SnapshotPlaceholder">Your snapshot will be
- here
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col s12">
- <a id="emotionRequestStatus"
- class="disabled waves-effect waves-light btn blue translatable_face_analyze"
- onclick="processImage()">Analyze</a>
- <span id="azureRequestStatusText" style="padding-left:20px;"> </span>
- </div>
- </div>
- <div class="row" style="text-align:left;">
- <div id="emotionResultsAll" class="col s12">
- <span class="translatable_emotion_result_title" id="facialanalysistitle"
- style="font-weight:200;">Facial Analysis:</span>
- <div style="display: flex;flex-wrap: wrap;margin-top: 10px;">
- <p id="emotionResultsAll_property" style="width: 50%;">
- <b class="translatable_emotion_result_age_title">Age:</b>
- <span id="emotionResults_age"
- class="emotionResultsAll_single translatable_emotion_result_default">Nothing
- detected.</span>
- </p>
- <p id="emotionResultsAll_property" style="width: 50%;">
- <b class="translatable_emotion_result_emotion_title">Emotion:</b>
- <span id="emotionResults_emotion"
- class="emotionResultsAll_single translatable_emotion_result_default">Nothing
- detected.</span>
- </p>
- <p id="emotionResultsAll_property" style="width: 50%;">
- <b class="translatable_emotion_result_gender_title">Gender:</b>
- <span id="emotionResults_gender"
- class="emotionResultsAll_single translatable_emotion_result_default">Nothing
- detected.</span>
- </p>
- <p id="emotionResultsAll_property" style="width: 50%;">
- <b class="translatable_emotion_result_glasses_title">Glasses:</b>
- <span id="emotionResults_glasses"
- class="emotionResultsAll_single translatable_emotion_result_default">Nothing
- detected.</span>
- </p>
- <!-- <p id="emotionResultsAll_property" style="width: 50%;">
- <b class="translatable_emotion_result_appearance_title">Appearance:</b>
- <span id="emotionResults_appearance"
- class="emotionResultsAll_single translatable_emotion_result_default">Nothing
- detected.</span>
- </p> -->
- <p id="emotionResultsAll_property" style="width: 50%;">
- <b class="translatable_emotion_result_expression_title">Expression:</b>
- <span id="emotionResults_expression"
- class="emotionResultsAll_single translatable_emotion_result_default">Nothing
- detected.</span>
- </p>
- <p id="emotionResultsAll_property"
- style="width: 100%;border-top: 1px solid #ccc;margin-top: 10px;padding-top: 10px;">
- <b class="translatable_emotion_result_expression_title">Emotion:</b>
- <span
- class="emotionResultsAll_single translatable_emotion_expression">smile、laugh、none</span>
- </p>
- <p id="emotionResultsAll_property" style="width: 100%;">
- <b class="translatable_emotion_result_emotion_title">Expression:</b>
- <span
- class="emotionResultsAll_single translatable_emotion">angry、disgust、fear、happy、sad、surprise、neutral、pouty、grimace</span>
- </p>
- </div>
- </div>
- <div class="col s12 select_send_way" style="position: relative; margin:12px 0;padding: 0;">
- <span class="select_send_way_color translatable_send_cloud">Send Cloud</span>
- <!-- <span class="translatable_send_module">Send Module</span> -->
- </div>
- </div>
- <div class="row">
- <div class="col s12 send_cloud" style="position: relative">
- <div id="cloudRequestStatus" class="col s12">
- </div>
- <div class="translatable_selectEvent">Choose a CocoCloud event here, the analyzed result will
- directly send to there</div>
- <div style="width:100%;margin-top: 15px;">
- <select class="browser-default" id="AI_webcam_events">
- <option class="translatable_noEvent" value=null disabled>No event here. Login first
- </option>
- </select>
- </div>
- <span style="float:right;top: -45px;position: relative;margin-top: -38px;">
- <i id="update_Coevent_web" class="material-icons">autorenew</i>
- </span>
- </div>
- <div class="col s12 send_module" style="position: relative;display: none;height: 100px;">
- <div class="translatable_send_module">Send Module</div>
- <div class="col s6" style="margin-top:2px;padding: 0;">
- <span class="translatable_send_result">Send Result:</span>
- <select class="browser-default" id="select_send_capture"
- style="width: 120px;display: inline-block;height: 35px;">
- <option value="emotionResults_age" class="translatable_emotion_result_age_title">Age
- </option>
- <option value="emotionResults_emotion"
- class="translatable_emotion_result_emotion_title">
- Emotion</option>
- <option value="emotionResults_gender" class="translatable_emotion_result_gender_title">
- Sex
- </option>
- <option value="emotionResults_glasses"
- class="translatable_emotion_result_glasses_title">
- Glasses</option>
- <option value="emotionResults_expression"
- class="translatable_emotion_result_expression_title">Expression</option>
- </select>
- <span class="translatable_port">Port:</span>
- <span class="port" style="padding-left:10px;"></span>
- </div>
- <div class="col s6" style="margin-top:2px;">
- <a class="waves-effect waves-light blue lighten-2 btn translatable_connectBtn translatable_connectBtns disabled"
- style="float:right;margin-right:5px">connect</a>
- <a class="waves-effect waves-light blue lighten-2 btn translatable_disconnectBtn translatable_disconnectBtns "
- style="float:right;margin-right:5px;display:none">disconnect</a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- 显示gesture recognition modal配置弹框 -->
- <div id="setting_gesture_recog_modal" class="modal">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#setting_gesture_recog_modal').modal('close');$('#app_center_modal').modal('open')">close</i></span>
- <div class="modal-content" style="padding: 20px;">
- <span class="modal_close" style="padding: 5px;">
- <i class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#setting_gesture_recog_modal').modal('close');$('#app_center_modal').modal('open')">close</i>
- </span>
- <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Labs</h4>
- <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
- <div style="display:flex;justify-content:space-around;">
- <div class="modal_setting_teacher_left setting_left_all">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="icons/AppCenter_ai_gesture_recognition.jpg"
- style="border: solid 1.2px lightgray;width: 100%;">
- </div>
- <div>
- <span id="ac-card-title emotion_recognition_enter_button"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_gesture_recognition translatable_gesturesTitle"
- style="font-size: 30px;">Gesture
- Recognition</span>
- <p class="translatable_gesture_recog_content">The trend of robot development is artificial
- intelligence. Deep learning is the frontier technology of intelligent robot and a new
- topic
- in the field of machine learning.Deep learning technology is widely used in agriculture,
- industry, military, aviation and other fields, and the organic combination with machines
- can
- design intelligent robots with high working efficiency, high real-time and high
- accuracy.
- </p>
- </div>
- </div>
- <div class="modal_setting_teacher_right setting_right_all">
- <div class="translatable_computer_configuration"
- style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
- <span>Computer Configuration Requirements</span>
- </div>
- <div class="setting_border">
- <p><span class="translatable_the_operating_system">Minimum Opearting System
- version</span>:Windows (>Windows7), macOS (>10.11)</p>
- <p><span class="translatable_resolution_of_the">Suggested Resolution
- Supported</span>:1440*768
- </p>
- <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
- <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
- <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
- <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
- class="translatable_need">Ok</span></p>
- <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
- class="translatable_no_need">NO</span></p>
- </div>
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- href="#gesture_recog_modal" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
- </div>
- </div>
- </div>
- </div>
- <!-- gesture recognition modal -->
- <div id="gesture_recog_modal" class="modal">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 10px;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- id="gesture_recognition_close">close</i></span>
- <div id="TM_login_gesture_recog_modal" style="margin-top:10px;top:10%;position:relative"></div>
- <div id="gestureRecognitionTitle" class="modal-content" style="display: none;">
- <div style="margin-bottom:-10px;margin-top:10px;" class="row">
- <div class="col s10">
- <h4 class="translatable_gesturesTitle">Gesture Recognition</h4>
- </div>
- <div style="text-align:right;display: none;" class="col s2">
- <a style="cursor: pointer;text-decoration:none; color:rgba(0,0,0.9);"
- class="modal-action modal-close">
- <h4><i class="small material-icons">close</i></h4>
- </a>
- </div>
- </div>
- <div class="row">
- <div class="col s12">
- <div class="switch" style="margin-bottom:20px;">
- <label>
- <span class="translatable_emotion_camera_off">Camera Off</span>
- <input id="camera_switch_gesture" type="checkbox" onclick="cameraSwitchGesture();">
- <span class="lever "></span><span class="translatable_emotion_camera_on">On</span>
- </label>
- </div>
- </div>
- </div>
- <div style="margin-bottom:10px;" class="row">
- <div style="float:center;" class="col s5">
- <p class="translatable_gesture_webcam" style="margin-top:-20px;">Webcam:</p>
- <div id="webCameraGestureFrame">
- <div id="webCameraGesture"></div>
- </div>
- <div class="translatable_emotion_camera_turnon_text" id="gesture_webCamPlaceholder">Turn on the
- Camera first
- </div>
- </div>
- <div style="float:center;" class="col s7">
- <a id="gestureAnalyzeButton"
- class="disabled waves-effect waves-light btn blue translatable_gesture_recognition"
- onclick="gestureRecognize();">Recognize</a>
- <div id="gestureResultAreaFrame">
- <h4 class="gestureResultAreaTitle translatable_gesture_recognition_result">Recognition
- Result:
- </h4>
- <div id="gestureResultAreaContent" class="translatable_gesture_result">
- No result yet.
- </div>
- </div>
- <div class="col s12 select_send_way" style="position: relative; margin:12px 0;padding: 0;">
- <span class="select_send_way_color translatable_send_cloud">Send Cloud</span>
- <!-- <span class="translatable_send_module">Send Module</span> -->
- </div>
- <div class="s12" style="position: relative;margin-top: 45px;">
- <div class="send_cloud">
- <div id="cloudRequestStatuss" class="s12">
- </div>
- <div class="translatable_selectEvent" style="padding-right: 0.75rem;">Choose a CocoCloud
- event
- here, the analyzed result will
- directly send to there</div>
- <div style="width:100%;margin-top: 15px;">
- <select class="browser-default" id="AI_gesture_events">
- <option class="translatable_noEvent" value=null disabled>No event here. Login
- first
- </option>
- </select>
- </div>
- <span style="float:right;top: -45px;position: relative;margin-top: -38px;">
- <i id="update_Coevent_web" class="material-icons">autorenew</i>
- </span>
- </div>
- <div class="col s12 send_module"
- style="position: relative;display: none;height: 100px;padding: 0;">
- <div class="translatable_send_module">Send Module</div>
- <div class="input-field col s6" style="margin-top:2px;padding: 0;">
- <span class="translatable_port">Port:</span>
- <span class="port" style="padding-left:10px;"></span>
- </div>
- <div class="col s6" style="margin-top:2px;">
- <a class="waves-effect waves-light blue lighten-2 btn translatable_connectBtns translatable_connectBtn disabled"
- style="float:right;margin-right:5px">connect</a>
- <a class="waves-effect waves-light blue lighten-2 btn translatable_disconnectBtns translatable_disconnectBtn"
- style="float:right;margin-right:5px;display:none">disconnect</a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- <div class="row">
- <div class="col s12">
- <hr style="margin-top: 20px; border-top: 0.5px solid rgba(0,0,0,.1);" />
- </div>
- </div> -->
- </div>
- </div>
- <!-- 显示voice speech modal配置弹框 -->
- <div id="setting_voice_input_modal" class="modal">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#setting_voice_input_modal').modal('close');$('#app_center_modal').modal('open')">close</i></span>
- <div class="modal-content" style="padding: 20px;">
- <h4 class="translatable_labs_center_modal_title" style="width: 80%;">CocoBlockly Labs</h4>
- <hr style="border-top: 1px solid #ddd;margin:20px 0 10px 0;" />
- <div style="display:flex;justify-content:space-around;">
- <div class="modal_setting_teacher_left setting_left_all">
- <div class="card-image waves-effect waves-block waves-light">
- <img class="" src="icons/AppCenter_ai_speech.jpg"
- style="border: solid 1.2px lightgray;width: 100%;">
- </div>
- <div>
- <span id="ac-card-title"
- class="ac-card-title card-title activator grey-text text-darken-4 translatable_app_center_speech_recognition"
- style="font-size: 30px;">Speech
- Recognition</span>
- <p class="translatable_voice_input_content">The trend of robot development is artificial
- intelligence. Deep learning is the frontier technology of intelligent robot and a new
- topic
- in the field of machine learning.Deep learning technology is widely used in agriculture,
- industry, military, aviation and other fields, and the organic combination with machines
- can
- design intelligent robots with high working efficiency, high real-time and high
- accuracy.
- </p>
- </div>
- </div>
- <div class="modal_setting_teacher_right setting_right_all">
- <div class="translatable_computer_configuration"
- style="background: rgb(33, 150, 243);padding: 5px 10px;color: #fff;border-top-left-radius: 5px;border-top-right-radius: 5px;">
- <span>Computer Configuration Requirements</span>
- </div>
- <div class="setting_border">
- <p><span class="translatable_the_operating_system">Minimum Opearting System
- version</span>:Windows (>Windows7), macOS (>10.11)</p>
- <p><span class="translatable_resolution_of_the">Suggested Resolution
- Supported</span>:1440*768
- </p>
- <p><span class="translatable_memory_capacity">Memory Capacity</span>:8GB-16GB</p>
- <p><span class="translatable_the_hard_disk">The Hard Disk</span>:256GB-512Gb</p>
- <p><span class="translatable_the_graphics_card">The Graphics Card</span>:650M</p>
- <p><span class="translatable_is_need_camera">Do you need a camera</span>:<span
- class="translatable_no_need">NO</span></p>
- <p><span class="translatable_is_need_microphone">Do you need a microphone</span>:<span
- class="translatable_need">OK</span></p>
- </div>
- <a class="waves-effect waves-light btn blue accent-3 translatable_app_center_enter_button modal-trigger"
- href="#voice_input_modal" style="width: 94%;position: absolute;bottom: 5px;">Enter</a>
- </div>
- </div>
- </div>
- </div>
- <!-- voice speech modal -->
- <div id="voice_input_modal" class="modal voice-modal-trigger">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 10px;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;" id="voice_input_close">close</i></span>
- <div id="TM_login_voice_input_modal" style="margin-top:10px;top:10%;position:relative"></div>
- <div class="modal-content" id="voice_input_modal_reg" style="display: none;">
- <div style="margin-top:10px;" class="row">
- <div class="col s8">
- <h4 class="translatable_speechDemoTitle">Speech Recognition</h4>
- </div>
- <div style="text-align:right;display: none;" class="col s4">
- <a style="cursor: pointer;text-decoration:none; color:rgba(0,0,0.9);"
- class="modal-action modal-close">
- <h4><i class="small material-icons">close</i></h4>
- </a>
- </div>
- </div>
- <div style="margin-bottom:10px;margin-top:-20px;" class="row">
- <div class="col s12">
- <p class="translatable_speechTip" style="font-size:15px;font-weight:200;">Voice recognition for
- English, Cantonese & Mandarin.</p>
- <hr
- style="position:relative;top:-2px;margin-bottom:15px;border-color:rgba(0,0,0,.1); border-width: 1px;">
- </div>
- </div>
- <div class="row" style="margin-top:-15px;margin-bottom:10px">
- <div class="col s4">
- <p class="translatable_speech_language_select">Select a language to recognize:</p>
- </div>
- <div style="margin-left:-20px;" class="col s2 speech_language" style="position:relative;top:3px">
- <select id="speech_language_selection" class="browser-default" style="max-width:200px">
- <option value="english" class="translatable_speech_language_English">English</option>
- <option value="cantonese" class="translatable_speech_language_Cantonese">Cantonese</option>
- <option value="mandarin" class="translatable_speech_language_Mandarin">Mandarin</option>
- </select>
- </div>
- <div class="col" style="position:relative;top:5px">
- <a id="speech_button" class="waves-effect waves-light btn blue translatable_speech_recognition"
- style="padding:0 8px" onclick="processSpeech()/*startSpeech()*/">Start Recording</a>
- </div>
- <div class="col s3" style="position:relative;top:15px;">
- <span style="font-weight:200;margin-left:-5px;" id="speech_process_title"
- style="position:relative;top:-6px;"></span>
- </div>
- </div>
- <div class="row">
- <textarea id="speech_textarea" row="3" class="disabled translatable_speech_textarea_title"
- style="width:772px;height:130px;resize:none;border-radius:5px;padding:10px;color:rgba(0,0,0,.4);"
- readonly> Click on the mic button to start dictating...</textarea>
- </div>
- <div style="margin-top:5px;" class="row">
- <div class="col s12 select_send_way" style="position: relative; margin-bottom:12px;">
- <span class="select_send_way_color translatable_send_cloud">Send Cloud</span>
- <!-- <span class="translatable_send_module">Send Module</span> -->
- </div>
- <div class="col s12 send_cloud" style="position: relative">
- <div class="col s12">
- <span id="speechDemoCloudRequest" style="font-weight:200;"></span>
- </div>
- <div class="translatable_selectEvent">Choose a CocoCloud event here, the analyzed result will
- directly send to there</div>
- <div style="width:95%">
- <select style="margin-top:10px;" class="browser-default" id="AI_voice_events">
- <option class="translatable_noEvent" value=null disabled>No event here. Login first
- </option>
- </select>
- </div>
- <span style="float:right;top: -45px;position: relative;">
- <i id="update_Coevent_voice" class="material-icons">autorenew</i>
- </span>
- </div>
- <div class="col s12 send_module" style="position: relative;display: none;height: 100px;">
- <div class="translatable_send_module">Send Module</div>
- <div class="input-field col s6" style="margin-top:2px;">
- <span class="translatable_port">Port:</span>
- <span class="port" style="padding-left:10px;"></span>
- </div>
- <div class="col s6" style="margin-top:2px;">
- <a class="waves-effect waves-light blue lighten-2 btn translatable_connectBtns translatable_connectBtn disabled"
- style="float:right;margin-right:5px">connect</a>
- <a class="waves-effect waves-light blue lighten-2 btn translatable_disconnectBtn translatable_disconnectBtns "
- style="float:right;margin-right:5px;display:none">disconnect</a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- iframe -->
- <div id="iframe" class="modal auxiliary modal_closes overflowHidden">
- <div class="modal-content" style="background-color: white;height: 100%;">
- <span class="modal_close" style="padding: 5px;right: 15px;top: 10px;">
- <i class="small material-icons" style="font-size: 1.5rem;">close</i>
- </span>
- <h4 class="translatable_auxiliary">系统镜像文件</h4>
- <div style="max-height: 280px;overflow: auto;">
- <table>
- <tr>
- <th class="translatable_systemFileName">文件名称</th>
- <th class="translatable_systemFileTime">更新时间</th>
- <th class="translatable_operation">操作</th>
- </tr>
- <tr>
- <td>2023年8月21日系统镜像文件</td>
- <td>2023-08-21</td>
- <td>
- <a href="//cocorobo.cn/downloads/20230821-ch.zip" download="">
- <button class="btn-small blue translatable_uploderChinese"
- style="margin: 5px 0;">下载中文版</button></a>
- <a href="//cocorobo.cn/downloads/20230821-en.zip" download="">
- <button class="btn-small blue translatable_uploadEnglish"
- style="margin: 5px 0;">下载英文版</button></a>
- </td>
- </tr>
- </table>
- </div>
- <div class="border" style="margin-top: 15px;">
- <p class="translatable_systemUpgradeProcedure1">1、将下载的系统镜像文件解压复制至CocoPi U盘中</p>
- <p class="translatable_systemUpgradeProcedure2">2、将CocoPi模块进行重启</p>
- <p class="translatable_systemUpgradeProcedure3">3、重新连接模块,然后电机“一键升级”按钮,升级后模块会自动重启</p>
- <p class="translatable_systemUpgradeProcedure4">
- 4、电机连接模块,检查模块屏幕和终端显示的版本是否和升级的版本一致(如果一致则表示升级成功,否则表示升级失败,需要重新执行上面步骤)</p>
- </div>
- <div style="margin-top: 10px;text-align: center;">
- <button id="OneClickUpgradeId" onclick="OneClickUpgrade()"
- class="btn blue translatable_OneClickUpgrade disabled">一键升级</button>
- <button id="CocoPiUpgrades" onclick="CocoPiUpgrades()"
- class="btn blue translatable_CocoPiUpgrades disabled">一键升级</button>
- </div>
- </div>
- <!-- <iframe frameborder="0" style="width: 100%;height: 50vh;"></iframe> -->
- </div>
- <div id="qrCode" class="modal auxiliary modal_closes overflowHidden">
- <div class="modal-content" style="background-color: white;height: 100%;">
- <span class="modal_close" style="padding: 5px;right: 15px;top: 10px;">
- <i class="small material-icons" style="font-size: 1.5rem;">close</i>
- </span>
- <h4 class="translatable_getQrCode">扫描二维码,连接网络</h4>
- <div class="qrcodeInput">
- <span class="translatable_SSID">SSID:</span>
- <input id="SSID" type="text">
- </div>
- <div class="qrcodeInput">
- <span class="translatable_PWD">PWD:</span>
- <input id="PAS" type="text">
- </div>
- <div class="qrcodeInput">
- <button class="btn blue translatable_QrCode" onclick="getQrCode()">生成二维码</button>
- </div>
- <div style="width: 200px;margin: 20px auto;" class="codeImgDiv">
- <div id="codeImg"></div>
- </div>
- <div class="qrcodeInput"
- style="position: absolute;bottom: 50px;left: 50%;transform: translate(-50%, 10px);">
- <p class="translatable_CocoPi_note">打开CocoPi上的扫码联网样例,扫描屏幕二维码,连接上网</p>
- </div>
- </div>
- </div>
- <!-- Custom Alert: Content is loaded using JavaScript to display alerts -->
- <div id="cus_alert" class="modale modal_small modal_custom">
- <div class="modal-content">
- <h5 id="cus_alert_title">Empty Alert</h5>
- <p><span id="cus_alert_body">Empty alert text</span></p>
- </div>
- <div class="modal-footer">
- <a id="cus_alert_button" class="waves-effect btn-flat modal-close blue"><span id="cus_alert_button_content"
- style="color:#fff"></span></a>
- <a id="cus_alert_ok_link" class="waves-effect btn-flat modal-close blue"><span class="translatable_okay"
- style="color:#fff">Okay</span></a>
- </div>
- </div>
- <!-- Env Detect Modal -->
- <div id="env_detect" class="modal modal_closes">
- <div class="modal-content">
- <span class="modal_close" style="padding: 5px;">
- <i class="small material-icons" style="font-size: 1.5rem;">close</i>
- </span>
- <h4 class="translatable_env_detect" style="margin-bottom:2.5rem;width: 80%;">Environment Detect</h4>
- <h5 style="margin-bottom:2.5rem;width: 80%;font-weight: bold;">Windows</h5>
- <h5 class="" style="font-weight: bold;">1、<span
- class="translatable_download_drive_genie_help">下载驱动精灵帮助文档</span></h5>
- <a download="" target="_black" href="./static/docx/如何通过驱动精灵更新Android手机驱动.docx">
- <button class="btn blue translatable_download_file">下载</button>
- </a>
- <a download="" target="_black" href="//file.drivergenius.com/DGSetup_Home_KZ.exe">
- <button class="btn blue translatable_download_file_exe">下载安装包</button>
- </a>
- <h5 class="" style="font-weight: bold;">2、<span class="translatable_upgrade_step">adb 驱动升级步骤</span></h5>
- <a download="" target="_black" href="//cocorobo.cn/downloads/usb_driver_r13-windows.zip">
- <button class="btn blue translatable_uploader_reminder_download">下载</button>
- </a>
- <ol class="webadb_steps">
- <li>
- <span class="translatable_upgrade_step1">将上面文件下载至电脑并解压</span>
- </li>
- <li>
- <span class="translatable_upgrade_step2">计算机 -- 右击 -- 管理 -- 设备管理器</span>
- <img src="./images/adb1.png" alt="">
- </li>
- <li>
- <span class="translatable_upgrade_step3">双击带黄色感叹号的ADB Interface</span>
- </li>
- <li>
- <span class="translatable_upgrade_step4">点击更新驱动程序</span>
- <img src="./images/adb2.png" alt="">
- </li>
- <li>
- <span class="translatable_upgrade_step5">点击 “浏览计算机以查找驱动程序软件”</span>
- <img src="./images/adb3.png" alt="">
- </li>
- <li>
- <span class="translatable_upgrade_step6">点击“从计算机的设备驱动程序列表中选择”</span>
- <img src="./images/adb4.jpg" alt="">
- </li>
- <li><span class="translatable_upgrade_step7">然后一直点击下一步,直至安装成功</span></li>
- </ol>
- </div>
- </div>
- <!-- Serial Monitor -->
- <div id="Serial-monitor" class="card card-serialMonitor" style="display:none;height:0;opacity:0;">
- <div class="code-header">
- <span class="code-header-logo"><i class="material-icons" style="padding-top:10px">search</i></span>
- <span class="card-title translatable_serialMonitor">Serial Monitor</span>
- </div>
- <div class="card-content" style="padding:8px 10px;">
- <div class="row">
- <div class="input-field col s6" style="margin-top:2px;">
- <p id="ports-monitor" style="font-size:16px"><span class="translatable_port">Port:</span><span
- style="padding-left:10px;"></span>
- </p>
- </div>
- <div class="col s6" style="margin-top:2px;">
- <a id="comms-cnt"
- class="waves-effect waves-light blue lighten-2 btn translatable_connectBtn disabled"
- style="float:right;margin-right:5px">connect</a>
- <a id="comms-discnt" class="waves-effect waves-light blue lighten-2 btn translatable_disconnectBtn "
- style="float:right;margin-right:5px;display:none">disconnect</a>
- </div>
- </div>
- <div class="row">
- <div class="input-field col s5">
- <select id="serial_output_style" style="font-size:16px">
- <option value="" selected class="translatable_no_line_ending">No line ending
- </option>
- <option value="nl" class="translatable_newline">Newline</option>
- <option value="cr" class="translatable_CR">Carriage return</option>
- <option value="blc" class="translatable_NL_CR">Both NL & CR</option>
- </select>
- </div>
- <div class="input-field col s5">
- <select id="serial_baud" style="font-size:16px">
- <option value="300">300 <span class="translatable_baud">baud</span></option>
- <option value="1200">1200 <span class="translatable_baud">baud</span></option>
- <option value="2400">2400 <span class="translatable_baud">baud</span></option>
- <option value="4800">4800 <span class="translatable_baud">baud</span></option>
- <option value="9600" selected>9600 <span class="translatable_baud">baud</span>
- </option>
- <option value="19200">19200 <span class="translatable_baud">baud</span></option>
- <option value="38400">38400 <span class="translatable_baud">baud</span></option>
- <option value="57600">57600 <span class="translatable_baud">baud</span></option>
- <option value="115200">115200 <span class="translatable_baud">baud</span></option>
- </select>
- </div>
- </div>
- <div class="row">
- <div class="input-field col s10">
- <input id="comms-msg" type="text" style="margin:0">
- <label for="Sending_Messages" class="translatable_sendMsg" style="font-size:16px">Sending
- Messages</label>
- </div>
- <div class="input-field col s2">
- <a id="comms-send" class="waves-effect waves-light blue lighten-2 btn translatable_sendBtn disabled"
- style="float:right;padding-right:5px">SEND</a>
- </div>
- </div>
- <div class="row">
- <div class="col s12">
- <textarea id="commsBox" label="readonly" readonly></textarea>
- </div>
- </div>
- <div class="row" style="margin-bottom:8px">
- <div class="col s4" style="margin-top:8px">
- <input id="autoscroll" type="checkbox" class="filled-in" checked="checked">
- <label for="autoscroll">
- <span class="translatable_autoScroll">Autoscroll</span>
- </label>
- </div>
- <div class="input-field col s8" style="margin:4px,0,8px,0">
- <a id="comms-clear" class="waves-effect waves-light blue lighten-2 btn translatable_comms_clear"
- style="float:right;margin-right:5px">CLEAR</a>
- <a id="comms-export"
- class="waves-effect waves-light blue lighten-2 btn translatable_comms_export modal-trigger"
- href="#export-file" style="float:right;margin-right:5px">EXPORT</a>
- </div>
- </div>
- </div>
- </div>
- <!-- login modal -->
- <div id="login_modal" class="modal modal_closes" style="top:62px">
- <div id="login_modal_preload" class="progress" style="display:none">
- <div class="indeterminate"></div>
- </div>
- <div class="modal-content" style="padding:0;">
- <span class="modal_close" style="padding: 5px;">
- <i class="small material-icons" style="font-size: 1.5rem;">close</i>
- </span>
- <!-- add for login iframe -->
- <div id="before_login"></div>
- <div id="after_login">
- <div id="userProfile_alias"></div>
- <div style="width: 250px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"><span
- class="translatable_user_email">Email:</span><span id="userProfile_username"> </span></div>
- <div><span class="translatable_user_school">School:</span><span id="userProfile_school"></span></div>
- <div id="userProfile_apikey">
- <div>
- <span class="translatable_Event">Event: </span>
- <span style="margin-top: -13px;float:right;transform:translateY(35%);">
- <i id="update_Coevent" class="material-icons" onclick="updateProject()">autorenew</i>
- </span>
- <p class="get_event" style="margin: 5px 0;color: #2196F3;"></p>
- <select
- style="outline:0; width: 100%; margin: 6px auto 8px auto; border: 1px solid rgba(0,0,0,.2);"
- class="browser-default" id="cloud_events" onchange="changeProject()">
- <option value=null disabled>No Event</option>
- </select>
- </div>
- <div style="margin-top:5px">
- <span>API Key: </span>
- <a id="apikey-copy" data-clipboard-action="copy" data-clipboard-target="#api-key">
- <i class="material-icons tiny">content_copy</i>
- </a>
- <textarea style="padding: 6px 6px; margin-top: 4px;" id="api-key" readonly></textarea>
- </div>
- </div>
- </div>
- </div>
- <div class="modal-footer" style="display:none;">
- <a id="modal_logout_btn" class="waves-effect btn-flat blue">
- <span class="translatable_signout">Sign Out</span>
- <img class="xuanhuan svgImg" src="images/loading.svg" alt="">
- </a>
- <a id="modal_cococloud_btn" href="//cocorobo.cn/cloud" target="_black"
- class="waves-effect btn-flat blue"><span class="translatable_cococloud">Go to CocoCloud</span></a>
- </div>
- </div>
- <!-- local storage - import modal -->
- <div id="Storage_import_modal" class="modal mm modal_closes" style="width:500px">
- <div class="modal-content">
- <span class="modal_close" style="padding: 5px;"><i class="small material-icons"
- style="font-size: 1.5rem;">close</i></span>
- <h4 class="translatable_localStorageImport" style="width: 80%;">Import Project</h4>
- <div> <span class="translatable_ImportTooltip" sytle="margin-left:10px">Select your project file(*.xml) and
- import it to the current workspace.Warning:will replace current blocks</span></div>
- <div id="import_area" class="row" style="margin: 10px;height: 170px;position: relative;">
- <a id="modal_import_btn" class="waves-effect btn-flat blue"
- style="top:180px;left:320px;position:fixed;"><span class="translatable_import"
- style="font-size:15px;color:#fff">Import</span></a>
- <span class="translatable_ImportContent"
- style="top: 230px;width:300px;left:27%;position:fixed;text-align:center;">Click to choose a file
- from
- your computer</span>
- </div>
- </div>
- </div>
- <!-- General Alert: Content is loaded using JavaScript to display alerts -->
- <div id="wifi_process" class="modale modal_closes modal_small" style="width:730px">
- <div class="modal-content">
- <span class="modal_close" style="padding: 5px;">
- <i class="small material-icons" style="font-size: 1.5rem;">close</i>
- </span>
- <h5 style="width: 80%;" class="translatable_wifiProblem">无线连接问题</h5>
- <p class="translatable_problem1">1、首先将模块和平台连接在同一网络下;</p>
- <p class="translatable_problem2">2、填写联网成功获取的IP地址</p>
- <p><span class="translatable_problem3">3、该功能需要你同意访问,</span> <span style="color: #2196F3;"
- id="getIpLink"></span></p>
- <p class="translatable_problem4">4、点击下方按钮,页面将进行跳转</p>
- </div>
- <div class="modal-footer">
- <a onclick="linkOkay()" class="waves-effect btn-flat blue"><span class="translatable_okay"
- style="color:#fff">Okay</span></a>
- <a class="waves-effect btn-flat modal-close blue"><span class="translatable_cancel"
- style="color:#fff">Cancel</span></a>
- </div>
- </div>
- <div id="gen_alert" class="modale modal_closes modal_small" style="width:730px">
- <div class="modal-content">
- <span class="modal_close" style="padding: 5px;">
- <i class="small material-icons" style="font-size: 1.5rem;">close</i>
- </span>
- <h5 id="gen_alert_title" style="width: 80%;">Empty Alert</h5>
- <p><span id="gen_alert_body">Empty alert text</span></p>
- </div>
- <div class="modal-footer">
- <a id="gen_alert_ok_link" class="waves-effect btn-flat modal-close blue"><span class="translatable_okay"
- style="color:#fff">Okay</span></a>
- <a id="gen_alert_cancel_link" class="waves-effect btn-flat modal-close blue"><span
- class="translatable_cancel" style="color:#fff">Cancel</span></a>
- </div>
- </div>
- <!-- Example Alert: Content is loaded using JavaScript to display alerts -->
- <div id="example_alert" class="modale modal_small" style="height:30%;width: 30%;">
- <div class="modal-content">
- <div id="loading" style="text-align:center;display: none;">
- <img src="./gif/loading.gif" style="width: 300px;" />
- </div>
- <p
- style="text-align:center;font-weight:bold;font-size:20px;z-index: 1087;position: absolute;left: 0;right: 0;top: 50%;">
- <span id="example_alert_body">Empty alert text</span>
- </p>
- </div>
- </div>
- <!-- local storage - export modal -->
- <div id="Storage_export_modal" class="modal mm modal_closes" style="width:730px">
- <div class="modal-content">
- <span class="modal_close" style="padding: 5px;"><i class="small material-icons"
- style="font-size: 1.5rem;">close</i></span>
- <h4 class="translatable_localStorageExport" style="width: 80%;">Export Project</h4>
- <div> <span class="translatable_ExportTooltip" sytle="margin-left:10px">Export current project blocks and
- save it your computer,so you can open it next time when you need it</span></div>
- <div class="row" style="margin: 10px;height: 200px;width: 640px;position: relative;">
- <div style="display:block">
- <div class="col l6">
- <img src="./icons/blockly-file-export_xml.png"
- style="width:20%;position:relative;left:50%;right:50%;transform:translateX(-50%);">
- </div>
- <div class="col l6">
- <img src="./icons/blockly-file-export_png.png"
- style="width:20%;position:relative;left:50%;right:50%;transform:translateX(-50%);">
- </div>
- </div>
- <div>
- <div class="col l6">
- <a id="modal_exportFileBtn" class="waves-effect btn-flat blue"
- style="left: 50%;right: 50%;transform: translateX(-50%)"><span
- class="translatable_exportFile" style="font-size:15px;color:#fff">Project
- File</span></a>
- </div>
- <div class="col l6">
- <a id="modal_exportSnapBtn" class="waves-effect btn-flat blue"
- style="left: 50%;right: 50%;transform: translateX(-50%)"><span
- class="translatable_exportSnap" style="font-size:15px;color:#fff">Snapshot</span></a>
- </div>
- </div>
- <div>
- <div class="col l6">
- <p class="translatable_ExportFileContent"
- style="display:block;text-align:center;width:80%;position: relative;left: 50%;right: 50%;transform: translateX(-50%);font-size:0.875rem">
- Will export as an *xml file.<br>for you to continuing code nextime</p>
- </div>
- <div class="col l6">
- <p class="translatable_ExportSnapContent"
- style="display:block;text-align:center;width:80%;position: relative;left: 50%;right: 50%;transform: translateX(-50%);font-size:0.875rem">
- Will export to a *png picture.<br>for your reference</p>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div style="display: none;" id="content_blocks"></div>
- <!-- cloud storage modal -->
- <div id="cloud_storage_modal" class="modal modal_closes">
- <div class="modal-content" style="background-color: white;">
- <span class="modal_close" style="padding: 5px;">
- <i class="small material-icons" style="font-size: 1.5rem;">close</i>
- </span>
- <h4 class="translatable_cloudStorageTitle" style="position: relative;z-index: 1050;width: 80%;">Cloud
- Storage</h4>
- <div id="cloud_askLogin"></div>
- <div id="cloud_fileListArea" class="cloud-file" style="display:none">
- </div>
- </div>
- <div id="cloud_modal_preload" style="display:none">
- <div style="position:relative;top:50%;transform:translateY(-50%);height:128px;width:128px;margin:0 auto;">
- <div class="preloader-wrapper big active" style="top:0;left:0">
- <div class="spinner-layer spinner-blue-only">
- <div class="circle-clipper left">
- <div class="circle"></div>
- </div>
- <div class="gap-patch">
- <div class="circle"></div>
- </div>
- <div class="circle-clipper right">
- <div class="circle"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- share modal -->
- <div id="share" class="modal">
- <div class="modal-content">
- <h4 class="">程序分享</h4>
- <div style="text-align: center;">
- <div id="QrImg" style="display: inline-block;"></div>
- </div>
- <p class="qrImgUrl"></p>
- </div>
- </div>
- <!-- 手动选择模式 modal-->
- <div id="selectModule" class="modal selectModuleModal">
- <div class="modal-content" style="text-align: center;">
- <h6 class="translatable_selectModule">选择模块</h6>
- <div
- style="text-align: center;display: flex;flex-direction: row;justify-content: space-between;align-items: center;margin-top: 20px;">
- <div style="display: flex;flex-direction: column;height: 220px;width: 220px;justify-content: center;align-items: center;"
- id="AI_module" onclick="select_Module('AI_module')">
- <span class="translatable_ai_mode" style="margin-bottom: 10px;">AI 模块</span>
- <img src="./images/AI_Module.png" width="200" />
- </div>
- <div style="display: flex;flex-direction: column;height: 220px;width: 220px;justify-content: center;align-items: center;"
- id="IoT_module" onclick="select_Module('IoT_module')">
- <span class="translatable_iot_mode" style="margin-bottom: 10px;">IoT 模块</span>
- <img src="./images/IoT_Module.png" width="200" />
- </div>
- </div>
- <div style="margin-top: 20px;">
- <button onclick="selectModule_confirm()"
- class="waves-effect waves-light btn blue translatable_confirm">确定</button>
- </div>
- </div>
- </div>
- <div class="downbox MouduleBox" id="MouduleBox"
- style="display:none;position: fixed;width:175px;height:122px;right:50px;top:225px;">
- <div>
- <div class="translatable_iot_module">IoT Module</div>
- </div>
- <div>
- <div class="">V 831</div>
- </div>
- <div><a href="//python-blockly.cocorobo.cn" style="color: #424242 !important;"
- class="translatable_cloud_mode">Cloud
- Mode</a></div>
- <div><a href="//ai-blockly.cocorobo.cn" style="color: #424242 !important;"
- class="translatable_javascript_mode">JavaScript Mode</a></div>
- </div>
- <div id="ai_tt" class="MouduleBox"
- style="display:none;position: fixed;width:230px;right:-15px;top:225px;z-index: 1000;">
- <div class="downbox1 ModeBox1 downbox-style">
- <div>
- <div>人工智能教材程序</div>
- <i class="downboxdown1"></i>
- <div class="Hardware2 HarxA1" id="aaaa" style="height:auto;top:-35px">
- <div class="Hardware9">
- <div>三年级</div>
- <i class="downboxdown1"></i>
- <ul class="Hardware4 HarxA1" style="left: calc(100% - 415px);">
- <li>录制语音指令</li>
- <li>语音识别台灯</li>
- <!-- <li>人脸识别防盗门</li> -->
- </ul>
- </div>
- <div class="Hardware4n" style="display: none;">
- <div>四年级</div>
- <i class="downboxdown1"></i>
- <ul class="Hardware4 HarxA1" style="left: calc(100% - 415px);">
- <li>人臉檢測</li>
- <li>物體識別進階</li>
- </ul>
- </div>
- <div class="Hardware5">
- <div>五年级</div>
- <i class="downboxdown1"></i>
- <ul class="Hardware4 HarxA1" style="left: calc(100% - 415px);">
- <li>录制语音指令</li>
- <li>智能窗帘</li>
- <li>水果采摘机器人</li>
- <li>智能质检机器人</li>
- </ul>
- </div>
- <div class="Hardware6">
- <div>六年级</div>
- <i class="downboxdown1"></i>
- <ul class="Hardware4 HarxA1" style="left: calc(100% - 415px);">
- <li>智能交通信号灯</li>
- <li>导盲项链</li>
- <li>二维码包裹分拣机器人</li>
- <li>无人驾驶循环小车</li>
- </ul>
- </div>
- <div class="Hardware7">
- <div>七年级</div>
- <i class="downboxdown1"></i>
- <ul class="Hardware4 HarxA1" style="left: calc(100% - 415px);">
- <li>人脸辨识电子警察</li>
- </ul>
- </div>
- <div class="Hardware8">
- <div>八年级</div>
- <i class="downboxdown1"></i>
- <ul class="Hardware4 HarxA1" style="left: calc(100% - 415px);">
- <li>支付台</li>
- </ul>
- </div>
- </div>
- </div>
- <div>
- <div>IoT 模块基础案例</div>
- <i class="downboxdown1"></i>
- <ul class="Hardware2 HarxA1">
- <li>侧边按键控制蜂鸣器</li>
- <li> 侧边按键控制开关 LED</li>
- <li> 触摸区域控制 LED</li>
- <li> 蜂鸣器警报</li>
- <li> 黑暗环境感应光照灯</li>
- <li> 倾斜方向感应 LED</li>
- <li> 湿度报警器</li>
- <li> 摇晃感应 LED</li>
- <li> LED 显示光线强度值</li>
- </ul>
- </div>
- <div>
- <div>IoT 模块扩展功能案例</div>
- <i class="downboxdown1"></i>
- <ul class="Hardware2 HarxA1">
- <li>使用 LED 灯屏</li>
- <li>使用电机驱动模块</li>
- <li>使用游戏手柄 + LED 灯屏</li>
- <li>使用游戏手柄 + 屏幕模块</li>
- <li>在扩展模块上控制舵机</li>
- <li>屏幕显示Hello World</li>
- <li>屏幕绘制线条动画</li>
- <li>按键控制屏幕直线转动</li>
- <li>按键控制颜色切换</li>
- <li>计步器</li>
- <li>计步器 + LED 灯屏</li>
- <li>使用蓝牙发送数据</li>
- <li>屏幕显示蓝牙接收的数据</li>
- </ul>
- </div>
- <div>
- <div>IoT 模块联网案例</div>
- <i class="downboxdown1"></i>
- <ul class="Hardware2 HarxA1 HarxA1_last" style="top: calc(50% - 50px);">
- <li>按键发送光照数据至 CocoCloud</li>
- <li>按键发送环境数据至 IFTTT</li>
- <li>按键获取光照数据并根据条件亮灯</li>
- <li>定时发送环境数据至 CocoCloud</li>
- <li>定时接收环境数据并根据条件亮灯</li>
- <li>建立 WiFi 热点并显示连接设备数量</li>
- <li style="display: none;">局域网环境数据存储 - 服务器端</li>
- <li style="display: none;">局域网环境数据获取 - 客户端</li>
- <li>连接 WiFi 网络</li>
- <li style="display: none;">模块间按钮状态存储 - 服务端</li>
- <li style="display: none;">模块间按钮状态接收 - 客户端</li>
- <li style="display: none;">模块间进行 WebSocket 实时通信 - 发送端</li>
- <li style="display: none;">模块间进行 WebSocket 实时通信 - 接收端</li>
- <li>同步网络时间</li>
- <li>数字手表显示实时时间</li>
- </ul>
- </div>
- <div>
- <div>AI 模块机器学习案例</div>
- <i class="downboxdown1"></i>
- <ul class="Hardware2 HarxA1">
- <li>人脸辨识智能门</li>
- <li>垃圾分类识别(香港版)</li>
- <li>人脸检测</li>
- <li>物体识别</li>
- <li>人脸检测</li>
- <li>物体识别</li>
- <li>语音录制</li>
- <li>语音识别</li>
- <li>MNIST 手写数字识别</li>
- </ul>
- </div>
- <div>
- <div>AI 自动驾驶</div>
- <i class="downboxdown1"></i>
- <ul class="Hardware2 HarxA1" style="top: calc(50% - 80px)">
- <li>第一場-路標識別(香港標識)</li>
- <li>第二場-巡線(雙線)</li>
- <li>第二場-巡線(單線-靠左行駛)</li>
- <li>第一場-路標識別(香港標識)</li>
- </ul>
- </div>
- </div>
- </div>
- <!-- <iframe id="web" name="web" src="//x.cocorobo.cn/web.html" style="display: none"></iframe> -->
- <!-- 案例modal -->
- <div id="select_Example_modal" class="modal select_Example_modal modal_closes">
- <div class="modal-content" style="background-color: white;height: 100%;">
- <span class="modal_close" style="padding: 5px;right: 15px;top: 10px;">
- <i class="small material-icons" style="font-size: 1.5rem;">close</i>
- </span>
- <h4 class="select_Example_title translatable_select_Example">Example</h4>
- <!-- <div id="cloud_askLogin"></div> -->
- <div id="select_ExampleArea" class="cloud-file" style="background-color: white;height: 90%;">
- <div class="examplate_style">
- <div class="container-middle">
- <div id="item" style="display: flex;flex-direction: column;">
- <div class="con" style="position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-active translatable_basic_use">基础使用</li>
- <li class="container-top-noactive translatable_ExtendedFunction">媒体处理</li>
- <li class="container-top-noactive translatable_AI">AI 智能</li>
- <li class="container-top-noactive translatable_catIoTService">物联网</li>
- <li class="container-top-noactive translatable_Expand">扩展</li>
- </ul>
- </div>
- </div>
- </div>
- <div class="container-middle-1">
- <div id="item_1" style="display: flex;flex-direction: column;">
- <div class="con" style="display: flex;flex-direction: column;position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-active arrow_active translatable_basic_use">基础使用</li>
- <li class="container-top-noactive arrow translatable_screen_module">屏幕模块</li>
- <li class="container-top-noactive arrow translatable_catCamera">摄像头</li>
- <li class="container-top-noactive arrow translatable_catSensor">传感器</li>
- <li class="container-top-noactive arrow translatable_serialcomm_print">串口打印</li>
- <li class="container-top-noactive arrow translatable_catComms">串口通讯</li>
- <li class="container-top-noactive arrow translatable_basic_power">动力</li>
- <li class="container-top-noactive arrow translatable_catSystem">系统功能</li>
- </ul>
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-active translatable_catImageProcess">图形处理</li>
- <li class="container-top-noactive arrow translatable_catAudio">音频处理</li>
- <li class="container-top-active translatable_catIV">视频处理</li>
- </ul>
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-active translatable_catModels">AI 模型</li>
- </ul>
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-active translatable_xunfeiIndetify">在线识别</li>
- </ul>
- <!-- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-active translatable_xunfeiIndetify">在线识别</li>
- </ul> -->
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-active translatable_catBasics">物联网</li>
- <li class="container-top-active translatable_catWeb">网络</li>
- </ul>
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-active translatable_extended_use">系统</li>
- </ul>
- </div>
- </div>
- </div>
- <div class="container-bottom" id="example">
- <div class="con" style="position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive" onclick="clickLoadingExample('基础/按钮控制LED.xml')">
- <div class="translatable_basis_led">按钮控制LED灯亮灭</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('基础/按键控制RGB灯亮.xml')">
- <div class="translatable_basis_RGB">按键控制RGB灯亮</div>
- </li>
- </ul>
- </div>
- <div class="con" style="display: none;position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive" onclick="clickLoadingExample('屏幕显示hello_world.xml')">
- <div class="translatable_select_thwos">屏幕显示Hello World</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('屏幕/自动换行.xml')">
- <div class="translatable_new_line">自动换行</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('屏幕显示实心矩形.xml')">
- <div class="translatable_show_rectangle">屏幕显示实心矩形</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('屏幕加载图片.xml')">
- <div class="translatable_show_image">屏幕显示图片</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('竖屏显示矩形.xml')">
- <div class="translatable_portrait_screen_rectangle">竖屏显示矩形</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('屏幕/自动切换图片.xml')">
- <div class="translatable_switch_pictures">自动切换图片</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('屏幕/按键切换背景色.xml')">
- <div class="translatable_switch_background">按键切换背景色</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('屏幕/旋转指定角度.xml')">
- <div class="translatable_Angular_rotation">旋转指定角度</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('屏幕/小游戏:漫步者.xml')">
- <div class="translatable_Rambler">小游戏:漫步者</div>
- </li>
- </ul>
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive" onclick="clickLoadingExample('照相机.xml')">
- <div class="translatable_select_MC">照相机</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('图像传输显示电脑.xml')">
- <div class="translatable_img_transmission_show">图像传输显示电脑</div>
- </li>
- </ul>
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive" onclick="clickLoadingExample('传感器/光照值.xml')">
- <div class="translatable_light_value">光照值显示</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('传感器/温湿度.xml')">
- <div class="translatable_temperature_and_humidity">温湿度屏幕显示</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('屏幕/贪吃蛇.xml')">
- <div class="translatable_select_greedy_snake">贪吃蛇</div>
- </li>
- <!-- <li class="container-top-noactive" onclick="clickLoadingExample('传感器/加速度.xml')">
- <div class="translatable_acceleration_value">QMI8658 加速度值显示</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('传感器/旋转值.xml')">
- <div class="translatable_rotation_value">QMI8658 旋转值显示</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('传感器/倾斜角度.xml')">
- <div class="translatable_angle_value">QMI8658 倾斜角度显示</div>
- </li> -->
- </ul>
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive" onclick="clickLoadingExample('输出Hello_world.xml')">
- <div class="translatable_print_hello_world">输出hello World</div>
- </li>
- </ul>
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive" onclick="clickLoadingExample('串口/串口发送数据至其他设备.xml')">
- <div class="translatable_serial_comm_fa">串口通信(发)</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('串口/uart_receive.xml')">
- <div class="translatable_serial_comm">串口通信(收)</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('串口/USB串口通信.xml')">
- <div class="translatable_serial_arduino_comm">通过USB向arduino发送和接收数据</div>
- </li>
- </ul>
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive" onclick="clickLoadingExample('动力/舵机程序.xml')">
- <div class="translatable_fullRotate">控制舵机</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('动力/电机程序.xml')">
- <div class="translatable_motor_rotation">电机旋转</div>
- </li>
- </ul>
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive" onclick="clickLoadingExample('多线程.xml')">
- <div class="translatable_sysThird">多线程</div>
- </li>
- </ul>
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive" onclick="clickLoadingExample('图像处理/区域颜色分析.xml')">
- <div class="translatable_area_color_analysis">区域颜色分析</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('图像处理/循线-单.xml')">
- <div class="translatable_ai_tpl2">循线(单线)</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('图像处理/二维码识别.xml')">
- <div class="translatable_QR_code_recognition">二维码识别</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('图像处理/条形码识别.xml')">
- <div class="translatable_bar_code">条形码识别</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('图像处理/寻找色块.xml')">
- <div class="translatable_select_LFGC">寻找蓝色</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('图像处理/寻找蓝色并追踪.xml')">
- <div class="translatable_select_FGAAT">寻找蓝色并追踪</div>
- </li>
- </div>
- <div class="con" style="display: none;position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <!-- <li class="container-top-noactive" onclick="clickLoadingExample('屏幕绘制直线.xml')">
- <div class="translatable_screen_module">屏幕绘制直线</div>
- </li> -->
- <li class="container-top-noactive" onclick="clickLoadingExample('luzhiyinpin.xml')">
- <div class="translatable_Record_audio">录制音频</div>
- </li>
- <!-- <li class="container-top-noactive" onclick="clickLoadingExample('bofangyinpin.xml')">
- <div class="translatable_select_PAF">播放音频</div>
- </li> -->
- <!-- <li class="container-top-noactive" onclick="clickLoadingExample('video/音频播放(2).xml')">
- <div class="translatable_select_PAF2">播放音频2</div>
- </li> -->
- </ul>
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive"
- onclick="clickLoadingExample('video/play_vidoe.xml')">
- <div class="translatable_paly_video">播放视频</div>
- </li>
- </ul>
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive" onclick="clickLoadingExample('AI/人脸检测.xml')">
- <div class="translatable_basis_face_recognition">人脸检测</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('AI/人脸采集.xml')">
- <div class="translatable_face_collection">人脸识别(采集人脸)</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('AI/人脸识别.xml')">
- <div class="translatable_face_recognition">人脸识别(识别人脸)</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('AI/物体检测.xml')">
- <div class="translatable_basis_object_recognition">物体检测</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('AI/猜拳手势识别.xml')">
- <div class="translatable_Guesswork_recognition">猜拳手势识别</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('AI/实时边缘检测.xml')">
- <div class="translatable_edge_detection">实时边缘检测</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('AI/图片边缘检测.xml')">
- <div class="translatable_image_edge_detection">图片边缘检测</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('AI/数字识别.xml')">
- <div class="translatable_digital_recognition">数字识别</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('AI/自学习.xml')">
- <div class="translatable_self_learning">自学习分类</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('AI/自学习识别.xml')">
- <div class="translatable_self_learning_recognize">自学习分类识别</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('AI/自定义训练识别.xml')">
- <div class="translatable_custom_training">自定义训练识别</div>
- </li>
- <!-- <li class="container-top-noactive" onclick="clickLoadingExample('AI/语音录制识别.xml')">
- <div class="translatable_recorded_voice_command">语音录制识别</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('AI/语音录制(识别).xml')">
- <div class="translatable_AI_speech_1">语音录制识别</div>
- </li> -->
- <li class="container-top-noactive" onclick="clickLoadingExample('AI/拼音识别.xml')">
- <div class="translatable_AI_speech_2">语音拼音识别</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('AI/车牌识别.xml')">
- <div class="translatable_basis_card_recognition">车牌识别</div>
- </li>
- <li class="container-top-noactive"
- onclick="clickLoadingExample('AI/numpyMnist训练模型.xml')">
- <div class="translatable_numpy_mnist_train_model">numpy + mnist 训练模型</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('AI/numpyMnist识别.xml')">
- <div class="translatable_numpy_mnist_result">numpy + mnist 识别</div>
- </li>
- </ul>
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive" onclick="clickLoadingExample('GPT/语音转文字.xml')">
- <div class="translatable_VoiceIndetify">在线语音识别</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('GPT/文字转语音.xml')">
- <div class="translatable_textConVoice">文本转语音并播放</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('GPT/文生图.xml')">
- <div class="translatable_GPT_text_to_img">文生图</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('GPT/图生文.xml')">
- <div class="translatable_GPT_img_to_text">图生文</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('GPT/问答.xml')">
- <div class="translatable_GPT_Dialogue">GPT 对话</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('GPT/ai智能问答.xml')">
- <div class="translatable_GPT_Intelligence_Dialogue">ai智能问答</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('GPT/多智能体.xml')">
- <div class="translatable_more_Intelligence_Dialogue">多智能体</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/在线人脸检测.xml')">
- <div class="translatable_FaceIndetify">在线人脸识别</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/机器翻译.xml')">
- <div class="translatable_machine_translation">机器翻译</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/文字识别.xml')">
- <div class="translatable_Handwritten_texts">在线文字识别</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/公式识别.xml')">
- <div class="translatable_formula">公式识别</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/情绪识别.xml')">
- <div class="translatable_AI_emotion">情绪识别</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/手势识别.xml')">
- <div class="translatable_gesturesTitle">手势识别</div>
- </li>
- </ul>
- </div>
- <!-- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/在线语音识别.xml')">
- <div class="translatable_VoiceIndetify">在线语音识别</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/在线文本转语音并播放.xml')">
- <div class="translatable_textConVoice">文本转语音并播放</div>
- </li>
- </ul>
- </div> -->
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/设置wifi联网.xml')">
- <div class="translatable_set_Wifi">设置wifi联网</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('web/同步网络时间.xml')">
- <div class="translatable_select_snt">同步网络时间</div>
- </li>
- </ul>
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive" onclick="clickLoadingExample('web/获取网络天气.xml')">
- <div class="translatable_get_web_weather">获取网络天气</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('web/云端发送光线值.xml')">
- <div class="translatable_serial_comm_iot_send">云端发送光线值</div>
- </li>
- </ul>
- </div>
- <div class="con" style="display: none; position: relative;">
- <ul style="display: flex;flex-direction: column;">
- <li class="container-top-noactive" onclick="clickLoadingExample('扩展/LED灯带.xml')">
- <div class="translatable_catLEDStrip">LED灯带</div>
- </li>
- <li class="container-top-noactive" onclick="clickLoadingExample('扩展/呼吸灯.xml')">
- <div class="translatable_BreathingLamp">呼吸灯</div>
- </li>
- <!-- <li class="container-top-noactive" onclick="clickLoadingExample('讯飞/在线物体识别.xml')">
- <div class="translatable_online_object_indetify">物体识别</div>
- </li> -->
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- webadb 文件 -->
- <div id="webadbIframeFile" class="modal modal_closes">
- <span class="modal_close" style="padding: 5px;position: absolute;right: 0;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;">close</i></span>
- <div id="file_manager_back" onclick="document.getElementById('file_manager').contentWindow.history.back()"
- style="padding: 5px;position: absolute;left: -2px;top: 7px;cursor: pointer;width: 35px;"><i
- class="small material-icons" style="font-size: 1.5rem;">arrow_back</i></div>
- <iframe id="file_manager" frameborder="0" style="width: 100%;height: 100%;" scrolling="no"
- allow="camera *; fullscreen *;fullscreen 'src'"></iframe>
- </div>
- <!-- 模型下载modal -->
- <div id="select_Model_download_modal" class="modal select_Example_modal modal_closes">
- <span class="modal_close" style="padding: 22px;position: absolute;right: 0;cursor: pointer;"><i
- class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#select_Model_download_modal').modal('close')">close</i></span>
- <div id="TM_login_Model_download_modal" style="display: none;"></div>
- <div id="Model_download_modal" class="modal-content" style="background-color: white;height: 95%;padding: 30px;">
- <!-- <span class="modal_close" style="padding: 5px;right: 15px;top: 20px;">
- <i class="small material-icons" style="font-size: 1.5rem;">close</i>
- </span> -->
- <h4 class="select_Example_title translatable_model_download" style="width: 80%;">Model Download</h4>
- <!-- <div id="cloud_askLogin"></div> -->
- <div id="select_ExampleArea" class="cloud-file"
- style="background-color: white;height: 90%;overflow-y: auto;overflow-x: hidden;margin-top: 40px;">
- <div
- style="margin: 40px auto 0 auto;height: 100%;font-size: 16px;background-color: white;flex-direction: row;display: flex;margin-top: 0;">
- <div style="display: flex;flex-direction: column;width: 98%;">
- <div
- style="display: flex;flex-direction: row;justify-content: space-between;min-height: 400px;">
- <div class="model_download_modal_column"
- style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
- <div class="modelDownloadItemImg"
- style="background: url('./images/model/AI训练平台.jpg') no-repeat center center;position: relative;">
- <!-- <div
- style="background: #6689FC;border-radius: 0px 20px 0px 20px;position: absolute;right: 0;padding: 7px;">
- <span
- style="font-size: 15px;font-weight: bold;color: #FFFFFF;line-height: 16px;"
- class="translatable_model_download_new">最新上线</span>
- </div> -->
- </div>
- <div style="display: flex;flex-direction: row;justify-content: space-between;">
- <div class="modelDownloadItemTitle translatable_model_download_AI_training">
- AI 训练平台</div>
- <div class="vision_category"
- style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
- <div class="modelDownloadItemCategory">
- <span
- class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
- </div>
- </div>
- </div>
- <div class="modelDownloadItemDesc translatable_model_download_AI_training_desc">
- 使用可可乐博训练平台可以帮助您处理数据集,引导您一步步的开始模型训练。
- </div>
- <div style="text-align: center;width: 100%;">
- translatable <button class="modelDownloadItemBtn"
- onclick="enterTraining('//beta.model-training.cocorobo.hk')">
- <span
- class="modelDownloadItemBtntext translatable_app_center_enter_button">进入</span>
- </button>
- </div>
- </div>
- <div class="model_download_modal_column"
- style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
- <div class="modelDownloadItemImg"
- style="background: url('./images/model/AI训练平台.jpg') no-repeat center center;position: relative;">
- <!-- <div
- style="background: #6689FC;border-radius: 0px 20px 0px 20px;position: absolute;right: 0;padding: 7px;">
- <span
- style="font-size: 15px;font-weight: bold;color: #FFFFFF;line-height: 16px;"
- class="translatable_model_download_new">最新上线</span>
- </div> -->
- </div>
- <div style="display: flex;flex-direction: row;justify-content: space-between;">
- <div class="modelDownloadItemTitle translatable_model_download_AI_training">
- AI 训练平台</div>
- <div class="vision_category"
- style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
- <div class="modelDownloadItemCategory">
- <span
- class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
- </div>
- </div>
- </div>
- <div class="modelDownloadItemDesc translatable_model_download_AI_training_desc">
- 使用可可乐博训练平台可以帮助您处理数据集,引导您一步步的开始模型训练。
- </div>
- <div style="text-align: center;width: 100%;">
- <button class="modelDownloadItemBtn"
- onclick="enterTraining('//xunlian.cocorobo.cn')">
- <span
- class="modelDownloadItemBtntext translatable_app_center_enter_button">进入</span>
- </button>
- </div>
- </div>
- <div class="model_download_modal_column"
- style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
- <div class="modelDownloadItemImg"
- style="background: url('./images/model/手势识别追踪模型.jpg') no-repeat center center;position: relative;">
- <div
- style="background: #6689FC;border-radius: 0px 20px 0px 20px;position: absolute;right: 0;padding: 7px;">
- <span
- style="font-size: 15px;font-weight: bold;color: #FFFFFF;line-height: 16px;"
- class="translatable_model_download_new">最新上线</span>
- </div>
- </div>
- <div style="display: flex;flex-direction: row;justify-content: space-between;">
- <div class="modelDownloadItemTitle translatable_model_download_gesture_recognition">
- 手势识别追踪模型</div>
- <div class="vision_category"
- style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
- <div class="modelDownloadItemCategory">
- <span
- class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
- </div>
- </div>
- </div>
- <div class="modelDownloadItemDesc translatable_model_download_gesture_recognition_desc">
- 识别人的不同手势,并追踪人手相对于屏幕所处的位置
- </div>
- <div style="text-align: center;width: 100%;">
- <button class="modelDownloadbtndisabled" disabled>
- <span class="modelDownloadItemBtntext translatable_download_file">下载</span>
- </button>
- </div>
- </div>
- <div class="model_download_modal_column"
- style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
- <div class="modelDownloadItemImg"
- style="background: url('./images/model/人脸识别追踪模型.jpg') no-repeat center center;">
- </div>
- <div style="display: flex;flex-direction: row;justify-content: space-between;">
- <div class="modelDownloadItemTitle translatable_model_download_face_recognition">
- 手势识别追踪模型</div>
- <div class="vision_category"
- style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
- <div class="modelDownloadItemCategory">
- <span
- class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
- </div>
- </div>
- </div>
- <div class="modelDownloadItemDesc translatable_model_download_face_recognition_desc">
- 识别人的不同手势,并追踪人手相对于屏幕所处的位置
- </div>
- <div style="text-align: center;width: 100%;">
- <button class="modelDownloadItemBtn"
- onclick="downloadModel('./kmodels/face-recognition.kmodel')">
- <span class="modelDownloadItemBtntext translatable_download_file">下载</span>
- </button>
- </div>
- </div>
- <div class="model_download_modal_column"
- style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
- <div class="modelDownloadItemImg"
- style="background: url('./images/model/物体识别追踪模型.jpg') no-repeat center center;">
- </div>
- <div style="display: flex;flex-direction: row;justify-content: space-between;">
- <div class="modelDownloadItemTitle translatable_model_download_object_recognition">
- 手势识别追踪模型</div>
- <div class="vision_category"
- style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
- <div class="modelDownloadItemCategory">
- <span
- class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
- </div>
- </div>
- </div>
- <div class="modelDownloadItemDesc translatable_model_download_object_recognition_desc">
- 识别人的不同手势,并追踪人手相对于屏幕所处的位置
- </div>
- <div style="text-align: center;width: 100%;">
- <button class="modelDownloadItemBtn"
- onclick="downloadModel('./kmodels/tinyyolo_v2_20class.kmodel')">
- <span class="modelDownloadItemBtntext translatable_download_file">下载</span>
- </button>
- </div>
- </div>
- </div>
- <div
- style="display: flex;flex-direction: row;justify-content: space-between;margin-top: 40px;min-height: 400px;">
- <div class="model_download_modal_column"
- style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
- <div class="modelDownloadItemImg"
- style="background: url('./images/model/普通话识别模型.jpg') no-repeat center center;">
- </div>
- <div style="display: flex;flex-direction: row;justify-content: space-between;">
- <div
- class="modelDownloadItemTitle translatable_model_download_mandarin_recognition">
- 手势识别追踪模型</div>
- <div class="vision_category"
- style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
- <div class="modelDownloadItemCategory">
- <span
- class="modelDownloadItemCategoryTitle translatable_model_download_voice">视觉</span>
- </div>
- </div>
- </div>
- <div
- class="modelDownloadItemDesc translatable_model_download_mandarin_recognition_desc">
- 识别人的不同手势,并追踪人手相对于屏幕所处的位置
- </div>
- <div style="text-align: center;width: 100%;">
- <button class="modelDownloadbtndisabled" disabled>
- <span class="modelDownloadItemBtntext translatable_download_file">下载</span>
- </button>
- </div>
- </div>
- <div class="model_download_modal_column"
- style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
- <div class="modelDownloadItemImg"
- style="background: url('./images/model/交通路标识别模型.jpg') no-repeat center center;">
- </div>
- <div style="display: flex;flex-direction: row;justify-content: space-between;">
- <div
- class="modelDownloadItemTitle translatable_model_download_traffic_sign_recognition">
- 手势识别追踪模型</div>
- <div class="vision_category"
- style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
- <div class="modelDownloadItemCategory">
- <span
- class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
- </div>
- </div>
- </div>
- <div
- class="modelDownloadItemDesc translatable_model_download_traffic_sign_recognition_desc">
- 识别人的不同手势,并追踪人手相对于屏幕所处的位置
- </div>
- <div style="text-align: center;width: 100%;">
- <button class="modelDownloadbtndisabled" disabled>
- <span class="modelDownloadItemBtntext translatable_download_file">下载</span>
- </button>
- </div>
- </div>
- <div class="model_download_modal_column"
- style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
- <div class="modelDownloadItemImg"
- style="background: url('./images/model/垃圾分类识别模型.jpg') no-repeat center center;">
- </div>
- <div style="display: flex;flex-direction: row;justify-content: space-between;">
- <div
- class="modelDownloadItemTitle translatable_model_download_refuse_classification_recognition">
- 手势识别追踪模型</div>
- <div class="vision_category"
- style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
- <div class="modelDownloadItemCategory">
- <span
- class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
- </div>
- </div>
- </div>
- <div
- class="modelDownloadItemDesc translatable_model_download_refuse_classification_recognition_desc">
- 识别人的不同手势,并追踪人手相对于屏幕所处的位置
- </div>
- <div style="text-align: center;width: 100%;">
- <button class="modelDownloadbtndisabled" disabled>
- <span class="modelDownloadItemBtntext translatable_download_file">下载</span>
- </button>
- </div>
- </div>
- <div class="model_download_modal_column"
- style="width: 23%;height: 400px;background: #E6F3FF;border-radius: 20px;">
- <div class="modelDownloadItemImg"
- style="background: url('./images/model/手写数字识别模型.jpg') no-repeat center center;">
- </div>
- <div style="display: flex;flex-direction: row;justify-content: space-between;">
- <div
- class="modelDownloadItemTitle translatable_model_download_handwritten_recognition">
- 手势识别追踪模型</div>
- <div class="vision_category"
- style="display: flex;flex-direction: column;justify-content: center;height: 72px;">
- <div class="modelDownloadItemCategory">
- <span
- class="modelDownloadItemCategoryTitle translatable_model_download_vision">视觉</span>
- </div>
- </div>
- </div>
- <div
- class="modelDownloadItemDesc translatable_model_download_handwritten_recognition_desc">
- 识别人的不同手势,并追踪人手相对于屏幕所处的位置
- </div>
- <div style="text-align: center;width: 100%;">
- <button class="modelDownloadbtndisabled" disabled>
- <span class="modelDownloadItemBtntext translatable_download_file">下载</span>
- </button>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div id="loadModal" class="modal loadModals_Example_modal modal_closes">
- <div class="modal-content update-new" style="display: block;height: 100%;">
- <h4 style="display: inline-block;" class="select_load_title translatable_LoadingH4">最新更新及注意事项</h4>
- <span class="updateTime" style="font-size: 2rem;font-weight: bold;">11</span>
- <span class="modal_close" style="padding: 5px;right: 15px;top: 10px;">
- <i class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#loadModal').modal('close')">close</i>
- </span>
- <div style="display: flex;justify-content: space-between;height: calc(100% - 100px);">
- <!-- <p>更新内容</p> -->
- <div class="loadContent left-bottom-radius">
- <h6 class="UpdateContent translatable_UpdateContent">更新内容</h6>
- <ul class="updateConten">
- <li>
- <span class="translatable_updateblock">积木</span>
- <ul id="blockLis" class="updateContent">
- </ul>
- </li>
- <li>
- <span class="translatable_updateexample">样例</span>
- <ul id="exampleLis" class="updateContent">
- </ul>
- </li>
- </ul>
- </div>
- <!-- <p>更新注意事项</p> -->
- <div class="loadContent right-bottom-radius">
- <h6 class="attention-Content translatable_attentionContent">注意事项</h6>
- <ul class="updateConten" id="noteLis">
- </ul>
- </div>
- </div>
- <div style="padding:1% 0;text-align: right;">
- <span class="btn blue translatable_HistoricalUpdate" onclick="switchUpdate('2')">历史更新</span>
- </div>
- </div>
- <div class="modal-content update-old" style="display: none;height: 100%;">
- <h4 class="select_load_title translatable_LoadingH4history">历史更新记录
- </h4>
- <span class="updateTime"></span>
- <span class="modal_close" style="padding: 5px;right: 15px;top: 10px;">
- <i class="small material-icons" style="font-size: 1.5rem;"
- onclick="$('#loadModal').modal('close')">close</i>
- </span>
- <div style="display: flex;justify-content: space-between;height: calc(100% - 100px);">
- <!-- <p>更新内容</p> -->
- <div class="loadContent">
- <h6 class="UpdateContent translatable_UpdateContent">更新内容</h6>
- <ul class="updateConten" id="leftUpdateOld">
- </ul>
- </div>
- <!-- <p>更新注意事项</p> -->
- <div class="loadContent">
- <h6 class="attention-Content translatable_attentionContent">注意事项</h6>
- <ul class="updateConten" id="noteLisOld">
- </ul>
- </div>
- </div>
- <div style="padding:1% 0;text-align: right;">
- <span class="btn blue translatable_LatestUpdate" onclick="switchUpdate('1')">最新更新</span>
- </div>
- </div>
- </div>
- </body>
- <script>
- $("#modal_logout_btn").on("click", function () {
- $("#modal_logout_btn").removeClass('blue');
- $("#modal_logout_btn").css('background', 'gray')
- $(".svgImg").css('display', 'block')
- $(".translate-signout").css('opacity', '0.5')
- $.ajax(`${CCB.base_url}api/logout`, {
- type: "GET",
- xhrFields: {
- withCredentials: true
- },
- success: () => {
- // $('#login_iframe').attr('src', '//staging.cocorobo.cn/login/');
- appendIframe("TM_login");
- $('#TM_login').children().css("height", "820px");
- appendIframe("TM_login_Model_download_modal");
- $('#TM_login_Model_download_modal').children().css("height", "820px");
- $('#TM_login_Model_download_modal').children().css("margin-top", "-225px");
- appendIframe("TM_login_object");
- $('#TM_login_object').children().css("height", "820px");
- appendIframe("TM_login_posenet");
- $('#TM_login_posenet').children().css("height", "820px");
- appendIframe("TM_posenet_login");
- $('#TM_posenet_login').children().css("height", "820px");
- appendIframe("before_login");
- appendIframe("cloud_askLogin");
- appendIframe("TM_login_webcam_capture_modal");
- $('#TM_login_webcam_capture_modal').children().css("width", "820px");
- $('#TM_login_webcam_capture_modal').children().css("height", "820px");
- appendIframe("TM_login_gesture_recog_modal");
- $('#TM_login_gesture_recog_modal').children().css("width", "820px");
- $('#TM_login_gesture_recog_modal').children().css("height", "820px");
- appendIframe("TM_login_voice_input_modal");
- $('#TM_login_voice_input_modal').children().css("width", "820px");
- $('#TM_login_voice_input_modal').children().css("height", "820px");
- appendIframe("TM_center_game");
- $('#TM_center_game').children().css("margin-top", "-300px");
- $('#TM_center_game').children().css("height", "820px");
- Materialize.toast(CCB.str_group.success_userLogout, 4000);
- CCB.userState = false;
- $("#cloud_fileListArea").html("");
- loginModalStatus();
- $("#modal_logout_btn").addClass('blue')
- $(".svgImg").css('display', 'none');
- $(".translate-signout").css('opacity', '1')
- }
- });
- });
- </script>
- <script type="text/javascript" src="./src/blockly/demo.js"></script>
- <script type='text/javascript' src="./src/blockly/recorder.js"></script>
- <script type='text/javascript' src="./src/blockly/jquery.s2t.js"></script>
- </html>
|