Debian Codegraph @

examples/intersection_with_dependencies_II.html

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 <html>
2 <head>
3 <title>JSXGraph example</title>
4 <link rel="stylesheet" type="text/css" href="../distrib/jsxgraph.css" />
5 <script type="text/javascript" src="prototype.js"></script>
6 <script type="text/javascript" src="../distrib/jsxgraphcore.js"></script>
7 </head>
8 <body>
9 <h2>Intersections - Version 2 </h2>
10 <div style="width:800px">
11 <div id="jxgbox" class="jxgbox" style="width:600px; height:450px; float:left"></div>
12 </div>
13 <div id="debug" style="display:none;"></div>
14 <script type="text/javascript">
15 /* <![CDATA[ */
16
17 board = JXG.JSXGraph.initBoard('jxgbox', {originX: 50, originY: 300, unitX: 50, unitY: 50});
18
19 var p1 = board.createElement('point', [2, 0], {style:5,name:"A",fillColor:'blue'});
20 var p2 = board.createElement('point', [8, 0], {style:5,name:"B",fillColor:'blue'});
21 var p3 = board.createElement('point', [0, -1], {style:5,name:"C",fillColor:'blue'});
22 var p4 = board.createElement('point', [10, -1], {style:5,name:"D",fillColor:'blue'});
23
24 var p5 = board.createElement('point', [5, -1], {style:5,name:"E",fillColor:'blue'});
25 var p6 = board.createElement('point', [3, 0], {style:5,name:"F",fillColor:'blue'});
26
27 var c1 = board.createElement('circle',[p1,p3]);
28 var c2 = board.createElement('circle',[p2,p4]);
29 var c3 = board.createElement('circle',[p5,p6]);
30
31 //var i11 = board.createElement('point',[board.intersectionFunc(c1,c3,0)], {style:8,name:"G"});
32 var i11 = board.createElement('intersection',[c1,c3,0], {style:8,name:"G"});
33 var i12 = board.createElement('otherintersection',[c1,c3,i11], {style:8,name:"H"});
34
35 var l1 = board.createElement('line',['G','H']);
36 /* ]]> */
37 </script>
38 </body>
39 </html>