| 1 |
<html> |
| 2 |
<head> |
| 3 |
<title>JSXGraph example</title> |
| 4 |
|
| 5 |
<!-- Adjust the paths --> |
| 6 |
|
| 7 |
<!-- JSXGraph --> |
| 8 |
<link rel="stylesheet" type="text/css" href="../../distrib/jsxgraph.css" /> |
| 9 |
<script type="text/javascript" src="../../distrib/jsxgraphcore.js"></script> |
| 10 |
|
| 11 |
<!-- jQuery --> |
| 12 |
<script type="text/javascript" src="../jquery-3.5.1.min.js"></script> |
| 13 |
</head> |
| 14 |
<body> |
| 15 |
|
| 16 |
<h2>Enter title here.</h2> |
| 17 |
|
| 18 |
<div style="width:800px"> |
| 19 |
<div id="jxgbox" class="jxgbox" style="width:800px; height:800px;"></div> |
| 20 |
<br /> |
| 21 |
<div id="debug" style="display:block;"> |
| 22 |
Debug information:<br /> |
| 23 |
</div> |
| 24 |
</div> |
| 25 |
|
| 26 |
<script type="text/javascript"> |
| 27 |
/* <![CDATA[ */ |
| 28 |
|
| 29 |
(function() { |
| 30 |
|
| 31 |
var board = JXG.JSXGraph.initBoard('jxgbox', { |
| 32 |
boundingbox: [-5, 5, 5, -5], |
| 33 |
keepaspectreatio: true, |
| 34 |
axis:true, |
| 35 |
grid: true |
| 36 |
}); |
| 37 |
|
| 38 |
// construction |
| 39 |
|
| 40 |
})(); |
| 41 |
|
| 42 |
/* ]]> */ |
| 43 |
</script> |
| 44 |
</body> |
| 45 |
</html> |