mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-10 10:17:05 +01:00
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3469
code/espurna/static/index.all.html.gz.h
generated
3469
code/espurna/static/index.all.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
1919
code/espurna/static/index.curtain.html.gz.h
generated
1919
code/espurna/static/index.curtain.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
1837
code/espurna/static/index.garland.html.gz.h
generated
1837
code/espurna/static/index.garland.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
3795
code/espurna/static/index.light.html.gz.h
generated
3795
code/espurna/static/index.light.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
1843
code/espurna/static/index.lightfox.html.gz.h
generated
1843
code/espurna/static/index.lightfox.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
1914
code/espurna/static/index.rfbridge.html.gz.h
generated
1914
code/espurna/static/index.rfbridge.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
1915
code/espurna/static/index.rfm69.html.gz.h
generated
1915
code/espurna/static/index.rfm69.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
1985
code/espurna/static/index.sensor.html.gz.h
generated
1985
code/espurna/static/index.sensor.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
1812
code/espurna/static/index.small.html.gz.h
generated
1812
code/espurna/static/index.small.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
1882
code/espurna/static/index.thermostat.html.gz.h
generated
1882
code/espurna/static/index.thermostat.html.gz.h
generated
File diff suppressed because it is too large
Load Diff
@@ -31,10 +31,7 @@ var Websock = {
|
||||
class SettingsBase {
|
||||
constructor() {
|
||||
this.counters = {};
|
||||
this.counters.changed = 0;
|
||||
this.counters.reboot = 0;
|
||||
this.counters.reconnect = 0;
|
||||
this.counters.reload = 0;
|
||||
this.resetCounters();
|
||||
this.saved = false;
|
||||
}
|
||||
|
||||
@@ -753,14 +750,16 @@ function initSetupPassword(form) {
|
||||
}
|
||||
|
||||
function moduleVisible(module) {
|
||||
let style = document.createElement("style");
|
||||
const style = document.createElement("style");
|
||||
style.setAttribute("type", "text/css");
|
||||
document.head.appendChild(style);
|
||||
|
||||
let pos = style.sheet.rules.length;
|
||||
if (module === "sch") {
|
||||
style.sheet.insertRule(`li.module-${module} { display: inherit; }`, 0);
|
||||
style.sheet.insertRule(`div.module-${module} { display: flex; }`, 0);
|
||||
style.sheet.insertRule(`li.module-${module} { display: inherit; }`, pos++);
|
||||
style.sheet.insertRule(`div.module-${module} { display: flex; }`, pos++);
|
||||
} else {
|
||||
style.sheet.insertRule(`.module-${module} { display: inherit; }`, 0);
|
||||
style.sheet.insertRule(`.module-${module} { display: inherit; }`, pos++);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user