Fullscreen mode

From JSXGraph Wiki
Jump to navigationJump to search

This feature maybe useful in classrooms: the teacher wants to show the whole class a JSXGraph construction from an eLearning platform like moodle. By clicking either on the fullscreen icon in the JSXGraph navigation bar or on the external fullscreen button, the consruction is shown fullscreen mode.

The underlying JavaScript code

    var board = JXG.JSXGraph.initBoard('jxgbox', {
        boundingbox:[-5, 5, 5, -5],
        showFullscreen: true
    var plot = board.create('functiongraph', ["nthroot(x, 3)"], {withLabel: true, name:'nthroot(x,3)'});
<button onClick="board.toFullscreen()">Fullscreen</button>