forked from liulangnan/aui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (69 loc) · 2 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
63
64
65
66
67
68
69
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<link rel="stylesheet" type="text/css" href="./css/aui.2.0.css" />
<style type="text/css">
.header {
padding: 2.5rem 0.5rem 2rem 0.5rem;
}
</style>
</head>
<body>
<header class="aui-bar aui-bar-nav aui-text-left header" id="header">
<h1>
<a class="aui-btn aui-pull-right" tapmode onclick="openClub()">
<i class="aui-iconfont aui-icon-question"></i>
</a>
AUI 2.0
</h1>
</header>
</body>
<script type="text/javascript" src="./script/api.js"></script>
<script type="text/javascript">
apiready = function(){
api.setStatusBarStyle({
style: 'light'
});
api.parseTapmode();
var header = $api.byId('header');
var headerPos = $api.offset(header);
var body_h = $api.offset($api.dom('body')).h;
var header_h = $api.offset($api.byId('header')).h;
api.openFrame({
name: 'index_frm',
url: './html/index_frm.html',
bounces: true,
rect: {
x: 0,
y: header_h,
w: 'auto',
h: 'auto'
}
})
};
function openClub(){
var delay = 0;
if(api.systemType != 'ios'){
delay = 300;
}
api.openWin({
name: 'club_win',
url: './html/club_win.html',
bounces:false,
delay: delay,
slidBackEnabled:true,
vScrollBarEnabled:false,
progress:{
type:"page"
}
});
}
function closeWin(){
api.closeWin({
});
}
</script>
</html>