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
e74d6e11
Commit
e74d6e11
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
5e19c8cb
Changes
3
Show 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 @
e74d6e11
...
...
@@ -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 @
e74d6e11
...
...
@@ -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 @
e74d6e11
...
...
@@ -63,8 +63,7 @@
<!-- Horizonal Navigation bar -->
<nav
class=
"nav-fixed arduino_teal"
>
<div
class=
"container"
>
<div
class=
"nav-wrapper"
>
<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 -->
...
...
@@ -74,7 +73,6 @@
<li><a
href=
"#"
id=
"button_delete"
>
Delete All
<i
class=
"mdi-action-delete left"
></i></a></li>
</ul>
</div>
</div>
</nav>
<!-- Sidebar navigation -->
...
...
@@ -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