Arthur Wambst 532bc6d63a first push
2025-04-18 14:09:39 +02:00

23 lines
746 B
JavaScript

const tile = document.querySelectorAll(".grid-container > *")[0];
const parent = tile.parentNode;
tile.remove();
const tiles = [
{ name: "Notre wiki", href: "https://wiki.la-banquise.fr" },
{ name: "Notre git", href: "https://git.la-banquise.fr" },
{ name: "Panel jeux", href: "https://panel.la-banquise.fr" },
{ name: "Discord", href: "https://discord.gg/QQWwzX5ptY" },
{ name: "Login", href: "https://auth.la-banquise.fr" },
{ name: "Change password", href: "https://ssp.la-banquise.fr" },
]
tiles.forEach((info) => {
const newTile = tile.cloneNode(true);
newTile.querySelectorAll(".item-name").forEach((el) => {
el.innerText = info.name;
});
newTile.href = info.href;
parent.appendChild(newTile);
});