var 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() { var body = document.body; body.insertAdjacentHTML('afterbegin', ``); insertResumatorWrapper(); } } function insertResumatorWrapper(){ var resumatorWrapper = document.getElementById("resumator-wrapper"); resumatorScript.insertAdjacentHTML('afterend', ``) resumatorWrapper.insertAdjacentHTML('beforeend', '') resumatorWrapper.insertAdjacentHTML('beforeend', ``) } function resumatorFormatSource(resumatorResultSource){ return encodeURIComponent(resumatorResultSource); } function resumatorApplyTogglebUsBWHm4zG(){ var resumatorApplyForm = document.getElementById("resumator-applyform-bUsBWHm4zG"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-bUsBWHm4zG"); var resumatorApplyButton = document.getElementById("resumator-applybutton-bUsBWHm4zG"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-bUsBWHm4zG"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-bUsBWHm4zG"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-bUsBWHm4zG"); //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://Smartergridsolutions.applytojob.com/apply/embed/form/bUsBWHm4zG?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardTogglebUsBWHm4zG(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-bUsBWHm4zG"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-bUsBWHm4zG"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-bUsBWHm4zG"); var resumatorApplyForm = document.getElementById("resumator-applyform-bUsBWHm4zG"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-bUsBWHm4zG"); var resumatorApplyButton = document.getElementById("resumator-applybutton-bUsBWHm4zG"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://Smartergridsolutions.applytojob.com/apply/embed/forward/bUsBWHm4zG"; //}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 resumatorApplyToggleMxqqTdKd1E(){ var resumatorApplyForm = document.getElementById("resumator-applyform-MxqqTdKd1E"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-MxqqTdKd1E"); var resumatorApplyButton = document.getElementById("resumator-applybutton-MxqqTdKd1E"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-MxqqTdKd1E"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-MxqqTdKd1E"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-MxqqTdKd1E"); //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://Smartergridsolutions.applytojob.com/apply/embed/form/MxqqTdKd1E?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardToggleMxqqTdKd1E(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-MxqqTdKd1E"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-MxqqTdKd1E"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-MxqqTdKd1E"); var resumatorApplyForm = document.getElementById("resumator-applyform-MxqqTdKd1E"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-MxqqTdKd1E"); var resumatorApplyButton = document.getElementById("resumator-applybutton-MxqqTdKd1E"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://Smartergridsolutions.applytojob.com/apply/embed/forward/MxqqTdKd1E"; //}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 resumatorApplyToggle0uEmgrPBb9(){ var resumatorApplyForm = document.getElementById("resumator-applyform-0uEmgrPBb9"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-0uEmgrPBb9"); var resumatorApplyButton = document.getElementById("resumator-applybutton-0uEmgrPBb9"); //var resumatorForwardForm = document.getElementById("resumator-forwardform-0uEmgrPBb9"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-0uEmgrPBb9"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-0uEmgrPBb9"); //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://Smartergridsolutions.applytojob.com/apply/embed/form/0uEmgrPBb9?source="+encodeURIComponent(resumatorSource); }else{ resumatorApplyButton.value = "Apply Now"; resumatorApplyForm.style.display = "none"; } window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } function resumatorForwardToggle0uEmgrPBb9(){ //var resumatorForwardForm = document.getElementById("resumator-forwardform-0uEmgrPBb9"); //var resumatorForwardFrame = document.getElementById("resumator-forwardframe-0uEmgrPBb9"); //var resumatorForwardButton = document.getElementById("resumator-forwardbutton-0uEmgrPBb9"); var resumatorApplyForm = document.getElementById("resumator-applyform-0uEmgrPBb9"); var resumatorApplyFrame = document.getElementById("resumator-applyframe-0uEmgrPBb9"); var resumatorApplyButton = document.getElementById("resumator-applybutton-0uEmgrPBb9"); resumatorApplyForm.style.display = "none"; resumatorApplyButton.value = "Apply Now"; //if( resumatorForwardForm.style.display != "block" ){ // resumatorForwardButton.value = "Cancel"; // resumatorForwardForm.style.display = "block"; // resumatorForwardFrame.src = "https://Smartergridsolutions.applytojob.com/apply/embed/forward/0uEmgrPBb9"; //}else{ // resumatorForwardButton.value = "Forward Position"; // resumatorForwardForm.style.display = "none"; //} window.jQuery(resumatorApplyButton).trigger("change"); //window.jQuery(resumatorForwardButton).trigger("change"); } if (typeof window.jQuery === "undefined") {var 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";var noConflictScript = document.createElement("script");noConflictScript.type = "text/javascript";noConflictScript.appendChild(document.createTextNode("$.noConflict();"));var resumatorScript = document.currentScript;resumatorScript.after(jqueryScript);resumatorScript.after(noConflictScript);}