Zendesk

Raffle Search as an application on Zendesk

As an administrator, set up Raffle Search on the Zendesk Help Site.

<script>
   (function () {
       window.addEventListener('load', () => {
           const form = document.getElementsByClassName["search-full"](0);
           const children = form.children;
           Array.from(children).forEach((child) => child.remove());

           let targetNode = document.createElement("div");
           targetNode.setAttribute("id", "raffle-target");
           targetNode.style.height = "3rem";
           targetNode.style.width = "100%";
           targetNode.style.position = "relative";
           form.append(targetNode);
       });

       var el = document.createElement("script");
       el.setAttribute("src", "https://cdn.raffle.ai/search/index.js");
       el.setAttribute("id", "raffle-sdk");
       el.setAttribute("defer", "");
       el.setAttribute("data-uid", "<uid>");
       document.head.appendChild(el);
   })();
</script>