diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-03-17 20:04:41 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-03-17 20:04:41 +0800 |
| commit | 1f388391278dadf2cae977141a432aa2f39d8614 (patch) | |
| tree | 54e917ea52bf9c22d6232f0a583e92a0d160c2c5 /assets | |
| parent | fb9efc8930b705f019223f8dfa06bc129c5ae13d (diff) | |
| download | gohugo-theme-ed-1f388391278dadf2cae977141a432aa2f39d8614.tar.gz | |
Remove hypothesis for annotation support.
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/js/ed.js | 20 | ||||
| -rw-r--r-- | assets/sass/_customize.scss | 4 |
2 files changed, 0 insertions, 24 deletions
diff --git a/assets/js/ed.js b/assets/js/ed.js index b4ba4d6..fb75c94 100644 --- a/assets/js/ed.js +++ b/assets/js/ed.js @@ -13,26 +13,6 @@ function setupBackToTop() { } } -// Annotation support -function setupHypothes() { - const hypothesisContainer = document.querySelector('.hypothesis-container'); - if (hypothesisContainer !== null) { - hypothesisContainer.addEventListener('click', e => { - e.preventDefault(); - - let script = document.createElement('script'); - script.setAttribute('src', 'https://cdn.hypothes.is/hypothesis'); - script.type = 'text/javascript'; - document.getElementsByTagName('head')[0].appendChild(script); - }); - } - - const hypothesisLink = document.querySelector('#hypothesis-link'); - if (hypothesisLink !== null) { - hypothesisContainer.addEventListener('click', e => e.preventDefault()); - } -} - document.addEventListener('DOMContentLoaded', () => { setupBackToTop(); setupHypothes(); diff --git a/assets/sass/_customize.scss b/assets/sass/_customize.scss index ca681cd..f2552e0 100644 --- a/assets/sass/_customize.scss +++ b/assets/sass/_customize.scss @@ -286,7 +286,3 @@ ul.tags-cloud { .screen-reader-text { @include visually-hidden(); } - -.hypothesis-container { - cursor: pointer; -} |
