{"id":4198,"date":"2025-06-12T07:30:57","date_gmt":"2025-06-12T11:30:57","guid":{"rendered":"https:\/\/www.optionspa.com\/?page_id=4198"},"modified":"2025-06-25T08:32:55","modified_gmt":"2025-06-25T12:32:55","slug":"quiz","status":"publish","type":"page","link":"https:\/\/brandingpioneers.co.in\/option-wordpress-web\/quiz\/","title":{"rendered":"Quiz"},"content":{"rendered":"<p>        <!-- Header -->                    <\/p>\n<h1>Mental Health Assessment<\/h1>\n<p>Take a moment to check in with yourself. This brief assessment can help you                understand if professional support might be beneficial.<\/p>\n<p>                <!-- Progress Bar -->                                                            Question 1 of 6                <!-- Quiz Questions -->                    <!-- Question 1 -->                                                <\/p>\n<h3>Have you been diagnosed with depression?<\/h3>\n<p>                                            Yes                        No                        I&#8217;m unsure                                                                        Previous                    Next                                        <!-- Question 2 -->                                                <\/p>\n<h3>Have you seen a therapist for your symptoms of depression?<\/h3>\n<p>                                            Yes, I am seeing someone                        Yes, but not recently                        No                                                                        Previous                    Next                                        <!-- Question 3 -->                                                <\/p>\n<h3>Have you taken medication for your symptoms of depression?<\/h3>\n<p>                                            Yes, I am taking something                        I have done so in the past                        No                                                                        Previous                    Next                                        <!-- Question 4 -->                                                <\/p>\n<h3>Are you still depressed despite your medication and\/or therapy?<\/h3>\n<p>                                            Yes                        No                        Sometimes                                                                        Previous                    Next                                        <!-- Question 5 -->                                                <\/p>\n<h3>Have you experienced negative side effects from medication?<\/h3>\n<p>                                            Yes, significantly                        Occasionally                        No                                                                        Previous                    Next                                        <!-- Question 6 -->                                                <\/p>\n<h3>Are depression symptoms having an effect on your ability to earn a                        living, enjoy leisure activities, or spend time with family and friends?<\/h3>\n<p>                                            Yes                        Some days                        Occasionally                                                                        Previous                    View Results                                            <!-- Results Section -->                                    <!-- Results will be populated by JavaScript -->                        <!-- Contact Form -->                            <\/p>\n<h3>Get Connected<\/h3>\n<p>Please share your details so we can provide you with appropriate resources                    and support.<\/p>\n<p>                                    <!-- Hidden fields for quiz results -->                                                            <!-- Individual question answers -->                                                                                                                                            <!-- Summary counts -->                                                                                                        Full Name *                                                                                        Email Address *                                                                                        Phone Number                                                                                        Additional Information (Optional)                                                                                                   I consent to be contacted. My information will be used only for clinic communication.                                     Submit Assessment                                         [tcb-script]        \/\/ Mental Health Quiz JavaScript        (function () {            &#8216;use strict&#8217;;            const MHQ = {                currentQuestion: 0,                totalQuestions: 6,                answers: [],                elements: {                    progressFill: document.getElementById(&#8216;mhq-progress-fill&#8217;),                    progressText: document.getElementById(&#8216;mhq-progress-text&#8217;),                    quizContainer: document.getElementById(&#8216;mhq-quiz-container&#8217;),                    resultsSection: document.getElementById(&#8216;mhq-results-section&#8217;),                    resultCard: document.getElementById(&#8216;mhq-result-card&#8217;),                    contactForm: document.getElementById(&#8216;mhq-contact-form&#8217;),                    quizResultInput: document.getElementById(&#8216;mhq-quiz-result-input&#8217;),                    quizAnswersInput: document.getElementById(&#8216;mhq-quiz-answers-input&#8217;)                },                init: function () {                    this.bindEvents();                    this.updateProgress();                },                bindEvents: function () {                    \/\/ Option selection                    document.addEventListener(&#8216;click&#8217;, (e) =&gt; {                        if (e.target.classList.contains(&#8216;mhq-option&#8217;)) {                            this.selectOption(e.target);                        }                    });                    \/\/ Navigation buttons                    document.addEventListener(&#8216;click&#8217;, (e) =&gt; {                        if (e.target.id === &#8216;mhq-next-btn&#8217;) {                            this.nextQuestion();                        } else if (e.target.id === &#8216;mhq-prev-btn&#8217;) {                            this.prevQuestion();                        } else if (e.target.id === &#8216;mhq-finish-btn&#8217;) {                            this.showResults();                        }                    });                    \/\/ Form submission                    this.elements.contactForm.addEventListener(&#8216;submit&#8217;, (e) =&gt; {                        this.handleFormSubmit(e);                    });                },                selectOption: function (selectedOption) {                    const questionSection = selectedOption.closest(&#8216;.mhq-question-section&#8217;);                    const options = questionSection.querySelectorAll(&#8216;.mhq-option&#8217;);                    const nextBtn = questionSection.querySelector(&#8216;#mhq-next-btn, #mhq-finish-btn&#8217;);                    \/\/ Remove previous selection                    options.forEach(option =&gt; option.classList.remove(&#8216;mhq-selected&#8217;));                    \/\/ Add selection to clicked option                    selectedOption.classList.add(&#8216;mhq-selected&#8217;);                    \/\/ Store answer                    this.answers[this.currentQuestion] = selectedOption.dataset.value;                    \/\/ Enable next button                    nextBtn.disabled = false;                },                nextQuestion: function () {                    if (this.currentQuestion &lt; this.totalQuestions &#8211; 1) {                        this.hideCurrentQuestion();                        this.currentQuestion++;                        this.showCurrentQuestion();                        this.updateProgress();                    }                },                prevQuestion: function () {                    if (this.currentQuestion &gt; 0) {                        this.hideCurrentQuestion();                        this.currentQuestion&#8211;;                        this.showCurrentQuestion();                        this.updateProgress();                    }                },                hideCurrentQuestion: function () {                    const current = document.querySelector(&#8216;.mhq-question-section.mhq-active&#8217;);                    if (current) {                        current.classList.remove(&#8216;mhq-active&#8217;);                    }                },                showCurrentQuestion: function () {                    const next = document.querySelector(`[data-question=&#8221;${this.currentQuestion}&#8221;]`);                    if (next) {                        next.classList.add(&#8216;mhq-active&#8217;);                        \/\/ Update button states                        const prevBtn = next.querySelector(&#8216;#mhq-prev-btn&#8217;);                        const nextBtn = next.querySelector(&#8216;#mhq-next-btn, #mhq-finish-btn&#8217;);                        prevBtn.disabled = this.currentQuestion === 0;                        nextBtn.disabled = !this.answers[this.currentQuestion];                    }                },                updateProgress: function () {                    const progress = ((this.currentQuestion + 1) \/ this.totalQuestions) * 100;                    this.elements.progressFill.style.width = `${progress}%`;                    this.elements.progressText.textContent = `Question ${this.currentQuestion + 1} of ${this.totalQuestions}`;                },                showResults: function () {                    this.elements.quizContainer.style.display = &#8216;none&#8217;;                    this.elements.resultsSection.classList.add(&#8216;mhq-active&#8217;);                    const result = this.calculateResult();                    this.displayResult(result);                    this.prepareFormData(result);                },                calculateResult: function () {                    const counts = { positive: 0, negative: 0, neutral: 0 };                    \/\/ Count based on new answer patterns                    this.answers.forEach((answer, index) =&gt; {                        \/\/ Question-specific scoring logic                        switch (index) {                            case 0: \/\/ Diagnosed with depression                                if (answer === &#8216;yes&#8217;) counts.positive++;                                else if (answer === &#8216;no&#8217;) counts.negative++;                                else counts.neutral++;                                break;                            case 1: \/\/ Seen therapist                                if (answer === &#8216;yes-current&#8217;) counts.negative++;                                else if (answer === &#8216;yes-past&#8217;) counts.neutral++;                                else counts.positive++;                                break;                            case 2: \/\/ Medication                                if (answer === &#8216;yes-current&#8217;) counts.negative++;                                else if (answer === &#8216;yes-past&#8217;) counts.neutral++;                                else counts.positive++;                                break;                            case 3: \/\/ Still depressed                                if (answer === &#8216;yes&#8217;) counts.positive++;                                else if (answer === &#8216;no&#8217;) counts.negative++;                                else counts.neutral++;                                break;                            case 4: \/\/ Side effects                                if (answer === &#8216;yes-significant&#8217;) counts.positive++;                                else if (answer === &#8216;occasionally&#8217;) counts.neutral++;                                else counts.negative++;                                break;                            case 5: \/\/ Impact on life                                if (answer === &#8216;yes&#8217;) counts.positive++;                                else if (answer === &#8216;some-days&#8217;) counts.neutral++;                                else counts.negative++;                                break;                        }                    });                    if (counts.positive &gt;= 3) {                        return {                            type: &#8216;consultation-recommended&#8217;,                            icon: &#8216;\ud83e\udd17&#8217;,                            title: &#8216;Professional Support Recommended&#8217;,                            description: &#8216;Based on your responses, speaking with a mental health professional could be very beneficial. You&#8217;re not alone, and seeking support is a sign of strength. Professional guidance can help you develop effective coping strategies and improve your overall well-being.&#8217;,                            class: &#8216;mhq-consultation-recommended&#8217;,                            counts: counts                        };                    } else if (counts.negative &gt;= 4) {                        return {                            type: &#8216;consultation-not-needed&#8217;,                            icon: &#8216;\ud83d\ude0a&#8217;,                            title: &#8216;You&#8217;re Managing Well&#8217;,                            description: &#8216;Your responses suggest you&#8217;re managing your mental health well overall. Continue with your current self-care practices and maintain your support networks. Remember, it&#8217;s always okay to reach out if things change or if you ever need someone to talk to.&#8217;,                            class: &#8216;mhq-consultation-not-needed&#8217;,                            counts: counts                        };                    } else {                        return {                            type: &#8216;consultation-optional&#8217;,                            icon: &#8216;\ud83d\udcad&#8217;,                            title: &#8216;Consider Professional Guidance&#8217;,                            description: &#8216;Your responses show a mixed picture. While you may be coping with some challenges, professional support could help you develop additional strategies for managing stress and improving your mental well-being. Consider reaching out when you feel ready.&#8217;,                            class: &#8216;mhq-consultation-optional&#8217;,                            counts: counts                        };                    }                },                displayResult: function (result) {                    this.elements.resultCard.innerHTML = `                        &lt;div&gt;${result.icon}&lt;\/div&gt;                        &lt;h3&gt;${result.title}&lt;\/h3&gt;                        &lt;p&gt;${result.description}&lt;\/p&gt;                    `;                },                prepareFormData: function (result) {                    \/\/ Set overall result                    this.elements.quizResultInput.value = result.type;                    \/\/ Set JSON array of all answers                    this.elements.quizAnswersInput.value = JSON.stringify(this.answers);                    \/\/ Set individual question answers                    for (let i = 0; i &lt; this.answers.length; i++) {                        const questionInput = document.getElementById(`mhq-question-${i + 1}-answer`);                        if (questionInput) {                            questionInput.value = this.answers[i] || &#8221;;                        }                    }                    \/\/ Set answer counts                    document.getElementById(&#8216;mhq-positive-count&#8217;).value = result.counts.positive;                    document.getElementById(&#8216;mhq-negative-count&#8217;).value = result.counts.negative;                    document.getElementById(&#8216;mhq-neutral-count&#8217;).value = result.counts.neutral;                },                handleFormSubmit: function (e) {                    \/\/ Form will submit normally to the action URL                    \/\/ You can add additional validation or processing here if needed                    \/\/ Optional: Show loading state                    const submitBtn = e.target.querySelector(&#8216;.mhq-submit-btn&#8217;);                    submitBtn.textContent = &#8216;Submitting&#8230;&#8217;;                    submitBtn.disabled = true;                }            };            \/\/ Initialize the quiz when DOM is loaded            if (document.readyState === &#8216;loading&#8217;) {                document.addEventListener(&#8216;DOMContentLoaded&#8217;, () =&gt; MHQ.init());            } else {                MHQ.init();            }            \/\/ Expose MHQ object globally for debugging (optional)            window.MHQ = MHQ;        })();    [\/tcb-script]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mental Health Assessment Take a moment to check in with yourself. This brief assessment can help you understand if professional support might be beneficial. Question 1 of 6 Have you been diagnosed with depression? Yes No I&#8217;m unsure Previous Next Have you seen a therapist for your symptoms of depression? Yes, I am seeing someone [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-4198","page","type-page","status-publish","hentry","post-wrapper","thrv_wrapper"],"acf":[],"_links":{"self":[{"href":"https:\/\/brandingpioneers.co.in\/option-wordpress-web\/wp-json\/wp\/v2\/pages\/4198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brandingpioneers.co.in\/option-wordpress-web\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/brandingpioneers.co.in\/option-wordpress-web\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/brandingpioneers.co.in\/option-wordpress-web\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/brandingpioneers.co.in\/option-wordpress-web\/wp-json\/wp\/v2\/comments?post=4198"}],"version-history":[{"count":26,"href":"https:\/\/brandingpioneers.co.in\/option-wordpress-web\/wp-json\/wp\/v2\/pages\/4198\/revisions"}],"predecessor-version":[{"id":4297,"href":"https:\/\/brandingpioneers.co.in\/option-wordpress-web\/wp-json\/wp\/v2\/pages\/4198\/revisions\/4297"}],"wp:attachment":[{"href":"https:\/\/brandingpioneers.co.in\/option-wordpress-web\/wp-json\/wp\/v2\/media?parent=4198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}