Files
orico-official-website-old/app/common/view/tpl/jump.html
2024-10-29 14:04:59 +08:00

58 lines
2.6 KiB
HTML
Executable File

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<title>404</title>
<style type="text/css">
body{line-height: 1.6;background-color: #ecf0f5;}
.page-404{padding-top: 60px;padding-bottom: 95px;color: #919191}
.text-center{text-align: center;}
.page-404 .success,.page-404 .error{ line-height: 1.8em; font-size: 36px; }
.color-primary{color:#5a98de;}
.color-primary:hover{color:#5a98de;text-decoration: underline;}
.page-404 p{margin-bottom: 10px;}
.page-404 .jump{ padding-top: 10px; }
.page-404 .jump a,.copyright p a{outline: none;text-decoration: none;}
.copyright p{width:100%;color:#919191;text-align:center;font-size:10px}
@media (max-width:768px){.page-404{padding-top: 30px;}.ml-20{margin-left: 15px;}}
@media (max-width:480px){.page-404{padding-top: 20px;}.page-404 .error-description{font-size:16px;}}
</style>
</head>
<body>
<div class="page-404 text-center">
<?php switch ($code) {?>
<?php case 1:?>
<h1>:)</h1>
<p class="success"><?php echo(strip_tags($msg));?></p>
<?php break;?>
<?php case 0:?>
<h1>:(</h1>
<p class="error"><?php echo(strip_tags($msg));?></p>
<?php break;?>
<?php } ?>
<p class="jump">
页面自动 <a id="href" href="<?php echo($url);?>" class="color-primary">跳转</a> 等待时间: <b id="wait"><?php echo($wait);?></b>
</p>
</div>
<div class="copyright">
<p>Copyright © 2018-2018 <a class="color-primary">COD</a>. All rights reserved. </p>
<p>Powered by <a class="color-primary">COD</a></p>
</div>
<script type="text/javascript">
(function() {
var wait = document.getElementById('wait'),
href = document.getElementById('href').href;
var interval = setInterval(function() {
var time = --wait.innerHTML;
if (time <= 0) {
location.href = href;
clearInterval(interval);
}
}, 1000);
})();
</script>
</body>
</html>