test
parent
5083d794dc
commit
e7be21e8cd
|
@ -432,8 +432,8 @@
|
|||
|
||||
function SHX_IFC_genSwatchSelect(inputID, labelText, inputName, inputVal, options, section_id) {
|
||||
|
||||
console.log("inputVal", inputVal);
|
||||
console.log("options", options);
|
||||
//console.log("inputVal", inputVal);
|
||||
//console.log("options", options);
|
||||
|
||||
let html = `
|
||||
<label class="form__label custom shx-ifc-form_label" for="${inputID}-label">${labelText}: <span class="shx-ifc-form_label_selected shx-ifc-form_label_selected_${inputID}">${options[inputVal].name}</span></label>
|
||||
|
@ -451,7 +451,7 @@
|
|||
|
||||
let swatchObj = options[swatch];
|
||||
|
||||
console.log("swatch",swatch);
|
||||
//console.log("swatch",swatch);
|
||||
|
||||
html += `
|
||||
<input type="radio" id="${inputID}-${swatch}" class="shx-ifc-swatchselect-input" form="product-form-${section_id}" name="properties[${inputName}]" value="${swatchObj.name}" ${inputVal === swatch ? 'checked' : ''}>
|
||||
|
@ -583,9 +583,9 @@
|
|||
|
||||
iFrameListener(event) {
|
||||
|
||||
//console.log("event.origin||", "'"+event.origin+"'", event.origin !== "https://3d-viewer.shinnex.de")
|
||||
////console.log("event.origin||", "'"+event.origin+"'", event.origin !== "https://3d-viewer.shinnex.de")
|
||||
if(event.origin !== {% if shx_get_environment contains "development" %}"https://3dview.wasgehtsiedasan.shinnex.de"{% else %}"https://3d-viewer.shinnex.de"{% endif %}) return;
|
||||
console.log("event.data||",event.data)
|
||||
//console.log("event.data||",event.data)
|
||||
|
||||
if(event.data === undefined) return;
|
||||
|
||||
|
@ -597,11 +597,11 @@
|
|||
}
|
||||
|
||||
let uuid =this.uuid;
|
||||
console.log("uuid", uuid);
|
||||
//console.log("uuid", uuid);
|
||||
if(data.id !== this.uuid) {
|
||||
if(data.status === "init" ) {
|
||||
const initData = JSON.stringify({"init":{"uuid":uuid}});
|
||||
console.log("initData", initData );
|
||||
//console.log("initData", initData );
|
||||
this.Viewer3D.contentWindow.postMessage(initData, "*");
|
||||
|
||||
this.showLoadingSpinner();
|
||||
|
@ -620,7 +620,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
console.log("Message received from the child: ", data); // Message received from child
|
||||
//console.log("Message received from the child: ", data); // Message received from child
|
||||
|
||||
if(data.loaded === true) {
|
||||
this.hideLoadingSpinner();
|
||||
|
@ -740,7 +740,7 @@
|
|||
|
||||
let filamentID = _name.slice(_name.indexOf('-') + 1);
|
||||
|
||||
console.log('filamentID', filamentID);
|
||||
//console.log('filamentID', filamentID);
|
||||
|
||||
let filament = SHX_getFilamentById(filamentID);
|
||||
|
||||
|
@ -755,7 +755,7 @@
|
|||
|
||||
|
||||
|
||||
console.log("swatch selected", key, swatchID, swatchValue );
|
||||
//console.log("swatch selected", key, swatchID, swatchValue );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -782,7 +782,7 @@
|
|||
// check if some values are empty ""
|
||||
for(let key in globalInputFormsObjValues[this.currentVariant]) {
|
||||
if(globalInputFormsObjValues[this.currentVariant][key].replaceAll(" ", "") === "") {
|
||||
console.log("Empty value found", key);
|
||||
//console.log("Empty value found", key);
|
||||
this.disableBuyButton();
|
||||
return;
|
||||
}
|
||||
|
@ -843,7 +843,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
console.log('reloadCurrentVariant', id, openAnimation);
|
||||
//console.log('reloadCurrentVariant', id, openAnimation);
|
||||
|
||||
|
||||
if(openAnimation) {
|
||||
|
|
Loading…
Reference in New Issue