{"id":4402,"date":"2025-06-30T08:54:28","date_gmt":"2025-06-30T13:54:28","guid":{"rendered":"https:\/\/madlysane.com\/?page_id=4402"},"modified":"2025-07-08T17:26:31","modified_gmt":"2025-07-08T22:26:31","slug":"mini-assessment-quiz","status":"publish","type":"page","link":"https:\/\/madlysane.site\/en\/mini-assessment-quiz\/","title":{"rendered":"Mini-Assessment Quiz"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\" \/>\n  <title>MadlySane Mini-Assessment<\/title>\n  <script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jspdf\/2.5.1\/jspdf.umd.min.js\"><\/script>\n  <style>\n    body { font-family: sans-serif; max-width:600px; margin:2rem auto; }\n    .question { margin:1.5rem 0; }\n    #word-list { \n      font-weight:bold; margin:.5rem 0; font-size:1.1rem;\n      transition: opacity .3s ease;\n    }\n    #word-list.hidden { display:none; }       \/* simpler hide *\/\n    .result { border-top:2px solid #ddd; padding-top:1rem; display:none; }\n    .btn { background:#d33; color:#fff; padding:.6rem 1.2rem; border:none;\n           border-radius:4px; cursor:pointer; text-decoration:none; }\n    .btn:disabled { opacity:.5; cursor:default; }\n  <\/style>\n<\/head>\n<body>\n\n  <h1>Mini-Assessment Quiz<\/h1>\n  <p>Answer these 5 quick items to get your free \u201cPreliminary Profile.\u201d<\/p>\n\n  <form id=\"quiz-form\">\n    <div class=\"question\">\n      <label>1) Memory Recall: You\u2019ll see 4 words for 5 seconds\u2014what was the third?<\/label>\n      <div id=\"word-list\">Apple, River, Tiger, Candle<\/div>\n      <input type=\"text\" id=\"q1\" placeholder=\"Your answer\u2026 (e.g. Tiger)\" required\/>\n    <\/div>\n    <!-- ... other questions unchanged ... -->\n    <div class=\"question\">\n      <label>2) Attention: Which number is missing? 2, 4, __, 8, 10<\/label>\n      <input type=\"number\" id=\"q2\" required\/>\n    <\/div>\n    <div class=\"question\">\n      <label>3) Processing Speed: What is 7 \u00d7 6?<\/label>\n      <input type=\"number\" id=\"q3\" required\/>\n    <\/div>\n    <div class=\"question\">\n      <label>4) Learning Style:<\/label>\n      <label><input type=\"radio\" name=\"q4\" value=\"Visual\" required\/> Visual<\/label>\n      <label><input type=\"radio\" name=\"q4\" value=\"Auditory\"\/> Auditory<\/label>\n      <label><input type=\"radio\" name=\"q4\" value=\"Kinesthetic\"\/> Kinesthetic<\/label>\n    <\/div>\n    <div class=\"question\">\n      <label>5) Focus Rating (1\u20135):<\/label>\n      <select id=\"q5\" required>\n        <option value=\"\">\u2013 Select \u2013<\/option>\n        <option value=\"5\">5 Excellent<\/option>\n        <option value=\"4\">4 Good<\/option>\n        <option value=\"3\">3 Average<\/option>\n        <option value=\"2\">2 Below avg.<\/option>\n        <option value=\"1\">1 Poor<\/option>\n      <\/select>\n    <\/div>\n\n    <button type=\"submit\" class=\"btn\">See My Profile \u2192<\/button>\n  <\/form>\n\n  <div id=\"result\" class=\"result\">\n    <h2>Your Preliminary Profile<\/h2>\n    <p><strong>Strengths:<\/strong> <span id=\"res-strengths\"><\/span><\/p>\n    <p><strong>Areas to Monitor:<\/strong> <span id=\"res-weaknesses\"><\/span><\/p>\n    <p><strong>Next Steps:<\/strong> <span id=\"res-next\"><\/span><\/p>\n    <button id=\"download-pdf\" class=\"btn\" disabled>Download PDF<\/button>\n    <a href=\"https:\/\/madlysane.site\/en\/personalized-assessment-services\/\" style=\"margin-left:1rem;\">\n      Book $79 Diagnostic\n    <\/a>\n  <\/div>\n\n  <script>\n  document.addEventListener('DOMContentLoaded', () => {\n    \/\/ 1) Hide the word list after 5 seconds\n    const wordList = document.getElementById('word-list');\n    setTimeout(() => wordList.classList.add('hidden'), 5000);\n\n    \/\/ 2) Quiz logic\n    const form = document.getElementById('quiz-form');\n    const resultDiv = document.getElementById('result');\n    const strengthsEl = document.getElementById('res-strengths');\n    const weaknessesEl = document.getElementById('res-weaknesses');\n    const nextEl = document.getElementById('res-next');\n    const downloadBtn = document.getElementById('download-pdf');\n\n    form.addEventListener('submit', e => {\n      e.preventDefault();\n      \/\/ Collect & evaluate answers\n      const a1 = document.getElementById('q1').value.trim().toLowerCase() === 'tiger';\n      const a2 = +document.getElementById('q2').value === 6;\n      const a3 = +document.getElementById('q3').value === 42;\n      const a4 = document.querySelector('input[name=\"q4\"]:checked').value;\n      const a5 = +document.getElementById('q5').value;\n\n      \/\/ Build profile\n      const correctCount = [a1,a2,a3].filter(v=>v).length;\n      let strengths = [], weaknesses = [], nextSteps = [];\n\n      correctCount >= 2\n        ? strengths.push('Good working memory & processing speed.')\n        : weaknesses.push('Memory or speed may need work.');\n\n      a5 >=4\n        ? strengths.push('Strong self-reported focus.')\n        : weaknesses.push('Consider focus-building strategies.');\n\n      strengths.push(`Preferred learning style: ${a4}.`);\n      nextSteps.push('Book a full evaluation for tailored strategies.');\n\n      strengthsEl.textContent   = strengths.join(' ');\n      weaknessesEl.textContent  = weaknesses.join(' ') || 'None flagged';\n      nextEl.textContent        = nextSteps.join(' ');\n\n      resultDiv.style.display   = 'block';\n      downloadBtn.disabled      = false;\n      resultDiv.scrollIntoView({ behavior: 'smooth' });\n    });\n\n    \/\/ 3) PDF download\n    downloadBtn.addEventListener('click', () => {\n      const { jsPDF } = window.jspdf;\n      const doc = new jsPDF();\n      doc.setFontSize(16);\n      doc.text('MadlySane Preliminary Profile', 20, 20);\n      doc.setFontSize(12);\n      doc.text(`Date: ${new Date().toLocaleString()}`, 20, 30);\n      doc.text('Strengths:', 20, 45);\n      doc.text(strengthsEl.textContent, 30, 55, { maxWidth:150 });\n      doc.text('Areas to Monitor:', 20, 75);\n      doc.text(weaknessesEl.textContent, 30, 85, { maxWidth:150 });\n      doc.text('Next Steps:', 20, 105);\n      doc.text(nextEl.textContent, 30, 115, { maxWidth:150 });\n\n      \/\/ Add link manually\n      doc.setTextColor(0,0,255);\n      doc.text('Book your $79 Diagnostic Consult:', 20, 140);\n      doc.text('madlysane.com\/book-diagnostic', 20, 150);\n      doc.save('MadlySane-PrelimProfile.pdf');\n    });\n  });\n  <\/script>\n<style>\n  \/* Popup Overlay *\/\n  #joinOverlay {\n    position: fixed;\n    top: 0; left: 0;\n    width: 100%; height: 100%;\n    display: none;\n    align-items: center;\n    justify-content: center;\n    backdrop-filter: blur(6px);\n    background: rgba(0, 0, 0, 0.5);\n    z-index: 9999;\n  }\n  #joinPopup {\n    background: #fff;\n    padding: 30px;\n    border-radius: 10px;\n    text-align: center;\n    max-width: 400px;\n    width: 90%;\n    box-shadow: 0 0 20px rgba(0,0,0,0.3);\n  }\n  #joinPopup h2 {\n    margin: 0 0 10px;\n    font-size: 24px;\n    color: #333;\n  }\n  #joinPopup p {\n    font-size: 16px;\n    color: #555;\n    margin: 0 0 20px;\n  }\n  #joinPopup button {\n    display: block;\n    width: 100%;\n    margin: 5px 0;\n    padding: 12px;\n    font-size: 16px;\n    border: none;\n    border-radius: 5px;\n    cursor: pointer;\n  }\n  #joinNow {\n    background-color: #6a1b9a;\n    color: #fff;\n  }\n  #closePopup {\n    background: none;\n    color: #999;\n  }\n<\/style>\n\n<div id=\"joinOverlay\" role=\"dialog\" aria-modal=\"true\">\n  <div id=\"joinPopup\" aria-labelledby=\"joinTitle\" aria-describedby=\"joinDesc\">\n    <h2 id=\"joinTitle\">Join to Access<\/h2>\n    <p id=\"joinDesc\">\n      Become part of the MadlySane community to view this content \u2014 a space built with you in mind.\n    <\/p>\n    <button id=\"joinNow\">Join Now<\/button>\n  <\/div>\n<\/div>\n\n<script>\n  document.addEventListener('DOMContentLoaded', function() {\n    \/\/ 1) Skip popup if user is logged in (WP adds 'logged-in' class to <body>)\n    if ( document.body.classList.contains('logged-in') ) {\n      return;\n    }\n\n    \/\/ 2) Show the overlay\n    var overlay = document.getElementById('joinOverlay');\n    overlay.style.display = 'flex';\n\n    \/\/ 3) \"Join Now\" action\n    document.getElementById('joinNow').addEventListener('click', function() {\n      window.location.href = 'https:\/\/madlysane.site\/en\/306-2\/';\n    });\n\n    \/\/ 4) \"Maybe Later\" hides the popup\n    document.getElementById('closePopup').addEventListener('click', function() {\n      overlay.style.display = 'none';\n    });\n  });\n<\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>MadlySane Mini-Assessment Mini-Assessment Quiz Answer these 5 quick items to get your free \u201cPreliminary Profile.\u201d 1) Memory Recall: You\u2019ll see 4 words for 5 seconds\u2014what was the third? Apple, River, Tiger, Candle 2) Attention: Which number is missing? 2, 4, __, 8, 10 3) Processing Speed: What is 7 \u00d7 6? 4) Learning Style: Visual [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-4402","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/pages\/4402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/comments?post=4402"}],"version-history":[{"count":5,"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/pages\/4402\/revisions"}],"predecessor-version":[{"id":4650,"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/pages\/4402\/revisions\/4650"}],"wp:attachment":[{"href":"https:\/\/madlysane.site\/en\/wp-json\/wp\/v2\/media?parent=4402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}