index_new_1118測試備份footer未置底.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. <!-- 新 Bootstrap4 核心 CSS 文件 -->
  8. <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.1.0/css/bootstrap.min.css">
  9. <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
  10. <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  11. <!-- popper.min.js 用于弹窗、提示、下拉菜单 -->
  12. <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
  13. <!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
  14. <script src="https://cdn.bootcss.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
  15. <!-- Rita 網頁 title 旁邊的 icon -->
  16. <!-- 參考資料 https://codertw.com/%E5%89%8D%E7%AB%AF%E9%96%8B%E7%99%BC/26839/ -->
  17. <link rel="icon" href="..\static\img\icon-3.ico" type="image/x-icon">
  18. <!--
  19. <script src="../static/js/sign_in.js"></script>
  20. <link rel="stylesheet" href="../static/css/sign_in.css">
  21. -->
  22. <script>
  23. $(document).ready(function () {
  24. $("#coffee_title_pc").text('Smart Coffee 總貨櫃系統');
  25. $("#coffee_title_phone").text('總貨櫃系統');
  26. });
  27. // .Container_position{
  28. // position: absolute;
  29. // top: 130px;
  30. // left: 125px;
  31. // }
  32. // border-style: solid;
  33. // border-color: crimson;
  34. // border-style: solid;
  35. // border-color: aqua;
  36. </script>
  37. <style>
  38. .Container_position {
  39. position: absolute;
  40. top: 140px;
  41. left: 125px;
  42. }
  43. .CleanContainer_position {
  44. position: absolute;
  45. top: 90px;
  46. left: 115px;
  47. width: 245px;
  48. height: 590px;
  49. text-align: center;
  50. font-weight: bold;
  51. }
  52. .ColorContainer_position {
  53. position: absolute;
  54. top: 90px;
  55. left: 370px;
  56. width: 255px;
  57. height: 590px;
  58. text-align: center;
  59. font-weight: bold;
  60. }
  61. .PeelContainer_position {
  62. position: absolute;
  63. top: 90px;
  64. left: 635px;
  65. width: 250px;
  66. height: 590px;
  67. text-align: center;
  68. font-weight: bold;
  69. }
  70. .FermentContainer_position {
  71. position: absolute;
  72. top: 90px;
  73. left: 900px;
  74. width: 220px;
  75. height: 590px;
  76. text-align: center;
  77. font-weight: bold;
  78. }
  79. .DryContainer_position {
  80. position: absolute;
  81. top: 90px;
  82. left: 1135px;
  83. width: 280px;
  84. height: 590px;
  85. text-align: center;
  86. font-weight: bold;
  87. }
  88. </style>
  89. </head>
  90. <body>
  91. <div id="wrapper">
  92. <div id="coffee_header">
  93. <!-- 匯入共同使用的 header.html 內容 -->
  94. {% include 'header.html' %}
  95. </div>
  96. <div>
  97. <!-- 底圖 各貨櫃示意圖 -->
  98. <div id="Container_pic" class="Container_position">
  99. <img src="../static/img/Coffee_home.png" id="CoffeeHome_pic" width="1295px">
  100. </div>
  101. <!-- 清洗浮選槽 -->
  102. <div id="CleanContainer" tabindex="0" class="CleanContainer_position" role="button">
  103. 清洗浮選狀態
  104. <div id="CleanContainer_status"
  105. style="width: 100%; height: 20px; background-color: #c0c0c0; text-align: center;"></div>
  106. </div>
  107. <!-- 色選機 -->
  108. <div id="ColorContainer" tabindex="0" class="ColorContainer_position" role="button">
  109. 色選機狀態
  110. <div id="ColorContainer_status"
  111. style="width: 100%; height: 20px; background-color: #c0c0c0; text-align: center;"></div>
  112. </div>
  113. <!-- 脫皮機 -->
  114. <div id="PeelContainer" tabindex="0" class="PeelContainer_position" role="button">
  115. 脫皮機狀態
  116. <div id="PeelContainer_status"
  117. style="width: 100%; height: 20px; background-color: #c0c0c0; text-align: center;"></div>
  118. </div>
  119. <!-- 發酵槽 -->
  120. <div id="FermentContainer" tabindex="0" class="FermentContainer_position" role="button">
  121. 發酵槽狀態
  122. <div id="FermentContainer_status"
  123. style="width: 100%; height: 20px; background-color: forestgreen; text-align: center;"></div>
  124. </div><!-- 乾燥槽 -->
  125. <div id="DryContainer" tabindex="0" class="DryContainer_position" role="button">
  126. 乾燥槽狀態
  127. <div id="DryContainer_status"
  128. style="width: 100%; height: 20px; background-color: forestgreen; text-align: center;"></div>
  129. </div>
  130. </div>
  131. <script>
  132. var button_CleanContainer = document.getElementById('CleanContainer');
  133. button_CleanContainer.addEventListener('click', function () {
  134. window.location.href = '/clean';
  135. });
  136. var button_ColorContainer = document.getElementById('ColorContainer');
  137. button_ColorContainer.addEventListener('click', function () {
  138. window.location.href = '/clean';
  139. });
  140. var button_PeelContainer = document.getElementById('PeelContainer');
  141. button_PeelContainer.addEventListener('click', function () {
  142. window.location.href = '/clean';
  143. });
  144. var button_FermentContainer = document.getElementById('FermentContainer');
  145. button_FermentContainer.addEventListener('click', function () {
  146. window.location.href = '/ferment';
  147. });
  148. var button_DryContainer = document.getElementById('DryContainer');
  149. button_DryContainer.addEventListener('click', function () {
  150. window.location.href = '/dry';
  151. });
  152. </script>
  153. <div id="coffee_footer">
  154. <!-- 匯入共同使用的 footer.html 內容 -->
  155. {% include 'footer.html' %}
  156. </div>
  157. </div>
  158. </body>
  159. </html>