{"id":3689,"date":"2025-05-05T22:25:07","date_gmt":"2025-05-05T15:25:07","guid":{"rendered":"https:\/\/maruten-vn.com\/?page_id=3689"},"modified":"2025-05-06T08:23:19","modified_gmt":"2025-05-06T01:23:19","slug":"\u767b\u9332\u3059\u308b","status":"publish","type":"page","link":"https:\/\/maruten-vn.com\/ja\/\u767b\u9332\u3059\u308b\/","title":{"rendered":"\u767b\u9332\u3059\u308b"},"content":{"rendered":"<div class=\"auth-container\">\n        <h2 class=\"form-title\">\u0110\u0103ng k\u00fd<\/h2>\n    <form method=\"post\" id=\"custom-register-form\">\n                <input type=\"hidden\" id=\"custom_register_nonce\" name=\"custom_register_nonce\" value=\"62284d701c\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/ja\/wp-json\/wp\/v2\/pages\/3689\" \/>        <div class=\"form-row\">\n            <label>Email:<\/label>\n            <input type=\"email\" name=\"email\" value=\"\" required>\n        <\/div>\n        <div class=\"form-row\">\n            <label>T\u00ean ng\u01b0\u1eddi d\u00f9ng:<\/label>\n            <input type=\"text\" name=\"username\" value=\"\" required>\n        <\/div>\n        <div class=\"form-row\">\n            <label>M\u1eadt kh\u1ea9u:<\/label>\n            <div style=\"position: relative;\">\n                <input type=\"password\" name=\"password\" id=\"password\" required autocomplete=\"new-password\" style=\"padding-right: 40px;\">\n                <button type=\"button\" onclick=\"togglePassword('password')\" style=\"position:absolute; right:10px; top:44%; transform:translateY(-85%); background:none; border:none; cursor:pointer; padding:0px\">\n                    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 28 28\">\n                        <path fill=\"#333\" d=\"M25.257 16h.005h-.01zm-.705-.52c.1.318.387.518.704.52c.07 0 .148-.02.226-.04c.39-.12.61-.55.48-.94C25.932 14.93 22.932 6 14 6S2.067 14.93 2.037 15.02c-.13.39.09.81.48.94c.4.13.82-.09.95-.48l.003-.005c.133-.39 2.737-7.975 10.54-7.975c7.842 0 10.432 7.65 10.542 7.98M10.5 16a3.5 3.5 0 1 1 7 0a3.5 3.5 0 0 1-7 0m3.5-5a5 5 0 1 0 0 10a5 5 0 0 0 0-10\" \/>\n                    <\/svg>\n                <\/button>\n            <\/div>\n        <\/div>\n        <div class=\"form-row\">\n            <label>X\u00e1c nh\u1eadn m\u1eadt kh\u1ea9u:<\/label>\n            <div style=\"position: relative;\">\n                <input type=\"password\" name=\"confirm_password\" id=\"confirm_password\" required autocomplete=\"new-password\" style=\"padding-right: 40px;\">\n                <button type=\"button\" onclick=\"togglePassword('confirm_password')\" style=\"position:absolute; right:10px; top:44%; transform:translateY(-85%); background:none; border:none; cursor:pointer; padding:0px\">\n                    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 28 28\">\n                        <path fill=\"#333\" d=\"M25.257 16h.005h-.01zm-.705-.52c.1.318.387.518.704.52c.07 0 .148-.02.226-.04c.39-.12.61-.55.48-.94C25.932 14.93 22.932 6 14 6S2.067 14.93 2.037 15.02c-.13.39.09.81.48.94c.4.13.82-.09.95-.48l.003-.005c.133-.39 2.737-7.975 10.54-7.975c7.842 0 10.432 7.65 10.542 7.98M10.5 16a3.5 3.5 0 1 1 7 0a3.5 3.5 0 0 1-7 0m3.5-5a5 5 0 1 0 0 10a5 5 0 0 0 0-10\" \/>\n                    <\/svg>\n                <\/button>\n            <\/div>\n        <\/div>\n        <input type=\"hidden\" name=\"recaptcha_token\" id=\"recaptcha_register_token\">\n        <input type=\"submit\" value=\"\u0110\u0103ng k\u00fd\">\n    <\/form>\n\n    <div class=\"separator\"><span>Ho\u1eb7c<\/span><\/div>\n    <div class=\"social-login\">\n        <a href=\"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth?client_id=144565484980-dnoqn2e6o69lmd0al13p3r12civna6me.apps.googleusercontent.com&#038;redirect_uri=https%3A%2F%2Fmaruten-vn.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dgoogle_oauth_callback&#038;response_type=code&#038;scope=email%20profile\" class=\"google-login-button\">\n            <i class=\"fab fa-google\"><\/i> \u0110\u0103ng nh\u1eadp b\u1eb1ng Google\n        <\/a>\n    <\/div>\n    <p style=\"margin-top: 20px;\">\u0110\u00e3 c\u00f3 t\u00e0i kho\u1ea3n? <a href=\"https:\/\/maruten-vn.com\/login\/\">\u0110\u0103ng nh\u1eadp ngay<\/a><\/p>\n\n    <script>\n        \/\/ Add error handling to reCAPTCHA\n        function handleRecaptchaError() {\n            console.error('reCAPTCHA error occurred');\n            \/\/ Add a hidden error message that can be shown if reCAPTCHA fails\n            const errorDiv = document.createElement('div');\n            errorDiv.className = 'recaptcha-error';\n            errorDiv.style.color = 'red';\n            errorDiv.style.display = 'none';\n            errorDiv.textContent = 'L\u1ed7i x\u00e1c th\u1ef1c reCAPTCHA. Vui l\u00f2ng t\u1ea3i l\u1ea1i trang v\u00e0 th\u1eed l\u1ea1i.';\n            document.getElementById('custom-register-form').prepend(errorDiv);\n        }\n\n        document.getElementById('custom-register-form').addEventListener('submit', function(e) {\n            e.preventDefault();\n\n            try {\n                if (typeof grecaptcha === 'undefined') {\n                    console.error('reCAPTCHA not loaded');\n                    const errorElems = document.getElementsByClassName('recaptcha-error');\n                    if (errorElems.length > 0) {\n                        errorElems[0].style.display = 'block';\n                    }\n                    return;\n                }\n\n                grecaptcha.ready(function() {\n                    grecaptcha.execute('6LeFii8rAAAAAL3T9GERPz2Vn5zB5PEvdZ_DBJXl', {\n                        action: 'custom_register'\n                    }).then(function(token) {\n                        document.getElementById('recaptcha_register_token').value = token;\n                        e.target.submit();\n                    }).catch(function(error) {\n                        console.error('reCAPTCHA execution failed:', error);\n                        handleRecaptchaError();\n                    });\n                });\n            } catch (error) {\n                console.error('Form submission error:', error);\n                handleRecaptchaError();\n            }\n        });\n\n        function togglePassword(id) {\n            const input = document.getElementById(id);\n            input.type = input.type === 'password' ? 'text' : 'password';\n        }\n    <\/script>\n\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3689","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/maruten-vn.com\/ja\/wp-json\/wp\/v2\/pages\/3689","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/maruten-vn.com\/ja\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/maruten-vn.com\/ja\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/maruten-vn.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/maruten-vn.com\/ja\/wp-json\/wp\/v2\/comments?post=3689"}],"version-history":[{"count":3,"href":"https:\/\/maruten-vn.com\/ja\/wp-json\/wp\/v2\/pages\/3689\/revisions"}],"predecessor-version":[{"id":3697,"href":"https:\/\/maruten-vn.com\/ja\/wp-json\/wp\/v2\/pages\/3689\/revisions\/3697"}],"wp:attachment":[{"href":"https:\/\/maruten-vn.com\/ja\/wp-json\/wp\/v2\/media?parent=3689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}