Content deleted Content added
Polygnotus (talk | contribs) highlight on hover |
Polygnotus (talk | contribs) No edit summary |
||
Line 13:
style.textContent = `
li:target { border: 4px dotted red; padding: 2px;}
.duplicate-citation-highlight { background-color: #ffe6e6; }
`;
document.head.appendChild(style);
Line 281 ⟶ 280:
paragraphInfo.appendChild(link);
// Highlight only the
const citationElement = document.
citationElement.classList.add('duplicate-citation-highlight');
}
});
});
link.addEventListener('mouseout', () => { const citationElement = document.getElementById(duplicate.citeNote);
if (citationElement) {
citationElement.classList.remove('duplicate-citation-highlight');
}
});
});
} else {
paragraphInfo.appendChild(document.createTextNode(ref.refNumber));
|