123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>MathJax Signals Test Page</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <script type="text/x-mathjax-config">
-
-
-
- MathJax.Hub.Config({
- extensions: ["tex2jax.js","TeX/noUndefined.js"],
- jax: ["input/TeX","output/HTML-CSS"],
- tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]},
- TeX: {extensions: ["AMSmath.js","AMSsymbols.js"]}
- });
-
-
-
-
-
-
- MathJax.Hub.Register.LoadHook("[MathJax]/extensions/TeX/noUndefined.js",
- function () {MathJax.Hub.Startup.signal.Post("*** noUndefined Loaded ***")});
- MathJax.Hub.Register.LoadHook("[MathJax]/extensions/TeX/AMSmath.js",
- function () {MathJax.Hub.Startup.signal.Post("*** AMSmath Loaded ***")});
-
-
-
-
-
-
-
- MathJax.Hub.Startup.signal.Post("*** In Startup Configuration code ***");
-
-
-
-
-
-
- MathJax.Hub.Register.StartupHook("onLoad",function () {
- Message("*** The onLoad handler has run, page is ready to process ***");
- });
-
-
-
-
-
-
-
-
- MathJax.Hub.Queue(function () {Message("*** MathJax is done ***")});
- </script>
- <script type="text/javascript" src="../MathJax.js"></script>
- <style>
- .output {
- background-color: #F0F0F0;
- border-top: 1px solid;
- border-bottom: 1px solid;
- padding: 3px 1em;
- }
- </style>
- </head>
- <body>
- <p>
- When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
- $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
- </p>
- <p>
- Messages about mathematics:
- <pre id="MathMessages" class="output">
- </pre>
- </p>
- <p>
- All Messages:
- <pre id="AllMessages" class="output">
- </pre>
- </p>
- <script>
- (function () {
-
-
-
- var math = document.getElementById("MathMessages");
- var all = document.getElementById("AllMessages");
-
-
-
-
- window.Message = function (message) {
- MathJax.HTML.addText(all,message);
- MathJax.HTML.addElement(all,"br");
- };
-
-
-
-
- MathJax.Hub.Register.MessageHook("New Math",function (message) {
- var script = MathJax.Hub.getJaxFor(message[1]).SourceElement();
- MathJax.HTML.addText(math,message.join(" ")+": '"+script.text+"'");
- MathJax.HTML.addElement(math,"br");
- });
-
-
-
- MathJax.Hub.Startup.signal.Interest(function (message) {Message("Startup: "+message)});
- MathJax.Hub.signal.Interest(function (message) {Message("Hub: "+message)});
-
-
-
-
-
- Message("##### events above this have already occurred #####");
- })();
- </script>
- </body>
- </html>
|