Log in Sign up

Can I add this Hypothesis JS embed?

Dear friends who know more about JavaScript than me, do you think I can do this on my Blot site without a) breaking things; b) taxing Blot in some burdensome way?

2 replies

Yes, it works nicely. I don't think it taxes Blot as it's merely calling a script hosted elsewhere.

I used the following code to change the colours and fonts of the hypothesis sidebar to match my theme.

 <script>
window.hypothesisConfig = function () {
  return {
    branding: {
      appBackgroundColor: '#FEFFFB',
      ctaBackgroundColor: '#3822BB',
      ctaTextColor: '#eee',
      selectionFontFamily: 'helvetica, arial, sans serif'
    }
  };
};
</script>
<script async src="https://hypothes.is/embed.js"></script>

PS. I decided against having this on my blog because I prefer Memex Go

Answered 2 years ago · Improve this answer

It definitely won't tax Blot! Glad you got it working

Answered 2 years ago · Improve this answer

Markdown allowed
Question or feedback?
Contact us

Tags

developers 92 questions bug 48 questions posts 27 questions resolved 27 questions metadata 26 questions templates 24 questions how 14 questions tags 13 questions markdown 12 questions google-drive 10 questions More tags →
Subscribe for changes
RSS Feed of latest questions