Displaying Intergeo constructions

From JSXGraph Wiki
Revision as of 16:55, 24 June 2020 by A WASSERMANN (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Loading an Intergeo construction from a file

Here, we load the content of the Intergeo file "intergeo1.xml" into JSXGraph, i.e. into the division with the id "box".

<link rel="stylesheet" type="text/css" href="//jsxgraph.org/distrib/jsxgraph.css" />
<script type="text/javascript" src="//jsxgraph.org/distrib/jsxgraphcore.js"></script>
<script type="text/javascript" src="//jsxgraph.org/distrib/intergeo.min.js"></script>
<div id="box" class="jxgbox" style="width:700px; height:500px;"></div>
<script type="text/javascript">
  var brd = JXG.JSXGraph.loadBoardFromFile('box', '/geonext/intergeo1.xml', 'Intergeo');