Annotation of loncom/html/adm/dragmath/applet/MathML.html, revision 1.1
1.1 ! www 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>