ricediscern.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>水稻虫害识别</title>
  8. <style>
  9. body {
  10. margin: 0;
  11. padding: 0;
  12. }
  13. /* @font-face {
  14. font-family: zhanti;
  15. src: url("./static/font/zhanti.ttf");
  16. } */
  17. .recognbox {
  18. width: 100%;
  19. height: 100vh;
  20. position: relative;
  21. overflow: hidden;
  22. background-color: #101010;
  23. }
  24. .videobox {
  25. width: 100%;
  26. height: 100%;
  27. overflow: hidden;
  28. }
  29. .iframebox {
  30. position: absolute;
  31. top: 50px;
  32. left: 0px;
  33. width: 100%;
  34. height: 100%;
  35. z-index: 100;
  36. text-align: center;
  37. }
  38. .iframebox video {
  39. width: 61%;
  40. height: 90%;
  41. margin: 0 auto;
  42. }
  43. .iframebox .zhedang {
  44. height: 100%;
  45. width: 50px;
  46. background-color: #101010;
  47. position: absolute;
  48. top: 0;
  49. right: 12.5%;
  50. }
  51. .iframeboxbig {
  52. position: absolute;
  53. top: 0;
  54. left: 0px;
  55. width: 100%;
  56. height: 100%;
  57. z-index: 100;
  58. text-align: center;
  59. overflow-y: auto;
  60. overflow-x: auto;
  61. }
  62. .borbox {
  63. position: absolute;
  64. top: 0px;
  65. left: 0px;
  66. width: 100%;
  67. height: 100%;
  68. z-index: 99;
  69. }
  70. .bg {
  71. width: 100%;
  72. height: 100%;
  73. }
  74. .shang {
  75. position: absolute;
  76. top: -10px;
  77. left: 1.8%;
  78. width: 100%;
  79. height: 80px;
  80. }
  81. .tilte {
  82. position: absolute;
  83. top: 0;
  84. left: 0;
  85. width: 100%;
  86. height: 60px;
  87. /* font-family: zhanti; */
  88. color: #fff;
  89. text-align: center;
  90. line-height: 50px;
  91. font-size: 26px;
  92. margin: 0;
  93. }
  94. .xia {
  95. position: absolute;
  96. bottom: -10px;
  97. left: 1.8%;
  98. width: 100%;
  99. height: 80px;
  100. }
  101. .borbox_menu {
  102. position: absolute;
  103. width: 60%;
  104. top: 50%;
  105. left: 20%;
  106. margin-top: -182px;
  107. display: flex;
  108. justify-content: space-around;
  109. }
  110. .borbox_menu .menu_item {
  111. width: 25%;
  112. background-image: url("./static/images/card.png");
  113. background-size: 100% 100%;
  114. padding: 20px;
  115. box-sizing: border-box;
  116. }
  117. .borbox_menu .menu_item p:first-child {
  118. font-size: 28px;
  119. /* font-family: zhanti; */
  120. color: #fff;
  121. }
  122. .borbox_menu .menu_item p:nth-child(2) {
  123. font-size: 16px;
  124. color: #fff;
  125. margin-top: 15px;
  126. }
  127. .borbox_menu .menu_item .itemimg {
  128. width: 100%;
  129. }
  130. .menu_item:hover {
  131. background-image: url("./static/images/card2.png");
  132. background-size: 100% 100%;
  133. }
  134. .topage {
  135. width: 126px;
  136. height: 54px;
  137. background-image: url(./static/images/button.png);
  138. background-repeat: no-repeat;
  139. background-size: 100% 100%;
  140. position: absolute;
  141. top: 25px;
  142. left: 95px;
  143. z-index: 99999;
  144. color: #fff;
  145. line-height: 52px;
  146. /* padding-left: 15px; */
  147. box-sizing: border-box;
  148. /* padding: 8px 15px; */
  149. text-align: center;
  150. }
  151. .caozuo {
  152. position: absolute;
  153. top: 20px;
  154. right: 20px;
  155. height: 100px;
  156. z-index: 9999;
  157. }
  158. .fangda img,
  159. .suoxiao img {
  160. width: 24px;
  161. height: 24px;
  162. }
  163. </style>
  164. </head>
  165. <body>
  166. <div class="recognbox" id="recognbox">
  167. <div class="videobox">
  168. <video controls="controls" muted="muted" autoplay="autoplay" loop="loop" class="fillWidth" id="fillWidths">
  169. <source src="https://zhanting-shibie.oss-cn-hangzhou.aliyuncs.com/1.mp4" type="video/mp4" />
  170. </video>
  171. </div>
  172. <div class="borbox">
  173. <img src="./static/images/shipinbianyuanheichang.png" alt="" class="bg" v-show="btntf" />
  174. <img src="./static/images/shang.png" alt="" class="shang" />
  175. <img src="./static/images/xia.png" alt="" class="xia" />
  176. <p class="tilte">水稻虫害识别</p>
  177. </div>
  178. <div class="topage" onclick="topage()">
  179. <i class="el-icon-back"></i>
  180. 返 回
  181. </div>
  182. <div class="iframebox" id="iframeboxbig">
  183. <video muted="muted" autoplay="autoplay" id="video1" loop="loop" src="https://zhanting-shibie.oss-cn-hangzhou.aliyuncs.com/rice-logo-5fps.mp4"
  184. onclick="getweizhi()"></video>
  185. </div>
  186. <div class="caozuo">
  187. <div class="fangda" id="fangda" onclick="btnClick()">
  188. <img src="./static/images/index/fangda.png" alt="">
  189. </div>
  190. <div class="suoxiao" id="suoxiao" onclick="exitFullScreen()">
  191. <img src="./static/images/index/suoxiao.png" alt="">
  192. </div>
  193. </div>
  194. </div>
  195. <script src="./static/js/jquery-2.1.4.min.js"></script>
  196. <script src="./static/js/show.js"></script>
  197. <script>
  198. function topage() {
  199. window.location.href = "./index.html"
  200. }
  201. // $("#iframeboxbig").hide()
  202. var flag = 1
  203. function getweizhi() {
  204. console.log(flag % 2)
  205. if (flag % 2 == 1) {
  206. var e = event || window.event;
  207. var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
  208. var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
  209. var x = e.pageX || e.clientX + scrollX;
  210. var y = e.pageY || e.clientY + scrollY;
  211. console.log(x, y)
  212. // 1171 843
  213. // 4000 2250
  214. var winw = window.screen.width
  215. var winh = window.screen.height
  216. var img1h = $("#video1").offset().top
  217. var img1w = $("#video1").offset().left
  218. console.log($("#video1").width())
  219. var width1 = $("#video1").width()
  220. var height1 = $("#video1").height()
  221. // console.log(width1,height1)
  222. $("#iframeboxbig").removeClass("iframebox")
  223. $("#iframeboxbig").addClass("iframeboxbig")
  224. var width2 = $("#video1").width()
  225. var height2 = $("#video1").height()
  226. // console.log(width2,height2)
  227. var biliy = (y - img1h) / height1 * height2 - winh / 2
  228. var bilix = (x - img1w) / width1 * width2 - winw / 2
  229. $("#iframeboxbig").scrollTop(biliy)
  230. $("#iframeboxbig").scrollLeft(bilix)
  231. } else {
  232. $("#iframeboxbig").addClass("iframebox")
  233. $("#iframeboxbig").removeClass("iframeboxbig")
  234. }
  235. flag++
  236. }
  237. function suofang() {
  238. $("#iframeboxbig").hide()
  239. }
  240. </script>
  241. </body>
  242. </html>