Skip to content

Commit

Permalink
fix: unique id (#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeessy2 committed Jan 11, 2024
1 parent 826f7a0 commit 1a443b7
Showing 1 changed file with 31 additions and 26 deletions.
57 changes: 31 additions & 26 deletions web/writing.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@
<label for="index" style="margin-left: auto">Config:</label>
<select
class="form-control form-control-sm"
style="margin: 0px 5px; width: 155px"
style="margin: 0 5px; width: 155px"
name="Index"
id="index"
value=""
></select>
<button
class="btn btn-primary btn-sm"
style="margin: 0px 5px"
style="margin: 0 5px"
id="addBtn"
>
Add
</button>
<button
class="btn btn-primary btn-sm"
style="margin: 0px 0px 0px 5px"
style="margin: 0 0 0 5px"
id="delBtn"
>
Delete
Expand Down Expand Up @@ -167,7 +167,7 @@ <h5 class="portlet__head" id="dnsProvider">DNS Provider</h5>
<h5 class="portlet__head">IPv4</h5>
<div class="portlet__body">
<div class="form-group row">
<label for="ipv4_enable" class="col-sm-2" id="enabled_label">Enabled</label>
<label for="ipv4_enable" class="col-sm-2" id="enabled_label_v4">Enabled</label>
<div class="col-sm-10">
<input
type="checkbox"
Expand All @@ -181,7 +181,7 @@ <h5 class="portlet__head">IPv4</h5>
</div>

<div class="form-group row">
<label for="ipv4_url" class="col-sm-2 col-form-label" id="getIPMethod_label">
<label for="ipv4_url" class="col-sm-2 col-form-label" id="getIPMethod_label_v4">
Get IP method
</label>
<div class="col-sm-10">
Expand All @@ -195,10 +195,10 @@ <h5 class="portlet__head">IPv4</h5>
checked
onclick="urlClick('ipv4')"
/>
<label
<label
class="form-check-label"
for="urlRadioIpv4"
id="urlRadio_label"
id="urlRadio_label_v4"
>By api</label
>
</div>
Expand All @@ -214,7 +214,7 @@ <h5 class="portlet__head">IPv4</h5>
<label
class="form-check-label"
for="netInterfaceRadioIpv4"
id="netInterfaceRadio_label"
id="netInterfaceRadio_label_v4"
>By network card</label
>
</div>
Expand All @@ -227,10 +227,10 @@ <h5 class="portlet__head">IPv4</h5>
value="cmd"
onclick="cmdClick('ipv4')"
/>
<label
<label
class="form-check-label"
for="cmdRadioIpv4"
id="cmdRadio_label"
id="cmdRadio_label_v4"
>By command</label
>
</div>
Expand Down Expand Up @@ -285,7 +285,7 @@ <h5 class="portlet__head">IPv4</h5>
<h5 class="portlet__head">IPv6</h5>
<div class="portlet__body">
<div class="form-group row">
<label for="ipv6_enable" class="col-sm-2" id="enabled_label">Enabled</label>
<label for="ipv6_enable" class="col-sm-2" id="enabled_label_v6">Enabled</label>
<div class="col-sm-10">
<input
type="checkbox"
Expand All @@ -299,7 +299,7 @@ <h5 class="portlet__head">IPv6</h5>
</div>

<div class="form-group row">
<label for="ipv6_url" class="col-sm-2 col-form-label" id="getIPMethod_label">
<label for="ipv6_url" class="col-sm-2 col-form-label" id="getIPMethod_label_v6">
Get IP method
</label>
<div class="col-sm-10">
Expand All @@ -313,10 +313,10 @@ <h5 class="portlet__head">IPv6</h5>
checked
onclick="urlClick('ipv6')"
/>
<label
<label
class="form-check-label"
for="urlRadioIpv6"
id="urlRadio_label"
id="urlRadio_label_v6"
>By api</label
>
</div>
Expand All @@ -332,7 +332,7 @@ <h5 class="portlet__head">IPv6</h5>
<label
class="form-check-label"
for="netInterfaceRadioIpv6"
id="netInterfaceRadio_label"
id="netInterfaceRadio_label_v6"
>By network card</label
>
</div>
Expand All @@ -348,7 +348,7 @@ <h5 class="portlet__head">IPv6</h5>
<label
class="form-check-label"
for="cmdRadioIpv6"
id="cmdRadio_label"
id="cmdRadio_label_v6"
>By command</label
>
</div>
Expand Down Expand Up @@ -384,7 +384,7 @@ <h5 class="portlet__head">IPv6</h5>
id="IPv6RegDiv"
style="display: none"
>
<label
<label
for="IPv6Reg"
class="col-sm-2 col-form-label"
id="IPv6RegDivLabel"
Expand All @@ -401,8 +401,8 @@ <h5 class="portlet__head">IPv6</h5>
<small
id="IPv6Reg_label"
class="form-text text-muted"
>You can use @1 to specify the first IPv6 address, @2 to specify the second IPv6 address...
You can also use regular expressions to match the specified IPv6 address,
>You can use @1 to specify the first IPv6 address, @2 to specify the second IPv6 address...
You can also use regular expressions to match the specified IPv6 address,
leave it blank to disable it</small
>
</div>
Expand Down Expand Up @@ -434,7 +434,7 @@ <h5 class="portlet__head">IPv6</h5>
<h5 class="portlet__head">Others</h5>
<div class="portlet__body">
<div class="form-group row">
<label
<label
for="NotAllowWanAccess"
class="col-sm-2 col-form-label"
id="NotAllowWanAccess_label"
Expand All @@ -458,7 +458,7 @@ <h5 class="portlet__head">Others</h5>
</div>

<div class="form-group row">
<label
<label
for="Username"
class="col-sm-2 col-form-label"
id="UsernameLabel"
Expand Down Expand Up @@ -1269,11 +1269,16 @@ <h5 class="portlet__head">Webhook</h5>
document.getElementById("dnsProvider").innerHTML = "DNS 服务商"
document.getElementById("ttl_help").innerHTML = "如账号支持更小的 TTL, 可修改。IP 有变化时才会更新TTL"

document.querySelectorAll("#enabled_label").forEach(item => item.innerHTML = "是否启用")
document.querySelectorAll("#getIPMethod_label").forEach(item => item.innerHTML = "获取 IP 方式")
document.querySelectorAll("#urlRadio_label").forEach(item => item.innerHTML = "通过接口获取")
document.querySelectorAll("#netInterfaceRadio_label").forEach(item => item.innerHTML = "通过网卡获取")
document.querySelectorAll("#cmdRadio_label").forEach(item => item.innerHTML = "通过命令获取")
document.getElementById("enabled_label_v4").innerText = "是否启用"
document.getElementById("enabled_label_v6").innerText = "是否启用"
document.getElementById("getIPMethod_label_v4").innerText = "获取 IP 方式"
document.getElementById("getIPMethod_label_v6").innerText = "获取 IP 方式"
document.getElementById("urlRadio_label_v4").innerText = "通过接口获取"
document.getElementById("urlRadio_label_v6").innerText = "通过接口获取"
document.getElementById("netInterfaceRadio_label_v4").innerText = "通过网卡获取"
document.getElementById("netInterfaceRadio_label_v6").innerText = "通过网卡获取"
document.getElementById("cmdRadio_label_v4").innerText = "通过命令获取"
document.getElementById("cmdRadio_label_v6").innerText = "通过命令获取"
document.getElementById("ipv4_domains_help").innerHTML = `
<p>
一行一个域名, 可使用冒号分隔根域名(example.cn.eu.org)与子域名(www), 填写为:<b>www:example.cn.eu.org</b>
Expand Down

0 comments on commit 1a443b7

Please sign in to comment.