46 lines
1.3 KiB
HTML
46 lines
1.3 KiB
HTML
{include file="public/head"}
|
|
<link rel="stylesheet" href="/static/css/jump.css?v=1">
|
|
<body class="jump-page">
|
|
<div class="zh_content">
|
|
{include file="public/newnav" }
|
|
</div>
|
|
|
|
<main class="jump-shell">
|
|
<section class="jump-panel jump-panel--{$type|default='success'}">
|
|
<div class="jump-icon" aria-hidden="true"></div>
|
|
<div class="jump-content">
|
|
<h1 class="jump-message">{$msg}</h1>
|
|
<p class="jump-countdown">
|
|
<span id="countdown">{$wait|default=3}</span> {:lang('jump.auto_redirect')}...
|
|
</p>
|
|
</div>
|
|
<div class="jump-actions">
|
|
<a href="{$url ?: 'javascript:history.back();'}" class="jump-button">{:lang('jump.redirect_now')}</a>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
|
|
{include file="public/newfooter" }
|
|
|
|
<script>
|
|
// 倒计时显示
|
|
let time = {$wait|default=3};
|
|
const countdownEl = document.getElementById('countdown');
|
|
const targetUrl = "{$url|default=''}";
|
|
|
|
const timer = setInterval(() => {
|
|
time--;
|
|
countdownEl.textContent = time;
|
|
|
|
if (time <= 0) {
|
|
clearInterval(timer);
|
|
if (targetUrl) {
|
|
location.href = targetUrl;
|
|
} else {
|
|
history.back();
|
|
}
|
|
}
|
|
}, 1000);
|
|
</script>
|
|
</body>
|
|
</html> |