{"id":3763,"date":"2026-08-10T12:24:42","date_gmt":"2026-08-10T12:24:42","guid":{"rendered":"https:\/\/crazydoutest.com\/jap\/?page_id=3763"},"modified":"2026-08-10T12:25:45","modified_gmt":"2026-08-10T12:25:45","slug":"login-register","status":"publish","type":"page","link":"https:\/\/crazydoutest.com\/jap\/login-register\/","title":{"rendered":"Login\/Register"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"3763\" class=\"elementor elementor-3763\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b611621 e-con-full e-flex e-con e-parent\" data-id=\"b611621\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;sticky&quot;:&quot;top&quot;,&quot;sticky_parent&quot;:&quot;yes&quot;,&quot;ekit_has_onepagescroll_dot&quot;:&quot;yes&quot;,&quot;sticky_on&quot;:[&quot;desktop&quot;,&quot;tablet&quot;,&quot;mobile&quot;],&quot;sticky_offset&quot;:0,&quot;sticky_effects_offset&quot;:0,&quot;sticky_anchor_link_offset&quot;:0}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-02336f4 elementor-widget elementor-widget-heading\" data-id=\"02336f4\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;ekit_we_effect_on&quot;:&quot;none&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/crazydoutest.com\/jap\/\">\u4e3b\u9875<\/a><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3f5bddb elementor-widget elementor-widget-heading\" data-id=\"3f5bddb\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;ekit_we_effect_on&quot;:&quot;none&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">&gt;<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9d3b041 elementor-widget elementor-widget-heading\" data-id=\"9d3b041\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;ekit_we_effect_on&quot;:&quot;none&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u5728\u7ebf\u6848\u4f8b\u63d0\u4ea4<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-040ff2f elementor-widget elementor-widget-heading\" data-id=\"040ff2f\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;ekit_we_effect_on&quot;:&quot;none&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">&gt;<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6ea6872 elementor-widget elementor-widget-heading\" data-id=\"6ea6872\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;ekit_we_effect_on&quot;:&quot;none&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u767b\u5f55\u6ce8\u518c<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-ebcdd1b e-flex e-con-boxed e-con e-parent\" data-id=\"ebcdd1b\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;ekit_has_onepagescroll_dot&quot;:&quot;yes&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-b049540 e-con-full e-flex e-con e-child\" data-id=\"b049540\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;ekit_has_onepagescroll_dot&quot;:&quot;yes&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e59c3ec elementor-widget elementor-widget-heading\" data-id=\"e59c3ec\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;ekit_we_effect_on&quot;:&quot;none&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u767b\u5f55\u6ce8\u518c<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-35e9a75 elementor-widget elementor-widget-shortcode\" data-id=\"35e9a75\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;ekit_we_effect_on&quot;:&quot;none&quot;}\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\t<div class=\"apiac-auth-wrap\">\n\t\t<div class=\"apiac-fc-tabs\">\n\t\t\t<button type=\"button\" class=\"apiac-fc-tab active\" data-form=\"login\">\u767b\u5f55<\/button>\n\t\t\t<button type=\"button\" class=\"apiac-fc-tab\" data-form=\"register\">\u6ce8\u518c<\/button>\n\t\t<\/div>\n\n\t\t<form class=\"apiac-fc-panel apiac-auth-form\" data-form=\"login\">\n\t\t\t<div class=\"apiac-fc-field\">\n\t\t\t\t<label>\u90ae\u7bb1<\/label>\n\t\t\t\t<input type=\"email\" class=\"apiac-fc-input\" name=\"email\" required>\n\t\t\t<\/div>\n\t\t\t<div class=\"apiac-fc-field\">\n\t\t\t\t<label>\u5bc6\u7801<\/label>\n\t\t\t\t<input type=\"password\" class=\"apiac-fc-input\" name=\"password\" required>\n\t\t\t<\/div>\n\t\t\t<button type=\"submit\" class=\"apiac-fc-btn\">\u767b\u5f55<\/button>\n\t\t\t<p class=\"apiac-auth-msg\"><\/p>\n\t\t<\/form>\n\n\t\t<form class=\"apiac-fc-panel apiac-auth-form\" data-form=\"register\" style=\"display:none;\">\n\t\t\t<div class=\"apiac-fc-field\">\n\t\t\t\t<label>\u59d3\u540d<\/label>\n\t\t\t\t<input type=\"text\" class=\"apiac-fc-input\" name=\"name\" required>\n\t\t\t<\/div>\n\t\t\t<div class=\"apiac-fc-field\">\n\t\t\t\t<label>\u90ae\u7bb1<\/label>\n\t\t\t\t<input type=\"email\" class=\"apiac-fc-input\" name=\"email\" required>\n\t\t\t<\/div>\n\t\t\t<div class=\"apiac-fc-field\">\n\t\t\t\t<label>\u5bc6\u7801<\/label>\n\t\t\t\t<input type=\"password\" class=\"apiac-fc-input\" name=\"password\" required minlength=\"6\">\n\t\t\t<\/div>\n\t\t\t<div class=\"apiac-fc-field\">\n\t\t\t\t<label>\u786e\u8ba4\u5bc6\u7801<\/label>\n\t\t\t\t<input type=\"password\" class=\"apiac-fc-input\" name=\"password2\" required minlength=\"6\">\n\t\t\t<\/div>\n\t\t\t<button type=\"submit\" class=\"apiac-fc-btn\">\u6ce8\u518c<\/button>\n\t\t\t<p class=\"apiac-auth-msg\"><\/p>\n\t\t<\/form>\n\t<\/div>\n\n\t<style>\n\t\t.apiac-auth-wrap{ max-width:440px; margin:0 auto; }\n\t\t.apiac-auth-msg{ margin-top:14px; font-size:13px; color:#e0483e; }\n\t\t.apiac-auth-msg.ok{ color:#16a34a; }\n\t<\/style>\n\n\t<script>\n\t(function(){\n\t\tvar wraps = document.querySelectorAll('.apiac-auth-wrap');\n\t\tvar wrap = wraps[wraps.length - 1];\n\t\tvar ajaxUrl = 'https:\/\/crazydoutest.com\/jap\/wp-admin\/admin-ajax.php';\n\t\tvar nonce = 'cf5c1ce734';\n\n\t\twrap.querySelectorAll('.apiac-fc-tab').forEach(function(tab){\n\t\t\ttab.addEventListener('click', function(){\n\t\t\t\twrap.querySelectorAll('.apiac-fc-tab').forEach(function(t){ t.classList.remove('active'); });\n\t\t\t\ttab.classList.add('active');\n\t\t\t\twrap.querySelectorAll('.apiac-auth-form').forEach(function(f){\n\t\t\t\t\tf.style.display = (f.dataset.form === tab.dataset.form) ? '' : 'none';\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\n\t\twrap.querySelectorAll('.apiac-auth-form').forEach(function(form){\n\t\t\tform.addEventListener('submit', function(e){\n\t\t\t\te.preventDefault();\n\t\t\t\tvar msg = form.querySelector('.apiac-auth-msg');\n\t\t\t\tvar body = new URLSearchParams();\n\t\t\t\tbody.append('action', form.dataset.form === 'login' ? 'apiac_fc_login' : 'apiac_fc_register');\n\t\t\t\tbody.append('nonce', nonce);\n\t\t\t\tnew FormData(form).forEach(function(v,k){ body.append(k, v); });\n\n\t\t\t\tfetch(ajaxUrl, {\n\t\t\t\t\tmethod:'POST', credentials:'same-origin',\n\t\t\t\t\theaders:{'Content-Type':'application\/x-www-form-urlencoded'},\n\t\t\t\t\tbody: body.toString()\n\t\t\t\t})\n\t\t\t\t.then(function(r){ return r.json(); })\n\t\t\t\t.then(function(res){\n\t\t\t\t\tif (res.success) {\n\t\t\t\t\t\tmsg.className = 'apiac-auth-msg ok';\n\t\t\t\t\t\tmsg.textContent = res.data.message;\n\t\t\t\t\t\tsetTimeout(function(){ window.location.href = res.data.redirect || '\/'; }, 800);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmsg.className = 'apiac-auth-msg';\n\t\t\t\t\t\tmsg.textContent = res.data.message;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t})();\n\t<\/script>\n\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-59eb124 elementor-widget elementor-widget-html\" data-id=\"59eb124\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;ekit_we_effect_on&quot;:&quot;none&quot;}\" data-widget_type=\"html.default\">\n\t\t\t\t\t<script>\n    \/**\n * LOGIN\/REGISTER FORM \u2014 LAYOUT OVERRIDE (companion JS, design only)\n * Deploy as a separate WPCode JS Snippet, Insertion: Footer.\n * Does NOT touch the plugin's own login\/register AJAX logic \u2014 it only\n * reshapes the DOM\/adds elements and reuses the existing tab click\n * handlers (already bound by the shortcode's own inline script) to\n * keep switching between Login\/Register fully functional.\n *\/\ndocument.addEventListener('DOMContentLoaded', function () {\n\tvar wraps = document.querySelectorAll('.apiac-auth-wrap');\n\tif (!wraps.length) return;\n\tvar wrap = wraps[wraps.length - 1];\n\n\tvar loginTabBtn = wrap.querySelector('.apiac-fc-tab[data-form=\"login\"]');\n\tvar registerTabBtn = wrap.querySelector('.apiac-fc-tab[data-form=\"register\"]');\n\tif (!loginTabBtn || !registerTabBtn) return;\n\n\t\/\/ Placeholder text per field name, matched against <html lang=\"\">\n\t\/\/ (Polylang sets this). Falls back to English.\n\tvar htmlLang = (document.documentElement.lang || 'en').toLowerCase();\n\tvar locale = htmlLang.indexOf('zh') === 0 ? 'zh' : (htmlLang.indexOf('ja') === 0 ? 'ja' : 'en');\n\tvar placeholders = {\n\t\temail:     { zh: '\u8bf7\u8f93\u5165\u60a8\u7684\u90ae\u7bb1\u5730\u5740', en: 'Please enter your email address', ja: '\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044' },\n\t\tpassword:  { zh: '\u8bf7\u8f93\u5165\u5bc6\u7801',       en: 'Please enter your password',      ja: '\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044' },\n\t\tpassword2: { zh: '\u8bf7\u518d\u6b21\u8f93\u5165\u5bc6\u7801',    en: 'Please confirm your password',    ja: '\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u518d\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044' },\n\t\tname:      { zh: '\u8bf7\u8f93\u5165\u60a8\u7684\u59d3\u540d',    en: 'Please enter your name',          ja: '\u304a\u540d\u524d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044' }\n\t};\n\n\tvar eyeOpenSVG = '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z\"\/><circle cx=\"12\" cy=\"12\" r=\"3\"\/><\/svg>';\n\tvar eyeClosedSVG = '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M17.94 17.94A10.94 10.94 0 0 1 12 19c-7 0-11-7-11-7a21.6 21.6 0 0 1 5.06-5.94M9.9 4.24A10.94 10.94 0 0 1 12 4c7 0 11 7 11 7a21.6 21.6 0 0 1-2.16 3.19M14.12 14.12a3 3 0 1 1-4.24-4.24\"\/><line x1=\"1\" y1=\"1\" x2=\"23\" y2=\"23\"\/><\/svg>';\n\n\twrap.querySelectorAll('.apiac-auth-form').forEach(function (form) {\n\t\t\/\/ 1) Heading \u2014 reuses the already-translated tab label text\n\t\tvar tabBtn = wrap.querySelector('.apiac-fc-tab[data-form=\"' + form.dataset.form + '\"]');\n\t\tvar heading = document.createElement('h2');\n\t\theading.className = 'apiac-auth-heading';\n\t\theading.textContent = tabBtn ? tabBtn.textContent : '';\n\t\tform.parentNode.insertBefore(heading, form);\n\n\t\t\/\/ 2) Placeholders + password eye toggle\n\t\tform.querySelectorAll('.apiac-fc-input').forEach(function (input) {\n\t\t\tvar name = input.getAttribute('name');\n\t\t\tif (placeholders[name]) {\n\t\t\t\tinput.setAttribute('placeholder', placeholders[name][locale]);\n\t\t\t}\n\n\t\t\tif (input.type === 'password') {\n\t\t\t\tvar pwWrap = document.createElement('div');\n\t\t\t\tpwWrap.className = 'apiac-pw-wrap';\n\t\t\t\tinput.parentNode.insertBefore(pwWrap, input);\n\t\t\t\tpwWrap.appendChild(input);\n\n\t\t\t\tvar toggle = document.createElement('span');\n\t\t\t\ttoggle.className = 'apiac-pw-toggle';\n\t\t\t\ttoggle.innerHTML = eyeClosedSVG;\n\t\t\t\tpwWrap.appendChild(toggle);\n\n\t\t\t\ttoggle.addEventListener('click', function () {\n\t\t\t\t\tvar isPassword = input.type === 'password';\n\t\t\t\t\tinput.type = isPassword ? 'text' : 'password';\n\t\t\t\t\ttoggle.innerHTML = isPassword ? eyeOpenSVG : eyeClosedSVG;\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\t\/\/ 3) Move the submit button into a row with a \"switch form\" link\n\t\tvar submitBtn = form.querySelector('.apiac-fc-btn[type=\"submit\"]');\n\t\tif (submitBtn) {\n\t\t\tvar row = document.createElement('div');\n\t\t\trow.className = 'apiac-auth-submit-row';\n\t\t\tsubmitBtn.parentNode.insertBefore(row, submitBtn);\n\t\t\trow.appendChild(submitBtn);\n\n\t\t\tvar isLogin = form.dataset.form === 'login';\n\t\t\tvar otherTabBtn = isLogin ? registerTabBtn : loginTabBtn;\n\n\t\t\tvar switchLink = document.createElement('button');\n\t\t\tswitchLink.type = 'button';\n\t\t\tswitchLink.className = 'apiac-auth-switch-link';\n\t\t\tswitchLink.textContent = otherTabBtn.textContent;\n\t\t\tswitchLink.addEventListener('click', function () {\n\t\t\t\totherTabBtn.click(); \/\/ reuses the plugin's own existing tab-switch logic\n\t\t\t});\n\t\t\trow.appendChild(switchLink);\n\t\t}\n\t});\n});\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\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>\u4e3b\u9875 &gt; \u5728\u7ebf\u6848\u4f8b\u63d0\u4ea4 &gt; \u767b\u5f55\u6ce8\u518c \u767b\u5f55\u6ce8\u518c<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-3763","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/crazydoutest.com\/jap\/wp-json\/wp\/v2\/pages\/3763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crazydoutest.com\/jap\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/crazydoutest.com\/jap\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/crazydoutest.com\/jap\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crazydoutest.com\/jap\/wp-json\/wp\/v2\/comments?post=3763"}],"version-history":[{"count":4,"href":"https:\/\/crazydoutest.com\/jap\/wp-json\/wp\/v2\/pages\/3763\/revisions"}],"predecessor-version":[{"id":3768,"href":"https:\/\/crazydoutest.com\/jap\/wp-json\/wp\/v2\/pages\/3763\/revisions\/3768"}],"wp:attachment":[{"href":"https:\/\/crazydoutest.com\/jap\/wp-json\/wp\/v2\/media?parent=3763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}