Displaying Intergeo constructions: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=== Loading an [ | === Loading an [https://i2geo.net Intergeo] construction from a file === | ||
Here, we load the content of the [http://i2geo.net Intergeo] file "intergeo1.xml" into [ | Here, we load the content of the [http://i2geo.net Intergeo] file "intergeo1.xml" into [https://jsxgraph.org JSXGraph], i.e. | ||
into the division with the id "box". | into the division with the id "box". | ||
<source lang="xml"> | <source lang="xml"> | ||
<link rel="stylesheet" type="text/css" href=" | <link rel="stylesheet" type="text/css" href="//jsxgraph.org/distrib/jsxgraph.css" /> | ||
<script type="text/javascript" src=" | <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> | <div id="box" class="jxgbox" style="width:700px; height:500px;"></div> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
Line 12: | Line 13: | ||
<html> | <html> | ||
<link rel="stylesheet" type="text/css" href=" | <link rel="stylesheet" type="text/css" href="//jsxgraph.org/distrib/jsxgraph.css" /> | ||
<script type="text/javascript" src=" | <script type="text/javascript" src="//jsxgraph.org/distrib/jsxgraphcore.js"></script> | ||
<script type="text/javascript" src="//jsxgraph.org/distrib/IntergeoReader.js"></script> | |||
<div id="box" class="jxgbox" style="width:700px; height:500px;"></div> | <div id="box" class="jxgbox" style="width:700px; height:500px;"></div> | ||
<script type="text/javascript"> | <script type="text/javascript"> |
Latest revision as of 16:55, 24 June 2020
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');
</script>