Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ardublockly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ardublockly
Commits
ced61e5c
Commit
ced61e5c
authored
May 14, 2015
by
daarond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating demos
parent
ecddc5d0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
2 deletions
+16
-2
appengine/README.txt
appengine/README.txt
+1
-0
demos/blockfactory/index.html
demos/blockfactory/index.html
+1
-0
demos/code/code.js
demos/code/code.js
+9
-1
demos/code/index.html
demos/code/index.html
+4
-0
demos/index.html
demos/index.html
+1
-1
No files found.
appengine/README.txt
View file @
ced61e5c
...
...
@@ -30,6 +30,7 @@ blockly/
|- blocks_compressed.js
|- dart_compressed.js
|- javascript_compressed.js
|- php_compressed.js
`- python_compressed.js
Instructions for fetching the optional Closure library may be found here:
...
...
demos/blockfactory/index.html
View file @
ced61e5c
...
...
@@ -134,6 +134,7 @@
<select
id=
"language"
>
<option
value=
"JavaScript"
>
JavaScript
</option>
<option
value=
"Python"
>
Python
</option>
<option
value=
"PHP"
>
PHP
</option>
<option
value=
"Dart"
>
Dart
</option>
</select>
</h3>
...
...
demos/code/code.js
View file @
ced61e5c
...
...
@@ -243,7 +243,7 @@ Code.LANG = Code.getLang();
* List of tab names.
* @private
*/
Code
.
TABS_
=
[
'
blocks
'
,
'
javascript
'
,
'
python
'
,
'
dart
'
,
'
xml
'
];
Code
.
TABS_
=
[
'
blocks
'
,
'
javascript
'
,
'
p
hp
'
,
'
p
ython
'
,
'
dart
'
,
'
xml
'
];
Code
.
selected
=
'
blocks
'
;
...
...
@@ -318,6 +318,14 @@ Code.renderContent = function() {
code
=
prettyPrintOne
(
code
,
'
py
'
);
content
.
innerHTML
=
code
;
}
}
else
if
(
content
.
id
==
'
content_php
'
)
{
code
=
Blockly
.
PHP
.
workspaceToCode
(
Code
.
workspace
);
content
.
textContent
=
code
;
if
(
typeof
prettyPrintOne
==
'
function
'
)
{
code
=
content
.
innerHTML
;
code
=
prettyPrintOne
(
code
,
'
php
'
);
content
.
innerHTML
=
code
;
}
}
else
if
(
content
.
id
==
'
content_dart
'
)
{
code
=
Blockly
.
Dart
.
workspaceToCode
(
Code
.
workspace
);
content
.
textContent
=
code
;
...
...
demos/code/index.html
View file @
ced61e5c
...
...
@@ -10,6 +10,7 @@
<script
src=
"../../blocks_compressed.js"
></script>
<script
src=
"../../javascript_compressed.js"
></script>
<script
src=
"../../python_compressed.js"
></script>
<script
src=
"../../php_compressed.js"
></script>
<script
src=
"../../dart_compressed.js"
></script>
<script
src=
"code.js"
></script>
</head>
...
...
@@ -36,6 +37,8 @@
<td
class=
"tabmin"
>
</td>
<td
id=
"tab_python"
class=
"taboff"
>
Python
</td>
<td
class=
"tabmin"
>
</td>
<td
id=
"tab_php"
class=
"taboff"
>
PHP
</td>
<td
class=
"tabmin"
>
</td>
<td
id=
"tab_dart"
class=
"taboff"
>
Dart
</td>
<td
class=
"tabmin"
>
</td>
<td
id=
"tab_xml"
class=
"taboff"
>
XML
</td>
...
...
@@ -61,6 +64,7 @@
</table>
<div
id=
"content_blocks"
class=
"content"
></div>
<pre
id=
"content_javascript"
class=
"content"
></pre>
<pre
id=
"content_php"
class=
"content"
></pre>
<pre
id=
"content_python"
class=
"content"
></pre>
<pre
id=
"content_dart"
class=
"content"
></pre>
<textarea
id=
"content_xml"
class=
"content"
wrap=
"off"
></textarea>
...
...
demos/index.html
View file @
ced61e5c
...
...
@@ -168,7 +168,7 @@
</td>
<td>
<div><a
href=
"code/index.html"
>
Code Editor
</a></div>
<div>
Export a Blockly program into JavaScript, Python, Dart or XML.
</div>
<div>
Export a Blockly program into JavaScript, Python,
PHP,
Dart or XML.
</div>
</td>
</tr>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment