<iframe src="https://jsxgraph.org/share/iframe/wrzelprmpf" style="border: 1px solid black; overflow: hidden; width: 550px; aspect-ratio: 55 / 65;" name="JSXGraph example: Würzelprümpf" allowfullscreen ></iframe>
<button onClick="alert('hi');">Say Hi!</button> <div id="board-0-wrapper" class="jxgbox-wrapper " style="width: 100%; "> <div id="board-0" class="jxgbox" style="aspect-ratio: 1 / 1; width: 100%;" data-ar="1 / 1"></div> </div> <script type = "text/javascript"> /* This example is licensed under a Creative Commons Attribution ShareAlike 4.0 International License. https://creativecommons.org/licenses/by-sa/4.0/ Please note you have to mention The Center of Mobile Learning with Digital Technology and the autor Wigand Rathmann (https://en.www.math.fau.de/rathmann/) in the credits. */ const BOARDID = 'board-0'; var board = JXG.JSXGraph.initBoard(BOARDID, { boundingbox: [-4, 2, 6, -4], keepaspectratio: true }); var p1 = board.create('point', [0, 0], { name: 'X', size: 4 }); var p2 = board.create('point', [2, -1], { name: 'B', size: 4 }); var p3 = board.create('point', [-2, -3], { name: 'C', size: 4 }); var p4 = board.create('point', [-1, -1], { name: 'D', size: 4 }); var p5 = board.create('point', [3, 1], { name: 'E', size: 4 }); var poly = board.create('polygon', [p1, p2, p3, p4, p5], { borders: { strokeColor: 'black' } }); </script>
/* This example is licensed under a Creative Commons Attribution ShareAlike 4.0 International License. https://creativecommons.org/licenses/by-sa/4.0/ Please note you have to mention The Center of Mobile Learning with Digital Technology and the autor Wigand Rathmann (https://en.www.math.fau.de/rathmann/) in the credits. */ const BOARDID = 'your_div_id'; // Insert your id here! var board = JXG.JSXGraph.initBoard(BOARDID, { boundingbox: [-4, 2, 6, -4], keepaspectratio: true }); var p1 = board.create('point', [0, 0], { name: 'X', size: 4 }); var p2 = board.create('point', [2, -1], { name: 'B', size: 4 }); var p3 = board.create('point', [-2, -3], { name: 'C', size: 4 }); var p4 = board.create('point', [-1, -1], { name: 'D', size: 4 }); var p5 = board.create('point', [3, 1], { name: 'E', size: 4 }); var poly = board.create('polygon', [p1, p2, p3, p4, p5], { borders: { strokeColor: 'black' } });
<button onClick="alert('hi');">Say Hi!</button>
// Define the id of your board in BOARDID var board = JXG.JSXGraph.initBoard(BOARDID, { boundingbox: [-4, 2, 6, -4], keepaspectratio: true }); var p1 = board.create('point', [0, 0], { name: 'X', size: 4 }); var p2 = board.create('point', [2, -1], { name: 'B', size: 4 }); var p3 = board.create('point', [-2, -3], { name: 'C', size: 4 }); var p4 = board.create('point', [-1, -1], { name: 'D', size: 4 }); var p5 = board.create('point', [3, 1], { name: 'E', size: 4 }); var poly = board.create('polygon', [p1, p2, p3, p4, p5], { borders: { strokeColor: 'black' } });
This example is licensed under a Creative Commons Attribution ShareAlike 4.0 International License. Please note you have to mention The Center of Mobile Learning with Digital Technology and the author Wigand Rathmann in the credits.