Content deleted Content added
Polygnotus (talk | contribs) No edit summary |
Polygnotus (talk | contribs) m Polygnotus moved page User:Polygnotus/test4.js to User:Polygnotus/Scripts/ReferenceHighlighter.js |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1:
//perhaps add this to duplicatereferences
// Wikipedia Reference Highlighter
$(function() {
Line 16 ⟶ 18:
// Highlight all the "Jump up to" links in the current reference
citationElement.find('.mw-cite-backlink a
$(this).addClass('reference-highlight');
});
// Highlight the clicked element differently
$(clickedElement
}
Line 42 ⟶ 44:
e.preventDefault();
var href = $(this).attr('href');
var baseId =
highlightReferences(baseId, this);
|