{"id":27,"date":"2019-10-12T01:50:53","date_gmt":"2019-10-12T01:50:53","guid":{"rendered":"http:\/\/cilap.com.ar\/wp\/?page_id=27"},"modified":"2019-11-05T12:02:06","modified_gmt":"2019-11-05T12:02:06","slug":"calcule-su-i-m-c","status":"publish","type":"page","link":"https:\/\/cilap.com.ar\/wp\/obesidad\/calcule-su-i-m-c\/","title":{"rendered":"CALCULE SU I.M.C"},"content":{"rendered":"<html>\n<head>\n\t<title>Calculadora de Indice de Masa Corporal<\/title>\n<\/head>\n<body>\n<h1>Calculadora de IMC: Indice de Masa Corporal<\/h1>\n<!-- FORMULARIO HTML -->\n<p>Ingrese peso (kg): <input type=\"text\" id=\"kg\"><\/p>\n<p>Ingrese Altura (m): <input type=\"text\" id=\"m\"><\/p>\n<button id=\"calc\">Calcular<\/button>\n<p>IMC: <span id=\"imc\"><\/span><\/p>\n<p>Lectura: <span id=\"lectura\"><\/span><\/p>\n\n<!-- SCRIPT PARA CALCULAR IMC -->\n<script type=\"text\/javascript\">\n\tcalc = document.getElementById(\"calc\");\n\tkg = document.getElementById(\"kg\");\n\tm = document.getElementById(\"m\");\n\timc = document.getElementById(\"imc\");\n\tlectura = document.getElementById(\"lectura\");\n\n\tcalc.onclick = function(){\n\t\tif(kg.value!=\"\" && m.value!=\"\"){\n\t\t\timcx = (kg.value \/ (m.value* m.value));\n\t\t\timc.innerHTML = imcx\n\t\t\tconsole.log(imcx);\n\n\t\t\tif(imcx<18.5){ lectura.innerHTML = \"Peso inferior al normal\"; }\n\t\t\telse if(imcx>=18.5 && imcx<=24.9){ lectura.innerHTML = \"Peso normal\"; }\n\t\t\telse if(imcx>=25 && imcx<=29.9){ lectura.innerHTML = \"Peso superior al normal\"; }\n\t\t\telse if(imcx>30){ lectura.innerHTML = \"Obesidad\"; }\n\n\t\t}else{\n\t\t\talert(\"Debes ingresar peso y altura.\")\n\t\t}\n\n\t};\n<\/script>\n<\/body>\n<\/html>\n\n\n<h2 class=\"wp-block-heading\"><strong>Cuando el IMC es mayor a 30 ya existe \u00abObesidad\u00bb.<\/strong><br><\/h2>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td> <strong>30 a 34,9<\/strong><br><br> <\/td><td> <strong>Obesidad moderada<\/strong><br><br> <\/td><td> <strong>Clase I<\/strong><br><br><br> <\/td><\/tr><tr><td> <strong>35 a 39,9<\/strong><br><br> <\/td><td> <strong>Obesidad severa<\/strong><br><br> <\/td><td> <strong>Clase II<\/strong><br><br><br> <\/td><\/tr><tr><td> <strong>40 a 49,9<\/strong><br><br> <\/td><td> <strong>Obesidad m\u00f3rbida<\/strong><br><br> <\/td><td> <strong>Clase III<\/strong><br><br><br> <\/td><\/tr><tr><td> <strong>50 a 59,9<\/strong><br><br> <\/td><td> <strong>Superobesidad<\/strong> <\/td><td> <strong>Clase III<\/strong><br><br><br> <\/td><\/tr><tr><td> <strong>60 a 65,9<\/strong><br><br> <\/td><td> <strong>Supersuperobesidad<\/strong> <\/td><td> <strong>Clase III<\/strong><br><br><br> <\/td><\/tr><tr><td> <strong>66 y &gt;<\/strong><br><br> <\/td><td> <strong>Triple obesidad<\/strong><br><br> <\/td><td> <strong>Clase III<\/strong><br><br> <\/td><\/tr><\/tbody><\/table>\n","protected":false},"excerpt":{"rendered":"<p>Calculadora de Indice de Masa Corporal Calculadora de IMC: Indice de Masa Corporal Ingrese peso (kg): Ingrese Altura (m): Calcular IMC: Lectura: Cuando el IMC es mayor a 30 ya existe \u00abObesidad\u00bb. 30 a 34,9 Obesidad moderada Clase I 35 a 39,9 Obesidad severa Clase II 40 a 49,9 Obesidad m\u00f3rbida Clase III 50 a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":12,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_joinchat":[],"footnotes":""},"class_list":["post-27","page","type-page","status-publish","hentry","post"],"_links":{"self":[{"href":"https:\/\/cilap.com.ar\/wp\/wp-json\/wp\/v2\/pages\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cilap.com.ar\/wp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cilap.com.ar\/wp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cilap.com.ar\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cilap.com.ar\/wp\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":5,"href":"https:\/\/cilap.com.ar\/wp\/wp-json\/wp\/v2\/pages\/27\/revisions"}],"predecessor-version":[{"id":526,"href":"https:\/\/cilap.com.ar\/wp\/wp-json\/wp\/v2\/pages\/27\/revisions\/526"}],"up":[{"embeddable":true,"href":"https:\/\/cilap.com.ar\/wp\/wp-json\/wp\/v2\/pages\/12"}],"wp:attachment":[{"href":"https:\/\/cilap.com.ar\/wp\/wp-json\/wp\/v2\/media?parent=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}