diff --git a/index.html b/index.html index d81b382..f711075 100644 --- a/index.html +++ b/index.html @@ -77052,6 +77052,7 @@

Simulation Running

var xmlNodes = [].slice.call(xmlDoc.children[0].children); let htmlText = ""; + let editable = ""; htmlText += `
`; for (const [index, element] of xmlNodes.entries()) { var elementParamters = [].slice.call(element.children); @@ -77072,10 +77073,14 @@

htmlText += `` + parameter.getAttribute(attr) + ` ` } else { + try{ + editable = xmlDoc.children[0].children[index].children[Parameter_index].getAttribute("changed_by_URL") + + }catch(e){} htmlText += `` + attr + ` + XMLParameter = new XMLSerializer().serializeToString(xmlDoc.documentElement);"`+editable+`> ` } } @@ -77148,11 +77153,15 @@

const param1 = element.split("="); const param10 = param1[0].split(","); const xpathText = '//organ[@type="'+param10[0]+'" and @subType="'+param10[1]+'"]/parameter[@name="'+param10[2]+'"]/@value'; + const xpathText2 = '//organ[@type="'+param10[0]+'" and @subType="'+param10[1]+'"]/parameter[@name="'+param10[2]+'"]'; //console.log(xpathText); var paramElement = xmlDoc.evaluate(xpathText, xmlDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null); + var paramElement2 = xmlDoc.evaluate(xpathText2, xmlDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null); paramElement.singleNodeValue.value = param1[1]; - //console.log(paramElement.singleNodeValue.value); + console.log("paramElement.singleNodeValue.checked is :"+paramElement.singleNodeValue.checked); URLToast1("The value of parameter: "+ param10[0] + " organ ; subType: " + param10[1] + "; name: " + param10[2] +" has been changed to "+ param1[1]); + + paramElement2.singleNodeValue.setAttribute("changed_by_URL","disabled"); } ); var pSimTime = xmlDoc.evaluate('//organ[@type="seed" and @subType="0"]/parameter[@name="simulationTime"]/@value', xmlDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);