Skip to content

Commit

Permalink
Merge pull request #10 from DewGew/DewGew-patch-1
Browse files Browse the repository at this point in the history
Small Changes settingspage
  • Loading branch information
DewGew authored Oct 11, 2023
2 parents 72fdfe2 + e1779f9 commit e96782c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions static/js/smarthome.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,16 +318,19 @@ function getUser(user) {
}

function showDiv(that) {
if (that.value == "true") {
if (that.value == "true" && that.id == "ssl") {
$("#pathcert").fadeIn(1000);
$("#pathkey").fadeIn(1000);
$("#div_token").fadeIn(1000);
$("#pathkey").fadeIn(1000);
} else {
$("#pathcert").fadeOut(500);
$("#pathkey").fadeOut(500);
$("#div_token").fadeOut(500);
$("#pathkey").fadeOut(500);
}
if (that.value == "nouser") {
if (that.value == "true" && that.id == "googleassist") {
$("#div_token").fadeIn(1000);
} else {
$("#div_token").fadeOut(500);
}
if (that.value == "nouser") {
$(".forms").fadeOut(500);
} else {
$(".forms").hide();
Expand Down

0 comments on commit e96782c

Please sign in to comment.