{"id":2910,"date":"2023-09-10T16:36:27","date_gmt":"2023-09-10T16:36:27","guid":{"rendered":"https:\/\/ruouviet.com.vn\/?page_id=2910"},"modified":"2023-12-27T09:13:58","modified_gmt":"2023-12-27T09:13:58","slug":"tinh-thong-so-pha-che-cocktail","status":"publish","type":"page","link":"https:\/\/ruouviet.com.vn\/e_n\/tinh-thong-so-pha-che-cocktail\/","title":{"rendered":"T\u00ednh th\u00f4ng s\u1ed1 pha ch\u1ebf Cocktail"},"content":{"rendered":"\t<section class=\"section\" id=\"section_443574381\">\n\t\t<div class=\"bg section-bg fill bg-fill bg-loaded bg-loaded\" >\n\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t<\/div>\n\n\t\t\n\n\t\t<div class=\"section-content relative\">\n\t\t\t\n<!DOCTYPE html>\r\n<html>\r\n\r\n<head>\r\n    <link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/6.0.0-beta3\/css\/all.min.css\" integrity=\"sha384-xpVf6e4O3CLJoIzKGn3GBgVgn8Nf4MatlFmQF4zIlVFMOVfR4vF4PF+PzvF+PzvF\"\r\n        crossorigin=\"anonymous\">\r\n    <style>\r\n\t\t\t.section-t{padding-top: 30px;}\r\n\t\t\t.section-t input{\r\n\t\t\t\ttext-align: center;\r\n\t\t\t}\r\n      h1 {\r\n          text-align: center;\r\n          color: #180462;\r\n          font-size: 26px;\r\n          margin-left: 0px;\r\n          margin-top:5px;\r\n          margin-bottom: 8px;\r\n          font-weight: bold;\r\n        }\r\n      \r\n        h2 {\r\n        font-size: 20px;\r\n        text-align: left;\r\n        font-weight: bold;\r\n        color: #333;\r\n        margin-top: -10px;\r\n        margin-bottom: 2px;\r\n    }\r\n        table {\r\n            border-collapse: collapse;\r\n            width: 100%;\r\n            margin: 0 auto;\r\n        }\r\n\r\n        th, td {\r\n            border: 1px solid #ddd;\r\n            text-align: left;\r\n            padding: 4px 8px;\r\n        }\r\n\r\n        th {\r\n            background-color: #f2f2f2;\r\n             text-transform: none;\r\n        }\r\n        th:first-child {\r\n            padding-left: 10px; \/* \u0110i\u1ec1u ch\u1ec9nh gi\u00e1 tr\u1ecb theo \u00fd mu\u1ed1n c\u1ee7a b\u1ea1n *\/\r\n            width: 170px;\r\n        }\r\n    \r\n        td:first-child {\r\n            padding-left: 10px; \/* \u0110i\u1ec1u ch\u1ec9nh gi\u00e1 tr\u1ecb theo \u00fd mu\u1ed1n c\u1ee7a b\u1ea1n *\/\r\n        }\r\n      th:last-child {\r\n            padding-right: 5px;\r\n        }\r\n        select {\r\n            width: 100%;\r\n        }\r\n\r\n        .xoaButton {\r\n            color: black;\r\n            cursor: pointer;\r\n            font-size: 26px; \/* \u0110i\u1ec1u ch\u1ec9nh k\u00edch th\u01b0\u1edbc c\u1ee7a n\u00fat x\u00f3a *\/\r\n \u00a0          padding: 12px; \/* \u0110i\u1ec1u ch\u1ec9nh k\u00edch th\u01b0\u1edbc c\u1ee7a c\u1ed9t *\/\r\n            text-align: center;\r\n        }\r\n        @media (max-width: 600px) {\r\n          .table-container {\r\n        overflow-x: auto;\r\n    }\r\n          th, td {\r\n        white-space: nowrap; \/* Ng\u0103n ch\u1eef b\u1ecb xu\u1ed1ng d\u00f2ng *\/\r\n    }\r\n\r\n          table {\r\n              table-layout: auto; \/* C\u00f3 th\u1ec3 c\u1ea7n \u0111i\u1ec1u ch\u1ec9nh tu\u1ef3 theo n\u1ed9i dung c\u1ee7a b\u1ea3ng *\/\r\n          }\r\n      }\r\n      \r\n      \r\n      @media (max-width: 768px) {\r\n        h1 {\r\n          text-align: center;\r\n          margin-top: -15px;\r\n          color: #180462;\r\n          font-size: 26px;\r\n          margin-left: 0px;\r\n          margin-bottom: 10px;\r\n          font-weight: bold;  \r\n\r\n        }\r\n      }\r\n\t\t\t\r\n\t\t\t@media (min-width: 850px) and (max-width:1025px){\r\n\t\t\t\tth, td {\r\n            padding: 2px 8px;\r\n        }\r\n\t\t\t}\r\n      \r\n      .page-id-2910 .entry-title{display: none;}\r\n      .page-id-2910 .is-divider{display: none;}\r\n\t\t\t.col-inner{\r\n\t\t\t\tmargin: 0 auto !important;\r\n    width: 85% !important;\r\n\t\t\t}\r\n\t\t\t@media (max-width: 1024px) {\r\n\t\t\t\t.col-inner{\r\n\t\t\t\twidth:100% !important;\r\n\t\t\t }\r\n\t\t\t}\r\n    <\/style>\r\n<\/head>\r\n<body>\r\n  \r\n<section class=\"section-t\">\r\n\t<div class=\"row row-small\">\r\n      <div id=\"col-1942182950\" class=\"col medium-12 small-12 large-12 row-title\">\r\n        <h1 class=\"text-title-t-11\">PHA CH\u1ebe COCKTAIL<\/h1>\r\n      <\/div>\r\n  <\/div> \r\n\t\r\n  <div class=\"row row-small align-center row-content\">\r\n    <div id=\"col-1942182950\" class=\"col medium-12 small-12 large-12\">\r\n        <div class=\"col-inner\">\r\n    <h2>Nh\u1eadp nguy\u00ean li\u1ec7u <\/h2>\r\n  <div class=\"table-container\">  \r\n    <table>\r\n          <thead>\r\n              <tr>\r\n                  <th>Ch\u1ecdn nguy\u00ean li\u1ec7u<\/th>\r\n                  <th>Th\u1ec3 t\u00edch (ml)<\/th>\r\n                  <th>\u0110\u1ed9 c\u1ed3n (%)<\/th>\r\n                  <th>\u0110\u1ed9 ng\u1ecdt (g\/100ml)<\/th>\r\n                  <th>\u0110\u1ed9 chua (g\/100ml)<\/th>\r\n                  <th style=\"margin-left: -3px\">X\u00f3a<\/th>\r\n              <\/tr>\r\n          <\/thead>\r\n          <tbody id=\"bangDuLieu\">\r\n              <tr>\r\n                  <td>\r\n                      <select onchange=\"hienThiThongTinSanPham(this)\" class=\"chonSanPham\">\r\n\r\n                          <option value=\"\">Ch\u1ecdn nguy\u00ean li\u1ec7u<\/option>\r\n\r\n                          <option value=\"R\u01b0\u1ee3u Volka\">R\u01b0\u1ee3u Volka<\/option>\r\n                          <option value=\"N\u01b0\u1edbc chanh\">N\u01b0\u1edbc chanh<\/option>\r\n                          <option value=\"nhapMoi\">Nh\u1eadp m\u1edbi<\/option>\r\n                      <\/select>\r\n\r\n                  <\/td>\r\n                  <td class=\"thetich\"><input type=\"number\" class=\"thetich\" oninput=\"if(this.value<0){this.value= this.value * -1}; tinhTong()\" min='0' name='inputValue'><\/td>\r\n                  <td class=\"so1\"><input type=\"number\" class=\"so\" oninput=\"if(this.value<0){this.value= this.value * -1}; tinhTong()\" min='0' name='inputValue'><\/td>\r\n                  <td class=\"so2\"><input type=\"number\" class=\"so\" oninput=if(this.value<0){this.value= this.value * -1}; tinhTong()\" min='0' name='inputValue'><\/td>\r\n                  <td class=\"so3\"><input type=\"number\" class=\"so\" oninput=\"if(this.value<0){this.value= this.value * -1}; tinhTong()\" min='0' name='inputValue'><\/td>\r\n                  <td><span class=\"xoaButton\" onclick=\"xoaHang(this)\"><i class=\"fas fa-trash-alt\"><\/i><\/span><\/td>\r\n              <\/tr>\r\n              <!-- H\u00e0ng t\u1ed5ng h\u1ee3p -->\r\n              <tr id=\"hangTongHop\" hidden>\r\n                  <td>T\u1ed5ng<\/td>\r\n                  <td id=\"tongTheTich\">0<\/td>\r\n                  <td id=\"tongSo1\">0<\/td>\r\n                  <td id=\"tongSo2\">0<\/td>\r\n                  <td id=\"tongSo3\">0<\/td>\r\n                  <td><\/td>\r\n              <\/tr>\r\n          <\/tbody>\r\n      <\/table>\r\n    <\/div>\r\n \u00a0 \u00a0<!-- Th\u00eam b\u1ea3ng \"T\u1ed5ng h\u1ee3p k\u1ebft qu\u1ea3\" -->\r\n \u00a0 \u00a0<h2>K\u1ebft qu\u1ea3 h\u1ed7n h\u1ee3p<\/h2>\r\n  <div class=\"table-container\">    \r\n    <table>\r\n          <thead>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<th style=\"width:170px\"><\/th>\r\n\t\t\t\t\t\t\t<th colspan=\"2\">Th\u1ec3 t\u00edch (ml)<\/th>\r\n\t\t\t\t\t\t\t<th colspan=\"2\">\u0110\u1ed9 c\u1ed3n (%)<\/th>\r\n\t\t\t\t\t\t\t<th colspan=\"2\">\u0110\u1ed9 ng\u1ecdt (g\/100ml)<\/th>\r\n\t\t\t\t\t\t\t<th colspan=\"2\">\u0110\u1ed9 chua (g\/100ml)<\/th>\r\n\t\t\t\t\t\t<\/tr>\r\n          <\/thead>\r\n          <tbody>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td style=\"width:170px\"><b>T\u1ed5ng h\u1ee3p<\/b><\/td>\r\n\t\t\t\t\t\t\t<td id=\"tongTheTichBangDuLieu\" colspan=\"2\">0<\/td>\r\n\t\t\t\t\t\t\t<td id=\"tongdoruou\" colspan=\"2\">0<\/td>\r\n\t\t\t\t\t\t\t<td id=\"tongduong\" colspan=\"2\">0<\/td>\r\n\t\t\t\t\t\t\t<td id=\"tongacid\" colspan=\"2\">0<\/td>\r\n\t\t\t\t\t\t<\/tr>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td>Nh\u1eadn x\u00e9t<\/td>\r\n\t\t\t\t\t\t\t<td id=\"nhanxetTheTich\" colspan=\"2\"><\/td>\r\n              <td id=\"nhanxetDoRuou\" colspan=\"2\"><\/td>\r\n\t\t\t\t\t\t\t<td id=\"nhanxetDuong\" colspan=\"2\"><\/td>\r\n\t\t\t\t\t\t\t<td id=\"nhanxetAcid\" colspan=\"2\"><\/td>\r\n\t\t\t\t\t\t<\/tr>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td rowspan=\"2\">Gi\u00e1 tr\u1ecb tham kh\u1ea3o<\/td>\r\n\t\t\t\t\t\t\t<td rowspan=\"1\" style=\"width: 40px;\">Min<\/td>\r\n \t\t\t\t\t\t\t<td rowspan=\"1\" style=\"width: 140px;\">156<\/td> \r\n\t\t\t\t\t\t\t<td rowspan=\"1\" style=\"width: 40px;\">Min<\/td>\r\n\t\t\t\t\t\t\t<td rowspan=\"1\" style=\"width: 145px;\">14<\/td>\r\n\t\t\t\t\t\t\t<td rowspan=\"1\" style=\"width: 40px;\">Min<\/td>\r\n\t\t\t\t\t\t\t<td rowspan=\"1\" style=\"width: 160px;\">5<\/td>\r\n\t\t\t\t\t\t\t<td rowspan=\"1\" style=\"width: 40px;\">Min<\/td>\r\n\t\t\t\t\t\t\t<td rowspan=\"1\">0,76<\/td>\r\n\t\t\t\t\t\t<\/tr>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td rowspan=\"1\" style=\"width: 40px;\">Max<\/td>\r\n \t\t\t\t\t\t\t<td rowspan=\"1\" style=\"width: 123px;\">178<\/td> \r\n\t\t\t\t\t\t\t<td rowspan=\"1\" style=\"width: 40px;\">Max<\/td>\r\n\t\t\t\t\t\t\t<td rowspan=\"1\" style=\"width: 123px;\">16<\/td>\r\n\t\t\t\t\t\t\t<td rowspan=\"1\" style=\"width: 40px;\">Max<\/td>\r\n\t\t\t\t\t\t\t<td rowspan=\"1\" style=\"width: 140px;\">7,5<\/td>\r\n\t\t\t\t\t\t\t<td rowspan=\"1\" style=\"width: 40px;\">Max<\/td>\r\n\t\t\t\t\t\t\t<td rowspan=\"1\">0,94<\/td>\r\n\t\t\t\t\t\t<\/tr>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n<!--               <tr id=\"hangTheTich\">\r\n                  <td>Th\u1ec3 t\u00edch t\u1ed5ng (ml)<\/td>\r\n                  <td id=\"tongTheTichBangDuLieu\">0<\/td>\r\n                  <td id=\"nhanxetTheTich\"><\/td>\r\n                  <td>156<\/td>\r\n                  <td>178<\/td>\r\n              <\/tr>\r\n              <tr id=\"hangDoRuou\">\r\n                  <td>\u0110\u1ed9 r\u01b0\u1ee3u (%)<\/td>\r\n                  <td id=\"tongdoruou\">0<\/td>\r\n                  <td id=\"nhanxetDoRuou\"><\/td>\r\n                  <td>14<\/td>\r\n                  <td>16<\/td>\r\n              <\/tr>\r\n              <tr id=\"hangDuong\">\r\n                  <td>\u0110\u1ed9 ng\u1ecdt (g\/100ml)<\/td>\r\n                  <td id=\"tongduong\">0<\/td>\r\n                  <td id=\"nhanxetDuong\"><\/td>\r\n                  <td>5<\/td>\r\n                  <td>7,5<\/td>\r\n              <\/tr>\r\n              <tr id=\"hangAcid\">\r\n                  <td>\u0110\u1ed9 chua (g\/100ml)<\/td>\r\n                  <td id=\"tongacid\">0<\/td>\r\n                  <td id=\"nhanxetAcid\"><\/td>\r\n                  <td>0,76<\/td>\r\n                  <td>0,94<\/td>\r\n              <\/tr>\r\n              <tr id=\"hangCanBang\">\r\n                  <td>C\u00e2n b\u1eb1ng Ng\u1ecdt\/Chua<\/td>\r\n                  <td id=\"canbangngotchua\">0<\/td>\r\n                  <td id=\"nhanxetCanBang\"><\/td>\r\n                  <td>7,5<\/td>\r\n                  <td>11<\/td>\r\n           <\/tr> -->\r\n          <\/tbody>\r\n      <\/table>\r\n  <\/div>\r\n      <\/div>\r\n    <\/div>\r\n  <\/div>\r\n  <\/section>\r\n    <script>\r\n        \/\/ \u0110\u1ecbnh ngh\u0129a d\u1eef li\u1ec7u s\u1ea3n ph\u1ea9m (v\u00ed d\u1ee5)\r\n        const sanPham = {\r\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\"R\u01b0\u1ee3u Volka\": { thetich: '', so1: 40, so2: 10, so3: 1.1 },\r\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\"N\u01b0\u1edbc chanh\": { thetich: '', so1: 0, so2: 5, so3: 30 }\r\n           \r\n        };\r\n\r\n        function hienThiThongTinSanPham(selectElement) {\r\n            const selectedProduct = selectElement.value;\r\n            const theTichInput = selectElement.parentElement.parentElement.querySelector(\".thetich input\");\r\n            const so1Input = selectElement.parentElement.parentElement.querySelector(\".so1 input\");\r\n            const so2Input = selectElement.parentElement.parentElement.querySelector(\".so2 input\");\r\n            const so3Input = selectElement.parentElement.parentElement.querySelector(\".so3 input\");\r\n\r\n            if (selectedProduct === \"nhapMoi\") {\r\n                const tenNhapMoi = prompt(\"Nh\u1eadp t\u00ean s\u1ea3n ph\u1ea9m m\u1edbi:\");\r\n                if (tenNhapMoi !== null) {\r\n                    selectElement.options[selectElement.options.length - 1].textContent = tenNhapMoi;\r\n        \r\n                    theTichInput.value = \"\";\r\n                    so1Input.value = \"\";\r\n                    so2Input.value = \"\";\r\n                    so3Input.value = \"\";\r\n                    themHang();\r\n                } else {\r\n                    selectElement.value = \"\";\r\n                }\r\n            } else if (sanPham[selectedProduct]) {\r\n                const { thetich, so1, so2, so3 } = sanPham[selectedProduct];\r\n\r\n                theTichInput.value = thetich;\r\n                so1Input.value = so1;\r\n                so2Input.value = so2;\r\n                so3Input.value = so3;\r\n                themHang();\r\n            } else {\r\n\r\n                theTichInput.value = \"\";\r\n                so1Input.value = \"\";\r\n                so2Input.value = \"\";\r\n                so3Input.value = \"\";\r\n            }\r\n\r\n            \/\/ T\u00ednh t\u1ed5ng\r\n            tinhTong();\r\n        }\r\n\r\n        function themHang() {\r\n            const bangDuLieu = document.getElementById(\"bangDuLieu\");\r\n            const newRow = document.createElement(\"tr\");\r\n            newRow.innerHTML = `\r\n                <td>\r\n                    <select onchange=\"hienThiThongTinSanPham(this)\" class=\"chonSanPham\">\r\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<option value=\"\">Ch\u1ecdn nguy\u00ean li\u1ec7u<\/option>\r\n                        <option value=\"R\u01b0\u1ee3u Volka\">R\u01b0\u1ee3u Volka<\/option>\r\n                        <option value=\"N\u01b0\u1edbc chanh\">N\u01b0\u1edbc chanh<\/option>\r\n                  \r\n                        <option value=\"nhapMoi\">Nh\u1eadp m\u1edbi<\/option>\r\n                    <\/select>\r\n                <\/td>\r\n                <td class=\"thetich\"><input type=\"number\" class=\"thetich\" min='0' oninput=\"if(this.value<0){this.value= this.value * -1}; tinhTong()\" name='inputValue'><\/td>\r\n                <td class=\"so1\"><input type=\"number\" class=\"so\" min=\"0\" oninput=\"if(this.value<0){this.value= this.value * -1}; tinhTong()\" name='inputValue'><\/td>\r\n                <td class=\"so2\"><input type=\"number\" class=\"so\" min='0' oninput=\"if(this.value<0){this.value= this.value * -1}; tinhTong()\" name='inputValue'><\/td>\r\n                <td class=\"so3\"><input type=\"number\" class=\"so\" min='0' oninput=\"if(this.value<0){this.value= this.value * -1}; tinhTong()\" name='inputValue'><\/td>\r\n                <td><span class=\"xoaButton\" onclick=\"xoaHang(this)\"><i class=\"fas fa-trash-alt\"><\/i><\/span><\/td> \r\n            `;\r\n            bangDuLieu.insertBefore(newRow, document.getElementById(\"hangTongHop\"));\r\n          \r\n        }\r\n\t\t\t\r\n\t\t\tdocument.querySelector('*').addEventListener(\"keypress\", function (evt) {\r\n\t\tif (evt.which != 48 && evt.which != 49 && evt.which != 50 && evt.which != 51 && evt.which != 52 && evt.which != 53 && evt.which != 54 && evt.which != 55 && evt.which != 56 && evt.which != 57 && evt.which != 44 && evt.which!= 46)\r\n    {\r\n        evt.preventDefault();\r\n    }\r\n});\r\n\r\n        function xoaHang(spanElement) {\r\n\t\t\t\t\tconst numberOfRow = document.getElementById(\"bangDuLieu\").rows.length;\r\n\t\t\t\t\tif(numberOfRow === 2){\r\n\t\t\t\t\t\tconst rows = document.querySelectorAll(\"#bangDuLieu tr\");\r\n\t\r\n\t\t\t\t\t\tfor (let i = 0; i < rows.length - 1; i++) {\r\n\t\t\t\t\t\trows[i].querySelector(\".thetich input\").value = \"\";\r\n\t\t\t\t\t\trows[i].querySelector(\".so1 input\").value = \"\";\r\n\t\t\t\t\t\trows[i].querySelector(\".so2 input\").value = \"\";\r\n\t\t\t\t\t\trows[i].querySelector(\".so3 input\").value = \"\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n            tinhTong();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n            const row = spanElement.parentElement.parentElement;\r\n            row.remove();\r\n            tinhTong();\r\n            \r\n        }\r\n\r\n        function tinhTong() {\r\n            const tongTheTich = document.getElementById(\"tongTheTich\");\r\n            const tongSo1 = document.getElementById(\"tongSo1\");\r\n            const tongSo2 = document.getElementById(\"tongSo2\");\r\n            const tongSo3 = document.getElementById(\"tongSo3\");\r\n\/\/             const tongDuongAcid = document.getElementById(\"canbangngotchua\");\r\n          \r\n            let sumTheTich = 0;\r\n\t\t\t\t\t\tlet tuSo1 = 0;\r\n\t\t\t\t\t\tlet sumSo1 = 0;\r\n\t\t\t\t\t\tlet tuSo2 = 0;\r\n\t\t\t\t\t\tlet sumSo2 = 0;\r\n\t\t\t\t\t\tlet tuSo3 = 0;\r\n\t\t\t\t\t\tlet sumSo3 = 0;\r\n\t\t\t\t\t\tlet duongAcid = 0;\r\n\t\t\t\t\t\tduongAcid = (tongSo2 \/ tongSo3).toFixed(2).toString().replace('.', ',');\r\n\/\/ \t\t\t\t\t\ttongDuongAcid.textContent = duongAcid;\r\n\r\n\t\t\t\t\t\tconst rows = document.querySelectorAll(\"#bangDuLieu tr\");\r\n\r\n\t\t\t\t\t\tfor (let i = 0; i < rows.length - 1; i++) {\r\n\t\t\t\t\t\tconst theTichInput = rows[i].querySelector(\".thetich input\");\r\n\t\t\t\t\t\tconst so1Input = rows[i].querySelector(\".so1 input\");\r\n\t\t\t\t\t\tconst so2Input = rows[i].querySelector(\".so2 input\");\r\n\t\t\t\t\t\tconst so3Input = rows[i].querySelector(\".so3 input\");\r\n\r\n\t\t\t\t\t\t\/\/ Chuy\u1ec3n \u0111\u1ed5i d\u1ea5u ch\u1ea5m th\u00e0nh d\u1ea5u ph\u1ea9y trong gi\u00e1 tr\u1ecb c\u1ee7a input\r\n\t\t\t\t\t\tconst theTich = parseFloat(theTichInput.value.replace(',', '.'));\r\n\t\t\t\t\t\tconst so1 = parseFloat(so1Input.value.replace(',', '.'));\r\n\t\t\t\t\t\tconst so2 = parseFloat(so2Input.value.replace(',', '.'));\r\n\t\t\t\t\t\tconst so3 = parseFloat(so3Input.value.replace(',', '.'));\r\n\r\n\t\t\t\t\t\tif (!isNaN(theTich)) {\r\n\t\t\t\t\t\t\t\tsumTheTich += theTich;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\/\/ C\u00e1c ph\u00e9p to\u00e1n kh\u00e1c s\u1eed d\u1ee5ng so1, so2, so3...\r\n\t\t\t\t}\r\n\r\n\t\t\t\t\t\tsumTheTich = sumTheTich;\r\n\r\n\t\t\t\t\t\tfor (let i = 0; i < rows.length - 1; i++) {\r\n\t\t\t\t\t\t\tconst theTich = parseFloat(rows[i].querySelector(\".thetich input\").value);\r\n\t\t\t\t\t\t\tconst so1 = parseFloat(rows[i].querySelector(\".so1 input\").value);\r\n\t\t\t\t\t\t\tconst so2 = parseFloat(rows[i].querySelector(\".so2 input\").value);\r\n\t\t\t\t\t\t\tconst so3 = parseFloat(rows[i].querySelector(\".so3 input\").value);\r\n\r\n\t\t\t\t\t\t\tif (!isNaN(so1)) {\r\n\t\t\t\t\t\t\t\ttuSo1 = theTich * so1;\r\n\t\t\t\t\t\t\t\tsumSo1 += tuSo1 \/ sumTheTich;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (!isNaN(so2)) {\r\n\t\t\t\t\t\t\t\ttuSo2 = theTich * so2;\r\n\t\t\t\t\t\t\t\tsumSo2 += tuSo2 \/ sumTheTich;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (!isNaN(so3)) {\r\n\t\t\t\t\t\t\t\ttuSo3 = theTich * so3;\r\n\t\t\t\t\t\t\t\tsumSo3 += tuSo3 \/ sumTheTich;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\ttongTheTich.textContent = sumTheTich.toFixed(2).replace(\/\\.\/g, ',');\r\n\t\t\t\t\t\ttongSo1.textContent = sumSo1.toFixed(2).replace(\/\\.\/g, ',');\r\n\t\t\t\t\t\ttongSo2.textContent = sumSo2.toFixed(2).replace(\/\\.\/g, ',');\r\n\t\t\t\t\t\ttongSo3.textContent = sumSo3.toFixed(2).replace(\/\\.\/g, ',');\r\n\r\n            \/\/ C\u1eadp nh\u1eadt gi\u00e1 tr\u1ecb trong b\u1ea3ng \"T\u1ed5ng h\u1ee3p k\u1ebft qu\u1ea3\"\r\n            const tongTheTichBangDuLieu = document.getElementById(\"tongTheTichBangDuLieu\");\r\n            const tongdoruou = document.getElementById(\"tongdoruou\");\r\n            const tongduong = document.getElementById(\"tongduong\");\r\n            const tongacid = document.getElementById(\"tongacid\");\r\n            \r\n            \/\/ C\u1eadp nh\u1eadt gi\u00e1 tr\u1ecb t\u1eeb b\u1ea3ng ch\u00ednh\r\n            tongTheTichBangDuLieu.textContent = isNaN(sumTheTich.toFixed(2)) ? 0 : sumTheTich.toFixed(2).replaceAll(\".\",\",\");\r\n            tongdoruou.textContent = isNaN(sumSo1.toFixed(2)) ? 0 : sumSo1.toFixed(2).replaceAll(\".\",\",\");\r\n            tongduong.textContent = isNaN(sumSo2.toFixed(2)) ? 0 : sumSo2.toFixed(2).replaceAll(\".\",\",\");\r\n            tongacid.textContent = isNaN(sumSo3.toFixed(2)) ? 0 : sumSo3.toFixed(2).replaceAll(\".\",\",\");\r\n          \r\n           \/\/ T\u00ednh gi\u00e1 tr\u1ecb C\u00e2n b\u1eb1ng Ng\u1ecdt\/Chua\r\n\/\/             if (!isNaN(sumSo2) && !isNaN(sumSo3) && sumSo3 !== 0) {\r\n\/\/                 duongAcid = (sumSo2 \/ sumSo3).toFixed(2).replaceAll(\".\",\",\");\r\n\/\/                 tongDuongAcid.textContent = duongAcid;\r\n\/\/             } else {\r\n\/\/                 tongDuongAcid.textContent = \"0.00\";\r\n\/\/             }\r\n            capNhatNhanXet();\r\n        }\r\n        function capNhatNhanXet() {\r\n            const tongTheTich = parseFloat(document.getElementById(\"tongTheTich\").textContent);\r\n            const tongSo1 = parseFloat(document.getElementById(\"tongSo1\").textContent);\r\n            const tongSo2 = parseFloat(document.getElementById(\"tongSo2\").textContent);\r\n            const tongSo3 = parseFloat(document.getElementById(\"tongSo3\").textContent);\r\n\r\n            const nhanXetTheTich = document.getElementById(\"nhanxetTheTich\");\r\n            const nhanXetDoRuou = document.getElementById(\"nhanxetDoRuou\");\r\n            const nhanXetDuong = document.getElementById(\"nhanxetDuong\");\r\n            const nhanXetAcid = document.getElementById(\"nhanxetAcid\");\r\n\/\/             const nhanXetCanBang = document.getElementById(\"nhanxetCanBang\");\r\n\r\n            const moTaTheTich = xacDinhNhanXet(tongTheTich, 156, 178, \"thetich\");\r\n            const moTaDoRuou = xacDinhNhanXet(tongSo1, 14, 16, \"doruou\");\r\n            const moTaDuong = xacDinhNhanXet(tongSo2, 5, 7.5, \"duong\");\r\n            const moTaAcid = xacDinhNhanXet(tongSo3, 0.76, 0.94, \"acid\");\r\n\/\/             const moTaCanBang = xacDinhNhanXet(tongSo2\/tongSo3, 7.5, 11, \"canbangngotchua\");\r\n\r\n\r\n            nhanXetTheTich.textContent = moTaTheTich;\r\n            nhanXetDoRuou.textContent = moTaDoRuou;\r\n            nhanXetDuong.textContent = moTaDuong;\r\n            nhanXetAcid.textContent = moTaAcid;\r\n\/\/             nhanXetCanBang.textContent = moTaCanBang;\r\n        }\r\n\r\n\r\n        function xacDinhNhanXet(giaTri, gioiHanThap, gioiHanCao, hang) {\r\n            const moTa = {\r\n                \"thetich\": [\"Qu\u00e1 \u00edt\", \"V\u1eeba \u0111\u1ee7\", \"Qu\u00e1 nhi\u1ec1u\"],\r\n                \"doruou\": [\"Qu\u00e1 nh\u1eb9\", \"V\u1eeba ph\u1ea3i\", \"Qu\u00e1 n\u1eb7ng\"],\r\n                \"duong\": [\"\u00cdt ng\u1ecdt\", \"Ng\u1ecdt v\u1eeba ph\u1ea3i\", \"Nhi\u1ec1u ng\u1ecdt\"],\r\n                \"acid\": [\"\u00cdt chua\", \"Chua v\u1eeba ph\u1ea3i\", \"Nhi\u1ec1u chua\"],\r\n                \"canbangngotchua\": [\"Qu\u00e1 chua\", \"\u0110\u00e3 c\u00e2n b\u1eb1ng\", \"Qu\u00e1 ng\u1ecdt\"]\r\n            };\r\n\r\n            if (giaTri < gioiHanThap) {\r\n                return moTa[hang][0];\r\n            } else if (giaTri >= gioiHanThap && giaTri <= gioiHanCao) {\r\n                return moTa[hang][1];\r\n            } else {\r\n                return moTa[hang][2];\r\n            }\r\n        }\r\n\r\n\r\n\r\n    <\/script>\r\n<\/body>\r\n\r\n<\/html>\n\t\t<\/div>\n\n\t\t\n<style>\n#section_443574381 {\n  padding-top: 0px;\n  padding-bottom: 0px;\n}\n#section_443574381 .ux-shape-divider--top svg {\n  height: 150px;\n  --divider-top-width: 100%;\n}\n#section_443574381 .ux-shape-divider--bottom svg {\n  height: 150px;\n  --divider-width: 100%;\n}\n<\/style>\n\t<\/section>\n\t\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-blank.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-2910","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>T\u00ednh th\u00f4ng s\u1ed1 pha ch\u1ebf Cocktail - R\u01af\u1ee2U VI\u1ec6T<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ruouviet.com.vn\/e_n\/tinh-thong-so-pha-che-cocktail\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"T\u00ednh th\u00f4ng s\u1ed1 pha ch\u1ebf Cocktail - R\u01af\u1ee2U VI\u1ec6T\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ruouviet.com.vn\/e_n\/tinh-thong-so-pha-che-cocktail\/\" \/>\n<meta property=\"og:site_name\" content=\"R\u01af\u1ee2U VI\u1ec6T\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ruouviet.com.vn\/\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-27T09:13:58+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ruouviet.com.vn\\\/tinh-thong-so-pha-che-cocktail\\\/\",\"url\":\"https:\\\/\\\/ruouviet.com.vn\\\/tinh-thong-so-pha-che-cocktail\\\/\",\"name\":\"T\u00ednh th\u00f4ng s\u1ed1 pha ch\u1ebf Cocktail - R\u01af\u1ee2U VI\u1ec6T\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ruouviet.com.vn\\\/#website\"},\"datePublished\":\"2023-09-10T16:36:27+00:00\",\"dateModified\":\"2023-12-27T09:13:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ruouviet.com.vn\\\/tinh-thong-so-pha-che-cocktail\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ruouviet.com.vn\\\/tinh-thong-so-pha-che-cocktail\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ruouviet.com.vn\\\/tinh-thong-so-pha-che-cocktail\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Trang ch\u1ee7\",\"item\":\"https:\\\/\\\/ruouviet.com.vn\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"T\u00ednh th\u00f4ng s\u1ed1 pha ch\u1ebf Cocktail\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ruouviet.com.vn\\\/#website\",\"url\":\"https:\\\/\\\/ruouviet.com.vn\\\/\",\"name\":\"R\u01af\u1ee2U VI\u1ec6T\",\"description\":\"Top 3 Th\u1ecb ph\u1ea7n r\u01b0\u1ee3u truy\u1ec1n th\u1ed1ng\",\"publisher\":{\"@id\":\"https:\\\/\\\/ruouviet.com.vn\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ruouviet.com.vn\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/ruouviet.com.vn\\\/#organization\",\"name\":\"R\u01af\u1ee2U VI\u1ec6T\",\"url\":\"https:\\\/\\\/ruouviet.com.vn\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/ruouviet.com.vn\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/ruouviet.com.vn\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/rv-logo.png\",\"contentUrl\":\"https:\\\/\\\/ruouviet.com.vn\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/rv-logo.png\",\"width\":801,\"height\":401,\"caption\":\"R\u01af\u1ee2U VI\u1ec6T\"},\"image\":{\"@id\":\"https:\\\/\\\/ruouviet.com.vn\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/ruouviet.com.vn\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"T\u00ednh th\u00f4ng s\u1ed1 pha ch\u1ebf Cocktail - R\u01af\u1ee2U VI\u1ec6T","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ruouviet.com.vn\/e_n\/tinh-thong-so-pha-che-cocktail\/","og_locale":"en_GB","og_type":"article","og_title":"T\u00ednh th\u00f4ng s\u1ed1 pha ch\u1ebf Cocktail - R\u01af\u1ee2U VI\u1ec6T","og_url":"https:\/\/ruouviet.com.vn\/e_n\/tinh-thong-so-pha-che-cocktail\/","og_site_name":"R\u01af\u1ee2U VI\u1ec6T","article_publisher":"https:\/\/www.facebook.com\/ruouviet.com.vn\/","article_modified_time":"2023-12-27T09:13:58+00:00","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ruouviet.com.vn\/tinh-thong-so-pha-che-cocktail\/","url":"https:\/\/ruouviet.com.vn\/tinh-thong-so-pha-che-cocktail\/","name":"T\u00ednh th\u00f4ng s\u1ed1 pha ch\u1ebf Cocktail - R\u01af\u1ee2U VI\u1ec6T","isPartOf":{"@id":"https:\/\/ruouviet.com.vn\/#website"},"datePublished":"2023-09-10T16:36:27+00:00","dateModified":"2023-12-27T09:13:58+00:00","breadcrumb":{"@id":"https:\/\/ruouviet.com.vn\/tinh-thong-so-pha-che-cocktail\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ruouviet.com.vn\/tinh-thong-so-pha-che-cocktail\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ruouviet.com.vn\/tinh-thong-so-pha-che-cocktail\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Trang ch\u1ee7","item":"https:\/\/ruouviet.com.vn\/"},{"@type":"ListItem","position":2,"name":"T\u00ednh th\u00f4ng s\u1ed1 pha ch\u1ebf Cocktail"}]},{"@type":"WebSite","@id":"https:\/\/ruouviet.com.vn\/#website","url":"https:\/\/ruouviet.com.vn\/","name":"VIETNAMESE WINE","description":"Top 3 Th\u1ecb ph\u1ea7n r\u01b0\u1ee3u truy\u1ec1n th\u1ed1ng","publisher":{"@id":"https:\/\/ruouviet.com.vn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ruouviet.com.vn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/ruouviet.com.vn\/#organization","name":"VIETNAMESE WINE","url":"https:\/\/ruouviet.com.vn\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/ruouviet.com.vn\/#\/schema\/logo\/image\/","url":"https:\/\/ruouviet.com.vn\/wp-content\/uploads\/2022\/03\/rv-logo.png","contentUrl":"https:\/\/ruouviet.com.vn\/wp-content\/uploads\/2022\/03\/rv-logo.png","width":801,"height":401,"caption":"R\u01af\u1ee2U VI\u1ec6T"},"image":{"@id":"https:\/\/ruouviet.com.vn\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ruouviet.com.vn\/"]}]}},"_links":{"self":[{"href":"https:\/\/ruouviet.com.vn\/e_n\/wp-json\/wp\/v2\/pages\/2910","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ruouviet.com.vn\/e_n\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ruouviet.com.vn\/e_n\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ruouviet.com.vn\/e_n\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ruouviet.com.vn\/e_n\/wp-json\/wp\/v2\/comments?post=2910"}],"version-history":[{"count":0,"href":"https:\/\/ruouviet.com.vn\/e_n\/wp-json\/wp\/v2\/pages\/2910\/revisions"}],"wp:attachment":[{"href":"https:\/\/ruouviet.com.vn\/e_n\/wp-json\/wp\/v2\/media?parent=2910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}