Biurokraci, Moderatorzy czatu, checkuser, commenters, Moderatorzy (CommentStreams), gitkursanci, Administratorzy interfejsu, Moderatorzy, odkrywajacy, Page Ownership admin, swiadomikursanci, Administratorzy, Redaktorzy widżetów
969
edycji
Swiadomosc (dyskusja | edycje) (dodałem opcje ciasteczek w trybie mobilnym) |
Swiadomosc (dyskusja | edycje) mNie podano opisu zmian |
||
| Linia 23: | Linia 23: | ||
/* opcje ciasteczek */ | /* opcje ciasteczek */ | ||
/* | |||
mw.loader.using('mediawiki.util', function () { | mw.loader.using('mediawiki.util', function () { | ||
$(document).ready(function () { | $(document).ready(function () { | ||
| Linia 29: | Linia 30: | ||
}); | }); | ||
}); | }); | ||
*/ | |||
/* opcje ciasteczek w trybie mobilnym */ | /* opcje ciasteczek w trybie mobilnym */ | ||
/* | |||
mw.loader.using(['mediawiki.util', 'mobilefrontend'], function () { | mw.loader.using(['mediawiki.util', 'mobilefrontend'], function () { | ||
$(document).ready(function () { | $(document).ready(function () { | ||
| Linia 42: | Linia 44: | ||
if (mobileMenu.length) { | if (mobileMenu.length) { | ||
mobileMenu.append(customLinkHtml); | mobileMenu.append(customLinkHtml); | ||
} | |||
}); | |||
}); | |||
*/ | |||
// This script should be added to MediaWiki:Common.js or an equivalent site-wide script file. | |||
mw.loader.using(['mediawiki.util', 'mobilefrontend']).then(function () { | |||
$(function () { | |||
var customLink = $('<li id="custom-footer-privacy-link"><a href="#" onclick="illow.showWidget(); return false;" class="bannerLink">Privacy Control Center</a></li>'); | |||
// For Desktop | |||
$('#footer-places-privacy').after(customLink.clone()); | |||
// For Mobile | |||
// Checking if the mobile view is active by looking for the mobile-specific class | |||
if ($('body').hasClass('skin-minerva')) { | |||
$('#footer-places-privacy').after(customLink.clone()); | |||
} | } | ||
}); | }); | ||
}); | }); | ||
edycji