样式三

2250898553 2025-03-27 1 次下载
详细描述
实时预览
源代码
<!-- 本DIY代码来自于 https://diy.zhongzhipian.top -->
<!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>module-1</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-size: .32rem;
            color: #fff;
            font-weight: 400;
        }
        a {
            text-decoration: none;
        }
        a:active {
            background-color: none;
        }
        input,
        button {
            outline: none;
            border: none;
            background-color: transparent;
        }
        html {
            font-size: 50px;
        }
        html,
        body {
            width: 100%;
            height: 100%;
        }
        body {
            background: url(https://s3.bmp.ovh/imgs/2021/08/5def776d81a721d4.jpg) no-repeat;
            background-size: 100% 100%;
        }
        .container {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            width: 100%;
            height: 100%;
            padding: 1rem .4rem 0;
        }
        .container h1 {
            width: 100%;
            font-size: .42rem;
            text-align: center;
        }
        .container .logo {
            width: 2.4rem;
            height: 2.4rem;
            margin-top: .4rem;
        }
        .code {
            width: 100%;
            margin-top: .4rem;
        }
        .code div {
            position: relative;
            width: 100%;
            height: 1rem;
        }
        .code input {
            width: 100%;
            height: 100%;
            background-color: #1e1e1d;
            padding-left: 1rem;
        }
        .code div:first-child::before {
            content: '';
            width: .32rem;
            height: .32rem;
            position: absolute;
            top: 50%;
            left: .4rem;
            transform: translateY(-50%);
            background: url(https://s3.bmp.ovh/imgs/2021/08/3b2045bc3ebdd672.png) no-repeat;
            background-size: 100% 100%;
        }
        .code>button {
            width: 100%;
            height: 1rem;
            border-radius: 1rem;
            background-color: #eacb20;
            margin-top: .4rem;
        }
        .code>button:active {
            border: .04rem dotted #eacb20;
            background-color: transparent;
        }
        .container .code-buy-check {
            display: flex;
            justify-content: space-between;
            width: 100%;
            margin-top: .4rem;
            padding: 0 .2rem;
        }
        .container .info {
            position: relative;
            width: 100%;
            margin-top: .4rem;
            border-top: 2px solid #fff;
            padding: .2rem 0;
        }
        .footer {
            width: 100%;
            height: 2rem;
            line-height: 2rem;
            text-align: center;
            margin-top: -2rem;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1 id="title">标题</h1>
       <a href="https://zhongzhipian.top">
<img border="0" src="https://zhongzhipian.top/assets/img/logo.png" alt="『中纸片』" width="100" height="100"></a></p>
        <div class="code">
            <div>
                <input type="text" name="code" id="code" pattern="^[a-zA-Z0-9_-]{1,16}$" placeholder="请输入卡密">
            </div>
            <button type="submit" onclick="Call_Verify(code.value);" ontouchstart="mStart(this)" ontouchend="mUp(this)">验证</button>
        </div>
        <p class="code-buy-check">
            <button id="Query_Trial" type="submit" class="code-ver" onclick="Call_Query_Trial(code.value);">查询卡密</button>
            <button id="Pay" type="submit" class="code-buy" onclick="Call_Pay();">戳我买卡密>></button>
        </p>
        <p class="info" id="notice">公告</p>
    </div>
    <script>
	  //获取弹窗标题
      document.getElementById("title").innerHTML = PanGolin.GetTitle();
      //获取公告
      document.getElementById("notice").innerHTML = PanGolin.GetNotice();
      //判断是否开启试用
      document.getElementById("Query_Trial").innerHTML = PanGolin.Is_Trial() == true ? "试用": "查码";
      //判断是否配置发卡网
      document.getElementById("Pay").style.display = PanGolin.Is_Pay() == true ? "block": "none";
      //验证单码/点卡
      function Call_Verify(data) {
        PanGolin.Verify(data);
      }
      //查码/试用
      function Call_Query_Trial(data) {
        if (PanGolin.Is_Trial()) PanGolin.Trial();
        else PanGolin.Query(data);
      }
      //购卡
      function Call_Pay() {
        PanGolin.Pay();
      }
	</script>
</body>
</html>
<!-- 本DIY代码来自于 https://diy.zhongzhipian.top -->