{"id":576,"date":"2026-03-26T16:32:37","date_gmt":"2026-03-26T16:32:37","guid":{"rendered":"https:\/\/stadiaorg.com\/?page_id=576"},"modified":"2026-04-03T06:38:13","modified_gmt":"2026-04-03T06:38:13","slug":"curiosity","status":"publish","type":"page","link":"https:\/\/stadiaorg.com\/fr\/curiosity\/","title":{"rendered":"Curiosit\u00e9"},"content":{"rendered":"\n<div style=\"max-width:1100px;margin:40px auto;padding:20px;font-family:Arial;\">\n\n  <h1 style=\"font-size:40px;\">Curiosity<\/h1>\n  <p style=\"color:#555;\">Explore, play\u2026 and discover something unexpected.<\/p>\n\n  <!-- DAILY -->\n  <div style=\"margin-top:30px;\">\n    <h2>\ud83c\udf0d Daily Curiosity<\/h2>\n    <p id=\"curiosity\" style=\"font-size:18px;line-height:1.6;color:#222;\">Loading&#8230;<\/p>\n    <button onclick=\"nextC()\">Next<\/button>\n  <\/div>\n\n  <!-- MEMORY -->\n  <div style=\"margin-top:40px;\">\n    <h2>\ud83e\udde0 Memory<\/h2>\n    <div id=\"seq\" style=\"font-size:24px;\"><\/div>\n    <input id=\"memInput\" placeholder=\"Type sequence\">\n    <br><br>\n    <button onclick=\"newSeq()\">New<\/button>\n    <button onclick=\"checkSeq()\">Check<\/button>\n    <p id=\"memRes\"><\/p>\n  <\/div>\n\n  <!-- REACTION -->\n  <div style=\"margin-top:40px;\">\n    <h2>\u26a1 Reaction<\/h2>\n    <div id=\"box\" onclick=\"clickBox()\" style=\"width:200px;height:100px;background:red;color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;\">\n      WAIT\n    <\/div>\n    <br>\n    <button onclick=\"startReact()\">Start<\/button>\n    <p id=\"reactRes\"><\/p>\n  <\/div>\n\n  <!-- QUIZ -->\n  <div style=\"margin-top:40px;\">\n    <h2>\u2753 Quiz<\/h2>\n    <p id=\"q\"><\/p>\n    <div id=\"opts\"><\/div>\n    <p id=\"qRes\"><\/p>\n    <button onclick=\"nextQ()\">Next<\/button>\n  <\/div>\n\n  <!-- CTA -->\n  <div style=\"margin-top:50px;text-align:center;\">\n    <a href=\"\/mind-arena\/\" style=\"background:black;color:white;padding:12px 20px;text-decoration:none;display:inline-block;\">\n      Enter the Mind Arena\n    <\/a>\n  <\/div>\n\n<\/div>\n\n<script>\n  \/* =========================\n     LIVE CURIOSITY FROM INTERNET\n     ========================= *\/\n\n  const fallbackFacts = [\n    \"Did you know? An octopus has 3 hearts.\",\n    \"Most people don\u2019t know this: honey never spoils.\",\n    \"Unexpected: bananas are berries, but strawberries aren\u2019t.\",\n    \"Hard to believe: sharks existed before trees.\",\n    \"Your brain uses about 20% of your body\u2019s energy.\"\n  ];\n\n  let loadingCuriosity = false;\n\n  async function fetchCuriosity() {\n    const el = document.getElementById(\"curiosity\");\n    el.innerText = \"Loading a fresh curiosity...\";\n\n    try {\n      const res = await fetch(\"https:\/\/uselessfacts.jsph.pl\/api\/v2\/facts\/random?language=en\", {\n        headers: {\n          \"Accept\": \"application\/json\"\n        }\n      });\n\n      if (!res.ok) throw new Error(\"API error\");\n\n      const data = await res.json();\n      let fact = (data.text || \"\").trim();\n\n      if (!fact) throw new Error(\"Empty fact\");\n\n      fact = cleanFact(fact);\n      fact = makeFactMoreAttractive(fact);\n\n      el.innerText = fact;\n    } catch (e) {\n      const fallback = fallbackFacts[Math.floor(Math.random() * fallbackFacts.length)];\n      el.innerText = fallback;\n    }\n  }\n\n  function cleanFact(text) {\n    return text\n      .replace(\/\\s+\/g, \" \")\n      .replace(\/\\u2019\/g, \"'\")\n      .trim();\n  }\n\n  function makeFactMoreAttractive(text) {\n    const starters = [\n      \"Did you know? \",\n      \"Unexpected: \",\n      \"Most people don\u2019t know this: \",\n      \"Curious fact: \",\n      \"Believe it or not: \"\n    ];\n\n    const starter = starters[Math.floor(Math.random() * starters.length)];\n\n    \/\/ Evita doppio punto finale\n    text = text.replace(\/\\.+$\/, \"\");\n    return starter + text + \".\";\n  }\n\n  async function nextC() {\n    if (loadingCuriosity) return;\n    loadingCuriosity = true;\n    await fetchCuriosity();\n    loadingCuriosity = false;\n  }\n\n  nextC();\n\n  \/* =========================\n     MEMORY\n     ========================= *\/\n\n  let seq = \"\";\n\n  function newSeq() {\n    seq = \"\";\n    for (let i = 0; i < 5; i++) {\n      seq += Math.floor(Math.random() * 10);\n    }\n    document.getElementById(\"seq\").innerText = seq;\n    document.getElementById(\"memRes\").innerText = \"\";\n    document.getElementById(\"memInput\").value = \"\";\n  }\n\n  function checkSeq() {\n    let v = document.getElementById(\"memInput\").value;\n    document.getElementById(\"memRes\").innerText = (v === seq) ? \"Correct\" : \"Wrong\";\n  }\n\n  \/* =========================\n     REACTION\n     ========================= *\/\n\n  let ready = false;\n  let start = 0;\n  let timeoutId = null;\n\n  function startReact() {\n    ready = false;\n    document.getElementById(\"reactRes\").innerText = \"\";\n    document.getElementById(\"box\").style.background = \"red\";\n    document.getElementById(\"box\").innerText = \"WAIT\";\n\n    if (timeoutId) clearTimeout(timeoutId);\n\n    timeoutId = setTimeout(() => {\n      ready = true;\n      start = Date.now();\n      document.getElementById(\"box\").style.background = \"green\";\n      document.getElementById(\"box\").innerText = \"CLICK\";\n    }, 1000 + Math.random() * 2000);\n  }\n\n  function clickBox() {\n    if (!ready) {\n      document.getElementById(\"reactRes\").innerText = \"Too early\";\n      return;\n    }\n\n    let t = Date.now() - start;\n    document.getElementById(\"reactRes\").innerText = t + \" ms\";\n    ready = false;\n    document.getElementById(\"box\").style.background = \"red\";\n    document.getElementById(\"box\").innerText = \"WAIT\";\n  }\n\n  \/* =========================\n     QUIZ\n     ========================= *\/\n\n  let quiz = [\n    { q: \"Capital of Australia?\", o: [\"Sydney\", \"Canberra\", \"Perth\"], a: 1 },\n    { q: \"Symbol Au?\", o: [\"Gold\", \"Silver\", \"Iron\"], a: 0 }\n  ];\n\n  let qi = 0;\n\n  function showQ() {\n    let q = quiz[qi];\n    document.getElementById(\"q\").innerText = q.q;\n    document.getElementById(\"qRes\").innerText = \"\";\n\n    let opts = document.getElementById(\"opts\");\n    opts.innerHTML = \"\";\n\n    q.o.forEach((o, i) => {\n      let b = document.createElement(\"button\");\n      b.innerText = o;\n      b.style.marginRight = \"10px\";\n      b.onclick = () => checkQ(i);\n      opts.appendChild(b);\n    });\n  }\n\n  function checkQ(i) {\n    let q = quiz[qi];\n    document.getElementById(\"qRes\").innerText = (i === q.a) ? \"Correct\" : \"Wrong\";\n  }\n\n  function nextQ() {\n    qi = (qi + 1) % quiz.length;\n    showQ();\n  }\n\n  showQ();\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Curiosit\u00e9 Explorez, jouez\u2026 et d\u00e9couvrez quelque chose d'inattendu. \ud83c\udf0d Curiosit\u00e9 quotidienne en cours de chargement\u2026 Suivant \ud83e\udde0 M\u00e9moire Nouveau V\u00e9rifier \u26a1 R\u00e9action ATTENDRE D\u00e9marrer \u2753 Quiz Suivant Entrez dans l'Ar\u00e8ne Mentale<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-576","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/stadiaorg.com\/fr\/wp-json\/wp\/v2\/pages\/576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stadiaorg.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/stadiaorg.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/stadiaorg.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stadiaorg.com\/fr\/wp-json\/wp\/v2\/comments?post=576"}],"version-history":[{"count":8,"href":"https:\/\/stadiaorg.com\/fr\/wp-json\/wp\/v2\/pages\/576\/revisions"}],"predecessor-version":[{"id":708,"href":"https:\/\/stadiaorg.com\/fr\/wp-json\/wp\/v2\/pages\/576\/revisions\/708"}],"wp:attachment":[{"href":"https:\/\/stadiaorg.com\/fr\/wp-json\/wp\/v2\/media?parent=576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}