From 99938bae0c3d770df08bd63c89ee3658d9142f2f Mon Sep 17 00:00:00 2001 From: ChrisplayzWii <191655784+ChrisplayzWii@users.noreply.github.com> Date: Sat, 26 Apr 2025 17:16:09 -0500 Subject: [PATCH] fix gemdations "bgm player fix" that actually broke it --- branding.html | 2 +- errors.html | 2 +- fishiemart.html | 2 +- index.html | 5 +++-- install.html | 2 +- meta/main.css | 12 +++++++++++- meta/music.js | 11 +++++++---- support.html | 2 +- 8 files changed, 26 insertions(+), 12 deletions(-) diff --git a/branding.html b/branding.html index a7f8419..3e6516d 100644 --- a/branding.html +++ b/branding.html @@ -17,7 +17,7 @@ - +

BGM player

diff --git a/errors.html b/errors.html index af08067..c1a896d 100644 --- a/errors.html +++ b/errors.html @@ -18,7 +18,7 @@ - +

BGM player

diff --git a/fishiemart.html b/fishiemart.html index 473e10e..6de86fa 100644 --- a/fishiemart.html +++ b/fishiemart.html @@ -18,7 +18,7 @@ - +

BGM player

diff --git a/index.html b/index.html index 1ad438d..5d555a3 100644 --- a/index.html +++ b/index.html @@ -28,8 +28,9 @@

- - + + +

WiiMart is an open-source revival for the defunct Wii Shop Channel service. It was closed on January 30, 2019, diff --git a/install.html b/install.html index 425ef88..152f7c1 100644 --- a/install.html +++ b/install.html @@ -17,7 +17,7 @@ - +

BGM player

diff --git a/meta/main.css b/meta/main.css index 758fc79..834abf7 100644 --- a/meta/main.css +++ b/meta/main.css @@ -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} diff --git a/meta/music.js b/meta/music.js index 18b62bd..633e11b 100644 --- a/meta/music.js +++ b/meta/music.js @@ -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); diff --git a/support.html b/support.html index 943da81..5c96363 100644 --- a/support.html +++ b/support.html @@ -19,7 +19,7 @@ - +

BGM player