shx-3d-render

main
Jan Umbach 2024-06-21 15:51:16 +02:00
parent 808c26c57c
commit 559c4ef0dd
1 changed files with 5 additions and 1 deletions

View File

@ -105,8 +105,12 @@
`;
for(let i = 0; i < options.length; i++) {
html += `<div style="background-color: ${options[i]}; width: 40px; height: 40px; display: inline-block; margin-right: 10px; border-radius: 5px; ${inputVal === options[i] ? 'border: 2px solid #000' : ''}"></div>`;
html += `
<input type="radio" id="${inputID}-${i}" name="${inputName}" value="${options[i]}" ${inputVal === options[i] ? 'checked' : ''}>
<label for="${inputID}-${i}" style="background-color: ${options[i]}; width: 40px; height: 40px; display: inline-block; margin-right: 10px; border-radius: 5px; ${inputVal === options[i] ? 'border: 2px solid #000' : ''}"></label>
`;
}
html += `</section></div>`;
return html;