-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fred Heusschen
committed
Apr 25, 2020
1 parent
f316ed7
commit 8240b55
Showing
15 changed files
with
237 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "frdh/mmenu.js", | ||
"version": "8.5.4", | ||
"version": "8.5.5", | ||
"authors": [ | ||
{ | ||
"name": "Fred Heusschen", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,162 +1,180 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="author" content="www.frebsite.nl" /> | ||
<meta name="viewport" content="width=device-width minimum-scale=1.0 maximum-scale=1.0 user-scalable=no" /> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="author" content="www.frebsite.nl" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width minimum-scale=1.0 maximum-scale=1.0 user-scalable=no" | ||
/> | ||
|
||
<title>mmenu.js demo</title> | ||
<title>mmenu.js demo</title> | ||
|
||
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" /> | ||
<link rel="stylesheet" href="css/demo.css" /> | ||
<link rel="stylesheet" href="../dist/mmenu.css" /> | ||
<link | ||
rel="stylesheet" | ||
href="http://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" | ||
/> | ||
<link rel="stylesheet" href="css/demo.css" /> | ||
<link rel="stylesheet" href="../dist/mmenu.css" /> | ||
|
||
<style> | ||
:root { | ||
--mm-sidebar-expanded-size: 300px; | ||
} | ||
.mm-menu { | ||
--mm-listitem-size: 50px; | ||
--mm-navbar-size: 50px; | ||
} | ||
<style> | ||
:root { | ||
--mm-sidebar-expanded-size: 300px; | ||
} | ||
.mm-menu { | ||
--mm-listitem-size: 50px; | ||
--mm-navbar-size: 50px; | ||
} | ||
|
||
@media (min-width: 992px) { | ||
.header a { | ||
display: none; | ||
} | ||
} | ||
@media (min-width: 992px) { | ||
.header a { | ||
display: none; | ||
} | ||
} | ||
|
||
.mm-navbar_tabs span { | ||
display: inline-block; | ||
margin-left: 8px; | ||
} | ||
@media (max-width: 450px) { | ||
.mm-navbar_tabs span { | ||
display: none; | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="page"> | ||
<div class="header"> | ||
<a href="#menu"><span></span></a> | ||
Demo | ||
</div> | ||
<div class="content"> | ||
<p><strong>This is an advanced demo.</strong><br /> | ||
Click the menu icon to open the menu.</p> | ||
</div> | ||
<nav id="menu"> | ||
<div id="panel-menu"> | ||
<ul> | ||
<li><a href="#/">Home</a></li> | ||
<li><span>About us</span> | ||
<ul> | ||
<li><a href="#/">History</a></li> | ||
<li><span>The team</span> | ||
<ul> | ||
<li><a href="#/">Management</a></li> | ||
<li><a href="#/">Sales</a></li> | ||
<li><a href="#/">Development</a></li> | ||
</ul> | ||
</li> | ||
<li><a href="#/">Our address</a></li> | ||
</ul> | ||
</li> | ||
<li><a href="#/">Contact</a></li> | ||
.mm-navbar_tabs span { | ||
display: inline-block; | ||
margin-left: 8px; | ||
} | ||
@media (max-width: 450px) { | ||
.mm-navbar_tabs span { | ||
display: none; | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="page"> | ||
<div class="header"> | ||
<a href="#menu"><span></span></a> | ||
Demo | ||
</div> | ||
<div class="content"> | ||
<p> | ||
<strong>This is an advanced demo.</strong><br /> | ||
Click the menu icon to open the menu. | ||
</p> | ||
</div> | ||
<nav id="menu"> | ||
<div id="panel-menu"> | ||
<ul> | ||
<li><a href="#/">Home</a></li> | ||
<li> | ||
<span>About us</span> | ||
<ul> | ||
<li><a href="#/">History</a></li> | ||
<li> | ||
<span>The team</span> | ||
<ul> | ||
<li><a href="#/">Management</a></li> | ||
<li><a href="#/">Sales</a></li> | ||
<li><a href="#/">Development</a></li> | ||
</ul> | ||
</li> | ||
<li><a href="#/">Our address</a></li> | ||
</ul> | ||
</li> | ||
<li><a href="#/">Contact</a></li> | ||
|
||
<li class="Divider">Other demos</li> | ||
<li><a href="default.html">Default demo</a></li> | ||
<li><a href="onepage.html">One page demo</a></li> | ||
</ul> | ||
</div> | ||
<li class="Divider">Other demos</li> | ||
<li><a href="default.html">Default demo</a></li> | ||
<li><a href="onepage.html">One page demo</a></li> | ||
</ul> | ||
</div> | ||
|
||
<div id="panel-account"> | ||
<ul> | ||
<li><a href="#/">My profile</a></li> | ||
<li><a href="#/">Privacy settings</a></li> | ||
<li><a href="#/">Activity</a></li> | ||
<li><a href="#/">Sign out</a></li> | ||
</ul> | ||
</div> | ||
<div id="panel-account"> | ||
<ul> | ||
<li><a href="#/">My profile</a></li> | ||
<li><a href="#/">Privacy settings</a></li> | ||
<li><a href="#/">Activity</a></li> | ||
<li><a href="#/">Sign out</a></li> | ||
</ul> | ||
</div> | ||
|
||
<div id="panel-cart"> | ||
<p style="text-align: center; padding-top: 30px;">Your shoppingcart is empty.<br /> | ||
<a href="#/">Continue shopping.</a></p> | ||
</div> | ||
</nav> | ||
</div> | ||
<div id="panel-cart"> | ||
<p style="text-align: center; padding-top: 30px;"> | ||
Your shoppingcart is empty.<br /> | ||
<a href="#/">Continue shopping.</a> | ||
</p> | ||
</div> | ||
</nav> | ||
</div> | ||
|
||
<!-- mmenu scripts --> | ||
<script src="../dist/mmenu.polyfills.js"></script> | ||
<script src="../dist/mmenu.js"></script> | ||
<script> | ||
new Mmenu( | ||
document.querySelector('#menu'), | ||
{ | ||
extensions : [ 'theme-dark', 'shadow-page' ], | ||
setSelected : true, | ||
counters : true, | ||
searchfield : { | ||
placeholder : 'Search menu items' | ||
}, | ||
iconbar : { | ||
use : '(min-width: 450px)', | ||
top : [ | ||
'<a href="#/"><span class="fa fa-home"></span></a>' | ||
], | ||
bottom : [ | ||
'<a href="#/"><span class="fa fa-twitter"></span></a>', | ||
'<a href="#/"><span class="fa fa-facebook"></span></a>', | ||
'<a href="#/"><span class="fa fa-youtube"></span></a>' | ||
] | ||
}, | ||
sidebar : { | ||
collapsed : { | ||
use : '(min-width: 450px)', | ||
hideNavbar : false | ||
}, | ||
expanded : { | ||
use : '(min-width: 992px)' | ||
} | ||
}, | ||
navbars : [ | ||
{ | ||
content : [ 'searchfield' ] | ||
}, { | ||
type : 'tabs', | ||
content : [ | ||
'<a href="#panel-menu"><i class="fa fa-bars"></i> <span>Menu</span></a>', | ||
'<a href="#panel-account"><i class="fa fa-user"></i> <span>Account</span></a>', | ||
'<a href="#panel-cart"><i class="fa fa-shopping-cart"></i> <span>Cart</span></a>' | ||
] | ||
}, { | ||
content : [ 'prev', 'breadcrumbs', 'close' ] | ||
}, { | ||
position : 'bottom', | ||
content : [ '<a href="http://mmenu.frebsite.nl/wordpress-plugin" target="_blank">WordPress plugin</a>' ] | ||
} | ||
] | ||
}, { | ||
searchfield : { | ||
clear : true | ||
}, | ||
navbars : { | ||
breadcrumbs : { | ||
removeFirst : true | ||
} | ||
} | ||
} | ||
); | ||
<!-- mmenu scripts --> | ||
<script src="../dist/mmenu.polyfills.js"></script> | ||
<script src="../dist/mmenu.js"></script> | ||
<script> | ||
new Mmenu( | ||
document.querySelector('#menu'), | ||
{ | ||
extensions: ['theme-dark', 'shadow-page'], | ||
setSelected: true, | ||
counters: true, | ||
searchfield: { | ||
placeholder: 'Search menu items', | ||
}, | ||
iconbar: { | ||
use: '(min-width: 450px)', | ||
top: [ | ||
'<a href="#/"><span class="fa fa-home"></span></a>', | ||
], | ||
bottom: [ | ||
'<a href="#/"><span class="fa fa-twitter"></span></a>', | ||
'<a href="#/"><span class="fa fa-facebook"></span></a>', | ||
'<a href="#/"><span class="fa fa-youtube"></span></a>', | ||
], | ||
}, | ||
sidebar: { | ||
collapsed: { | ||
use: '(min-width: 450px)', | ||
hideNavbar: false, | ||
}, | ||
expanded: { | ||
use: '(min-width: 992px)', | ||
}, | ||
}, | ||
navbars: [ | ||
{ | ||
content: ['searchfield'], | ||
}, | ||
{ | ||
type: 'tabs', | ||
content: [ | ||
'<a href="#panel-menu"><i class="fa fa-bars"></i> <span>Menu</span></a>', | ||
'<a href="#panel-account"><i class="fa fa-user"></i> <span>Account</span></a>', | ||
'<a href="#panel-cart"><i class="fa fa-shopping-cart"></i> <span>Cart</span></a>', | ||
], | ||
}, | ||
{ | ||
content: ['prev', 'breadcrumbs', 'close'], | ||
}, | ||
{ | ||
position: 'bottom', | ||
content: [ | ||
'<a href="http://mmenu.frebsite.nl/wordpress-plugin" target="_blank">WordPress plugin</a>', | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
searchfield: { | ||
clear: true, | ||
}, | ||
navbars: { | ||
breadcrumbs: { | ||
removeFirst: true, | ||
}, | ||
}, | ||
} | ||
); | ||
|
||
document.addEventListener( 'click', function( evnt ) { | ||
var anchor = evnt.target.closest( 'a[href^="#/"]' ); | ||
if ( anchor ) { | ||
alert('Thank you for clicking, but that\'s a demo link.'); | ||
evnt.preventDefault(); | ||
} | ||
}); | ||
</script> | ||
</body> | ||
document.addEventListener('click', function (evnt) { | ||
var anchor = evnt.target.closest('a[href^="#/"]'); | ||
if (anchor) { | ||
alert("Thank you for clicking, but that's a demo link."); | ||
evnt.preventDefault(); | ||
} | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default '8.5.4'; | ||
export default '8.5.5'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.