Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
crowdagger committed May 12, 2024
1 parent c0d3013 commit 36b169e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion templates/html/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ footer a:hover, #top a:hover {
}

.popup_footnote {
background-color: #e8e897
background-color: #e8e897;
}
6 changes: 1 addition & 5 deletions 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', '<aside 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 + '</aside>')
}


Expand All @@ -65,10 +65,6 @@ document.addEventListener('DOMContentLoaded', function() {

for (var i = 0; i < anchors.length; i++) {
var anchor = anchors[i];
var id = anchor.getAttribute("href").substring(1);
var source_id = id.replace("dest", "source");
var orig = anchor.innerHTML;
var content = document.getElementById(id).innerHTML;
anchor.addEventListener(
"mouseenter",
(event) => {
Expand Down

0 comments on commit 36b169e

Please sign in to comment.