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 resumatorApplyToggleC0Tj56g3G9(){ var resumatorApplyForm = document.getElementById("resumator-applyform-C0Tj56g3G9"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-C0Tj56g3G9"); var resumatorApplyButton = document.getElementById("resumator-applybutton-C0Tj56g3G9"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-C0Tj56g3G9"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-C0Tj56g3G9"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-C0Tj56g3G9"); //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://sewersquad.applytojob.com/apply/embed/form/C0Tj56g3G9?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardToggleC0Tj56g3G9(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-C0Tj56g3G9"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-C0Tj56g3G9"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-C0Tj56g3G9"); var resumatorApplyForm = document.getElementById("resumator-applyform-C0Tj56g3G9"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-C0Tj56g3G9"); var resumatorApplyButton = document.getElementById("resumator-applybutton-C0Tj56g3G9"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://sewersquad.applytojob.com/apply/embed/forward/C0Tj56g3G9"; //}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 resumatorApplyToggleg8wDYFmzkZ(){ var resumatorApplyForm = document.getElementById("resumator-applyform-g8wDYFmzkZ"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-g8wDYFmzkZ"); var resumatorApplyButton = document.getElementById("resumator-applybutton-g8wDYFmzkZ"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-g8wDYFmzkZ"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-g8wDYFmzkZ"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-g8wDYFmzkZ"); //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://sewersquad.applytojob.com/apply/embed/form/g8wDYFmzkZ?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardToggleg8wDYFmzkZ(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-g8wDYFmzkZ"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-g8wDYFmzkZ"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-g8wDYFmzkZ"); var resumatorApplyForm = document.getElementById("resumator-applyform-g8wDYFmzkZ"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-g8wDYFmzkZ"); var resumatorApplyButton = document.getElementById("resumator-applybutton-g8wDYFmzkZ"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://sewersquad.applytojob.com/apply/embed/forward/g8wDYFmzkZ"; //}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 resumatorApplyToggle7dxU0MPyNa(){ var resumatorApplyForm = document.getElementById("resumator-applyform-7dxU0MPyNa"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-7dxU0MPyNa"); var resumatorApplyButton = document.getElementById("resumator-applybutton-7dxU0MPyNa"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-7dxU0MPyNa"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-7dxU0MPyNa"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-7dxU0MPyNa"); //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://sewersquad.applytojob.com/apply/embed/form/7dxU0MPyNa?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardToggle7dxU0MPyNa(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-7dxU0MPyNa"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-7dxU0MPyNa"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-7dxU0MPyNa"); var resumatorApplyForm = document.getElementById("resumator-applyform-7dxU0MPyNa"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-7dxU0MPyNa"); var resumatorApplyButton = document.getElementById("resumator-applybutton-7dxU0MPyNa"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://sewersquad.applytojob.com/apply/embed/forward/7dxU0MPyNa"; //}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);}