greenhouse.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title></title>
  6. <meta name="apple-mobile-web-app-capable" content="yes">
  7. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  8. <meta name="format-detection" content="telephone=no">
  9. <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}()}();
  10. </script>
  11. <link rel="stylesheet" type="text/css" href="../build/p/my/style.css">
  12. </head>
  13. <body>
  14. <div class="header">
  15. <ul class="nav clearfix">
  16. <li class="active"><a href="#" title="">设备名称</a></li>
  17. </ul>
  18. <a href="index.html" class="back"></a>
  19. </div>
  20. <div class="container equip business" style="position:absolute;top:10.25rem;">
  21. <div class="title">温室监控</div>
  22. <div id="playerShow" style="display:none;"><div style="height:250px;" id="player"></div></div>
  23. <div id="device_data">
  24. <div class="business-data business-list clearfix" style="z-index:99999">
  25. <div class="business-item">
  26. <div class="num">28℃</div>
  27. <div class="name">平均温度</div>
  28. </div>
  29. <div class="business-item">
  30. <div class="num">85%rh</div>
  31. <div class="name">平均湿度</div>
  32. </div>
  33. <div class="business-item">
  34. <div class="num">20m/s</div>
  35. <div class="name">平均风速</div>
  36. </div>
  37. <div class="business-item">
  38. <div class="num">46lux</div>
  39. <div class="name">阳光光照度</div>
  40. </div>
  41. <div class="business-item">
  42. <div class="num">192°西南偏南</div>
  43. <div class="name">风向</div>
  44. </div>
  45. <div class="business-item">
  46. <div class="num">3mm</div>
  47. <div class="name">当前降水量</div>
  48. </div>
  49. </div>
  50. <div class="equip-info business-list clearfix" id="J_equipInfo" style="z-index:99999">
  51. <div class="item open">
  52. <div class="state">阀门打开</div>
  53. <div class="name">1号阀门</div>
  54. </div>
  55. <div class="item open">
  56. <div class="state">阀门打开</div>
  57. <div class="name">2号阀门</div>
  58. </div>
  59. <div class="item open">
  60. <div class="state">阀门打开</div>
  61. <div class="name">3号阀门</div>
  62. </div>
  63. <div class="item close">
  64. <div class="state">阀门关闭</div>
  65. <div class="name">4号阀门</div>
  66. </div>
  67. <div class="item close">
  68. <div class="state">阀门关闭</div>
  69. <div class="name">5号阀门</div>
  70. </div>
  71. <div class="item close">
  72. <div class="state">阀门关闭</div>
  73. <div class="name">6号阀门</div>
  74. </div>
  75. <div class="item close">
  76. <div class="state">阀门关闭</div>
  77. <div class="name">6号阀门</div>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="footer clearfix image">
  83. <a href="business.html" class="item active">墒情分析</a>
  84. <a href="image.html" class="item">图像采集</a>
  85. <a href="data.html" class="item">数据统计</a>
  86. <a href="log.html" class="item">设备记录</a>
  87. </div>
  88. <div class="show-box" id="J_showBox">
  89. <div class="mark"></div>
  90. <div class="box">
  91. <div class="title" id="J_title">确认关闭设备</div>
  92. <div class="content" id="J_content" style="display:none;"></div>
  93. <div class="btn sure box_sure" id="J_sure">确认</div>
  94. <div class="btn cancel box_cancel" id="J_cancel">取消</div>
  95. </div>
  96. </div>
  97. <div id="video"></div>
  98. <script>
  99. var basePath = 'http://www.xinnongbaohe.com/assets/pc/lib/';
  100. var retcode = '0';
  101. var des = '服务器异常';
  102. </script>
  103. <script type="text/javascript" src="../js/device.js"></script>
  104. <script type="text/javascript" src="../build/lib/jquery-1.11.3.min.js"></script>
  105. <script type="text/javascript">
  106. var device =
  107. {
  108. '#J_equipInfo .item' : ['.name', '.state']
  109. };
  110. Maze_Device.Init(device);
  111. </script>
  112. </body>
  113. </html>