advanced.html 9.59 KB
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
		<meta name="author" content="www.frebsite.nl" />
		<meta name="viewport" content="width=device-width initial-scale=1.0 maximum-scale=1.0 user-scalable=yes" />

		<title>jQuery.mmenu - Examples</title>

		<link type="text/css" rel="stylesheet" href="demo.css" />
		<link type="text/css" rel="stylesheet" href="../src/css/jquery.mmenu.all.css" />
		<style type="text/css">
			.mm-menu li.img a
			{
				font-size: 16px;
			}
			.mm-menu li.img a img
			{
				float: left;
				margin: -5px 10px -5px 0;
			}
			.mm-menu li.img a small
			{
				font-size: 12px;
			}
		</style>

		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
		<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/hammer.js/1.0.5/jquery.hammer.min.js"></script>
		<script type="text/javascript" src="../src/js/jquery.mmenu.min.all.js"></script>
		<script type="text/javascript">

			//	The menu on the left
			$(function() {
				$('nav#menu-left').mmenu();
			});


			//	The menu on the right
			$(function() {

				var $menu = $('nav#menu-right');

				$menu.mmenu({
					offCanvas	: {
						position	: 'right'
					},

					classes		: 'mm-light',
					dragOpen	: true,
					counters	: true,
					searchfield	: true,
					header		: {
						add			: true,
						update		: true,
						title		: 'Contacts'
					}
				});

				//	Click a menu-item
				var $confirm = $('#confirmation');
				$menu.find( 'li a' ).not( '.mm-subopen' ).not( '.mm-subclose' ).bind(
					'click.example',
					function( e )
					{
						e.preventDefault();
						$confirm.show().text( 'You clicked "' + $.trim( $(this).text() ) + '"' );
						$('#menu-right').trigger( 'close' );
					}
				);
			});
		</script>
	</head>
	<body>
		<div id="page">
			<div id="header">
				<a href="#menu-left"></a>
				This is a demo page
				<a href="#menu-right" class="friends right"></a>
			</div>
			<div id="content">
				<p id="confirmation"></p>
				<h4>Off-canvas menus for your website</h4>
				<p>Beautiful app look-alike off-canvas menus with sliding submenus for your website and webapp.</p>
				<h4>Try it!</h4>
				<p>Click the menu-button to open the menu on the left. Or click the contacts-button to open a second menu on the right.</p>
				<h4>Advanced</h4>
				<p>The menu on the right is really advanced; it uses the <em>positioning</em> and <em>themes</em> extensions and the <em>counters</em>, <em>dragOpen</em>, <em>header</em> and <em>searchfield</em> addons.</p>
			</div>
			<nav id="menu-left">
				<ul>
					<li><a href="index.html">Introduction</a></li>
					<li><a href="horizontal-submenus.html">Horizontal submenus example</a></li>
					<li><a href="vertical-submenus.html">Vertical submenus example</a></li>
					<li><a href="positions.html">Positioning the menu</a></li>
					<li><a href="colors.html">Coloring the menu</a></li>
					<li class="Selected"><a href="advanced.html">Advanced example</a></li>
					<li><a href="onepage.html">One page scrolling example</a></li>
					<li><a href="photos.html">Photo's app</a></li>
					<li><a href="jqmobile/index.html">jQuery Mobile example</a></li>
				</ul>
			</nav>
			<nav id="menu-right">
				<ul>
					<li>
						<span>Friends</span>
						<ul>
							<li class="Label">A</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/1/" />
									Alexa<br />
									<small>Johnson</small>
								</a>
							</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/2/" />
									Alexander<br />
									<small>Brown</small>
								</a>
							</li>

							<li class="Label">F</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/3/" />
									Fred<br />
									<small>Smith</small>
								</a>
							</li>

							<li class="Label">J</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/4/" />
									James<br />
									<small>Miller</small>
								</a>
							</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/5/" />
									Jefferson<br />
									<small>Jackson</small>
								</a>
							</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/6/" />
									Jordan<br />
									<small>Lee</small>
								</a>
							</li>

							<li class="Label">K</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/7/" />
									Kim<br />
									<small>Adams</small>
								</a>
							</li>

							<li class="Label">M</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/8/" />
									Meagan<br />
									<small>Miller</small>
								</a>
							</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/9/" />
									Melissa<br />
									<small>Johnson</small>
								</a>
							</li>
							
							<li class="Label">N</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/10/" />
									Nicole<br />
									<small>Smith</small>
								</a>
							</li>

							<li class="Label">S</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/1/" />
									Samantha<br />
									<small>Harris</small>
								</a>
							</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/2/" />
									Scott<br />
									<small>Thompson</small>
								</a>
							</li>
						</ul>
					</li>
					
					<li>
						<span>Family</span>
						<ul>
							<li class="Label">A</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/3/" />
									Adam<br />
									<small>White</small>
								</a>
							</li>

							<li class="Label">B</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/4/" />
									Ben<br />
									<small>Robinson</small>
								</a>
							</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/5/" />
									Bruce<br />
									<small>Lee</small>
								</a>
							</li>

							<li class="Label">E</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/6/" />
									Eddie<br />
									<small>Williams</small>
								</a>
							</li>

							<li class="Label">J</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/7/" />
									Jack<br />
									<small>Johnson</small>
								</a>
							</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/8/" />
									John<br />
									<small>Jackman</small>
								</a>
							</li>

							<li class="Label">M</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/9/" />
									Martina<br />
									<small>Thompson</small>
								</a>
							</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/10/" />
									Matthew<br />
									<small>Watson</small>
								</a>
							</li>

							<li class="Label">O</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/1/" />
									Olivia<br />
									<small>Taylor</small>
								</a>
							</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/2/" />
									Owen<br />
									<small>Wilson</small>
								</a>
							</li>
						</ul>
					</li>

					<li>
						<span>Work colleagues</span>
						<ul>
							<li class="Label">D</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/3/" />
									David<br />
									<small>Harris</small>
								</a>
							</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/4/" />
									Dennis<br />
									<small>King</small>
								</a>
							</li>
							
							<li class="Label">E</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/5/" />
									Eliza<br />
									<small>Walker</small>
								</a>
							</li>
							
							<li class="Label">L</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/6/" />
									Larry<br />
									<small>Turner</small>
								</a>
							</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/7/" />
									Lisa<br />
									<small>Wilson</small>
								</a>
							</li>
							
							<li class="Label">M</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/8/" />
									Michael<br />
									<small>Jordan</small>
								</a>
							</li>
							
							<li class="Label">R</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/9/" />
									Rachelle<br />
									<small>Cooper</small>
								</a>
							</li>
							<li class="img">
								<a href="#">
									<img src="http://lorempixel.com/50/50/people/10/" />
									Rick<br />
									<small>James</small>
								</a>
							</li>
						</ul>
					</li>
				</ul>
			</nav>
		</div>
		<script type="text/javascript" language="javascript" src="footer.js"></script>
	</body>
</html>