{"id":44,"date":"2015-10-29T04:08:52","date_gmt":"2015-10-29T04:08:52","guid":{"rendered":"https:\/\/roycewire.com\/?page_id=44"},"modified":"2015-10-29T04:26:54","modified_gmt":"2015-10-29T04:26:54","slug":"contact","status":"publish","type":"page","link":"https:\/\/roycewire.com\/?page_id=44","title":{"rendered":"Contact"},"content":{"rendered":"        <script type=\"text\/javascript\">\n         function cp_contactformtoemail_pform_doValidate_1(form)\n         {\n            document.cp_contactformtoemail_pform_1.cp_ref_page.value = document.location;\n            $dexQuery = jQuery.noConflict();            if (document.cp_contactformtoemail_pform_1.hdcaptcha_cp_contactformtoemail_post.value == '') { setTimeout( \"cp_contactformtoemail_cerror_1()\", 100); return false; }\n            var result = $dexQuery.ajax({ type: \"GET\", url: \"\/?ps=_1&cp_contactformtoemail_pform_process=2&cp_contactformtoemail_id=1&inAdmin=1&ps=_1&hdcaptcha_cp_contactformtoemail_post=\"+document.cp_contactformtoemail_pform_1.hdcaptcha_cp_contactformtoemail_post.value, async: false }).responseText;\n            if (result.indexOf(\"captchafailed\") != -1) {\n                $dexQuery(\"#captchaimg_1\").attr('src', $dexQuery(\"#captchaimg_1\").attr('src')+'&'+Math.floor((Math.random() * 99999) + 1));\n                setTimeout( \"cp_contactformtoemail_cerror_1()\", 100);\n                return false;\n            } else             {\n                var cpefb_error = 0;\n                $dexQuery(\"#cp_contactformtoemail_pform_1\").find(\".cpefb_error\").each(function(index){\n                    if ($dexQuery(this).css(\"display\")!=\"none\")\n                        cpefb_error++;\n                    });\n                if (cpefb_error) return false;\n                if (document.cp_contactformtoemail_pform_1.cp_contactformtoemail_pform_status.value != '0')\n                           return false;\n                document.getElementById(\"refpage_1\").value = document.location;\n                cfte_blink(\".pbSubmit\");\n                document.cp_contactformtoemail_pform_1.cp_contactformtoemail_pform_status.value = '2';document.cp_contactformtoemail_pform_1.cp_contactformtoemail_pform_status.value = '1';\n                       (function cfteDoAjaxSubmit(retried) {\n                         var $form = $dexQuery(\"#cp_contactformtoemail_pform_1\");\n                         $form.find(\".cfte_submit_error\").remove();\n                         function resetSubmitUi() {\n                             document.cp_contactformtoemail_pform_1.cp_contactformtoemail_pform_status.value = '0';\n                             $form.find(\".pbSubmit\").stop(true, true).css('opacity', 1).show();\n                         }\n                         function showSubmitError(errText) {\n                             resetSubmitUi();\n                             var $err = $dexQuery(document.createElement('div'))\n                                 .addClass('cfte_submit_error')\n                                 .attr('role', 'alert')\n                                 .css({\n                                     margin: '10px 0',\n                                     padding: '10px 14px',\n                                     border: '1px solid #dc3232',\n                                     background: '#fef2f2',\n                                     color: '#991b1b',\n                                     borderRadius: '4px'\n                                 })\n                                 .text(errText);\n                             $form.prepend($err);\n                         }\n                         $dexQuery.ajax({\n                           type: \"POST\",\n                           url: '',\n                           data: $form.serialize(),\n                           success: function(data)\n                           {\n                               var resp = (typeof data === 'string') ? $dexQuery.trim(data.replace(\/^\\uFEFF\/, '')) : '';\n                               var isOk = false;\n                               if (resp === 'OK')\n                               {\n                                   isOk = true;\n                               }\n                               else if (Math.floor(resp.length \/ 1500) === 0)\n                               {\n                                   if (!\/\\x3chtml|\\x3c!doctype\/i.test(resp))\n                                   {\n                                       if (\/(?:\\r?\\n|\\x3cbr\\s*\\\/?\\x3e|\\s)OK$\/.test(resp))\n                                       {\n                                           isOk = true;\n                                       }\n                                   }\n                               }\n                               if (isOk)\n                               {\n                                   resetSubmitUi();\n                                                                          document.getElementById('cp_contactformtoemail_pform_1').innerHTML ='<a id=\"cftejump\"><\/a>Your message has been successfully sent.';\n                                       var tag = $dexQuery(\"#cftejump\");\n                                       $dexQuery('html,body').animate({scrollTop: tag.offset().top-60},'fast');\n                                                                    }\n                               else if (resp === 'captchafailed')\n                               {\n                                   resetSubmitUi();\n                                   var $cimg = $dexQuery(\"#captchaimg_1\");\n                                   if ($cimg.length) {\n                                       $cimg.attr('src', $cimg.attr('src') + '\\x26' + Math.floor((Math.random() * 99999) + 1));\n                                   }\n                                   setTimeout(\"cp_contactformtoemail_cerror_1()\", 100);\n                               }\n                               else if (resp.indexOf('Nonce not detected') !== -1)\n                               {\n                                   if (!retried)\n                                   {\n                                       $dexQuery.ajax({\n                                           type: \"POST\",\n                                           url: 'https:\/\/roycewire.com\/wp-admin\/admin-ajax.php',\n                                           data: { action: 'cfte_get_nonce' },\n                                           dataType: 'json',\n                                           success: function(nresp) {\n                                               var freshNonce = '';\n                                               if (nresp) {\n                                                   if (nresp.success) {\n                                                       if (nresp.data) {\n                                                           if (nresp.data.nonce) {\n                                                               freshNonce = nresp.data.nonce;\n                                                           }\n                                                       }\n                                                   }\n                                               }\n                                               if (freshNonce !== '') {\n                                                   var $nonceInput = $form.find('input[name=\"anonce\"]');\n                                                   if ($nonceInput.length) {\n                                                       $nonceInput.val(freshNonce);\n                                                       cfteDoAjaxSubmit(true);\n                                                       return;\n                                                   }\n                                               }\n                                               showSubmitError('Your session has expired. Please reload the page and try again.');\n                                           },\n                                           error: function() {\n                                               showSubmitError('Your session has expired. Please reload the page and try again.');\n                                           }\n                                       });\n                                   }\n                                   else\n                                   {\n                                       showSubmitError('Your session has expired. Please reload the page and try again.');\n                                   }\n                               }\n                               else\n                               {\n                                   var fallbackErr = 'There was an error sending your message. Please reload the page and try again.';\n                                   var isHtml = (resp === '' || Math.floor(resp.length \/ 401) !== 0 || \/\\x3c[a-z][\\s\\S]*\\x3e\/i.test(resp));\n                                   showSubmitError(isHtml ? fallbackErr : resp);\n                               }\n                           },\n                           error: function()\n                           {\n                               showSubmitError('Could not submit the form due to a server or network error. Please try again.');\n                           }\n                         });\n                       })(false);\n                       return false;\n                                }\n         }\n         function cfte_blink(selector){\n                 try {\n                     $dexQuery = jQuery.noConflict();\n                     $dexQuery(selector).fadeOut(700, function(){\n                         $dexQuery(this).fadeIn(700, function(){\n                             try {\n                                 if (document.cp_contactformtoemail_pform_1.cp_contactformtoemail_pform_status.value != '0')\n                                     cfte_blink(this);\n                             } catch (e) {}\n                         });\n                     });\n                 } catch (e) {}\n         }\n         function cp_contactformtoemail_cerror_1(){$dexQuery = jQuery.noConflict();$dexQuery(\"#hdcaptcha_error_1\").css('top',$dexQuery(\"#hdcaptcha_cp_contactformtoemail_post_1\").outerHeight());$dexQuery(\"#hdcaptcha_error_1\").css(\"display\",\"inline\");}\n        <\/script>\n        <div id=\"cftedialog\" style=\"display:none;\">Thank you.<\/div>\n        <form class=\"cpp_form no-prefetch\" name=\"cp_contactformtoemail_pform_1\" id=\"cp_contactformtoemail_pform_1\" action=\"\/?ahbnocache=935281\" method=\"post\" enctype=\"multipart\/form-data\" onsubmit=\"return cp_contactformtoemail_pform_doValidate_1(this);\"><input type=\"hidden\" name=\"cp_pform_psequence\" value=\"_1\" \/><input type=\"hidden\" name=\"cp_contactformtoemail_pform_process\" value=\"1\" \/><input type=\"hidden\" name=\"cp_contactformtoemail_id\" value=\"1\" \/><input type=\"hidden\" name=\"cp_ref_page\" value=\"\" \/><input type=\"hidden\" name=\"form_structure_1\" id=\"form_structure_1\" size=\"180\" value=\"[[{&quot;name&quot;:&quot;email&quot;,&quot;index&quot;:0,&quot;title&quot;:&quot;Email&quot;,&quot;ftype&quot;:&quot;femail&quot;,&quot;userhelp&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;required&quot;:true,&quot;predefined&quot;:&quot;&quot;,&quot;size&quot;:&quot;medium&quot;},{&quot;name&quot;:&quot;subject&quot;,&quot;index&quot;:1,&quot;title&quot;:&quot;Subject&quot;,&quot;required&quot;:true,&quot;ftype&quot;:&quot;ftext&quot;,&quot;userhelp&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;predefined&quot;:&quot;&quot;,&quot;size&quot;:&quot;medium&quot;},{&quot;name&quot;:&quot;message&quot;,&quot;index&quot;:2,&quot;size&quot;:&quot;large&quot;,&quot;required&quot;:true,&quot;title&quot;:&quot;Message&quot;,&quot;ftype&quot;:&quot;ftextarea&quot;,&quot;userhelp&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;predefined&quot;:&quot;&quot;}],[{&quot;title&quot;:&quot;Contact Form&quot;,&quot;description&quot;:&quot;&quot;,&quot;formlayout&quot;:&quot;top_aligned&quot;}]]\" \/><input type=\"hidden\" name=\"refpage_1\" id=\"refpage_1\" value=\"\"><input type=\"hidden\" name=\"cp_contactformtoemail_pform_status\" value=\"0\" \/><input name=\"anonce\" type=\"hidden\" value=\"2bef6682b4\"\/><input name=\"cftehp\" id=\"cftehp_1\" type=\"hidden\" value=\"1\"\/>\r\n<div id=\"fbuilder\">    \r\n    <div id=\"fbuilder_1\">\r\n        <div id=\"formheader_1\"><\/div>\r\n        <div id=\"fieldlist_1\"><\/div>\r\n    <\/div>\r\n<\/div>    \r\n<div style=\"display:none\">\r\n<input name=\"cftecontrolmessage\" type=\"text\" value=\"\"\/> \r\n<div id=\"cpcaptchalayer_1\" class=\"cpcaptchalayer\">\r\n  <div class=\"cfte-captcha-box\">\r\n    <div class=\"cfte-captcha-title\">\r\n      <span class=\"cfte-captcha-icon\" aria-hidden=\"true\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"\/><\/svg><\/span>\r\n      Security Code<span class=\"r\">*<\/span>\r\n    <\/div>\r\n    <div class=\"cfte-captcha-body\">\r\n      <div class=\"cfte-captcha-media\">\r\n        <img decoding=\"async\" src=\"\/?cp_contactformtoemail_captcha=captcha&#038;ps=_1&#038;inAdmin=1&#038;width=180&#038;height=65&#038;letter_count=5&#038;min_size=25&#038;max_size=35&#038;noise=190&#038;noiselength=4&#038;bcolor=ffffff&#038;border=000000&#038;font=font-1.ttf\" id=\"captchaimg_1\" alt=\"Security code\" class=\"skip-lazy cfte-captcha-img\" \/>\r\n        <button type=\"button\" class=\"cfte-captcha-refresh\" title=\"Refresh security code\" aria-label=\"Refresh security code\" onclick=\"(function(imgId,inpId,errId){var img=document.getElementById(imgId);if(img){var s=img.src.replace(\/([&?])r=\\d+\/g,'').replace(\/&\\d+$\/,'');img.src=s+(s.indexOf('?')===-1?'?':'&')+'r='+Date.now();}var inp=document.getElementById(inpId);if(inp){inp.value='';inp.focus();}var err=document.getElementById(errId);if(err){err.style.display='none';}})('captchaimg_1','hdcaptcha_cp_contactformtoemail_post_1','hdcaptcha_error_1');\">\r\n          <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><polyline points=\"23 4 23 10 17 10\"\/><polyline points=\"1 20 1 14 7 14\"\/><path d=\"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15\"\/><\/svg>\r\n        <\/button>\r\n      <\/div>\r\n      <div class=\"cfte-captcha-field\">\r\n        <label class=\"cfte-captcha-prompt\" for=\"hdcaptcha_cp_contactformtoemail_post_1\">Please enter the security code:<\/label>\r\n        <div class=\"dfield cfte-captcha-input-wrap\">\r\n          <input type=\"text\" class=\"cfte-captcha-input\" size=\"20\" name=\"hdcaptcha_cp_contactformtoemail_post\" id=\"hdcaptcha_cp_contactformtoemail_post_1\" value=\"\" autocomplete=\"off\" oninput=\"var e=document.getElementById('hdcaptcha_error_1');if(e){e.style.display='none';}\" \/>\r\n          <div class=\"cpefb_error message\" id=\"hdcaptcha_error_1\" generated=\"true\" style=\"display:none;position: absolute; left: 0px; top: 25px;\">Please enter a valid captcha code.<\/div>\r\n        <\/div>\r\n      <\/div>\r\n    <\/div>\r\n  <\/div>\r\n<\/div>\r\n<\/div>\r\n<div id=\"cp_subbtn_1\" class=\"cp_subbtn\">Submit<\/div>\r\n<\/form>\r\n<script>\r\ntry{document.getElementById(\"cftehp_1\").value=\"25\";}catch(e){}\r\n<\/script>\r\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-44","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/roycewire.com\/index.php?rest_route=\/wp\/v2\/pages\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roycewire.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/roycewire.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/roycewire.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/roycewire.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=44"}],"version-history":[{"count":2,"href":"https:\/\/roycewire.com\/index.php?rest_route=\/wp\/v2\/pages\/44\/revisions"}],"predecessor-version":[{"id":49,"href":"https:\/\/roycewire.com\/index.php?rest_route=\/wp\/v2\/pages\/44\/revisions\/49"}],"wp:attachment":[{"href":"https:\/\/roycewire.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}