shx-3d-render
parent
ce6ef5baa2
commit
b26242677d
|
@ -289,15 +289,15 @@
|
|||
|
||||
console.log(color);
|
||||
html += `
|
||||
<input type="radio" id="${inputID}-${color}" form="product-form-${section_id}" name="properties[${inputName}]" value="${options[color].name} #${color}" ${inputVal === color ? 'checked' : ''}>
|
||||
<label for="${inputID}-${color}" style="background-color: ${options[color].hex};">
|
||||
<input type="radio" id="${inputID}-${color}" form="product-form-${section_id}" name="properties[${inputName}]" value="${FilamentList[color].name} #${color}" ${inputVal === color ? 'checked' : ''}>
|
||||
<label for="${inputID}-${color}" style="background-color: ${FilamentList[color].hex};">
|
||||
`;
|
||||
|
||||
if(options[color].matte) {
|
||||
if(FilamentList[color].matte) {
|
||||
html += `<span class="shx-mat-matte"></span>`;
|
||||
}
|
||||
|
||||
if(options[color].silk) {
|
||||
if(FilamentList[color].silk) {
|
||||
html += `<span class="shx-mat-silk"></span>`;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue