File: gxt2jessiecode.html

package info (click to toggle)
jsxgraph 1.3.5+dfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 26,044 kB
  • sloc: xml: 5,869; java: 1,072; python: 747; php: 192; makefile: 146; sh: 47
file content (57 lines) | stat: -rw-r--r-- 5,497 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<!--<html>-->
<head>
   <title>JSXGraph: gxt2jessiecode</title>
   <link rel="stylesheet" type="text/css" href="../distrib/jsxgraph.css" />
   <script type="text/javascript"  src="../src/loadjsxgraph.js"></script>
   <script type="text/javascript"  src="../src/reader/geonext.js"></script>
</head>
<body id="body">
<form>
<h1>1. Schritt: Hier den Inhalt der GEONExT-Datei einf├╝gen:</h1>
    <textarea id="input" cols="130" rows="2">eNrtXOlu20YQ/m09xQIGigZwJJK6UZZA7ERF0RO1ewFFC0pcSVtTpMDDlhLk3Tt7ciktddhpfNECEs7svfPN7Cx3h+4373768d0fV17D/e3dL5ff/vSjZzd7Q7clqYY7jv0k8BonbuQvsHc5mUcky5Z5dJ2hACfoEpMMR3M/HBOc4CjAkdtiOaEEiaZxsvAzEkee29IpSPTzbB4nwBcPwJrEiwWOMuDJJ2BO4yhLyXvs2V23pQhae+C1oVbWN8E7cRf+iiyACLypH6bYbRUMmrzy2kOrabmtFSPX3tCm1JpRtyTI5l7H6lAWJyh7jslsnnmdTo/yBQVttnijCEGrcZCnnmNbTg+ycIqNJ04CEvkZBhKdCIbsGScYf5YQxWbPjJtG/lJy2TPtTZyQGaETyEbjWMVo6HAca1iMpy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MUgQ1QM0sJirCIsBu2Pi0FFYEyFihr3d919KsoWpm2l4gGoZ0Uk6yEaeue6NhR0o57usfpp1fpZ6+ej00/jhre3Tz/5Sm1SKhrjfVYEbB+ioHevbENDNyvqWkepqFMvobWKPryKhiQqbbpSY8SK0z/2JYDcWvGrG8Xu6nlHnnTutYXaF1P1iI6+N27EVl2pNd+o3bhQu/s+7fZRKZ2/CFcDeGwC8NEnoArAvRrANYA/K4AnJgAffWaqAOzUAK4B/D8CmICPnaR4csAduvbes1aKcyOMnf7LALH5HtUzDc1mtyVLtybFfariw1fla1Uav1HgRr+BZ7h/17bI879/ZzZ+n/j+3QZ0ntn9u2OQJ6/r9crX9RQeKQzKZhHMavF5OBoRxj6uyj7nBwKD4bDvMWZxHI59+plDxLXj18t3vygFQeKTKzjKs/c4CfCURITG9aPveAev2QfpQkzSDCv7i9wAp5OELFlX/Ossx2GI0fjAWvTCDf6pSNVLN4VBTTIc6Fy6rTewGw13nAMVsa+n0pMTjWy4PELO+op+vJTFyrm3cSY0hz41+OscPlUt+fXa/wDJfPx4</textarea> <br />
    <input type='button' value='read compressed Geonext file' onclick="loadFile('Geonext')" /> 
    <input type='button' value='clear' onclick="document.getElementById('input').value = '';" /> 
	
<div id="box" class='jxgbox' style="width:800px; height:600px;"></div>
    <!-- <input type='button' value='Show XML' onclick='board.showXML()'>-->      <br /> 
    <h1>2. Schritt: Generate Jessiecode output:</h1>
    <input type='button' value='Jessiecode output' onclick="dump();" />   <br />
    <textarea id="output" cols="130" rows="30"></textarea>

    <h1>3. Schritt: Display Jessiecode output:</h1>
    <input type='button' value='Display Jessiecode' onclick="parse();" />   <br />
<div id="box2" class='jxgbox' style="width:800px; height:600px;"></div>
</form>

<script>
   var board, board2;
   
   function loadFile(format) {
        var value = document.getElementById('input').value;
        document.getElementById('box').innerHTML = '';
        //document.getElementById('debug').innerHTML = "<b>Debug:</b><p>";
    
        if(typeof board != 'undefined') {
            JXG.JSXGraph.freeBoard(board);
        }
        board = JXG.JSXGraph.loadBoardFromString('box', value, format);
   }

    function dump() {
        document.getElementById('output').innerHTML = JXG.Dump.toJessie(board);
    }

    function parse() {
        if(typeof board2 != 'undefined') {
            JXG.JSXGraph.freeBoard(board2);
        }
        board2 = JXG.JSXGraph.initBoard('box2', {boundingbox:[-5,5,5,-5], keepaspectratio:true});
        board2.jc.parse(document.getElementById('output').value);
    }

</script>

</body>
</html>