<!DOCTYPE html>
<html>
<!--
Minimal CertainTrust Demonstrator in JavaScript

Demonstrates the basic usage of the CertainTrust SDK.

@author	Florian Volk <florian.volk@cased.de>
-->
<head>
	<meta charset="utf-8" />
	<title>CertainTrust Demonstrator in JavaScript</title>

	<!-- include these two scripts and the CSS to enable both CertainTrust and the HTI -->
	<script type="text/javascript" src="CertainTrust.js"></script>
	<script type="text/javascript" src="certainTrustHTI.js"></script>
	<link rel="stylesheet" type="text/css" href="certainTrustHTI.css"/>

</head>
<body>
	<script type="text/javascript">
		var ctObject = new CertainTrust(10);
		var hti = new CertainTrustHTI(ctObject);

		function showValues() {
			alert("Values of the CertainTrust object:\n"
				+ "\nInit. value:\t"	+ ctObject.getF()
				+ "\nTrust:\t"				+ ctObject.getT()
				+ "\nCertainty:\t"		+ ctObject.getC()
				+ "\nExpectation:\t"	+ ctObject.getExpectation());
		}
	</script>
	<br />
	<button type="button" onclick="showValues();">Read CertainTrust values</button>

	<p>
		<img src="logo_tudarmstadt.png" alt="Technische Universit�t Darmstadt" width="176" height="73" />
		<img src="logo_softwarecluster.png" alt="Software-Cluster" width="212" height="73" />
	</p>
</body>
</html>