Skip to content

Commit 3a2b2e4

Browse files
authored
Merge pull request #251 from opendata-swiss/fix-hypothesis-initialization
load hypothes.is after page load
2 parents 032bfe6 + 14a5d8a commit 3a2b2e4

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

docs/releases/3.0_workingdraft/dcat-ap-ch_3.0_workingdraft.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
<title>DCAT-AP CH - Version 3.0.0 Working Draft</title>
55
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
66
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7-
<script src="https://unpkg.com/mermaid@8.4.6/dist/mermaid.min.js"></script>
8-
<script src="https://hypothes.is/embed.js" async></script>
7+
<script src="https://unpkg.com/mermaid@8.4.6/dist/mermaid.min.js"></script>
98
<script class="remove" src="https://www.w3.org/Tools/respec/respec-w3c" defer></script>
109
<script class="remove" src="config.js"></script>
1110
<link rel="stylesheet" type="text/css" href="style.css">
@@ -24,8 +23,18 @@
2423
columns: 4;
2524
}
2625
</style>
26+
<script>
27+
function initHypothesIs() {
28+
setTimeout(() => {
29+
const hypothesisScript = document.createElement("script");
30+
hypothesisScript.src = "https://hypothes.is/embed.js";
31+
hypothesisScript.async = true;
32+
document.getElementsByTagName('head')[0].appendChild(hypothesisScript);
33+
}, 3000);
34+
}
35+
</script>
2736
</head>
28-
<body>
37+
<body onload="initHypothesIs()">
2938

3039
<section id="abstract" class="informative">
3140
<p style="background: yellow; font-size: larger;"><b>This is an initial draft. All contents of this page are subject to change.</b></p>

0 commit comments

Comments
 (0)