<!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>
    <!-- Rita 網頁 title 旁邊的 icon -->
    <!-- 參考資料 https://codertw.com/%E5%89%8D%E7%AB%AF%E9%96%8B%E7%99%BC/26839/ -->
    <link rel="icon" href="..\static\img\icon-3.ico" type="image/x-icon">
    <!--
    <script src="../static/js/sign_in.js"></script>

    <link rel="stylesheet" href="../static/css/sign_in.css">
-->
    <script>
        $(document).ready(function () {
            $("#coffee_title_pc").text('Smart Coffee 總貨櫃系統');
            $("#coffee_title_phone").text('總貨櫃系統');
        });

        // .Container_position{
        //     position: absolute;
        //     top: 130px;
        //     left: 125px;
        // }

        // border-style: solid;
        // border-color: crimson;


        // border-style: solid;
        // border-color: aqua;
    </script>

    <style>
        .Container_position {
            position: absolute;
            top: 140px;
            left: 125px;
        }

        .CleanContainer_position {
            position: absolute;
            top: 90px;
            left: 115px;
            width: 245px;
            height: 590px;
            text-align: center;
            font-weight: bold;
        }

        .ColorContainer_position {
            position: absolute;
            top: 90px;
            left: 370px;
            width: 255px;
            height: 590px;
            text-align: center;
            font-weight: bold;
        }

        .PeelContainer_position {
            position: absolute;
            top: 90px;
            left: 635px;
            width: 250px;
            height: 590px;
            text-align: center;
            font-weight: bold;
        }

        .FermentContainer_position {
            position: absolute;
            top: 90px;
            left: 900px;
            width: 220px;
            height: 590px;
            text-align: center;
            font-weight: bold;
        }

        .DryContainer_position {
            position: absolute;
            top: 90px;
            left: 1135px;
            width: 280px;
            height: 590px;
            text-align: center;
            font-weight: bold;
        }
    </style>


</head>

<body>
    <div id="wrapper">
        <div id="coffee_header">
            <!-- 匯入共同使用的 header.html 內容 -->
            {% include 'header.html' %}
        </div>

        <div>
            <!-- 底圖 各貨櫃示意圖 -->
            <div id="Container_pic" class="Container_position">
                <img src="../static/img/Coffee_home.png" id="CoffeeHome_pic" width="1295px">
            </div>

            <!-- 清洗浮選槽 -->
            <div id="CleanContainer" tabindex="0" class="CleanContainer_position" role="button">
                清洗浮選狀態
                <div id="CleanContainer_status"
                    style="width: 100%; height: 20px; background-color: #c0c0c0; text-align: center;"></div>
            </div>

            <!-- 色選機 -->
            <div id="ColorContainer" tabindex="0" class="ColorContainer_position" role="button">
                色選機狀態
                <div id="ColorContainer_status"
                    style="width: 100%; height: 20px; background-color: #c0c0c0; text-align: center;"></div>
            </div>

            <!-- 脫皮機 -->
            <div id="PeelContainer" tabindex="0" class="PeelContainer_position" role="button">
                脫皮機狀態
                <div id="PeelContainer_status"
                    style="width: 100%; height: 20px; background-color: #c0c0c0; text-align: center;"></div>
            </div>

            <!-- 發酵槽 -->
            <div id="FermentContainer" tabindex="0" class="FermentContainer_position" role="button">
                發酵槽狀態
                <div id="FermentContainer_status"
                    style="width: 100%; height: 20px; background-color: forestgreen; text-align: center;"></div>
            </div><!-- 乾燥槽 -->
            <div id="DryContainer" tabindex="0" class="DryContainer_position" role="button">
                乾燥槽狀態
                <div id="DryContainer_status"
                    style="width: 100%; height: 20px; background-color: forestgreen; text-align: center;"></div>
            </div>

        </div>
        <script>
            var button_CleanContainer = document.getElementById('CleanContainer');
            button_CleanContainer.addEventListener('click', function () {
                window.location.href = '/clean';
            });
            var button_ColorContainer = document.getElementById('ColorContainer');
            button_ColorContainer.addEventListener('click', function () {
                window.location.href = '/clean';
            });
            var button_PeelContainer = document.getElementById('PeelContainer');
            button_PeelContainer.addEventListener('click', function () {
                window.location.href = '/clean';
            });
            var button_FermentContainer = document.getElementById('FermentContainer');
            button_FermentContainer.addEventListener('click', function () {
                window.location.href = '/ferment';
            });
            var button_DryContainer = document.getElementById('DryContainer');
            button_DryContainer.addEventListener('click', function () {
                window.location.href = '/dry';
            });
        </script>

        <div id="coffee_footer">
            <!-- 匯入共同使用的 footer.html 內容 -->
            {% include 'footer.html' %}
        </div>
    </div>

</body>

</html>