Implemented message shown when no data type is returned. (#150) #152

Merged
bema merged 4 commits from bema/ref/#150 into master 2023-04-21 09:31:30 +02:00

View File

@@ -265,9 +265,11 @@ function performRequest(endpoint, checkXML, checkTransform) {
document.getElementById("procinfo").innerText = ' Computed using ' + result.processor
if (result.type)
document.getElementById("procinfo").innerText += ". Returned: " + result.type;
else
document.getElementById("procinfo").innerText += ". Engine doesn't support return of data types.";
widlam marked this conversation as resolved
Review
document.getElementById("procinfo").innerText += ". Engine doesn't support return of data types.";
``` document.getElementById("procinfo").innerText += ". Engine doesn't support return of data types."; ```
if (result.status = "OK") {
document.getElementById("procinfo").innerText += " in " + result.time + "ms";
document.getElementById("procinfo").innerText += " (" + result.time + "ms)";
procinfo.style.color = "#30aa58";
} else {
procinfo.style.color = "#aa3030";