Share JSXGraph: example "Logging of user activity"

JSXGraph
Share JSXGraph: example "Logging of user activity"
This website is a beta version. The official release will be in **2023**.
If the board attribute `logging` is enabled, user activity is logged in the board object `userLog`. Each entry is a JavaScript object containing some data about the user activity. Drag the points 'A' and 'B' and then click on "Show user log".
<button onclick="showUserLog();">Show user log</button>
// Define the id of your board in BOARDID

const board = JXG.JSXGraph.initBoard(BOARDID, {
    boundingbox: [-5, 5, 5, -5],
    axis: false,
    logging: {enabled: true},
    showNavigation: false
});

var A = board.create('point', [-4, 0], { name: 'A' });
var B = board.create('point', [1, 2], { name: 'B' });

var showUserLog = function() {
    var txt = '';
    
    for (let i = 0; i < board.userLog.length; i++) {
        txt += JSON.stringify(board.userLog[i]) + '\n';
    }
    document.getElementById('userLog').value = txt;
};
<textarea id="userLog" rows="10" cols="40"></textarea>