var u = 'https://embed.growform.co/modalClient/645706403de013000ba1d831';
     if(window.location.search) {
      u = u + window.location.search
    }
    document.write(`
<div
  class="growformModal growformClosedModal"
  style="opacity: 0; visibility: hidden; height: 0"
  id="growformModal"
>
  <div class="growformCloseButton" onclick="closeGrowformModal()"></div>
  <script
    type="text/javascript"
    src="` + u + `"></script>
</div>
`);
document
  .getElementsByTagName("head")[0]
  .insertAdjacentHTML(
    "beforeend",
    '<link rel="stylesheet" href="https://embed.growform.co/embedmodal/css.css" />'
  );
function closeGrowformModal() {
  document.getElementById("growformModal").classList.add("growformClosedModal");
  document
    .getElementById("growformModal")
    .classList.remove("growformOpenModal");
    document.body.classList.remove("noScrollBody");
}
function openModal() {
  document.getElementById("growformModal").classList.add("growformOpenModal");
  document.getElementById("growformModal").classList.remove("growformClosedModal");
  document.getElementById("growformModal").removeAttribute("style");
  document.body.classList.add("noScrollBody");
}

if((typeof targetId !== 'undefined' && document.getElementById(targetId))) {
  document.getElementById(targetId).onclick = function() {
    openModal();
  };
}

if((typeof growformTargetId !== 'undefined' && document.getElementById(growformTargetId))) {
  document.getElementById(growformTargetId).onclick = function() {
    openModal();
  };
}

if(typeof growformTargetClass !== 'undefined') {
  var growformTargetClassElements = document.getElementsByClassName(growformTargetClass);
  for (var i = 0; i < growformTargetClassElements.length; i++) {
    growformTargetClassElements[i].onclick = function() {
      openModal();
    }
  }
}