www

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

Safe.js (1383B)


      1 /* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
      2 /* vim: set ts=2 et sw=2 tw=80: */
      3 
      4 /*************************************************************
      5  *
      6  *  MathJax/config/Safe.js
      7  *  
      8  *  Allows you to load the Safe extension as part of the config list 
      9  *  when you load MathJax.js, e.g.
     10  *  
     11  *  <script
     12  *    src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML,Safe">
     13  *  </script>
     14  *
     15  *  ---------------------------------------------------------------------
     16  *  
     17  *  Copyright (c) 2013-2015 The MathJax Consortium
     18  * 
     19  *  Licensed under the Apache License, Version 2.0 (the "License");
     20  *  you may not use this file except in compliance with the License.
     21  *  You may obtain a copy of the License at
     22  * 
     23  *      http://www.apache.org/licenses/LICENSE-2.0
     24  * 
     25  *  Unless required by applicable law or agreed to in writing, software
     26  *  distributed under the License is distributed on an "AS IS" BASIS,
     27  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     28  *  See the License for the specific language governing permissions and
     29  *  limitations under the License.
     30  */
     31 
     32 MathJax.Hub.Register.StartupHook("End Config", function () {
     33   if (!MathJax.Hub.config.extensions) {MathJax.Hub.config.extensions = []}
     34   MathJax.Hub.config.extensions.push("Safe.js");
     35 });
     36 
     37 MathJax.Ajax.loadComplete("[MathJax]/config/Safe.js");