hyapp-h5/activity/cp/huwaa.html
2026-07-17 11:54:43 +08:00

206 lines
9.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="en" dir="ltr" data-hy-app-code="huwaa">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, viewport-fit=cover"
/>
<title data-i18n="cp.pageTitle">Last Weekly CP</title>
<link rel="icon" href="data:," />
<link rel="stylesheet" href="../../common/theme.css?v=20260717" />
<link rel="stylesheet" href="./huwaa/huwaa.css?v=20260717" />
</head>
<body>
<div class="huwaa-cp-viewport" id="huwaaCpViewport">
<main class="huwaa-cp-page" id="huwaaCpPage" data-tab="rank">
<div class="huwaa-cp-stage-wrap" id="huwaaCpStageWrap">
<section
class="huwaa-cp-stage"
id="huwaaCpStage"
aria-label="Last Weekly CP activity"
data-i18n-aria="cp.pageLabel"
>
<img
class="huwaa-cp-background"
id="huwaaCpBackground"
src="./huwaa/assets/layers/bg-texture.webp"
alt=""
aria-hidden="true"
draggable="false"
/>
<header class="huwaa-cp-hero">
<img
src="./huwaa/assets/layers/hero-art-text-free.webp"
alt=""
aria-hidden="true"
draggable="false"
/>
<h1
class="huwaa-cp-wordmark"
data-i18n="cp.pageTitle"
>
Last Weekly CP
</h1>
</header>
<section
class="huwaa-cp-countdown"
aria-label="Activity countdown"
data-i18n-aria="cp.countdownLabel"
>
<div class="huwaa-cp-time-unit">
<img
src="./huwaa/assets/layers/countdown-heart.webp"
alt=""
aria-hidden="true"
/>
<strong data-count="days">00</strong>
<span data-i18n="cp.days">D</span>
</div>
<div class="huwaa-cp-time-unit">
<img
src="./huwaa/assets/layers/countdown-heart.webp"
alt=""
aria-hidden="true"
/>
<strong data-count="hours">00</strong>
<span data-i18n="cp.hours">H</span>
</div>
<div class="huwaa-cp-time-unit">
<img
src="./huwaa/assets/layers/countdown-heart.webp"
alt=""
aria-hidden="true"
/>
<strong data-count="minutes">00</strong>
<span data-i18n="cp.minutes">M</span>
</div>
<div class="huwaa-cp-time-unit">
<img
src="./huwaa/assets/layers/countdown-heart.webp"
alt=""
aria-hidden="true"
/>
<strong data-count="seconds">00</strong>
<span data-i18n="cp.seconds">S</span>
</div>
</section>
<nav
class="huwaa-cp-tabs"
role="tablist"
aria-label="CP activity tabs"
data-i18n-aria="cp.tabsLabel"
>
<button
class="huwaa-cp-tab"
id="huwaaCpTabPlaza"
type="button"
role="tab"
aria-selected="false"
aria-controls="huwaaCpTabContent"
tabindex="-1"
data-tab="plaza"
>
<img
src="./huwaa/assets/layers/tab-inactive.webp"
alt=""
aria-hidden="true"
/>
<span data-i18n="cp.tabPlaza">CP Plaza</span>
</button>
<button
class="huwaa-cp-tab is-active"
id="huwaaCpTabRank"
type="button"
role="tab"
aria-selected="true"
aria-controls="huwaaCpTabContent"
data-tab="rank"
>
<img
src="./huwaa/assets/layers/tab-active.webp"
alt=""
aria-hidden="true"
/>
<span data-i18n="cp.tabRank">CP Rank</span>
</button>
<button
class="huwaa-cp-tab"
id="huwaaCpTabRewards"
type="button"
role="tab"
aria-selected="false"
aria-controls="huwaaCpTabContent"
tabindex="-1"
data-tab="rewards"
>
<img
src="./huwaa/assets/layers/tab-inactive.webp"
alt=""
aria-hidden="true"
/>
<span data-i18n="cp.tabRewards">Rewards</span>
</button>
</nav>
<section
class="huwaa-cp-tab-content"
id="huwaaCpTabContent"
role="tabpanel"
aria-labelledby="huwaaCpTabRank"
></section>
<footer
class="huwaa-cp-copyright"
data-i18n="cp.copyright"
>
The copyright of this activity belongs to Shila
</footer>
<p
class="huwaa-cp-sr-only"
id="huwaaCpAnnouncement"
role="status"
aria-live="polite"
></p>
</section>
</div>
</main>
</div>
<script>
window.HyAppI18nSupported = ['en', 'ar', 'tr', 'es'];
window.HyAppDefaultAppCode = 'huwaa';
(function enforceHuwaaAppCode() {
try {
var entryURL = new URL(window.location.href);
var aliases = ['app', 'app_code', 'appCode'];
var needsReplace = aliases.some(function (key) {
return entryURL.searchParams.get(key) !== 'huwaa';
});
if (needsReplace) {
// common/api.js 与 common/params.js 为兼容旧入口会按不同顺序读取三个别名;
// 页面在公共脚本执行前统一它们,避免 UI 主题身份与 X-App-Code 请求租户分裂。
aliases.forEach(function (key) {
entryURL.searchParams.set(key, 'huwaa');
});
window.history.replaceState(
null,
'',
entryURL.toString()
);
}
} catch (_) {
// 部分旧 WebView 禁止修改 file:// history默认 app code 仍会让请求层发送 Huwaa 身份。
}
})();
</script>
<script src="../../common/i18n.js?v=20260717"></script>
<script src="../../common/api.js?v=20260717"></script>
<script src="../../common/params.js?v=20260717"></script>
<script src="./huwaa/huwaa.js?v=20260717"></script>
</body>
</html>