| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>水稻虫害识别</title>
- <style>
- body {
- margin: 0;
- padding: 0;
- }
- /* @font-face {
- font-family: zhanti;
- src: url("./static/font/zhanti.ttf");
- } */
- .recognbox {
- width: 100%;
- height: 100vh;
- position: relative;
- overflow: hidden;
- background-color: #101010;
- }
- .videobox {
- width: 100%;
- height: 100%;
- overflow: hidden;
- }
- .iframebox {
- position: absolute;
- top: 50px;
- left: 0px;
- width: 100%;
- height: 100%;
- z-index: 100;
- text-align: center;
- }
- .iframebox video {
- width: 61%;
- height: 90%;
- margin: 0 auto;
- }
- .iframebox .zhedang {
- height: 100%;
- width: 50px;
- background-color: #101010;
- position: absolute;
- top: 0;
- right: 12.5%;
- }
- .iframeboxbig {
- position: absolute;
- top: 0;
- left: 0px;
- width: 100%;
- height: 100%;
- z-index: 100;
- text-align: center;
- overflow-y: auto;
- overflow-x: auto;
- }
- .borbox {
- position: absolute;
- top: 0px;
- left: 0px;
- width: 100%;
- height: 100%;
- z-index: 99;
- }
- .bg {
- width: 100%;
- height: 100%;
- }
- .shang {
- position: absolute;
- top: -10px;
- left: 1.8%;
- width: 100%;
- height: 80px;
- }
- .tilte {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 60px;
- /* font-family: zhanti; */
- color: #fff;
- text-align: center;
- line-height: 50px;
- font-size: 26px;
- margin: 0;
- }
- .xia {
- position: absolute;
- bottom: -10px;
- left: 1.8%;
- width: 100%;
- height: 80px;
- }
- .borbox_menu {
- position: absolute;
- width: 60%;
- top: 50%;
- left: 20%;
- margin-top: -182px;
- display: flex;
- justify-content: space-around;
- }
- .borbox_menu .menu_item {
- width: 25%;
- background-image: url("./static/images/card.png");
- background-size: 100% 100%;
- padding: 20px;
- box-sizing: border-box;
- }
- .borbox_menu .menu_item p:first-child {
- font-size: 28px;
- /* font-family: zhanti; */
- color: #fff;
- }
- .borbox_menu .menu_item p:nth-child(2) {
- font-size: 16px;
- color: #fff;
- margin-top: 15px;
- }
- .borbox_menu .menu_item .itemimg {
- width: 100%;
- }
- .menu_item:hover {
- background-image: url("./static/images/card2.png");
- background-size: 100% 100%;
- }
- .topage {
- width: 126px;
- height: 54px;
- background-image: url(./static/images/button.png);
- background-repeat: no-repeat;
- background-size: 100% 100%;
- position: absolute;
- top: 25px;
- left: 95px;
- z-index: 99999;
- color: #fff;
- line-height: 52px;
- /* padding-left: 15px; */
- box-sizing: border-box;
- /* padding: 8px 15px; */
- text-align: center;
- }
- .caozuo {
- position: absolute;
- top: 20px;
- right: 20px;
- height: 100px;
- z-index: 9999;
- }
- .fangda img,
- .suoxiao img {
- width: 24px;
- height: 24px;
- }
- </style>
- </head>
- <body>
- <div class="recognbox" id="recognbox">
- <div class="videobox">
- <video controls="controls" muted="muted" autoplay="autoplay" loop="loop" class="fillWidth" id="fillWidths">
- <source src="https://zhanting-shibie.oss-cn-hangzhou.aliyuncs.com/1.mp4" type="video/mp4" />
- </video>
- </div>
- <div class="borbox">
- <img src="./static/images/shipinbianyuanheichang.png" alt="" class="bg" v-show="btntf" />
- <img src="./static/images/shang.png" alt="" class="shang" />
- <img src="./static/images/xia.png" alt="" class="xia" />
- <p class="tilte">水稻虫害识别</p>
- </div>
- <div class="topage" onclick="topage()">
- <i class="el-icon-back"></i>
- 返 回
- </div>
- <div class="iframebox" id="iframeboxbig">
- <video muted="muted" autoplay="autoplay" id="video1" loop="loop" src="https://zhanting-shibie.oss-cn-hangzhou.aliyuncs.com/rice-logo-5fps.mp4"
- onclick="getweizhi()"></video>
- </div>
- <div class="caozuo">
- <div class="fangda" id="fangda" onclick="btnClick()">
- <img src="./static/images/index/fangda.png" alt="">
- </div>
- <div class="suoxiao" id="suoxiao" onclick="exitFullScreen()">
- <img src="./static/images/index/suoxiao.png" alt="">
- </div>
- </div>
- </div>
- <script src="./static/js/jquery-2.1.4.min.js"></script>
- <script src="./static/js/show.js"></script>
- <script>
- function topage() {
- window.location.href = "./index.html"
- }
- // $("#iframeboxbig").hide()
- var flag = 1
- function getweizhi() {
- console.log(flag % 2)
- if (flag % 2 == 1) {
- var e = event || window.event;
- var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
- var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
- var x = e.pageX || e.clientX + scrollX;
- var y = e.pageY || e.clientY + scrollY;
- console.log(x, y)
- // 1171 843
- // 4000 2250
- var winw = window.screen.width
- var winh = window.screen.height
- var img1h = $("#video1").offset().top
- var img1w = $("#video1").offset().left
- console.log($("#video1").width())
- var width1 = $("#video1").width()
- var height1 = $("#video1").height()
- // console.log(width1,height1)
- $("#iframeboxbig").removeClass("iframebox")
- $("#iframeboxbig").addClass("iframeboxbig")
- var width2 = $("#video1").width()
- var height2 = $("#video1").height()
- // console.log(width2,height2)
- var biliy = (y - img1h) / height1 * height2 - winh / 2
- var bilix = (x - img1w) / width1 * width2 - winw / 2
- $("#iframeboxbig").scrollTop(biliy)
- $("#iframeboxbig").scrollLeft(bilix)
- } else {
- $("#iframeboxbig").addClass("iframebox")
- $("#iframeboxbig").removeClass("iframeboxbig")
- }
- flag++
- }
- function suofang() {
- $("#iframeboxbig").hide()
- }
- </script>
- </body>
- </html>
|