样式八

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://minio.szelive.com/oss/bj2.jpeg) no-repeat;
            background-size: 100% 100%;
        }

        .container {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            width: 100%;
            height: 100%;
            padding: 1.5rem .4rem 0;
        }

        .container h1 {
            width: 100%;
            font-size: .62rem;
            text-align: center;
            background-image: linear-gradient(#fff, #8b67fb);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
        }

        .container .logo {
            width: 2.4rem;
            height: 2.4rem;
            margin-top: .4rem;
        }

        .code {
            width: 100%;
            margin-top: 3rem;
        }

        .code div {
            position: relative;
            width: 100%;
            height: 1rem;
        }

        .code input {
            width: 100%;
            height: 100%;
            background-color: rgba(18, 47, 71, 0.2);
            border: 1px solid #eee;
            padding-left: 1rem;
            border-radius: .1rem;
            color: #eee;
        }

        input::-webkit-input-placeholder {
            color: #eee;
        }

        input::-moz-placeholder {
            /* Mozilla Firefox 19+ */
            color: #eee;
        }

        input:-moz-placeholder {
            /* Mozilla Firefox 4 to 18 */
            color: #eee;
        }

        input:-ms-input-placeholder {
            /* Internet Explorer 10-11 */
            color: #eee;
        }

        .code div:first-child::before {
            content: '';
            width: .52rem;
            height: .52rem;
            position: absolute;
            top: 50%;
            left: .4rem;
            transform: translateY(-50%);
            background: url(https://minio.szelive.com/oss/suo.png) no-repeat;
            background-size: 100% 100%;
        }

        .code>button {
            width: 100%;
            height: 1rem;
            border-radius: .1rem;
            background: rgba(20, 78, 118, 0.8);
            margin-top: .4rem;
            transition: color 0.7s;
        }

        .code>button:active {
            border: .04rem dotted rgba(20, 78, 118, 0.8);
            background-color: transparent;
            color: rgba(20, 78, 118, 0.8);
        }

        .container .code-buy-check {
            display: flex;
            justify-content: space-between;
            width: 100%;
            margin-top: .4rem;
            padding: 0 .2rem;
        }

        .container .code-buy-check button {
            color: #eee;
        }

        .container .info {
            position: relative;
            width: 100%;
            margin-top: .4rem;
            /* border: 1px solid rgba(124, 173, 176, 1); */
            color: rgba(124, 173, 176, 1);
            border-radius: .2rem;
            padding: .2rem;
            background-color: rgba(247, 249, 251, 1);

        }

        .footer {
            width: 100%;
            height: 2rem;
            line-height: 2rem;
            text-align: center;
            margin-top: -2rem;
            background-image: linear-gradient(#fff, #8b67fb);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
        }
    </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>
    <div class="footer">
        『中纸片』提供服务
    </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 -->