|
|
| (Nie pokazano 8 wersji utworzonych przez 2 użytkowników) |
| Linia 7: |
Linia 7: |
|
| |
|
| /* Opinia DSA */ | | /* Opinia DSA */ |
| window.Userback = window.Userback || {}; | | window.Userback = window.Userback || {}; |
| Userback.access_token = '4796|88831|3S2WfgkWf8v2sBL2pd0NJxOI8QHu2swcDq6oDLcScFi56Z3xqk'; | | Userback.access_token = 'P-H3gm23zWkJZrX4bgYFybkmUEm'; |
| (function(d) {
| | // identify your logged-in users (optional) |
| var s = d.createElement('script');s.async = true;
| | Userback.user_data = { |
| s.src = 'https://static.userback.io/widget/v1.js';
| | id: "123456", // example data |
| (d.head || d.body).appendChild(s);
| | info: { |
| })(document);
| | name: "someone", // example data |
| | | email: "someone@example.com" // example data |
| | |
| /* RODO */
| |
| (function() {
| |
| var scriptElement = document.createElement('script');
| |
| scriptElement.src = "https://platform.illow.io/banner.js?siteId=44c89d68-4273-42c8-9e9f-cf98fb4c4d09";
| |
| document.head.appendChild(scriptElement);
| |
| })();
| |
| | |
| /* opcje ciasteczek */
| |
| /*
| |
| mw.loader.using('mediawiki.util', function () {
| |
| $(document).ready(function () { | |
| var customLink = $('<li id="custom-footer-privacy-link"><a href="#" onclick="illow.showWidget(); return false;" class="bannerLink">Ustawienia prywatności</a></li>');
| |
| $('#footer-places').append(customLink);
| |
| });
| |
| });
| |
| */
| |
| /* opcje ciasteczek w trybie mobilnym */
| |
| /*
| |
| 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);
| |
| } | | } |
| | }; |
| | (function(d) { |
| | var s = d.createElement('script');s.async = true; |
| | s.src = 'https://static.userback.io/widget/v1.js'; |
| | (d.head || d.body).appendChild(s); |
| | })(document); |
|
| |
|
| // For Mobile - Adjust based on Minerva's structure
| | /* zgłoszenia */ |
| 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-dsa-link"><a href="#" onclick="Userback.open(); return false;">Zgłoszenia</a></li>'); |
| | |
| // For Desktop
| |
| $('#footer-places-privacy').after(customLink); | | $('#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());
| |
| }
| |
| }); | | }); |