-
Notifications
You must be signed in to change notification settings - Fork 26
/
index_compressed.html
333 lines (333 loc) · 15.8 KB
/
index_compressed.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
<!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</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">
</head>
<body onload="start()">
<div class="header">
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Cake</a>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">About<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">About Cake</a></li>
<li><a href="#">Developer</a></li>
<li><a href="#">add contents</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Project<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="project/prjIndex.html">New Project</a></li>
<li><a href="#">Open Project</a></li>
<li><a href="#">add contents</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Etc<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Donation</a></li>
<li><a href="#">Help</a></li>
<li><a href="#">add contents</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<!-- Modal -->
<div id="loginModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">x</span>
<span class="sr-only">Close</span>
</button>
<h4 class="modal-title">Login</h4>
</div>
<div class="modal-body" style="padding-left: 40px; padding-right: 40px;">
<form role="form">
<div class="form-group">
<input type="email" class="form-control" id="inputEmail1" placeholder="Email" required="" autofocus="">
<input type="password" class="form-control" id="inputPassword1" placeholder="Password" required="">
</div>
<div class="form-group" style="TEXT-ALIGN:center">
<div class="checkbox">
<label><input type="checkbox">Remember me</label>
</div>
</div>
<div class="form-group" style="TEXT-ALIGN:center">
<!--{call .signup/} Sign up-->
<a href="signup.html">Sign up</a>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary">Login</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<button class="btn btn-primary navbar-btn" data-toggle="modal" data-target="#loginModal">Login</button>
</ul>
</div>
</div>
</nav>
</div>
<div class="container">
<nav class="navbar navbar-default">
<div class="collapse navbar-collapse">
<div class="btn-toolbar" role="toolbar">
<div class="btn-group">
<button type="button" class="btn btn-default navbar-btn" disabled="disabled">
<span class="glyphicon glyphicon-file"></span> New File
</button>
<button type="button" class="btn btn-default navbar-btn" disabled="disabled">
<span class="glyphicon glyphicon-folder-open"></span> Open
</button>
<button type="button" class="btn btn-default navbar-btn" disabled="disabled">
<span class="glyphicon glyphicon-floppy-disk"></span> Save
</button>
<button type="button" class="btn btn-default navbar-btn" onclick="downloadCode()">
<span class="glyphicon glyphicon-download-alt"></span> Download
</button>
<button type="button" class="btn btn-default navbar-btn" onclick="discard()" data-toggle="button">
<span class="glyphicon glyphicon-trash"></span> Trash
</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-default navbar-btn" disabled="disabled">
<span class="glyphicon glyphicon-play"></span> Run
</button>
<button type="button" class="btn btn-default navbar-btn" disabled="disabled">
<span class="glyphicon glyphicon-wrench"></span> Setting
</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-default navbar-btn" disabled="disabled">
<span class="glyphicon glyphicon-fullscreen"></span> Fullscreen
</button>
</div>
</div>
</div>
</nav>
<div id="main-wrapper" class="row">
<!-- <div class="col-xs-2">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Function Explorer</h4>
</div>
<div class="panel-body">
<ul class="list-group">
<li class="list-group-item"><code>void main( )</code></li>
<li class="list-group-item"><code>int func1( )</code></li>
<li class="list-group-item"><code>int func2( )</code></li>
</ul>
<div class="btn-group btn-group-sm ng-scope">
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-plus"></span>
</button>
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-minus"></span>
</button>
</div>
</div>
</div>
</div> -->
<div class="col-xs-8">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Workspace</h3>
</div>
<div id="blocklyDiv" class="panel-body"></div>
</div>
</div>
<xml id="toolbox">
<category name="Variables">
<category name="Variable">
<block type="variables_declare"></block>
<block type="variables_get"></block>
<block type="variables_set"></block>
</category>
<category name="Pointer">
<block type="variables_pointer_declare"></block>
<block type="variables_pointer_get"></block>
<block type="variables_pointer_set">
<value name="VAR">
<block type="variables_pointer_get">
</block>
</value></block>
<block type="variables_pointer_&"></block>
<block type="variables_pointer_*"></block>
</category>
<category name="Array">
<block type="variables_array_declare"></block>
<block type="variables_array_get"></block>
<block type="variables_array_set"></block>
</category>
</category>
<category name="Arithmetics">
<block type="math_number"></block>
<block type="math_arithmetic"></block>
<block type="math_modulo"></block>
</category>
<category name="Loops">
<block type="controls_whileUntil"></block>
<block type="controls_doWhile"></block>
<block type="controls_for"></block>
<block type="controls_flow_statements"></block>
</category>
<category name="Logic">
<block type="controls_if"></block>
<block type="controls_switch"></block>
<block type="controls_switch_break"></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 name="Functions" custom="PROCEDURE">
<block type="procedures_defnoreturn"></block>
<block type="procedures_defreturn"></block>
<block type="procedures_ifreturn"></block>
</category>
</category>
<category name="Structure" custom="STRUCTURE">
<block type="structure_define"></block>
<block type="structure_declare"></block>
</category>
<category name="Library">
<category name="Stdio">
<block type="library_stdio_printf"></block>
<block type="library_stdio_text"></block>
<block type='library_stdio_newLine'></block>
<block type="library_stdio_scanf"></block>
</category>
<category name="Stdlib">
<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">
<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">
<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">
<block type="library_time_current"></block>
<block type="library_time_requiredTime"></block>
</category>
</category>
<category name="Others">
<block type='comment'>
<value name="VAR0">
<block type="library_stdio_text"></block>
</value>
</block>
<block type="library_stdio_text"></block>
<block type="math_number"></block>
<block type="define_declare"></block>
<block type="define_get"></block>
</category>
</xml>
<div class="col-xs-4">
<div id="code-wrapper" class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Code</h3>
</div>
<pre id="code" class="panel-body pre-scrollable"></pre>
</div>
<div id="terminal-wrapper" class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Console</h3>
</div>
<div class="panel-body" id="terminal"></div>
</div>
</div>
</div>
</div>
<footer id="footer" role="contentinfo">
</footer>
<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/ko.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>
<script type="text/javascript" src="js/jquery.terminal-0.8.8.min.js"></script>
<!-- Load the Google Drive SDK Realtime libraries. -->
<script type="text/javascript" src="https://apis.google.com/js/api.js"></script>
</body>
</html>