index-images.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>MathJax Test Page</title>
  5. <!-- Copyright (c) 2009-2017 The MathJax Consortium -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <script type="text/x-mathjax-config">
  10. //
  11. // Do NOT use this page as a template for your own pages. It includes
  12. // code that is needed for testing your site's installation of MathJax,
  13. // and that should not be used in normal web pages. Use sample.html as
  14. // the example for how to call MathJax in your own pages.
  15. //
  16. MathJax.HTML.Cookie.Set("menu",{});
  17. MathJax.Hub.Config({
  18. extensions: ["tex2jax.js"],
  19. jax: ["input/TeX","output/HTML-CSS"],
  20. "HTML-CSS": {
  21. availableFonts:[], preferredFont: null, webFont: null,
  22. styles: {".MathJax_Preview": {visibility: "hidden"}}
  23. }
  24. });
  25. (function (HUB) {
  26. var MINVERSION = {
  27. Firefox: 3.0,
  28. Opera: 9.52,
  29. MSIE: 6.0,
  30. Chrome: 0.3,
  31. Safari: 2.0,
  32. Konqueror: 4.0,
  33. Unknown: 10000.0 // always disable unknown browsers
  34. };
  35. if (!HUB.Browser.versionAtLeast(MINVERSION[HUB.Browser]||0.0)) {
  36. HUB.Config({
  37. jax: [], // don't load any Jax
  38. extensions: [], // don't load any extensions
  39. "v1.0-compatible": false // skip warning message due to no jax
  40. });
  41. setTimeout('document.getElementById("badBrowser").style.display = ""',0);
  42. }
  43. if (HUB.Browser.isMSIE && !HUB.Browser.versionAtLeast("7.0")) {
  44. setTimeout('document.getElementById("MSIE6").style.display = ""');
  45. }
  46. })(MathJax.Hub);
  47. </script>
  48. <script type="text/javascript" src="../MathJax.js"></script>
  49. <style>
  50. .warning {
  51. color: #800020;
  52. background-color: #FFF8F8;
  53. border: 2px solid red;
  54. margin: 1em 5em;
  55. padding: 1em;
  56. }
  57. </style>
  58. </head>
  59. <body>
  60. <noscript>
  61. <div style="color:#CC0000; text-align:center">
  62. <b>Warning: <a href="http://www.mathjax.org/">MathJax</a>
  63. requires JavaScript to process the mathematics on this page.<br />
  64. If your browser supports JavaScript, be sure it is enabled.</b>
  65. </div>
  66. <hr>
  67. </noscript>
  68. <blockquote>
  69. <h1>MathJax Test Page</h1>
  70. <p>
  71. If you see typeset mathematics below, then MathJax is working. If you see
  72. TeX code instead, MathJax is not working for you.
  73. </p>
  74. <!------------------------------------------------------------------------>
  75. <hr>
  76. <p>
  77. \[
  78. \frac{-b\pm\sqrt{b^2-4ac}}{2a}
  79. \]
  80. </p>
  81. <div style="color:green">
  82. <div style="text-align:center; color:red; font-size:120%" class="MathJax_Preview">
  83. MathJax is not working!
  84. </div><script type="math/tex; mode=display">
  85. \bf MathJax\ Image\ Fonts\ Appear\ to\ be\ Working!
  86. </script>
  87. </div>
  88. <hr>
  89. <!------------------------------------------------------------------------>
  90. <div id="badBrowser" style="display:none">
  91. <div class="warning">
  92. <b>WARNING</b>: The browser you are using does not appear to support
  93. MathJax, so we can't test if MathJax is working. Please try a different
  94. browser, or a newer version of your browser in order to test MathJax.
  95. </div>
  96. <hr>
  97. </div>
  98. <!------------------------------------------------------------------------>
  99. <div id="MSIE6" style="display:none">
  100. <div class="warning">
  101. <b>WARNING</b>: Internet Explorer 6 does not display images with
  102. alpha-channel transparency very well, so this test will not look good.
  103. But in practice, IE6 will use web-based fonts rather than image fonts
  104. (unless the page forces images, as this one does) so the poor quality
  105. rendering on this test page does not indicate a problem with MathJax.
  106. </div>
  107. <hr>
  108. </div>
  109. <!------------------------------------------------------------------------>
  110. If the mathematics does not show up properly, you may not have not
  111. installed the MathJax web fonts correctly. Follow the steps in the
  112. <a href="../docs/html/installation.html">installation instructions</a>.
  113. <p>
  114. </blockquote>
  115. </body>
  116. </html>