Znaczniki: Z urządzenia mobilnego Z wersji mobilnej (przeglądarkowej) |
Znaczniki: Z urządzenia mobilnego Z wersji mobilnej (przeglądarkowej) |
| Linia 32: |
Linia 32: |
| }); | | }); |
| */ | | */ |
| /* opcje ciasteczek w trybie mobilnym */ | | /* opcje ciasteczek na drugiej pozycji */ |
| /*
| |
| mw.loader.using(['mediawiki.util', 'mobilefrontend'], function () {
| |
| $(document).ready(function () {
| |
| var customLinkHtml = '<li id="custom-footer-privacy-link-mobile"><a href="#" onclick="illow.showWidget(); return false;" class="bannerLink">Privacy Control Center</a></li>';
| |
| var mobileMenu = $('.mw-mf-footer-items');
| |
| if (mobileMenu.length) {
| |
| mobileMenu.append(customLinkHtml);
| |
| }
| |
| });
| |
| });
| |
| */
| |
| // This script should be added to MediaWiki:Common.js or an equivalent site-wide script file.
| |
| // This script should be added to MediaWiki:Common.js or an equivalent site-wide script file.
| |
| /*
| |
| $(function () {
| |
| var customLink = $('<li id="custom-footer-privacy-link"><a href="#" onclick="illow.showWidget(); return false;">Privacy Control Center</a></li>');
| |
| | |
| // For Desktop
| |
| $('#footer-places-privacy').after(customLink);
| |
| | |
| // For Mobile
| |
| // Check if MobileFrontend is active by looking for a mobile-specific class or ID
| |
| if ($('body').hasClass('skin-minerva') || $('#mw-mf-display-toggle').length > 0) {
| |
| // This ensures the code executes in a mobile context
| |
| $('#footer-places-privacy').after(customLink.clone());
| |
| }
| |
| });
| |
| */
| |
| | |
| | |
| /*
| |
| mw.loader.using(['mediawiki.util', 'mobilefrontend'], function () {
| |
| $(document).ready(function () {
| |
| var customLink = $('<li id="custom-footer-privacy-link"><a href="#" class="bannerLink">Privacy Control Center</a></li>');
| |
| customLink.find('a').on('click', function(event) {
| |
| event.preventDefault();
| |
| illow.showWidget();
| |
| });
| |
| | |
| // For Desktop
| |
| $('#footer-places').append(customLink);
| |
| | |
| // For MobileFrontend
| |
| var mobileMenu = $('.mw-mf-footer-items');
| |
| if (mobileMenu.length) {
| |
| mobileMenu.append(customLink.clone(true)); // Clone with event handlers
| |
| }
| |
| });
| |
| });
| |
| */
| |
| | |
| | |
| /*
| |
| $(function () {
| |
| var customLinkDesktop = $('<li id="custom-footer-privacy-link"><a href="#" onclick="illow.showWidget(); return false;">Ustawienia prywatności</a></li>');
| |
| var customLinkMobile = $('<li id="custom-footer-privacy-link-mobile"><a href="#" onclick="illow.showWidget(); return false;">Ustawienia prywatności</a></li>');
| |
| | |
| // For Desktop
| |
| if (!$('body').hasClass('skin-minerva')) { // Assuming non-Minerva skins are for desktop
| |
| $('#footer-places-privacy').after(customLinkDesktop);
| |
| }
| |
| | |
| // For Mobile - Adjust based on Minerva's structure
| |
| if ($('body').hasClass('skin-minerva')) {
| |
| $('#footer-places-privacy').after(customLinkMobile);
| |
| }
| |
| });
| |
| */
| |
| | |
| | |
| // This script should be added to MediaWiki:Common.js or an equivalent site-wide script file.
| |
| $(function () { | | $(function () { |
| var customLink = $('<li id="custom-footer-privacy-link"><a href="#" onclick="illow.showWidget(); return false;">Privacy Control Center</a></li>'); | | var customLink = $('<li id="custom-footer-privacy-link"><a href="#" onclick="illow.showWidget(); return false;">Privacy Control Center</a></li>'); |
| $('#footer-places-privacy').after(customLink); | | $('#footer-places-privacy').after(customLink); |
| }); | | }); |