-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex_zh-Hans.html
335 lines (335 loc) · 16.6 KB
/
index_zh-Hans.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="google" value="notranslate">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cake Blockly for C 语言</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/prettify.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/jquery.terminal.css">
<style>.modal{display:none;position:fixed;z-index:1;padding-top:100px;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#000;background-color:rgba(0,0,0,0.4)}.modal-content{background-color:#fefefe;margin:auto;padding:20px;border:1px solid #888;width:80%}.close{color:#aaa;float:right;font-size:28px;font-weight:bold}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer}</style>
</head>
<body onload="start()">
<div class="header">
<nav class="navbar navbar-default">
<div class="collapse navbar-collapse">
<a class="navbar-brand" href="index_en.html"><b>Cake Blockly for C 语言 v1.01: </b></a>
<input id="program_name" class="navbar-brand program_name" type="text" value="example.c">
<div class="btn-toolbar" role="toolbar">
<div class="btn-group">
<button type="button" class="btn btn-default navbar-btn" onclick="loadXmlBlocks()">
<span class="glyphicon glyphicon-folder-open"></span> 开启积木代码
</button>
<input type="file" id="load" style="display: none;"/>
<button type="button" class="btn btn-default navbar-btn" onclick="saveXmlBlocks()">
<span class="glyphicon glyphicon-floppy-disk"></span> 保存积木代码
</button>
<button type="button" class="btn btn-default navbar-btn" onclick="discard()">
<span class="glyphicon glyphicon-trash"></span> 清除工作区
</button>
<button type="button" class="btn btn-default navbar-btn" onclick="downloadCode()">
<span class="glyphicon glyphicon-download-alt"></span> 下载 C 代码
</button>
</div>
<div style=vertical-align:middle;padding-top:5px><p style=font-size:13px> 原开发者: 韩国Joshua团队<br/>
中文版开发者: 陈会安 2019</p></div>
</div>
</nav>
</div>
<div class="container">
<div id="main-wrapper" class="row">
<div class="col-xs-8">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Blockly 积木代码工作区 - <a style=color:blue;text-decoration:underline
href="index.html">繁体中文</a>
| <a style=color:blue;text-decoration:underline
href="index_zh-Hans.html">简体中文</a>
| <a style=color:blue;text-decoration:underline
href="index_en.html">英文</a></h3>
</div>
<div id="blocklyDiv" class="panel-body"></div>
</div>
</div>
<xml id="toolbox">
<category name="变量">
<category name="变量">
<block type="variables_declare">
<value name="VALUE">
<block type="math_number">
<field name="NUM">1</field>
</block>
</value>
</block>
<block type="variables_get"></block>
<block type="variables_set">
<value name="VALUE">
<block type="math_number">
<field name="NUM">1</field>
</block>
</value>
</block>
<block type="library_stdio_text_char"></block>
<block type="math_number"></block>
</category>
<category name="指针">
<block type="variables_pointer_declare">
<value name="VALUE">
<block type="logic_null"></block>
</value>
</block>
<block type="variables_pointer_get"></block>
<block type="variables_pointer_set">
<value name="VAR">
<block type="variables_pointer_get">
</block>
</value>
<value name="VALUE">
<block type="variables_pointer_&">
<value name="VALUE">
<block type="variables_get">
</block>
</value>
</block>
</value>
</block>
<block type="variables_pointer_&"></block>
<block type="variables_pointer_*"></block>
</category>
<category name="数组">
<block type="variables_array_declare">
<value name="LENGTH_1">
<block type="math_number">
<field name="NUM">3</field>
</block>
</value>
</block>
<block type="variables_array_initial"></block>
<block type="variables_array_get">
<value name="LENGTH_1">
<block type="math_number">
<field name="NUM">0</field>
</block>
</value>
</block>
<block type="variables_array_set">
<value name="LENGTH_1">
<block type="math_number">
<field name="NUM">0</field>
</block>
</value>
<value name="VALUE">
<block type="math_number">
<field name="NUM">1</field>
</block>
</value>
</block>
<block type="variables_array_pointer"></block>
<block type="variables_string_declare">
<value name="LENGTH_1">
<block type="math_number">
<field name="NUM">15</field>
</block>
</value>
<value name="VALUE">
<block type="library_stdio_text">
<field name="TEXT">hello! world!</field>
</block>
</value>
</block>
<block type="library_stdio_text_char"></block>
<block type="variables_string_null"></block>
</category>
</category>
<category name="运算">
<block type="math_number"></block>
<block type="math_arithmetic"></block>
<block type="math_modulo"></block>
<block type="math_convert_type"></block>
<block type="math_auto_convert_type"></block>
<block type="math_increment_expression"></block>
<block type="math_decrement_expression"></block>
<block type="math_prev_inc_decrement"></block>
<block type="math_post_inc_decrement"></block>
</category>
<category name="输出">
<block type="library_stdio_printf"></block>
<block type="library_stdio_text"></block>
<block type="library_stdio_newLine"></block>
<block type="library_stdio_tab"></block>
<block type="math_number"></block>
</category>
<category name="输入">
<block type="library_stdio_scanf">
<value name="VAR0">
<block type="variables_get">
</block>
</value>
</block>
</category>
<category name="条件">
<block type="controls_if"></block>
<block type="controls_switch"></block>
<block type="controls_switch_break"></block>
<block type="logic_ternary"></block>
</category>
<category name="循环">
<block type="controls_whileUntil"></block>
<block type="controls_doWhile"></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_flow_statements"></block>
</category>
<category name="逻辑">
<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>
</category>
<category name="函数" custom="PROCEDURE">
<block type="procedures_defnoreturn"></block>
<block type="procedures_defreturn"></block>
<block type="procedures_return"></block>
</category>
</category>
<!-- <category name="结构" custom="STRUCTURE">
<block type="structure_define"></block>
<block type="structure_declare"></block>
</category> -->
<category name="函数库">
<category name="标准函数库 stdlib.h">
<block type="library_stdlib_abs"></block>
<block type="library_stdlib_convert"></block>
<block type="library_stdlib_rand">
<value name="VAR">
<block type="library_stdlib_rand_scope">
<value name="A">
<block type="library_stdlib_number_forRandScope1"></block>
</value>
<value name="B">
<block type="library_stdlib_number_forRandScope100"></block>
</value>
</block>
</value>
</block>
<block type="library_stdlib_malloc">
<value name="VAR">
<block type="library_stdlib_arithmetic_forMalloc">
<value name="A">
<block type="library_stdlib_sizeof_forMalloc"></block>
</value>
<value name="B">
<block type="library_stdlib_number_forMalloc"></block>
</value>
</block>
</value>
</block>
<block type="library_stdlib_arithmetic_forMalloc">
<value name="A">
<block type="library_stdlib_sizeof_forMalloc"></block>
</value>
<value name="B">
<block type="library_stdlib_number_forMalloc"></block>
</value>
</block>
<block type="library_stdlib_free"></block>
<block type="library_stdlib_exit"></block>
</category>
<category name="字符串 string.h">
<block type="library_string_strlen"></block>
<block type="library_string_strcat"></block>
<block type="library_string_strcpy"></block>
<block type="library_string_strcmp"></block>
</category>
<category name="数学 math.h">
<block type="library_math_abs"></block>
<block type="library_math_trig"></block>
<block type="library_math_logs"></block>
<block type="library_math_pow"></block>
<block type="library_math_exp"></block>
<block type="library_math_sqrt"></block>
<block type="library_math_round"></block>
<block type="library_math_numcheck"></block>
<block type="library_math_numcompare"></block>
</category>
<category name="时间 time.h">
<block type="library_time_current"></block>
<block type="library_time_requiredTime"></block>
</category>
</category>
<!-- <category name="宏">
<block type="define_declare"></block>
<block type="define_get"></block>
<block type="library_stdio_text"></block>
<block type="math_number"></block>
</category> -->
<category name="注解">
<block type="comment">
<value name="VAR0">
<block type="library_stdio_text"></block>
</value>
</block>
<block type="library_stdio_text"></block>
</category>
</xml>
<div class="col-xs-4">
<div id="code-wrapper" class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">C 语言代码 - <a style=color:blue;text-decoration:underline
href="https://www.onlinegdb.com/online_c_compiler" target="_blank">线上编译器1</a>
| <a style=color:blue;text-decoration:underline
href="https://repl.it/languages/c" target="_blank">线上编译器2</a></h3>
</div>
<pre id="code" class="panel-body"></pre>
</div>
</div>
</div>
</div>
<footer id="footer" role="contentinfo">
</footer>
<div id=myModal class=modal>
<div class=modal-content>
<span class=close>×</span>
<p><center>
<table>
<tr>
<td style=padding:5px><img src=media/635933682863050540.jpg height=300 width=220></td>
<td style=padding:5px><img src=media/04A89007.JPG height=300 width=220></td>
<td style=padding:5px><img src=media/04C05007.JPG height=300 width=220></td>
<td style=padding:5px><img src=media/9789863124245_bc.jpg height=300 width=220></td>
</tr>
</table><br/><b>fChart程序设计教学工具: </b> <a href="http://fchart.is-best.net">http://fchart.is-best.net</a></center>
</p>
</div>
</div>
<script type=text/javascript src=blockly_compressed.js></script>
<script type=text/javascript src=blocks_compressed.js></script>
<script type=text/javascript src=cake_compressed.js></script>
<script type=text/javascript src=msg/js/zh-hant.js></script>
<script type=text/javascript src=js/jquery-2.1.1.min.js></script>
<script type=text/javascript src=js/bootstrap.min.js></script>
<script type=text/javascript src=js/code.js></script>
<script type=text/javascript src=js/FileSaver.js></script>
<script type=text/javascript src=js/prettify.js></script>
<script type=text/javascript src=js/jquery.mousewheel.min.js></script>
</body>
</html>