forked from liulangnan/aui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (60 loc) · 1.79 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
<!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"/>
<title>AUI</title>
<link rel="stylesheet" type="text/css" href="./css/aui.css" />
</head>
<style>
.aui-iconfont {
font-size: 22px !important;
}
/*.aui-bar {
background: url('./image/yuanxiao.png') no-repeat #e74c3c;
background-size: 100% auto;
background-position: 0 bottom;
}*/
</style>
<body>
<div class="aui-bar aui-bar-nav aui-bar-warning" id="aui-header">AUI</div>
</body>
<script type="text/javascript" src="./script/api.js"></script>
<script type="text/javascript" src="./script/aui-alert.js" ></script>
<script type="text/javascript">
apiready = function(){
api.parseTapmode();
var header = $api.byId('aui-header');
$api.fixStatusBar(header);
var headerPos = $api.offset(header);
var body_h = $api.offset($api.dom('body')).h;
api.openFrame({
name: 'main',
url: 'html/main.html',
bounces: true,
rect: {
x: 0,
y: headerPos.h,
w: 'auto',
h: 'auto'
}
});
}
function about() {
var html = '<p>当前版本 <span class="aui-text-info">V1.1.8</span></p><p>AUI是专门为APICloud用户打造的一款前端UI框架</p>';
$aui.alert({
title:'AUI',
content:html,
buttons:['确定'],
radius:6,
titleColor:'#ff3300',
contColor:'#333',
btnColor:''
},function(ret){
//处理回调函数
if(ret){
}
})
}
</script>
</html>