forked from sugarlabs/turtleblocksjs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
221 lines (185 loc) · 12.8 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Turtle Blocks JS</title>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height"/>
<link rel="stylesheet" href="css/activity.css">
<script src="lib/p5.min.js"></script>
<script src="lib/p5.sound.min.js"></script>
<script src="lib/p5.dom.min.js"></script>
<script src="lib/mespeak.js"></script>
<script src="lib/reqwest.js"></script>
<script src="lib/jquery-2.1.4.js"></script>
<script src="lib/jquery-ui.js"></script>
<script src="lib/webL10n.js"></script>
<script src="lib/raphael.min.js"></script>
<script src="lib/wheelnav.js"></script>
<script src="lib/materialize.min.js"></script>
<link rel="prefetch" type="application/l10n" href="./localization.ini" />
<script data-main="js/loader" src="lib/require.js"> </script>
<link rel="manifest" href="android_chrome_manifest.json">
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="activity/activity-icon-color-4-00.png">
<meta id="theme-color" name="theme-color" content="#2196F3">
<link type="text/css" href="fonts/material-icons.css" rel="stylesheet">
<link rel="stylesheet" href="lib/materialize-iso.css">
</head>
<body id="body" style="background: #92B5C8;"> <!-- #96D3F3;"> -->
<!-- see activity/activity-icon-color-loading.svg for info -->
<div id="loading-image-container" style="position: absolute; width: 100%; height: 100%;">
<img src='data:image/svg+xml;base64,PHN2ZyBzdHJva2Utd2lkdGg9IjEuNSIgZmlsbD0iI2ZmZiIgc3Ryb2tlPSIjMDAwIiBoZWlnaHQ9IjEwMCIgdmlld0JveD0iMCAwIDU1IDU1IiB3aWR0aD0iMTAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTUzLjQ4IDI4LjMxYy0uMjA5LTEuNTQ0LS42ODQtMy45NjMtMi40MzUtNC43OTktMS4xMS0uNTI5LTcuMTguNTM2LTExLjMxNi41ODguMTQ1IDIuNDg4LS43NzggNS4xNTUtMy45NCA5LjgwOS0xLjg4NiAzLjI0Mi0xMC40MTEgMy41MTYtMTAuOCAzLjQ5NGwtMjMuNTU4LS4xMDNjMS4xNjkgMS42NDggMy42ODYgMy43NjIgNi40NjcgNC4xMTItLjc0Ni42NTgtMy4wOTggMy4yNzctMy4yNzMgNi42ODEtLjAwNS4wNzYuMDAyLjQwOSAwIC40MDloNy40MzRjLjI1NS0xLjg1My45NzYtNS4yNzMgMi44OTYtNi41MTQgMS40MzItLjAwOCAyLjczOC0uMTY3IDMuNzU3LS4xMTYgMi4zNTIuMTE3IDcuMTEzLS4wNDcgMTAuMzE1LS4yNzYuMDI0LjAxMy4wMzkuMjczLjA2NC4yODggMi4wOTMgMS4xMDcgMi44NTMgNC43NjYgMy4xMTkgNi42MTloNy40MzRjLS4wMDEgMCAuMDA2LS4zMzQuMDAxLS40MDktLjE3My0zLjM2Mi0zLjE0NC02LjU2OS00L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>
<div id="main-toolbar" class="toolbar">
<button style="display:none;" class="toolbutton" id="activity-button" title="My Activity"></button>
<button style="display:none;" class="toolbutton pull-right" id="stop-button" title="Stop"></button>
</div>
<div id="loader"></div>
<div id="header" class="EaselJS">
</div>
<div class="planet" style="display: none;">
<nav>
<div class="nav-container">
<img src="header-icons/planet-button.svg" class="logo" />
<h1 id="planetTitle"></h1>
<ul>
<li class="back"><img src="header-icons/cancel-button.svg" /></li>
<li class="new"><img src="header-icons/add.svg" /></li>
<li class="open"><img src="header-icons/folder-open.svg" /></li>
</ul>
</div>
</nav>
<div class="nav-spacer"></div>
<div class="planet-content">
<h2 id="planetMyDevice"></h2>
<ul class="content l"></ul>
<h2 id="planetWorldwide"></h2>
<ul class="content w"></ul>
</div>
</div> <!-- planet -->
<canvas id="canvas" width="3790" height="1743"style="background-color:#92B5C8; width:100%">
</canvas>
<!--hidden at the beginning whilst everything loads-->
<div id="hideContents" style="display: none;">
<div class="canvasHolder" id="canvasHolder">
<canvas id="myCanvas" width="1200" height="900"></canvas>
<canvas id="overlayCanvas" width="1200" height="900" style="position:absolute;pointer-events:none;left:0;top:0;z-index:-100;visibility:hidden;"></canvas>
<canvas id="myChart" width="600" height="600"></canvas>
<video id="camVideo" style="visibility:hidden;"></video>
<canvas id="camCanvas" style="visibility:hidden;"></canvas>
<div id="labelDiv"></div>
<div id="ioDiv">
<input class="file" tabindex="-1" type="file" id="myMedia" accept="image/*"/>
<input class="file" tabindex="-1" type="file" id="myOpenFile" accept=".ta, .tb"/>
<input class="file" tabindex="-1" type="file" id="myOpenPlugin" accept=".json"/>
<input class="file" tabindex="-1" type="file" id="myOpenAll" />
<!-- <input class="file" type="file" id="mySaveFile" accept=".ta, .tb" nwsaveas="turtle-project.tb" /> -->
</div>
<div id="audio"></div>
<div id="tourData"></div>
</div> <!-- canvasHolder -->
<iframe src="planet/index.html" id="planet-iframe" style="display: none;"></iframe>
<div id="statusDiv" draggable="false">
<div id="statusButtonsDiv">
</div>
<div id="statusTableDiv">
</div>
</div>
<div id="helpElem"></div>
<div id="description"></div>
<div id="helpDiv" draggable="false" style="visibility:hidden">
<div id="helpButtonsDiv">
</div>
<div id="helpBodyDiv">
</div>
</div>
<div id="searchBar">
<input type="text" name="search" id="search" class="ui-autocomplete" placeholder="Search for Blocks">
<ul class="matches" id="searchResults"></ul>
</div>
<div id="pastecode">
<input type="text" name="paste" id="paste" class="ui-autocomplete" placeholder="Paste Music Blocks code here">
<ul class="matches"></ul>
<input onkeypress="doPaste()" type="submit" value="">
</div>
<div id="myProgress">
<div id="myBar"></div>
</div>
<div id="wheelDiv" class="wheelNav">
</div>
<div id="contextWheelDiv" class="wheelNav">
</div>
<div class="materialize-iso">
<nav id="toolbars" class="nav-wrapper" role="navigation">
<div class="blue nav-wrapper">
<a id="mb-logo" class="logo left tooltipped" data-position="bottom"><img style="width: 100%;" src="images/logo.svg"></a>
<ul class="main left">
<li><a id="play" class="left tooltipped"><i class="material-icons main">play_circle_filled</i></a></li>
<li><a id="stop" class="left tooltipped"><i class="material-icons main">stop</i></a></li>
</ul>
<ul class="main right">
<li><a id="newFile" class="tooltipped dropdown-trigger" data-position="left" data-activates='newdropdown'><i
class="material-icons md-48">note_add</i></a></li>
<li><a id="load" class="tooltipped" data-position="bottom"><i class="material-icons md-48">folder</i></a></li>
<li><a id="saveButton" class="tooltipped" data-position="bottom"><i id="save" class="material-icons md-48">save_alt</i></a></li>
<li><a style="display: none;" id="saveButtonAdvanced" class="tooltipped dropdown-trigger" data-position="bottom"
data-activates='saveddropdown'><i id="save" class="material-icons md-48">save_alt</i></a></li>
<li><a id="planetIcon" class="tooltipped" data-position="bottom"><i class="material-icons md-48">public</i></a></li>
<li><a style="display: none;" id="planetIconDisabled" class="tooltipped" data-position="bottom"><i style="color: #a5acba;"
class="material-icons md-48">public</i></a></li>
<li><a id="toggleAuxBtn" class="tooltipped" data-position="bottom"><i id="menu" class="animated-icon material-icons md-48 ">menu</i></a></li>
<li><a id="helpIcon" class="tooltipped" data-position="bottom"><i class="material-icons md-48">help</i></a></li>
</ul>
</div>
<div class="nav-wrapper" id="aux-toolbar" style="display: none;">
<div class="blue darken-1 nav-wrapper">
<ul class="aux left">
<li><a id="runSlowlyIcon" class="tooltipped" data-position="bottom" data-delay="10"><i class="material-icons md-48">play_circle_outline</i></a></li>
<li><a id="runStepByStepIcon" class="tooltipped" data-position="bottom" data-delay="10"><i class="material-icons md-48">video_library</i></a></li>
</ul>
<ul class="aux right">
<li><a id="displayStatsIcon" class="tooltipped" data-position="bottom" data-delay="10"><i class="material-icons md-48">poll</i></a></li>
<li><a id="loadPluginIcon" class="tooltipped" data-position="bottom" data-delay="10"><i class="material-icons md-48">add_circle</i></a></li>
<li><a id="delPluginIcon" class="tooltipped" data-position="bottom" data-delay="10"><i class="material-icons md-48">remove_circle</i></a></li>
<li><a id="enableHorizScrollIcon" class="tooltipped" data-position="bottom"><i class="material-icons md-48">compare_arrows</i></a></li>
<li><a style="display: none;" id="disableHorizScrollIcon" class="tooltipped" data-position="bottom"><i
class="material-icons md-48">lock</i></a></li>
<li><a id="mergeWithCurrentIcon" class="tooltipped" data-position="bottom"><i class="material-icons md-48">merge_type</i></a></li>
<li class="filler" id="aligns_merge_under_load" style="user-select: none; visibility: hidden;"><a style="color: transparent;">space</a></li>
<li><a id="restoreIcon" class="tooltipped" data-position="bottom"><i class="material-icons md-48">restore_from_trash</i></a></li>
<li><a id="languageSelectIcon" class="tooltipped dropdown-trigger" data-position="bottom" data-activates='languagedropdown'><i
class="material-icons md-48">translate</i></a></li>
</ul>
</div>
</div>
</nav>
<ul id="saveddropdown" class="dropdown-content">
<li><a id="save-html"></a></li>
<li><a id="save-svg"></a></li>
<li><a id="save-png"></a></li>
<li><a id="save-blockartwork-svg"></a></li>
</ul>
<ul id="languagedropdown" class="dropdown-content">
<li><a id="enUS"></a></li>
<li><a id="enUK"></a></li>
<li><a id="es"></a></li>
<li><a id="ja"></a></li>
<li><a id="kana"></a></li>
<li><a id="zhCN"></a></li>
<li><a id="th"></a></li>
<li><a id="ayc"></a></li>
<li><a id="gug"></a></li>
<li><a id="hi"></a></li>
<li><a id="ibo"></a></li>
<li><a id="ar"></a></li>
<li><a id="he"></a></li>
</ul>
<ul id="newdropdown" class="dropdown-content">
<li><a id="new-project"></a></li>
</ul>
</div>
</div> <!-- hideContents -->
</body>
</html>