font-size

main
Jan Umbach 2024-07-14 12:48:07 +02:00
parent b30e5b8753
commit bdb01827dd
1 changed files with 6 additions and 2 deletions

View File

@ -371,7 +371,8 @@
let shx_globalValues = {
"text1": "Marie", // all keys are global values
"font": "LT Beverage"
"font": "LT Beverage",
"font_size": "Normal",
};
function SHX_IFC_getCurrentValue(id, key) {
@ -418,7 +419,8 @@
if(e.target.value.length==0){
document.querySelector(`label[for="${inputID}-label"] span`).textContent = 'Bitte gib deinen Text ein';
document.querySelector(`label[for="${inputID}-label"] span`).style.color = 'red';
}});
}
});
}, 1000);
return `
@ -616,6 +618,7 @@
html += SHX_IFC_genTextInput('shx-text1', 'Text', 'Text', SHX_IFC_getCurrentValue(id, 'text1'), section_id);
html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'Schriftart', SHX_IFC_getCurrentValue(id, 'font'), ['LT Beverage', "Rose", "Arial"], section_id);
html += SHX_IFC_genDropdownSelect('shx-font-size', 'Schriftgröße', 'Schriftgröße', SHX_IFC_getCurrentValue(id, 'font_size'), ['Klein', "Normal", "Groß"], section_id);
html += SHX_IFC_genSwatchSelect('shx-backgroundType', 'Hintergrundtyp', 'Hintergrundtyp', SHX_IFC_getCurrentValue(id, 'backgroundType'), {"roundRect": {name: "Rechteckig abgerundet", imgUrl: "{{ "shx-text-w-bg-rect.png" | asset_url }}"}, "padding": {name: "Angepasst", imgUrl: "{{ "shx-text-w-bg-custom.png" | asset_url }}"}}, section_id);
html += SHX_IFC_genColorSelect('shx-color1', 'Textfarbe', 'Textfarbe', SHX_IFC_getCurrentValue(id, 'color1'), [], section_id);
html += SHX_IFC_genColorSelect('shx-color2', 'Hintergrundfarbe', 'Hintergrundfarbe', SHX_IFC_getCurrentValue(id, 'color2'), [], section_id);
@ -629,6 +632,7 @@
html += SHX_IFC_genTextInput('shx-text1', 'Text', 'Text', SHX_IFC_getCurrentValue(id, 'text1'), section_id);
html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'Schriftart', SHX_IFC_getCurrentValue(id, 'font'), ['LT Beverage', "Rose", "Arial"], section_id);
html += SHX_IFC_genDropdownSelect('shx-font-size', 'Schriftgröße', 'Schriftgröße', SHX_IFC_getCurrentValue(id, 'font_size'), ['Klein', "Normal", "Groß"], section_id);
html += SHX_IFC_genColorSelect('shx-color1', 'Textfarbe', 'Textfarbe', SHX_IFC_getCurrentValue(id, 'color1'), [], section_id);
html += SHX_IFC_genColorSelect('shx-color2', 'Zwischenfarbe', 'Zwischenfarbe', SHX_IFC_getCurrentValue(id, 'color2'), [], section_id);
html += SHX_IFC_genColorSelect('shx-color3', 'Hintergrundfarbe', 'Hintergrundfarbe', SHX_IFC_getCurrentValue(id, 'color3'), [], section_id);