summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-03-17 20:04:41 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-03-17 20:04:41 +0800
commit1f388391278dadf2cae977141a432aa2f39d8614 (patch)
tree54e917ea52bf9c22d6232f0a583e92a0d160c2c5 /assets/js
parentfb9efc8930b705f019223f8dfa06bc129c5ae13d (diff)
downloadgohugo-theme-ed-1f388391278dadf2cae977141a432aa2f39d8614.tar.gz
Remove hypothesis for annotation support.
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/ed.js20
1 files changed, 0 insertions, 20 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();