UNPKG

newdavinci-blockly

Version:
283 lines (280 loc) 8.91 kB
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="google" value="notranslate"> <title>Blockly Demo:</title> <link rel="stylesheet" href="style.css"> <script src="/storage.js"></script> <script src="../../blockly_compressed.js"></script> <script src="../../blocks_compressed.js"></script> <script src="../../javascript_compressed.js"></script> <script src="../../python_compressed.js"></script> <script src="../../dart_compressed.js"></script> <script src="code.js"></script> </head> <body> <table width="100%" height="100%"> <tr> <td> <h1><a href="https://developers.google.com/blockly/">Blockly</a> &gt; <a href="../index.html">Demos</a> &gt; <span id="title">...</span> </h1> </td> <td class="farSide"> <select id="languageMenu"></select> </td> </tr> <tr> <td colspan=2> <table width="100%"> <tr id="tabRow" height="1em"> <td id="tab_blocks" class="tabon">...</td> <td class="tabmin">&nbsp;</td> <td id="tab_javascript" class="taboff">JavaScript</td> <td class="tabmin">&nbsp;</td> <td id="tab_python" class="taboff">Python</td> <td class="tabmin">&nbsp;</td> <td id="tab_dart" class="taboff">Dart</td> <td class="tabmin">&nbsp;</td> <td id="tab_xml" class="taboff">XML</td> <td class="tabmax"> <button id="trashButton" class="notext" title="..."> <img src='../../media/1x1.gif' class="trash icon21"> </button> <button id="linkButton" class="notext" title="..."> <img src='../../media/1x1.gif' class="link icon21"> </button> <button id="runButton" class="notext primary" title="..."> <img src='../../media/1x1.gif' class="run icon21"> </button> </td> </tr> </table> </td> </tr> <tr> <td height="99%" colspan=2 id="content_area"> </td> </tr> </table> <div id="content_blocks" class="content"></div> <pre id="content_javascript" class="content"></pre> <pre id="content_python" class="content"></pre> <pre id="content_dart" class="content"></pre> <textarea id="content_xml" class="content" wrap="off"></textarea> <xml id="toolbox" style="display: none"> <category id="catLogic"> <block type="controls_if"></block> <block type="logic_compare"></block> <block type="logic_operation"></block> <block type="logic_negate"></block> <block type="logic_boolean"></block> <block type="logic_null"></block> <block type="logic_ternary"></block> </category> <category id="catLoops"> <block type="controls_repeat_ext"> <value name="TIMES"> <block type="math_number"> <field name="NUM">10</field> </block> </value> </block> <block type="controls_whileUntil"></block> <block type="controls_for"> <value name="FROM"> <block type="math_number"> <field name="NUM">1</field> </block> </value> <value name="TO"> <block type="math_number"> <field name="NUM">10</field> </block> </value> <value name="BY"> <block type="math_number"> <field name="NUM">1</field> </block> </value> </block> <block type="controls_forEach"></block> <block type="controls_flow_statements"></block> </category> <category id="catMath"> <block type="math_number"></block> <block type="math_arithmetic"></block> <block type="math_single"></block> <block type="math_trig"></block> <block type="math_constant"></block> <block type="math_number_property"></block> <block type="math_change"> <value name="DELTA"> <block type="math_number"> <field name="NUM">1</field> </block> </value> </block> <block type="math_round"></block> <block type="math_on_list"></block> <block type="math_modulo"></block> <block type="math_constrain"> <value name="LOW"> <block type="math_number"> <field name="NUM">1</field> </block> </value> <value name="HIGH"> <block type="math_number"> <field name="NUM">100</field> </block> </value> </block> <block type="math_random_int"> <value name="FROM"> <block type="math_number"> <field name="NUM">1</field> </block> </value> <value name="TO"> <block type="math_number"> <field name="NUM">100</field> </block> </value> </block> <block type="math_random_float"></block> </category> <category id="catText"> <block type="text"></block> <block type="text_join"></block> <block type="text_append"> <value name="TEXT"> <block type="text"></block> </value> </block> <block type="text_length"></block> <block type="text_isEmpty"></block> <block type="text_indexOf"> <value name="VALUE"> <block type="variables_get"> <field name="VAR" class="textVar">...</field> </block> </value> </block> <block type="text_charAt"> <value name="VALUE"> <block type="variables_get"> <field name="VAR" class="textVar">...</field> </block> </value> </block> <block type="text_getSubstring"> <value name="STRING"> <block type="variables_get"> <field name="VAR" class="textVar">...</field> </block> </value> </block> <block type="text_changeCase"></block> <block type="text_trim"></block> <block type="text_print"></block> <block type="text_prompt_ext"> <value name="TEXT"> <block type="text"></block> </value> </block> </category> <category id="catLists"> <block type="lists_create_empty"></block> <block type="lists_create_with"></block> <block type="lists_repeat"> <value name="NUM"> <block type="math_number"> <field name="NUM">5</field> </block> </value> </block> <block type="lists_length"></block> <block type="lists_isEmpty"></block> <block type="lists_indexOf"> <value name="VALUE"> <block type="variables_get"> <field name="VAR" class="listVar">...</field> </block> </value> </block> <block type="lists_getIndex"> <value name="VALUE"> <block type="variables_get"> <field name="VAR" class="listVar">...</field> </block> </value> </block> <block type="lists_setIndex"> <value name="LIST"> <block type="variables_get"> <field name="VAR" class="listVar">...</field> </block> </value> </block> <block type="lists_getSublist"> <value name="LIST"> <block type="variables_get"> <field name="VAR" class="listVar">...</field> </block> </value> </block> <block type="lists_split"> <value name="DELIM"> <block type="text"> <field name="TEXT">,</field> </block> </value> </block> </category> <category id="catColour"> <block type="colour_picker"></block> <block type="colour_random"></block> <block type="colour_rgb"> <value name="RED"> <block type="math_number"> <field name="NUM">100</field> </block> </value> <value name="GREEN"> <block type="math_number"> <field name="NUM">50</field> </block> </value> <value name="BLUE"> <block type="math_number"> <field name="NUM">0</field> </block> </value> </block> <block type="colour_blend"> <value name="COLOUR1"> <block type="colour_picker"> <field name="COLOUR">#ff0000</field> </block> </value> <value name="COLOUR2"> <block type="colour_picker"> <field name="COLOUR">#3333ff</field> </block> </value> <value name="RATIO"> <block type="math_number"> <field name="NUM">0.5</field> </block> </value> </block> </category> <sep></sep> <category id="catVariables" custom="VARIABLE"></category> <category id="catFunctions" custom="PROCEDURE"></category> </xml> </body> </html>