index-images.html 3.8 KB

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