Skip to content

Commit fcd1235

Browse files
authored
Add blockchain presets to quote api playground (#163)
* Add quicksets for vms in the quote playground * Add blockchain presets to quote api playground * Reorganize scripts and add injection logic for learn more links
1 parent 2238b92 commit fcd1235

File tree

5 files changed

+518
-32
lines changed

5 files changed

+518
-32
lines changed

iframe-resizer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const script = document.createElement("script");
2+
script.src =
3+
"https://gist.githubusercontent.com/pedromcunha/76466a9b4f382d5d84c96b4ccd63558c/raw/ad158ec82f50be7716313376bf3486c8ed13666b/iframeResizer.min.js";
4+
script.id = "iframeResizer";
5+
document.head.appendChild(script);

msclarity.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//Load ms clarity
2+
(function (c, l, a, r, i, t, y) {
3+
c[a] =
4+
c[a] ||
5+
function () {
6+
(c[a].q = c[a].q || []).push(arguments);
7+
};
8+
t = l.createElement(r);
9+
t.async = 1;
10+
t.src = "https://www.clarity.ms/tag/" + i;
11+
y = l.getElementsByTagName(r)[0];
12+
y.parentNode.insertBefore(t, y);
13+
})(window, document, "clarity", "script", "ujoarm77s7");

posthog.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Load Posthog
2+
async function loadPostHog() {
3+
const { posthog } = await import(
4+
"https://cdn.jsdelivr.net/npm/[email protected]/+esm"
5+
);
6+
7+
posthog.init("phc_bidXwDZgxGlWqfNtx8fhLESozcfupLUETfYB306Apmc", {
8+
autocapture: true,
9+
capture_pageview: true,
10+
capture_pageleave: true,
11+
mask_all_text: false,
12+
api_host: "https://api-p.relay.link",
13+
});
14+
15+
return posthog;
16+
}
17+
18+
loadPostHog();

0 commit comments

Comments
 (0)