forked from yuqigong/panda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (56 loc) · 1.7 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>My App for panda</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="lib/app.min.css">
<style>
/* TODO */
</style>
</head>
<body>
<div class="app-page" data-page="home">
<div class="app-topbar blue">
<div class="app-button left" data-back></div>
<div class="app-title">酒店列表</div>
</div>
<div class="app-content">
<div class="app-section">
<ul class="app-list">
<li class="app-button" data-target="page2">汉庭</li>
<li class="app-button" data-target="page2">如家</li>
<li class="app-button" data-target="page2">7天</li>
</ul>
</div>
</div>
</div>
<div class="app-page" data-page="page2">
<div class="app-topbar">
<div class="app-button left" data-back data-autotitle></div>
<div class="app-title">Page 2</div>
</div>
<div class="app-content">
<!-- Page 2 is lonely -->
<ul class="app-list">
<li class="app-button">Button item</li>
</ul>
</div>
</div>
<script src="lib/zepto.js"></script>
<script src="lib/app.min.js"></script>
<script>
App.controller('home', function(page) {
// put stuff here
});
App.controller('page2', function(page) {
// put stuff here
});
App.setDefaultTransition('rotate-left');
try {
App.restore();
} catch (err) {
App.load('home');
}
</script>
</body>
</html>