Added error checker

This commit is contained in:
Gemdation 2025-04-05 13:18:56 -05:00
parent 5427f5135f
commit bae80d59f2
10 changed files with 116 additions and 45 deletions

View File

@ -5,7 +5,7 @@
<title>404 Not Found - WiiMart</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/meta/main.css" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
</head>
<body>

View File

@ -16,14 +16,11 @@
<style>mark {color:white} .wm {width: 100%}</style>
</head>
<body>
<div id="bgmplayer">
<h2 style="height:20px; margin-top:-9px;">BGM player</h2>
<a href="javascript:playBGM();" id="shopbgmselector" style="text-decoration:none;">
<button id="shopbgm" >Play BGM</button>
</a>
<p style="color:#8c8c8c; margin-top:-10px; font-style:italic; font-size:10px;"><br>(enable autoplay on your browser for the music to continue playing throughout the website)</p>
</div>
<div id="bgmplayer">
<h2 style="height:20px; margin-top:-9px;">BGM player</h2>
<a href="javascript:playBGM();" id="shopbgmselector" style="text-decoration:none;"><button id="shopbgm" >Play BGM</button></a>
<p style="color:#8c8c8c; margin-top:-10px; font-style:italic; font-size:10px;"><br>(enable autoplay on your browser for the music to continue playing throughout the website)</p>
</div>
<h1>Branding</h1>

View File

@ -1,10 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<style>
/* fix page being blank for a second before the css loads */
@font-face {font-family: 'Shop'; src: url('shop.ttf') format('truetype'); font-weight: normal; font-style: normal;}
</style>
<style>@font-face {font-family: 'Shop'; src: url('shop.ttf') format('truetype'); font-weight: normal; font-style: normal;}</style>
<title>Download WiiMart</title>
<meta content="Download WiiMart" property="og:title" />
<meta content="This download page contains the WiiMart WAD along with the custom IOS WADs needed for it." property="og:description" />
@ -14,19 +11,15 @@
<meta name="keywords" content="WiiMart, Wii Shop, homebrew">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="meta/main.css" />
<link rel="stylesheet" href="meta/verdana.css" />
<script src="meta/music.js"></script>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body>
<div id="bgmplayer">
<h2 style="height:20px; margin-top:-9px;">BGM player</h2>
<a href="javascript:playBGM();" id="shopbgmselector" style="text-decoration:none;">
<button id="shopbgm" >Play BGM</button>
</a>
<p style="color:#8c8c8c; margin-top:-10px; font-style:italic; font-size:10px;"><br>(enable autoplay on your browser for the music to continue playing throughout the website)</p>
</div>
<div id="bgmplayer">
<h2 style="height:20px; margin-top:-9px;">BGM player</h2>
<a href="javascript:playBGM();" id="shopbgmselector" style="text-decoration:none;"><button id="shopbgm" >Play BGM</button></a>
<p style="color:#8c8c8c; margin-top:-10px; font-style:italic; font-size:10px;"><br>(enable autoplay on your browser for the music to continue playing throughout the website)</p>
</div>
<h1>Download</h1>

47
errors.html Normal file
View File

@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<style>@font-face {font-family:'Shop';src:url('meta/shop.ttf') format('truetype');font-weight: normal;font-style: normal;}</style>
<title>Error Code Checker</title>
<meta content="Error Code Checker" property="og:title" />
<meta content="Use this tool to troubleshoot errors on the Wii Shop Channel." property="og:description" />
<meta content="https://wiimart.github.io/media/branding-bag.png" property="og:image"/>
<meta content="https://wiimart.github.io/errors" property="og:url" />
<meta content="#FF0000" data-react-helmet="true" name="theme-color" />
<meta name="keywords" content="Errors, support, Wii Shop, homebrew">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="meta/main.css" />
<script src="meta/error.js" defer></script>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<style>input {border: 2px solid #CCCCCC;border-bottom-color: #EAEAEA;margin-bottom: 15px;} #results {display:none;} div.err {border-color:red;text-align:left; h2 {color:red} p {color:red}}</style>
</head>
<body>
<div id="bgmplayer">
<h2 style="height:20px; margin-top:-9px;">BGM player</h2>
<a href="javascript:playBGM();" id="shopbgmselector" style="text-decoration:none;"><button id="shopbgm" >Play BGM</button></a>
<p style="color:#8c8c8c; margin-top:-10px; font-style:italic; font-size:10px;"><br>(enable autoplay on your browser for the music to continue playing throughout the website)</p>
</div>
<h1>Error Code Checker <b style="color:red">BETA</b></h1>
<a href="/"><button>Back</button></a><br><br>
<div id="input">
<h2>Input Error Code</h2>
<input type="text" id="errorCode" maxlength="6" /><br>
<button id="submitBtn" style="margin-bottom: 10px;">Submit</button>
</div>
<div class="err" id="results">
<h2 id="code"></h2>
<p id="issue"></p>
<p><a onclick="refreshPage()" style="color:red;cursor:pointer;text-align:center;"><b>Check another error</b></a></p>
</div>
<p>Want to contribute to this? Go see the <a href="https://github.com/WiiMart/WiiMart.github.io/blob/main/meta/error.js">error.js</a> file over at GitHub</p>
<footer><p>WiiMart is not affiliated with Nintendo or any related parties. To contact, please send an email to <a href="mailto:wiimartshopping@gmail.com"><b>wiimartshopping@gmail.com</b></a>.</p></footer>
</body</html>

View File

@ -16,16 +16,12 @@
<style>button {font-family:'Shop',sans-serif;padding: 5px; border:none;outline:2px solid orange; color:black;background-color:white;border-radius: 5px;background-color:#f6fdff;filter: drop-shadow(1px 1px 3.4px #bbbbbb);box-shadow:inset 1px 1px 12px #53360015;}button:hover {border:none;outline:3px solid orange;cursor: pointer;filter: drop-shadow(1px 1px 3.4px #edb2347c);box-shadow:inset 1px 1px 12px #57310015;}button:active {box-shadow: none}</style>
</head>
<body>
<div id="bgmplayer" style=" border:2px solid orange;">
<h2 style="height:20px; margin-top:-9px;">BGM player</h2>
<a href="javascript:playBGM();" id="shopbgmselector" style="text-decoration:none;">
<button id="shopbgm" >Play BGM</button>
</a>
<p style="color:#8c8c8c; margin-top:-10px; font-style:italic; font-size:10px;"><br>(enable autoplay on your browser for the music to continue playing throughout the website)</p>
</div>
<div id="bgmplayer">
<h2 style="height:20px; margin-top:-9px;">BGM player</h2>
<a href="javascript:playBGM();" id="shopbgmselector" style="text-decoration:none;"><button id="shopbgm" >Play BGM</button></a>
<p style="color:#8c8c8c; margin-top:-10px; font-style:italic; font-size:10px;"><br>(enable autoplay on your browser for the music to continue playing throughout the website)</p>
</div>
<a href="https://wiimart.github.io"><header style="background-color: orange;border-color:orangered;"><img src="media/fishie-wordmark.png" width="200px"></header></a>
<h1>FishieMart</h1>
<div class="block" style="padding-bottom:10px;">

View File

@ -18,18 +18,18 @@
<!--just here because the buttons are spaced weird idk-->
</head>
<body>
<div id="bgmplayer">
<h2 style="height:20px; margin-top:-9px;">BGM player</h2>
<a href="javascript:playBGM();" id="shopbgmselector" style="text-decoration:none;">
<button id="shopbgm" >Play BGM</button>
</a>
<p style="color:#8c8c8c; margin-top:-10px; font-style:italic; font-size:10px;"><br>(enable autoplay on your browser for the music to continue playing throughout the website)</p>
</div>
<div id="bgmplayer">
<h2 style="height:20px; margin-top:-9px;">BGM player</h2>
<a href="javascript:playBGM();" id="shopbgmselector" style="text-decoration:none;"><button id="shopbgm" >Play BGM</button></a>
<p style="color:#8c8c8c; margin-top:-10px; font-style:italic; font-size:10px;"><br>(enable autoplay on your browser for the music to continue playing throughout the website)</p>
</div>
<h1 style="font-size: xx-large;">WiiMart</h1>
<a href="download"><button>Download</button></a> <a href="errors"><button>Errors</button></a> <a href="branding"><button>Branding</button></a><br><br>
<div id="wednesdaytitles" style="display:none;">
<img src="meta/NEW_en.gif" width="34" height="14" alt="NEW" style="margin-right:5px;">It's WiiMart Wednesday, The catalog has been updated with new games!
</div>
@ -65,7 +65,7 @@
</div>
<div class="block">
<h2>Something <mark style="background-color: gold;border-radius: 10px; padding-right:5px; padding-left:5px;"><i style="color:#ff491b">new!</i></mark></h2>
<h2>Something <mark style="background-color:gold;border-radius:10px;padding-right:5px;padding-left:5px"><i style="color:#ff491b">new!</i></mark></h2>
<p>In case the originals aren't enough, we have also added tons of custom Virtual Console injects! Just some of the
latest titles we've added are <b>The New Tetris</b>, <b>EarthBound</b>, <b>Super Mario All-Stars + Super Mario World</b>,
and <b>Mortal Kombat</b>.</p>
@ -83,6 +83,9 @@
<h3>When is <i>this feature</i> going to be added?</h3>
<p>The owner and developers are updating on their own time. In the meantime you can check the progress above
for what features do and don't work. <b>Important: Gifting is no longer available at the moment.</b></p>
<h3>Why is gifting gone?</h3>
<p>Gifting was available using a WiiConnect24 revival. Unfortunately we were asked to stop sending out gifts via their service.</p>
<h3>What information is stored when using WiiMart?</h3>
<p>The web server stores IP addresses of those that connect to it, common with web servers. Wii console serial
numbers are stored, in the SOAP database with encryption.</p>

View File

@ -4,7 +4,7 @@
<title>Index of /media</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../meta/main.css" />
<link rel="icon" type="image/x-icon" href="../meta/favicon.ico" />
<link rel="icon" type="image/x-icon" href="../favicon.ico" />
</head>
<body class="dir">
@ -42,6 +42,8 @@
<tr><td><a href="screenshot-main-menu.png">screenshot-main-menu.png</a></td></tr>
<tr><td><a href="screenshot-news.png">screenshot-news.png</a></td></tr>
<tr><td><a href="screenshot-start-menu.png">screenshot-start-menu.png</a></td></tr>
<tr><td><a href="shop_bgm_loop_wsw.wav">shop_bgm_loop_wsw.wav</a></td></tr>
<tr><td><a href="shop_bgm_loop.wav">shop_bgm_loop.wav</a></td></tr>
</table>
<p><mark>Note</mark>: WAD files used to be here, they have been since moved to <a href="../wad">/wad</a>.

29
meta/error.js Normal file
View File

@ -0,0 +1,29 @@
const errorCodes = {
"204042": "User is not registered with the server",
"204961": "SSL cipher error when trying to communicate with SOAP servers",
"204050": "You do not own a title; ticket not found",
"204036": "Problem importing Title metadata",
"204035": "Problem importing ticket",
"204037": "Problem importing title content",
"204034": "Invalid SOAP response",
"204704": "Equivalent to a HTTP 404 error",
"209531": "Page not found",
"209552": "Server error"
};
document.getElementById("submitBtn").addEventListener("click", function() {
const codeInput = document.getElementById("errorCode").value;
const resultsDiv = document.getElementById("results");
const inputDiv = document.getElementById("input");
if (errorCodes[codeInput]) {
document.getElementById("code").innerText = codeInput;
document.getElementById("issue").innerText = errorCodes[codeInput];
inputDiv.style.display = "none";
resultsDiv.style.display = "block";
} else {
alert("Invalid error code. Please enter a valid 6-digit error code.");
}
});
function refreshPage() {location.reload();}

View File

@ -4,7 +4,7 @@
<title>Index of /meta</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../meta/main.css" />
<link rel="icon" type="image/x-icon" href="../meta/favicon.ico" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body class="dir">
@ -19,12 +19,16 @@
<tr><td><a href="arrow-left-pressed.png">arrow-left-pressed.png</a></td></tr>
<tr><td><a href="arrow-right.png">arrow-right.png</a></td></tr>
<tr><td><a href="background.png">background.png</a></td></tr>
<tr><td><a href="error.js">error.js</a></td></tr>
<tr><td><a href="favicon-fishie.ico">favicon-fishie.ico</a></td></tr>
<tr><td><a href="favicon.ico">favicon.ico</a></td></tr>
<tr><td><a href="gallery.js">gallery.js</a></td></tr>
<tr><td><a href="ico-github.png">ico-github.png</a></td></tr>
<tr><td><a href="ico-web.png">ico-web.png</a></td></tr>
<tr><td><a href="ico-yt.png">ico-yt.png</a></td></tr>
<tr><td><a href="main.css">main.css</a></td></tr>
<tr><td><a href="music.js">music.js</a></td></tr>
<tr><td><a href="NEW_en.gif">NEW_en.gif</a></td></tr>
<tr><td><a href="shop.ttf">shop.ttf</a></td></tr>
</table>

View File

@ -4,7 +4,7 @@
<title>Index of /wad</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../meta/main.css" />
<link rel="icon" type="image/x-icon" href="../meta/favicon.ico" />
<link rel="icon" type="image/x-icon" href="../favicon.ico" />
</head>
<body class="dir">