123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>{{ title }}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <!-- 新 Bootstrap4 核心 CSS 文件 -->
- <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.1.0/css/bootstrap.min.css">
- <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
- <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
- <!-- popper.min.js 用于弹窗、提示、下拉菜单 -->
- <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
- <!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
- <script src="https://cdn.bootcss.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
- <!--可用來建立使用者小圖示-->
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
-
- <style>
- #four {
- margin-bottom: 0px;
- }
- body {
- margin: 0;
- }
- .navbar-dark .navbar-nav .nav-link {
- color: white;
- cursor: pointer;
- text-decoration: none;
- width: 110px;
- height: 46px;
- }
- .nav-top {
- line-height: 40px;
- background-color: #C4C4C4;
- }
- .website_title {
- font-family: Roboto;
- font-style: normal;
- font-weight: normal;
- font-size: 30px;
- color: #000000;
- }
- .navbar-nav>li {
- float: none;
- display: inline-block;
- width: 100px;
- margin: 0 auto;
- text-align: center;
- }
- .navbar-nav>li a {
- font-size: 20px;
- }
- .main-page {
- margin-top: 200px;
- }
- .page-title {
- font-family: Roboto;
- font-style: normal;
- font-weight: bold;
- font-size: 36px;
- }
- .flex {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- justify-content: center;
- }
- .set-link {
- display: inline-block;
- width: 350px;
- height: 100px;
- line-height: 100px;
- background: #008CBA;
- border: 1px solid #CFCFCF;
- box-sizing: border-box;
- color: #FFFFFF;
- border-radius: 10px;
- font-size: 36px;
- }
- .cmn-toggle {
- position: absolute;
- margin-left: 0px;
- visibility: hidden;
- }
- .cmn-toggle+label {
- display: block;
- position: relative;
- cursor: pointer;
- outline: none;
- user-select: none;
- }
- input.cmn-toggle-round-flat+label {
- padding: 2px;
- width: 60px;
- height: 30px;
- background-color: #C0C0C0;
- border-radius: 60px;
- transition: background 0.4s;
- }
- input.cmn-toggle-round-flat+label:before,
- input.cmn-toggle-round-flat+label:after {
- display: block;
- position: absolute;
- content: "";
- }
- input.cmn-toggle-round-flat+label:before {
- top: 2px;
- left: 2px;
- bottom: 2px;
- right: 2px;
- background-color: #fff;
- border-radius: 60px;
- transition: background 0.4s;
- }
- input.cmn-toggle-round-flat+label:after {
- top: 4px;
- left: 4px;
- bottom: 4px;
- width: 24px;
- background-color: #dddddd;
- border-radius: 52px;
- transition: margin 0.4s, background 0.4s;
- }
- input.cmn-toggle-round-flat:checked+label {
- background-color: #C0C0C0;
- }
- input.cmn-toggle-round-flat:checked+label:after {
- margin-left: 27px;
- background-color: #008CBA;
- }
- @media(max-width:373px) {
- .card {
- margin-right: 0px;
- }
- .set-link {
- width: 250px;
- }
- }
- @media(max-width:577px) {}
- @media(min-width:576px) {}
- @media(min-width:768px) {
- .navbar-nav>li {
- margin-left: 0px;
- }
- .navbar-nav .li-block {
- display: none;
- }
- }
- @media(min-width:991px) {
- .navbar-nav>li {
- margin-left: 20px;
- }
- .navbar-nav .li-block {
- display: none;
- }
- }
- @media(min-width:1200px) {
- .navbar-nav>li {
- margin-left: 50px;
- }
- .navbar-nav .li-block {
- display: inline-block;
- width: 100px;
- }
- }
- @media(min-width:1400px) {
- .navbar-nav .li-block {
- display: inline-block;
- width: 200px;
- }
- }
- @media(min-width:1689px) {
- .navbar-nav>li {
- margin-left: 50px;
- }
- .navbar-nav .li-block {
- display: inline-block;
- width: 500px;
- }
- }
- </style>
- <script language="JavaScript">
- var tid = '{{tid}}';
- var WS_URL = '{{WS_URL}}';
- var camera_title = '{{camera_title}}';
- console.log('tid:' + tid)
- console.log('camera_title: ' + camera_title)
- $(document).ready(function (){
- $("#camera_dry_title").text("M5 攝影機畫面_" + camera_title + " " + tid);
- if (camera_title == '乾燥出料儲豆槽' | camera_title == '乾燥入料儲豆槽' | camera_title == '乾燥槽') {
- $("#PreviousPage").attr('href','/dry');
- $("#PreviousPage").text('返回乾燥貨櫃');
- $("#NextPage").attr('href','/camera_dry');
- $("#NextPage").text('前往乾燥貨櫃總攝影機畫面');
- } else if (camera_title == '發酵出料儲豆槽' | camera_title == '發酵入料儲豆槽' | camera_title == '發酵槽') {
- $("#PreviousPage").attr('href','/ferment');
- $("#PreviousPage").text('返回發酵貨櫃');
- $("#NextPage").attr('href','/camera_ferment');
- $("#NextPage").text('前往發酵貨櫃總攝影機畫面');
- } else if (camera_title == '清洗浮選出料儲豆槽' | camera_title == '清洗浮選槽' | camera_title == '色選機出料儲豆槽' |
- camera_title == '色選機' | camera_title == '脫皮機出料儲豆槽' | camera_title == '脫皮機') {
- $("#PreviousPage").attr('href','/clean');
- $("#PreviousPage").text('返回清洗貨櫃');
- $("#NextPage").attr('href','/camera_clean');
- $("#NextPage").text('前往清洗貨櫃總攝影機畫面');
- }
-
- });
- </script>
- </head>
- <body style="background-color: rgb(207, 207, 207);">
- <div style="text-align: left;">
- <a id="PreviousPage" href="" style="float: left;">________________</a>
- </div>
- <div style="text-align: right;">
- <a id="NextPage" href="" style="float: right;">________________</a>
- </div>
- <div id="camera_dry_title" style="text-align: center; margin-top: 30px; font-size: 24px;">
- M5 攝影機畫面
- </div>
- <!--
- <div class="container-fluid">
- <div class="row" style="margin-top:50px;">
- <div class="col flex">
- <div class="col-md-12 row flex" style="text-align:center; margin-top:5px;">
- <div class="col-md-12 row flex">
- <img src="" id="four" width="90%" height="90%">
- </div>
- </div>
- </div>
- </div>
- </div>
- -->
- <center>1.2 * 1.2</center>
- <table border="1" style="margin: auto; font-size:18px; border:2px #f0f0f0 solid; margin-top: 10px; text-align: center;" cellpadding="3">
- <tr>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="288px" width="384px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="288px" width="384px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="288px" width="384px">
- </td>
- </tr>
- <tr>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- </tr>
- <tr>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="288px" width="384px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="288px" width="384px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="288px" width="384px">
- </td>
- </tr>
- <tr>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- </tr>
- </table>
- <br>
- <br>
- <br>
- <hr>
- <center>1.3 * 1.3</center>
- <table border="1" style="margin: auto; font-size:18px; border:2px #f0f0f0 solid; margin-top: 10px; text-align: center;" cellpadding="3">
- <tr>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="312px" width="416px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="312px" width="416px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="312px" width="416px">
- </td>
- </tr>
- <tr>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- </tr>
- <tr>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="312px" width="416px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="312px" width="416px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="312px" width="416px">
- </td>
- </tr>
- <tr>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- </tr>
- </table>
- <br>
- <br>
- <br>
- <hr>
- <center>1.35 * 1.35 (等比例高滿版)</center>
- <table border="1" style="margin: auto; font-size:18px; border:2px #f0f0f0 solid; margin-top: 10px; text-align: center;" cellpadding="3">
- <tr>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="324px" width="432px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="324px" width="432px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="324px" width="432px">
- </td>
- </tr>
- <tr>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- </tr>
- <tr>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="324px" width="432px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="324px" width="432px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="324px" width="432px">
- </td>
- </tr>
- <tr>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- </tr>
- </table>
- <br>
- <br>
- <br>
- <hr>
-
- <center>1.4 * 1.4</center>
- <table border="1" style="margin: auto; font-size:18px; border:2px #f0f0f0 solid; margin-top: 10px; text-align: center;" cellpadding="3">
- <tr>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="336px" width="448px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="336px" width="448px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="336px" width="448px">
- </td>
- </tr>
- <tr>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- </tr>
- <tr>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="336px" width="448px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="336px" width="448px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="336px" width="448px">
- </td>
- </tr>
- <tr>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- </tr>
- </table>
- <br>
- <br>
- <br>
- <hr>
- <center>1.5 * 1.5</center>
- <table border="1" style="margin: auto; font-size:18px; border:2px #f0f0f0 solid; margin-top: 10px; text-align: center;" cellpadding="3">
- <tr>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="360px" width="480px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="360px" width="480px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="360px" width="480px">
- </td>
- </tr>
- <tr>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- </tr>
- <tr>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="360px" width="480px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="360px" width="480px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" height="360px" width="480px">
- </td>
- </tr>
- <tr>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- </tr>
- </table>
- <br>
- <br>
- <br>
- <hr>
- <center>1.55 * 1.55 (等比例寬滿版)</center>
- <table border="1" style="margin: auto; font-size:18px; border:2px #f0f0f0 solid; margin-top: 10px; text-align: center;" cellpadding="3">
- <tr>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" width="496px" height="372px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" width="496px" height="372px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" width="496px" height="372px">
- </td>
- </tr>
- <tr>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- </tr>
- <tr>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" width="496px" height="372px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" width="496px" height="372px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" width="496px" height="372px">
- </td>
- </tr>
- <tr>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- </tr>
- </table>
- <br>
- <br>
- <br>
- <hr>
- <center> 1對4 (寬2.34 * 高1.35 全滿版)</center>
- <table border="1" style="margin: auto; font-size:18px; border:2px #f0f0f0 solid; margin-top: 10px; text-align: center;" cellpadding="3">
- <tr>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" width="750px" height="325px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" width="750px" height="325px">
- </td>
- </tr>
- <tr>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- </tr>
- <tr>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" width="750px" height="325px">
- </td>
- <td>
- <img src="../static/img/video_pic_3.png" id="four" width="750px" height="325px">
- </td>
- </tr>
- <tr>
- <td>
- 攝影機畫面
- </td>
- <td>
- 攝影機畫面
- </td>
- </tr>
- </table>
- <script>
- // M5 攝影機
- //const img = document.querySelector('#one');
- const img3 = document.querySelector('#four');
- //const WS_URL3 = 'ws:///60.250.156.230:0000';
- const WS_URL3 = WS_URL;
- const ws3 = new WebSocket(WS_URL3);
- let urlObject3;
- ws3.onopen = () => console.log(`Connected to ${WS_URL3}`);
- ws3.onmessage = message3 => {
- const arrayBuffer3 = message3.data;
- if (urlObject3) {
- URL.revokeObjectURL(urlObject3);
- }
- urlObject3 = URL.createObjectURL(new Blob([arrayBuffer3]));
- img3.src = urlObject3;
- }
- </script>
- </body>
- </html>
|