mirror of
https://wiilab.wiimart.org/wiimart/WiiMart-github-io
synced 2025-09-05 21:11:18 +02:00
Add files via upload
This commit is contained in:
parent
ea6ce394b0
commit
b9167a17f8
@ -14,8 +14,6 @@ footer a {color:grey;font-weight: bold;}
|
|||||||
/* Text stuff */
|
/* Text stuff */
|
||||||
h1, h2 {color:#34BEED}
|
h1, h2 {color:#34BEED}
|
||||||
a {color:#34BEED}
|
a {color:#34BEED}
|
||||||
::selection{color: #323232;background: #34BEED;}
|
|
||||||
::-moz-selection{color: #323232;background:#34BEED;}
|
|
||||||
body.dir {text-align: left;}
|
body.dir {text-align: left;}
|
||||||
body.dir a {color:black;text-decoration: none;}
|
body.dir a {color:black;text-decoration: none;}
|
||||||
table {border: 1px solid white; border-collapse: collapse;}
|
table {border: 1px solid white; border-collapse: collapse;}
|
||||||
@ -35,5 +33,10 @@ img.right {right: 10px; animation: rightHoverAnimation 0.5s infinite alternate;}
|
|||||||
@keyframes hoverAnimation {0% {transform: translateY(-50%) translateX(0);} 100% {transform: translateY(-50%) translateX(5px);}}
|
@keyframes hoverAnimation {0% {transform: translateY(-50%) translateX(0);} 100% {transform: translateY(-50%) translateX(5px);}}
|
||||||
@keyframes rightHoverAnimation {0% {transform: translateY(-50%) translateX(0); } 100% {transform: translateY(-50%) translateX(-5px);}}
|
@keyframes rightHoverAnimation {0% {transform: translateY(-50%) translateX(0); } 100% {transform: translateY(-50%) translateX(-5px);}}
|
||||||
|
|
||||||
|
/* Matt! Yea? update day! what?? New-New Wii Titles! What? im in the bathroom! Update day for WiiMart! */
|
||||||
|
#bgmplayer { transition:.3s ease-in-out; opacity:20%; position:fixed; bottom:3px; left:3px; float:left; width:160px; height:40px; overflow:hidden;}
|
||||||
|
#bgmplayer:hover {opacity: 50%; transition:.3s ease-in-out; height:100px; width:200px; overflow:auto;}
|
||||||
|
#wednesdaytitles {margin-top:13px; margin-bottom:13px; border:none;position:relative; top:0px; left:0px; float:center; background-color:#FFF; height:0px; width:50%; transition:.3s ease-in-out;}
|
||||||
|
|
||||||
/* Auto-resizer, do not change pls*/
|
/* Auto-resizer, do not change pls*/
|
||||||
@media (max-width: 768px) {div {width: 100%;}}
|
@media (max-width: 768px) {div {width: 100%;}}
|
||||||
|
@ -5,21 +5,27 @@ var isWednesday = new Date().getDay() === 3;
|
|||||||
var shoploop = new Audio(isWednesday ? "/media/shop_bgm_loop_wsw.wav" : "/media/shop_bgm_loop.wav");
|
var shoploop = new Audio(isWednesday ? "/media/shop_bgm_loop_wsw.wav" : "/media/shop_bgm_loop.wav");
|
||||||
shoploop.loop = true;
|
shoploop.loop = true;
|
||||||
shoploop.volume = 0.8;
|
shoploop.volume = 0.8;
|
||||||
|
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
|
|
||||||
var savedTime = localStorage.getItem("bgmlooppoint");
|
var savedTime = localStorage.getItem("bgmlooppoint");
|
||||||
|
|
||||||
|
|
||||||
if (savedTime) {
|
if (savedTime) {
|
||||||
shoploop.currentTime = parseFloat(savedTime);
|
shoploop.currentTime = parseFloat(savedTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (localStorage.getItem("shopmusic") === "playing") {
|
if (localStorage.getItem("shopmusic") === "playing") {
|
||||||
playBGM();
|
playBGM();
|
||||||
} else {
|
} else {
|
||||||
pauseBGM();
|
pauseBGM();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isWednesday) {
|
||||||
|
document.getElementById("wednesdaytitles").style.display = "block";
|
||||||
|
document.getElementById("wednesdaytitles").style.height="fit-content";
|
||||||
|
} else {
|
||||||
|
document.getElementById("wednesdaytitles").style.display = "none";
|
||||||
|
document.getElementById("wednesdaytitles").style.height="0px";
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
window.onbeforeunload = function() {
|
window.onbeforeunload = function() {
|
||||||
@ -28,20 +34,14 @@ window.onbeforeunload = function() {
|
|||||||
|
|
||||||
function playBGM() {
|
function playBGM() {
|
||||||
localStorage.setItem("shopmusic", "playing");
|
localStorage.setItem("shopmusic", "playing");
|
||||||
|
|
||||||
shoploop.play();
|
shoploop.play();
|
||||||
document.getElementById("shopbgm").innerHTML="Pause BGM";
|
document.getElementById("shopbgm").innerHTML = "Pause BGM";
|
||||||
document.getElementById("shopbgmselector").href="javascript:pauseBGM();"
|
document.getElementById("shopbgmselector").href = "javascript:pauseBGM();";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function pauseBGM() {
|
function pauseBGM() {
|
||||||
localStorage.setItem("shopmusic", "paused");
|
localStorage.setItem("shopmusic", "paused");
|
||||||
|
|
||||||
shoploop.pause();
|
shoploop.pause();
|
||||||
document.getElementById("shopbgm").innerHTML="Play BGM";
|
document.getElementById("shopbgm").innerHTML = "Play BGM";
|
||||||
document.getElementById("shopbgmselector").href="javascript:playBGM();"
|
document.getElementById("shopbgmselector").href = "javascript:playBGM();";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// wii shop theme (suggested by Le gamer66 on discord URL: https://discord.com/channels/1346485785284575335/1346485786039681056/1351527080546009259)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user