Random points: Difference between revisions

From JSXGraph Wiki
(New page: <html> <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/pro...)
 
No edit summary
Line 3: Line 3:
<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>
<form><input type='button' value="Next iteration" onClick="run();"></form>
<form><input type='button' value="Reload" onClick="reload();"></form>
<div id="box" class="jxgbox" style="width:400px; height:400px;"></div>
<div id="box" class="jxgbox" style="width:400px; height:400px;"></div>
<script language="JavaScript">
<script language="JavaScript">
         board = JXG.JSXGraph.initBoard('box', {originX: 10, originY:390 , unitX:380 , unitY: 380});
         board = JXG.JSXGraph.initBoard('box', {originX: 10, originY:390 , unitX:380 , unitY: 380});
                  
                  
        var level = 0;
         function reload() {
         function run() {
             JXG.JSXGraph.freeBoard(board);         
             JXG.JSXGraph.freeBoard(board);         
             board = JXG.JSXGraph.initBoard('box', {originX: 10, originY: 390, unitX: 380, unitY: 380});             
             board = JXG.JSXGraph.initBoard('box', {originX: 10, originY: 390, unitX: 380, unitY: 380});             
Line 18: Line 17:
             board.unsuspendUpdate();
             board.unsuspendUpdate();
         }
         }
        reload();
</script>
</html>
<source lang="javascript">
</source>
[[Category:Examples]]

Revision as of 14:12, 7 December 2008