Skip to content

Commit

Permalink
Cosmetische aanpassing lichtcircuit tekst
Browse files Browse the repository at this point in the history
  • Loading branch information
igoethal committed Jan 15, 2024
1 parent ee5839d commit bbce0fd
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion builddate.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
var CONF_builddate="20240114-222859"
var CONF_builddate="20240115-215745"
18 changes: 15 additions & 3 deletions eendraadschema.js
Original file line number Diff line number Diff line change
Expand Up @@ -928,10 +928,22 @@ var Lichtcircuit = /** @class */ (function (_super) {
output += ", Trekschakelaar: " + this.checkboxPropToHTML('is_trekschakelaar');
switch (this.props.type_schakelaar) {
case "enkelpolig":
output += ", Aantal schakelaars: " + this.selectPropToHTML('aantal_schakelaars', ["1", "2", "3", "4", "5"]);
if (this.props.aantal_schakelaars == 0) {
output += ", Aantal schakelaars: " + this.selectPropToHTML('aantal_schakelaars', ["0", "1", "2", "3", "4", "5"])
+ '<span style="color: red;"> Compatibiliteitsmodus, kies aantal schakelaars verschillend van 0 of gebruik element lichtpunt</span>';
}
else {
output += ", Aantal schakelaars: " + this.selectPropToHTML('aantal_schakelaars', ["1", "2", "3", "4", "5"]);
}
break;
case "dubbelpolig":
output += ", Aantal schakelaars: " + this.selectPropToHTML('aantal_schakelaars', ["1", "2"]);
if (this.props.aantal_schakelaars == 0) {
output += ", Aantal schakelaars: " + this.selectPropToHTML('aantal_schakelaars', ["0", "1", "2"])
+ '<span style="color: red;"> Compatibiliteitsmodus, kies aantal schakelaars verschillend van 0 of gebruik element lichtpunt</span>';
}
else {
output += ", Aantal schakelaars: " + this.selectPropToHTML('aantal_schakelaars', ["1", "2"]);
}
break;
}
output += ", Aantal lichtpunten: " + this.selectPropToHTML('aantal_lichtpunten', ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]);
Expand Down Expand Up @@ -4795,7 +4807,7 @@ var Print_Table = /** @class */ (function () {
for (pagenum = 0; pagenum < this.pages.length; pagenum++) {
outstr += '<tr><td align=center>' + (pagenum + 1) + '</td><td align=center>' + this.pages[pagenum].start + '</td><td align=center>';
if (pagenum != this.pages.length - 1) {
outstr += '<input size="4" id="id_stop_change_' + pagenum + '" type="number" min="' + this.pages[pagenum].start + '" step="1" max="' + this.maxwidth + '" onchange="HLChangePrintStop(' + pagenum + ')" value="' + this.pages[pagenum].stop + '">';
outstr += '<input size="5" id="id_stop_change_' + pagenum + '" type="number" min="' + this.pages[pagenum].start + '" step="1" max="' + this.maxwidth + '" onchange="HLChangePrintStop(' + pagenum + ')" value="' + this.pages[pagenum].stop + '">';
}
else {
outstr += this.pages[pagenum].stop.toString();
Expand Down
4 changes: 2 additions & 2 deletions src/List_Item/Schakelaars/Lichtcircuit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ class Lichtcircuit extends Schakelaars {
case "enkelpolig":
if (this.props.aantal_schakelaars == 0) {
output += ", Aantal schakelaars: " + this.selectPropToHTML('aantal_schakelaars',["0", "1","2","3","4","5"])
+ '<span style="color: red;">Compatibiliteitsmodus, kies aantal schakelaars verschillend van 0 of gebruik element lichtpunt</span>';
+ '<span style="color: red;"> Compatibiliteitsmodus, kies aantal schakelaars verschillend van 0 of gebruik element lichtpunt</span>';
} else {
output += ", Aantal schakelaars: " + this.selectPropToHTML('aantal_schakelaars',["1","2","3","4","5"]); }
break;
case "dubbelpolig":
if (this.props.aantal_schakelaars == 0) {
output += ", Aantal schakelaars: " + this.selectPropToHTML('aantal_schakelaars',["0","1","2"])
+ '<span style="color: red;">Compatibiliteitsmodus, kies aantal schakelaars verschillend van 0 of gebruik element lichtpunt</span>';
+ '<span style="color: red;"> Compatibiliteitsmodus, kies aantal schakelaars verschillend van 0 of gebruik element lichtpunt</span>';
} else {
output += ", Aantal schakelaars: " + this.selectPropToHTML('aantal_schakelaars',["1","2"]); }
break;
Expand Down
4 changes: 2 additions & 2 deletions src/eendraadschema.js
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ var Lichtcircuit = /** @class */ (function (_super) {
case "enkelpolig":
if (this.props.aantal_schakelaars == 0) {
output += ", Aantal schakelaars: " + this.selectPropToHTML('aantal_schakelaars', ["0", "1", "2", "3", "4", "5"])
+ '<span style="color: red;">Compatibiliteitsmodus, kies aantal schakelaars verschillend van 0 of gebruik element lichtpunt</span>';
+ '<span style="color: red;"> Compatibiliteitsmodus, kies aantal schakelaars verschillend van 0 of gebruik element lichtpunt</span>';
}
else {
output += ", Aantal schakelaars: " + this.selectPropToHTML('aantal_schakelaars', ["1", "2", "3", "4", "5"]);
Expand All @@ -939,7 +939,7 @@ var Lichtcircuit = /** @class */ (function (_super) {
case "dubbelpolig":
if (this.props.aantal_schakelaars == 0) {
output += ", Aantal schakelaars: " + this.selectPropToHTML('aantal_schakelaars', ["0", "1", "2"])
+ '<span style="color: red;">Compatibiliteitsmodus, kies aantal schakelaars verschillend van 0 of gebruik element lichtpunt</span>';
+ '<span style="color: red;"> Compatibiliteitsmodus, kies aantal schakelaars verschillend van 0 of gebruik element lichtpunt</span>';
}
else {
output += ", Aantal schakelaars: " + this.selectPropToHTML('aantal_schakelaars', ["1", "2"]);
Expand Down

0 comments on commit bbce0fd

Please sign in to comment.