-
Notifications
You must be signed in to change notification settings - Fork 6
/
pn-nt+_xui.html
61 lines (53 loc) · 2.41 KB
/
pn-nt+_xui.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>KnockbackNavigators.js Interactive Tests</title>
<link rel="stylesheet" href="vendor/normalize.css">
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../knockback-navigators.css">
<link rel="stylesheet" href="../knockback-transitions.css">
<style type="text/css">
.cell {height: 120px; width: 120px; background-color: white} /* cell styling */
</style>
</head>
<body>
<a class='btn' href='../index.html#pane_navigator' style='position: absolute; z-index: 200'>More Examples</a>
<div class='container hero-unit'>
<button class='previous-pane btn btn-small' onclick="kb.previousPane(this)" data-path='^/.pane-navigator'><i class='icon-step-backward'></i></button>
<button class='next-pane btn btn-small' onclick="kb.nextPane(this)" data-path='^/.pane-navigator'><i class='icon-step-forward'></i></button>
<div class='cell' style='position: relative'>
<div class='pane-navigator'>
<div class='pane cell'>
<p>Pane1</p>
</div>
<div class='pane cell'>
<p>Pane2</p>
</div>
<div class='pane cell'>
<p>Pane3</p>
</div>
</div>
</div>
</div>
<script src="vendor/xui-2.3.2.js"></script>
<script src="../knockback-pane-navigator.js"></script>
<script src="..//knockback-transitions.js"></script>
<script type='text/javascript'>
var pane_navigator_el = $('.pane-navigator')[0];
var pane_navigator = new kb.PaneNavigator(pane_navigator_el, {no_remove: true});
kb.utils.wrappedPaneNavigator(pane_navigator_el, pane_navigator); // cache the pane_navigator for use by kb. It should be released with kb.utils.wrappedPaneNavigator(pane_navigator_el, null)
pane_navigator.push(new kb.Pane(pane_navigator_el.children[0]));
</script>
<!-- ****************** -->
<!-- Source -->
<!-- ****************** -->
<script src="vendor/backbone/underscore-1.5.2.js"></script>
<script type='text/javascript'>
var el = $('<div><h1>Example Source</h1><pre>' +_.escape(document.body.innerHTML.substring(0, document.body.innerHTML.indexOf('<!-- ****************** -->')))+'</pre></div>')[0];
$('body')[0].appendChild(el);
</script>
</body>
</html>