1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <!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>
|