Search…
Install with JavaScript
You can use the following snippet to embed Cal.com using vanilla JavaScript.
1
<script>
2
(function (C, A, L) {
3
let p = function (a, ar) {
4
a.q.push(ar);
5
};
6
let d = C.document;
7
C.Cal =
8
C.Cal ||
9
function () {
10
let cal = C.Cal;
11
let ar = arguments;
12
if (!cal.loaded) {
13
cal.ns = {};
14
cal.q = cal.q || [];
15
d.head.appendChild(d.createElement("script")).src = A;
16
cal.loaded = true;
17
}
18
if (ar[0] === L) {
19
const api = function () {
20
p(api, arguments);
21
};
22
const namespace = ar[1];
23
api.q = api.q || [];
24
typeof namespace === "string" ? (cal.ns[namespace] = api) && p(api, ar) : p(cal, ar);
25
return;
26
}
27
p(cal, ar);
28
};
29
})(window, "https://cal.com/embed.js", "init");
30
Cal("init")
31
</script>
Copied!
Export as PDF
Copy link