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', '
Firefighter/EMT
Location: Belen, NM
Police Officer
Location: Belen, NMDepartment: Police
Water Department Director
Location: Belen, NMDepartment: Water
') resumatorWrapper.insertAdjacentHTML('beforeend', ``) } function resumatorFormatSource(resumatorResultSource){ return encodeURIComponent(resumatorResultSource); } function resumatorApplyToggleFAoiSsLEAM(){ var resumatorApplyForm = document.getElementById("resumator-applyform-FAoiSsLEAM"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-FAoiSsLEAM"); var resumatorApplyButton = document.getElementById("resumator-applybutton-FAoiSsLEAM"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-FAoiSsLEAM"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-FAoiSsLEAM"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-FAoiSsLEAM"); //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://cityofbelen.applytojob.com/apply/embed/form/FAoiSsLEAM?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardToggleFAoiSsLEAM(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-FAoiSsLEAM"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-FAoiSsLEAM"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-FAoiSsLEAM"); var resumatorApplyForm = document.getElementById("resumator-applyform-FAoiSsLEAM"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-FAoiSsLEAM"); var resumatorApplyButton = document.getElementById("resumator-applybutton-FAoiSsLEAM"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://cityofbelen.applytojob.com/apply/embed/forward/FAoiSsLEAM"; //}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 resumatorApplyToggleX0T3nE0c3N(){ var resumatorApplyForm = document.getElementById("resumator-applyform-X0T3nE0c3N"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-X0T3nE0c3N"); var resumatorApplyButton = document.getElementById("resumator-applybutton-X0T3nE0c3N"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-X0T3nE0c3N"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-X0T3nE0c3N"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-X0T3nE0c3N"); //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://cityofbelen.applytojob.com/apply/embed/form/X0T3nE0c3N?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardToggleX0T3nE0c3N(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-X0T3nE0c3N"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-X0T3nE0c3N"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-X0T3nE0c3N"); var resumatorApplyForm = document.getElementById("resumator-applyform-X0T3nE0c3N"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-X0T3nE0c3N"); var resumatorApplyButton = document.getElementById("resumator-applybutton-X0T3nE0c3N"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://cityofbelen.applytojob.com/apply/embed/forward/X0T3nE0c3N"; //}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 resumatorApplyToggle0FoLSyWCPN(){ var resumatorApplyForm = document.getElementById("resumator-applyform-0FoLSyWCPN"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-0FoLSyWCPN"); var resumatorApplyButton = document.getElementById("resumator-applybutton-0FoLSyWCPN"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-0FoLSyWCPN"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-0FoLSyWCPN"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-0FoLSyWCPN"); //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://cityofbelen.applytojob.com/apply/embed/form/0FoLSyWCPN?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardToggle0FoLSyWCPN(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-0FoLSyWCPN"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-0FoLSyWCPN"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-0FoLSyWCPN"); var resumatorApplyForm = document.getElementById("resumator-applyform-0FoLSyWCPN"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-0FoLSyWCPN"); var resumatorApplyButton = document.getElementById("resumator-applybutton-0FoLSyWCPN"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://cityofbelen.applytojob.com/apply/embed/forward/0FoLSyWCPN"; //}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);}