Commit 74201e34 authored by Eric - kg6wxc's avatar Eric - kg6wxc
Browse files

Enhancement/BugFix - L.Control.SlideMenu.js README

Fixed typo in README and added info about mysqlnd requirement
(mysqlnd requirement may be eliminated in the future, but for now it is
needed)

Hacked L.Control.SlideMenu to show another "close" link at the bottom of
the text instead of just at the top.
parent 09ec4214
......@@ -28,8 +28,10 @@ Donations / Beer accepted! :) (paypal possibly coming soon, email: kg6wxc@gmail.
(or equiv)</li>
<li><strong>PHP5+</strong></li>
<li><strong>mysqli PHP extension</strong></li>
<li><strong>mysqlnd PHP extension</strong></li>
<li><strong>openssl PHP extension</strong><br/>
(One or both of these extensions may need to be enabled in php.ini)</li>
(you may only need mysqlnd, it should be safe to enable both)<br/>
(One or more of these extensions may need to be enabled in php.ini)</li>
<li><strong>MySQL/MariaDB</strong><br/>
(Other database systems are up to you)</li>
<li><strong>An AREDN Mesh node available over the local network</strong><br/>
......@@ -156,7 +158,7 @@ Run the script without options and there is no on screen output (this is for cro
<p></p>
<ul>
<li><p><strong>5: Copy http-meshmap.conf-default to the apache2 &ldquo;Conf Available&rdquo; directory</strong>, <code>/etc/apache2/conf-available</code><br/>
<li><p><strong>5: Copy httpd-meshmap.conf-default to the apache2 &ldquo;Conf Available&rdquo; directory</strong>, <code>/etc/apache2/conf-available</code><br/>
Rename the file as httpd-meshmap.conf (or whatever you want to call it really.)<br/>
Once the file is copied, you need to edit it and make sure the <code>&lt;Alias&gt;</code> and <code>&lt;Directory&gt;</code> directives have the correct paths.<br/>
After you have made sure the file is correct then run: <code>sudo a2enconf httpd-meshmap</code><br/>
......
......@@ -21,8 +21,10 @@ Donations / Beer accepted! :) (paypal possibly coming soon, email: kg6wxc@gmail.
(or equiv)
- **PHP5+**
- **mysqli PHP extension**
- **mysqlnd PHP extension**
- **openssl PHP extension**
(One or both of these extensions may need to be enabled in php.ini)
(you may only need mysqlnd, it should be safe to enable both)
(One or more of these extensions may need to be enabled in php.ini)
- **MySQL/MariaDB**
(Other database systems are up to you)
- **An AREDN Mesh node available over the local network**
......@@ -118,7 +120,7 @@ Output to console *and* read/write to the database.
<blockquote style="background: #d3d3d3; margin-right: 30%;">If the --test-mode-no-sql is successful, you can go ahead and run the script with --test-mode-with-sql or just without any options.<br/>
Run the script without options and there is no on screen output (this is for cron).</blockquote>
- **5: Copy http-meshmap.conf-default to the apache2 "Conf Available" directory**, `/etc/apache2/conf-available`
- **5: Copy httpd-meshmap.conf-default to the apache2 "Conf Available" directory**, `/etc/apache2/conf-available`
Rename the file as httpd-meshmap.conf (or whatever you want to call it really.)
Once the file is copied, you need to edit it and make sure the `<Alias>` and `<Directory>` directives have the correct paths.
After you have made sure the file is correct then run: `sudo a2enconf httpd-meshmap`
......
......@@ -22,7 +22,7 @@ L.Control.SlideMenu = L.Control.extend({
onAdd: function(map){
this._container = L.DomUtil.create('div', 'leaflet-control-slidemenu leaflet-bar leaflet-control');
var link = L.DomUtil.create('a', 'leaflet-bar-part leaflet-bar-part-single', this._container);
link.title = 'Menu';
link.title = 'Info';
L.DomUtil.create('span', 'fa fa-question', link);
this._menu = L.DomUtil.create('div', 'leaflet-menu', map._container);
......@@ -64,11 +64,13 @@ L.Control.SlideMenu = L.Control.extend({
}
var closeButton = L.DomUtil.create('button', 'leaflet-menu-close-button fa', this._menu);
if(this._isHorizontal){
if(this._isLeftPosition){
closeButton.style.float = 'right';
closeButton.style.float = 'right';
//closeButton_lower.style.float = 'right';
L.DomUtil.addClass(closeButton, 'fa-chevron-left');
//L.DomUtil.addClass(closeButton_lower, 'fa-chevron-left');
}
else{
closeButton.style.float = 'left';
......@@ -87,6 +89,9 @@ L.Control.SlideMenu = L.Control.extend({
}
this._contents = L.DomUtil.create('div', 'leaflet-menu-contents', this._menu);
var closeButton_lower = L.DomUtil.create('button', 'leaflet-menu-close-button fa', this._menu);
closeButton_lower.style.float = 'right';
L.DomUtil.addClass(closeButton_lower, 'fa-chevron-left');
this._contents.innerHTML = this._innerHTML;
this._contents.style.clear = 'both';
......@@ -110,6 +115,11 @@ L.Control.SlideMenu = L.Control.extend({
.on(closeButton, 'click', function(){
// Close
this._animate(this._menu, 0, frominit, false, ispx, unit);
}, this)
.on(closeButton_lower, 'click', L.DomEvent.stopPropagation)
.on(closeButton_lower, 'click', function(){
// Close
this._animate(this._menu, 0, frominit, false, ispx, unit);
}, this);
L.DomEvent.on(this._menu, 'mouseover', function(){
map.scrollWheelZoom.disable();
......
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