Bureaucrats, editor, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Administrators
47,327
edits
(Created page with "→* * Prompts that dark mode color scheme is available. * * @author Elessar2 * @author Gaz Lloyd * @author JaydenKieran * @author TehKittyCat * * Positioning logic adapted from [[MediaWiki:Gadget-rsnews.js]].: var $portletLink = $('#pt-skin-toggles'), $prompt function init() { $prompt = $('<div>').addClass('rsw-color-scheme-prompt').css( 'display', 'none' ).append( $('<p>').css({ 'font-size': '0.75em' }).html('Your device...") |
No edit summary |
||
Line 1:
"use strict";
/**
* Prompts that dark mode color scheme is available.
Line 10 ⟶ 12:
*/
var $portletLink = $('#pt-skin-toggles'),
function init() {
$('<p>').css({▼
▲ 'font-size': '0.75em'
▲ }).html('Your device is using dark mode. You can click here to enable the wiki\'s dark mode!<br><a id="rsw-color-scheme-opt-out" href="#">Don\'t show this again</a>')
)▼
▲ $('body').append($prompt)
}
function resizeEvent() {
top: ptop + 'px',
left: offset.left + width
}
// Wait for #pt-skin-toggles's position to be finalised.
if (
} else {
}
|