fix radio feature

This commit is contained in:
polarDefender 2024-05-23 01:25:18 +09:00
parent 18638f21b1
commit 2790b00fa0
3 changed files with 13 additions and 3 deletions

View file

@ -182,7 +182,7 @@ a {
.setup-header > h2 { .setup-header > h2 {
margin-block-start: 20px; margin-block-start: 20px;
padding: 0 20px; padding: 0 24px;
} }
@media (max-width: 768px) { @media (max-width: 768px) {

View file

@ -6,4 +6,14 @@ $(() => {
$("#close-question").click(() => { $("#close-question").click(() => {
$("#question-content").hide(); $("#question-content").hide();
}); });
$("#automate").click(() => {
$('[data-group="service"]').prop("checked", false);
$("#automate").prop("checked", true);
});
$("#manual").click(() => {
$('[data-group="service"]').prop("checked", false);
$("#manual").prop("checked", true);
});
}); });

View file

@ -42,7 +42,7 @@
<section class="setup-content"> <section class="setup-content">
<div class="checkbox" style="margin-top: 60px"> <div class="checkbox" style="margin-top: 60px">
<input type="checkbox" id="automate" /> <input type="checkbox" id="automate" data-group="service" />
<div class="checkbox-shape"></div> <div class="checkbox-shape"></div>
<label for="automate"> <label for="automate">
Use Automation Service Use Automation Service
@ -60,7 +60,7 @@
</label> </label>
</div> </div>
<div class="checkbox" style="margin-top: 60px"> <div class="checkbox" style="margin-top: 60px">
<input type="checkbox" id="manual" /> <input type="checkbox" id="manual" data-group="service" />
<div class="checkbox-shape"></div> <div class="checkbox-shape"></div>
<label for="manual">Manage my channels manually</label> <label for="manual">Manage my channels manually</label>
</div> </div>