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?


3 years ago, 2 replies   Edit question

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 3 years ago · Edit answer

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

Answered 3 years ago · Edit answer