Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4203880
mobile-uls.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
674 B
Referenced Files
None
Subscribers
None
mobile-uls.js
View Options
/* 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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment