Skip to content

Commit

Permalink
Use aside for popup footnote
Browse files Browse the repository at this point in the history
  • Loading branch information
crowdagger committed May 12, 2024
1 parent 738bdfa commit c0d3013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/html/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', '<div class = "popup_footnote" style = "position: fixed; top: '+ top + 'px; ">' + content + '</div>')
document.getElementById(id).insertAdjacentHTML('afterend', '<aside class = "popup_footnote" style = "position: fixed; top: '+ top + 'px; ">' + content + '</div>')
}


Expand Down

0 comments on commit c0d3013

Please sign in to comment.