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
4d0e5b05
Commit
4d0e5b05
authored
Feb 26, 2015
by
carlosperate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes in the Materialize framework required changes in the HTML implementation
parent
c30c5894
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
18 deletions
+14
-18
apps/arduino/arduino_material.js
apps/arduino/arduino_material.js
+3
-3
apps/arduino/arduino_material_design.js
apps/arduino/arduino_material_design.js
+0
-2
apps/arduino/index.html
apps/arduino/index.html
+11
-13
No files found.
apps/arduino/arduino_material.js
View file @
4d0e5b05
...
...
@@ -37,13 +37,13 @@ window.addEventListener('load', function() {
*/
ArduinoMaterial
.
bindActionFunctions_
=
function
()
{
// Navigation buttons
ArduinoMaterial
.
bindClick_
(
'
button_load
'
,
ArduinoMaterial
.
loadXmlFile
);
ArduinoMaterial
.
bindClick_
(
'
button_load
'
,
ArduinoMaterial
.
load
User
XmlFile
);
ArduinoMaterial
.
bindClick_
(
'
button_save
'
,
ArduinoMaterial
.
saveXmlFile
);
ArduinoMaterial
.
bindClick_
(
'
button_delete
'
,
ArduinoMaterial
.
discard
);
// Side menu buttons, they also close the side menu
ArduinoMaterial
.
bindClick_
(
'
menu_load
'
,
function
()
{
ArduinoMaterial
.
loadXmlFile
();
ArduinoMaterial
.
load
User
XmlFile
();
$
(
'
.button-collapse
'
).
sideNav
(
'
hide
'
);
});
ArduinoMaterial
.
bindClick_
(
'
menu_save
'
,
function
()
{
ArduinoMaterial
.
saveXmlFile
();
...
...
@@ -136,7 +136,7 @@ ArduinoMaterial.loadServerXmlFile = function(xmlFile) {
* Loads an XML file from the users file system and adds the blocks into the
* Blockly workspace.
*/
ArduinoMaterial
.
loadXmlFile
=
function
()
{
ArduinoMaterial
.
load
User
XmlFile
=
function
()
{
// Create event listener function
var
parseInputXMLfile
=
function
(
e
)
{
var
files
=
e
.
target
.
files
;
...
...
apps/arduino/arduino_material_design.js
View file @
4d0e5b05
...
...
@@ -22,8 +22,6 @@ ArduinoMaterial.materializeJsInit = function() {
menuWidth
:
240
,
activationWidth
:
70
,
edge
:
'
left
'
});
// Accordion collapsible
$
(
'
.collapsible
'
).
collapsible
();
// Drop down menus
$
(
"
.dropdown-button
"
).
dropdown
({
hover
:
false
});
// Overlay content panels using modals (android dialogs)
...
...
apps/arduino/index.html
View file @
4d0e5b05
...
...
@@ -63,17 +63,15 @@
<!-- Horizonal Navigation bar -->
<nav
class=
"nav-fixed arduino_teal"
>
<div
class=
"container"
>
<div
class=
"nav-wrapper"
>
<a
class=
"button-collapse show-on-large"
href=
"#"
data-activates=
"slide-out"
><i
class=
"mdi-navigation-menu"
></i></a>
<a
id=
"logo-container"
href=
"#"
class=
"brand-logo"
>
Ardublockly
</a>
<!-- Horizontal Navbar links only shown on large resolutions -->
<ul
id=
"nav-mobile"
class=
"right hide-on-med-and-down"
>
<li><a
href=
"#"
id=
"button_load"
>
Open
<i
class=
"mdi-file-file-upload left"
></i></a></li>
<li><a
href=
"#"
id=
"button_save"
>
Save
<i
class=
"mdi-file-file-download left"
></i></a></li>
<li><a
href=
"#"
id=
"button_delete"
>
Delete All
<i
class=
"mdi-action-delete left"
></i></a></li>
</ul>
</div>
<div
class=
"nav-wrapper container"
>
<a
class=
"button-collapse show-on-large"
href=
"#"
data-activates=
"slide-out"
><i
class=
"mdi-navigation-menu"
></i></a>
<a
id=
"logo-container"
href=
"#"
class=
"brand-logo"
>
Ardublockly
</a>
<!-- Horizontal Navbar links only shown on large resolutions -->
<ul
id=
"nav-mobile"
class=
"right hide-on-med-and-down"
>
<li><a
href=
"#"
id=
"button_load"
>
Open
<i
class=
"mdi-file-file-upload left"
></i></a></li>
<li><a
href=
"#"
id=
"button_save"
>
Save
<i
class=
"mdi-file-file-download left"
></i></a></li>
<li><a
href=
"#"
id=
"button_delete"
>
Delete All
<i
class=
"mdi-action-delete left"
></i></a></li>
</ul>
</div>
</nav>
...
...
@@ -155,9 +153,9 @@
</div>
</div>
<div
class=
"col s12 m12 l4"
>
<ul
class=
"collapsible z-depth-1"
>
<ul
class=
"collapsible z-depth-1"
data-collapsible=
"accordion"
>
<li>
<div
class=
"collapsible-header"
><span
class=
"collapsible_logo"
>
{ }
</span>
Source Code
</div>
<div
class=
"collapsible-header
active
"
><span
class=
"collapsible_logo"
>
{ }
</span>
Source Code
</div>
<div
class=
"collapsible-body"
>
<pre
id=
"content_arduino"
class=
"content"
></pre>
</div>
...
...
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