This repository was archived by the owner on Jun 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbase.html
269 lines (255 loc) · 12.7 KB
/
base.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection" />
<link href='css/material-icons.css' rel='stylesheet' type='text/css'>
<link href="css/style.css" rel="stylesheet">
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="js/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script src="js/header.js"></script>
<script src="js/blockly_compressed.js"></script>
<script src="js/blocks_compressed.js"></script>
<script src="js/arduino_compressed.js"></script>
<script src="msg/js/en.js"></script>
<script src="js/setCategoryCharacter.js"></script>
<script src="js/init.js"></script>
<script src="js/editor.js"></script>
<script src="js/popup.js"></script>
<script src="js/my_materialize.js"></script>
</head>
<body>
<!-- Modal1 Structure -->
<div id="modal1" class="modal">
<div class="modal-content">
<p id="dialog1_title">Delete All Blocks?</p>
</div>
<div class="modal-footer">
<a id="dialog1_yes" href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">Yes</a>
<a id="dialog1_no" href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">No</a>
</div>
</div>
<!-- Modal2 Structure -->
<div id="modal2" class="modal">
<div class="modal-content">
<div class="input-field">
<input id="dialog2_filename" type="text" class="validate" pattern="^[0-9A-Za-z]+$" required>
<label id="dialog2_title" for="dialog2_filename">Filename</label>
</div>
</div>
<div class="modal-footer">
<a id="dialog2_ok" href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">OK</a>
<a id="dialog2_cancel" href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">CANCEL</a>
</div>
</div>
<nav>
<div class="nav-wrapper blue-grey darken-4">
<a href="./" class="brand-logo">BlocklyDuino Editor</a>
<ul class="right">
<li><a class="tooltipped" href="http://code.makewitharduino.com" target="_blank" id="go-to-web" data-tooltip="I am tooltip"><i class="material-icons">home</i></a>
</li>
<li><a class="tooltipped" href="http://lets.makewitharduino.com" target="_blank" id="go-to-sample" data-tooltip="I am tooltip"><i class="material-icons">receipt</i></a>
</li>
<!-- Modal3 Trigger -->
<li><a class="waves-effect waves-light tooltipped" id="open-setting" data-tooltip="I am tooltip"><i class="material-icons">settings</i></a>
</li>
</ul>
</div>
</nav>
<!-- Modal3 Structure -->
<div id="modal3" class="modal">
<div class="modal-content">
<form action="#">
<p id="dialog-lang-title">Language Setting</p>
<table>
<tbody>
<tr>
<td>
<input class="with-gap" name="group1" type="radio" id="select-lang-en" value="en" />
<label for="select-lang-en" id="label-en">English</label>
</td>
<td>
<input class="with-gap" name="group1" type="radio" id="select-lang-ja" value="ja" />
<label for="select-lang-ja" id="label-ja">日本語</label>
</td>
<td>
<input class="with-gap" name="group1" type="radio" id="select-lang-ja_kids" value="ja_kids" />
<label for="select-lang-ja_kids" id="label-ja-kids">にほんご</label>
</td>
</tr>
</tbody>
</table>
<div class="row">
<div class="col s4">
<!-- Switch -->
<div class="switch">
<p id="auto-save-title">Auto Save</p>
<label>
Off
<input id="checkbox-auto-save" type="checkbox">
<span class="lever"></span> On
</label>
</div>
</div>
<div class="col s8">
<p class="range-field" id="range-title">interval (min)
<input type="range" id="save-time" min="1" max="10" />
</p>
</div>
</div>
<p id="dialog-block-title">Option Blocks</p>
<p>
<table>
<tbody>
<tr>
<td>
<input type="checkbox" class="filled-in" id="chbox_category_adafruit" value="category_adafruit" />
<label for="chbox_category_adafruit">adafruit</label>
</td>
<td>
<input type="checkbox" class="filled-in" id="chbox_category_grove" value="category_grove" />
<label for="chbox_category_grove">grove</label>
</td>
<td>
<input type="checkbox" class="filled-in" id="chbox_category_robot" value="category_robot" />
<label for="chbox_category_robot">robot</label>
</td>
</tr>
<tr>
<td>
<input type="checkbox" class="filled-in" id="chbox_category_ethernet" value="category_ethernet" />
<label for="chbox_category_ethernet">Ethernet</label>
</td>
<td>
<input type="checkbox" class="filled-in" id="chbox_category_cloud_service" value="category_cloud_service" />
<label for="chbox_category_cloud_service">category_cloud_service</label>
</td>
<td></td>
</tr>
<tr>
<td>
<input type="checkbox" class="filled-in" id="chbox_category_servo" value="category_servo" />
<label for="chbox_category_servo">servo</label>
</td>
<td>
<input type="checkbox" class="filled-in" id="chbox_category_ultrasonic" value="category_ultrasonic" />
<label for="chbox_category_ultrasonic">ultrasonic</label>
</td>
<td>
<input type="checkbox" class="filled-in" id="chbox_category_lcd" value="category_lcd" />
<label for="chbox_category_lcd">lcd</label>
</td>
</tr>
<tr>
<td>
<input type="checkbox" class="filled-in" id="chbox_category_other_sensor" value="category_other_sensor" />
<label for="chbox_category_other_sensor">other sensor</label>
</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</p>
</form>
</div>
<div class="modal-footer">
<a href="#!" id="setting" class=" modal-action modal-close waves-effect waves-green btn-flat">OK</a>
</div>
</div>
<!-- Modal4 Structure -->
<div id="modal4" class="modal">
<div class="modal-content">
<p id="dialog4_title">Delete All Blocks?</p>
</div>
<div class="modal-footer">
<a id="dialog4_yes" href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">Yes</a>
<a id="dialog4_no" href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">No</a>
</div>
</div>
<!-- modal_import Structure -->
<div id="modal_import" class="modal">
<div class="modal-content">
<div class="input-field">
<textarea id="textarea_import" class="materialize-textarea"></textarea>
<label id="textarea_import_label" for="textarea_import">Import XML</label>
</div>
</div>
<div class="modal-footer">
<a id="dialog_import_ok" href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">OK</a>
<a id="dialog_import_cancel" href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">CANCEL</a>
</div>
</div>
<!-- modal_export Structure -->
<div id="modal_export" class="modal">
<div class="modal-content">
<div class="input-field">
<textarea id="textarea_export" class="materialize-textarea"></textarea>
<label id="textarea_export_label" for="textarea_export">Export XML</label>
</div>
</div>
<div class="modal-footer">
<a id="dialog_export_ok" href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">OK</a>
</div>
</div>
<!-- Dropdown Structure -->
<ul id="dropdown1" class="dropdown-content">
<li><a href="#!" id="button_import">Import</a>
</li>
<li class="divider"></li>
<li><a href="#!" id="button_export">Export</a>
</li>
<li class="divider"></li>
<li><a href="#!" id="button_discard">Discard</a>
</li>
<li class="divider"></li>
<li><a href="#!" id="button_save_as">Save as..</a>
</li>
</ul>
<!-- modal_varialble Structure -->
<div id="modal_variable" class="modal">
<div class="modal-content">
<div class="input-field">
<input id="dialog_var_name" type="text" class="validate" pattern="^[0-9A-Za-z]+$" required>
<label id="dialog_var_title" for="dialog_var_name">Rename Variable Name</label>
</div>
</div>
<div class="modal-footer">
<a id="dialog_var_ok" href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">OK</a>
<a href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">CANCEL</a>
</div>
</div>
<table id="main">
<tr>
<td>
<table id="tab">
<tr id="tabRow">
<td id="tab_blocks" class="tabon">Blocks</td>
<td class="tabmin"> </td>
<td id="tab_arduino" class="taboff">Arduino</td>
<td class="tabmin"> </td>
<td class="tabmax">
<a href="#" class="hide-link tooltipped" id="button_new" data-tooltip="I am tooltip"><i class="small material-icons">create</i></a>
<a href="#" class="hide-link tooltipped" id="button_open" data-tooltip="I am tooltip"><i class="small material-icons">folder_open</i></a>
<a href="#" class="hide-link tooltipped" data-tooltip="I am tooltip" id="button_save"><i class="small material-icons">save</i></a>
<!-- Dropdown Trigger -->
<a class="hide-link dropdown-button" href="#" data-activates="dropdown1"><i class="small material-icons">arrow_drop_down</i></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id="content_area"></td>
</tr>
</table>
<div id="content_blocks" class="content"></div>
<textarea id="content_arduino" class="content" readonly wrap="off"></textarea>
<xml id="toolbox" style="display: none"></xml>
<div class="info">
<label id="info_filename">Filename:</label><span id="info_title"></span>
</div>
</body>
</html>