{"id":2062,"date":"2023-10-13T17:32:48","date_gmt":"2023-10-13T17:32:48","guid":{"rendered":"https:\/\/gastrototal.com.mx\/?page_id=2062"},"modified":"2023-10-17T23:43:49","modified_gmt":"2023-10-17T23:43:49","slug":"prueba","status":"publish","type":"page","link":"https:\/\/gastrototal.com.mx\/en\/prueba\/","title":{"rendered":"prueba"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"2062\" class=\"elementor elementor-2062\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-71e4519 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"71e4519\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a522f3b\" data-id=\"a522f3b\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-25f2379 elementor-widget elementor-widget-text-editor\" data-id=\"25f2379\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\t\t<style>\n          #calc_wrapper{\n          \t--family-calc-vis:dm sans,sans-serif;\n            --title-color:#fff;\n            --values-color:#394f5c;\n            --text-color:#000;\n          }\n\n          .toggle-switch {\n  display: inline-block;\n  position: relative;\n  width: 30px;\n  height: 17px;\n  margin-left:15px;\n  margin-top: 4px;\n}\n\n.toggle-switch input {\n  display: none;\n}\n\n.toggle-switch-slider {\n  position: absolute;\n  cursor: pointer;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  background-color: #ccc;\n  border-radius: 17px;\n  transition: 0.4s;\n}\n\n.toggle-switch-slider:before {\n  position: absolute;\n  content: \"\";\n  height: 13px;\n  width: 13px;\n  left: 2px;\n  bottom: 2px;\n  background-color: white;\n  border-radius: 50%;\n  transition: 0.4s;\n}\n\ninput:checked + .toggle-switch-slider {\n  background-color: #4f94d4;\n}\n\ninput:checked + .toggle-switch-slider:before {\n  transform: translateX(13px);\n}\n\n.imperial_inputs{\n    display:none;\n}\n    \t\t<\/style>\n\n\n        <div class=\"calc_wrapper\" id=\"calc_wrapper\">\n            <div class=\"calc_header\">\n                <div class=\"calc_header_left\">\n                                        <div class=\"calc_header_title\">\n                        BMI Calculator                    <\/div>\n                                                            <div class=\"calc_header_desc\">\n                        Use this calculator to check your Body Mass Index (BMI).                    <\/div>\n                                    <\/div>\n                                <a href=\"https:\/\/www.calculator.io\/es\/calculadora-de-imc\/\" target=\"_blank\" style=\"text-decoration: none;\">\n                                <div class=\"calc_header_right\">\n                    <img decoding=\"async\" src=\"https:\/\/gastrototal.com.mx\/wp-content\/plugins\/bmi-adultkid-calculator\/images\/bmiberegner.png\" alt=\"Calculadora BMI\">\n                <\/div>\n                                <\/a>\n                            <\/div>\n            <div class=\"custom_flex_calc_wrapper\">\n\n\n                <div class=\"calc_data\">\n\n                                            <style>\n                            .button-group {\n                                display: flex;\n\t\t\t\t\t\t\t\twidth:100%\n                            }\n\n                            input[type=\"radio\"][name=\"units_checkbox\"] {\n                                display: none;\n                            }\n\n                            .radio-label {\n                                padding: 5px 10px;\n                                margin: 0;\n                                color: black;\n                                background-color: #cccccc;\n                                cursor: pointer;\n                                transition: all 0.3s ease;\n                            }\n\n                            input[type=\"radio\"]:checked + .radio-label {\n                                color: white;\n                                background-color: #4f94d4;\n                            }\n                            label[for=\"metric\"]{\n                                border-radius:5px 0 0  5px ;\n                            }\n                            label[for=\"imperial\"]{\n                                border-radius:0 5px 5px  0;\n                            }\n                        <\/style>\n                        <div class=\"button-group\" style=\"margin-bottom:16px;align-items: center;display: none;\">\n                            <span class=\"switcher_color\" style=\"width:100%\">\n                            Unit type                            <\/span>\n\n                            <input type=\"radio\" id=\"metric\" name=\"units_checkbox\" value=\"metric\" checked>\n                            <label for=\"metric\" class=\"radio-label\">Metric<\/label>\n\n                            <input type=\"radio\" id=\"imperial\" name=\"units_checkbox\" value=\"imperial\">\n                            <label for=\"imperial\" class=\"radio-label\">Imperial<\/label>\n                        <\/div>\n\n                        \n                        <div class=\"metric_inputs\">\n                            <div class=\"calc_data_height\">\n                                <span for=\"calc_height_input\">\n                                    Height                                <\/span>\n                                <input id=\"calc_height_input\" class=\"calc_input_custom\" type=\"text\" placeholder=\"Your height\">\n                                <div class=\"calc_placeholder\">\n                                    cm.                                <\/div>\n                            <\/div>\n                            <div for=\"calc_height_input\" class=\"alert-mess\">\n                                Please enter value between 125 and 225.                            <\/div>\n                            <div class=\"calc_data_weight\">\n                                <span for=\"calc_weight_input\">\n                                    Weight                                <\/span>\n                                <input id=\"calc_weight_input\"  class=\"calc_input_custom\" type=\"text\" placeholder=\"Your weight\">\n                                <div class=\"calc_placeholder\">\n                                    kg.                                <\/div>\n                            <\/div>\n                            <div for=\"calc_weight_input\" class=\"alert-mess\">\n                                Please enter value between 10.0 and 500.0 ( one decimal ).                            <\/div>\n\n                        <\/div>\n\n\n                        <div class=\"imperial_inputs\">\n                            <div class=\"calc_data_height\">\n                                <span for=\"calc_height_input\">\n                                    Height                                <\/span>\n                                <div class=\"custom_flex_wrapper\">\n                                    <input id=\"calc_height_input_ft\" style=\"width:45%\" class=\"calc_input_custom\" type=\"text\" placeholder=\"\">\n                                    <input id=\"calc_height_input_in\" style=\"width:45%\" class=\"calc_input_custom\" type=\"text\" placeholder=\"\">\n                                    <div class=\"calc_placeholder year\">\n                                        ft.                                    <\/div>\n                                    <div class=\"calc_placeholder\">\n                                        in.                                    <\/div>\n                                <\/div>\n                            <\/div>\n                            <div for=\"calc_height_input_ft\" class=\"alert-mess\">\n                                Please enter value between 4.2 and 7.3                            <\/div>\n                            <div class=\"calc_data_weight\">\n                                <span for=\"calc_weight_input\">\n                                    Weight                                <\/span>\n                                <div class=\"custom_flex_wrapper\">\n                                    <input id=\"calc_weight_input_lb\" style=\"width:45%\" class=\"calc_input_custom\" type=\"text\" placeholder=\"\">\n                                    <input id=\"calc_weight_input_st\" style=\"width:45%\" class=\"calc_input_custom\" type=\"text\" placeholder=\"\">\n                                    <div class=\"calc_placeholder year\">\n                                        lb.                                    <\/div>\n                                    <div class=\"calc_placeholder\">\n                                        st.                                    <\/div>\n                                <\/div>\n                            <\/div>\n                            <div for=\"calc_weight_input_lb\" class=\"alert-mess\">\n                                Please enter value between 22.0 and 1000.0 ( one decimal ).                            <\/div>\n                        <\/div>\n\n                        <div class=\"calc_input_button\" id=\"calc_input_button\">\n                            To calculate <img decoding=\"async\" style=\"width:9px;height:12px\" src=\"https:\/\/gastrototal.com.mx\/wp-content\/plugins\/bmi-adultkid-calculator\/images\/Arrow.png\" >\n                        <\/div>\n\n\n\n                <\/div>\n\n\n\n\n                <div class=\"calc_info\">\n                    <div class=\"calc_info_placeholder e1697586203\">\n                        Use this calculator to check your body mass index (BMI), which can be a helpful tool in determining your weight category. Or, use it to calculate your child's BMI.                    <\/div>\n                    <div class=\"calc_info_data e1697586203\" style=\"display:none\">\n                        <div class=\"calc_info_data_title\">\n                            Su \u00edndice de masa corporal (IMC) es                        <\/div>\n                        <div style=\"margin-bottom:50px\" class=\"calc_info_data_value\" id=\"calc_bmi\">\n                        <\/div>\n                        <div class=\"calc_info_data_title\">\n                            Seg\u00fan su informaci\u00f3n, su IMC est\u00e1 en la categor\u00eda                        <\/div>\n                        <div class=\"calc_info_data_value\" id=\"calc_conclusion\">\n                        <\/div>\n                        <div class=\"calc_info_line\">\n                            <div class=\"calc_info_line_result_wrapper\">\n                                <div class=\"calc_info_line_result\">\n                                    You                                <\/div>\n                            <\/div>\n\n                            <div class=\"calc_info_line_underweight\">\n                                Bajo peso                            <\/div>\n                            <div class=\"calc_info_line_healthy\">\n                                Saludable                            <\/div>\n                            <div class=\"calc_info_line_overweight\">\n                                Exceso de peso                            <\/div>\n                            <div class=\"calc_info_line_obese\">\n                                Tienes obesidad                            <\/div>\n                        <\/div>\n\n\n                        <div class=\"calc_info_conclusion\" id=\"calc_info_conclusion\">\n                            Para su altura, un peso saludable estar\u00eda entre <span id=\"healthy_weight\" class=\"calc_info_data_value\"><\/span> kilogramos                        <\/div>\n\n                        <div class=\"calc_info_conclusion\" id=\"calc_info_conclusionLb\" style=\"display:none\">\n                            Para su altura, un peso saludable estar\u00eda entre <span id=\"healthy_weightLb\" class=\"calc_info_data_value\"><\/span> lb.                        <\/div>\n\n\n\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n\n    <script>\n    document.addEventListener('DOMContentLoaded', function(){\n        (function( $ ) {\n\n\n            var units = 'metric';\n\n            $('input[name=\"units_checkbox\"]').on('change',function(){\n                if ($(this).val() == 'imperial')\n                {\n                    $('.imperial_inputs').css('display','block');\n                    $('.metric_inputs').css('display','none');\n\n\n                    units = 'imperial';\n                }else{\n                    $('.imperial_inputs').css('display','none');\n                    $('.metric_inputs').css('display','block');\n\n\n                    units = 'metric';\n                }\n            })\n\n\n            function moveRect(e){\n                switch(e.key){\n\n                    case \"Enter\":  \/\/ \u0435\u0441\u043b\u0438 \u043d\u0430\u0436\u0430\u0442\u0430 \u043a\u043b\u0430\u0432\u0438\u0448\u0430 \u0432\u043b\u0435\u0432\u043e\n                        var can = true;\n                        if(units == 'metric'){\n                            $('#calc_height_input').each(function(){\n                                if(parseInt($(this).val()) < 125 || parseInt($(this).val()) > 225 || !Number.isInteger(parseInt($(this).val())) || $(this).val()[0]=='0'){\n                                    $('.alert-mess[for=\"'+$(this).attr('id')+'\"]').css('opacity','1');\n                                    $(this).addClass('alert');\n                                    can = false;\n                                }else{\n                                    $('.alert-mess[for=\"'+$(this).attr('id')+'\"]').css('opacity','0');\n                                    $(this).removeClass('alert');\n                                    height = $(this).val()\n                                }\n\n\n                            })\n                            $('#calc_weight_input').each(function(){\n\n                                    if(parseFloat($(this).val()) < 10 || parseFloat($(this).val()) > 500 || fweight(parseFloat($(this).val())) > 1 || parseFloat($(this).val())!=$(this).val() || $(this).val()[0]=='0'){\n                                        $('.alert-mess[for=\"'+$(this).attr('id')+'\"]').css('opacity','1');\n                                        $(this).addClass('alert');\n                                        can = false;\n                                    }else{\n                                        $('.alert-mess[for=\"'+$(this).attr('id')+'\"]').css('opacity','0');\n                                        $(this).removeClass('alert');\n                                        weight = parseFloat($(this).val());\n                                    }\n\n                            })\n                            \/\/console.log(can);\n                            if(can){\n                                                                $('#calc_input_button').html('Recalculate BMI  <img decoding=\"async\" src=\"https:\/\/gastrototal.com.mx\/wp-content\/plugins\/bmi-adultkid-calculator\/images\/Vector Smart Object.png\" >');\n                                $('#calc_input_button').addClass('re');\n\n                                var bmi = (parseFloat(weight)\/(parseInt(height)\/100*parseInt(height)\/100)).toFixed(2);\n                                console.log(bmi);\n                                if( bmi <=18.49 ){\n                                    $('.calc_info_placeholder.e1697586203').css('display','none');\n                                    $('.calc_info_data.e1697586203').css('display','block');\n                                    $('#calc_bmi').html(bmi);\n                                    $('#calc_conclusion').html('Bajo peso');\n                                    var left = 0;\n                                    if(bmi > 12){\n\n                                        left = (bmi - 12)*($('.calc_info_line_underweight').width()\/6.5);\n                                        console.log(left);\n                                    }\n                                    $('.calc_info_line_result_wrapper').css('left',(left-30)+'px' );\n                                }\n                                if(bmi >= 18.5 && bmi <=24.99 ){\n                                    $('.calc_info_placeholder.e1697586203').css('display','none');\n                                    $('.calc_info_data.e1697586203').css('display','block');\n                                    $('#calc_bmi').html(bmi);\n                                    $('#calc_conclusion').html('Saludable');\n\n                                    var left = 0;\n                                    if(bmi > 18.5){\n                                        left = (bmi - 18.5)*($('.calc_info_line_healthy').width()\/6.5);\n                                    }\n                                    $('.calc_info_line_result_wrapper').css('left',((left+$('.calc_info_line_underweight').width())-30)+'px' );\n                                }\n                                if(bmi >= 25 && bmi <=29.99 ){\n                                    $('.calc_info_placeholder.e1697586203').css('display','none');\n                                    $('.calc_info_data.e1697586203').css('display','block');\n                                    $('#calc_bmi').html(bmi);\n                                    $('#calc_conclusion').html('Exceso de peso');\n                                    var left = 0;\n                                    if(bmi > 25){\n                                        left = (bmi - 25)*($('.calc_info_line_overweight').width()\/5);\n                                    }\n                                    $('.calc_info_line_result_wrapper').css('left',((left+$('.calc_info_line_underweight').width()+$('.calc_info_line_healthy').width())-30)+'px' );\n                                }\n                                if(bmi >= 30 ){\n                                    $('.calc_info_placeholder.e1697586203').css('display','none');\n                                    $('.calc_info_data.e1697586203').css('display','block');\n                                    $('#calc_bmi').html(bmi);\n                                    $('#calc_conclusion').html('Tienes obesidad');\n                                    var left = 0;\n                                    if(bmi > 30){\n                                        left = (bmi - 30)*($('.calc_info_line_obese').width()\/5);\n                                    }\n                                    if(bmi > 35){\n                                        left = $('.calc_info_line_obese').width();\n                                    }\n                                    $('.calc_info_line_result_wrapper').css('left',((left+$('.calc_info_line_underweight').width()+$('.calc_info_line_healthy').width() +$('.calc_info_line_overweight').width())-30)+'px' );\n                                }\n                                var healthy_min = Math.round(18.5 * (parseInt(height)\/100*parseInt(height)\/100));\n                                var healthy_max = Math.round(24.99 * (parseInt(height)\/100*parseInt(height)\/100));\n\n\n\n                                if(units == 'metric'){\n                                    $('#healthy_weight').html(healthy_min+' - '+healthy_max);\n                                    $('#calc_info_conclusionLb').css('display','none');\n                                    $('#calc_info_conclusion').css('display','block');\n                                }else{\n                                    $('#healthy_weightLb').html(Math.round(healthy_min*2.20462)+' - '+Math.round(healthy_max*2.20462));\n                                    $('#calc_info_conclusionLb').css('display','block');\n                                    $('#calc_info_conclusion').css('display','none');\n                                }\n                                \/\/$('#healthy_weightLb').html(Math.round(healthy_min*2.20462)+' - '+Math.round(healthy_max*2.20462));\n\n\n                                                            }\n                        }else{\n\n\n\n\n\n\n\n\n                            var feets = $('#calc_height_input_ft').val();\n                            var inches = $('#calc_height_input_in').val();\n                            if(isNaN(parseFloat(feets))){\n                                feets = 0;\n                            }\n                            if(isNaN(parseFloat(inches))){\n                                inches = 0;\n                            }\n                            var height_imp = ((parseFloat(feets) + parseFloat(inches) \/ 12) * 30.48).toFixed(0);\n\n                            if(height_imp < 125 || height_imp > 225 ){\n                                $('.alert-mess[for=\"calc_height_input_ft\"]').css('opacity','1');\n                                $('#calc_height_input_ft').addClass('alert');\n                                $('#calc_height_input_in').addClass('alert');\n                                can = false;\n                            }else{\n                                $('.alert-mess[for=\"calc_height_input_ft\"]').css('opacity','0');\n                                $('#calc_height_input_ft').removeClass('alert');\n                                $('#calc_height_input_in').removeClass('alert');\n                            }\n\n                            height = height_imp;\n\n\n                            var pounds = $('#calc_weight_input_lb').val();\n                            var stones = $('#calc_weight_input_st').val();\n                            if(isNaN(parseFloat(pounds))){\n                                pounds = 0;\n                            }\n                            if(isNaN(parseFloat(stones))){\n                                stones = 0;\n                                console.log('alo')\n                            }\n                            var weight_imp = ((parseFloat(pounds) + parseFloat(stones) \/ 14) \/ 2.20462 ).toFixed(0);\n\n                            if(weight_imp < 10 || weight_imp > 500){\n                                $('.alert-mess[for=\"calc_weight_input_lb\"]').css('opacity','1');\n                                $('#calc_weight_input_lb').addClass('alert');\n                                $('#calc_weight_input_st').addClass('alert');\n                                can = false;\n                            }else{\n                                $('.alert-mess[for=\"calc_weight_input_lb\"]').css('opacity','0');\n                                $('#calc_weight_input_lb').removeClass('alert');\n                                $('#calc_weight_input_st').removeClass('alert');\n                            }\n                            console.log(parseFloat(stones))\n                            weight = weight_imp;\n                            \/\/console.log(can);\n                            if(can){\n                                                                $('#calc_input_button').html('Recalculate BMI  <img decoding=\"async\" src=\"https:\/\/gastrototal.com.mx\/wp-content\/plugins\/bmi-adultkid-calculator\/images\/Vector Smart Object.png\" >');\n                                $('#calc_input_button').addClass('re');\n\n                                var bmi = (parseFloat(weight)\/(parseInt(height)\/100*parseInt(height)\/100)).toFixed(2);\n                                console.log(bmi);\n                                if( bmi <=18.49 ){\n                                    $('.calc_info_placeholder.e1697586203').css('display','none');\n                                    $('.calc_info_data.e1697586203').css('display','block');\n                                    $('#calc_bmi').html(bmi);\n                                    $('#calc_conclusion').html('Bajo peso');\n                                    var left = 0;\n                                    if(bmi > 12){\n\n                                        left = (bmi - 12)*($('.calc_info_line_underweight').width()\/6.5);\n                                        console.log(left);\n                                    }\n                                    $('.calc_info_line_result_wrapper').css('left',(left-30)+'px' );\n                                }\n                                if(bmi >= 18.5 && bmi <=24.99 ){\n                                    $('.calc_info_placeholder.e1697586203').css('display','none');\n                                    $('.calc_info_data.e1697586203').css('display','block');\n                                    $('#calc_bmi').html(bmi);\n                                    $('#calc_conclusion').html('Saludable');\n\n                                    var left = 0;\n                                    if(bmi > 18.5){\n                                        left = (bmi - 18.5)*($('.calc_info_line_healthy').width()\/6.5);\n                                    }\n                                    $('.calc_info_line_result_wrapper').css('left',((left+$('.calc_info_line_underweight').width())-30)+'px' );\n                                }\n                                if(bmi >= 25 && bmi <=29.99 ){\n                                    $('.calc_info_placeholder.e1697586203').css('display','none');\n                                    $('.calc_info_data.e1697586203').css('display','block');\n                                    $('#calc_bmi').html(bmi);\n                                    $('#calc_conclusion').html('Exceso de peso');\n                                    var left = 0;\n                                    if(bmi > 25){\n                                        left = (bmi - 25)*($('.calc_info_line_overweight').width()\/5);\n                                    }\n                                    $('.calc_info_line_result_wrapper').css('left',((left+$('.calc_info_line_underweight').width()+$('.calc_info_line_healthy').width())-30)+'px' );\n                                }\n                                if(bmi >= 30 ){\n                                    $('.calc_info_placeholder.e1697586203').css('display','none');\n                                    $('.calc_info_data.e1697586203').css('display','block');\n                                    $('#calc_bmi').html(bmi);\n                                    $('#calc_conclusion').html('Tienes obesidad');\n                                    var left = 0;\n                                    if(bmi > 30){\n                                        left = (bmi - 30)*($('.calc_info_line_obese').width()\/5);\n                                    }\n                                    if(bmi > 35){\n                                        left = $('.calc_info_line_obese').width();\n                                    }\n                                    $('.calc_info_line_result_wrapper').css('left',((left+$('.calc_info_line_underweight').width()+$('.calc_info_line_healthy').width() +$('.calc_info_line_overweight').width())-30)+'px' );\n                                }\n                                var healthy_min = Math.round(18.5 * (parseInt(height)\/100*parseInt(height)\/100));\n                                var healthy_max = Math.round(24.99 * (parseInt(height)\/100*parseInt(height)\/100));\n\n                                if(units == 'metric'){\n                                    $('#healthy_weight').html(healthy_min+' - '+healthy_max);\n                                    $('#calc_info_conclusionLb').css('display','none');\n                                    $('#calc_info_conclusion').css('display','block');\n                                }else{\n                                    $('#healthy_weightLb').html(Math.round(healthy_min*2.20462)+' - '+Math.round(healthy_max*2.20462));\n                                    $('#calc_info_conclusionLb').css('display','block');\n                                    $('#calc_info_conclusion').css('display','none');\n                                }\n\n\n\n\n                                \n                            }\n\n\n\n\n\n\n\n                        }\n                        break;\n                }\n            }\n            function check_imperial(can){\n                var feets = $('#calc_height_input_ft').val();\n                var inches = $('#calc_height_input_in').val();\n                if(isNaN(parseFloat(feets))){\n                    feets = 0;\n                }\n                if(isNaN(parseFloat(inches))){\n                    inches = 0;\n                }\n                var height_imp = ((parseFloat(feets) + parseFloat(inches) \/ 12) * 30.48).toFixed(0);\n\n                if(height_imp < 125 || height_imp > 225 ){\n                    $('.alert-mess[for=\"calc_height_input_ft\"]').css('opacity','1');\n                    $('#calc_height_input_ft').addClass('alert');\n                    $('#calc_height_input_in').addClass('alert');\n                    can = false;\n                }else{\n                    $('.alert-mess[for=\"calc_height_input_ft\"]').css('opacity','0');\n                    $('#calc_height_input_ft').removeClass('alert');\n                    $('#calc_height_input_in').removeClass('alert');\n                }\n\n                height = height_imp;\n\n\n                var pounds = $('#calc_weight_input_lb').val();\n                var stones = $('#calc_weight_input_st').val();\n                if(isNaN(parseFloat(pounds))){\n                    pounds = 0;\n                }\n                if(isNaN(parseFloat(stones))){\n                    stones = 0;\n                    console.log('alo')\n                }\n                var weight_imp = ((parseFloat(pounds) + parseFloat(stones) \/ 14) \/ 2.20462 ).toFixed(0);\n\n                if(weight_imp < 10 || weight_imp > 500){\n                    $('.alert-mess[for=\"calc_weight_input_lb\"]').css('opacity','1');\n                    $('#calc_weight_input_lb').addClass('alert');\n                    $('#calc_weight_input_st').addClass('alert');\n                    can = false;\n                }else{\n                    $('.alert-mess[for=\"calc_weight_input_lb\"]').css('opacity','0');\n                    $('#calc_weight_input_lb').removeClass('alert');\n                    $('#calc_weight_input_st').removeClass('alert');\n                }\n                console.log(parseFloat(stones))\n                weight = weight_imp;\n                return can;\n            }\n            addEventListener(\"keydown\", moveRect);\n            const fweight = x => ( (x.toString().includes('.')) ? (x.toString().split('.').pop().length) : (0) );\n            var height = '';\n            var weight = '';\n            var checkingRegExp = new RegExp(\/^(\\d)$\/g);\n            $('#calc_height_input').on('input',function(){\n                if(\/^[\\d.]*$\/.test($(this).val())  && $(this).val().split(\".\").length < 3){\n                    height = $(this).val();\n                }else{\n                    $(this).val(height);\n                }\n\n                if(parseInt($(this).val()) < 125 || parseInt($(this).val()) > 225 || !Number.isInteger(parseInt($(this).val())) || $(this).val()[0]=='0'){\n                    $('.alert-mess[for=\"'+$(this).attr('id')+'\"]').css('opacity','1');\n                    $(this).addClass('alert');\n                }else{\n                    $('.alert-mess[for=\"'+$(this).attr('id')+'\"]').css('opacity','0');\n                    $(this).removeClass('alert');\n                }\n            })\n            $('#calc_weight_input').on('input',function(){\n                if(\/^[\\d.]*$\/.test($(this).val()) && $(this).val().split(\".\").length < 3 ){\n                    weight = $(this).val();\n                }else{\n                    $(this).val(weight);\n                }\n                    if(parseFloat($(this).val()) < 10 || parseFloat($(this).val()) > 500 || fweight(parseFloat($(this).val())) > 1 || parseFloat($(this).val())!=$(this).val() || $(this).val()[0]=='0'){\n                        $('.alert-mess[for=\"'+$(this).attr('id')+'\"]').css('opacity','1');\n                        $(this).addClass('alert');\n                        can = false;\n                    }else{\n                        $('.alert-mess[for=\"'+$(this).attr('id')+'\"]').css('opacity','0');\n                        $(this).removeClass('alert');\n                    }\n            })\n            var prev1 = 0;\n            var prev2 = 0;\n            var prev3 = 0;\n            var prev4 = 0;\n\n            $('#calc_height_input_ft').on('input',function(){\n                if(\/^[\\d.]*$\/.test($(this).val())){\n                    prev1 = $(this).val();\n                }else{\n                    $(this).val(prev1);\n                }\n                var can = check_imperial(true);\n            })\n            $('#calc_height_input_in').on('input',function(){\n                if(\/^[\\d.]*$\/.test($(this).val())){\n                    prev2 = $(this).val();\n                }else{\n                    $(this).val(prev2);\n                }\n                var can = check_imperial(true);\n            })\n            $('#calc_weight_input_lb').on('input',function(){\n                if(\/^[\\d.]*$\/.test($(this).val())){\n                    prev3 = $(this).val();\n                }else{\n                    $(this).val(prev3);\n                }\n                var can = check_imperial(true);\n            })\n            $('#calc_weight_input_st').on('input',function(){\n                if(\/^[\\d.]*$\/.test($(this).val())){\n                    prev4 = $(this).val();\n                }else{\n                    $(this).val(prev4);\n                }\n                var can = check_imperial(true);\n            })\n\n\n\n\n\n\n\n\n            $('#calc_input_button').on('click',function(){\n                var can = true;\n\n\n                if(units == 'metric'){\n\n\n                    $('#calc_height_input').each(function(){\n\n\n                            if(parseInt($(this).val()) < 125 || parseInt($(this).val()) > 225 || !Number.isInteger(parseInt($(this).val())) || $(this).val()[0]=='0'){\n                                $('.alert-mess[for=\"'+$(this).attr('id')+'\"]').css('opacity','1');\n                                $(this).addClass('alert');\n                                can = false;\n                            }else{\n                                $('.alert-mess[for=\"'+$(this).attr('id')+'\"]').css('opacity','0');\n                                $(this).removeClass('alert');\n                                height = $(this).val();\n                            }\n\n                    })\n                    $('#calc_weight_input').each(function(){\n\n\n                            if(parseFloat($(this).val()) < 10 || parseFloat($(this).val()) > 500 || fweight(parseFloat($(this).val())) > 1 || parseFloat($(this).val())!=$(this).val() || $(this).val()[0]=='0'){\n                                $('.alert-mess[for=\"'+$(this).attr('id')+'\"]').css('opacity','1');\n                                $(this).addClass('alert');\n                                can = false;\n                            }else{\n                                $('.alert-mess[for=\"'+$(this).attr('id')+'\"]').css('opacity','0');\n                                $(this).removeClass('alert');\n                                weight = $(this).val();\n                            }\n\n                    })\n                }else{\n\n                    if(can){\n                        can = check_imperial(true);\n                    }\n\n\n                }\n                \/\/console.log(can);\n                if(can){\n                    \n                    $('#calc_input_button').html('Recalculate BMI  <img decoding=\"async\" src=\"https:\/\/gastrototal.com.mx\/wp-content\/plugins\/bmi-adultkid-calculator\/images\/Vector Smart Object.png\" >');\n                    $('#calc_input_button').addClass('re');\n                    console.log(weight)\n                    console.log(height)\n                    var bmi = (parseFloat(weight)\/(parseInt(height)\/100*parseInt(height)\/100)).toFixed(2);\n                    console.log(bmi);\n                    if( bmi <=18.49 ){\n                        $('.calc_info_placeholder.e1697586203').css('display','none');\n                        $('.calc_info_data.e1697586203').css('display','block');\n                        $('#calc_bmi').html(bmi);\n                        $('#calc_conclusion').html('Bajo peso');\n                        var left = 0;\n                        if(bmi > 12){\n\n                            left = (bmi - 12)*($('.calc_info_line_underweight').width()\/6.5);\n                            console.log(left);\n                        }\n                        $('.calc_info_line_result_wrapper').css('left',(left-30)+'px' );\n                    }\n                    if(bmi >= 18.5 && bmi <=24.99 ){\n                        $('.calc_info_placeholder.e1697586203').css('display','none');\n                        $('.calc_info_data.e1697586203').css('display','block');\n                        $('#calc_bmi').html(bmi);\n                        $('#calc_conclusion').html('Saludable');\n\n                        var left = 0;\n                        if(bmi > 18.5){\n                            left = (bmi - 18.5)*($('.calc_info_line_healthy').width()\/6.5);\n                        }\n                        $('.calc_info_line_result_wrapper').css('left',((left+$('.calc_info_line_underweight').width())-30)+'px' );\n                    }\n                    if(bmi >= 25 && bmi <=29.99 ){\n                        $('.calc_info_placeholder.e1697586203').css('display','none');\n                        $('.calc_info_data.e1697586203').css('display','block');\n                        $('#calc_bmi').html(bmi);\n                        $('#calc_conclusion').html('Exceso de peso');\n                        var left = 0;\n                        if(bmi > 25){\n                            left = (bmi - 25)*($('.calc_info_line_overweight').width()\/5);\n                        }\n                        $('.calc_info_line_result_wrapper').css('left',((left+$('.calc_info_line_underweight').width()+$('.calc_info_line_healthy').width())-30)+'px' );\n                    }\n                    if(bmi >= 30 ){\n                        $('.calc_info_placeholder.e1697586203').css('display','none');\n                        $('.calc_info_data.e1697586203').css('display','block');\n                        $('#calc_bmi').html(bmi);\n                        $('#calc_conclusion').html('Tienes obesidad');\n                        var left = 0;\n                        if(bmi > 30){\n                            left = (bmi - 30)*($('.calc_info_line_obese').width()\/5);\n                        }\n                        if(bmi > 35){\n                            left = $('.calc_info_line_obese').width();\n                        }\n                        $('.calc_info_line_result_wrapper').css('left',((left+$('.calc_info_line_underweight').width()+$('.calc_info_line_healthy').width() +$('.calc_info_line_overweight').width())-30)+'px' );\n                    }\n                    var healthy_min = Math.round(18.5 * (parseInt(height)\/100*parseInt(height)\/100));\n                    var healthy_max = Math.round(24.99 * (parseInt(height)\/100*parseInt(height)\/100));\n\n                    if(units == 'metric'){\n                        $('#healthy_weight').html(healthy_min+' - '+healthy_max);\n                        $('#calc_info_conclusionLb').css('display','none');\n                        $('#calc_info_conclusion').css('display','block');\n                    }else{\n                        $('#healthy_weightLb').html(Math.round(healthy_min*2.20462)+' - '+Math.round(healthy_max*2.20462));\n                        $('#calc_info_conclusionLb').css('display','block');\n                        $('#calc_info_conclusion').css('display','none');\n                    }\n\n                                }\n            })\n        })( jQuery );\n})\n\n    <\/script>\n    <\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1c303d6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1c303d6\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-20ebb0a\" data-id=\"20ebb0a\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":11,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-2062","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>prueba - Gastro Total<\/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:\/\/gastrototal.com.mx\/en\/prueba\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"prueba - Gastro Total\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gastrototal.com.mx\/en\/prueba\/\" \/>\n<meta property=\"og:site_name\" content=\"Gastro Total\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/GastroTotalDrHumbertoCordero\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-17T23:43:49+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. 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:\/\/gastrototal.com.mx\/prueba\/\",\"url\":\"https:\/\/gastrototal.com.mx\/prueba\/\",\"name\":\"prueba - Gastro Total\",\"isPartOf\":{\"@id\":\"https:\/\/gastrototal.com.mx\/#website\"},\"datePublished\":\"2023-10-13T17:32:48+00:00\",\"dateModified\":\"2023-10-17T23:43:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/gastrototal.com.mx\/prueba\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/gastrototal.com.mx\/prueba\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/gastrototal.com.mx\/prueba\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Inicio\",\"item\":\"https:\/\/gastrototal.com.mx\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"prueba\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/gastrototal.com.mx\/#website\",\"url\":\"https:\/\/gastrototal.com.mx\/\",\"name\":\"Gastro Total\",\"description\":\"Bypass G\u00e1strico\",\"publisher\":{\"@id\":\"https:\/\/gastrototal.com.mx\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/gastrototal.com.mx\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/gastrototal.com.mx\/#organization\",\"name\":\"Gastro Total\",\"url\":\"https:\/\/gastrototal.com.mx\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/gastrototal.com.mx\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/gastrototal.com.mx\/wp-content\/uploads\/2023\/11\/cropped-cropped-Logotipo-Gastro-Total_Mesa-de-trabajo-1-1-e1700849362358-1.png\",\"contentUrl\":\"https:\/\/gastrototal.com.mx\/wp-content\/uploads\/2023\/11\/cropped-cropped-Logotipo-Gastro-Total_Mesa-de-trabajo-1-1-e1700849362358-1.png\",\"width\":2619,\"height\":928,\"caption\":\"Gastro Total\"},\"image\":{\"@id\":\"https:\/\/gastrototal.com.mx\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/GastroTotalDrHumbertoCordero\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"prueba - Gastro Total","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:\/\/gastrototal.com.mx\/en\/prueba\/","og_locale":"en_US","og_type":"article","og_title":"prueba - Gastro Total","og_url":"https:\/\/gastrototal.com.mx\/en\/prueba\/","og_site_name":"Gastro Total","article_publisher":"https:\/\/www.facebook.com\/GastroTotalDrHumbertoCordero","article_modified_time":"2023-10-17T23:43:49+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/gastrototal.com.mx\/prueba\/","url":"https:\/\/gastrototal.com.mx\/prueba\/","name":"prueba - Gastro Total","isPartOf":{"@id":"https:\/\/gastrototal.com.mx\/#website"},"datePublished":"2023-10-13T17:32:48+00:00","dateModified":"2023-10-17T23:43:49+00:00","breadcrumb":{"@id":"https:\/\/gastrototal.com.mx\/prueba\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gastrototal.com.mx\/prueba\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gastrototal.com.mx\/prueba\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Inicio","item":"https:\/\/gastrototal.com.mx\/"},{"@type":"ListItem","position":2,"name":"prueba"}]},{"@type":"WebSite","@id":"https:\/\/gastrototal.com.mx\/#website","url":"https:\/\/gastrototal.com.mx\/","name":"Gastro Total","description":"Gastric Bypass","publisher":{"@id":"https:\/\/gastrototal.com.mx\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gastrototal.com.mx\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/gastrototal.com.mx\/#organization","name":"Gastro Total","url":"https:\/\/gastrototal.com.mx\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gastrototal.com.mx\/#\/schema\/logo\/image\/","url":"https:\/\/gastrototal.com.mx\/wp-content\/uploads\/2023\/11\/cropped-cropped-Logotipo-Gastro-Total_Mesa-de-trabajo-1-1-e1700849362358-1.png","contentUrl":"https:\/\/gastrototal.com.mx\/wp-content\/uploads\/2023\/11\/cropped-cropped-Logotipo-Gastro-Total_Mesa-de-trabajo-1-1-e1700849362358-1.png","width":2619,"height":928,"caption":"Gastro Total"},"image":{"@id":"https:\/\/gastrototal.com.mx\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/GastroTotalDrHumbertoCordero"]}]}},"_links":{"self":[{"href":"https:\/\/gastrototal.com.mx\/en\/wp-json\/wp\/v2\/pages\/2062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gastrototal.com.mx\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/gastrototal.com.mx\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/gastrototal.com.mx\/en\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/gastrototal.com.mx\/en\/wp-json\/wp\/v2\/comments?post=2062"}],"version-history":[{"count":23,"href":"https:\/\/gastrototal.com.mx\/en\/wp-json\/wp\/v2\/pages\/2062\/revisions"}],"predecessor-version":[{"id":2409,"href":"https:\/\/gastrototal.com.mx\/en\/wp-json\/wp\/v2\/pages\/2062\/revisions\/2409"}],"wp:attachment":[{"href":"https:\/\/gastrototal.com.mx\/en\/wp-json\/wp\/v2\/media?parent=2062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}