Content deleted Content added
Polygnotus (talk | contribs) No edit summary |
Polygnotus (talk | contribs) m Polygnotus moved page User:Polygnotus/Scripts/tmp.js to User:Polygnotus/Scripts/NewCommentsNavigator.js |
||
(2 intermediate revisions by the same user not shown) | |||
Line 12:
const highlights = $('.ext-discussiontools-init-highlight');
// Only show navigator if there are more than 1 highlighted comment
if (highlights.length
return;
}
Line 22 ⟶ 23:
<div id="comment-navigator" style="
position: fixed;
background: #f8f9fa;
border-top:
z-index: 1000;
font-size:
align-items: center;
justify-content: center;
gap: 15px;
">
<
<span
"><span id="comment-counter">1</span> / ${highlights.length}</span>
background: #0645ad;▼
<button id="next-comment" type="button"
<button id="close-navigator" type="button"
margin-left: 20px;
">✕</button>
</div>
`;
|