From e9acd5c7aa7cbf3c1a528acdb1f7ba5122456fdf Mon Sep 17 00:00:00 2001 From: ArtOfCode- <hello@artofcode.co.uk> Date: Wed, 1 Jul 2020 00:55:35 +0100 Subject: [PATCH] Add Sefaria linker --- public/assets/community/judaism.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/public/assets/community/judaism.js b/public/assets/community/judaism.js index 913e7ec27..68660f30d 100644 --- a/public/assets/community/judaism.js +++ b/public/assets/community/judaism.js @@ -258,4 +258,17 @@ THE SOFTWARE. $(document).mouseup(function () { drag.state && (drag.state = false); }); -})(); \ No newline at end of file +})(); + + +// ============================================================================================== // + + +$(() => { + const el = document.createElement('script'); + el.src = 'https://www.sefaria.org/linker.js'; + el.addEventListener('load', () => { + sefaria.link(); + }); + document.body.appendChild(el); +}); -- GitLab