// Define the ids of your boards in BOARDID0, BOARDID1,...
(function() {
const board1=JXG.JSXGraph.initBoard(BOARDID0,{boundingbox:[-3,3,3,-3], keepaspectratio:true});
var A = board1.create('point',[0,1]);
var B = board1.create('point',[1,1]);
var C = board1.create('point',[0,-1]);
var hyp = board1.create('hyperbola',[A,B,C]);
})();
(function() {
const board2=JXG.JSXGraph.initBoard(BOARDID1,{boundingbox:[-3,3,3,-3], keepaspectratio:true});
var A = board2.create('point',[-1,0]);
var B = board2.create('point',[1,0]);
var s = board2.create('slider',[[-1,-2],[1,-2],[0,0.5,3]]);
var hyp = board2.create('hyperbola',[A,B,function(){return s.Value();}]);
})();
This example is licensed under a Creative Commons Attribution 4.0 International License.
Please note that you have to mention The Center of Mobile Learning with Digital Technology in the credits.
/*
This example is licensed under a
Creative Commons Attribution 4.0 International License.
https://creativecommons.org/licenses/by/4.0/
Please note that you have to mention
The Center of Mobile Learning with Digital Technology
in the credits.
*/
const BOARDID0 = 'your_div_id_0'; // Insert your 1st board id here!
const BOARDID1 = 'your_div_id_1'; // Insert your 2nd board id here!
(function() {
const board1=JXG.JSXGraph.initBoard(BOARDID0,{boundingbox:[-3,3,3,-3], keepaspectratio:true});
var A = board1.create('point',[0,1]);
var B = board1.create('point',[1,1]);
var C = board1.create('point',[0,-1]);
var hyp = board1.create('hyperbola',[A,B,C]);
})();
(function() {
const board2=JXG.JSXGraph.initBoard(BOARDID1,{boundingbox:[-3,3,3,-3], keepaspectratio:true});
var A = board2.create('point',[-1,0]);
var B = board2.create('point',[1,0]);
var s = board2.create('slider',[[-1,-2],[1,-2],[0,0.5,3]]);
var hyp = board2.create('hyperbola',[A,B,function(){return s.Value();}]);
})();
<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>
<div id="board-1-wrapper" class="jxgbox-wrapper " style="width: 100%; ">
<div id="board-1" 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 4.0 International License.
https://creativecommons.org/licenses/by/4.0/
Please note that you have to mention
The Center of Mobile Learning with Digital Technology
in the credits.
*/
const BOARDID0 = 'board-0';
const BOARDID1 = 'board-1';
const BOARDID = BOARDID0;
(function() {
const board1=JXG.JSXGraph.initBoard(BOARDID0,{boundingbox:[-3,3,3,-3], keepaspectratio:true});
var A = board1.create('point',[0,1]);
var B = board1.create('point',[1,1]);
var C = board1.create('point',[0,-1]);
var hyp = board1.create('hyperbola',[A,B,C]);
})();
(function() {
const board2=JXG.JSXGraph.initBoard(BOARDID1,{boundingbox:[-3,3,3,-3], keepaspectratio:true});
var A = board2.create('point',[-1,0]);
var B = board2.create('point',[1,0]);
var s = board2.create('slider',[[-1,-2],[1,-2],[0,0.5,3]]);
var hyp = board2.create('hyperbola',[A,B,function(){return s.Value();}]);
})();
</script>
<jsxgraph width="100%, 100%" aspect-ratio="1 / 1, 1 / 1" numberOfBoards="2" title="Conic section: hyperbola" description="This construction was copied from JSXGraph examples database: https://jsxgraph.uni-bayreuth.de/share/" useGlobalJS="false">
/*
This example is licensed under a
Creative Commons Attribution 4.0 International License.
https://creativecommons.org/licenses/by/4.0/
Please note that you have to mention
The Center of Mobile Learning with Digital Technology
in the credits.
*/
(function() {
const board1=JXG.JSXGraph.initBoard(BOARDID0,{boundingbox:[-3,3,3,-3], keepaspectratio:true});
var A = board1.create('point',[0,1]);
var B = board1.create('point',[1,1]);
var C = board1.create('point',[0,-1]);
var hyp = board1.create('hyperbola',[A,B,C]);
})();
(function() {
const board2=JXG.JSXGraph.initBoard(BOARDID1,{boundingbox:[-3,3,3,-3], keepaspectratio:true});
var A = board2.create('point',[-1,0]);
var B = board2.create('point',[1,0]);
var s = board2.create('slider',[[-1,-2],[1,-2],[0,0.5,3]]);
var hyp = board2.create('hyperbola',[A,B,function(){return s.Value();}]);
})();
</jsxgraph>
/*
This example is licensed under a
Creative Commons Attribution 4.0 International License.
https://creativecommons.org/licenses/by/4.0/
Please note that you have to mention
The Center of Mobile Learning with Digital Technology
in the credits.
*/
const BOARDID0 = 'your_div_id_0'; // Insert your 1st board id here!
const BOARDID1 = 'your_div_id_1'; // Insert your 2nd board id here!
(function() {
const board1=JXG.JSXGraph.initBoard(BOARDID0,{boundingbox:[-3,3,3,-3], keepaspectratio:true});
var A = board1.create('point',[0,1]);
var B = board1.create('point',[1,1]);
var C = board1.create('point',[0,-1]);
var hyp = board1.create('hyperbola',[A,B,C]);
})();
(function() {
const board2=JXG.JSXGraph.initBoard(BOARDID1,{boundingbox:[-3,3,3,-3], keepaspectratio:true});
var A = board2.create('point',[-1,0]);
var B = board2.create('point',[1,0]);
var s = board2.create('slider',[[-1,-2],[1,-2],[0,0.5,3]]);
var hyp = board2.create('hyperbola',[A,B,function(){return s.Value();}]);
})();
<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>
<div id="board-1-wrapper" class="jxgbox-wrapper " style="width: 100%; ">
<div id="board-1" 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 4.0 International License.
https://creativecommons.org/licenses/by/4.0/
Please note that you have to mention
The Center of Mobile Learning with Digital Technology
in the credits.
*/
const BOARDID0 = 'board-0';
const BOARDID1 = 'board-1';
const BOARDID = BOARDID0;
(function() {
const board1=JXG.JSXGraph.initBoard(BOARDID0,{boundingbox:[-3,3,3,-3], keepaspectratio:true});
var A = board1.create('point',[0,1]);
var B = board1.create('point',[1,1]);
var C = board1.create('point',[0,-1]);
var hyp = board1.create('hyperbola',[A,B,C]);
})();
(function() {
const board2=JXG.JSXGraph.initBoard(BOARDID1,{boundingbox:[-3,3,3,-3], keepaspectratio:true});
var A = board2.create('point',[-1,0]);
var B = board2.create('point',[1,0]);
var s = board2.create('slider',[[-1,-2],[1,-2],[0,0.5,3]]);
var hyp = board2.create('hyperbola',[A,B,function(){return s.Value();}]);
})();
</script>
<jsxgraph width="100%, 100%" aspect-ratio="1 / 1, 1 / 1" numberOfBoards="2" title="Conic section: hyperbola" description="This construction was copied from JSXGraph examples database: https://jsxgraph.uni-bayreuth.de/share/" useGlobalJS="false">
/*
This example is licensed under a
Creative Commons Attribution 4.0 International License.
https://creativecommons.org/licenses/by/4.0/
Please note that you have to mention
The Center of Mobile Learning with Digital Technology
in the credits.
*/
(function() {
const board1=JXG.JSXGraph.initBoard(BOARDID0,{boundingbox:[-3,3,3,-3], keepaspectratio:true});
var A = board1.create('point',[0,1]);
var B = board1.create('point',[1,1]);
var C = board1.create('point',[0,-1]);
var hyp = board1.create('hyperbola',[A,B,C]);
})();
(function() {
const board2=JXG.JSXGraph.initBoard(BOARDID1,{boundingbox:[-3,3,3,-3], keepaspectratio:true});
var A = board2.create('point',[-1,0]);
var B = board2.create('point',[1,0]);
var s = board2.create('slider',[[-1,-2],[1,-2],[0,0.5,3]]);
var hyp = board2.create('hyperbola',[A,B,function(){return s.Value();}]);
})();
</jsxgraph>