{"id":217,"date":"2019-09-10T19:13:14","date_gmt":"2019-09-10T19:13:14","guid":{"rendered":"https:\/\/alpha.eiqhome.com\/utilities\/?page_id=217"},"modified":"2025-09-02T06:30:25","modified_gmt":"2025-09-02T06:30:25","slug":"contact-us","status":"publish","type":"page","link":"https:\/\/www.eiqhome.com\/utilities\/contact-us\/","title":{"rendered":"Contact Us"},"content":{"rendered":"\n<style>\nlabel{display:block;font-size:14px;color:#333;margin-bottom:8px;}\nlabel em{font-style:normal;color:#FF7171;font-weight:bold;margin-right:4px;}\ninput[type=\"text\"], textarea{max-width:480px;width:90%;font-size:14px;color:#333;padding:8px 12px;border:1px solid #bbb;border-radius:4px;}\ntextarea{height:160px;}\n.form-row{margin:16px 0;}\nbutton{background:#38C3A8;color:#fff;font-weight:bold;font-size:14px;border:none;border-radius:4px;line-height:44px;width:160px;text-align:center;cursor:pointer;}\na{color: #38C3A8;}\np{text-indent: 0 !important;}\n<\/style>\n<p style=\"text-indent: 0;\">We are here to help and answer any question you might have. Our team is ready to answer all your concern.<\/p>\n<p style=\"text-indent: 0;\">You may also email <a href=\"mailto:support@EIQhome.com\">support@EIQhome.com<\/a>.<\/p>\n<p style=\"text-indent: 0;\">We look forward to hear from you.<\/p>\n<form id=\"form-msg\">\n<div class=\"form-row\">\n<label><em>*<\/em>Name:<\/label>\n<input type=\"text\" name=\"name\">\n<\/div>\n<div class=\"form-row\">\n<label><em>*<\/em>Email:<\/label>\n<input type=\"text\" name=\"email\">\n<\/div>\n<div class=\"form-row\">\n<label><em>*<\/em>Message:<\/label>\n<textarea name=\"message\"><\/textarea>\n<\/div>\n<button type=\"submit\">Send<\/button>\n<\/form>\n<script src=\"https:\/\/cdn.staticfile.org\/jquery\/3.4.1\/jquery.min.js\"><\/script>\n<!-- Email Verification Modal -->\n<div id=\"evm-overlay\" style=\"display:none; position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:9999;\">\n  <div style=\"max-width:420px; margin:10vh auto; background:#fff; border-radius:12px; padding:20px; box-shadow:0 8px 24px rgba(0,0,0,0.15);\">\n    <div style=\"display:flex; justify-content:space-between; align-items:center; margin-bottom:12px;\">\n      <h3 style=\"margin:0; font-size:18px;\">Email Verification<\/h3>\n      <button id=\"evm-close\" style=\"border:none; background:transparent; font-size:18px; line-height:1; cursor:pointer;color:#999; text-align:right; width:auto;\">\u2715<\/button>\n    <\/div>\n    <p id=\"evm-desc\" style=\"margin:8px 0 16px; color:#444;\"><\/p>\n    <label for=\"evm-code\" style=\"display:block; font-size:14px; margin-bottom:6px;\">Verification code<\/label>\n    <input id=\"evm-code\" type=\"text\" inputmode=\"numeric\" placeholder=\"Enter 6-digit code\"\/>\n    <div style=\"display:flex; justify-content:space-between; align-items:center; margin-top:10px; margin-bottom:10px;\">\n      <button id=\"evm-resend\" type=\"button\" style=\"border:none; background:transparent; color:#38C3A8; cursor:pointer;text-align:left; width:auto;\">Resend code<\/button>\n      <span id=\"evm-countdown\" style=\"font-size:12px; color:#666;\"><\/span>\n    <\/div>\n    <button id=\"evm-verify\" type=\"button\">Verify &amp; Submit<\/button>\n    <div id=\"evm-msg\" style=\"margin-top:10px; font-size:13px;\"><\/div>\n  <\/div>\n<\/div>\n<script>\n\/\/ === Email Verification Flow ===\nconst TWOFA_BASE = 'https:\/\/www.powerlego.com\/ApiGateway\/v2\/two_factor';\nconst TWOFA_HEADERS = { 'Content-Type':'application\/json', 'Authorization':'Bearer c346b9eb4d8f1161d01cf7c88e66c181' };\nconst evm = {\n  overlay: () => document.getElementById('evm-overlay'),\n  desc: () => document.getElementById('evm-desc'),\n  code: () => document.getElementById('evm-code'),\n  btnClose: () => document.getElementById('evm-close'),\n  btnResend: () => document.getElementById('evm-resend'),\n  btnVerify: () => document.getElementById('evm-verify'),\n  countdown: () => document.getElementById('evm-countdown'),\n  msg: () => document.getElementById('evm-msg'),\n};\nlet evmTimer=null, evmRemaining=0, evmEmail='', submitting2FA=false, pendingPayload=null;\nfunction evmShow(email){evmEmail=email; evm.desc().textContent=\"We've sent code to \"+email; evm.msg().textContent=''; evm.code().value=''; evm.overlay().style.display='block'; evmStartCountdown(30);} \nfunction evmHide(){evm.overlay().style.display='none'; evmStopCountdown();}\nfunction evmStartCountdown(sec){evmRemaining=sec; evm.btnResend().disabled=true; evm.btnResend().style.opacity=0.5; evmTick(); evmTimer=setInterval(evmTick,1000);} \nfunction evmStopCountdown(){if(evmTimer){clearInterval(evmTimer);evmTimer=null;} evm.countdown().textContent='';}\nfunction evmTick(){evm.countdown().textContent=evmRemaining>0?(\"You can resend in \"+evmRemaining+\"s\"):\"\"; if(evmRemaining<=0){evm.btnResend().disabled=false;evm.btnResend().style.opacity=1;evmStopCountdown();} evmRemaining--;}\nfunction evmMsg(text,ok){evm.msg().textContent=text; evm.msg().style.color=ok?'#2b7a0b':'#d33';}\nasync function twofaSendCode(email){const r=await fetch(TWOFA_BASE+'\/sendcode',{method:'POST',headers:TWOFA_HEADERS,body:JSON.stringify({contact:email,type:'email'})}); const d=await r.json().catch(()=>({})); if(!d||d.status!=='1') throw new Error(d?.response?.message||'Failed to send code'); return d;}\nasync function twofaVerifyCode(email, code){const r=await fetch(TWOFA_BASE+'\/verifyCode',{method:'POST',headers:TWOFA_HEADERS,body:JSON.stringify({contact:email,type:'email',code})}); const d=await r.json().catch(()=>({})); if(!d||d.status!=='1') throw new Error(d?.response?.message||'Verification failed'); return d;}\n$(document).on('click','#evm-close',()=>evmHide());\n$(document).on('click','#evm-resend',async()=>{if(!evmEmail)return; evmMsg('',true); try{await twofaSendCode(evmEmail); evmMsg('Verification code resent.',true); evmStartCountdown(30);}catch(err){evmMsg(err.message||'Failed to resend',false);}});\n$(document).on('click','#evm-verify',async function(){const code=(evm.code().value||'').trim(); if(!code){evmMsg('Please enter the verification code.',false);return;} evmMsg('Verifying...',true); const $btn=$(this); $btn.prop('disabled',true); try{await twofaVerifyCode(evmEmail,code); evmMsg('Verification successful. Submitting...',true); $.post('https:\/\/api.eiqhome.com\/user\/contact_us',pendingPayload,function(data){if(data.status==='0')alert(data.message); if(data.status==='1')alert('Your message has been sent. Thank you!');}).always(()=>{$btn.prop('disabled',false);evmHide();submitting2FA=false;});}catch(err){evmMsg(err.message||'Verification failed',false);$btn.prop('disabled',false);}});\n\n$('#form-msg').submit(async function(event){\n  event.preventDefault();\n  if(submitting2FA)return;\n  submitting2FA=true;\n  const name=$('input[name=\"name\"]').val();\n  const email=$('input[name=\"email\"]').val();\n  const message=$('textarea[name=\"message\"]').val();\n  if(!name||!email||!message){alert('All fields are required.');submitting2FA=false;return;}\n  pendingPayload={name,email,message};\n  const userData=localStorage.getItem('mpUser')?JSON.parse(localStorage.getItem('mpUser')):null;\n  if(userData){pendingPayload.uid=userData.uid;pendingPayload.token=userData.token;}\n  try{await twofaSendCode(email); evmShow(email); evmMsg('Verification code sent successfully.',true);}catch(err){alert(err.message||'Failed to send verification code.');submitting2FA=false;}\n});\n\/\/ === \/Email Verification Flow ===\n<\/script>\n\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are here to help and answer any question you might have. Our team is ready to answer all your concern. You may also email support@EIQhome.com. We look forward to hear from you. *Name: *Email: *Message: Send Email Verification \u2715 Verification code Resend code Verify &amp; Submit<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-content-en.php","meta":{"_glsr_average":0,"_glsr_ranking":0,"_glsr_reviews":0},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.eiqhome.com\/utilities\/wp-json\/wp\/v2\/pages\/217"}],"collection":[{"href":"https:\/\/www.eiqhome.com\/utilities\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.eiqhome.com\/utilities\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.eiqhome.com\/utilities\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.eiqhome.com\/utilities\/wp-json\/wp\/v2\/comments?post=217"}],"version-history":[{"count":59,"href":"https:\/\/www.eiqhome.com\/utilities\/wp-json\/wp\/v2\/pages\/217\/revisions"}],"predecessor-version":[{"id":539,"href":"https:\/\/www.eiqhome.com\/utilities\/wp-json\/wp\/v2\/pages\/217\/revisions\/539"}],"wp:attachment":[{"href":"https:\/\/www.eiqhome.com\/utilities\/wp-json\/wp\/v2\/media?parent=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}