Update index.html
修复暗黑模式下输入框、按钮不变问题
This commit is contained in:
parent
8f4ffc649c
commit
e47a50f78a
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh-CN" data-theme="light">
|
<html lang="zh-CN" data-theme="light">
|
||||||
<head>
|
<head>
|
||||||
@ -53,8 +54,45 @@
|
|||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
|
|
||||||
|
[data-theme="dark"] body {
|
||||||
|
background-color: var(--bg-color-dark);
|
||||||
|
color: var(--text-color-dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .form-control {
|
||||||
|
background-color: #2a2a3b;
|
||||||
|
color: #f0f0f0;
|
||||||
|
border-color: #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .form-control:read-only {
|
||||||
|
background-color: #2a2a3b;
|
||||||
|
color: #ccc;
|
||||||
|
border-color: #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .form-select {
|
||||||
|
background-color: #2a2a3b;
|
||||||
|
color: #f0f0f0;
|
||||||
|
border-color: #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .btn {
|
||||||
|
background-color: #00bfa5;
|
||||||
|
color: #ffffff;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .btn:hover {
|
||||||
|
background-color: #00a58e;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] p {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="toggle-theme">
|
<div class="toggle-theme">
|
||||||
@ -105,7 +143,8 @@
|
|||||||
<div class="text-muted text-center">
|
<div class="text-muted text-center">
|
||||||
<p style="text-align:center">
|
<p style="text-align:center">
|
||||||
本工具所有信息只以Cookie形式存储于浏览器本地<br>
|
本工具所有信息只以Cookie形式存储于浏览器本地<br>
|
||||||
开源于 <a href=" " target="_blank">GitHub</a> | by <a href="https://github.com/OpenListTeam"
|
开源于 <a href="https://github.com/OpenListTeam/cf-worker-api" target="_blank">GitHub</a> | by <a
|
||||||
|
href="https://github.com/OpenListTeam"
|
||||||
target="_blank">OpenListTeam</a>
|
target="_blank">OpenListTeam</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -139,7 +178,6 @@
|
|||||||
// 解析响应内容 ===============================================
|
// 解析响应内容 ===============================================
|
||||||
const response_data = await response.json();
|
const response_data = await response.json();
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
// window.open(response_data.text)
|
|
||||||
window.location.href = response_data.text;
|
window.location.href = response_data.text;
|
||||||
} else Swal.fire({
|
} else Swal.fire({
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
@ -189,6 +227,16 @@
|
|||||||
const client_key = urlParams.get("client_key");
|
const client_key = urlParams.get("client_key");
|
||||||
const access_token = urlParams.get("access_token");
|
const access_token = urlParams.get("access_token");
|
||||||
const refresh_token = urlParams.get("refresh_token");
|
const refresh_token = urlParams.get("refresh_token");
|
||||||
|
const message_err = urlParams.get("message_err");
|
||||||
|
if (message_err && client_uid) {
|
||||||
|
Swal.fire({
|
||||||
|
position: 'top',
|
||||||
|
icon: 'error',
|
||||||
|
title: '授权失败',
|
||||||
|
text: message_err,
|
||||||
|
showConfirmButton: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
document.getElementById("client-id").value = client_uid;
|
document.getElementById("client-id").value = client_uid;
|
||||||
document.getElementById("app-secret").value = client_key;
|
document.getElementById("app-secret").value = client_key;
|
||||||
document.getElementById("access-token").value = access_token;
|
document.getElementById("access-token").value = access_token;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user