# Difference between revisions of "Interactive JessieScript"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 2: | Line 2: | ||

<script type="text/javascript" href="https://jsxgraph.org/distrib/JessieScript.js"></script> | <script type="text/javascript" href="https://jsxgraph.org/distrib/JessieScript.js"></script> | ||

</html> | </html> | ||

− | <jsxgraph width="600" height="450"> | + | <jsxgraph width="600" height="450" box="box"> |

var board, construction = []; | var board, construction = []; | ||

board = JXG.JSXGraph.initBoard('box', {grid:false, boundingbox:[-1,6,11,-3], keepaspectratio:true, axis:true});https://jsxgraph.org/distrib/JessieScript.js | board = JXG.JSXGraph.initBoard('box', {grid:false, boundingbox:[-1,6,11,-3], keepaspectratio:true, axis:true});https://jsxgraph.org/distrib/JessieScript.js |

## Revision as of 15:43, 4 January 2021

### Available commands

See our documentation page for a list of commands.

## The JavaScript code

```
var board, construction = [];
board = JXG.JSXGraph.initBoard('box', {grid:true, boundingbox:[-1,6,11,-3], keepaspectratio:true, axis:true});
function construct() {
var t = document.getElementById('input').value;
board.suspendUpdate();
construction.push(board.construct(t));
board.unsuspendUpdate();
}
function clearAll() {
JXG.JSXGraph.freeBoard(board);
board = JXG.JSXGraph.initBoard('box', {grid:true, boundingbox:[-1,6,11,-3], keepaspectratio:true, axis:true});
}
```