Annotation of loncom/html/adm/LC_math_editor/test.html, revision 1.1
1.1 ! damieng 1: <!DOCTYPE html>
! 2: <html>
! 3: <head>
! 4: <meta charset="utf-8">
! 5: <title>Math editor test</title>
! 6: <style>
! 7: div.eqnbox { margin: 1em }
! 8: textarea.math { font-family: monospace; height: 3em; width: 100%; }
! 9: span.math-error { border: solid 1px red; min-width: 1px; }
! 10: </style>
! 11: </head>
! 12: <body>
! 13: <p>Strict syntax, symbolic mode:</p>
! 14: <div class="eqnbox">
! 15: <textarea class="math" spellcheck="false" autofocus="autofocus"></textarea>
! 16: </div>
! 17: <p>Strict syntax, unit mode (no variable):</p>
! 18: <div class="eqnbox">
! 19: <textarea class="math" data-unit_mode="true" data-constants="c, pi, e, hbar, amu" spellcheck="false" autofocus="autofocus"></textarea>
! 20: </div>
! 21: <p>Lax syntax, symbolic mode:</p>
! 22: <div class="eqnbox">
! 23: <textarea class="math" data-implicit_operators="true" spellcheck="false" autofocus="autofocus"></textarea>
! 24: </div>
! 25: <p>Lax syntax, unit mode:</p>
! 26: <div class="eqnbox">
! 27: <textarea class="math" data-implicit_operators="true" data-unit_mode="true" data-constants="c, pi, e, hbar, amu" spellcheck="false" autofocus="autofocus"></textarea>
! 28: </div>
! 29: <div class="eqnbox">
! 30: Test in a field <input class="math" data-implicit_operators="true" spellcheck="false" autofocus="autofocus"></textarea> with text around (Lax syntax, symbolic mode)
! 31: </div>
! 32: <script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=MML_HTMLorMML"></script>
! 33: <script src="src/definitions.js"></script>
! 34: <script src="src/enode.js"></script>
! 35: <script src="src/operator.js"></script>
! 36: <script src="src/parse_exception.js"></script>
! 37: <script src="src/parser.js"></script>
! 38: <script src="src/token.js"></script>
! 39: <script src="src/tokenizer.js"></script>
! 40: <script src="src/ui.js"></script>
! 41: <script>
! 42: window.addEventListener('load', function(e) {
! 43: initEditors(); // will be LCMATH.init_editors() with the minimized version
! 44: }, false);
! 45: </script>
! 46: </body>
! 47: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>