Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Commit

Permalink
fixed js
Browse files Browse the repository at this point in the history
  • Loading branch information
jp112sdl committed May 12, 2018
1 parent bc99339 commit b3fcd31
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SonoffHMLOX/js_wm.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ const char HTTP_SCRIPT[] PROGMEM = R"=====(

qsa = document.querySelectorAll('[id$=_pow]');
qsa.forEach(function(e) {
e.style.display = 'run-in';
e.style.display = 'block';
});

qsa = document.querySelectorAll('[id$=_switch]');
qsa.forEach(function(e) {
e.style.display = 'run-in';
e.style.display = 'block';
});

if (backendtype) {
Expand Down Expand Up @@ -52,6 +52,10 @@ const char HTTP_SCRIPT[] PROGMEM = R"=====(
qsa = document.querySelectorAll('[id$=_pow]');
qsa.forEach(function(e) { e.style.display = 'none'; });
break;
case 3:
qsa = document.querySelectorAll('[id$=_pow]');
qsa.forEach(function(e) { e.style.display = 'none'; });
break;
}
}
}
Expand Down

0 comments on commit b3fcd31

Please sign in to comment.