{"id":1782,"date":"2023-08-21T03:42:17","date_gmt":"2023-08-21T03:42:17","guid":{"rendered":"https:\/\/ruouviet.com.vn\/?page_id=1782"},"modified":"2023-11-23T07:35:58","modified_gmt":"2023-11-23T07:35:58","slug":"can-ruou-tinh-do-chuan","status":"publish","type":"page","link":"https:\/\/ruouviet.com.vn\/e_n\/can-ruou-tinh-do-chuan\/","title":{"rendered":"Liquor weighing and standardization"},"content":{"rendered":"\t<section class=\"section\" id=\"section_1411202303\">\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\t<div id=\"text-2939222571\" class=\"text\">\n\t\t\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n  <head>\r\n    <meta charset=\"UTF-8\" \/>\r\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \/>\r\n    <title>Khung chia th\u00e0nh 4 \u00f4 v\u1edbi \u1ea3nh n\u1ec1n v\u00e0 hi\u1ec7u \u1ee9ng<\/title>\r\n    <style>\r\n      \/* Styles for screens wider than 1024px *\/\r\n      @media (min-width: 1023px) {\r\n\t\t\t\t.popup{\r\n\t\t\t\t\ttop: 70% !important;\r\n\t\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: 0;\r\n          font-weight: bold;\r\n        }\r\n                \r\n        .grid-container {\r\n          display: grid;\r\n                    grid-template-columns: repeat(2, 1fr);\r\n          gap: 0px;\r\n          width: 80%;\r\n          margin: 0 auto;\r\n          justify-content: flex-end;\r\n        }\r\n                \r\n        \r\n        \/* Common styles for all screen sizes *\/\r\n\t\t\t\t.section-t input{\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t}\r\n        .grid-item {\r\n          display: flex;\r\n          flex-direction: column;\r\n          justify-content: space-between;\r\n          align-items: center;\r\n          font-size: 20px;\r\n          color: #fff;\r\n          background-size: contain;\r\n          background-position: center;\r\n          border: 0px solid #1c1c1c;\r\n          border-radius: 15px;\r\n          transition: transform 0.3s, box-shadow 0.3s;\r\n          height: 100%;\r\n       \r\n                    \r\n        }\r\n                .grid-item:nth-child(1) {\r\n                \r\n                    margin-left: 140px;\/* Thay \u0111\u1ed5i gi\u00e1 tr\u1ecb margin-top theo mong mu\u1ed1n *\/\r\n                    width:60%;\r\n                }\r\n                .grid-item:nth-child(2) {\r\n                    margin-top: 20px; \r\n                    margin-left: 60px;\/* Thay \u0111\u1ed5i gi\u00e1 tr\u1ecb margin-top theo mong mu\u1ed1n *\/\r\n                    max-width:350px;\r\n                }\r\n        .grid-item p {\r\n          margin-top: 5px;\r\n          flex-grow: 1;\r\n          text-align: left;\r\n          color: #ff0000;\r\n          font-size: 25px;\r\n          font-weight: bold;\r\n        }\r\n        .grid-item label {\r\n          margin-top: 5px;\r\n                    margin-bottom: 10px;\r\n          flex-grow: 1;\r\n          text-align: left;\r\n          color: #000000;\r\n          font-size: 25px;\r\n          font-weight: bold;\r\n        }\r\n        .grid-item input {\r\n          margin-top: 10px;\r\n          margin-bottom: 10px;\r\n          text-transform: capitalize;\r\n          flex-grow: 1;\r\n          text-align: center;\r\n          color: #000000;\r\n          font-size: 22px;\r\n          font-weight: bold;\r\n          width: 95%;\r\n                    height:45px;\r\n        }\r\n\r\n                    \r\n                }\r\n        .inline-group {\r\n          width: 100%;\r\n          display: inline-block; \/* Make input and select inline *\/\r\n          vertical-align: left; \/* Vertically align them in the middle *\/\r\n        }\r\n\r\n        \/* Add spacing between the input and select elements *\/\r\n        .inline-group input {\r\n\t\t\t\t\ttext-align: center;\r\n          height: 45px;\r\n          margin-bottom: 0;\r\n                    width:100%;\r\n                    display: inline-block;\r\n                }\r\n\r\n                .inline-group select {\r\n                    width: 24%;\r\n                    display: inline-block;\r\n                    margin-top: 10px;\r\n                    margin-bottom: 10px;\r\n                    height: 45px;\r\n                    margin-left:5px;\r\n                    \/* Th\u00eam c\u00e1c thu\u1ed9c t\u00ednh CSS kh\u00e1c t\u00f9y th\u00edch *\/\r\n                }\r\n\r\n            \r\n        .custom-button {\r\n          background-color: #00438b; \/* Custom background color *\/\r\n          color: #fff; \/* Custom text color *\/\r\n          padding: 0 15px; \/* Custom padding for the button *\/\r\n          margin-top: 15px;\r\n          border: none; \/* Remove default button border *\/\r\n          border-radius: 5px; \/* Add rounded corners *\/\r\n          cursor: pointer; \/* Change cursor on hover *\/\r\n          font-size: 18px;\r\n          margin-bottom: 10px;\r\n        }\r\n      }\r\n\t\t\t\r\n\r\n      \/* Styles for screens between 768px and 1024px *\/\r\n      @media (min-width: 768px) and (max-width: 1023px) {\r\n        h1 {\r\n          text-align: center;\r\n          margin-top: 0px;\r\n          color: #180462;\r\n          font-size: 26px;\r\n          margin-left: 0px;\r\n          margin-bottom: 30px;\r\n          font-weight: bold;\r\n        }\r\n\r\n        .grid-container {\r\n          display: grid;\r\n          grid-template-columns: repeat(1, 1fr);\r\n          gap: 20px;\r\n          width: 90%;\r\n          margin: 0 auto;\r\n          justify-content: flex-end;\r\n        }\r\n\r\n        \/* Common styles for all screen sizes *\/\r\n        .grid-item {\r\n          display: flex;\r\n          flex-direction: column;\r\n          justify-content: space-between;\r\n          align-items: center;\r\n          font-size: 20px;\r\n          color: #fff;\r\n          background-size: contain;\r\n          background-position: center;\r\n          border: 0px solid #1c1c1c;\r\n          border-radius: 15px;\r\n          transition: transform 0.3s, box-shadow 0.3s;\r\n          height: auto;\r\n          width: 100%;\r\n        }\r\n\r\n        .grid-item p {\r\n          margin-top: 10px;\r\n          flex-grow: 1;\r\n          text-align: left;\r\n          color: #ff0000;\r\n          font-size: 25px;\r\n          font-weight: bold;\r\n        }\r\n        .grid-item label {\r\n          margin-top: 10px;\r\n          flex-grow: 1;\r\n          text-align: left;\r\n          color: #000000;\r\n          font-size: 25px;\r\n          font-weight: bold;\r\n        }\r\n        .grid-item input {\r\n          margin-top: 10px;\r\n          margin-bottom: 10px;\r\n          text-transform: capitalize;\r\n          flex-grow: 1;\r\n          text-align: center;\r\n          color: #000000;\r\n          font-size: 25px;\r\n          font-weight: bold;\r\n          width: 95%;\r\n        }\r\n\r\n        .inline-group {\r\n          width: 100%;\r\n          display: inline-block; \/* Make input and select inline *\/\r\n          vertical-align: left; \/* Vertically align them in the middle *\/\r\n        }\r\n\r\n        \/* Add spacing between the input and select elements *\/\r\n        .inline-group input,\r\n        .inline-group select {\r\n          font-size: 25px;\r\n          font-weight: bold;\r\n\t\t\t\t\ttext-align: center;\r\n        }\r\n        .custom-button {\r\n          background-color: #00438b; \/* Custom background color *\/\r\n          color: #fff; \/* Custom text color *\/\r\n          padding: 10px 20px; \/* Custom padding for the button *\/\r\n          margin-top: 10px;\r\n          border: none; \/* Remove default button border *\/\r\n          border-radius: 5px; \/* Add rounded corners *\/\r\n          cursor: pointer; \/* Change cursor on hover *\/\r\n          font-size: 25px;\r\n          margin-bottom: 10px;\r\n        }\r\n      }\r\n\r\n      \/* Styles for screens up to 649px (mobile) *\/\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: 20px;\r\n          font-weight: bold;\r\n        }\r\n\r\n        .grid-container {\r\n          display: grid;\r\n          grid-template-columns: repeat(1, 1fr);\r\n          gap: 20px;\r\n          width: 90%;\r\n          margin: 0 auto;\r\n          justify-content: flex-end;\r\n        }\r\n\r\n        \/* Common styles for all screen sizes *\/\r\n        .grid-item {\r\n          display: flex;\r\n          flex-direction: column;\r\n          justify-content: space-between;\r\n          align-items: center;\r\n          font-size: 18px;\r\n          color: #fff;\r\n          background-size: contain;\r\n          background-position: center;\r\n          border: 0px solid #1c1c1c;\r\n          border-radius: 15px;\r\n          transition: transform 0.3s, box-shadow 0.3s;\r\n          height: auto;\r\n          width: 100%;\r\n        }\r\n\r\n        .grid-item p {\r\n          margin-top: 10px;\r\n          flex-grow: 1;\r\n          text-align: left;\r\n          color: #ff0000;\r\n          font-size: 18px;\r\n          font-weight: bold;\r\n        }\r\n        .grid-item label {\r\n          margin-top: 10px;\r\n          flex-grow: 1;\r\n          text-align: left;\r\n          color: #000000;\r\n          font-size: 18px;\r\n          font-weight: bold;\r\n        }\r\n        .grid-item input {\r\n          margin-top: 10px;\r\n          margin-bottom: 10px;\r\n          text-transform: capitalize;\r\n          flex-grow: 1;\r\n          text-align: center;\r\n          color: #000000;\r\n          font-size: 18px;\r\n          font-weight: bold;\r\n          width: 95%;\r\n        }\r\n\r\n        .inline-group {\r\n          width: 100%;\r\n          display: inline-block; \/* Make input and select inline *\/\r\n          vertical-align: left; \/* Vertically align them in the middle *\/\r\n        }\r\n\r\n        \/* Add spacing between the input and select elements *\/\r\n        \r\n        \r\n        .inline-group input {\r\n\t\t\t\t\ttext-align: center;\r\n                        width: 100%;\r\n                        display: inline-block;\r\n                    }\r\n\r\n                .inline-group select {\r\n                        width: 22%;\r\n                        display: inline-block;\r\n                        margin-top: 10px;\r\n                        margin-bottom: 10px;}\r\n        .custom-button {\r\n          background-color: #00438b; \/* Custom background color *\/\r\n          color: #fff; \/* Custom text color *\/\r\n          padding: 5px 15px; \/* Custom padding for the button *\/\r\n          border: none; \/* Remove default button border *\/\r\n          border-radius: 5px; \/* Add rounded corners *\/\r\n          cursor: pointer; \/* Change cursor on hover *\/\r\n          font-size: 18px;\r\n          margin-bottom: 10px;\r\n        }\r\n      }\r\n\r\n      .grid-item:hover {\r\n        background-color: transparent;\r\n        color: inherit;\r\n      }\r\n            .popup {\r\n            display: none;\r\n            position: fixed;\r\n            top: 82%;\r\n            left: 38% !important;\r\n            transform: translate(-10%, -50%);\r\n            background: #223983;\r\n            border: 1px solid #ccc;\r\n            padding: 6px;\r\n            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);\r\n            z-index: 1;\r\n                        color: white;\r\n\t\t\t\t\t\t\twidth: 30% !important;\r\n        }\r\n\t\t\t.btnPopup{\r\n\t\t\t\tborder: 1px solid white;\r\n    \t\tborder-radius: 5px;\r\n    \t\tmargin-top: 0 !important;\r\n    \t\tmargin-bottom: 0 !important;\r\n\t\t\t\tcolor:#223983;\r\n\t\t\t\tbackground: white;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t.col-inner{\r\n\/* \t\t\t\twidth:33% !important; *\/\r\n\t\t\t\tmargin: 0 auto !important;\r\n\t\t\t}\r\n      \r\n      .page-id-1782 .section{min-height: auto !important;}\r\n\/* \t\t\t#unitVolume{display: inline-block;} *\/\r\n\t\t\t#unitVolume{display: none;}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\/* styles for screens between 850px and 1024px *\/\r\n\t\t\t@media (min-width: 850px) and (max-width: 1025px){\r\n\t\t\t\t.col-inner{\r\n\t\t\t\t\theight: calc(100vh - 200px) !important;\r\n\t\t\t\t\twidth:70% !important;\r\n\t\t\t\t\tmargin: 0 auto !important;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t.custom-button{\r\n\t\t\t\t\tmargin-top: 0 !important;\r\n\t\t\t\t\tfont-size: 14px\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t#readTemp{\r\n\t\t\t\t\tmargin-bottom: 10px !important;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t.popup{\r\n\t\t\t\t\ttop: 70% !important;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t.pResult{\r\n\t\t\t\tfont-size: 14px !important;\r\n\t\t\t}\r\n\t\t\t.input-custom{\r\n\t\t\t\tmargin-bottom: 0!important;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\/*responsie tren man hinh to*\/\r\n\t\t\t@media (min-width: 1440px) and (max-width: 1600px) {\r\n\t\t\t\tpopup{\r\n\t\t\t\t\ttop: 70% !important;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\/* \t\t\t.row.row-small {\r\n    \t\tmax-width: 100%;\r\n\t\t\t} *\/\r\n\t\t\t.col-form-width{\r\n\t\t\t\twidth:50% !important;\r\n\t\t\t}\r\n\t\t\t@media (max-width: 1024px) {\r\n\t\t\t\t.col-form-width{\r\n\t\t\t\twidth:100% !important;\r\n\t\t\t }\r\n\t\t\t}\r\n      \r\n    <\/style>\r\n  <\/head>\r\n  <body class=\"body-no-croll\">\r\n\t\t\r\n        <div id=\"resultPopup\" class=\"popup\">\r\n        \t<span id=\"result\"><\/span>\r\n        \t<button class=\"btnPopup\" onclick=\"closePopup()\">\u0110\u00f3ng<\/button>\r\n        <\/div>\r\n        \r\n    <div class=\"row row-small\">\r\n      <div id=\"col-1942182950\" class=\"col medium-12 small-12 large-12\">\r\n        <h1 class=\"text-title-t-11\">C\u00c2N R\u01af\u1ee2U - T\u00cdNH \u0110\u1ed8 CHU\u1ea8N<\/h1>\r\n      <\/div>\r\n    <\/div>\r\n    \r\n    <section class=\"section-t fix-height-form\">\r\n  <div class=\"row row-small align-center\">\r\n    <div id=\"col-1942182950\" class=\"col medium-7 small-12 large-7\">\r\n        <div class=\"col-inner col-form-width\">\r\n        <label>L\u01b0\u1ee3ng r\u01b0\u1ee3u b\u1ea1n c\u00f3 (lit)<\/label>\r\n        <div class=\"inline-group\">\r\n                    <input type=\"number\" class=\"input-custom input-value\" id=\"readVolume\" required min='0' oninput='if(this.value<0){this.value= this.value * -1}'\/>\r\n                     <select class=\"custom-select\" id=\"unitVolume\" name=\"drinkType\">\r\n\t\t\t\t\t\t\t\t\t\t\t <option value=\"kg\">kg<\/option>\r\n                        <option selected value=\"lit\">lit<\/option>\r\n                    <\/select>\r\n                <\/div>\r\n\r\n        <label>\u0110\u1ed9 r\u01b0\u1ee3u tr\u00ean c\u1ed3n k\u1ebf (%)<\/label>\r\n        <input type=\"number\" id=\"readABV\" class=\"input-custom input-value\" placeholder=\"VD: 50,5\" min='0' oninput='if(this.value<0){this.value= this.value * -1}' required \/>\r\n        <label>Nhi\u1ec7t \u0111\u1ed9 r\u01b0\u1ee3u tr\u00ean nhi\u1ec7t k\u1ebf (&#176C)<\/label>\r\n        <input type=\"number\" id=\"readTemp\" class=\"input-custom input-value\" placeholder=\"VD: 25,7\"  min='0' oninput='if(this.value<0){this.value= this.value * -1}'required \/>\r\n\r\n        <button type=\"button\" class=\"custom-button\" onclick=\"tinhtoan()\">T\u00ednh to\u00e1n<\/button>\r\n        <\/div>\r\n    <\/div>  \r\n  <\/div>\r\n<\/section>\r\n    \r\n    \r\n<!--     <div class=\"grid-container\">\r\n      <div class=\"grid-item\">\r\n        <label>L\u01b0\u1ee3ng r\u01b0\u1ee3u b\u1ea1n c\u00f3<\/label>\r\n        <div class=\"inline-group\">\r\n                    <input type=\"text\" class=\"custom-input\" id=\"readVolume\" required \/>\r\n                    <select class=\"custom-select\" id=\"unitVolume\" name=\"drinkType\">\r\n                        <option value=\"lit\">lit<\/option>\r\n                    <\/select>\r\n                <\/div>\r\n\r\n        <label>S\u1ed1 \u0111o nhi\u1ec7t \u0111\u1ed9 r\u01b0\u1ee3u tr\u00ean nhi\u1ec7t k\u1ebf (%)<\/label>\r\n        <input type=\"text\" id=\"readABV\"  placeholder=\"VD: 50.5\" required \/>\r\n        <label>S\u1ed1 \u0111o tr\u00ean nhi\u1ec7t k\u1ebf (&#176C)<\/label>\r\n        <input type=\"text\" id=\"readTemp\"  placeholder=\"VD: 25.7\" required \/>\r\n\r\n        <button type=\"button\" class=\"custom-button\" onclick=\"tinhtoan()\">T\u00ednh to\u00e1n<\/button>\r\n      <\/div>\r\n                \r\n      <div class=\"grid-item\">\r\n\r\n      <\/div>\r\n    <\/div> -->\r\n  <\/body>\r\n\r\n    <script>\r\n\t\t\tdocument.querySelector(\".input-value\").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\t\t\tdocument.querySelector(\"#readABV\").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\t\t\tdocument.querySelector(\"#readTemp\").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\t\t\t\r\n        const ABW= [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]\r\n        const Density_20 = [0.99823,0.99636,0.99453,0.99275,0.99103,0.98938,0.9878,0.98627,0.98478,0.98331,0.98187,0.9847,0.9791,0.97775,0.97643,0.97514,0.97387,0.97259,0.97129,0.96997,0.96864,0.96729,0.96592,0.96453,0.96312,0.96168,0.9602,0.95867,0.9571,0.95548,0.95382,0.95212,0.95038,0.9486,0.94679,0.94494,0.94306,0.94114,0.93919,0.9372,0.93518,0.93314,0.93107,0.92897,0.93685,0.93472,0.93257,0.93041,0.91823,0.91604,0.91384,0.9116,0.90936,0.90711,0.90485,0.90258,0.90031,0.89803,0.89574,0.89344,0.89113,0.88882,0.8865,0.88417,0.88183,0.87948,0.87713,0.87477,0.87241,0.87004,0.86766,0.86527,0.86287,0.86047,0.85806,0.85564,0.85322,0.85079,0.84835,0.8459,0.84344,0.84096,0.83848,0.83599,0.83348,0.83095,0.8284,0.82583,0.82323,0.82062,0.81797,0.81529,0.81257,0.80983,0.80705,0.80424,0.80138,0.79846,0.80547,0.80243,0.73934]\r\n\r\n\r\n        function tinhtoan() {\r\n            var realABV;\r\n            var realTikhoi;\r\n            var unit;\r\n            var volume;\r\n            var convert_volume;\r\n            var abvRead;\r\n            var tempRead;\r\n            volume = document.getElementById(\"readVolume\").value.replaceAll(\",\",\".\");\r\n            unit = document.getElementById(\"unitVolume\").value;\r\n            abvRead = document.getElementById(\"readABV\").value.replaceAll(\",\",\".\");\r\n            tempRead = document.getElementById(\"readTemp\").value.replaceAll(\",\",\".\");\r\n                    \r\n                    if(isNaN(abvRead)){\r\n                        alert(\"Vui l\u00f2ng nh\u1eadp s\u1ed1 th\u1eadp ph\u00e2n \u0111\u00fang m\u1eabu (VD: 28,8)\");\r\n                        return;\r\n                    }        \r\n                    if(isNaN(tempRead)){\r\n                        alert(\"Vui l\u00f2ng nh\u1eadp s\u1ed1 th\u1eadp ph\u00e2n \u0111\u00fang m\u1eabu (VD: 28,8)\");\r\n                        return;\r\n                    }        \r\n                    if(isNaN(volume)){\r\n                        alert(\"Vui l\u00f2ng nh\u1eadp s\u1ed1 th\u1eadp ph\u00e2n \u0111\u00fang m\u1eabu (VD: 28,8)\");\r\n                        return;\r\n                    } \r\n                    \r\n            var S21 = -1.63047536298305;\r\n            var S23 = -0.0389141113198029;\r\n            var S25 = 0.00404832046043522;\r\n            var S27 = -0.000819167219174309;\r\n            var S29 = 0.0000414881148483179;\r\n            var S31 = -9.51242100129484e-7;\r\n            var S33 = 1.13340709092355e-8;\r\n            var S35 = -6.86424718193e-11;\r\n            var S37 = 1.67609011302485e-13;\r\n                        var decimalPattern = \/^-?\\d+(\\.\\d+)?$\/;\r\n            realABV =abvRead \/ 100 + 0.001 *\r\n                (S21 * Math.pow(abvRead, 0) +\r\n                    S23 * Math.pow(abvRead, 1) +\r\n                    S25 * Math.pow(abvRead, 2) +\r\n                    S27 * Math.pow(abvRead, 3) +\r\n                    S29 * Math.pow(abvRead, 4) +\r\n                    S31 * Math.pow(abvRead, 5) +\r\n                    S33 * Math.pow(abvRead, 6) +\r\n                    S35 * Math.pow(abvRead, 7) +\r\n                    S37 * Math.pow(abvRead, 8)) *\r\n                (tempRead - 20);\r\n            realABV = realABV * 100;\r\n            realTikhoi = kiemTratikhoi(Math.round(realABV));\r\n\r\n                        if(volume == 0){\r\n                alert(\"C\u1ea7n nh\u1eadp l\u01b0\u1ee3ng r\u01b0\u1ee3u \u0111\u1ec3 t\u00ednh to\u00e1n\");\r\n            }\r\n                    else if (abvRead == 0){\r\n            alert(\"C\u1ea7n nh\u1eadp nhi\u1ec7t \u0111\u1ed9 r\u01b0\u1ee3u \u0111\u1ec3 t\u00ednh to\u00e1n\");\r\n                    } \r\n                    else if (tempRead == 0){\r\n            alert(\"C\u1ea7n nh\u1eadp nhi\u1ec7t \u0111\u1ed9 \u0111\u1ec3 t\u00ednh to\u00e1n\");\r\n                    } \r\n                    else if (!decimalPattern.test(volume)){\r\n            alert(\"Vui l\u00f2ng nh\u1eadp s\u1ed1 th\u1eadp ph\u00e2n \u0111\u00fang m\u1eabu (VD: 28,8)\");\r\n                    } \r\n\/\/                     else if (!decimalPattern.test(abvRead)){\r\n\/\/             alert(\"Vui l\u00f2ng nh\u1eadp s\u1ed1 th\u1eadp ph\u00e2n \u0111\u00fang m\u1eabu (VD: 28,8)\");\r\n\/\/                     }\r\n\/\/                     else if (!decimalPattern.test(tempRead)){\r\n\/\/             alert(\"Vui l\u00f2ng nh\u1eadp s\u1ed1 th\u1eadp ph\u00e2n \u0111\u00fang m\u1eabu (VD: 28,8)\");\r\n\/\/                     } \r\n                    else if (tempRead > 40){\r\n            alert(\"Nhi\u00ea\u0323t \u0111\u00f4\u0323 na\u0300y hi\u00ea\u0301m khi co\u0301 trong cu\u00f4\u0323c s\u00f4\u0301ng, chu\u0301ng t\u00f4i se\u0303 c\u00e2\u0323p nh\u00e2\u0323t sau\");\r\n                    } \r\n                    else if (abvRead < 0 || abvRead > 100){\r\n            alert(\"\u0110\u1ed9 r\u01b0\u1ee3u kh\u00f4ng c\u00f3 trong th\u1ef1c t\u1ebf\");\r\n                    } \r\n                    else{\r\n            function replaceDotWithComma(input) {\r\n\t\t\t\t\t\t\t\t\treturn input.toString().replace(\/\\.\/g, ',');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tvar nguonTinhToan = \"\";\r\n\t\t\t\t\t\t\tif(tempRead <= 30 && abvRead >= 0 && abvRead< 56){\r\n\t\t\t\t\t\t\t\tnguonTinhToan = \"(Theo: Ti\u00eau chu\u1ea9n Qu\u1ed1c gia TCVN 8008-2009)\"\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(abvRead >= 56 && abvRead< 100){\r\n\t\t\t\t\t\t\t\tnguonTinhToan = \"(Theo: Guy-Lussac)\"\r\n\t\t\t\t\t\t\t}\t\r\n\r\n\t\t\t\t\t\t\tif (unit == \"kg\") {\r\n\t\t\t\t\t\t\t\t\tconvert_volume = volume \/ realTikhoi;\r\n\t\t\t\t\t\t\t\t\tdocument.getElementById('result').innerHTML =\r\n\t\t\t\t\t\t\t\t\t\t\t\"<p>B\u1ea1n c\u00f3 r\u01b0\u1ee3u \" + replaceDotWithComma(abvRead) + \" \u0111\u1ed9 \" + \" \u1edf \" + replaceDotWithComma(tempRead) + \"&#176C\" + \", t\u01b0\u01a1ng \u1ee9ng v\u1edbi \u0111\u1ed9 chu\u1ea9n l\u00e0 \" + replaceDotWithComma(realABV.toFixed(2)) + \" \u0111\u1ed9 \u1edf 20&#176C. <\/p>\" +\r\n\t\t\t\t\t\t\t\t\t\t\t\"<p>\" + \"B\u1ea1n c\u00f3 \" + replaceDotWithComma(volume) + \" kg r\u01b0\u1ee3u nh\u01b0 tr\u00ean, t\u01b0\u01a1ng \u1ee9ng \" +\r\n\t\t\t\t\t\t\t\t\t\t\treplaceDotWithComma(convert_volume.toFixed(2)) + \" lit r\u01b0\u1ee3u. \" + nguonTinhToan + \"<\/p>\";\r\n\t\t\t\t\t\t\t\t\tshowPopup();\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tconvert_volume = volume * realTikhoi;\r\n\t\t\t\t\t\t\t\t\tvar resultText =\r\n\t\t\t\t\t\t\t\t\t\t\t\"<p class='pResult'>B\u1ea1n c\u00f3 r\u01b0\u1ee3u \" + replaceDotWithComma(abvRead) + \"% \" + \" \u1edf \" + replaceDotWithComma(tempRead) + \"&#176C\" + \", t\u01b0\u01a1ng \u1ee9ng v\u1edbi \u0111\u1ed9 chu\u1ea9n l\u00e0 \" + replaceDotWithComma(realABV.toFixed(2)) + \"% \u1edf 20&#176C. <\/p>\" +\r\n\t\t\t\t\t\t\t\t\t\t\t\"<p class='pResult'>\" + \"B\u1ea1n c\u00f3 \" + replaceDotWithComma(volume) + \" l\u00edt r\u01b0\u1ee3u nh\u01b0 tr\u00ean, t\u01b0\u01a1ng \u1ee9ng \" + replaceDotWithComma(convert_volume.toFixed(2)) + \" kg r\u01b0\u1ee3u. \" + nguonTinhToan + \"<\/p>\";;\r\n\r\n\t\t\t\t\t\t\t\t\tdocument.getElementById('result').innerHTML = resultText;\r\n\t\t\t\t\t\t\t\t\tshowPopup();\r\n\t\t\t\t\t\t\t}\r\n\r\n                    \r\n                        }\r\n\r\n        }\r\n\r\n        function kiemTratikhoi(Temp_input) {\r\n            if (Temp_input >= 0 && Temp_input <= 100) {\r\n                return Density_20[Temp_input];\r\n            } else {\r\n                return 0;\r\n            }\r\n        }\r\n            document.addEventListener(\"DOMContentLoaded\", function() {\r\n                const inputElements = document.querySelectorAll(\"input\");\r\n                for (let i = 0; i < inputElements.length; i++) {\r\n                    inputElements[i].addEventListener(\"keyup\", function(event) {\r\n                        \/\/ Ki\u1ec3m tra n\u1ebfu ph\u00edm Enter \u0111\u01b0\u1ee3c nh\u1ea5n\r\n                        if (event.key === \"Enter\") {\r\n                            \/\/ Chuy\u1ec3n ti\u00eau \u0111i\u1ec3m \u0111\u1ebfn \u00f4 input ti\u1ebfp theo (n\u1ebfu t\u1ed3n t\u1ea1i)\r\n                            const nextInput = inputElements[i + 1];\r\n                            if (nextInput) {\r\n                                nextInput.focus();\r\n                            } else {\r\n                                \/\/ N\u1ebfu kh\u00f4ng c\u00f2n \u00f4 input, th\u1ef1c hi\u1ec7n t\u00ednh to\u00e1n\r\n                                tinhtoan();\r\n                            }\r\n                        }\r\n                    });\r\n                }\r\n            });\r\n\r\n              function showPopup() {\r\n            var popup = document.getElementById('resultPopup');\r\n            popup.style.display = 'block';\r\n        }\r\n\r\n        function closePopup() {\r\n            var popup = document.getElementById('resultPopup');\r\n            popup.style.display = 'none';\r\n        }\r\n            \r\n  <\/script>\r\n<\/html>\r\n\n\t\t\n<style>\n#text-2939222571 {\n  text-align: left;\n}\n<\/style>\n\t<\/div>\n\t\n\t\t<\/div>\n\n\t\t\n<style>\n#section_1411202303 {\n  padding-top: 30px;\n  padding-bottom: 30px;\n}\n#section_1411202303 .ux-shape-divider--top svg {\n  height: 150px;\n  --divider-top-width: 100%;\n}\n#section_1411202303 .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-1782","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>C\u00e2n r\u01b0\u1ee3u, t\u00ednh \u0111\u1ed9 chu\u1ea9n - 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\/can-ruou-tinh-do-chuan\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C\u00e2n r\u01b0\u1ee3u, t\u00ednh \u0111\u1ed9 chu\u1ea9n - R\u01af\u1ee2U VI\u1ec6T\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ruouviet.com.vn\/e_n\/can-ruou-tinh-do-chuan\/\" \/>\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-11-23T07:35: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\\\/can-ruou-tinh-do-chuan\\\/\",\"url\":\"https:\\\/\\\/ruouviet.com.vn\\\/can-ruou-tinh-do-chuan\\\/\",\"name\":\"C\u00e2n r\u01b0\u1ee3u, t\u00ednh \u0111\u1ed9 chu\u1ea9n - R\u01af\u1ee2U VI\u1ec6T\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ruouviet.com.vn\\\/#website\"},\"datePublished\":\"2023-08-21T03:42:17+00:00\",\"dateModified\":\"2023-11-23T07:35:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ruouviet.com.vn\\\/can-ruou-tinh-do-chuan\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ruouviet.com.vn\\\/can-ruou-tinh-do-chuan\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ruouviet.com.vn\\\/can-ruou-tinh-do-chuan\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Trang ch\u1ee7\",\"item\":\"https:\\\/\\\/ruouviet.com.vn\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C\u00e2n r\u01b0\u1ee3u, t\u00ednh \u0111\u1ed9 chu\u1ea9n\"}]},{\"@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":"C\u00e2n r\u01b0\u1ee3u, t\u00ednh \u0111\u1ed9 chu\u1ea9n - 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\/can-ruou-tinh-do-chuan\/","og_locale":"en_GB","og_type":"article","og_title":"C\u00e2n r\u01b0\u1ee3u, t\u00ednh \u0111\u1ed9 chu\u1ea9n - R\u01af\u1ee2U VI\u1ec6T","og_url":"https:\/\/ruouviet.com.vn\/e_n\/can-ruou-tinh-do-chuan\/","og_site_name":"R\u01af\u1ee2U VI\u1ec6T","article_publisher":"https:\/\/www.facebook.com\/ruouviet.com.vn\/","article_modified_time":"2023-11-23T07:35: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\/can-ruou-tinh-do-chuan\/","url":"https:\/\/ruouviet.com.vn\/can-ruou-tinh-do-chuan\/","name":"C\u00e2n r\u01b0\u1ee3u, t\u00ednh \u0111\u1ed9 chu\u1ea9n - R\u01af\u1ee2U VI\u1ec6T","isPartOf":{"@id":"https:\/\/ruouviet.com.vn\/#website"},"datePublished":"2023-08-21T03:42:17+00:00","dateModified":"2023-11-23T07:35:58+00:00","breadcrumb":{"@id":"https:\/\/ruouviet.com.vn\/can-ruou-tinh-do-chuan\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ruouviet.com.vn\/can-ruou-tinh-do-chuan\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ruouviet.com.vn\/can-ruou-tinh-do-chuan\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Trang ch\u1ee7","item":"https:\/\/ruouviet.com.vn\/"},{"@type":"ListItem","position":2,"name":"C\u00e2n r\u01b0\u1ee3u, t\u00ednh \u0111\u1ed9 chu\u1ea9n"}]},{"@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\/1782","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=1782"}],"version-history":[{"count":0,"href":"https:\/\/ruouviet.com.vn\/e_n\/wp-json\/wp\/v2\/pages\/1782\/revisions"}],"wp:attachment":[{"href":"https:\/\/ruouviet.com.vn\/e_n\/wp-json\/wp\/v2\/media?parent=1782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}