Browse Source

DoC textbox updated in cFusion demonstrator_updated.html

Debashis Chandra Ray 5 years ago
parent
commit
63e45eb212
1 changed files with 7 additions and 1 deletions
  1. 7 1
      JavaScript/JavaScript_Examples/demonstrator_updated.html

+ 7 - 1
JavaScript/JavaScript_Examples/demonstrator_updated.html

@@ -36,6 +36,7 @@ visually displays both the input objects and the output.
 			<td id="and-operand2"></td>
 			<td>=</td>
 			<td id="and-result"></td>
+			<td></td>
 		</tr>
 		<!-- Demonstrator for CertainTrust.OR -->
 		<tr>
@@ -44,6 +45,7 @@ visually displays both the input objects and the output.
 			<td id="or-operand2"></td>
 			<td>=</td>
 			<td id="or-result"></td>
+			<td></td>
 		</tr>
 		<!-- Demonstrator for CertainTrust.cFusion -->
 		<tr>
@@ -52,6 +54,7 @@ visually displays both the input objects and the output.
 			<td id="cf-operand2"></td>
 			<td>=</td>
 			<td id="cf-result"></td>
+			<td>DoC <input type="text" id="DoC" size="2"></td>
 		</tr>
 		<!-- Demonstrator for CertainTrust.wFusion -->
 		<tr>
@@ -60,10 +63,12 @@ visually displays both the input objects and the output.
 			<td id="wf-operand2"></td>
 			<td>=</td>
 			<td id="wf-result"></td>
+			<td></td>
 		</tr>
 	</table>
 
 	<script type="text/javascript">
+	
 		// create an Array to hold the CertainTrust objects
 		var CT_objects = [];
 		var N = 10;
@@ -115,6 +120,7 @@ visually displays both the input objects and the output.
 				// update the HTI which displays the result
 				CT_objects['cf-result'].setF(CT_result.getF());
 				CT_objects['cf-result'].setTC(CT_result.getT(), CT_result.getC());
+				document.getElementById("DoC").value = doc;
 			}
 		};
 		
@@ -174,7 +180,7 @@ visually displays both the input objects and the output.
 		ORObserver.update();
 		CFObserver.update();
 		WFObserver.update();
-		document.write("Degree of Conflict (Doc) for cFusion = " + doc );
+		//document.getElementById("DoC").value = 1;
 	</script>
 
 	<p>