History

Host MathML stylesheet in DevDocs

Thibaut Courouble committed 10 years ago

Commit a8bd4221 parent 4c28cb63 files · +218 −3Browse files

Showing the changes to assets/javascripts (1 of 3 files). Show all

Unified · Split

assets/javascripts/vendor/mathml.js+2−2
@@ -1,6 +1,6 @@
1/* This Source Code Form is subject to the terms of the Mozilla Public1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 * Adapted from: https://github.com/fred-wang/mathml.css */4 * Adapted from: https://github.com/fred-wang/mathml.css */
5/*jslint browser: true*/5/*jslint browser: true*/
6 6
@@ -18,7 +18,7 @@ · 11 unmodified lines
18 if (Math.abs(box.height - 23) > 1 || Math.abs(box.width - 77) > 1) {18 if (Math.abs(box.height - 23) > 1 || Math.abs(box.width - 77) > 1) {
19 // Insert the mathml.css stylesheet.19 // Insert the mathml.css stylesheet.
20 link = document.createElement("link");20 link = document.createElement("link");
21 link.href = "http://fred-wang.github.io/mathml.css/mathml.css";21 link.href = "https://cdn.devdocs.io/mathml.css";
22 link.rel = "stylesheet";22 link.rel = "stylesheet";
23 document.head.appendChild(link);23 document.head.appendChild(link);
24 }24 }