File:
[LON-CAPA] /
loncom /
html /
adm /
dragmath /
applet /
MathML.html
Revision
1.1:
download - view:
text,
annotated -
select for diffs
Fri May 30 16:04:37 2008 UTC (16 years, 2 months ago) by
www
Branches:
MAIN
CVS tags:
version_2_9_X,
version_2_9_99_0,
version_2_9_1,
version_2_9_0,
version_2_8_X,
version_2_8_99_1,
version_2_8_99_0,
version_2_8_2,
version_2_8_1,
version_2_8_0,
version_2_7_X,
version_2_7_99_1,
version_2_7_99_0,
version_2_7_1,
version_2_7_0,
version_2_6_99_1,
version_2_6_99_0,
version_2_11_0_RC1,
version_2_10_X,
version_2_10_1,
version_2_10_0_RC2,
version_2_10_0_RC1,
version_2_10_0,
loncapaMITrelate_1,
language_hyphenation_merge,
language_hyphenation,
bz6209-base,
bz6209,
bz5969,
bz2851,
PRINT_INCOMPLETE_base,
PRINT_INCOMPLETE,
HEAD,
GCI_3,
GCI_2,
GCI_1,
BZ5971-printing-apage,
BZ5434-fox,
BZ4492-merge,
BZ4492-feature_horizontal_radioresponse
Bug #5713: Dragmath
1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2: <html>
3: <head>
4:
5: <title>DragMath MathML Example</title>
6:
7: <script>
8: function renderMathML() {
9: var ans = document.DragMath.getMathExpression();
10: var source = '<?xml version="1.0"?>'
11: + '<!DOCTYPE html PUBLIC'
12: + ' "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"'
13: + ' "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"'
14: + '['
15: + ' <!ENTITY mathml "http://www.w3.org/1998/Math/MathML">'
16: + ']>'
17: + ''
18: + '<body>'
19: + ans
20: + '</body>'
21: + '';
22: var target = document.getElementById('outputID');
23: target.setAttribute('src','data:text/xml;charset=utf-8,' + escape(source));
24: }
25: function resetMathML() {
26: var source = 'The MathML rendering will appear here.';
27: var target = document.getElementById('outputID');
28: target.setAttribute('src','data:text/html,' + escape(source));
29: }
30: </script>
31:
32: </head>
33: <body>
34:
35: <div id="mainContent">
36:
37:
38: <DIV align=left><FONT face=Arial color=#000080
39: size=6><STRONG>DragMath MathML Example</STRONG></FONT></DIV>
40: <br><br>
41:
42: <applet name="DragMath" codebase="classes" code="Display.MainApplet.class" archive="Project.jar,AbsoluteLayout.jar,swing-layout-1.0.jar,jdom.jar,jep.jar" width=540 height=333>
43: <param name=language value="en">
44: <param name=outputFormat value="MathML">
45: To use this page you need a Java-enabled browser. Download the latest Java plug-in from <a href="http://www.java.com">Java.com</a>
46: </applet >
47: <br>
48:
49: <form>
50: <input type='button' value='Render MathML' onclick='renderMathML(); return true;' />
51: </form>
52:
53: <H2>MathML Rendering:</H2>
54:
55: <iframe id='outputID' src='data:text/html' width='98%' height='150'>
56: You need a MathML-enabled Gecko-based browser.
57: </iframe>
58:
59: </div>
60: <br>
61: JavaScript used for rendering from <a href="http://www.mozilla.org/projects/mathml/demo/tester.html">Mozilla website</a>, re-used under <a href="http://creativecommons.org/licenses/by-sa/2.0/">Creative Commons License</a>
62:
63: </body>
64: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>