forked from krisrak/appframework-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-SideMenuApp-both.html
84 lines (70 loc) · 2.6 KB
/
template-SideMenuApp-both.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
<head>
<title>Side Menu App template</title>
<!--
This template can be used for simple app with side menu that can be opened to switch views, for applications like Youtube App or Gmail app.
-->
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0;" />
<link rel="stylesheet" type="text/css" href="appframework/af.ui.css" />
<link rel="stylesheet" type="text/css" href="appframework/icons.css" />
<script type="text/javascript" charset="utf-8" src="appframework/appframework.ui.min.js"></script>
<!--AppFramework plugin for sliding side menu-->
<script type="text/javascript" charset="utf-8" src="appframework/plugins/af.slidemenu.js"></script>
<!-- Required if building app using Intel XDK -->
<script src="intelxdk.js"></script>
<script src="xhr.js"></script>
<script>
$.ui.autoLaunch = false;
$.ui.animateHeaders = false;
$.ui.splitview = false;
/* Required if building app using Intel XDK */
function onDeviceReady(){
$.ui.launch();
intel.xdk.device.hideSplashScreen();
}
$(document).ready(function(){
document.addEventListener("intel.xdk.device.ready", onDeviceReady, false);
$.ui.setLeftSideMenuWidth(270);
$.ui.setRightSideMenuWidth(220);
$.ui.launch();
});
</script>
<style>
</style>
</head>
<body>
<div id="afui">
<!--left side menu Navigation bar -->
<nav>
<ul class="list">
<li class="divider">Menus</li>
<li><a href="#home" class="icon home">Home</a></li>
<li><a href="#home" class="icon heart">Favorites</a></li>
<li><a href="#home" class="icon chat">Messages</a></li>
</ul>
</nav>
<!--right side menu Navigation bar -->
<aside>
<ul class="list">
<li class="divider">Chat</li>
<li class="icon user">Mike</li>
<li class="icon user">Brad</li>
<li class="icon user">John</li>
<li class="icon user">Sam</li>
</ul>
</aside>
<div id="content" style="">
<!--Main Pages-->
<div class="panel" title="Home" id="home" data-footer="none" selected="true">
<header>
<a onclick='$.ui.toggleLeftSideMenu()' class='button icon settings' style="float:left"></a>
<a onclick='$.ui.toggleRightSideMenu()' class='button icon chat' style="float:right"></a>
<h1>Home</h1>
</header>
<p>This is both side menu demo</p>
</div>
</div>
</div>
</body>
</html>