12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <!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="product" src="" style="width:100%;overflow: hidden;border:0px;margin-top:10px;"></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 self = plus.webview.currentWebview();
- var id = self.id;
- var name = self.name;
- document.getElementById('title').innerText = name;
- var page = document.getElementById("product");
- //alert(winSize().height);
- page.setAttribute('height', winSize().height-100);
- //alert(page.getAttribute('height'));
- page.setAttribute('src', config.host + 'product?id='+id);
- });
- }(mui, document));
- </script>
- </body>
- </html>
|