diff --git a/ranking/index.html b/ranking/index.html index d19761b..d3d5d2d 100644 --- a/ranking/index.html +++ b/ranking/index.html @@ -11,16 +11,6 @@
-
- -
- -
- -
- Loading -
-
@@ -29,10 +19,20 @@
-
+
Win battles to raise your weekly rank! Rankings are reset every Sunday at midnight! (Your rank is calculated by multiplying number of wins X win rate.)
+ + +
diff --git a/ranking/rank.js b/ranking/rank.js index 146733b..d59c067 100644 --- a/ranking/rank.js +++ b/ranking/rank.js @@ -57,6 +57,21 @@ window.loadHeader(function(headerContainer) { }); } + const urlParams = new URLSearchParams(window.location.search); + const mode = urlParams.get('mode'); + const images = { + regular: "../assets/en/svg/ui/btn_tab_regular_selected-b636e3d21ace9434120061a32658b21a34feb6468553b6d6da30ce890b85ec1f.svg", + gachi: "../assets/en/svg/ui/btn_tab_gachi_selected-4796f167399dca12cb274dcb0348cdf709a1f722ddd241210e55a3e04fdb6ff4.svg" + }; + + if (mode === 'regular') { + const regImg = document.getElementById('img-regular'); + if (regImg) regImg.src = images.regular; + } else if (mode === 'gachi') { + const gachiImg = document.getElementById('img-gachi'); + if (gachiImg) gachiImg.src = images.gachi; + } + if (typeof loadRankings === 'function') { loadRankings(); } diff --git a/ranking/styles.css b/ranking/styles.css index 442e37b..d56d2f3 100644 --- a/ranking/styles.css +++ b/ranking/styles.css @@ -167,4 +167,29 @@ body { font-family: "Regular", sans-serif; font-size: 24px; line-height: 1.3; +} + +.mode-selection { + display: flex; + justify-content: center; + gap: 15px; + margin: 30px 0; + width: 100%; +} + +.mode-button { + cursor: pointer; + width: 280px; + transition: transform 0.1s ease-in-out; + text-decoration: none; +} + +.mode-button:hover { + transform: scale(1.03); +} + +.mode-button img { + width: 100%; + height: auto; + display: block; } \ No newline at end of file