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) mNie podano opisu zmian |
Swiadomosc (dyskusja | edycje) mNie podano opisu zmian |
||
| Linia 69: | Linia 69: | ||
document.addEventListener('DOMContentLoaded', function() { | document.addEventListener('DOMContentLoaded', function() { | ||
var createListItem = function() { | // Function to create the new list item | ||
var createListItem = function(id) { | |||
var li = document.createElement('li'); | var li = document.createElement('li'); | ||
// | li.id = id; // Set a unique ID for the new list item to prevent duplicates | ||
li.style. | li.style.display = 'inline-block'; // Ensure the item is displayed | ||
var a = document.createElement('a'); | var a = document.createElement('a'); | ||
a.href = " | a.href = "#"; // Placeholder href, replace with the actual URL | ||
a.textContent = "Privacy Control Center"; | a.textContent = "Privacy Control Center"; | ||
li.appendChild(a); | li.appendChild(a); | ||
return li; | return li; | ||
}; | }; | ||
// | // Add the list item to the desktop version | ||
var | var desktopFooter = document.querySelector('#footer-places'); | ||
if (desktopFooter && !document.getElementById('custom-footer-link-desktop')) { | |||
var desktopLi = createListItem('custom-footer-link-desktop'); | |||
desktopFooter.appendChild(desktopLi); | |||
} | |||
} | |||
// Add the list item to the mobile version | |||
var mobileFooter = document.querySelector('.footer-places'); | |||
if (mobileFooter && !document.getElementById('custom-footer-link-mobile')) { | |||
var mobileLi = createListItem('custom-footer-link-mobile'); | |||
mobileFooter.appendChild(mobileLi); | |||
} | |||
}); | }); | ||
edycji