Share JSXGraph: example "Conic section: ellipse"

JSXGraph
Share JSXGraph: example "Conic section: ellipse"
This website is a beta version. The official release will be in **2023**.

Conic section: ellipse

The input elements for an ellipse are either - three points: the two foci and a point on the ellipse - two point and a number: the two foci and the length of the major axis (may be a function, too).
// 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', [-1, 1]);
    var B = board1.create('point', [1, 0]);
    var C = board1.create('point', [0, -1]);
    var ell = board1.create('ellipse', [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, 4, 10]
    ]);
    var ell = board2.create('ellipse', [A, B, function() {
        return s.Value();
    }]);
})();