shx-3d-render
parent
7a36409690
commit
1131200c43
|
@ -132,6 +132,9 @@
|
|||
position: absolute;
|
||||
pointer-events: none;
|
||||
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
opacity: 0;
|
||||
|
@ -457,6 +460,30 @@
|
|||
this.section_id = null;
|
||||
}
|
||||
|
||||
showLoadingSpinner() {
|
||||
this.loadingSpinner.show();
|
||||
this.requiredPlaceholder.value = '';
|
||||
this.requiredPlaceholder.required = true;
|
||||
}
|
||||
|
||||
showLoadingSpinnerError() {
|
||||
this.loadingSpinner.showError("Hoppla, da ist etwas schief gelaufen. Bitte versuche es später erneut.");
|
||||
this.requiredPlaceholder.value = '';
|
||||
this.requiredPlaceholder.required = true;
|
||||
}
|
||||
|
||||
showLoadingSpinnerErrorChar() {
|
||||
this.loadingSpinner.showErrorCharLottie("Hoppla, der von dir eingegebene Text ist zu lang. Bitte kürze ihn oder wende dich an uns für eine individuelle Lösung.");
|
||||
this.requiredPlaceholder.value = '';
|
||||
this.requiredPlaceholder.required = true;
|
||||
}
|
||||
|
||||
hideLoadingSpinner() {
|
||||
this.loadingSpinner.hide();
|
||||
this.requiredPlaceholder.value = '';
|
||||
this.requiredPlaceholder.required = false;
|
||||
}
|
||||
|
||||
iFrameListener(event) {
|
||||
|
||||
//console.log("event.origin||", "'"+event.origin+"'", event.origin !== "https://3d-viewer.shinnex.de")
|
||||
|
@ -480,7 +507,7 @@
|
|||
console.log("initData", initData );
|
||||
this.Viewer3D.contentWindow.postMessage(initData, "*");
|
||||
|
||||
this.loadingSpinner.show();
|
||||
this.showLoadingSpinner();
|
||||
this.renderView();
|
||||
}
|
||||
return;
|
||||
|
@ -488,11 +515,11 @@
|
|||
|
||||
if(data.status === "error") {
|
||||
if(data.errorMessage === "TooLong") {
|
||||
this.loadingSpinner.showErrorCharLottie("Hoppla, der von dir eingegebene Text ist zu lang. Bitte kürze ihn oder wende dich an uns für eine individuelle Lösung.");
|
||||
this.showLoadingSpinnerErrorChar();
|
||||
return;
|
||||
}
|
||||
|
||||
this.loadingSpinner.showError("Hoppla, da ist etwas schief gelaufen. Bitte versuche es später erneut.");
|
||||
this.showLoadingSpinnerError();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -501,7 +528,7 @@
|
|||
if(data.loaded === true) {
|
||||
this.loadingSpinner.hide();
|
||||
} else {
|
||||
this.loadingSpinner.show();
|
||||
this.showLoadingSpinner();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -548,6 +575,13 @@
|
|||
this.requiredPlaceholder.name = 'properties[Text]';
|
||||
this.requiredPlaceholder.required = true;
|
||||
this.requiredPlaceholder.value = '';
|
||||
this.requiredPlaceholder.addEventListener('input', (event) => {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
|
||||
this.Viewer3DContainer.appendChild(this.requiredPlaceholder);
|
||||
|
||||
|
@ -625,7 +659,7 @@
|
|||
if(this.Viewer3D)
|
||||
this.Viewer3D.contentWindow.postMessage(JSON.stringify({"changeView":{"currentVariant": this.currentVariant, values: globalInputFormsObjValues[this.currentVariant]}}), "*");
|
||||
|
||||
this.loadingSpinner.show();
|
||||
this.showLoadingSpinner();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue