shx-3d-render

main
Jan Umbach 2024-06-23 10:36:05 +02:00
parent 03cc3505df
commit dee77b792b
1 changed files with 2 additions and 2 deletions

View File

@ -310,7 +310,7 @@
document.querySelector(`label[for="${inputID}-label"]`).appendChild(span) document.querySelector(`label[for="${inputID}-label"]`).appendChild(span)
} }
document.querySelector(`label[for="${inputID}-label"] span`).style.display = `inline` document.querySelector(`label[for="${inputID}-label"] span`).style.display = `inline`
document.querySelector(`label[for="${inputID}-label"] span`).textContent = e.target.value.length + ` | ` + 13 document.querySelector(`label[for="${inputID}-label"] span`).textContent = e.target.value.length + ' von ' + 32 + ' Zeichen';
if(e.target.value.length==0){ if(e.target.value.length==0){
document.querySelector(`label[for="${inputID}-label"] span`).style.display = 'none' document.querySelector(`label[for="${inputID}-label"] span`).style.display = 'none'
}}); }});
@ -319,7 +319,7 @@
return ` return `
<label class="form__label custom shx-ifc-form_label" for="${inputID}-label">${labelText}</label> <label class="form__label custom shx-ifc-form_label" for="${inputID}-label">${labelText}</label>
<div class="field custom"> <div class="field custom">
<input class="field__input" form="product-form-${section_id}" type="text" id="${inputID}" name="properties[${inputName}]" value="${inputVal}" oninput="document.querySelector('shx-input-forms').renderView()" required maxlength="20"> <input class="field__input" form="product-form-${section_id}" type="text" id="${inputID}" name="properties[${inputName}]" value="${inputVal}" oninput="document.querySelector('shx-input-forms').renderView()" required maxlength="32">
</div> </div>
`; `;