1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <title></title>
- <link href="css/mui.min.css" rel="stylesheet" />
- <link href="css/main.css" rel="stylesheet" />
- </head>
- <body>
- <header class="mui-bar mui-bar-nav">
- <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
- <h1 class="mui-title" id="title">智能设置</h1>
- </header>
- <div class="mui-content">
- <div class="mui-control-content mui-active">
- <iframe id="set" src="" style="width:100%;overflow: hidden;border:0px;"></iframe>
- </div>
- </div>
- <script src="js/mui.min.js"></script>
- <script src="js/main.js"></script>
- <script type="text/javascript" charset="utf-8">
- (function($, self) {
- $.init();
- $.plusReady(function() {
- plus.webview.currentWebview().setStyle({scrollIndicator:'none'});
- var page = document.getElementById("set");
- //alert(winSize().height);
- page.setAttribute('height', winSize().height);
- //alert(page.getAttribute('height'));
- page.setAttribute('src', config.host + 'set?&header=false&');
-
- window.addEventListener('resize', function() {
- oauthArea.style.display = document.body.clientHeight > 400 ? 'block' : 'none';
- }, false);
- /*
- //处理逻辑:1秒内,连续两次按返回键,则退出应用;
- var first = null;
- plus.key.addEventListener('backbutton', function(){
- //首次按键,提示‘再按一次退出应用’
- if(!first){
- first = new Date().getTime();
- mui.toast('再按一次退出应用');
- setTimeout(function(){
- first = null;
- },1000);
- }else{
- if(new Date().getTime()-first<1000){
- plus.runtime.quit();
- }
- }
- }, false);
- */
- });
- }(mui, document));
- </script>
- </body>
- </html>
|