1
0
mirror of https://github.com/lise-henry/crowbook synced 2024-11-08 12:59:22 +01:00

Minor tweak to js file

This commit is contained in:
Lizzie Crowdagger 2024-05-13 01:34:14 +02:00
parent 6fc4ef7ff1
commit fca4301b90

@ -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', '<aside class = "popup_footnote" style = "position: fixed; top: '+ top + 'px; ">' + content + '</aside>')
event.target.insertAdjacentHTML('afterend', '<aside class = "popup_footnote" style = "position: fixed; top: '+ top + 'px; ">' + content + '</aside>')
}