|
|
|
@ -23,7 +23,6 @@ function initPopover(baseURL, useContextualBacklinks, renderLatex) {
|
|
|
|
|
el = htmlToElement(popoverElement)
|
|
|
|
|
} else {
|
|
|
|
|
const linkDest = content[li.dataset.src.replace(/\/$/g, "").replace(basePath, "")]
|
|
|
|
|
console.log(linkDest.content)
|
|
|
|
|
if (linkDest) {
|
|
|
|
|
const popoverElement = `<div class="popover">
|
|
|
|
|
<h3>${linkDest.title}</h3>
|
|
|
|
@ -33,6 +32,8 @@ function initPopover(baseURL, useContextualBacklinks, renderLatex) {
|
|
|
|
|
el = htmlToElement(popoverElement)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (el) {
|
|
|
|
|
li.appendChild(el)
|
|
|
|
|
if (renderLatex) {
|
|
|
|
|
renderMathInElement(el, {
|
|
|
|
@ -51,7 +52,7 @@ function initPopover(baseURL, useContextualBacklinks, renderLatex) {
|
|
|
|
|
li.addEventListener("mouseout", () => {
|
|
|
|
|
el.classList.remove("visible")
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|