-
Notifications
You must be signed in to change notification settings - Fork 70
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
Mar 2, 2022
1 parent
3fdf6fc
commit a43c5b9
Showing
5 changed files
with
82 additions
and
68 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,72 +1,84 @@ | ||
<!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 light demo</title> | ||
<title>mmenu light demo</title> | ||
|
||
<link type="text/css" rel="stylesheet" href="css/demo.css" /> | ||
<link type="text/css" rel="stylesheet" href="../dist/mmenu-light.css" /> | ||
</head> | ||
<body> | ||
<div id="page"> | ||
<div class="header"> | ||
<a href="#menu"><span></span></a> | ||
Demo | ||
<nav id="menu"> | ||
<ul> | ||
<li class="Selected"><a href="#">Home</a></li> | ||
<li><span>About us</span> | ||
<ul> | ||
<li><a href="#about/history">History</a></li> | ||
<li><span>The team</span> | ||
<ul> | ||
<li><a href="#about/team/management">Management</a></li> | ||
<li><a href="#about/team/sales">Sales</a></li> | ||
<li><a href="#about/team/development">Development</a></li> | ||
</ul> | ||
</li> | ||
<li><a href="#about/address">Our address</a></li> | ||
</ul> | ||
</li> | ||
<li><a href="#contact">Contact</a></li> | ||
</ul> | ||
</nav> | ||
</div> | ||
<link type="text/css" rel="stylesheet" href="css/demo.css" /> | ||
<link type="text/css" rel="stylesheet" href="../dist/mmenu-light.css" /> | ||
</head> | ||
<body> | ||
<div id="page"> | ||
<div class="header"> | ||
<a href="#menu"><span></span></a> | ||
Demo | ||
<nav id="menu"> | ||
<ul> | ||
<li class="Selected"><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> | ||
</ul> | ||
</nav> | ||
</div> | ||
|
||
<div class="content"> | ||
<p><strong>This is a demo.</strong><br /> | ||
Click the hamburger icon to open the menu.</p> | ||
</div> | ||
</div> | ||
<div class="content"> | ||
<p> | ||
<strong>This is a demo.</strong><br /> | ||
Click the hamburger icon to open the menu. | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<script src="../dist/mmenu-light.js"></script> | ||
<script> | ||
var menu = new MmenuLight( | ||
document.querySelector( '#menu' ), | ||
'all' | ||
); | ||
<script src="../dist/mmenu-light.js"></script> | ||
<script> | ||
var menu = new MmenuLight(document.querySelector("#menu"), "all"); | ||
|
||
var navigator = menu.navigation({ | ||
// selectedClass: 'Selected', | ||
// slidingSubmenus: true, | ||
// theme: 'dark', | ||
// title: 'Menu' | ||
}); | ||
var navigator = menu.navigation({ | ||
// selectedClass: 'Selected', | ||
// slidingSubmenus: true, | ||
// theme: 'dark', | ||
// title: 'Menu' | ||
}); | ||
|
||
var drawer = menu.offcanvas({ | ||
// position: 'left' | ||
}); | ||
var drawer = menu.offcanvas({ | ||
// position: 'left' | ||
}); | ||
|
||
// Open the menu. | ||
document.querySelector( 'a[href="#menu"]' ) | ||
.addEventListener( 'click', evnt => { | ||
evnt.preventDefault(); | ||
drawer.open(); | ||
}); | ||
|
||
</script> | ||
</body> | ||
// Open the menu. | ||
document | ||
.querySelector('a[href="#menu"]') | ||
.addEventListener("click", (evnt) => { | ||
evnt.preventDefault(); | ||
drawer.open(); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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