Skip to content
This repository was archived by the owner on May 9, 2022. It is now read-only.

Commit 8437435

Browse files
committed
Stop (inadvertantly) using the MathJax CDN , but re-add the accessibility code this removes
# MathJax 2.7 loads the accessibility code from its own (soon-to-be deprecated CDN); use our own CDN instead.
1 parent 390d624 commit 8437435

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

app/index.biology.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
<script src="/js/lib/nprogress.js"></script>
3939

40-
<script type="text/javascript" src="https://cdn.isaacphysics.org/vendor/mathjax/2.7/MathJax.js?delayStartupUntil=configured"> </script>
40+
<script type="text/javascript" src="https://cdn.isaacphysics.org/vendor/mathjax/2.7/MathJax.js?delayStartupUntil=configured&noContrib"> </script>
4141

4242
<link rel="stylesheet" href="/css/app.css" />
4343

app/index.chemistry.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
<script src="/js/lib/nprogress.js"></script>
3939

40-
<script type="text/javascript" src="https://cdn.isaacphysics.org/vendor/mathjax/2.7/MathJax.js?delayStartupUntil=configured"> </script>
40+
<script type="text/javascript" src="https://cdn.isaacphysics.org/vendor/mathjax/2.7/MathJax.js?delayStartupUntil=configured&noContrib"> </script>
4141

4242
<link rel="stylesheet" href="/css/app.css" />
4343

app/index.physics.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
<script src="/js/lib/nprogress.js"></script>
3939

40-
<script type="text/javascript" src="https://cdn.isaacphysics.org/vendor/mathjax/2.7/MathJax.js?delayStartupUntil=configured"> </script>
40+
<script type="text/javascript" src="https://cdn.isaacphysics.org/vendor/mathjax/2.7/MathJax.js?delayStartupUntil=configured&noContrib"> </script>
4141

4242
<link rel="stylesheet" href="/css/app.css" />
4343

app/js/app/MathJaxConfig.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ define([], function() {
2424
//AMS.labels = {};
2525
}
2626

27-
// Allow inline maths with single $s
28-
27+
// Specify where to find the official Accessibility extension:
28+
MathJax.Ajax.config.path["a11y"] = "https://cdn.isaacphysics.org/vendor/mathjax/mathjax-a11y-v1.1.0";
2929

30+
// Allow inline maths with single $s, define Isaac macros:
3031
MathJax.Hub.Config({
3132

3233
config: ["TeX-AMS_HTML.js"],
@@ -54,7 +55,7 @@ define([], function() {
5455
"units": ["\\rm{#1}",1],
5556
"standardstate": ["\\mathbin{\u29B5}",0],
5657
},
57-
extensions: ["mhchem.js"],
58+
extensions: ["mhchem.js", "[a11y]/accessibility-menu.js"],
5859
},
5960
"HTML-CSS": {
6061
availableFonts: [],

0 commit comments

Comments
 (0)