{"id":4635,"date":"2025-04-07T11:10:15","date_gmt":"2025-04-07T10:10:15","guid":{"rendered":"https:\/\/mitellus.fr\/?p=4635"},"modified":"2025-07-08T01:04:34","modified_gmt":"2025-07-08T00:04:34","slug":"k10-test-2","status":"publish","type":"post","link":"https:\/\/mitellus.fr\/?p=4635","title":{"rendered":"K10 Test"},"content":{"rendered":"\n    <style>\n        .mawk10-radio { \n            padding: 10px 15px; \n            background-color: #f0f0f0; \n            border: 2px solid #ccc; \n            border-radius: 5px; \n            cursor: pointer; \n            text-align: center; \n            min-width: 100px; \n            margin: 5px; \n            display: inline-block; \n            font-size: 16px; \n            touch-action: manipulation; \n            transition: all 0.2s ease; \n        }\n        .mawk10-radio input[type=\"radio\"] { display: none; }\n        .mawk10-radio input[type=\"radio\"]:checked + span { \n            background-color: #007bff; \n            color: white; \n            border-color: #0056b3; \n            display: block; \n            padding: 10px 15px; \n            border-radius: 5px; \n        }\n        .consent-box { margin: 15px 0; }\n        .error-message { color: red; display: none; margin-top: 5px; }\n        .success-message { color: green; font-weight: bold; margin-bottom: 20px; }\n        #mawk10-admin-console { background: #f9f9f9; padding: 20px; margin-bottom: 20px; border: 1px solid #ddd; }\n        #mawk10-admin-console label { display: block; margin: 10px 0; }\n        #mawk10-admin-console button { \n            padding: 10px 15px; \n            margin-right: 10px; \n            font-size: 16px; \n            cursor: pointer; \n            border-radius: 5px; \n        }\n        #language-toggle { \n            padding: 10px 20px; \n            background-color: #007bff; \n            color: white; \n            border: none; \n            border-radius: 5px; \n            cursor: pointer; \n            margin-bottom: 20px; \n        }\n        .rating-scale { \n            margin: 15px 0; \n            line-height: 1.6; \n            text-align: left; \n            white-space: pre-line; \n        }\n    <\/style>\n    <script>\n        function calculateResults(event) {\n            event.preventDefault();\n            event.stopPropagation();\n\n            let results = {};\n            let totalScore = 0;\n            let questions = document.getElementsByClassName('question');\n            let name = document.getElementById('name').value.trim();\n            let email = document.getElementById('email').value.trim();\n            let comment = document.getElementById('comment').value.trim();\n            let gdprConsent = document.getElementById('gdpr-consent').checked;\n            let mentalHealthConsent = document.getElementById('mental-health-consent').checked;\n            let honeypot = document.getElementById('website').value.trim();\n            let uniqueId = document.getElementById('unique_id').value.trim();\n\n            if (!name) { document.getElementById('name-error').style.display = 'block'; return; }\n            else { document.getElementById('name-error').style.display = 'none'; }\n            if (!email || !\/\\S+@\\S+\\.\\S+\/.test(email)) { document.getElementById('email-error').style.display = 'block'; return; }\n            else { document.getElementById('email-error').style.display = 'none'; }\n            if (!gdprConsent) { document.getElementById('gdpr-error').style.display = 'block'; return; }\n            else { document.getElementById('gdpr-error').style.display = 'none'; }\n            if (!mentalHealthConsent) { document.getElementById('health-error').style.display = 'block'; return; }\n            else { document.getElementById('health-error').style.display = 'none'; }\n            if (honeypot) { console.log(\"Spam detected\"); return; }\n\n            let allAnswered = true;\n            for (let i = 0; i < questions.length; i++) {\n                let question = questions[i];\n                let options = question.getElementsByTagName('input');\n                let answered = false;\n                for (let j = 0; j < options.length; j++) {\n                    if (options[j].checked) {\n                        let value = parseInt(options[j].value);\n                        results['Q' + (i + 1)] = value;\n                        totalScore += value;\n                        answered = true;\n                        break;\n                    }\n                }\n                if (!answered) { allAnswered = false; }\n            }\n            if (!allAnswered) { document.getElementById('question-error').style.display = 'block'; return; }\n            else { document.getElementById('question-error').style.display = 'none'; }\n\n            document.getElementById('resultsInput').value = JSON.stringify(results);\n            document.getElementById('totalScoreInput').value = totalScore;\n            document.getElementById('nameInput').value = name;\n            document.getElementById('emailInput').value = email;\n            document.getElementById('commentInput').value = comment;\n            document.getElementById('gdprConsentInput').value = gdprConsent;\n            document.getElementById('mentalHealthConsentInput').value = mentalHealthConsent;\n            document.getElementById('langInput').value = 'en';\n            document.getElementById('uniqueIdInput').value = uniqueId;\n\n            document.getElementById('mawk10Form').submit();\n        }\n    <\/script>\n\n    \n    <button id=\"language-toggle\" data-current-lang=\"en\" data-translate=\"lang_toggle\">\n        Fran\u00e7ais    <\/button>\n\n            <form id=\"mawk10Form\" method=\"post\" action=\"https:\/\/mitellus.fr\/wp-admin\/admin-post.php\">\n            <input type=\"hidden\" name=\"action\" value=\"mawk10_test_submit\">\n            <input type=\"hidden\" id=\"security\" name=\"security\" value=\"260c4360fb\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/index.php?rest_route=%2Fwp%2Fv2%2Fposts%2F4635\" \/>            <h2 data-translate=\"title\">K10 Test<\/h2>\n            <p data-translate=\"instructions\">These questions concern how you have been feeling over the past 30 days. Select an option for each question that best represents how you have been. Answer all questions.<\/p>\n            <p class=\"rating-scale\" data-translate=\"rating_scale\">Rating Scale:<br \/>\n1 = None of the time<br \/>\n2 = A little of the time<br \/>\n3 = Some of the time<br \/>\n4 = Most of the time<br \/>\n5 = All of the time<\/p><br>\n\n            <label for=\"name\" data-translate=\"name_label\">How should I call you?<\/label>\n            <input type=\"text\" id=\"name\" name=\"name\" value=\"\" required>\n            <span id=\"name-error\" class=\"error-message\" data-translate=\"name_error\">Please enter your name.<\/span><br><br>\n\n            <label for=\"email\" data-translate=\"email_label\">Your Email Address:<\/label>\n            <input type=\"email\" id=\"email\" name=\"email\" value=\"\" required>\n            <span id=\"email-error\" class=\"error-message\" data-translate=\"email_error\">Please enter a valid email address.<\/span><br><br>\n\n            <label for=\"comment\" data-translate=\"comment_label\">Any Comments:<\/label>\n            <textarea id=\"comment\" name=\"comment\" rows=\"4\" cols=\"50\"><\/textarea><br><br>\n\n            <input type=\"hidden\" id=\"unique_id\" name=\"unique_id\" value=\"\">\n\n            <div class=\"consent-box\">\n                <input type=\"checkbox\" id=\"gdpr-consent\" name=\"gdpr_consent\" required>\n                <label for=\"gdpr-consent\" data-translate=\"gdpr_label\">I consent to the processing of my personal data in accordance with GDPR for the purpose of this survey.<\/label>\n                <span id=\"gdpr-error\" class=\"error-message\" data-translate=\"gdpr_error\">GDPR consent is required.<\/span>\n            <\/div>\n\n            <div class=\"consent-box\">\n                <input type=\"checkbox\" id=\"mental-health-consent\" name=\"mental_health_consent\" required>\n                <label for=\"mental-health-consent\" data-translate=\"health_label\">I consent to my data being used to evaluate my mental health state as part of this survey.<\/label>\n                <span id=\"health-error\" class=\"error-message\" data-translate=\"health_error\">Mental health consent is required.<\/span>\n            <\/div>\n\n            <div style=\"display: none;\">\n                <label for=\"website\">Leave this blank:<\/label>\n                <input type=\"text\" id=\"website\" name=\"website\">\n            <\/div>\n\n                            <div class=\"question\">\n                    <h4 data-translate=\"questions.0\">1. During the last 30 days, about how often did you feel tired out for no good reason?<\/h4>\n                    <div class=\"question-buttons\">\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[1]\" value=\"1\" required><span>1 - None of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[1]\" value=\"2\" required><span>2 - A little of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[1]\" value=\"3\" required><span>3 - Some of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[1]\" value=\"4\" required><span>4 - Most of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[1]\" value=\"5\" required><span>5 - All of the time<\/span><\/label>\n                                            <\/div>\n                <\/div>\n                                <div class=\"question\">\n                    <h4 data-translate=\"questions.1\">2. During the last 30 days, about how often did you feel nervous?<\/h4>\n                    <div class=\"question-buttons\">\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[2]\" value=\"1\" required><span>1 - None of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[2]\" value=\"2\" required><span>2 - A little of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[2]\" value=\"3\" required><span>3 - Some of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[2]\" value=\"4\" required><span>4 - Most of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[2]\" value=\"5\" required><span>5 - All of the time<\/span><\/label>\n                                            <\/div>\n                <\/div>\n                                <div class=\"question\">\n                    <h4 data-translate=\"questions.2\">3. During the last 30 days, about how often did you feel so nervous that nothing could calm you down?<\/h4>\n                    <div class=\"question-buttons\">\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[3]\" value=\"1\" required><span>1 - None of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[3]\" value=\"2\" required><span>2 - A little of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[3]\" value=\"3\" required><span>3 - Some of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[3]\" value=\"4\" required><span>4 - Most of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[3]\" value=\"5\" required><span>5 - All of the time<\/span><\/label>\n                                            <\/div>\n                <\/div>\n                                <div class=\"question\">\n                    <h4 data-translate=\"questions.3\">4. During the last 30 days, about how often did you feel hopeless?<\/h4>\n                    <div class=\"question-buttons\">\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[4]\" value=\"1\" required><span>1 - None of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[4]\" value=\"2\" required><span>2 - A little of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[4]\" value=\"3\" required><span>3 - Some of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[4]\" value=\"4\" required><span>4 - Most of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[4]\" value=\"5\" required><span>5 - All of the time<\/span><\/label>\n                                            <\/div>\n                <\/div>\n                                <div class=\"question\">\n                    <h4 data-translate=\"questions.4\">5. During the last 30 days, about how often did you feel restless or fidgety?<\/h4>\n                    <div class=\"question-buttons\">\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[5]\" value=\"1\" required><span>1 - None of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[5]\" value=\"2\" required><span>2 - A little of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[5]\" value=\"3\" required><span>3 - Some of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[5]\" value=\"4\" required><span>4 - Most of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[5]\" value=\"5\" required><span>5 - All of the time<\/span><\/label>\n                                            <\/div>\n                <\/div>\n                                <div class=\"question\">\n                    <h4 data-translate=\"questions.5\">6. During the last 30 days, about how often did you feel so restless you could not sit still?<\/h4>\n                    <div class=\"question-buttons\">\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[6]\" value=\"1\" required><span>1 - None of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[6]\" value=\"2\" required><span>2 - A little of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[6]\" value=\"3\" required><span>3 - Some of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[6]\" value=\"4\" required><span>4 - Most of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[6]\" value=\"5\" required><span>5 - All of the time<\/span><\/label>\n                                            <\/div>\n                <\/div>\n                                <div class=\"question\">\n                    <h4 data-translate=\"questions.6\">7. During the last 30 days, about how often did you feel depressed?<\/h4>\n                    <div class=\"question-buttons\">\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[7]\" value=\"1\" required><span>1 - None of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[7]\" value=\"2\" required><span>2 - A little of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[7]\" value=\"3\" required><span>3 - Some of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[7]\" value=\"4\" required><span>4 - Most of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[7]\" value=\"5\" required><span>5 - All of the time<\/span><\/label>\n                                            <\/div>\n                <\/div>\n                                <div class=\"question\">\n                    <h4 data-translate=\"questions.7\">8. During the last 30 days, about how often did you feel that everything was an effort?<\/h4>\n                    <div class=\"question-buttons\">\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[8]\" value=\"1\" required><span>1 - None of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[8]\" value=\"2\" required><span>2 - A little of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[8]\" value=\"3\" required><span>3 - Some of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[8]\" value=\"4\" required><span>4 - Most of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[8]\" value=\"5\" required><span>5 - All of the time<\/span><\/label>\n                                            <\/div>\n                <\/div>\n                                <div class=\"question\">\n                    <h4 data-translate=\"questions.8\">9. During the last 30 days, about how often did you feel so sad that nothing could cheer you up?<\/h4>\n                    <div class=\"question-buttons\">\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[9]\" value=\"1\" required><span>1 - None of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[9]\" value=\"2\" required><span>2 - A little of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[9]\" value=\"3\" required><span>3 - Some of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[9]\" value=\"4\" required><span>4 - Most of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[9]\" value=\"5\" required><span>5 - All of the time<\/span><\/label>\n                                            <\/div>\n                <\/div>\n                                <div class=\"question\">\n                    <h4 data-translate=\"questions.9\">10. During the last 30 days, about how often did you feel worthless?<\/h4>\n                    <div class=\"question-buttons\">\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[10]\" value=\"1\" required><span>1 - None of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[10]\" value=\"2\" required><span>2 - A little of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[10]\" value=\"3\" required><span>3 - Some of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[10]\" value=\"4\" required><span>4 - Most of the time<\/span><\/label>\n                                                    <label class=\"mawk10-radio\"><input type=\"radio\" name=\"responses[10]\" value=\"5\" required><span>5 - All of the time<\/span><\/label>\n                                            <\/div>\n                <\/div>\n                            <span id=\"question-error\" class=\"error-message\" data-translate=\"question_error\">Please answer all questions.<\/span>\n\n            <input type=\"hidden\" id=\"resultsInput\" name=\"results\" value=\"\">\n            <input type=\"hidden\" id=\"totalScoreInput\" name=\"total_score\" value=\"\">\n            <input type=\"hidden\" id=\"nameInput\" name=\"submitted_name\" value=\"\">\n            <input type=\"hidden\" id=\"emailInput\" name=\"email\" value=\"\">\n            <input type=\"hidden\" id=\"commentInput\" name=\"comment\" value=\"\">\n            <input type=\"hidden\" id=\"gdprConsentInput\" name=\"gdpr_consent\" value=\"\">\n            <input type=\"hidden\" id=\"mentalHealthConsentInput\" name=\"mental_health_consent\" value=\"\">\n            <input type=\"hidden\" id=\"langInput\" name=\"lang\" value=\"\">\n            <input type=\"hidden\" id=\"uniqueIdInput\" name=\"unique_id\" value=\"\">\n\n            <button type=\"submit\" onclick=\"calculateResults(event)\" data-translate=\"submit\">Submit<\/button>\n        <\/form>\n\n                \n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"is-style-text-annotation is-style-text-annotation--1\">Data collection disclamer<\/p>\n\n\n\n<p class=\".test-results {     padding: 20px;     border: 1px solid #ccc;     border-radius: 5px;     margin: 20px 0;     background-color: #f9f9f9; }  .test-results ul {     list-style-type: none;     padding-left: 0; }  .test-results li {     margin: 5px 0; }\">More info on the <strong>Kessler Psychological Distress Scale (K10)<\/strong> can be found <a href=\"https:\/\/www.worksafe.qld.gov.au\/__data\/assets\/pdf_file\/0010\/22240\/kessler-psychological-distress-scale-k101.pdf\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Data collection disclamer More info on the Kessler Psychological Distress Scale (K10) can be found here.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,29],"tags":[35,40],"class_list":["post-4635","post","type-post","status-publish","format-standard","hentry","category-experience","category-hypnotherapy","tag-english","tag-hypnosis"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mitellus.fr\/index.php?rest_route=\/wp\/v2\/posts\/4635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mitellus.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mitellus.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mitellus.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mitellus.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4635"}],"version-history":[{"count":2,"href":"https:\/\/mitellus.fr\/index.php?rest_route=\/wp\/v2\/posts\/4635\/revisions"}],"predecessor-version":[{"id":4987,"href":"https:\/\/mitellus.fr\/index.php?rest_route=\/wp\/v2\/posts\/4635\/revisions\/4987"}],"wp:attachment":[{"href":"https:\/\/mitellus.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mitellus.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mitellus.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}