-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlgse-settings-2.1.2.html
123 lines (123 loc) · 4.7 KB
/
lgse-settings-2.1.2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>LGSE Settings</title>
<script src="https://kit.fontawesome.com/5b3d86374a.js" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" crossorigin="anonymous"></script>
<style>
* {
transition: .2s;
}
body {
margin: 0;
}
a {
text-decoration: none;
color: #4682dc;
}
a:hover {
color: #2e63b2;
}
.top {
display: flex;
position: sticky;
top: 0;
padding: 1em;
background-color: #fff;
box-shadow: 0 0 5px;
}
.main {
border-radius: 10px;
box-shadow: 0 0 10px;
margin-top: 3em;
margin-left: 10em;
margin-right: 10em;
margin-bottom: 3em;
width: calc(100% - 20em);
padding: max(20px, 1em);
font-size: 1.1em;
}
.main:hover {
box-shadow: 2px 2px 10px;
}
.center {
text-align: center;
}
.block {
display: flex;
width: 100%;
}
.foot {
border-top: 1px solid #000;
}
</style>
<script>
function ti(x)
{
if (x === true)
{
return 1;
}
if (x === false)
{
return 0;
}
return parseInt(x);
}
function change()
{
let st = {};
st["rep-emj"] = document.getElementById("rep-emj").checked;
st["srh-emj"] = document.getElementById("srh-emj").checked;
st["img-src"] = document.getElementById("img-src").selectedIndex;
st["chk-upd"] = document.getElementById("chk-upd").checked;
document.getElementById("info").innerText = JSON.stringify(st);
document.getElementById("status").style.color = "#e67e22";
document.getElementById("status").innerText = "未保存";
console.log(`[lgse settings] Options now: ${JSON.stringify(st)}`);
}
</script>
</head>
<body>
<div class="top">
<div style="font-size: 1.3em;">LGSE 设置</div>
<div style="margin-left: auto; margin-top: auto;">
<span>当前状态:</span>
<span style="color: #e67e22;" id="status">脚本加载中</span>
</div>
</div>
<div class="main center">
<div class="block">
<span><i class="fa-brands fa-qq"></i> 表情替换功能</span>
<span style="margin-left: auto;"><label><input type="checkbox" id="rep-emj" checked="1" onchange="change()"> 启用</label></span>
</div>
<br>
<div class="block">
<span><i class="fa-solid fa-search"></i> 搜索表情功能</span>
<span style="margin-left: auto;"><label><input type="checkbox" id="srh-emj" checked="1" onchange="change()"> 启用</label></span>
</div>
<br>
<div class="block">
<span><i class="fa-solid fa-image"></i> 表情图片源</span>
<span style="margin-left: auto;"><select id="img-src" onchange="change()">
<option value="jsdelivr" selected>JSDelivr 源</option>
<option value="ghproxy">GHProxy 源</option>
<option value="lgse">LGSE 源</option>
<option value="lgse-m">LGSE 镜像源</option>
</select></span>
</div>
<br>
<div class="block">
<span><i class="fa-solid fa-check"></i> 自动检查更新</span>
<span style="margin-left: auto;"><label><input type="checkbox" id="chk-upd" checked="1" onchange="change()"> 启用</label></span>
</div>
<br>
</div>
<footer class="foot center">
<p>Luogu Show Emoji by Heyc, <a href="https://github.com/hyc-official/LuoguShowEmoji" target="_blank">GitHub</a></p>
<p>LGSE Settings page by Heyc</p>
</footer>
<p id="info" style="display: none;"></p>
</body>
</html>