mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 23:55:53 +00:00
8657171471
The sticky header is currently disabled unconditionally and nothing is wired up, with placeholders for data and functionality which will be added in future. Bug: T289716 Change-Id: I16223ce849267e718aad22b8a24b2327332ac8b7
9 lines
222 B
JavaScript
9 lines
222 B
JavaScript
module.exports = function () {
|
|
var header = document.getElementById( 'vector-sticky-header' );
|
|
if ( !header ) {
|
|
return;
|
|
}
|
|
// TODO: Use IntersectionObserver
|
|
header.classList.add( 'vector-sticky-header-visible' );
|
|
};
|