diff --git a/templates/html/script.js b/templates/html/script.js index 151a635..d7d53f1 100644 --- a/templates/html/script.js +++ b/templates/html/script.js @@ -56,7 +56,7 @@ function show_footnote(event) { var target_id = id.replace("source", "dest"); var content = document.getElementById(target_id).innerHTML; var top = Math.round(event.target.getBoundingClientRect().top + event.target.getBoundingClientRect().height); - document.getElementById(id).insertAdjacentHTML('afterend', '') + event.target.insertAdjacentHTML('afterend', '') }