精易论坛

标题: 自动关机用HTML+GO+MQTT协议 开发 [打印本页]

作者: 2533    时间: 2025-3-13 06:56
标题: 自动关机用HTML+GO+MQTT协议 开发

开源部分代码


[HTML] 纯文本查看 复制代码
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>定时自动关机</title>
    <style>
        body {
            margin: 0;
            font-family: Arial, sans-serif;
        }
        .header {
            background-color: #004080;
            color: white;
            padding: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .header h1 {
            margin: 0;
            font-size: 18px;
        }
        .header .time {
            font-size: 14px;
        }
        .content {
            padding: 20px;
        }
        .info {
            text-align: center;
            margin-bottom: 20px;
        }
        .table {
            width: 100%;
            border-collapse: collapse;
        }
        .table th, .table td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }
        .buttons {
            text-align: center;
            margin-top: 20px;
        }
        .button {
            background-color: #f0f0f0;
            border: none;
            padding: 10px 20px;
            margin: 0 10px;
            cursor: pointer;
        }
    </style>
</head>
<body>

<div class="header">
    <h1>定时自动关机</h1>
    <span class="time">2023-10-03 17:27:00</span>
</div>

<div class="content">
    <div class="info">
        <p>下次执行时间:今天 18:00</p>
    </div>
   
    <table class="table">
        <tr>
            <th>定时关机计划</th>
            <th>下次执行计划</th>
        </tr>
        <tr>
            <td>18:00(每天)</td>
            <td>2023-10-03 18:00:00</td>
        </tr>
    </table>
   
    <div class="buttons">
        <button class="button">添加定时关机</button>
        <button class="button">删除</button>
        <button class="button">立即睡眠</button>
    </div>
</div>

</body>
</html>



作者: 1184798949    时间: 2025-3-13 09:36
感谢分享
作者: 刘一手    时间: 2025-3-13 09:43
本帖最后由 刘一手 于 2025-3-13 09:47 编辑

太水了吧,还是我看的不全
作者: 神一样的人猫腻    时间: 2025-3-13 10:13
感谢分享
作者: fengyewl    时间: 2025-3-13 10:42
真有意思,开源html 跟图片差不多,无实质性功能 AI都能写出来
作者: 洋滨    时间: 2025-3-13 12:57
价值上万的代码就这么开源了?牛逼
作者: 艾玛克138    时间: 2025-3-13 16:44
谢谢大佬,很好很实用的教程。
作者: hehe195488    时间: 2025-3-13 19:22
大佬还是很厉害的
作者: wh1234567    时间: 2025-3-14 01:29
值得学习
作者: kenan236    时间: 2025-3-14 01:49
66666666666666666666666
作者: jmwrub    时间: 2025-3-14 21:18
大佬还是很厉害的
作者: futieming    时间: 2025-3-15 08:02
自动关机用
作者: futiem    时间: 2025-3-15 11:19
自动关机用HTML
作者: 2B不止铅笔还    时间: 2025-3-15 17:43
开机写起来
作者: hlfqzy    时间: 2025-4-14 07:33
谢谢分享
作者: benyu168    时间: 2025-5-6 17:06
感谢分享
作者: lhn0925    时间: 2025-5-11 08:32
学习一下




欢迎光临 精易论坛 (https://125.confly.eu.org/) Powered by Discuz! X3.4