| 1 |
<html> |
| 2 |
<head> |
| 3 |
<title>Watt | JSXGraph Example</title> |
| 4 |
<link rel="stylesheet" type="text/css" href="../../distrib/jsxgraph.css" /> |
| 5 |
<script type="text/javascript" src="../../distrib/jsxgraphcore.js"></script> |
| 6 |
<script type="text/javascript" src="../../src/CinderellaReader.js"></script> |
| 7 |
</head> |
| 8 |
<body> |
| 9 |
<div id="debug" style="display: none"></div> |
| 10 |
<center> |
| 11 |
<div style="width: 1000px;"> |
| 12 |
<div style="width:600px; height: 510px;"> |
| 13 |
<div id="jxgbox" class="jxgbox" style="width:600px; height:500px; text-align: left; float: left;"></div> |
| 14 |
<div id="polynomials" style="display: none; width: 600px; height: 500px; margin-left: 10px; text-align: left; padding-left: -200px;"></div> |
| 15 |
</div> |
| 16 |
|
| 17 |
<div style="width: 800px; margin-top: 10px;"> |
| 18 |
<form> |
| 19 |
<input type="button" onclick="computeLocus();" value="Calculate locus" /> |
| 20 |
</form> |
| 21 |
</div> |
| 22 |
</div> |
| 23 |
</center> |
| 24 |
<script type="text/javascript"> |
| 25 |
/* <![CDATA[ */ |
| 26 |
|
| 27 |
board = JXG.JSXGraph.loadBoardFromFile('jxgbox', 'watt.cdy', 'cinderella'); |
| 28 |
|
| 29 |
function computeLocus() { |
| 30 |
board.create('locus', [JXG.getRef(board, 'E')]); |
| 31 |
} |
| 32 |
/* ]]> */ |
| 33 |
</script> |
| 34 |
<br/> |
| 35 |
</body> |
| 36 |
</html> |