Page MenuHomeWickedGov Phorge

mobile-uls.js
No OneTemporary

Size
674 B
Referenced Files
None
Subscribers
None

mobile-uls.js

/* eslint-disable no-jquery/no-global-selector */
module.exports = function () {
mw.loader.using( [ 'ext.uls.interface' ] ).then( function () {
var mobileMediaQuery = window.matchMedia( 'screen and (max-width: 550px)' ),
$ULSTrigger = $( '#pt-uls' ),
ULSMoved = false;
function moveULS() {
if ( $ULSTrigger.length ) {
if ( !ULSMoved && mobileMediaQuery.matches ) {
$ULSTrigger.insertBefore( $( '#pt-preferences' ) );
ULSMoved = true;
} else if ( ULSMoved && !mobileMediaQuery.matches ) {
$ULSTrigger.prepend( $( '#p-preferences' ) );
ULSMoved = false;
}
}
}
$( window ).on( 'resize', moveULS );
moveULS();
} );
};

File Metadata

Mime Type
text/plain
Expires
Aug 21 2026, 01:48 (12 w, 3 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
42/03/cbc629634a6026c0795ec4e30bb8
Default Alt Text
mobile-uls.js (674 B)

Event Timeline