Skip to content

Instantly share code, notes, and snippets.

@emptymalei
Created January 18, 2024 10:57
Show Gist options
  • Save emptymalei/7d6cbfad8dd76cc38ffb9155ca06ae04 to your computer and use it in GitHub Desktop.
Save emptymalei/7d6cbfad8dd76cc38ffb9155ca06ae04 to your computer and use it in GitHub Desktop.
<!-- Cal inline embed code begins -->
<div style="width:100%;height:100%;overflow:scroll" id="my-cal-inline"></div>
<script type="text/javascript">
(function (C, A, L) { let p = function (a, ar) { a.q.push(ar); }; let d = C.document; C.Cal = C.Cal || function () { let cal = C.Cal; let ar = arguments; if (!cal.loaded) { cal.ns = {}; cal.q = cal.q || []; d.head.appendChild(d.createElement("script")).src = A; cal.loaded = true; } if (ar[0] === L) { const api = function () { p(api, arguments); }; const namespace = ar[1]; api.q = api.q || []; typeof namespace === "string" ? (cal.ns[namespace] = api) && p(api, ar) : p(cal, ar); return; } p(cal, ar); }; })(window, "https://app.cal.com/embed/embed.js", "init");
Cal("init", "just-chat", {origin:"https://cal.com"});
Cal.ns["just-chat"]("inline", {
elementOrSelector:"#my-cal-inline",
calLink: "leima/just-chat",
layout: "month_view"
});
Cal.ns["just-chat"]("ui", {"styles":{"branding":{"brandColor":"#000000"}},"hideEventTypeDetails":false,"layout":"month_view"});
</script>
<!-- Cal inline embed code ends -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment