Zendesk
Raffle Search as an application on Zendesk
As an administrator, set up Raffle Search on the Zendesk Help Site.
Steps
- Go to the Zendesk Help Center
- Click the GUIDE ADMIN link
- Go to the THEMES section
- Click CUSTOMIZE on the current theme
- Click EDIT CODE at the bottom of the page
- Click
document_head.hbs
to edit the theme header - Insert the Raffle Search script in the editor
- Click PUBLISH to save changes
<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>