const resumatorScript = document.currentScript //Condition to check if the script tag is inside the body or head tag. if(document.body && document.body?.contains(resumatorScript)) { //Reders the HTML below the script tag mentioned inside body tag resumatorScript.insertAdjacentHTML('afterend', `
`); insertResumatorWrapper(); } else{ //Reders the HTML ath the begining of the body tag window.onload = function() { const body = document.body; body.insertAdjacentHTML('afterbegin', ``); insertResumatorWrapper(); } } function insertResumatorWrapper(){ const resumatorWrapper = document.getElementById("resumator-wrapper"); resumatorScript.insertAdjacentHTML('afterend', ``) resumatorWrapper.insertAdjacentHTML('beforeend', ' ') resumatorWrapper.insertAdjacentHTML('beforeend', ``) } function resumatorFormatSource(resumatorResultSource){ return encodeURIComponent(resumatorResultSource); } function resumatorApplyToggleNKpjS9JJ4h(){ var resumatorApplyForm = document.getElementById("resumator-applyform-NKpjS9JJ4h"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-NKpjS9JJ4h"); var resumatorApplyButton = document.getElementById("resumator-applybutton-NKpjS9JJ4h"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-NKpjS9JJ4h"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-NKpjS9JJ4h"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-NKpjS9JJ4h"); //resumatorForwardForm.style.display = "none"; //resumatorForwardButton.value = "Forward Position"; if( resumatorApplyForm.style.display != "block" ){ resumatorApplyButton.value = "Cancel"; resumatorApplyForm.style.display = "block"; resumatorSource = "Our Career Page Widget"; resumatorApplyFrame.src = "https://visitingangelstricitesandwallawalla.applytojob.com/apply/embed/form/NKpjS9JJ4h?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardToggleNKpjS9JJ4h(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-NKpjS9JJ4h"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-NKpjS9JJ4h"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-NKpjS9JJ4h"); var resumatorApplyForm = document.getElementById("resumator-applyform-NKpjS9JJ4h"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-NKpjS9JJ4h"); var resumatorApplyButton = document.getElementById("resumator-applybutton-NKpjS9JJ4h"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://visitingangelstricitesandwallawalla.applytojob.com/apply/embed/forward/NKpjS9JJ4h"; //}else{ // resumatorForwardButton.value = "Forward Position"; // resumatorForwardForm.style.display = "none"; //} window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorFormatSource(resumatorResultSource){ return encodeURIComponent(resumatorResultSource); } function resumatorApplyToggle5aOo3oVmew(){ var resumatorApplyForm = document.getElementById("resumator-applyform-5aOo3oVmew"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-5aOo3oVmew"); var resumatorApplyButton = document.getElementById("resumator-applybutton-5aOo3oVmew"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-5aOo3oVmew"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-5aOo3oVmew"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-5aOo3oVmew"); //resumatorForwardForm.style.display = "none"; //resumatorForwardButton.value = "Forward Position"; if( resumatorApplyForm.style.display != "block" ){ resumatorApplyButton.value = "Cancel"; resumatorApplyForm.style.display = "block"; resumatorSource = "Our Career Page Widget"; resumatorApplyFrame.src = "https://visitingangelstricitesandwallawalla.applytojob.com/apply/embed/form/5aOo3oVmew?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardToggle5aOo3oVmew(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-5aOo3oVmew"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-5aOo3oVmew"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-5aOo3oVmew"); var resumatorApplyForm = document.getElementById("resumator-applyform-5aOo3oVmew"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-5aOo3oVmew"); var resumatorApplyButton = document.getElementById("resumator-applybutton-5aOo3oVmew"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://visitingangelstricitesandwallawalla.applytojob.com/apply/embed/forward/5aOo3oVmew"; //}else{ // resumatorForwardButton.value = "Forward Position"; // resumatorForwardForm.style.display = "none"; //} window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } if (typeof window.jQuery === "undefined") {const jqueryScript = document.createElement("script");jqueryScript.type = "text/javascript";jqueryScript.charset = "utf-8";jqueryScript.src ="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js";const noConflictScript = document.createElement("script");noConflictScript.type = "text/javascript";noConflictScript.appendChild(document.createTextNode("$.noConflict();"));const resumatorScript = document.currentScript;resumatorScript.after(jqueryScript);resumatorScript.after(noConflictScript);}