| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| 2 |
"http://www.w3.org/TR/html4/loose.dtd"> |
| 3 |
<html> |
| 4 |
<head> |
| 5 |
<title>JSXGraph CeBIT Tests</title> |
| 6 |
<style type="text/css"> |
| 7 |
.box { |
| 8 |
width: 200px; |
| 9 |
height: 80px; |
| 10 |
} |
| 11 |
</style> |
| •12 |
<script type="text/javascript" src="/jsxgraph/distrib/jsxgraphcore.js"></script> |
| 13 |
</head> |
| 14 |
<body> |
| 15 |
|
| 16 |
<div id="jxgbox" style="width: 300px; height: 300px; border: 3px solid black;"></div> |
| 17 |
<div id="debug"></div> |
| 18 |
<a href="jxg.html"><div class="box" style="float: left; background-color: #ccc;">Next</div></a> |
| 19 |
|
| 20 |
<script type="text/javascript"> |
| 21 |
JXG.debug = function(s) { |
| 22 |
document.getElementById('debug').innerHTML += s + "<br/>"; |
| 23 |
}; |
| 24 |
|
| 25 |
try { |
| 26 |
var board = JXG.JSXGraph.initBoard('jxgbox', {grid: false, axis: true, boundingbox: [-5, 5, 5, -5]}).suspendUpdate(), |
| 27 |
p1 = board.create('point', [-2, -1]), |
| 28 |
c = board.create('circle', [p1, 2]), |
| 29 |
p2 = board.create('point', [2, 1]), |
| 30 |
p3 = board.create('point', [3, -2]), |
| 31 |
poly = board.create('polygon', [p1, p2, p3]), |
| 32 |
fun = board.create('functiongraph', [function(x) { return p3.X() * Math.sin(x); }, -5, 5]); |
| 33 |
|
| 34 |
board.unsuspendUpdate(); |
| 35 |
} catch (e) { |
| 36 |
JXG.debug('Error: ' + e); |
| 37 |
} |
| 38 |
|
| 39 |
</script> |
| 40 |
|
| 41 |
</body> |
| •42 |
</html> |