{"id":4018,"date":"2026-07-08T05:05:32","date_gmt":"2026-07-08T05:05:32","guid":{"rendered":"https:\/\/withifi.muhubonurture.nl\/?page_id=4018"},"modified":"2026-08-31T04:34:55","modified_gmt":"2026-08-31T04:34:55","slug":"with-ifi-brain-v1","status":"publish","type":"page","link":"https:\/\/withifi.muhubonurture.nl\/?page_id=4018","title":{"rendered":"With Ifi Brain v1"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"4018\" class=\"elementor elementor-4018\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6fb7561 e-flex e-con-boxed e-con e-parent\" data-id=\"6fb7561\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-51b9a4a elementor-widget elementor-widget-html\" data-id=\"51b9a4a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<section id=\"with-ifi-brain-page\">\r\n<style>\r\n#with-ifi-brain-page{\r\n  min-height:100vh;\r\n  padding:6rem 6vw;\r\n  font-family:'Nunito', Arial, sans-serif;\r\n  color:#3B2A22;\r\n  background:linear-gradient(135deg,#F4FBFF,#EAF7F1,#F8FFF9);\r\n}\r\n#with-ifi-brain-page *{box-sizing:border-box;}\r\n#with-ifi-brain-page .wrap{max-width:1100px;margin:0 auto;}\r\n#with-ifi-brain-page .card{\r\n  background:rgba(255,255,255,.78);\r\n  border-radius:38px;\r\n  padding:42px;\r\n  margin-bottom:28px;\r\n  box-shadow:0 18px 42px rgba(90,120,110,.10);\r\n}\r\n#with-ifi-brain-page h1{\r\n  font-size:clamp(38px,5vw,66px);\r\n  margin:0 0 18px;\r\n}\r\n#with-ifi-brain-page h2{margin:0 0 15px;}\r\n#with-ifi-brain-page p{\r\n  font-size:20px;\r\n  line-height:1.7;\r\n  color:#6F5648;\r\n  font-weight:700;\r\n}\r\n#with-ifi-brain-page .grid{\r\n  display:grid;\r\n  grid-template-columns:repeat(3,1fr);\r\n  gap:20px;\r\n}\r\n#with-ifi-brain-page .tile{\r\n  background:white;\r\n  border-radius:28px;\r\n  padding:24px;\r\n  border:2px solid #EAF7F1;\r\n}\r\n#with-ifi-brain-page .tile strong{\r\n  display:block;\r\n  font-size:24px;\r\n  margin-top:8px;\r\n}\r\n#with-ifi-brain-page .pill{\r\n  display:inline-block;\r\n  padding:9px 15px;\r\n  border-radius:999px;\r\n  background:#EAF7F1;\r\n  font-weight:900;\r\n  margin:4px;\r\n}\r\n#with-ifi-brain-page .btn{\r\n  display:inline-block;\r\n  margin-top:18px;\r\n  padding:16px 30px;\r\n  border-radius:999px;\r\n  background:#9FCFBE;\r\n  color:#3B2A22!important;\r\n  font-weight:950;\r\n  text-decoration:none!important;\r\n}\r\n@media(max-width:900px){\r\n  #with-ifi-brain-page .grid{grid-template-columns:1fr;}\r\n}\r\n<\/style>\r\n\r\n<div class=\"wrap\">\r\n\r\n  <div class=\"card\">\r\n    <h1>\ud83e\udde0 With Ifi Brain v1<\/h1>\r\n    <p>\r\n      Deze pagina controleert of profiel, leerstijl, startniveau en oefenadvies goed worden gelezen.\r\n    <\/p>\r\n  <\/div>\r\n\r\n  <div class=\"card\">\r\n    <h2>\ud83d\udc64 Actief profiel<\/h2>\r\n    <div class=\"grid\">\r\n      <div class=\"tile\">\r\n        Naam\r\n        <strong id=\"brainName\">-<\/strong>\r\n      <\/div>\r\n      <div class=\"tile\">\r\n        Groep\r\n        <strong id=\"brainGroup\">-<\/strong>\r\n      <\/div>\r\n      <div class=\"tile\">\r\n        Leerstijl\r\n        <div id=\"brainStyles\">-<\/div>\r\n      <\/div>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"card\">\r\n    <h2>\ud83d\udcca Startniveau per wereld<\/h2>\r\n    <div class=\"grid\">\r\n      <div class=\"tile\">\r\n        \ud83d\udcda Taalwereld\r\n        <strong id=\"brainTaal\">Nog niet gemeten<\/strong>\r\n      <\/div>\r\n      <div class=\"tile\">\r\n        \ud83d\udd22 Getallenwereld\r\n        <strong id=\"brainGetallen\">Nog niet gemeten<\/strong>\r\n      <\/div>\r\n      <div class=\"tile\">\r\n        \ud83d\udcd6 Woordenwereld\r\n        <strong id=\"brainWoorden\">Nog niet gemeten<\/strong>\r\n      <\/div>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"card\">\r\n    <h2>\u2728 Oefenadvies<\/h2>\r\n    <p id=\"brainAdvice\">Brain kijkt nog even...<\/p>\r\n    <a class=\"btn\" id=\"brainStartBtn\" href=\"https:\/\/withifi.muhubonurture.nl\/?page_id=3942\">\r\n      \ud83c\udf3f Startniveau Check doen\r\n    <\/a>\r\n  <\/div>\r\n\r\n<\/div>\r\n\r\n<script>\r\n(function(){\r\n  const PROFILE_KEY = \"withIfiChildProfile\";\r\n  const ASSESSMENT_KEY = \"withIfiAssessmentFull\";\r\n\r\n  const LINKS = {\r\n    taalwereld:\"https:\/\/withifi.muhubonurture.nl\/taalwereld\/\",\r\n    getallenwereld:\"https:\/\/withifi.muhubonurture.nl\/getallenwereld\/\",\r\n    woordenwereld:\"https:\/\/withifi.muhubonurture.nl\/woordenwereld\/\"\r\n  };\r\n\r\n  function getProfile(){\r\n    try{\r\n      return JSON.parse(localStorage.getItem(PROFILE_KEY)) || {};\r\n    }catch(e){\r\n      return {};\r\n    }\r\n  }\r\n\r\n  function getAssessment(){\r\n    const profile = getProfile();\r\n\r\n    if(profile.fullAssessment){\r\n      return profile.fullAssessment;\r\n    }\r\n\r\n    try{\r\n      return JSON.parse(localStorage.getItem(ASSESSMENT_KEY));\r\n    }catch(e){\r\n      return null;\r\n    }\r\n  }\r\n\r\n  function getLearningStyles(){\r\n    const profile = getProfile();\r\n    const styles = profile.learningStyle || [];\r\n    return Array.isArray(styles) ? styles : [styles];\r\n  }\r\n\r\n  function getWorld(worldName){\r\n    const assessment = getAssessment();\r\n\r\n    if(!assessment || !assessment.worlds){\r\n      return null;\r\n    }\r\n\r\n    return assessment.worlds[worldName] || null;\r\n  }\r\n\r\n  function getTopicLevel(worldName, topicName){\r\n    const world = getWorld(worldName);\r\n\r\n    if(!world || !world.topics || !world.topics[topicName]){\r\n      return getChildGroup();\r\n    }\r\n\r\n    return world.topics[topicName].estimatedGroup || getChildGroup();\r\n  }\r\n\r\n  function getChildGroup(){\r\n    const profile = getProfile();\r\n    const match = String(profile.group || \"\").match(\/\\d+\/);\r\n    return match ? Number(match[0]) : 3;\r\n  }\r\n\r\n  function getRecommendedLesson(){\r\n    const assessment = getAssessment();\r\n\r\n    if(!assessment || !assessment.worlds){\r\n      return null;\r\n    }\r\n\r\n    let best = null;\r\n\r\n    Object.keys(assessment.worlds).forEach(function(worldName){\r\n      const world = assessment.worlds[worldName];\r\n      if(!world || !world.weakestTopic) return;\r\n\r\n      const item = world.weakestTopic;\r\n\r\n      if(\r\n        !best ||\r\n        item.estimatedGroup < best.level ||\r\n        (\r\n          item.estimatedGroup === best.level &&\r\n          item.percentage < best.percentage\r\n        )\r\n      ){\r\n        best = {\r\n          world:worldName,\r\n          topic:item.topic,\r\n          level:item.estimatedGroup,\r\n          percentage:item.percentage,\r\n          status:item.status,\r\n          link:LINKS[worldName] || \"https:\/\/withifi.muhubonurture.nl\/?page_id=3892\"\r\n        };\r\n      }\r\n    });\r\n\r\n    return best;\r\n  }\r\n\r\n  function getExerciseSettings(worldName, topicName){\r\n    const styles = getLearningStyles();\r\n    const level = getTopicLevel(worldName, topicName);\r\n\r\n    return {\r\n      world:worldName,\r\n      topic:topicName,\r\n      level:level,\r\n      childName:getProfile().name || \"kanjer\",\r\n      childGroup:getChildGroup(),\r\n      learningStyle:styles,\r\n\r\n      calmMode:styles.includes(\"rustig\"),\r\n      visualSupport:styles.includes(\"plaatjes\"),\r\n      extraExplanation:styles.includes(\"uitleg\"),\r\n      challengeMode:styles.includes(\"uitdaging\"),\r\n\r\n      questionCount:styles.includes(\"rustig\") ? 6 : 8,\r\n      hintCount:styles.includes(\"uitleg\") ? 2 : 1,\r\n      answerCount:styles.includes(\"uitdaging\") ? 4 : 3\r\n    };\r\n  }\r\n\r\n  window.WithIfiBrain = {\r\n    getProfile:getProfile,\r\n    getAssessment:getAssessment,\r\n    getWorld:getWorld,\r\n    getTopicLevel:getTopicLevel,\r\n    getRecommendedLesson:getRecommendedLesson,\r\n    getExerciseSettings:getExerciseSettings,\r\n    getLearningStyles:getLearningStyles,\r\n    getChildGroup:getChildGroup\r\n  };\r\n\r\n  function readableStyle(style){\r\n    const map = {\r\n      rustig:\"\ud83c\udf3f Rustig\",\r\n      plaatjes:\"\ud83e\udde9 Met plaatjes\",\r\n      uitleg:\"\ud83d\udcac Extra uitleg\",\r\n      uitdaging:\"\u2b50 Uitdaging\"\r\n    };\r\n    return map[style] || style;\r\n  }\r\n\r\n  function renderPage(){\r\n    const profile = getProfile();\r\n    const assessment = getAssessment();\r\n    const advice = getRecommendedLesson();\r\n\r\n    document.getElementById(\"brainName\").textContent = profile.name || \"Geen profiel\";\r\n    document.getElementById(\"brainGroup\").textContent = profile.group || \"Nog niet bekend\";\r\n\r\n    const styles = getLearningStyles();\r\n\r\n    document.getElementById(\"brainStyles\").innerHTML =\r\n      styles.length\r\n      ? styles.map(function(s){return '<span class=\"pill\">' + readableStyle(s) + '<\/span>';}).join(\"\")\r\n      : \"Nog niet gekozen\";\r\n\r\n    updateWorldText(\"taalwereld\",\"brainTaal\");\r\n    updateWorldText(\"getallenwereld\",\"brainGetallen\");\r\n    updateWorldText(\"woordenwereld\",\"brainWoorden\");\r\n\r\n    const adviceText = document.getElementById(\"brainAdvice\");\r\n    const btn = document.getElementById(\"brainStartBtn\");\r\n\r\n    if(!profile.name){\r\n      adviceText.innerHTML = \"Maak eerst een profiel aan.\";\r\n      btn.href = \"https:\/\/withifi.muhubonurture.nl\/?page_id=3852\";\r\n      btn.textContent = \"\ud83c\udf38 Profiel aanmaken\";\r\n      return;\r\n    }\r\n\r\n    if(!assessment){\r\n      adviceText.innerHTML = \"Doe eerst de Startniveau Check.\";\r\n      btn.href = \"https:\/\/withifi.muhubonurture.nl\/?page_id=3942\";\r\n      btn.textContent = \"\ud83c\udf3f Startniveau Check doen\";\r\n      return;\r\n    }\r\n\r\n    if(advice){\r\n      adviceText.innerHTML =\r\n        \"Vandaag past <strong>\" + advice.topic + \"<\/strong> goed bij jou. \" +\r\n        \"Ifi schat dit rond <strong>groep \" + advice.level + \"<\/strong>.\";\r\n\r\n      btn.href = advice.link;\r\n      btn.textContent = \"Start \" + readableWorld(advice.world);\r\n    }\r\n  }\r\n\r\n  function updateWorldText(worldName, elementId){\r\n    const world = getWorld(worldName);\r\n    const el = document.getElementById(elementId);\r\n\r\n    if(!world){\r\n      el.textContent = \"Nog niet gemeten\";\r\n      return;\r\n    }\r\n\r\n    el.textContent = \"Groep \" + world.averageGroup;\r\n  }\r\n\r\n  function readableWorld(world){\r\n    const map = {\r\n      taalwereld:\"Taalwereld\",\r\n      getallenwereld:\"Getallenwereld\",\r\n      woordenwereld:\"Woordenwereld\"\r\n    };\r\n    return map[world] || world;\r\n  }\r\n\r\n  renderPage();\r\n})();\r\n<\/script>\r\n<\/section>  \t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\ud83e\udde0 With Ifi Brain v1 Deze pagina controleert of profiel, leerstijl, startniveau en oefenadvies goed worden gelezen. \ud83d\udc64 Actief profiel Naam &#8211; Groep &#8211; Leerstijl &#8211; \ud83d\udcca Startniveau per wereld \ud83d\udcda Taalwereld Nog niet gemeten \ud83d\udd22 Getallenwereld Nog niet gemeten \ud83d\udcd6 Woordenwereld Nog niet gemeten \u2728 Oefenadvies Brain kijkt nog even&#8230; \ud83c\udf3f Startniveau Check doen<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-4018","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/withifi.muhubonurture.nl\/index.php?rest_route=\/wp\/v2\/pages\/4018","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/withifi.muhubonurture.nl\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/withifi.muhubonurture.nl\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/withifi.muhubonurture.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/withifi.muhubonurture.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4018"}],"version-history":[{"count":6,"href":"https:\/\/withifi.muhubonurture.nl\/index.php?rest_route=\/wp\/v2\/pages\/4018\/revisions"}],"predecessor-version":[{"id":4647,"href":"https:\/\/withifi.muhubonurture.nl\/index.php?rest_route=\/wp\/v2\/pages\/4018\/revisions\/4647"}],"wp:attachment":[{"href":"https:\/\/withifi.muhubonurture.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}