MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 324: | Line 324: | ||
ul.className = "noprint crw-footer-social"; | ul.className = "noprint crw-footer-social"; | ||
function add(href, label | function add(href, label) { | ||
var li = document.createElement("li"); | var li = document.createElement("li"); | ||
var a = document.createElement("a"); | var a = document.createElement("a"); | ||
a.href = href; | a.href = href; | ||
a. | a.textContent = label; | ||
a.setAttribute("aria-label", label); | a.setAttribute("aria-label", label); | ||
a.title = label; | a.title = label; | ||
li.appendChild(a); | li.appendChild(a); | ||
ul.appendChild(li); | ul.appendChild(li); | ||
} | } | ||
add("https://discord.gg/8w5rSNAXRf", "Discord | add("https://discord.gg/8w5rSNAXRf", "Discord"); | ||
add("https://www.linkedin.com/company/fulu-foundation-usa", " | add("https://www.linkedin.com/company/fulu-foundation-usa", "LinkedIn"); | ||
add("https://x.com/FULUFoundation", "X | add("https://x.com/FULUFoundation", "X"); | ||
places.parentNode.insertBefore(ul, places.nextSibling); | places.parentNode.insertBefore(ul, places.nextSibling); | ||