Skip to content

Commit 62a2330

Browse files
committed
Adding cal.com floating embed
1 parent 8b34279 commit 62a2330

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

contact.html

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@
66
## Contact
77

88
Feel free to reach out to me on any of the linked platforms below!
9-
<!-- Cal floating-popup embed code begins -->
9+
<!-- Cal inline embed code begins -->
10+
<div style="width:100%;height:100%;overflow:scroll" id="my-cal-inline"></div>
1011
<script type="text/javascript">
11-
(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");
12+
(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");
1213
Cal("init", {origin:"https://cal.com"});
13-
Cal("floatingButton", {"calLink":"techdufus/introductory-coaching-chat-free","buttonText":"Book a Coaching Session!","buttonPosition":"bottom-right"});
14-
Cal("ui", {"theme":"dark","styles":{"branding":{"brandColor":"#000000"}},"hideEventTypeDetails":false,"layout":"month_view"});
15-
</script>
16-
<!-- Cal floating-popup embed code ends -->
14+
15+
Cal("inline", {
16+
elementOrSelector:"#my-cal-inline",
17+
calLink: "techdufus/introductory-coaching-chat-free",
18+
layout: "month_view"
19+
});
20+
21+
Cal("ui", {"theme":"dark","styles":{"branding":{"brandColor":"#000000"}},"hideEventTypeDetails":false,"layout":"month_view"});
22+
</script>
23+
<!-- Cal inline embed code ends -->

0 commit comments

Comments
 (0)