mirror of
https://github.com/fw876/helloworld.git
synced 2026-12-05 08:01:07 +00:00
luci-app-ssr-plus: adapter luci-theme-openwrt-2020 theme
This commit is contained in:
1 parent
1a1645b260
commit
d4eafcf073
1 file changed
+4
-4
@@ -18,7 +18,7 @@
|
||||
const wsPath = wsPaths[index];
|
||||
const tls = tlss[index];
|
||||
if (!dom) res()
|
||||
port.innerHTML = '<font color="#0072c3">connect</font>';
|
||||
port.innerHTML = '<font style=\"color:#0072c3\">connect</font>';
|
||||
XHR.get('<%=luci.dispatcher.build_url("admin/services/shadowsocksr/ping")%>', {
|
||||
index,
|
||||
domain: dom.getAttribute("hint"),
|
||||
@@ -34,11 +34,11 @@
|
||||
if (result.ping < 200) col = '#ff7700';
|
||||
if (result.ping < 100) col = '#249400';
|
||||
}
|
||||
dom.innerHTML = `<font color="${col}">${(result.ping ? result.ping : "--") + " ms"}</font>`
|
||||
dom.innerHTML = `<font style=\"color:${col}\">${(result.ping ? result.ping : "--") + " ms"}</font>`
|
||||
if (result.socket) {
|
||||
port.innerHTML = '<font color="#249400">ok</font>';
|
||||
port.innerHTML = '<font style=\"color:#249400\">ok</font>';
|
||||
} else {
|
||||
port.innerHTML = '<font color="#ff0000">fail</font>';
|
||||
port.innerHTML = '<font style=\"color:#ff0000\">fail</font>';
|
||||
}
|
||||
res();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user