MediaWiki:Common.js: Difference between revisions

Undo revision 37367 by Kinzo (talk)
No edit summary
(Undo revision 37367 by Kinzo (talk))
Tag: Undo
 
(4 intermediate revisions by the same user not shown)
Line 22:
 
const tgln = document.querySelector("#siteSub")
const obsv = new IntersectionObserver(
([e]) => e.target.classList.toggle("stuck", e.intersectionRatio < 1),
{ threshold: [1] }
);
 
obsv.observe(tgln);