SplatNet/friend_list/friendlist.js
KittenTM c892966fe0 MAJOR CHANGES!! too many to list in a short form.
- Updated Squids in Background to use official animation from Nintendo. Has been modified to work better with modern browsers.
- Moved every redundant function when loading each page into a seperate JS file
- More fixes regarding to login
- Bug Fixes
2026-02-07 00:51:33 +01:00

30 lines
No EOL
935 B
JavaScript

fetch("../header.html")
.then(res => res.text())
.then(html => {
const headerContainer = document.getElementById("header-container");
headerContainer.innerHTML = html;
const friendButton = headerContainer.querySelector('.menu-item.friend');
if (friendButton) {
friendButton.classList.add('active');
}
// temporaily force hide lol
document.getElementById("loading-overlay").style.display = "none";
});
//todo: actually make it useful..
function friendsbox() {
const infoBox = document.createElement('div');
infoBox.className = 'splat-info-box';
infoBox.innerHTML = `
<p>In Splatoon, you can join online matches that your friends are participating in. Here will show your friends that are online. Register your friends on Wii U and play Splatoon!</p>
`;
const contentArea = document.querySelector('.content');
if (contentArea) {
contentArea.appendChild(infoBox);
}
}
friendsbox();