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
|
<?xml version="1.0" encoding="UTF-8"?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Texts</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../../distrib/jsxgraph.css" type="text/css"/>
<script type="text/javascript" src="../../distrib/jsxgraphsrc.js"></script>
</head>
<body>
<section>
<header>
<h1>XHTML text test</h1>
</header>
<figure>
<div id="jxgbox1" class="jxgbox" style="width:600px; height:300px;"></div>
</figure>
</section>
<script type="text/javascript">
<![CDATA[
JXG.Options.text.display = 'internal';
var brd = JXG.JSXGraph.initBoard('jxgbox1', {boundingbox:[0,10,10,0], axis:false, showNavigation: true});
var s = brd.create('text', [5, 5, 'XHTML test'], {fontSize:36});
]]>
</script>
</body></html>
|