var appendPcrScript = function(src, callback){ var scr = document.createElement('script'); scr.src = src; scr.async = false; if(callback) {scr.onload = callback;} document.head.appendChild(scr); } var appendPcrStyle = function(src){ var stl = document.createElement('link'); stl.href = src; stl.rel = 'stylesheet'; document.head.appendChild(stl); } appendPcrScript('https://www2.pcrecruiter.net/pcrimg/js/SearchWidgets.js?ver=202404241114220'); var scripts = document.getElementsByTagName('script'); for (i = 0; i < scripts.length; i++){ if(scripts[i].src.indexOf('action=opencustomform') > -1){ window.pcrContainer = document.createElement('div'); window.pcrContainer.className = 'pcrcustomform default-multiselect'; scripts[i].insertAdjacentElement('afterend',window.pcrContainer); } } var postload = function() { var origin = document.location.href; var matchesSite = checkWildcardMatching('*', origin) if(matchesSite){ window.pcrContainer.innerHTML = unescape('%3Cstyle%3E\r\n.reqField {border: 3px solid blue !important; }\r\n.validatemessage { background-color: red; color: #fff; padding: 10px; text-align: center; margin-bottom: 10px; }\r\n.thankyoumessage { background-color: #ccc; border: 1px solid #666; padding: 10px; text-align: center; margin-bottom: 10px;}\r\n.errormessage { background-color: red; color: #fff; border: 1px solid #666; padding: 10px; text-align: center; margin-bottom: 10px;}\r\n%3C/style%3E\r\n%3Cstyle%3E\n .multiselect-check-box { margin-right: 6px !important; }\n %3C/style%3E%3Cdiv%3E%3Cdiv class=%22errormessage%22 style=%22display: none;%22%3EAn error has occurred submitting your form. Please click submit again or try again later.%3C/div%3E%3Cdiv data-redirect=%22%22 class=%22thankyoumessage%22 style=%22display: none;%22%3EThank you for subscribing!%3C/div%3E%3C/div%3E%3Cform enctype=%22multipart/form-data%22 data-submitmethod=%22%22 method=%22POST%22 name=%22custompcrform%22 id=%22custompcrform%22 action=%22https://www2.pcrecruiter.net/pcrbin/jobboard.aspx%22%3E%3Cinput aria-hidden=%22true%22 type=%22hidden%22 name=%22pcr-id%22 value=%22fG9sc29uc2VhcmNoZ3JvdXAuiLc1WDgpET8zMs/wFtLyXCU5E3WyTSz0EtV1R4cdEc+zwP1mSjn6lYoB8zdtJoH9PT4rp3E0DS2TAwwfKmFN%22%3E%3Cinput aria-hidden=%22true%22 type=%22hidden%22 name=%22sid%22 value=%22980127087146392%22%3E%3Cinput aria-hidden=%22true%22 type=%22hidden%22 name=%22action%22 value=%22submitcustomform%22%3E%3Cdiv class=%22validatemessage%22 style=%22display: none;%22%3EPLEASE COMPLETE ALL REQUIRED FIELDS%3C/div%3E%3Cinput aria-hidden=%22true%22 type=%22hidden%22 name=%22prevSearch%22 id=%22prevSearch%22 value=%22%22%3E%3Cinput aria-hidden=%22true%22 type=%22hidden%22 name=%22fromcustom%22 id=%22fromcustom%22 value=%22y%22%3E%3Cdiv%3E%3Cspan%3E%3Cdiv class=%22form-group%22%3E%3Cinput autocomplete=%22on%22 class=%22form-control%22 type=%22text%22 id=%22Name.Email_Address%22 name=%22Name.Email_Address%22 placeholder=%22Email Address*%22 title=%22Email Address%22 data-required=%22y%22%3E%3C/div%3E%3Cdiv class=%22form-group%22%3E%3Cul data-parent-id=%22Name.Details.Email-OptIn%22 class=%22list-group multiselect%22 data-required=%22y%22%3E%3Cli class=%22list-group-item disabled%22%3E%3Ch5%3EEmail-OptIn*%3C/h5%3E%3C/li%3E%3Cli class=%22list-group-item multiselect-item%22%3E%3Cinput class=%22multiselect-check-box%22 id=%22Name.Details.Email-OptIn_Subscribe to newsletter%22 name=%22Name.Details.Email-OptIn%22 type=%22checkbox%22 value=%22Subscribe to newsletter%22%3E%3Clabel class=%22multi-select-label%22 for=%22Name.Details.Email-OptIn_Subscribe to newsletter%22%3ESubscribe to newsletter%3Cspan class=%22multiselect-check-icon%22%3E%3Cspan class=%22icon-Check%22%3E%3C/span%3E%3C/span%3E%3C/label%3E%3C/li%3E%3C/ul%3E%3C/div%3E%3C/span%3E%3C/div%3E%3Cdiv class=%22text-center%22%3E%3Cbutton id=%22customsubmit%22 type=%22button%22 class=%22centered%22%3ESubmit%3Cimg class=%22anisubmitting%22 style=%22width: 16px; margin-left: 3px; display: none;%22 src=%22https://www2.pcrecruiter.net/pcrimg/loading.gif%22%3E%3C/button%3E%3C/div%3E%3C/form%3E\r\n'); }else{ window.pcrContainer.innerHTML = unescape('%3Cdiv style=%22text-align:center;padding:20px; border:1px solid #666;%22 %3E %3Cdiv%3EAccess denied. Domain doesn\'t match Allowed Domain in custom form settings.%3C/div%3E%3Cdiv%3EFor preview please allow all domains.%3C/div%3E%3C/div%3E'); } appendPcrScript('https://www2.pcrecruiter.net/pcrimg/js/customforms.js?ver=202404241114220'); $ = jQuery; $('document').ready(function(){ $('#Name\\.Details\\.Email-OptIn_Yes').attr('checked','checked'); }) } appendPcrScript('https://www2.pcrecruiter.net/pcrimg/js/jobboard.js?ver=202404241114220',postload);