Fullscreen mode

From JSXGraph Wiki
Revision as of 20:11, 1 April 2020 by A WASSERMANN (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

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