Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/resources/formats/html/hypothesis/hypothesis.ejs
12923 views
<% let srcHref = "https://hypothes.is/embed.js"; %>
<% if (typeof(hypothesis) === "object") { %>
  <% if (hypothesis['client-url']) { srcHref = hypothesis['client-url']; } %>
<script type="application/json" class="js-hypothesis-config">
<%= JSON.stringify(hypothesis, undefined, 2) %>
</script>
<% } %>
<script async src="<%= srcHref %>"></script>
<script>
  window.document.addEventListener("DOMContentLoaded", function (_event) {
    document.body.classList.add('hypothesis-enabled');
  });
</script>