1
0

dry_tank.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>GoldIn</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. <!--
  16. <script src="../static/js/sign_in.js"></script>
  17. <link rel="stylesheet" href="../static/css/sign_in.css">
  18. -->
  19. <style>
  20. #D1_status {
  21. width: 20px;
  22. height: 20px;
  23. background-color: cornflowerblue;
  24. border-radius: 50%;
  25. }
  26. .D1_position {
  27. position: absolute;
  28. top: 175px;
  29. left: 195px;
  30. width: 170px;
  31. height: 230px;
  32. border-style: solid;
  33. border-color: aqua;
  34. }
  35. </style>
  36. </head>
  37. <body>
  38. <!--
  39. background-color:rgb(0, 238, 255);
  40. -->
  41. <div style="text-align: center; margin-top: 70px;font-size: 24px;">
  42. GoldIn's Coffee
  43. </div>
  44. <div>
  45. <img src="../static/img/web_dry_tank.png" width="300x" style="margin: auto">
  46. <div id="D1" tabindex="0" class="D1_position" role="button">
  47. D1
  48. status
  49. <div id="D1_status"></div>
  50. </div>
  51. </div>
  52. <script>
  53. var button_D1 = document.getElementById('D1');
  54. button_D1.addEventListener('click', showTankDetail);
  55. function showTankDetail(){
  56. //document.location.href="/dry_container/1"; // Flask 測試 OK
  57. //document.location.href="C:/Users/USER/Rita/Coffee/CoffeeProject/app/templates/dry_tank.html"; // 本機測試 OK
  58. };
  59. </script>
  60. </body>
  61. </html>