www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

index.html (5472B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>MathJax Test Page</title>
      5 <!-- Copyright (c) 2009-2015 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 
     10 <script type="text/x-mathjax-config">
     11 //
     12 //  Do NOT use this page as a template for your own pages.  It includes 
     13 //  code that is needed for testing your site's installation of MathJax,
     14 //  and that should not be used in normal web pages.  Use sample.html as
     15 //  the example for how to call MathJax in your own pages.
     16 //
     17   MathJax.HTML.Cookie.Set("menu",{});
     18   MathJax.Hub.Config({
     19     extensions: ["tex2jax.js"],
     20     jax: ["input/TeX","output/HTML-CSS"],
     21     "HTML-CSS": {
     22       availableFonts:[],
     23       styles: {".MathJax_Preview": {visibility: "hidden"}}
     24     }
     25   });
     26   MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
     27     var FONT = MathJax.OutputJax["HTML-CSS"].Font;
     28     FONT.loadError = function (font) {
     29       MathJax.Message.Set("Can't load web font TeX/"+font.directory,null,2000);
     30       document.getElementById("noWebFont").style.display = "";
     31     };
     32     FONT.firefoxFontError = function (font) {
     33       MathJax.Message.Set("Firefox can't load web fonts from a remote host",null,3000);
     34       document.getElementById("ffWebFont").style.display = "";
     35     };
     36   });
     37 
     38 (function (HUB) {
     39   
     40   var MINVERSION = {
     41     Firefox: 3.0,
     42     Opera: 9.52,
     43     MSIE: 6.0,
     44     Chrome: 0.3,
     45     Safari: 2.0,
     46     Konqueror: 4.0,
     47     Unknown: 10000.0 // always disable unknown browsers
     48   };
     49   
     50   if (!HUB.Browser.versionAtLeast(MINVERSION[HUB.Browser]||0.0)) {
     51     HUB.Config({
     52       jax: [],                   // don't load any Jax
     53       extensions: [],            // don't load any extensions
     54       "v1.0-compatible": false   // skip warning message due to no jax
     55     });
     56     setTimeout('document.getElementById("badBrowser").style.display = ""',0);
     57   }
     58   
     59 })(MathJax.Hub);
     60 
     61 MathJax.Hub.Register.StartupHook("End",function () {
     62   var HTMLCSS = MathJax.OutputJax["HTML-CSS"];
     63   if (HTMLCSS && HTMLCSS.imgFonts) {document.getElementById("imageFonts").style.display = ""}
     64 });
     65 
     66 </script>
     67 <script type="text/javascript" src="../MathJax.js"></script>
     68 
     69 <style>
     70 .warning {
     71   color: #800020;
     72   background-color: #FFF8F8;
     73   border: 2px solid red;
     74   margin: 1em 5em;
     75   padding: 1em;
     76 }
     77 </style>
     78 </head>
     79 <body>
     80 
     81 <noscript>
     82 <div style="color:#CC0000; text-align:center">
     83 <b>Warning: <a href="http://www.mathjax.org/">MathJax</a>
     84 requires JavaScript to process the mathematics on this page.<br />
     85 If your browser supports JavaScript, be sure it is enabled.</b>
     86 </div>
     87 <hr>
     88 </noscript>
     89 
     90 <blockquote>
     91 
     92 <h1>MathJax Test Page</h1>
     93 
     94 <p>
     95 If you see typeset mathematics below, then MathJax is working.  If you see
     96 TeX code instead, MathJax is not working for you.
     97 </p>
     98 <!------------------------------------------------------------------------>
     99 <hr>
    100 
    101 
    102 <p>
    103 \[
    104 \frac{-b\pm\sqrt{b^2-4ac}}{2a}
    105 \]
    106 </p>
    107 
    108 <div style="color:green">
    109 <div style="text-align:center; color:red; font-size:120%" class="MathJax_Preview">
    110 MathJax is not working!
    111 </div><script type="math/tex; mode=display">
    112 \bf MathJax\ Appears\ to\ be\ Working!
    113 </script>
    114 </div>
    115 
    116 <hr>
    117 
    118 <!------------------------------------------------------------------------>
    119 
    120 <div id="badBrowser" style="display:none">
    121 <div class="warning">
    122 <b>WARNING</b>: The browser you are using does not appear to support
    123 MathJax, so we can't test if MathJax is working.  Please try a different
    124 browser, or a newer version of your browser in order to test MathJax.
    125 </div>
    126 <hr>
    127 </div>
    128 
    129 <!------------------------------------------------------------------------>
    130 
    131 <div id="imageFonts" style="display:none">
    132 <div class="warning">
    133 <b>WARNING</b>: The browser you are using does not seem to support web-based
    134 fonts, so we can't test the MathJax web fonts with this browser (image fonts
    135 have been used instead). Please try a different browser, or a newer version
    136 of your browser in order to test MathJax's web-based fonts.
    137 </div>
    138 <hr>
    139 </div>
    140 
    141 <!------------------------------------------------------------------------>
    142 
    143 <div id="noWebFont" style="display:none">
    144 <div class="warning">
    145 <b>WARNING</b>: MathJax's web fonts don't seem to be available.  Be sure you have
    146 the <code>MathJax/fonts</code> directory in place before continuing.
    147 If you fail to install these fonts, MathJax will not 
    148 work properly with some browsers.  If you can't install the image fonts, 
    149 be sure to set the <code>noImageFonts</code> parameter in your MathJax configuration 
    150 (either <code>MathJax/config/MathJax.js</code>, or the 
    151 <code>MathJax.Hub.Config()</code> call in your web page).
    152 </div>
    153 <hr>
    154 </div>
    155 
    156 <!------------------------------------------------------------------------>
    157 
    158 <div id="ffWebFont" style="display:none">
    159 <div class="warning">
    160 <b>WARNING</b>: You are trying to load MathJax from a remote site where the
    161 web-based fonts are not set up to be shipped to Firefox properly.  See the
    162 <a href="../docs/html/installation.html#notes-about-shared-installations">discussion
    163 of Firefox's same-origin policy</a> in the MathJax documentation for more 
    164 details.
    165 </div>
    166 <hr>
    167 </div>
    168 
    169 <!------------------------------------------------------------------------>
    170 
    171 <p>
    172 Once you have MathJax working properly, view the <a
    173 href="index-images.html">image mode test page</a> to make sure that the
    174 image fallback mode is working as well.
    175 </p>
    176 
    177 </blockquote>
    178 
    179 </body>
    180 </html>