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
774a76f2
Commit
774a76f2
authored
Jun 30, 2015
by
Neil Fraser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allowing manual code editing in Block Factory.
parent
345b0cb6
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
222 additions
and
135 deletions
+222
-135
demos/blockfactory/factory.js
demos/blockfactory/factory.js
+198
-131
demos/blockfactory/index.html
demos/blockfactory/index.html
+24
-4
No files found.
demos/blockfactory/factory.js
View file @
774a76f2
This diff is collapsed.
Click to expand it.
demos/blockfactory/index.html
View file @
774a76f2
...
@@ -38,15 +38,29 @@
...
@@ -38,15 +38,29 @@
#blockly
{
#blockly
{
position
:
fixed
;
position
:
fixed
;
}
}
#blocklyMask
{
background-color
:
#000
;
cursor
:
not-allowed
;
display
:
none
;
position
:
fixed
;
opacity
:
0.2
;
z-index
:
9
;
}
#preview
{
#preview
{
position
:
absolute
;
position
:
absolute
;
}
}
pre
{
pre
,
#languageTA
{
border
:
#ddd
1px
solid
;
margin-top
:
0
;
margin-top
:
0
;
position
:
absolute
;
position
:
absolute
;
border
:
#ddd
1px
solid
;
overflow
:
scroll
;
overflow
:
scroll
;
}
}
#languageTA
{
display
:
none
;
font-family
:
monospace
;
font-size
:
10pt
;
}
button
{
button
{
border-radius
:
4px
;
border-radius
:
4px
;
...
@@ -57,14 +71,17 @@
...
@@ -57,14 +71,17 @@
margin
:
0
5px
;
margin
:
0
5px
;
font-size
:
large
;
font-size
:
large
;
}
}
button
:hover
{
button
:hover
:not
(
:disabled
)
{
box-shadow
:
2px
2px
5px
#888
;
box-shadow
:
2px
2px
5px
#888
;
}
}
button
:disabled
{
opacity
:
0.6
;
}
button
>*
{
button
>*
{
opacity
:
0.6
;
opacity
:
0.6
;
vertical-align
:
text-bottom
;
vertical-align
:
text-bottom
;
}
}
button
:hover
>*
{
button
:hover
:not
(
:disabled
)
>*
{
opacity
:
1
;
opacity
:
1
;
}
}
#linkButton
{
#linkButton
{
...
@@ -110,6 +127,7 @@
...
@@ -110,6 +127,7 @@
<tr>
<tr>
<td
width=
"50%"
height=
"95%"
style=
"padding: 2px;"
>
<td
width=
"50%"
height=
"95%"
style=
"padding: 2px;"
>
<div
id=
"blockly"
></div>
<div
id=
"blockly"
></div>
<div
id=
"blocklyMask"
></div>
</td>
</td>
<td
width=
"50%"
height=
"95%"
>
<td
width=
"50%"
height=
"95%"
>
<table>
<table>
...
@@ -124,6 +142,7 @@
...
@@ -124,6 +142,7 @@
<select
id=
"format"
>
<select
id=
"format"
>
<option
value=
"JavaScript"
>
JavaScript
</option>
<option
value=
"JavaScript"
>
JavaScript
</option>
<option
value=
"JSON"
>
JSON
</option>
<option
value=
"JSON"
>
JSON
</option>
<option
value=
"Manual"
>
Manual edit...
</option>
</select>
</select>
</h3>
</h3>
</td>
</td>
...
@@ -131,6 +150,7 @@
...
@@ -131,6 +150,7 @@
<tr>
<tr>
<td
height=
"30%"
>
<td
height=
"30%"
>
<pre
id=
"languagePre"
></pre>
<pre
id=
"languagePre"
></pre>
<textarea
id=
"languageTA"
></textarea>
</td>
</td>
</tr>
</tr>
<tr>
<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