Debian Codegraph @

blockly/demos/code/index.html

raw
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <meta name="google" value="notranslate">
6 <title>Blockly Demo:</title>
7 <link rel="stylesheet" href="style.css">
8 <script src="/storage.js"></script>
9 <script src="../../blockly_compressed.js"></script>
10 <script src="../../blocks_compressed.js"></script>
11 <script src="../../javascript_compressed.js"></script>
12 <script src="../../python_compressed.js"></script>
13 <script src="../../php_compressed.js"></script>
14 <script src="../../dart_compressed.js"></script>
15 <script src="code.js"></script>
16 </head>
17 <body>
18 <table width="100%" height="100%">
19 <tr>
20 <td>
21 <h1><a href="https://developers.google.com/blockly/">Blockly</a>&rlm; &gt;
22 <a href="../index.html">Demos</a>&rlm; &gt;
23 <span id="title">...</span>
24 </h1>
25 </td>
26 <td class="farSide">
27 <select id="languageMenu"></select>
28 </td>
29 </tr>
30 <tr>
31 <td colspan=2>
32 <table width="100%">
33 <tr id="tabRow" height="1em">
34 <td id="tab_blocks" class="tabon">...</td>
35 <td class="tabmin">&nbsp;</td>
36 <td id="tab_javascript" class="taboff">JavaScript</td>
37 <td class="tabmin">&nbsp;</td>
38 <td id="tab_python" class="taboff">Python</td>
39 <td class="tabmin">&nbsp;</td>
40 <td id="tab_php" class="taboff">PHP</td>
41 <td class="tabmin">&nbsp;</td>
42 <td id="tab_dart" class="taboff">Dart</td>
43 <td class="tabmin">&nbsp;</td>
44 <td id="tab_xml" class="taboff">XML</td>
45 <td class="tabmax">
46 <button id="trashButton" class="notext" title="...">
47 <img src='../../media/1x1.gif' class="trash icon21">
48 </button>
49 <button id="linkButton" class="notext" title="...">
50 <img src='../../media/1x1.gif' class="link icon21">
51 </button>
52 <button id="runButton" class="notext primary" title="...">
53 <img src='../../media/1x1.gif' class="run icon21">
54 </button>
55 </td>
56 </tr>
57 </table>
58 </td>
59 </tr>
60 <tr>
61 <td height="99%" colspan=2 id="content_area">
62 </td>
63 </tr>
64 </table>
65 <div id="content_blocks" class="content"></div>
66 <pre id="content_javascript" class="content"></pre>
67 <pre id="content_php" class="content"></pre>
68 <pre id="content_python" class="content"></pre>
69 <pre id="content_dart" class="content"></pre>
70 <textarea id="content_xml" class="content" wrap="off"></textarea>
71
72 <xml id="toolbox" style="display: none">
73 <category id="catLogic" colour="210">
74 <block type="controls_if"></block>
75 <block type="logic_compare"></block>
76 <block type="logic_operation"></block>
77 <block type="logic_negate"></block>
78 <block type="logic_boolean"></block>
79 <block type="logic_null"></block>
80 <block type="logic_ternary"></block>
81 </category>
82 <category id="catLoops" colour="120">
83 <block type="controls_repeat_ext">
84 <value name="TIMES">
85 <shadow type="math_number">
86 <field name="NUM">10</field>
87 </shadow>
88 </value>
89 </block>
90 <block type="controls_whileUntil"></block>
91 <block type="controls_for">
92 <value name="FROM">
93 <shadow type="math_number">
94 <field name="NUM">1</field>
95 </shadow>
96 </value>
97 <value name="TO">
98 <shadow type="math_number">
99 <field name="NUM">10</field>
100 </shadow>
101 </value>
102 <value name="BY">
103 <shadow type="math_number">
104 <field name="NUM">1</field>
105 </shadow>
106 </value>
107 </block>
108 <block type="controls_forEach"></block>
109 <block type="controls_flow_statements"></block>
110 </category>
111 <category id="catMath" colour="230">
112 <block type="math_number"></block>
113 <block type="math_arithmetic">
114 <value name="A">
115 <shadow type="math_number">
116 <field name="NUM">1</field>
117 </shadow>
118 </value>
119 <value name="B">
120 <shadow type="math_number">
121 <field name="NUM">1</field>
122 </shadow>
123 </value>
124 </block>
125 <block type="math_single">
126 <value name="NUM">
127 <shadow type="math_number">
128 <field name="NUM">9</field>
129 </shadow>
130 </value>
131 </block>
132 <block type="math_trig">
133 <value name="NUM">
134 <shadow type="math_number">
135 <field name="NUM">45</field>
136 </shadow>
137 </value>
138 </block>
139 <block type="math_constant"></block>
140 <block type="math_number_property">
141 <value name="NUMBER_TO_CHECK">
142 <shadow type="math_number">
143 <field name="NUM">0</field>
144 </shadow>
145 </value>
146 </block>
147 <block type="math_change">
148 <value name="DELTA">
149 <shadow type="math_number">
150 <field name="NUM">1</field>
151 </shadow>
152 </value>
153 </block>
154 <block type="math_round">
155 <value name="NUM">
156 <shadow type="math_number">
157 <field name="NUM">3.1</field>
158 </shadow>
159 </value>
160 </block>
161 <block type="math_on_list"></block>
162 <block type="math_modulo">
163 <value name="DIVIDEND">
164 <shadow type="math_number">
165 <field name="NUM">64</field>
166 </shadow>
167 </value>
168 <value name="DIVISOR">
169 <shadow type="math_number">
170 <field name="NUM">10</field>
171 </shadow>
172 </value>
173 </block>
174 <block type="math_constrain">
175 <value name="VALUE">
176 <shadow type="math_number">
177 <field name="NUM">50</field>
178 </shadow>
179 </value>
180 <value name="LOW">
181 <shadow type="math_number">
182 <field name="NUM">1</field>
183 </shadow>
184 </value>
185 <value name="HIGH">
186 <shadow type="math_number">
187 <field name="NUM">100</field>
188 </shadow>
189 </value>
190 </block>
191 <block type="math_random_int">
192 <value name="FROM">
193 <shadow type="math_number">
194 <field name="NUM">1</field>
195 </shadow>
196 </value>
197 <value name="TO">
198 <shadow type="math_number">
199 <field name="NUM">100</field>
200 </shadow>
201 </value>
202 </block>
203 <block type="math_random_float"></block>
204 </category>
205 <category id="catText" colour="160">
206 <block type="text"></block>
207 <block type="text_join"></block>
208 <block type="text_append">
209 <value name="TEXT">
210 <shadow type="text"></shadow>
211 </value>
212 </block>
213 <block type="text_length">
214 <value name="VALUE">
215 <shadow type="text">
216 <field name="TEXT">abc</field>
217 </shadow>
218 </value>
219 </block>
220 <block type="text_isEmpty">
221 <value name="VALUE">
222 <shadow type="text">
223 <field name="TEXT"></field>
224 </shadow>
225 </value>
226 </block>
227 <block type="text_indexOf">
228 <value name="VALUE">
229 <block type="variables_get">
230 <field name="VAR">text</field>
231 </block>
232 </value>
233 <value name="FIND">
234 <shadow type="text">
235 <field name="TEXT">abc</field>
236 </shadow>
237 </value>
238 </block>
239 <block type="text_charAt">
240 <value name="VALUE">
241 <block type="variables_get">
242 <field name="VAR">text</field>
243 </block>
244 </value>
245 </block>
246 <block type="text_getSubstring">
247 <value name="STRING">
248 <block type="variables_get">
249 <field name="VAR">text</field>
250 </block>
251 </value>
252 </block>
253 <block type="text_changeCase">
254 <value name="TEXT">
255 <shadow type="text">
256 <field name="TEXT">abc</field>
257 </shadow>
258 </value>
259 </block>
260 <block type="text_trim">
261 <value name="TEXT">
262 <shadow type="text">
263 <field name="TEXT">abc</field>
264 </shadow>
265 </value>
266 </block>
267 <block type="text_print">
268 <value name="TEXT">
269 <shadow type="text">
270 <field name="TEXT">abc</field>
271 </shadow>
272 </value>
273 </block>
274 <block type="text_prompt_ext">
275 <value name="TEXT">
276 <shadow type="text">
277 <field name="TEXT">abc</field>
278 </shadow>
279 </value>
280 </block>
281 </category>
282 <category id="catLists" colour="260">
283 <block type="lists_create_with">
284 <mutation items="0"></mutation>
285 </block>
286 <block type="lists_create_with"></block>
287 <block type="lists_repeat">
288 <value name="NUM">
289 <shadow type="math_number">
290 <field name="NUM">5</field>
291 </shadow>
292 </value>
293 </block>
294 <block type="lists_length"></block>
295 <block type="lists_isEmpty"></block>
296 <block type="lists_indexOf">
297 <value name="VALUE">
298 <block type="variables_get">
299 <field name="VAR">list</field>
300 </block>
301 </value>
302 </block>
303 <block type="lists_getIndex">
304 <value name="VALUE">
305 <block type="variables_get">
306 <field name="VAR">list</field>
307 </block>
308 </value>
309 </block>
310 <block type="lists_setIndex">
311 <value name="LIST">
312 <block type="variables_get">
313 <field name="VAR">list</field>
314 </block>
315 </value>
316 </block>
317 <block type="lists_getSublist">
318 <value name="LIST">
319 <block type="variables_get">
320 <field name="VAR">list</field>
321 </block>
322 </value>
323 </block>
324 <block type="lists_split">
325 <value name="DELIM">
326 <shadow type="text">
327 <field name="TEXT">,</field>
328 </shadow>
329 </value>
330 </block>
331 </category>
332 <category id="catColour" colour="20">
333 <block type="colour_picker"></block>
334 <block type="colour_random"></block>
335 <block type="colour_rgb">
336 <value name="RED">
337 <shadow type="math_number">
338 <field name="NUM">100</field>
339 </shadow>
340 </value>
341 <value name="GREEN">
342 <shadow type="math_number">
343 <field name="NUM">50</field>
344 </shadow>
345 </value>
346 <value name="BLUE">
347 <shadow type="math_number">
348 <field name="NUM">0</field>
349 </shadow>
350 </value>
351 </block>
352 <block type="colour_blend">
353 <value name="COLOUR1">
354 <shadow type="colour_picker">
355 <field name="COLOUR">#ff0000</field>
356 </shadow>
357 </value>
358 <value name="COLOUR2">
359 <shadow type="colour_picker">
360 <field name="COLOUR">#3333ff</field>
361 </shadow>
362 </value>
363 <value name="RATIO">
364 <shadow type="math_number">
365 <field name="NUM">0.5</field>
366 </shadow>
367 </value>
368 </block>
369 </category>
370 <sep></sep>
371 <category id="catVariables" colour="330" custom="VARIABLE"></category>
372 <category id="catFunctions" colour="290" custom="PROCEDURE"></category>
373 </xml>
374
375 </body>
376 </html>