summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/ed.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/assets/js/ed.js b/assets/js/ed.js
index b4ba4d6..639a774 100644
--- a/assets/js/ed.js
+++ b/assets/js/ed.js
@@ -13,27 +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();
});