Spaces:
Running
Running
exit iframe
Browse files- observablehq.config.ts +8 -1
observablehq.config.ts
CHANGED
@@ -1,5 +1,12 @@
|
|
1 |
export default {
|
2 |
title: "FPDN",
|
3 |
-
footer:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
pager: false,
|
5 |
};
|
|
|
1 |
export default {
|
2 |
title: "FPDN",
|
3 |
+
footer: `
|
4 |
+
<script type="module">
|
5 |
+
for (const a of querySelectorAll("a[href^=http]")) {
|
6 |
+
a.setAttribute("target", "_top"); // exit iframe
|
7 |
+
}
|
8 |
+
</script>
|
9 |
+
</script><script type="module" src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.9/iframeResizer.contentWindow.min.js"></script>
|
10 |
+
`,
|
11 |
pager: false,
|
12 |
};
|