dont toggle highlight class for targeted posts to prevent some browsers sperging out

merge-requests/208/head
fatchan 5 years ago
parent 5ab4f05ec6
commit 4bb1b1cf72
  1. 5
      gulp/res/js/hover.js
  2. 4
      views/includes/boardtable.pug

@ -12,7 +12,10 @@ window.addEventListener('DOMContentLoaded', (event) => {
return; //cross(board) quotes
}
const post = anchor.nextSibling;
post.classList.toggle('highlighted');
if (location.hash.substring(1) !== hash) {
//dont toggle highlight post if its already highlighted from being the url hash
post.classList.toggle('highlighted');
}
};
for (let i = 0; i < quotes.length; i++) {

@ -3,6 +3,6 @@
tr
th Board
th Description
th.help(title='Posts in the last hour') PPH
th.help(title='Unique posters in the last 24h') Users
th PPH
th Users
th Posts

Loading…
Cancel
Save