更新 main.go
This commit is contained in:
14
main.go
14
main.go
@@ -146,6 +146,9 @@ func handleIndex(w http.ResponseWriter, r *http.Request) {
|
||||
.modal.show{display:flex}
|
||||
.modal-content{background:var(--card);padding:24px;border-radius:8px;width:90%;max-width:500px;box-shadow:0 4px 20px rgba(0,0,0,.3)}
|
||||
.form-group{margin-bottom:15px}
|
||||
.form-group.checkbox-group{display:flex;align-items:center;justify-content:flex-end;gap:10px}
|
||||
.form-group.checkbox-group label{margin:0;font-weight:600}
|
||||
.form-group.checkbox-group input[type="checkbox"]{width:auto;margin:0}
|
||||
label{display:block;margin-bottom:5px;font-weight:600}
|
||||
input{width:100%;padding:10px;border:1px solid var(--border);border-radius:4px;background:var(--card);color:var(--text)}
|
||||
.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}
|
||||
@@ -212,10 +215,9 @@ func handleIndex(w http.ResponseWriter, r *http.Request) {
|
||||
<div class="modal-content">
|
||||
<h2>系统设置</h2>
|
||||
<form id="configForm">
|
||||
<div class="form-group">
|
||||
<label>
|
||||
<input type="checkbox" id="notifyEnabled"> 启用通知推送
|
||||
</label>
|
||||
<div class="form-group checkbox-group">
|
||||
<label>启用通知推送</label>
|
||||
<input type="checkbox" id="notifyEnabled">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Gotify URL</label>
|
||||
@@ -293,8 +295,8 @@ func handleIndex(w http.ResponseWriter, r *http.Request) {
|
||||
'<td>' + stockText + '</td>' +
|
||||
'<td>' + lastCheck + '</td>' +
|
||||
'<td>' +
|
||||
'<button class="btn" onclick="editTask(\'' + t.id + '\')" title="编辑">✏️</button>' +
|
||||
'<button class="btn btn-del" onclick="delTask(\'' + t.id + '\')" title="删除">🗑️</button>' +
|
||||
'<button class="btn" onclick="editTask(\'' + t.id + '\')">编辑</button>' +
|
||||
'<button class="btn btn-del" onclick="delTask(\'' + t.id + '\')">删除</button>' +
|
||||
'</td></tr>';
|
||||
}).join('');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user