1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <!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>APP</title>
- <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
- </head>
- <style type="text/css">
- .active {
- background-color: #f4f4f4;
- }
- </style>
- <body>
- <header class="aui-bar aui-bar-nav aui-bar-dark" id="aui-header">
- <a class="aui-btn aui-btn-dark aui-pull-left" id="back">
- <span class="aui-iconfont aui-icon-left"></span>
- </a>
- <div class="aui-title">百度地图</div>
- </header>
- </body>
- <script type="text/javascript" src="../../../script/api.js" ></script>
- <script type="text/javascript">
- apiready = function(){
- var winHeight = api.winHeight;
- 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: 'demo_line_frm',
- url: 'demo_line_frm.html',
- bounces: false,
- rect: {
- x: 0,
- y: headerPos.h,
- w: 'auto',
- h: winHeight-headerPos.h-200
- },
- pageParam:{
- height:headerPos.h
- }
- });
- api.openFrame({
- name: 'demo_line_footer_frm',
- url: 'demo_line_footer_frm.html',
- bounces: false,
- vScrollBarEnabled:false,
- rect: {
- x: 0,
- y: winHeight-200,
- w: 'auto',
- h: '200'
- }
- });
- $api.addEvt($api.byId('back'), 'click', function(){
- api.closeWin();
- });
- };
- </script>
- </html>
|