forked from spacebar/SplatNet
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
d65c8d2a73 |
|||
|
8abb9c3fd1 |
15 changed files with 37 additions and 73 deletions
|
|
@ -7,9 +7,9 @@ on:
|
|||
|
||||
jobs:
|
||||
lint-debian:
|
||||
runs-on: ${{ vars.RUNNER_LABEL }}
|
||||
runs-on: debian-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Linters
|
||||
run: npm install -g htmlhint stylelint stylelint-config-standard eslint
|
||||
- name: HTML
|
||||
|
|
|
|||
|
|
@ -125,8 +125,11 @@ window.initDropdown = function() {
|
|||
|
||||
$optionsList.off('click').on('click', 'li', function() {
|
||||
var newSrc = $(this).attr('data-src');
|
||||
$selectedImg.attr('src', newSrc);
|
||||
$optionsList.removeClass('show');
|
||||
var langValue = $(this).attr('data-value');
|
||||
var headerFile = (langValue === 'jp') ? "../header-jp.html" : "../header.html";
|
||||
localStorage.setItem('selected_header', headerFile);
|
||||
localStorage.setItem('selected_lang_src', newSrc);
|
||||
window.location.reload();
|
||||
});
|
||||
|
||||
$(document).off('click.dropdown').on('click.dropdown', function() {
|
||||
|
|
@ -144,12 +147,21 @@ window.loadHeader = function(callback) {
|
|||
}
|
||||
};
|
||||
|
||||
fetch("../header.html")
|
||||
const targetHeader = localStorage.getItem('selected_header') || "../header.html";
|
||||
|
||||
fetch(targetHeader)
|
||||
.then(res => res.text())
|
||||
.then(html => {
|
||||
const container = document.getElementById("header-container");
|
||||
if (container) {
|
||||
container.innerHTML = html;
|
||||
|
||||
const savedLangSrc = localStorage.getItem('selected_lang_src');
|
||||
const selectedImg = container.querySelector('#selected-img');
|
||||
if (savedLangSrc && selectedImg) {
|
||||
selectedImg.src = savedLangSrc;
|
||||
}
|
||||
|
||||
window.headerLoaded = true;
|
||||
window.loadHeaderCallbacks.forEach(cb => cb(container));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@
|
|||
"image": "Shs_SHT004^q.bflim.png"
|
||||
},
|
||||
{
|
||||
"id": 2002,
|
||||
"id": 2001,
|
||||
"main_key": "SHI001",
|
||||
"name": "CreamHi-Tops",
|
||||
"sub": null,
|
||||
|
|
@ -128,7 +128,7 @@
|
|||
"image": "Shs_SHI001^q.bflim.png"
|
||||
},
|
||||
{
|
||||
"id": 2003,
|
||||
"id": 2002,
|
||||
"main_key": "SHI002",
|
||||
"name": "PurpleHi-Horses",
|
||||
"sub": null,
|
||||
|
|
@ -136,7 +136,7 @@
|
|||
"image": "Shs_SHI002^q.bflim.png"
|
||||
},
|
||||
{
|
||||
"id": 2004,
|
||||
"id": 2003,
|
||||
"main_key": "SHI004",
|
||||
"name": "HunterHi-Tops",
|
||||
"sub": null,
|
||||
|
|
@ -144,7 +144,7 @@
|
|||
"image": "Shs_SHI004^q.bflim.png"
|
||||
},
|
||||
{
|
||||
"id": 2005,
|
||||
"id": 2004,
|
||||
"main_key": "SHI005",
|
||||
"name": "RedHi-Tops",
|
||||
"sub": null,
|
||||
|
|
@ -152,7 +152,7 @@
|
|||
"image": "Shs_SHI005^q.bflim.png"
|
||||
},
|
||||
{
|
||||
"id": 2006,
|
||||
"id": 2005,
|
||||
"main_key": "SHI006",
|
||||
"name": "GoldHi-Horses",
|
||||
"sub": null,
|
||||
|
|
@ -160,7 +160,7 @@
|
|||
"image": "Shs_SHI006^q.bflim.png"
|
||||
},
|
||||
{
|
||||
"id": 3000,
|
||||
"id": 2006,
|
||||
"main_key": "SHT000",
|
||||
"name": "PinkTrainers",
|
||||
"sub": null,
|
||||
|
|
@ -176,7 +176,7 @@
|
|||
"image": "Shs_SHI007^q.bflim.png"
|
||||
},
|
||||
{
|
||||
"id": 3001,
|
||||
"id": 2007,
|
||||
"main_key": "SHT001",
|
||||
"name": "OrangeArrows",
|
||||
"sub": null,
|
||||
|
|
@ -192,7 +192,7 @@
|
|||
"image": "Shs_SHI008^q.bflim.png"
|
||||
},
|
||||
{
|
||||
"id": 3002,
|
||||
"id": 2008,
|
||||
"main_key": "SHT002",
|
||||
"name": "NeonSeaSlugs",
|
||||
"sub": null,
|
||||
|
|
|
|||
|
|
@ -1,40 +0,0 @@
|
|||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to creating a positive environment include:
|
||||
|
||||
* Using welcoming and inclusive language
|
||||
* Being respectful of differing viewpoints and experiences
|
||||
* Gracefully accepting constructive criticism
|
||||
* Focusing on what is best for the community
|
||||
* Showing empathy towards other community members
|
||||
|
||||
Examples of unacceptable behavior by participants include:
|
||||
|
||||
* The use of sexualized language or imagery and unwelcome sexual attention or advances
|
||||
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or electronic address, without explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
||||
|
||||
## Our Responsibilities
|
||||
|
||||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
|
||||
|
||||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [https://contributor-covenant.org/version/1/4][version]
|
||||
|
||||
[homepage]: https://contributor-covenant.org
|
||||
[version]: https://contributor-covenant.org/version/1/4/
|
||||
|
|
@ -124,7 +124,7 @@ window.loadHeader(async function(headerContainer) {
|
|||
const parsedName = miiBlob ? extractMiiName(miiBlob) : null;
|
||||
const name = parsedName || (finalData.mii && finalData.mii.name) || finalData.nickname || finalData.user_id || finalData.mii_name || "User";
|
||||
|
||||
const miiImgUrl = miiBlob ? `https://mii-renderer.bloxerhd.co.uk/miis/image.png?data=${encodeURIComponent(miiBlob)}&type=face&width=270` : "";
|
||||
const miiImgUrl = miiBlob ? `https://mii-unsecure.ariankordi.net/miis/image.png?data=${encodeURIComponent(miiBlob)}&type=face&width=270` : "";
|
||||
|
||||
const sidebarName = document.getElementById('mii-name');
|
||||
const sidebarImg = document.getElementById('mii-img');
|
||||
|
|
@ -315,7 +315,8 @@ window.loadHeader(async function(headerContainer) {
|
|||
To use this service, it is required for you to play at least one game on Splatfestival Network.
|
||||
Play a match on your Wii U on Splatoon!<br><br>
|
||||
|
||||
Note: This service does not support stock Cemu or SSSL. If you are using Cemu, please visit the Splatfestival Discord server for Splat-tool. </p>
|
||||
Note: This service does not support Cemu due to how the emulator does not support POST requests.
|
||||
</p>
|
||||
</div>`;
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ window.loadHeader(function(headerContainer) {
|
|||
}
|
||||
|
||||
if (imgEl && miiBlob) {
|
||||
imgEl.src = `https://mii-renderer.bloxerhd.co.uk/miis/image.png?data=${encodeURIComponent(miiBlob)}&type=face&width=270`;
|
||||
imgEl.src = `https://mii-unsecure.ariankordi.net/miis/image.png?data=${encodeURIComponent(miiBlob)}&type=face&width=270`;
|
||||
imgEl.style.display = 'block';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ window.loadHeader(async function(headerContainer) {
|
|||
};
|
||||
|
||||
const getMiiRenderUrl = (data) => {
|
||||
return `https://mii-renderer.bloxerhd.co.uk/miis/image.png?data=${encodeURIComponent(data)}&type=face&width=270&resourceType=very_high`;
|
||||
return `https://mii-unsecure.ariankordi.net/miis/image.png?data=${encodeURIComponent(data)}&type=face&width=270&resourceType=very_high`;
|
||||
};
|
||||
|
||||
const renderData = (data) => {
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ This project operates on a frontend - backend basis. The backend is not optional
|
|||
|
||||
- [x] Page switching (hamburger menu)
|
||||
- [x] Show Mii name
|
||||
- [x] Render mii
|
||||
- [x] Render mii via [mii-unsecure](https://mii-unsecure.ariankordi.net/)
|
||||
- [x] Link/unlink Twitter functionality
|
||||
|
||||
- [x] Squid swimming background
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
# Security Policy
|
||||
|
||||
Report security vulnerabilities through the security tab on this repo. Only vulnerabilities on the latest commit of any branch will be considered.
|
||||
|
|
@ -53,7 +53,7 @@
|
|||
<span class="nnid-login-bg">Log in</span>
|
||||
</a>
|
||||
<span class="nnid-description">To use SplatNet, you need to log in with your Splatfestival Network ID.</span>
|
||||
<span class="security-announcement">Note: We are not affiliated with Nintendo in any way. Please do not contact them for any issues, this site is a revival of the original Splatnet.</span>
|
||||
<span class="security-announcement">Note: We have confirmed the existence of smartphone apps that utilize information from this website, but none of them are affiliated with Nintendo in any way. Please be aware that Nintendo will not be held responsible for any problems or damages that may arise from the use of such apps.</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
</a>
|
||||
<a class="text-link site-policy-url" href="../site_policy">Site Policy</a>
|
||||
</div>
|
||||
<small>© Spacebar Network</small>
|
||||
<small>©Nintendo</small>
|
||||
</footer>
|
||||
</div>
|
||||
<script>
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
<p>Thank you very much for using SplatNet (hereinafter referred to as “this site”).</p>
|
||||
<p>This site is NOT managed and NOT operated by Nintendo Co., Ltd.</p>
|
||||
<p>We are not affiliated with Nintendo Co., Ltd. The purpose of this project is to preserve the original experience of SplatNet, adapted to work on modern browsers.</p>
|
||||
<p>This sites SRC(source code) is available at <a href="https://git.spbr.net/spacebar/splatnet">the forgejo repository</a>, or <a href="https://github.com/KittenTM/splatnet">the github mirror</a>.</p>
|
||||
<p>This sites SRC(source code) is available at <a href="https://git.crafterpika.cc/kittentm/splatnet">the forgejo repository</a>, or <a href="https://github.com/KittenTM/splatnet">the github mirror</a>.</p>
|
||||
</section>
|
||||
|
||||
<section class="policy-section">
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ window.loadHeader(async function(headerContainer) {
|
|||
}
|
||||
|
||||
if (imgEl && miiBlob) {
|
||||
imgEl.src = `https://mii-renderer.bloxerhd.co.uk/miis/image.png?data=${encodeURIComponent(miiBlob)}&type=face&width=270`;
|
||||
imgEl.src = `https://mii-unsecure.ariankordi.net/miis/image.png?data=${encodeURIComponent(miiBlob)}&type=face&width=270`;
|
||||
imgEl.style.display = 'block';
|
||||
}
|
||||
updateTwitterUI();
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
# Support
|
||||
|
||||
For support, join [our discord](https://discord.gg/splatfestival).
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
<div class="hb-wrapper hb-l-fixed">
|
||||
<header class="hb-header">
|
||||
<div class="hb-header-wrapper">
|
||||
<h1>SPLATFESTIVAL NETWORK</h1>
|
||||
<h1>NINTENDO NETWORK</h1>
|
||||
</div>
|
||||
</header>
|
||||
<noscript>
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
<a class="hb-icon-external" href="/site_policy/">Terms & Privacy Policy</a>
|
||||
<a class="hb-icon-external" href="https://git.crafterpika.cc/kittentm/splatnet/issues">Contact/Help</a>
|
||||
</div>
|
||||
<p class="hb-footer-copyright">© Spacebar Network</p>
|
||||
<p class="hb-footer-copyright">©Nintendo</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue