index_navbar.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>{{ title }}</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <!-- <meta http-equiv="refresh" content="300" /> 每 content 秒網頁自動更新-->
  8. <!-- 新 Bootstrap4 核心 CSS 文件 -->
  9. <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.1.0/css/bootstrap.min.css">
  10. <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
  11. <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  12. <!-- popper.min.js 用于弹窗、提示、下拉菜单 -->
  13. <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
  14. <!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
  15. <script src="https://cdn.bootcss.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
  16. <!--可用來建立使用者小圖示-->
  17. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  18. <!-- 參考資料 -->
  19. <!-- https://ithelp.ithome.com.tw/articles/10244121 -->
  20. <script language="JavaScript">
  21. // 指定 秒 刷新網頁一次
  22. var dtn = '{{tid}}';
  23. console.log('dtn:' + dtn)
  24. $(function(){
  25. $("#dry_tank_page").text('乾燥槽 D' + dtn + ' 攝影機畫面 ')
  26. $('#dry_tank_page').attr("href", "/camera_D" + dtn)
  27. $("#dry_container_title").text('乾燥槽 D' + dtn + ' 操作介面')
  28. });
  29. // WebUpdate_set = setInterval(function(){WebUpdate(dtn)} , 10 * 1000)
  30. </script>
  31. <style>
  32. .footer{
  33. height: 40px;
  34. box-sizing: border-box;
  35. /* 設定footer絕對位置在底部 */
  36. position: absolute;
  37. bottom: 0px;
  38. width: 100%;
  39. background-color: #eee;
  40. text-align: center;
  41. }
  42. html, body {
  43. height: 100%;
  44. }
  45. #wrapper {
  46. /* 設定高度最小為100%, 如果內容區塊很多, 可以長大 */
  47. min-height: 100%;
  48. /* 位置設為relative, 作為footer區塊位置的參考 */
  49. position: relative;
  50. }
  51. .navbar-dark .navbar-nav .nav-link {
  52. color: white;
  53. cursor: pointer;
  54. text-decoration: none;
  55. width: 110px;
  56. height: 46px;
  57. }
  58. .nav-top {
  59. line-height: 40px;
  60. background-color: #C4C4C4;
  61. }
  62. .website_title {
  63. font-family: Roboto;
  64. font-style: normal;
  65. font-weight: normal;
  66. font-size: 30px;
  67. color: #000000;
  68. }
  69. .navbar-nav>li {
  70. float: none;
  71. display: inline-block;
  72. width: 100px;
  73. margin: 0 auto;
  74. text-align: center;
  75. }
  76. .navbar-nav>li a {
  77. font-size: 20px;
  78. }
  79. .main-page {
  80. margin-top: 200px;
  81. }
  82. .page-title {
  83. font-family: Roboto;
  84. font-style: normal;
  85. font-weight: bold;
  86. font-size: 36px;
  87. }
  88. .flex {
  89. display: flex;
  90. flex-direction: row;
  91. flex-wrap: wrap;
  92. justify-content: center;
  93. }
  94. .set-link {
  95. display: inline-block;
  96. width: 350px;
  97. height: 100px;
  98. line-height: 100px;
  99. background: #008CBA;
  100. border: 1px solid #CFCFCF;
  101. box-sizing: border-box;
  102. color: #FFFFFF;
  103. border-radius: 10px;
  104. font-size: 36px;
  105. }
  106. .cmn-toggle {
  107. position: absolute;
  108. margin-left: 0px;
  109. visibility: hidden;
  110. }
  111. .cmn-toggle+label {
  112. display: block;
  113. position: relative;
  114. cursor: pointer;
  115. outline: none;
  116. user-select: none;
  117. }
  118. input.cmn-toggle-round-flat+label {
  119. padding: 2px;
  120. width: 60px;
  121. height: 30px;
  122. background-color: #C0C0C0;
  123. border-radius: 60px;
  124. transition: background 0.4s;
  125. }
  126. input.cmn-toggle-round-flat+label:before,
  127. input.cmn-toggle-round-flat+label:after {
  128. display: block;
  129. position: absolute;
  130. content: "";
  131. }
  132. input.cmn-toggle-round-flat+label:before {
  133. top: 2px;
  134. left: 2px;
  135. bottom: 2px;
  136. right: 2px;
  137. background-color: #fff;
  138. border-radius: 60px;
  139. transition: background 0.4s;
  140. }
  141. input.cmn-toggle-round-flat+label:after {
  142. top: 4px;
  143. left: 4px;
  144. bottom: 4px;
  145. width: 24px;
  146. background-color: #dddddd;
  147. border-radius: 52px;
  148. transition: margin 0.4s, background 0.4s;
  149. }
  150. input.cmn-toggle-round-flat:checked+label {
  151. background-color: #C0C0C0;
  152. }
  153. input.cmn-toggle-round-flat:checked+label:after {
  154. margin-left: 27px;
  155. background-color: #008CBA;
  156. }
  157. .main-menu li {
  158. position: relative;
  159. transition: .5s;
  160. list-style-type: none;
  161. }
  162. .main-menu li a {
  163. padding: 0 15px;
  164. line-height: 60px;
  165. font-size: 18px;
  166. }
  167. .main-menu li::after {
  168. content: '';
  169. position: absolute;
  170. height: 4px;
  171. left: 50%;
  172. right: 50%;
  173. bottom: 0;
  174. background-color: #bbb;
  175. transition: .5s;
  176. }
  177. .main-menu li:hover {
  178. background-color: #ddd;
  179. }
  180. .main-menu li:hover::after {
  181. left: 0;
  182. right: 0;
  183. }
  184. @media(max-width:373px) {
  185. .card {
  186. margin-right: 0px;
  187. }
  188. .set-link {
  189. width: 250px;
  190. }
  191. }
  192. @media(max-width:577px) {}
  193. @media(min-width:576px) {}
  194. @media(min-width:768px) {
  195. .navbar-nav>li {
  196. margin-left: 0px;
  197. }
  198. .navbar-nav .li-block {
  199. display: none;
  200. }
  201. }
  202. @media(min-width:991px) {
  203. .navbar-nav>li {
  204. margin-left: 20px;
  205. }
  206. .navbar-nav .li-block {
  207. display: none;
  208. }
  209. }
  210. @media(min-width:1200px) {
  211. .navbar-nav>li {
  212. margin-left: 50px;
  213. }
  214. .navbar-nav .li-block {
  215. display: inline-block;
  216. width: 100px;
  217. }
  218. }
  219. @media(min-width:1400px) {
  220. .navbar-nav .li-block {
  221. display: inline-block;
  222. width: 200px;
  223. }
  224. }
  225. @media(min-width:1689px) {
  226. .navbar-nav>li {
  227. margin-left: 50px;
  228. }
  229. .navbar-nav .li-block {
  230. display: inline-block;
  231. width: 500px;
  232. }
  233. }
  234. </style>
  235. </head>
  236. <body>
  237. <!--
  238. <nav class="navbar navbar-expand-lg navbar-light bg-light">
  239. <a class="navbar-brand" href="#">Navbar</a>
  240. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  241. <span class="navbar-toggler-icon"></span>
  242. </button>
  243. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  244. <ul class="navbar-nav mr-auto">
  245. <li class="nav-item active">
  246. <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
  247. </li>
  248. <li class="nav-item">
  249. <a class="nav-link" href="#">Link</a>
  250. </li>
  251. <li class="nav-item dropdown">
  252. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  253. Dropdown
  254. </a>
  255. <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  256. <a class="dropdown-item" href="#">Action</a>
  257. <a class="dropdown-item" href="#">Another action</a>
  258. <div class="dropdown-divider"></div>
  259. <a class="dropdown-item" href="#">Something else here</a>
  260. </div>
  261. </li>
  262. <li class="nav-item">
  263. <a class="nav-link disabled" href="#">Disabled</a>
  264. </li>
  265. </ul>
  266. <form class="form-inline my-2 my-lg-0">
  267. <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
  268. <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
  269. </form>
  270. </div>
  271. </nav>
  272. -->
  273. <div id="wrapper">
  274. <header class="main-header navbar-expand-lg display: flex;" style="background-color: #eee;">
  275. <div class="navbar" style="display: flex; padding: 0px 15px;"> <!--style="display: flex; margin: 0px;">--> <!--justify-content: space-between; padding: 0px;-->
  276. <a class="navbar-brand mr-auto" style="line-height: 50px; font-size: 24px;" href="/">Smart Coffee</a>
  277. <!--<span style="font-size: 24px; line-height: 60px; margin: 0px">發酵槽 F2 控制_感測器抽水雙核隔膜泵</span>-->
  278. <nav>
  279. <ul class="main-menu navbar-right mr-auto" style="display: flex; margin-bottom: 0px;">
  280. <span id="coffee_title" style="line-height: 60px; padding: 0px 15px; font-size: 18px;">發酵槽 F2 控制_感測器抽水雙核隔膜泵</span>
  281. <li class="nav-item dropdown">
  282. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown_container" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  283. 貨櫃狀態
  284. </a>
  285. <div class="dropdown-menu" aria-labelledby="navbarDropdown_container">
  286. <a style="line-height: 40px;" class="dropdown-item" href="/clean">清洗貨櫃</a>
  287. <div class="dropdown-divider"></div>
  288. <a style="line-height: 40px;" class="dropdown-item" href="/ferment">發酵貨櫃</a>
  289. <div class="dropdown-divider"></div>
  290. <a style="line-height: 40px;" class="dropdown-item" href="/dry">乾燥貨櫃</a>
  291. </div>
  292. </li>
  293. <li class="nav-item dropdown">
  294. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown_chart" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  295. 感測器圖表
  296. </a>
  297. <div class="dropdown-menu" aria-labelledby="navbarDropdown_chart">
  298. <a style="line-height: 40px;" class="dropdown-item" href="#">清洗浮選__桶槽</a>
  299. <a style="line-height: 40px;" class="dropdown-item" href="#">清洗浮選__出料</a>
  300. <a style="line-height: 40px;" class="dropdown-item" href="#">色選機__桶槽</a>
  301. <a style="line-height: 40px;" class="dropdown-item" href="#">色選機__出料</a>
  302. <a style="line-height: 40px;" class="dropdown-item" href="#">脫皮機__桶槽</a>
  303. <a style="line-height: 40px;" class="dropdown-item" href="#">脫皮機__出料</a>
  304. <div class="dropdown-divider"></div>
  305. <a style="line-height: 40px;" class="dropdown-item" href="/chart_FI/UltraSonic/1">發酵槽__入料</a>
  306. <a style="line-height: 40px;" class="dropdown-item" href="/chart_F/UltraSonic/1">發酵槽__桶槽</a>
  307. <a style="line-height: 40px;" class="dropdown-item" href="/chart_FO/UltraSonic/1">發酵槽__出料</a>
  308. <div class="dropdown-divider"></div>
  309. <a style="line-height: 40px;" class="dropdown-item" href="/chart_DI/UltraSonic/1">乾燥槽__入料</a>
  310. <a style="line-height: 40px;" class="dropdown-item" href="/chart_D/UltraSonic/1">乾燥槽__桶槽</a>
  311. <a style="line-height: 40px;" class="dropdown-item" href="/chart_DO/UltraSonic/1">乾燥槽__出料</a>
  312. </div>
  313. </li>
  314. <li class="nav-item dropdown">
  315. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown_camera" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  316. 攝影機畫面
  317. </a>
  318. <div class="dropdown-menu" aria-labelledby="navbarDropdown_camera">
  319. <a style="line-height: 40px;" class="dropdown-item" href="/camera_clean">清洗貨櫃</a>
  320. <div class="dropdown-divider"></div>
  321. <a style="line-height: 40px;" class="dropdown-item" href="/camera_ferment">發酵貨櫃</a>
  322. <div class="dropdown-divider"></div>
  323. <a style="line-height: 40px;" class="dropdown-item" href="/camera_dry">乾燥貨櫃</a>
  324. </div>
  325. </li>
  326. <li class="nav-item dropdown">
  327. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown_camera" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  328. User
  329. </a>
  330. <div class="dropdown-menu" aria-labelledby="navbarDropdown_camera">
  331. <a style="line-height: 40px;" class="dropdown-item" href="#">權限: 經銷商</a>
  332. <a style="line-height: 40px;" class="dropdown-item" href="#">修改使用者權限</a>
  333. <div class="dropdown-divider"></div>
  334. <a style="line-height: 40px;" class="dropdown-item" href="/logout">帳號登出</a>
  335. </div>
  336. </li>
  337. </ul>
  338. </nav>
  339. </div>
  340. </header>
  341. <br>
  342. <table border="1" style="margin: auto; font-size:18px; border:2px #cccccc solid;" width=700px cellpadding="8">
  343. <tr>
  344. <td>
  345. 感測器抽水雙核隔膜泵 狀態
  346. </td>
  347. <td>
  348. <span style="color:#008CBA; font-size:18px;"><strong>ON</strong></span>
  349. </td>
  350. </tr>
  351. <tr>
  352. <td>開啟 感測器抽水雙核隔膜泵</td>
  353. <td><input type="button" value="ON" onclick="tankPumpSensor_ON()"></td>
  354. </tr>
  355. <tr>
  356. <td>關閉 感測器抽水雙核隔膜泵</td>
  357. <td><input type="button" value="OFF" onclick="tankPumpSensor_OFF()"></td>
  358. </tr>
  359. </table>
  360. <br>
  361. <footer class="footer" id="footer" style="margin: auto;">
  362. <div style="margin: 10px auto; font-size: 13px; margin-bottom: 10px;">
  363. <a style="padding: 0px 6px" href="#">關於 Smart Coffee</a>&nbsp;|&nbsp;
  364. <a style="padding: 0px 6px;" href="#">產品與經銷商</a>&nbsp;|&nbsp;
  365. <a style="padding: 0px 6px;" href="#">網站地圖</a>&nbsp;|&nbsp;
  366. Copyright © 2021 GOLD IN TECHNOLOGY INC. 保留一切權利。
  367. </div>
  368. </footer>
  369. </div>
  370. </body>
  371. </html>