{"id":206,"date":"2025-02-22T01:59:46","date_gmt":"2025-02-22T01:59:46","guid":{"rendered":"https:\/\/endofenthalpyonline.com\/?page_id=206"},"modified":"2025-07-23T00:24:11","modified_gmt":"2025-07-23T00:24:11","slug":"create-account","status":"publish","type":"page","link":"https:\/\/endofenthalpyonline.com\/index.php\/create-account\/","title":{"rendered":"Create account"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"206\" class=\"elementor elementor-206\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7a060e0 e-con-full e-flex e-con e-parent\" data-id=\"7a060e0\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-8187331 elementor-widget__width-initial elementor-widget elementor-widget-html\" data-id=\"8187331\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<html>\r\n<head>\r\n    <link rel=\"stylesheet\" href=\"https:\/\/fonts.googleapis.com\/css2?family=Lumanosimo&display=swap\">\r\n    <script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-6317785694615260\"\r\n            crossorigin=\"anonymous\"><\/script>\r\n\r\n\r\n\r\n    <style>\r\n        body {\r\n            background-attachment: scroll;\r\n            background-image: url(https:\/\/endofenthalpyonline.com\/wp-content\/uploads\/public\/oldpaper.png);\r\n        }\r\n\r\n        video {\r\n            position: fixed;\r\n            top: 0;\r\n            left: 0;\r\n            width: 100%;\r\n            height: 100%;\r\n            object-fit: cover;\r\n            z-index: -1; \/* Set a negative z-index to place it behind other content *\/\r\n            sss\r\n        }\r\n\r\n        .createacountbutton {\r\n            color: green;\r\n            background-color: #000000AA;\r\n            border-color: black;\r\n        }\r\n\r\n            .createacountbutton:hover {\r\n                background-color: green;\r\n            }\r\n\r\n        .login-form {\r\n            transform: translateX(%);\r\n            width: 50%;\r\n            text-align: center;\r\n            padding-right: 1%;\r\n        }\r\n\r\n        .errormessage {\r\n            color: red;\r\n        }\r\n\r\n        .User, .pass {\r\n            width: 100%;\r\n        }\r\n    <\/style>\r\n    <script>\r\n        function readyStateChangeHandler(xhttp) {\r\n\r\n            console.log(\"here\");\r\n            console.log(xhttp.responseText);\r\n            if (xhttp.readyState == 4) {\r\n                console.log(\"here\");\r\n                \/\/ readyState = 4 means DONE\r\n                if (xhttp.status == 200) {\r\n                    \/\/ status = 200 means OK\r\n                    if (xhttp.responseText == \"account created\") {\r\n                        console.log(\"okay\");\r\n                        localStorage.setItem(\"Loggedin\", \"YES\");\r\n\r\n                        window.location.replace(\"DownloadGame\");\r\n                    } else {\r\n                        warrning = document.getElementById(\"errormessage\");\r\n                        if (xhttp.responseText == \"successfuly activated account\") {\/\/account created please please verify email address please check spam link remains active for 1 hour\") {\r\n                            warrning.style.color = \"black\";\r\n                            window.location.replace(\"https:\/\/endofenthalpyonline.com\/index.php\/account-created\");\r\n                        }\r\n                        warrning.innerHTML = xhttp.responseText;\r\n                    }\r\n                }\r\n            } else {\r\n                \/\/ status is NOT OK\r\n                console.log(String(xhttp.status));\r\n            }\r\n        }\r\n\r\n\r\n        async function sendverificationemail(user,email,pass) {\r\n            const url = 'https:\/\/endofenthalpyonline.com\/wp-json\/custom\/v1\/create-validte-email';\r\n\r\n            const data = '{\"user\":\"' + user + '\",\"pass\":\"' + pass + '\",\"to\":\"' + email + '\"}';\r\n\r\n            const response = await fetch(url, {\r\n                method: 'POST',\r\n                headers: {\r\n                    'Authorization': '%%%DGVgvdsfgfsd555edvv#d2',\r\n                    'Content-Type': 'application\/json',\r\n                },\r\n                body: data,\r\n            });\r\n\r\n            const text = await response.text();\r\n            var jsondat = JSON.parse(text);\r\n            if (jsondat.message == \"Email sent!\"){\r\n                window.location.replace(\"https:\/\/endofenthalpyonline.com\/index.php\/verification-sent\/\");\r\n            }\r\n        }\r\n\r\n        async function CheckUseravalible(user,email,callback) {\r\n            const url = 'https:\/\/endofenthalpyonline.com\/wp-json\/custom\/v1\/checkemailexists';\r\n\r\n            const data = '{\"user\":\"' + user + '\",\"to\":\"' + email + '\"}';\r\n\r\n            const response = await fetch(url, {\r\n                method: 'POST',\r\n                headers: {\r\n                    'Authorization': '%%%DGVgvdsfgfsd555edvv#d2',\r\n                    'Content-Type': 'application\/json',\r\n                },\r\n                body: data,\r\n            });\r\n\r\n            const text = await response.text();\r\n\r\n            console.log(text);\r\n            var jdata  = JSON.parse(text);\r\n            if (jdata.message == \"email in use\") {\r\n                document.getElementById(\"errormessage\").innerHTML = \"Email already in use\";\r\n            }\r\n            if (jdata.message == \"user in use.\") {\r\n                document.getElementById(\"errormessage\").innerHTML = \"User already in use\";\r\n            }\r\n            if (jdata.success ) {\r\n                callback(true);\r\n            }\r\n\r\n \r\n\r\n        }\r\n\r\n        function formvalidNowrealsubmit(username, password, email) {\r\n            \/\/.\/routes\/email\r\n            var data = { 'user': username, 'pass': password, 'email': email };\r\n            var xhttp = new XMLHttpRequest();\r\n\r\n            \/\/check user avalible\r\n            CheckUseravalible(username, email, (result) => {\r\n                if (result) {\r\n                    sendverificationemail(username, email, password);\r\n                }\r\n\r\n            });\r\n            \/\/send verification email \r\n\r\n            \/\/\/\/ create a handler for the readyState change\r\n\r\n            \/\/xhttp.onreadystatechange = function () {\r\n            \/\/    readyStateChangeHandler(xhttp);\r\n            \/\/};\r\n\r\n\r\n\r\n\r\n            \/\/\/\/ making query by async call\r\n\r\n            \/\/xhttp.open(\"POST\", \"https:\/\/endofenthalpyonline.com:1447\/email\", true);\r\n            \/\/xhttp.setRequestHeader(\"Content-Type\", \"application\/json;charset=UTF-8\");\r\n            \/\/console.log(JSON.stringify(data));\r\n            \/\/xhttp.send(JSON.stringify(data));\r\n\r\n\r\n        }\r\n        function submitform() {\r\n\r\n            if (validateForm() == false) {\r\n                warrning = document.getElementById(\"errormessage\");\r\n                warrning.innerHTML = \"CAPTCHA incorrect \";\r\n\r\n            } else {\r\n                warrning = document.getElementById(\"errormessage\");\r\n                warrning.innerHTML = \"\";\r\n                user = document.getElementById(\"User\");\r\n                pass = document.getElementById(\"pass\");\r\n                email = document.getElementById(\"email\");\r\n\r\n                if (user.value != \"\") {\r\n                    if (String(user.value).length < 5) {\r\n                        warrning.innerHTML = \"username must be longer that 5 characters\";\r\n                    } else {\r\n\r\n                        if (pass.value != \"\") {\r\n                            if (String(pass.value).length < 5) {\r\n                                warrning.innerHTML = \"password must be longer that 5 characters\";\r\n                            } else {\r\n                                if (email.value != \"\") {\r\n                                    if (String(email.value).length > 5 &&\r\n                                        (String(email.value).includes(\"@\"))\r\n                                        && (String(email.value).includes(\".com\"))) {\r\n                                        formvalidNowrealsubmit(user.value, pass.value, email.value);\r\n                                    } else {\r\n                                        warrning.innerHTML = \"please enter valid email\";\r\n\r\n                                    }\r\n                                } else {\r\n                                    warrning.innerHTML = \"please enter email\";\r\n                                }\r\n                            }\r\n                        } else {\r\n                            warrning.innerHTML = \"please password\";\r\n                        }\r\n                    }\r\n                }\r\n                else {\r\n                    warrning.innerHTML = \"please enter username\";\r\n                }\r\n\r\n            }\r\n        }\r\n\r\n\r\n        var navibarjsonoveride = JSON.stringify({\r\n            NaviId: 'navibar',\r\n            backgroundimage: \"https:\/\/endofenthalpyonline.com\/wp-content\/uploads\/public\/LogginScreenVidio.mp4\",\r\n            overidescrooling: true,\r\n            Vidio: true\r\n\r\n        });\r\n    <\/script>\r\n    <script type=\"text\/javascript\" src=\"https:\/\/endofenthalpyonline.com\/wp-content\/uploads\/public\/javascripts\/Bottest.js\"><\/script>\r\n<\/head>\r\n<body onload=\" displaynaivbar( navibarjsonoveride );\">\r\n    <video autoplay muted loop>\r\n        <source src=\"https:\/\/endofenthalpyonline.com\/wp-content\/uploads\/public\/LogginScreenVidio.mp4\" type=\"video\/mp4\">\r\n        Your browser does not support the video tag.\r\n    <\/video>\r\n    <center>\r\n        <div id=\"navibar\">\r\n        <\/div>\r\n    <\/center>\r\n\r\n    <center>\r\n\r\n\r\n        <div class=\"login-form\">\r\n            <h2>\r\n                create account\r\n            <\/h2>\r\n\r\n            <div>\r\n                <b id=\"errormessage\" class=\"errormessage\"><\/b><br \/><h4>\r\n                    Username:<input required type=\"text\" id=\"User\" value=\"\" \/><br \/>\r\n                    Password:<input required type=\"text\" id=\"pass\" value=\"\" \/><br \/>\r\n                    Email:<input required type=\"email\" id=\"email\" value=\"\" \/><br \/>\r\n                    <\/h3>\r\n                    <div id=\"captcha\">\r\n                        <!-- CAPTCHA will be inserted here -->\r\n                    <\/div>\r\n                    <br>\r\n                    <label for=\"captchaInput\">Enter CAPTCHA:<\/label>\r\n                    <input type=\"text\" id=\"captchaInput\" name=\"captchaInput\" required><br><br>\r\n\r\n\r\n\r\n                    <button class=\"createacountbutton\" name=\"create account\" onclick=\"submitform()\"> create account<\/button>\r\n                    <!--<p onclick=\" onlogginbuttonpressed()\">switch to loggin<\/p>-->\r\n            <\/div>\r\n        <\/div>\r\n\r\n\r\n    <\/center>\r\n\r\n\r\n\r\n<\/body>\r\n<\/html>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Your browser does not support the video tag. create account Username: Password: Email: Enter CAPTCHA: create account<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-206","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/pages\/206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/comments?post=206"}],"version-history":[{"count":79,"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/pages\/206\/revisions"}],"predecessor-version":[{"id":1278,"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/pages\/206\/revisions\/1278"}],"wp:attachment":[{"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/media?parent=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}