mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
274 lines
7.9 KiB
HTML
274 lines
7.9 KiB
HTML
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Panels</title>
|
|
|
|
<!-- Sets initial viewport load and disables zooming -->
|
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
<!--<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">-->
|
|
<link rel="stylesheet" href="../../dist/ionic.css">
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<section id="page" class="full-section ion-panel-animated">
|
|
|
|
<header class="bar bar-header bar-dark">
|
|
<button id="left-button" class="button">Left</button>
|
|
<h1 class="title">Panels</h1>
|
|
<button id="right-button" class="button">Left</button>
|
|
</header>
|
|
|
|
<main class="content content-padded has-header">
|
|
<h2>Cheese!</h2>
|
|
</main>
|
|
|
|
<footer class="bar bar-footer bar-dark">
|
|
<h3 class="title">Panels</h3>
|
|
</footer>
|
|
|
|
</section>
|
|
|
|
|
|
<section id="my-left-panel" class="ion-panel ion-panel-left">
|
|
<ul class="list">
|
|
<li class="list-divider">Left Nav Things</li>
|
|
<a href="#" class="list-item">
|
|
Sasafras
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Candy
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Candy
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
</ul>
|
|
</section>
|
|
|
|
<section id="my-right-panel" class="ion-panel ion-panel-right">
|
|
<ul class="list">
|
|
<li class="list-divider">Left Nav Things</li>
|
|
<a href="#" class="list-item">
|
|
Sasafras
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Candy
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Candy
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
<a href="#" class="list-item">
|
|
Cheese cords
|
|
<i class="icon-arrow-right"></i>
|
|
</a>
|
|
</ul>
|
|
</section>
|
|
|
|
|
|
<script src="../../js/ionic-events.js"></script>
|
|
<script src="../../js/ionic-gestures.js"></script>
|
|
<script src="../../js/controllers/ionic-leftrightpanel.js"></script>
|
|
<script>
|
|
|
|
// Grab the sections
|
|
var page = document.getElementById('page');
|
|
var leftPanel = document.getElementById('my-left-panel');
|
|
var rightPanel = document.getElementById('my-right-panel');
|
|
var controller = new ion.controllers.LeftRightPanelViewController({
|
|
left: leftPanel,
|
|
leftWidth: 270,
|
|
right: rightPanel,
|
|
rightWidth: 270,
|
|
center: page,
|
|
animateClass: 'ion-panel-animated'
|
|
});
|
|
window.ion.onGesture('tap', function(e) {
|
|
controller.toggleLeft();
|
|
}, document.getElementById('left-button'));
|
|
window.ion.onGesture('tap', function(e) {
|
|
controller.toggleRight();
|
|
}, document.getElementById('right-button'));
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|