mirror of
https://wiilab.wiimart.org/wiimart/WiiMart-github-io
synced 2025-09-03 20:11:03 +02:00
fix gemdations "bgm player fix" that actually broke it
This commit is contained in:
parent
a12f80b692
commit
99938bae0c
@ -17,7 +17,7 @@
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
||||
<style>mark {color:white} .wm {width: 100%}</style>
|
||||
</head>
|
||||
<body>
|
||||
<body onload="loadafterwednesdaycheck();">
|
||||
<div id="bgmplayer">
|
||||
<h2>BGM player</h2>
|
||||
<a href="javascript:playBGM();" id="shopbgmselector"><button id="shopbgm">Play</button></a>
|
||||
|
@ -18,7 +18,7 @@
|
||||
<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: #FF0000;} p {color: #FF0000;}}</style>
|
||||
</head>
|
||||
<body>
|
||||
<body onload="loadafterwednesdaycheck();">
|
||||
<div id="bgmplayer">
|
||||
<h2>BGM player</h2>
|
||||
<a href="javascript:playBGM();" id="shopbgmselector"><button id="shopbgm">Play</button></a>
|
||||
|
@ -18,7 +18,7 @@
|
||||
<style>div {border-color: orange; box-shadow: 0 0 10px #a153005d; } h1, h2, h3 {color:orange} a {color:orange}</style>
|
||||
<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>
|
||||
<body onload="loadafterwednesdaycheck();">
|
||||
<div id="bgmplayer">
|
||||
<h2>BGM player</h2>
|
||||
<a href="javascript:playBGM();" id="shopbgmselector"><button id="shopbgm">Play</button></a>
|
||||
|
@ -28,8 +28,9 @@
|
||||
|
||||
<a href="install"><button>Install</button></a> <a href="support"><button>Support</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 loading="lazy" src="meta/NEW_en.gif" alt="NEW" style="margin-right:5px;">It's WiiMart Wednesday, The catalog has been updated with new games!</div>
|
||||
<script>function WiiMartWednesday() {const today = new Date(); const dayOfWeek = today.getDay(); if (dayOfWeek === 3) {const wednesdayDiv = document.getElementById('wednesdaytitles'); if (wednesdayDiv) {wednesdayDiv.style.display = 'block'}}} window.onload = WiiMartWednesday;</script>
|
||||
<script>function WiiMartWednesday() {const today = new Date(); const dayOfWeek = today.getDay();if (dayOfWeek === 3) {const wednesdayDiv = document.getElementById('wednesdaytitles'); if (wednesdayDiv) {wednesdayDiv.style.display = 'block';} }}; function whatiswmw() {const wswbox = document.getElementById("whatiswsw"); wswbox.style.display="block"; } function whatiswmwclose() { const wswbox = document.getElementById("whatiswsw"); wswbox.style.display="none";} window.onload = WiiMartWednesday(); loadafterwednesdaycheck(); function whatiswmw() {const wswbox = document.getElementById("whatiswsw");wswbox.style.display="block";} function whatiswmwclose() { const wswbox = document.getElementById("whatiswsw"); wswbox.style.display="none";}</script>
|
||||
<div id="wednesdaytitles" style="display:none;"><img loading="lazy" src="meta/NEW_en.gif" alt="NEW" style="margin-right:5px;">It's WiiMart Wednesday, The catalog has been updated with new games! <br><a href="javascript:whatiswmw();" style="font-size:11px; font-style:italic; cursor:help;" id="helpwed">What is WiiMart Wednesday?</a></div><div id="whatiswsw" style="display:none;"><h3>What is Wii Shop/WiiMart Wednesday?</h3><hr><p>"Update Day" also known as "Wii Shop Wednesday is a song that Nirvana The Band The Show made. <br> it was a song about the latest games added to the shop channel on that wednesday as they sang to the titles on the catalog pages. <br><br> We decided to bring it back and now every wednesday, new games are added to the WiiMart catalog. <br><br> <a href="https://www.youtube.com/watch?v=XQ0lnz1iv3k&t=0s" target="_blank">Visit this link to watch the Update day video</a></p><br><button onclick="whatiswmwclose();">Close</button></div>
|
||||
|
||||
|
||||
<div id="about">
|
||||
<p><b>WiiMart</b> is an open-source revival for the defunct Wii Shop Channel service. It was closed on January 30, 2019,
|
||||
|
@ -17,7 +17,7 @@
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
||||
<style>img {width:100%} .r {outline: 2px solid #9A9A9A} div#start button {width:60%;margin-bottom: 10px;}</style>
|
||||
</head>
|
||||
<body>
|
||||
<body onload="loadafterwednesdaycheck();">
|
||||
<div id="bgmplayer">
|
||||
<h2>BGM player</h2>
|
||||
<a href="javascript:playBGM();" id="shopbgmselector"><button id="shopbgm">Play</button></a>
|
||||
|
@ -62,6 +62,16 @@ div#bgmplayer p {line-height:20px;color:#9A9A9A;margin-top:-10px;font-style:ital
|
||||
/* Matt! Yea? update day! what?? New-New Wii Titles! What? im in the bathroom! Update day for WiiMart! */
|
||||
#wednesdaytitles {margin-top:13px; margin-bottom:13px; border:none;position:relative; float:center; background-color:#FFF; transition:.3s ease-in-out;}
|
||||
|
||||
#whatiswsw {animation:wswpop 0.5s forwards;opacity:0%;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);text-align:center;z-index:999;transition:.3s ease-in-out;}
|
||||
@keyframes wswpop {
|
||||
10% {
|
||||
opacity:0%;
|
||||
}
|
||||
100% {
|
||||
opacity:100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Auto-resizer, do not change pls*/
|
||||
@media (max-width: 768px) {div {width: 95%} }
|
||||
|
||||
@ -80,7 +90,7 @@ div#bgmplayer p {line-height:20px;color:#9A9A9A;margin-top:-10px;font-style:ital
|
||||
::-moz-selection {color: #e0e0e0; background: #34BEED;}
|
||||
mark {color:black;background:#34BEED;font-weight:bold;}
|
||||
.blue {color:#5898ff;}
|
||||
#errorCode {background-color: black;border: 2px solid grey;color:white}
|
||||
#errorCode {background-color: black;border: 2px solid grey;color:white;}
|
||||
body.dir a {color:white}
|
||||
mark {color:white}
|
||||
#wednesdaytitles {color:white; background-color:#3b3b3b}
|
||||
|
@ -9,14 +9,17 @@ function hideConsoleControls() {
|
||||
userAgent.includes('nintendo');
|
||||
// they can't play music so rip
|
||||
if (isConsoleBrowser) {const bgmPlayerDiv = document.getElementById('bgmplayer');
|
||||
if (bgmPlayerDiv) {bgmPlayerDiv.style.display = 'none';} }}
|
||||
document.addEventListener('DOMContentLoaded', hideConsoleControls);
|
||||
if (bgmPlayerDiv) {bgmPlayerDiv.style.display = 'none';} }
|
||||
}
|
||||
|
||||
|
||||
var shoploop = new Audio("/meta/shop.wav");
|
||||
shoploop.loop = true;
|
||||
shoploop.volume = 0; // prevent clipping
|
||||
|
||||
window.onload = function() {
|
||||
function loadafterwednesdaycheck() {
|
||||
hideConsoleControls();
|
||||
|
||||
var savedTime = localStorage.getItem("bgmlooppoint");
|
||||
|
||||
if (savedTime) {
|
||||
@ -28,7 +31,7 @@ window.onload = function() {
|
||||
} else {
|
||||
pauseBGM();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
window.onbeforeunload = function() {
|
||||
localStorage.setItem("bgmlooppoint", shoploop.currentTime);
|
||||
|
@ -19,7 +19,7 @@
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
||||
<style>img, img.slide {width:100%} 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: #FF0000;} p {color: #FF0000;}}</style>
|
||||
</head>
|
||||
<body>
|
||||
<body onload="loadafterwednesdaycheck();">
|
||||
<div id="bgmplayer">
|
||||
<h2>BGM player</h2>
|
||||
<a href="javascript:playBGM();" id="shopbgmselector"><button id="shopbgm">Play</button></a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user