{"id":259,"date":"2024-08-29T01:58:06","date_gmt":"2024-08-29T01:58:06","guid":{"rendered":"https:\/\/darwitho11.sg-host.com\/?page_id=259"},"modified":"2024-08-29T02:43:23","modified_gmt":"2024-08-29T02:43:23","slug":"calculadora-imc","status":"publish","type":"page","link":"https:\/\/round13.online\/en\/calculadora-imc\/","title":{"rendered":"Calculadora IMC"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"259\" class=\"elementor elementor-259\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ca27435 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"ca27435\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;,&quot;_ha_eqh_enable&quot;:false}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d3fb137 elementor-widget elementor-widget-html\" data-id=\"d3fb137\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script>\n    \/\/ Calculadora de IMC\n\/\/ Autor\n\nfunction calculateImc(form) {\n    let imcBar = document.getElementById('IMCbar');\n    let imcData = document.getElementById('imcData');\n    let imc = form.weight.value \/ ((form.height.value \/ 100) * (form.height.value \/ 100));\n    let imcText;\n    if (imc <= 18.5) {\n        imcText = 'Bajo peso';\n    } else if (imc > 18.5 && imc <= 25) {\n        imcText = 'Peso normal';\n    } else if (imc > 25 && imc <= 30) {\n        imcText = 'Sobrepeso';\n    } else if (imc > 30 && imc <= 35) {\n        imcText = 'Obesidad nivel 1';\n    } else if (imc > 35 && imc <= 40) {\n        imcText = 'Obesidad nivel 2';\n    } else if (imc > 40 && imc <= 50) {\n        imcText = 'Obesidad nivel 3';\n    } else if (imc > 50) {\n        imcText = 'Obesidad nivel 4';\n    }\n    if (imc <= 15) {\n        imcBar.style.width = '0%';\n    } else if (imc >= 50) { \/\/ si es 50 o mayor es 100%\n        imcBar.style.width = '100%';\n    } else { \/\/ Si el IMC est\u00e1 entre 15 y 50\n        imcBar.style.width = (((imc - 15) * 100) \/ 35) + '%';\n    }\n    imcData.innerHTML = `IMC: ${parseFloat(imc).toFixed(2)}  ${imcText}`;\n    return false;\n}\n<\/script>\n\n<style>\n* {\n  font-family: 'Montserrat', sans-serif; \/* Cambiado a Montserrat *\/\n}\n\nbody {\n  background-color: #1d1e22;\n  color: #54595F;\n}\n\n.button {\n  color: #54595F;\n  background-color: #FFB100;\n  font-family: 'Montserrat', sans-serif; \/* Cambiado a Montserrat *\/\n  cursor: pointer;\n  padding: 3%;\n  border: none;\n  border-radius: 50px;\n  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);\n}\n\n.button:hover {\n  background-color: #3c55c2;\n  color: #54595F;\n}\n\n.button:focus {\n  outline: 0;\n  background-color: #0d1728;\n}\n\n.max-550 {\n  max-width: 500px;\n  margin: auto;\n  text-align: center;\n}\n\n#imcContainer {\n  width: 100%;\n  border-radius: 5px;\n  height: 40px;\n  background: #3f51b5;\n  background: -moz-linear-gradient(left, #3f51b5 0%, #009688 11%, #4caf50 21%, #8bc34a 29%, #cddc39 40%, #ffeb3b 51%, #ff5722 62%, #f44336 72%, #f44336 81%, #dd2a2a 90%, #b71c1c 100%);\n  background: -webkit-linear-gradient(left, #3f51b5 0%, #009688 11%, #4caf50 21%, #8bc34a 29%, #cddc39 40%, #ffeb3b 51%, #ff5722 62%, #f44336 72%, #f44336 81%, #dd2a2a 90%, #b71c1c 100%);\n  background: linear-gradient(to right, #3f51b5 0%, #009688 11%, #4caf50 21%, #8bc34a 29%, #cddc39 40%, #ffeb3b 51%, #ff5722 62%, #f44336 72%, #f44336 81%, #dd2a2a 90%, #b71c1c 100%);\n}\n\n#IMCbar {\n  width: 0%;\n  height: 40px;\n  margin-top: -5px;\n  border-right: 5px solid #000;\n  transition: all 2s ease;\n}\n\n\n<\/style>\n <div class=\"max-550\">\n    <h2>Calculadora de IMC<\/h2>\n    <p>Una <b>calculadora de IMC<\/b> para que sepas que tan bien est\u00e1 tu peso. Ingresa tu altura en cm y tu peso en kg<\/p>\n    <form onsubmit=\"return calculateImc(this);\" action=\"\" data-trp-original-action=\"\">\n      <label for=\"height\">Altura (cm)<\/label>\n      <input type=\"number\" max=\"200\" name=\"height\" id=\"height\" placeholder=\"180\"><br><br>\n      <label for=\"weight\">Peso (kg)<\/label>\n      <input type=\"number\" max=\"300\" name=\"weight\" id=\"weight\" placeholder=\"74.8\"><br><br>\n      <input type=\"submit\" value=\"Calcular\" class=\"button\">\n    <input type=\"hidden\" name=\"trp-form-language\" value=\"en\"\/><\/form>\n<br>\n    <div>\n      <h4 id=\"imcData\">Nivel IMC: <\/h4>\n      <div id=\"imcContainer\">\n        <div id=\"IMCbar\"><\/div>\n      <\/div>\n    <\/div><br>\n    <h3>\u00bfQu\u00e9 es el \u00edndice de masa corporal (IMC)?<\/h3>\n    <p>\n      El \u00edndice de masa corporal (IMC) es una medida que utiliza tu altura y peso para determinar si tu peso es saludable.\n      El c\u00e1lculo del IMC divide el peso de un adulto en kilogramos por su altura en metros al cuadrado.\n    <\/p>\n    <h3>Rangos de IMC<\/h3>\n    <p>\n      Si tu IMC es:\n      <ul style=\"text-align:left\">\n        <li>Por debajo de 18.5 est\u00e1s con bajo peso<\/li>\n        <li>Entre 18.5 y 24.9 est\u00e1s en el rango de peso normal o saludable<\/li>\n        <li>Entre 25 y 29.9 est\u00e1s en el rango de sobrepeso<\/li>\n        <li>Entre 30 y 39.9 est\u00e1s en el rango de obesidad nivel 1<\/li>\n      <\/ul>\n    <\/p>\n<\/div>\n<script src=\"https:\/\/cdn.jsdelivr.net\/gh\/reymon359\/web-experiments\/Social%20Signature\/socialsignature.min.js\" crossorigin=\"anonymous\"><\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-1655b8d e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"1655b8d\" data-element_type=\"container\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d0b24ac elementor-widget elementor-widget-ha-creative-button happy-addon ha-creative-button\" data-id=\"d0b24ac\" data-element_type=\"widget\" data-widget_type=\"ha-creative-button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div data-magnetic=\"no\" class=\"ha-creative-btn-wrap\">\n\t\t\t<a class=\"ha-creative-btn ha-stl--hermosa ha-eft--bloom\" href=\"https:\/\/round13.online\/en\/cursos\/\" rel=\"nofollow\"><div><\/div><span>Conoce c\u00f3mo perder peso aqu\u00ed<\/span><\/a>\n\t\t<\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-af58959 elementor-widget elementor-widget-spacer\" data-id=\"af58959\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Calculadora de IMC Una calculadora de IMC para que sepas que tan bien est\u00e1 tu peso. Ingresa tu altura en cm y tu peso en kg Altura (cm) Peso (kg) Nivel IMC: \u00bfQu\u00e9 es el \u00edndice de masa corporal (IMC)? El \u00edndice de masa corporal (IMC) es una medida que utiliza tu altura y peso para determinar si tu peso es saludable. El c\u00e1lculo del IMC divide el peso de un adulto en kilogramos por su altura en metros al cuadrado. Rangos de IMC Si tu IMC es: Por debajo de 18.5 est\u00e1s con bajo peso Entre 18.5 y 24.9 est\u00e1s en el rango de peso normal o saludable Entre 25 y 29.9 est\u00e1s en el rango de sobrepeso Entre 30 y 39.9 est\u00e1s en el rango de obesidad nivel 1 Conoce c\u00f3mo perder peso aqu\u00ed<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"no-sidebar","site-content-layout":"","ast-site-content-layout":"full-width-container","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":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","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-259","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false,"variation_swatches_image_size":false,"variation_swatches_tooltip_size":false,"quick_view_image_size":false},"uagb_author_info":{"display_name":"Darwith","author_link":"https:\/\/round13.online\/en\/author\/darwith92gmail-com\/"},"uagb_comment_info":0,"uagb_excerpt":"Calculadora de IMC Una calculadora de IMC para que sepas que tan bien est\u00e1 tu peso. Ingresa tu altura en cm y tu peso en kg Altura (cm) Peso (kg) Nivel IMC: \u00bfQu\u00e9 es el \u00edndice de masa corporal (IMC)? El \u00edndice de masa corporal (IMC) es una medida que utiliza tu altura y peso&hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/round13.online\/en\/wp-json\/wp\/v2\/pages\/259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/round13.online\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/round13.online\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/round13.online\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/round13.online\/en\/wp-json\/wp\/v2\/comments?post=259"}],"version-history":[{"count":28,"href":"https:\/\/round13.online\/en\/wp-json\/wp\/v2\/pages\/259\/revisions"}],"predecessor-version":[{"id":294,"href":"https:\/\/round13.online\/en\/wp-json\/wp\/v2\/pages\/259\/revisions\/294"}],"wp:attachment":[{"href":"https:\/\/round13.online\/en\/wp-json\/wp\/v2\/media?parent=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}