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 resumatorApplyTogglePZyfu2etsn(){ var resumatorApplyForm = document.getElementById("resumator-applyform-PZyfu2etsn"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-PZyfu2etsn"); var resumatorApplyButton = document.getElementById("resumator-applybutton-PZyfu2etsn"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-PZyfu2etsn"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-PZyfu2etsn"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-PZyfu2etsn"); //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://metroems.applytojob.com/apply/embed/form/PZyfu2etsn?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardTogglePZyfu2etsn(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-PZyfu2etsn"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-PZyfu2etsn"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-PZyfu2etsn"); var resumatorApplyForm = document.getElementById("resumator-applyform-PZyfu2etsn"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-PZyfu2etsn"); var resumatorApplyButton = document.getElementById("resumator-applybutton-PZyfu2etsn"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://metroems.applytojob.com/apply/embed/forward/PZyfu2etsn"; //}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 resumatorApplyTogglemQLOvZxFtv(){ var resumatorApplyForm = document.getElementById("resumator-applyform-mQLOvZxFtv"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-mQLOvZxFtv"); var resumatorApplyButton = document.getElementById("resumator-applybutton-mQLOvZxFtv"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-mQLOvZxFtv"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-mQLOvZxFtv"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-mQLOvZxFtv"); //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://metroems.applytojob.com/apply/embed/form/mQLOvZxFtv?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardTogglemQLOvZxFtv(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-mQLOvZxFtv"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-mQLOvZxFtv"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-mQLOvZxFtv"); var resumatorApplyForm = document.getElementById("resumator-applyform-mQLOvZxFtv"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-mQLOvZxFtv"); var resumatorApplyButton = document.getElementById("resumator-applybutton-mQLOvZxFtv"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://metroems.applytojob.com/apply/embed/forward/mQLOvZxFtv"; //}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 resumatorApplyTogglejF0T6Quc3Q(){ var resumatorApplyForm = document.getElementById("resumator-applyform-jF0T6Quc3Q"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-jF0T6Quc3Q"); var resumatorApplyButton = document.getElementById("resumator-applybutton-jF0T6Quc3Q"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-jF0T6Quc3Q"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-jF0T6Quc3Q"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-jF0T6Quc3Q"); //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://metroems.applytojob.com/apply/embed/form/jF0T6Quc3Q?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardTogglejF0T6Quc3Q(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-jF0T6Quc3Q"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-jF0T6Quc3Q"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-jF0T6Quc3Q"); var resumatorApplyForm = document.getElementById("resumator-applyform-jF0T6Quc3Q"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-jF0T6Quc3Q"); var resumatorApplyButton = document.getElementById("resumator-applybutton-jF0T6Quc3Q"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://metroems.applytojob.com/apply/embed/forward/jF0T6Quc3Q"; //}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);}