{"id":2862,"date":"2024-08-16T06:32:49","date_gmt":"2024-08-16T05:32:49","guid":{"rendered":"https:\/\/beams-experiments.com\/?page_id=2862"},"modified":"2025-09-16T09:12:58","modified_gmt":"2025-09-16T08:12:58","slug":"pre-task-questionnaire-bayes","status":"publish","type":"page","link":"https:\/\/beams-experiments.com\/index.php\/pre-task-questionnaire-bayes\/","title":{"rendered":"Pre-Task Questionnaire &#8211; Bayes"},"content":{"rendered":"\n<!DOCTYPE html>\n<html>\n<head>\n    <style>\n        #progressBarContainer {\n            width: 90%;\n            background-color: #e0e0e0;\n            border-radius: 5px;\n            margin-top: 20px;\n        }\n        #progressBar {\n            height: 10px;\n            background-color: #007bff;\n            border-radius: 5px;\n            width: 44%;\n        }\n        #progressText {\n            text-align: center;\n            margin-top: 5px;\n        }\n        #nextButton {\n            display: block;\n            background-color: #007bff;\n            color: white;\n            padding: 10px 20px;\n            margin: 20px auto;\n            font-size: 16px;\n            border: none;\n            border-radius: 5px;\n            cursor: not-allowed;\n            opacity: 0.5;\n        }\n        #nextButton:enabled {\n            cursor: pointer;\n            opacity: 1;\n        }\n        .questionnaire {\n            margin: 20px;\n            text-align: left;\n        }\n        .questionnaire input,\n        .questionnaire select {\n            margin: 5px 0;\n        }\n        .radio-container {\n            display: flex;\n            flex-wrap: wrap;\n        }\n        .radio-container label {\n            margin-right: 10px;\n            margin-bottom: 5px;\n        }\n    <\/style>\n<\/head>\n<body>\n\n    <!-- Questionnaire Section -->\n    <div class=\"questionnaire\">\n        <p><b>1. Age:<\/b> Please enter your age: <input type=\"number\" name=\"age\"><\/p>\n        <p><b>2. Gender:<\/b><\/p>\n        <label><input type=\"radio\" name=\"gender\" value=\"Male\"> Male<\/label>\n        <label><input type=\"radio\" name=\"gender\" value=\"Female\"> Female<\/label>\n        <label><input type=\"radio\" name=\"gender\" value=\"Other\"> Other<\/label>\n        <label><input type=\"radio\" name=\"gender\" value=\"Prefer not to say\"> Prefer not to say<\/label>\n        <p><b>3. Please enter your study pathway at Bayes:<\/b> <input type=\"text\" name=\"pathway\" id=\"pathway\"><\/p>\n        <p>\n           \n   \n        <p><b>4. English Proficiency:<\/b><\/p>\n        <p>\n            <label style=\"margin-right: 10px;\"><input type=\"radio\" name=\"englishProficiency\" value=\"Native Speaker\"> Native Speaker<\/label>\n            <label style=\"margin-right: 10px;\"><input type=\"radio\" name=\"englishProficiency\" value=\"Fluent\"> Fluent<\/label>\n            <label style=\"margin-right: 10px;\"><input type=\"radio\" name=\"englishProficiency\" value=\"Proficient\"> Proficient<\/label>\n            <label style=\"margin-right: 10px;\"><input type=\"radio\" name=\"englishProficiency\" value=\"Intermediate\"> Intermediate<\/label>\n            <label style=\"margin-right: 10px;\"><input type=\"radio\" name=\"englishProficiency\" value=\"Beginner\"> Beginner<\/label>\n        <\/p> \n        \n<p><b>In the following questions, use a scale from 1 to 5, where 1 = Extremely Low and 5 = Extremely High.<\/b><br>\n        <p><b>5. How familiar are you with AI tools?<\/b><br>\n        <label style=\"margin-right:10px;\"><input type=\"radio\" name=\"aiFamiliarity\" value=\"1\"> 1<\/label>\n        <label style=\"margin-right:10px;\"><input type=\"radio\" name=\"aiFamiliarity\" value=\"2\"> 2<\/label>\n        <label style=\"margin-right:10px;\"><input type=\"radio\" name=\"aiFamiliarity\" value=\"3\"> 3<\/label>\n        <label style=\"margin-right:10px;\"><input type=\"radio\" name=\"aiFamiliarity\" value=\"4\"> 4<\/label>\n        <label style=\"margin-right:10px;\"><input type=\"radio\" name=\"aiFamiliarity\" value=\"5\"> 5<\/label>\n        <\/p>\n\n        <p><b>6. How often do you use AI tools?<\/b><br>\n        <label style=\"margin-right:10px;\"><input type=\"radio\" name=\"aiUsage\" value=\"1\"> 1<\/label>\n        <label style=\"margin-right:10px;\"><input type=\"radio\" name=\"aiUsage\" value=\"2\"> 2<\/label>\n        <label style=\"margin-right:10px;\"><input type=\"radio\" name=\"aiUsage\" value=\"3\"> 3<\/label>\n        <label style=\"margin-right:10px;\"><input type=\"radio\" name=\"aiUsage\" value=\"4\"> 4<\/label>\n        <label style=\"margin-right:10px;\"><input type=\"radio\" name=\"aiUsage\" value=\"5\"> 5<\/label>\n        <\/p>\n\t\n        <p><b>7. Please rate your written communication skills:<\/b><br>\n        <label style=\"margin-right:10px;\"><input type=\"radio\" name=\"communicationSkills\" value=\"1\"> 1<\/label>\n        <label style=\"margin-right:10px;\"><input type=\"radio\" name=\"communicationSkills\" value=\"2\"> 2<\/label>\n        <label style=\"margin-right:10px;\"><input type=\"radio\" name=\"communicationSkills\" value=\"3\"> 3<\/label>\n        <label style=\"margin-right:10px;\"><input type=\"radio\" name=\"communicationSkills\" value=\"4\"> 4<\/label>\n        <label style=\"margin-right:10px;\"><input type=\"radio\" name=\"communicationSkills\" value=\"5\"> 5<\/label>\n        <\/p>\n\n       \n    <\/div>\n\n    <!-- Next Button -->\n    <button id=\"nextButton\" disabled>Next<\/button>\n\n    <!-- Progress Bar -->\n    <div id=\"progressBarContainer\">\n        <div id=\"progressBar\"><\/div>\n    <\/div>\n    <div id=\"progressText\">Page 4 out of 6<\/div>\n\n    <script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.5.1\/jquery.min.js\"><\/script>\n    <script>\n        localStorage.clear();\n        let groupID = '1'; \/\/groupID 1 = task 2 in year 2; groupID 0 = task1 in year 1; Manually control groupID\n        localStorage.setItem('groupID', groupID); \/\/ Store it in local storage\nif (localStorage.getItem('age')) {\n                \/\/alert('You already did this section!');\n                \/\/ window.location.href = 'https:\/\/beams-experiments.com\/index.php\/communication-skills-task2-bayes\/';\n                             }\n        const englishProficiencyMapping = {\n            \"Native Speaker\": 1,\n            \"Fluent\": 2,\n            \"Proficient\": 3,\n            \"Intermediate\": 4,\n            \"Beginner\": 5\n        };\n\n        const genderMapping = {\n            \"Male\": 1,\n            \"Female\": 2,\n            \"Other\": 3,\n            \"Prefer not to say\": 4\n        };\n\n        function checkFields() {\n            let allFilled = true;\n\n            \/\/ Check regular inputs and selects\n            $('.questionnaire input[type=\"number\"], .questionnaire textarea').each(function() {\n                if ($(this).val() === \"\" || $(this).val() === null) {\n                    allFilled = false;\n                    return false;\n                }\n            });\n\n            \/\/ Check if pathway is filled\n            if ($('#pathway').val() === \"\" || $('#pathway').val() === null) {\n                allFilled = false;\n                return false;\n            }\n\n            if (!allFilled) {\n                return false;\n            }\n\n            \/\/ Check radio button groups\n            $('.questionnaire input[type=\"radio\"]').each(function() {\n                if (!$('input[name=\"' + $(this).attr('name') + '\"]:checked').length) {\n                    allFilled = false;\n                    console.log('radio buttons not filled');\n                    return false;\n                }\n            });\n\n            return allFilled;\n        }\n\n        \/\/ Event listener for form inputs \n        $('.questionnaire input, .questionnaire textarea').on('change keyup', function() {\n            if (checkFields()) {\n                $('#nextButton').removeAttr('disabled').css('cursor', 'pointer').css('opacity', '1');\n            } else {\n                $('#nextButton').attr('disabled', 'disabled').css('cursor', 'not-allowed').css('opacity', '0.5');\n            }\n        });\n\n        $('#nextButton').on('click', function() {\n            var age = $('[name=\"age\"]').val();\n            var gender = genderMapping[$('[name=\"gender\"]:checked').val()] || 0;\n            var pathway = $('#pathway').val();\n            var englishProficiency = englishProficiencyMapping[$('[name=\"englishProficiency\"]:checked').val()] || 0;\n            var aiFamiliarity = $('[name=\"aiFamiliarity\"]:checked').val();\n            var aiUsage = $('[name=\"aiUsage\"]:checked').val();\n            var communicationSkills = $('[name=\"communicationSkills\"]:checked').val();\n\n            \/\/ Save data to local storage\n            localStorage.setItem('age', age);\n            localStorage.setItem('gender', gender.toString());\n            localStorage.setItem('pathway', pathway);\n            localStorage.setItem('englishProficiency', englishProficiency.toString());\n            localStorage.setItem('aiFamiliarity', aiFamiliarity);\n            localStorage.setItem('aiUsage', aiUsage);\n            localStorage.setItem('communicationSkills', communicationSkills);\n            \n            \/\/ Redirect to the next page\n            window.location.href = 'https:\/\/beams-experiments.com\/index.php\/AI_HE\/communication-skills-task2-bayes\/';\n        });\n    <\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>1. Age: Please enter your age: 2. Gender: Male Female Other Prefer not to say 3. Please enter your study pathway at Bayes: 4. English Proficiency: Native Speaker Fluent Proficient Intermediate Beginner In the following questions, use a scale from 1 to 5, where 1 = Extremely Low and 5 = Extremely High. 5. How [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"footnotes":""},"class_list":["post-2862","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/beams-experiments.com\/index.php\/wp-json\/wp\/v2\/pages\/2862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/beams-experiments.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/beams-experiments.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/beams-experiments.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/beams-experiments.com\/index.php\/wp-json\/wp\/v2\/comments?post=2862"}],"version-history":[{"count":13,"href":"https:\/\/beams-experiments.com\/index.php\/wp-json\/wp\/v2\/pages\/2862\/revisions"}],"predecessor-version":[{"id":6328,"href":"https:\/\/beams-experiments.com\/index.php\/wp-json\/wp\/v2\/pages\/2862\/revisions\/6328"}],"wp:attachment":[{"href":"https:\/\/beams-experiments.com\/index.php\/wp-json\/wp\/v2\/media?parent=2862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}