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 resumatorApplyToggleU0pQnllls3(){ var resumatorApplyForm = document.getElementById("resumator-applyform-U0pQnllls3"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-U0pQnllls3"); var resumatorApplyButton = document.getElementById("resumator-applybutton-U0pQnllls3"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-U0pQnllls3"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-U0pQnllls3"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-U0pQnllls3"); //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://tradesmenelectric.applytojob.com/apply/embed/form/U0pQnllls3?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardToggleU0pQnllls3(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-U0pQnllls3"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-U0pQnllls3"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-U0pQnllls3"); var resumatorApplyForm = document.getElementById("resumator-applyform-U0pQnllls3"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-U0pQnllls3"); var resumatorApplyButton = document.getElementById("resumator-applybutton-U0pQnllls3"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://tradesmenelectric.applytojob.com/apply/embed/forward/U0pQnllls3"; //}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 resumatorApplyToggle4kuhiW8HQY(){ var resumatorApplyForm = document.getElementById("resumator-applyform-4kuhiW8HQY"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-4kuhiW8HQY"); var resumatorApplyButton = document.getElementById("resumator-applybutton-4kuhiW8HQY"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-4kuhiW8HQY"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-4kuhiW8HQY"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-4kuhiW8HQY"); //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://tradesmenelectric.applytojob.com/apply/embed/form/4kuhiW8HQY?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardToggle4kuhiW8HQY(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-4kuhiW8HQY"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-4kuhiW8HQY"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-4kuhiW8HQY"); var resumatorApplyForm = document.getElementById("resumator-applyform-4kuhiW8HQY"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-4kuhiW8HQY"); var resumatorApplyButton = document.getElementById("resumator-applybutton-4kuhiW8HQY"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://tradesmenelectric.applytojob.com/apply/embed/forward/4kuhiW8HQY"; //}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 resumatorApplyToggle8M9bFUvQI4(){ var resumatorApplyForm = document.getElementById("resumator-applyform-8M9bFUvQI4"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-8M9bFUvQI4"); var resumatorApplyButton = document.getElementById("resumator-applybutton-8M9bFUvQI4"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-8M9bFUvQI4"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-8M9bFUvQI4"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-8M9bFUvQI4"); //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://tradesmenelectric.applytojob.com/apply/embed/form/8M9bFUvQI4?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardToggle8M9bFUvQI4(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-8M9bFUvQI4"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-8M9bFUvQI4"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-8M9bFUvQI4"); var resumatorApplyForm = document.getElementById("resumator-applyform-8M9bFUvQI4"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-8M9bFUvQI4"); var resumatorApplyButton = document.getElementById("resumator-applybutton-8M9bFUvQI4"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://tradesmenelectric.applytojob.com/apply/embed/forward/8M9bFUvQI4"; //}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 resumatorApplyTogglekLVt91WYZN(){ var resumatorApplyForm = document.getElementById("resumator-applyform-kLVt91WYZN"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-kLVt91WYZN"); var resumatorApplyButton = document.getElementById("resumator-applybutton-kLVt91WYZN"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-kLVt91WYZN"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-kLVt91WYZN"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-kLVt91WYZN"); //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://tradesmenelectric.applytojob.com/apply/embed/form/kLVt91WYZN?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardTogglekLVt91WYZN(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-kLVt91WYZN"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-kLVt91WYZN"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-kLVt91WYZN"); var resumatorApplyForm = document.getElementById("resumator-applyform-kLVt91WYZN"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-kLVt91WYZN"); var resumatorApplyButton = document.getElementById("resumator-applybutton-kLVt91WYZN"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://tradesmenelectric.applytojob.com/apply/embed/forward/kLVt91WYZN"; //}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);}