{"id":748,"date":"2025-06-19T10:53:43","date_gmt":"2025-06-19T08:53:43","guid":{"rendered":"https:\/\/osteopathe-sendao.fr\/?page_id=748"},"modified":"2025-06-19T10:58:15","modified_gmt":"2025-06-19T08:58:15","slug":"calculateur-indice-pral","status":"publish","type":"page","link":"http:\/\/osteopathe-sendao.fr\/index.php\/calculateur-indice-pral\/","title":{"rendered":"calculateur indice pral"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"748\" class=\"elementor elementor-748\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8182f7c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8182f7c\" 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-46d37af\" data-id=\"46d37af\" 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-e06312b elementor-widget elementor-widget-html\" data-id=\"e06312b\" 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<form id=\"pralForm\" style=\"max-width: 900px; font-family: sans-serif; line-height: 1.5;\">\n  <h2>\ud83d\udcdd Calculateur de l\u2019indice PRAL<\/h2>\n\n  <h3>1. Prot\u00e9ines animales<\/h3>\n  <div id=\"cat_prot_animales\"><\/div>\n\n  <button type=\"button\" onclick=\"calculatePRAL()\">Calculer<\/button>\n  <div id=\"result\" style=\"margin-top: 30px; font-weight: bold;\"><\/div>\n<\/form>\n\n<script>\n  const aliments = [\n    { nom: \"\u0152uf frais\", pral: 7.47, cat: \"prot_animales\" },\n    { nom: \"Poulet\", pral: 8.7, cat: \"prot_animales\" }\n  ];\n\n  const portions = {\n    \"0 (non consomm\u00e9)\": 0,\n    \"Petite portion (\u2248 50g)\": 0.5,\n    \"Portion standard (\u2248 100g)\": 1,\n    \"Grande portion (\u2248 150g)\": 1.5\n  };\n\n  function createSelect(item, index) {\n    const div = document.createElement(\"div\");\n    const select = document.createElement(\"select\");\n    select.name = `al${index}`;\n    select.dataset.pral = item.pral;\n    for (const label in portions) {\n      const opt = document.createElement(\"option\");\n      opt.value = portions[label];\n      opt.textContent = label;\n      select.appendChild(opt);\n    }\n    div.innerHTML = `<label>${item.nom} : <\/label>`;\n    div.appendChild(select);\n    return div;\n  }\n\n  function renderInputs() {\n    const catDivs = {\n      prot_animales: document.getElementById(\"cat_prot_animales\")\n    };\n    aliments.forEach((item, index) => {\n      if (catDivs[item.cat]) {\n        catDivs[item.cat].appendChild(createSelect(item, index));\n      }\n    });\n  }\n\n  function calculatePRAL() {\n    let total = 0;\n    const selects = document.querySelectorAll(\"#pralForm select\");\n    selects.forEach(select => {\n      const portion = parseFloat(select.value);\n      const pral = parseFloat(select.dataset.pral);\n      total += portion * pral;\n    });\n\n    let message = `<p>Votre score PRAL est de : <strong>${total.toFixed(2)}<\/strong><\/p>`;\n    document.getElementById(\"result\").innerHTML = message;\n  }\n\n  renderInputs();\n  function renderInputs() {\n  console.log(\"renderInputs appel\u00e9\"); \/\/ AJOUTE CE LOG\n  const catDivs = {\n    prot_animales: document.getElementById(\"cat_prot_animales\"),\n    \/\/ ... les autres cat\u00e9gories ici ...\n  };\n  console.log(\"catDivs.prot_animales =\", catDivs.prot_animales);\n\n  aliments.forEach((item, index) => {\n    if (catDivs[item.cat]) {\n      catDivs[item.cat].appendChild(createSelect(item, index));\n    }\n  });\n}\n\n<\/script>\n\n\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<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\ud83d\udcdd Calculateur de l\u2019indice PRAL 1. Prot\u00e9ines animales Calculer<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","footnotes":""},"class_list":["post-748","page","type-page","status-publish","hentry","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>calculateur indice pral - Carlos SENDAO Ost\u00e9opathe DO MROF<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/osteopathe-sendao.fr\/index.php\/calculateur-indice-pral\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"calculateur indice pral - Carlos SENDAO Ost\u00e9opathe DO MROF\" \/>\n<meta property=\"og:description\" content=\"\ud83d\udcdd Calculateur de l\u2019indice PRAL 1. Prot\u00e9ines animales Calculer\" \/>\n<meta property=\"og:url\" content=\"http:\/\/osteopathe-sendao.fr\/index.php\/calculateur-indice-pral\/\" \/>\n<meta property=\"og:site_name\" content=\"Carlos SENDAO Ost\u00e9opathe DO MROF\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/Carlos-Sendao-Ost%c3%a9opathe\/100076087891562\/\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-19T08:58:15+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/osteopathe-sendao.fr\/wp-content\/uploads\/2025\/06\/logoSENDAO.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\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\":\"http:\/\/osteopathe-sendao.fr\/index.php\/calculateur-indice-pral\/\",\"url\":\"http:\/\/osteopathe-sendao.fr\/index.php\/calculateur-indice-pral\/\",\"name\":\"calculateur indice pral - Carlos SENDAO Ost\u00e9opathe DO MROF\",\"isPartOf\":{\"@id\":\"https:\/\/osteopathe-sendao.fr\/#website\"},\"datePublished\":\"2025-06-19T08:53:43+00:00\",\"dateModified\":\"2025-06-19T08:58:15+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/osteopathe-sendao.fr\/index.php\/calculateur-indice-pral\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/osteopathe-sendao.fr\/index.php\/calculateur-indice-pral\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/osteopathe-sendao.fr\/index.php\/calculateur-indice-pral\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/osteopathe-sendao.fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"calculateur indice pral\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/osteopathe-sendao.fr\/#website\",\"url\":\"https:\/\/osteopathe-sendao.fr\/\",\"name\":\"Carlos SENDAO Ost\u00e9opathe DO MROF\",\"description\":\"Des mains expertes pour une sant\u00e9 retrouv\u00e9e\",\"publisher\":{\"@id\":\"https:\/\/osteopathe-sendao.fr\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/osteopathe-sendao.fr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/osteopathe-sendao.fr\/#organization\",\"name\":\"SENDAO CARLOS OSTEOPATHE\",\"alternateName\":\"SENDAO CARLOS OSTEOPATHE\",\"url\":\"https:\/\/osteopathe-sendao.fr\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/osteopathe-sendao.fr\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/osteopathe-sendao.fr\/wp-content\/uploads\/2025\/06\/SENDAO-Carlos-logo.jpg\",\"contentUrl\":\"https:\/\/osteopathe-sendao.fr\/wp-content\/uploads\/2025\/06\/SENDAO-Carlos-logo.jpg\",\"width\":1024,\"height\":1024,\"caption\":\"SENDAO CARLOS OSTEOPATHE\"},\"image\":{\"@id\":\"https:\/\/osteopathe-sendao.fr\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/people\/Carlos-Sendao-Ost\u00e9opathe\/100076087891562\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"calculateur indice pral - Carlos SENDAO Ost\u00e9opathe DO MROF","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":"http:\/\/osteopathe-sendao.fr\/index.php\/calculateur-indice-pral\/","og_locale":"fr_FR","og_type":"article","og_title":"calculateur indice pral - Carlos SENDAO Ost\u00e9opathe DO MROF","og_description":"\ud83d\udcdd Calculateur de l\u2019indice PRAL 1. Prot\u00e9ines animales Calculer","og_url":"http:\/\/osteopathe-sendao.fr\/index.php\/calculateur-indice-pral\/","og_site_name":"Carlos SENDAO Ost\u00e9opathe DO MROF","article_publisher":"https:\/\/www.facebook.com\/people\/Carlos-Sendao-Ost%c3%a9opathe\/100076087891562\/","article_modified_time":"2025-06-19T08:58:15+00:00","og_image":[{"width":1024,"height":1024,"url":"http:\/\/osteopathe-sendao.fr\/wp-content\/uploads\/2025\/06\/logoSENDAO.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/osteopathe-sendao.fr\/index.php\/calculateur-indice-pral\/","url":"http:\/\/osteopathe-sendao.fr\/index.php\/calculateur-indice-pral\/","name":"calculateur indice pral - Carlos SENDAO Ost\u00e9opathe DO MROF","isPartOf":{"@id":"https:\/\/osteopathe-sendao.fr\/#website"},"datePublished":"2025-06-19T08:53:43+00:00","dateModified":"2025-06-19T08:58:15+00:00","breadcrumb":{"@id":"http:\/\/osteopathe-sendao.fr\/index.php\/calculateur-indice-pral\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["http:\/\/osteopathe-sendao.fr\/index.php\/calculateur-indice-pral\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/osteopathe-sendao.fr\/index.php\/calculateur-indice-pral\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/osteopathe-sendao.fr\/"},{"@type":"ListItem","position":2,"name":"calculateur indice pral"}]},{"@type":"WebSite","@id":"https:\/\/osteopathe-sendao.fr\/#website","url":"https:\/\/osteopathe-sendao.fr\/","name":"Carlos SENDAO Ost\u00e9opathe DO MROF","description":"Des mains expertes pour une sant\u00e9 retrouv\u00e9e","publisher":{"@id":"https:\/\/osteopathe-sendao.fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/osteopathe-sendao.fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/osteopathe-sendao.fr\/#organization","name":"SENDAO CARLOS OSTEOPATHE","alternateName":"SENDAO CARLOS OSTEOPATHE","url":"https:\/\/osteopathe-sendao.fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/osteopathe-sendao.fr\/#\/schema\/logo\/image\/","url":"https:\/\/osteopathe-sendao.fr\/wp-content\/uploads\/2025\/06\/SENDAO-Carlos-logo.jpg","contentUrl":"https:\/\/osteopathe-sendao.fr\/wp-content\/uploads\/2025\/06\/SENDAO-Carlos-logo.jpg","width":1024,"height":1024,"caption":"SENDAO CARLOS OSTEOPATHE"},"image":{"@id":"https:\/\/osteopathe-sendao.fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/Carlos-Sendao-Ost\u00e9opathe\/100076087891562\/"]}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"CARLOS SENDAO","author_link":"http:\/\/osteopathe-sendao.fr\/index.php\/author\/admin6775\/"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":"\ud83d\udcdd Calculateur de l\u2019indice PRAL 1. Prot\u00e9ines animales Calculer","_links":{"self":[{"href":"http:\/\/osteopathe-sendao.fr\/index.php\/wp-json\/wp\/v2\/pages\/748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/osteopathe-sendao.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/osteopathe-sendao.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/osteopathe-sendao.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/osteopathe-sendao.fr\/index.php\/wp-json\/wp\/v2\/comments?post=748"}],"version-history":[{"count":7,"href":"http:\/\/osteopathe-sendao.fr\/index.php\/wp-json\/wp\/v2\/pages\/748\/revisions"}],"predecessor-version":[{"id":756,"href":"http:\/\/osteopathe-sendao.fr\/index.php\/wp-json\/wp\/v2\/pages\/748\/revisions\/756"}],"wp:attachment":[{"href":"http:\/\/osteopathe-sendao.fr\/index.php\/wp-json\/wp\/v2\/media?parent=748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}