Displaying Intergeo constructions: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 6: Line 6:
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script>
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script>
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<div id="box" class="jxgbox" style="width:500px; height:500px;"></div>
<div id="box" class="jxgbox" style="width:700px; height:500px;"></div>
<script type="text/javascript">
<script type="text/javascript">
   var brd = JXG.JSXGraph.loadBoardFromFile('box', '/geonext/intergeo1.xml', 'Intergeo');
   var brd = JXG.JSXGraph.loadBoardFromFile('box', '/geonext/intergeo1.xml', 'Intergeo');
Line 16: Line 16:
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script>
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script>
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<div id="box" class="jxgbox" style="width:500px; height:500px;"></div>
<div id="box" class="jxgbox" style="width:700px; height:500px;"></div>
<script type="text/javascript">
<script type="text/javascript">
   var brd = JXG.JSXGraph.loadBoardFromFile('box', '/geonext/intergeo1.xml', 'Intergeo');
   var brd = JXG.JSXGraph.loadBoardFromFile('box', '/geonext/intergeo1.xml', 'Intergeo');

Revision as of 16:22, 21 January 2009

Loading a Intergeo construction from a file

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

<link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" />
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script>
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.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>