Commit e74d6e11 authored by carlosperate's avatar carlosperate

Changes in the Materialize framework required changes in the HTML implementation

parent 5e19c8cb
......@@ -37,13 +37,13 @@ window.addEventListener('load', function() {
*/
ArduinoMaterial.bindActionFunctions_ = function() {
// Navigation buttons
ArduinoMaterial.bindClick_('button_load', ArduinoMaterial.loadXmlFile);
ArduinoMaterial.bindClick_('button_load', ArduinoMaterial.loadUserXmlFile);
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.loadUserXmlFile();
$('.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.loadUserXmlFile = function() {
// Create event listener function
var parseInputXMLfile = function(e) {
var files = e.target.files;
......
......@@ -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)
......
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment