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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
<!DOCTYPE html>
<html>
<head>
<title>JSXGraph example</title>
<!-- Adjust the paths -->
<!-- JSXGraph -->
<link rel="stylesheet" type="text/css" href="../../distrib/jsxgraph.css" />
<link rel="stylesheet" type="text/css" href="css/jsxexamples.css" />
<script type="text/javascript" src="../../distrib/jsxgraphcore.js"></script>
<!-- jQuery -->
<script type="text/javascript" src="../jquery-3.5.1.min.js"></script>
<!-- Syntax Highlighting -->
<link rel="stylesheet" type="text/css" href="css/shCore.css" />
<link rel="stylesheet" type="text/css" href="css/shThemeDefault.css" />
<script type="text/javascript" src="js/shCore.js"></script>
<script type="text/javascript" src="js/shBrushJScript.js"></script>
</head>
<body>
<!-- powered by <a href="http://jsxgraph.org/">JSXGraph</a>.-->
<div id="container">
<span id="jsxgraph-head">powered by <a href="http://jsxgraph.org/"><img src="img/jsxgraph_badge_39.png" alt="JSXGraph" /></a></span>
<h1>Enter title here</h1>
<a name="construction"></a>
<h2><a href="#construction" id="head-construction">Construction</a></h2>
<div id="construction">
<div id="jxgbox" class="jxgbox" style="width: 600px; height: 600px;"></div>
</div>
<script id="jxg" type="text/javascript">
(function() {
var board = JXG.JSXGraph.initBoard('jxgbox', {
boundingbox: [-5, 5, 5, -5],
keepaspectreatio: true,
axis:true,
grid: true
});
// construction
})();
</script>
<a name="explanation"></a>
<h2><a href="#explanation" id="head-explanation">Explanation</a></h2>
<div id="explanation">
Explanation goes here.
</div>
<a name="source"></a>
<h2><a href="#source" id="head-source">Source code</a></h2>
<div id="source">
<script id="jxgsource" type="syntaxhighlighter" class="brush: js"></script>
</div>
<div id="footer">
<span style="float: left"><img src="img/jsxgraph_logo_20.png" alt="JSXGraph logo" /></span>
JSXGraph is licensed under the <a href="http://www.gnu.org/licenses/lgpl.txt">LGPL</a>; © 2008-2010 <a href="http://jsxgraph.uni-bayreuth.de/wp/documentation/the-team/">JSXGraph Team</a>
</div>
</div> <!-- #container -->
<script type="text/javascript">
// <![CDATA[
$(document).ready(function() {
var parts = {
construction: 'show',
source: 'hide',
explanation: 'hide'
},
part;
$('#jxgsource').text($('#jxg').text());
SyntaxHighlighter.all();
for(part in parts) {
$('#' + part)[parts[part]]();
$('#head-'+part).click(function(_part) {
return function() {
$('#'+_part).slideToggle(500);
}
}(part));
}
});
// ]]>
</script>
</body>
</html>
|