<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>404</title>
    <link rel="stylesheet" href="/assets/index/css/base.css" />
    <link rel="stylesheet" href="/assets/index/css/common.css" />
    <style>
      html,
      body {
        height: 100%;
        background-color: #f9f9f9;
      }

      @media (min-width: 1200px) {
        .error {
          width: 1170px;
          margin: 0 auto;
        }
      }

      .content {
        width: 100%;
      }

      .divleft {
        text-align: left;
        width: 100%;
      }

      .divtwo {
        margin-top: 50px;
      }

      .img-responsive {
        display: block;
        height: auto;
        max-width: 100%;
        margin: 0 auto;
      }

      .back {
        color: #ffd200;
        font-size: 30px;
        border-radius: 30px;
        border: 2px solid #ffd200;
        width: 200px;
        margin: 0 auto;
      }

      .div_three {
        margin-top: 50px;
      }

      .link {
        font-size: 18px;
        padding-top: 10px;
      }
    </style>
  </head>

  <body>
    <div class="error">
      <div class="content">
        <div class="divleft with100">
          <a href="/index.html">
            <img src="/assets/index/image/error/logo1.png" class="imgleft" />
          </a>
        </div>
        <div class="divtwo">
          <a href="/index.html">
            <img src="/assets/index/image/error/404.png" class="img-responsive imgss" />
          </a>
        </div>
        <div class="link"><span class="time">5</span>秒回跳转到首页</div>
        <div class="div_three">
          <a
            href="http://bbstao.cn/index.html"
            class="img-responsive bold"
          >
            <div class="back">返回首页</div>
          </a>
        </div>
      </div>
    </div>
  </body>
</html>
<script src="/assets/index/js/jquery.min.js"></script>
<script>
  $(function () {
    let time = 5;
    let timeId = setInterval(() => {
      time--;
      $(".time").text(time);
      if (time == 0) {
        window.location.href = "/index.html";
        clearInterval(timeId);
      }
    }, 1000);
    window.beforeunload = function (e) {
      clearInterval(timeId);
    };
  });
</script>
