{"id":2879,"date":"2024-08-16T08:14:16","date_gmt":"2024-08-16T07:14:16","guid":{"rendered":"https:\/\/beams-experiments.com\/?page_id=2879"},"modified":"2025-10-02T10:05:51","modified_gmt":"2025-10-02T09:05:51","slug":"thanks-from-bayes","status":"publish","type":"page","link":"https:\/\/beams-experiments.com\/index.php\/thanks-from-bayes\/","title":{"rendered":"Thanks from Bayes"},"content":{"rendered":"\n<!DOCTYPE html>\n<html>\n<head>\n    <style>\n        body {\n            font-family: Arial, sans-serif;\n            text-align: center;\n            padding: 20px;\n        }\n        #thankYouMessage {\n            font-size: 18px;\n            margin-bottom: 20px;\n        }\n        #uniqueCodeContainer {\n            margin-bottom: 20px;\n        }\n        #uniqueCode {\n            width: 50%;\n            padding: 10px;\n            font-size: 16px;\n            text-align: center;\n            border: 2px solid #007bff;\n            border-radius: 5px;\n            margin-bottom: 10px;\n        }\n        #keepSafeMessage {\n            font-size: 14px;\n            color: #555;\n        }\n        #emailContainer {\n            margin-top: 20px;\n        }\n        #emailInput {\n            width: 75%;\n            padding: 10px;\n            font-size: 16px;\n            margin-bottom: 10px;\n            border: 2px solid #007bff;\n            border-radius: 5px;\n        }\n        #sendButton {\n            padding: 10px 20px;\n            font-size: 16px;\n            color: white;\n            background-color: #007bff;\n            border: none;\n            border-radius: 5px;\n            cursor: pointer;\n        }\n        #checkmark {\n            display: none; \/* Initially hidden *\/\n            font-size: 100px;\n            color: green;\n            margin-top: 30px;\n        }\n    <\/style>\n<\/head>\n<body>\n    <div id=\"thankYouMessage\">\n        <p>Thank you for participating in this experiment. Please keep this unique code safely for future reference:<\/p>\n    <\/div>\n    <div id=\"uniqueCodeContainer\">\n       \n        <input type=\"text\" id=\"uniqueCode\" readonly>\n        <p id=\"keepSafeMessage\"><b>This code is important for your records and may be needed for follow-up studies or future correspondence. Please make sure to send it to your email and watch for the checkmark below as confirmation.<\/b><\/p>\n    <\/div>\n\n    <!-- Email Input and Send Button -->\n    <div id=\"emailContainer\">\n        <input type=\"email\" id=\"emailInput\" placeholder=\"Enter your email address here. Please note it will NOT be saved in our database!\"><br>\n        <button id=\"sendButton\">Send Code to Myself<\/button>\n    <\/div>\n\n    <!-- Checkmark Icon -->\n    <div id=\"checkmark\">&#10004;<\/div>\n\n    <script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.5.1\/jquery.min.js\"><\/script>\n    <script>\n    window.onload = function() {\n        \/\/ Retrieve the unique code from local storage\n        var code = localStorage.getItem('code');\n        console.log('Code is', code);\n        \n        \/\/ Display the unique code in the textbox\n        document.getElementById('uniqueCode').value = code;\n    };\n\n    document.getElementById('sendButton').addEventListener('click', function() {\n        var email = document.getElementById('emailInput').value;\n        var code = document.getElementById('uniqueCode').value;\n\n        if (email && code) {\n            var subject = \"Don't delete this email; Bayes experiment code: \" + code;\n            var body = \"Reference: BAI2025\\n\\nYour unique code for the Bayes graduate business attributes experiment is: \" + code + \".\\n\\nPlease keep this email for your records.\\n\\nRegards,\\n\\nResearch Team\";\n\n            \/\/ Use mailto to create an email draft\n            var mailtoLink = \"mailto:\" + encodeURIComponent(email) + \n                             \"?subject=\" + encodeURIComponent(subject) + \n                             \"&body=\" + encodeURIComponent(body);\n\n            \/\/ Open the mailto link in a new window\/tab\n            window.location.href = mailtoLink;\n\n            \/\/ Show the checkmark icon to indicate completion\n            document.getElementById('checkmark').style.display = 'block';\n        } else {\n            alert('Please enter a valid email address.');\n        }\n    });\n    <\/script>\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>Thank you for participating in this experiment. Please keep this unique code safely for future reference: This code is important for your records and may be needed for follow-up studies or future correspondence. Please make sure to send it to your email and watch for the checkmark below as confirmation. Send Code to Myself &#10004;<\/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-2879","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/beams-experiments.com\/index.php\/wp-json\/wp\/v2\/pages\/2879","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=2879"}],"version-history":[{"count":22,"href":"https:\/\/beams-experiments.com\/index.php\/wp-json\/wp\/v2\/pages\/2879\/revisions"}],"predecessor-version":[{"id":6358,"href":"https:\/\/beams-experiments.com\/index.php\/wp-json\/wp\/v2\/pages\/2879\/revisions\/6358"}],"wp:attachment":[{"href":"https:\/\/beams-experiments.com\/index.php\/wp-json\/wp\/v2\/media?parent=2879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}