12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title></title>
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <meta name="format-detection" content="telephone=no">
- <script>!function(){var e;e=function(e){return function(e,t){function i(){var t=r.getBoundingClientRect().width;t/m>540&&(t=540*m);var i=t/16;r.style.fontSize=i+"px",d.rem=e.rem=i}var a,n=e.document,r=n.documentElement,o=n.querySelector('meta[name="viewport"]'),l=n.querySelector('meta[name="flexible"]'),m=0,s=0,d=t.flexible||(t.flexible={});if(o){console.warn("将根据已有的meta标签来设置缩放比例");var c=o.getAttribute("content").match(/initial\-scale=([\d\.]+)/);c&&(s=parseFloat(c[1]),m=parseInt(1/s))}else if(l){var p=l.getAttribute("content");if(p){var u=p.match(/initial\-dpr=([\d\.]+)/),f=p.match(/maximum\-dpr=([\d\.]+)/);u&&(m=parseFloat(u[1]),s=parseFloat((1/m).toFixed(2))),f&&(m=parseFloat(f[1]),s=parseFloat((1/m).toFixed(2)))}}if(!m&&!s){var v=(e.navigator.appVersion.match(/android/gi),e.navigator.appVersion.match(/iphone/gi)),h=e.devicePixelRatio;m=v?h>=3&&(!m||m>=3)?3:h>=2&&(!m||m>=2)?2:1:1,s=1/m}if(r.setAttribute("data-dpr",m),!o)if(o=n.createElement("meta"),o.setAttribute("name","viewport"),o.setAttribute("content","initial-scale="+s+", maximum-scale="+s+", minimum-scale="+s+", user-scalable=no"),r.firstElementChild)r.firstElementChild.appendChild(o);else{var x=n.createElement("div");x.appendChild(o),n.write(x.innerHTML)}e.addEventListener("resize",function(){clearTimeout(a),a=setTimeout(i,300)},!1),e.addEventListener("pageshow",function(e){e.persisted&&(clearTimeout(a),a=setTimeout(i,300))},!1),"complete"===n.readyState?n.body.style.fontSize=12*m+"px":n.addEventListener("DOMContentLoaded",function(e){n.body.style.fontSize=12*m+"px"},!1),i(),d.dpr=e.dpr=m,d.refreshRem=i,d.rem2px=function(e){var t=parseFloat(e)*this.rem;return"string"==typeof e&&e.match(/rem$/)&&(t+="px"),t},d.px2rem=function(e){var t=parseFloat(e)/this.rem;return"string"==typeof e&&e.match(/px$/)&&(t+="rem"),t}}(window,window.lib||(window.lib={})),e}()}();
- </script>
- <link rel="stylesheet" type="text/css" href="../build/p/my/style.css">
- </head>
- <body>
- <div class="header">
- <ul class="nav clearfix">
- <li class="active title"><a href="" title="">设备名称</a></li>
- </ul>
- <a href="index.html" class="back"></a>
- </div>
- <div class="container equip">
- <div id="playerShow" style="display:none;"><div style="height:250px;" id="player"></div></div>
-
- <div id="device_data">
- <div class="equip-info clearfix" id="J_equipInfo" style="border:0px;margin-top:-10px;">
- <div class="item open">
- <div class="state">阀门打开</div>
- <div class="name">1号阀门</div>
- </div>
- <div class="item open">
- <div class="state">阀门打开</div>
- <div class="name">2号阀门</div>
- </div>
- <div class="item open">
- <div class="state">阀门打开</div>
- <div class="name">3号阀门</div>
- </div>
- <div class="item close">
- <div class="state">阀门关闭</div>
- <div class="name">4号阀门</div>
- </div>
- <div class="item close">
- <div class="state">阀门关闭</div>
- <div class="name">5号阀门</div>
- </div>
- <div class="item close">
- <div class="state">阀门关闭</div>
- <div class="name">6号阀门</div>
- </div>
- </div>
- </div>
- </div>
- <div class="show-box" id="J_showBox">
- <div class="mark"></div>
- <div class="box">
- <div class="title" id="J_title">确认关闭设备</div>
- <div class="content" id="J_content" style="display:none;"></div>
- <div class="btn sure box_sure" id="J_sure">确认</div>
- <div class="btn cancel box_cancel" id="J_cancel">取消</div>
- </div>
- </div>
- <div class="footer clearfix">
- <a href="" class="item active">设备控制</a>
- <a href="data.html" class="item">数据统计</a>
- <a href="log.html" class="item">设备记录</a>
- </div>
-
- <div id="baidumap"></div>
- <div id="video"></div>
- <script type="text/javascript" src="../js/device.js"></script>
- <script type="text/javascript" src="../build/lib/jquery-1.11.3.min.js"></script>
- <script type="text/javascript">
- var device =
- {
- '#J_equipInfo .item' : ['.name', '.state']
- };
- Maze_Device.Init(device);
- </script>
- </body>
- </html>
|