Skip to content

Commit

Permalink
Link to methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
trvrb committed Jun 13, 2015
1 parent a96d47d commit 3588bb6
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 5 deletions.
11 changes: 6 additions & 5 deletions auspice/_layouts/auspice.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,14 @@ <h4>Frequencies</h4>
<hr>
Built with love by <a href="http://bedford.io">Trevor Bedford</a> and
<a href="https://neherlab.wordpress.com/">Richard Neher</a>. This work is made possible by the
<a href="http://gisaid.org" target="_blank">GISAID Initiative</a> and the open sharing of genetic data by influenza research
groups from all over the world. <a href="/acknowledgements/">We gratefully acknowledge their contributions.</a>
Give us a shout at <a href="https://twitter.com/trvrb" target="_blank">@trvrb</a> or
<a href="http://gisaid.org" target="_blank">GISAID Initiative</a> and the open sharing of genetic data by
influenza research groups from all over the world. <a href="/acknowledgements/">We gratefully acknowledge their
contributions.</a> Give us a shout at <a href="https://twitter.com/trvrb" target="_blank">@trvrb</a> or
<a href="https://twitter.com/richardneher" target="_blank">@richardneher</a> with questions or comments. All
<a href="http://github.com/blab/nextflu" target="_blank">source code</a> is freely available under the terms of the
<a href="http://github.com/blab/nextflu/blob/master/LICENSE.txt" target="_blank">GNU Affero General Public License</a>. Data
updated <span id="updated"></span> and processed with commit <span id="commit"></span>.
<a href="http://github.com/blab/nextflu/blob/master/LICENSE.txt" target="_blank">GNU Affero General Public License</a>.
A <a href="/methods/">detailed description of methods</a> is also available. Data updated <span id="updated"></span> and processed
with commit <span id="commit"></span>.
</div>
</div>

Expand Down
35 changes: 35 additions & 0 deletions auspice/js/mathjax.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// configure mathjax to work with markdown through script tags: `

MathJax.Hub.Config({
tex2jax: { skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'], inlineMath: [["$","$"],["\\(","\\)"]] }
});

MathJax.Hub.Queue(function() {
var all = MathJax.Hub.getAllJax(), i;
for(i=0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
});

// Switch MathJax font to sans serif

MathJax.Hub.Config({
"HTML-CSS": {availableFonts: ["TeX"]},
MMLorHTML: {prefer: "HTML"}
});

MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
var VARIANT = MathJax.OutputJax["HTML-CSS"].FONTDATA.VARIANT;
VARIANT["normal"].fonts.unshift("MathJax_SansSerif");
VARIANT["bold"].fonts.unshift("MathJax_SansSerif-bold");
VARIANT["italic"].fonts.unshift("MathJax_SansSerif-italic");
VARIANT["-tex-mathit"].fonts.unshift("MathJax_SansSerif-italic");
});

MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
var VARIANT = MathJax.OutputJax.SVG.FONTDATA.VARIANT;
VARIANT["normal"].fonts.unshift("MathJax_SansSerif");
VARIANT["bold"].fonts.unshift("MathJax_SansSerif-bold");
VARIANT["italic"].fonts.unshift("MathJax_SansSerif-italic");
VARIANT["-tex-mathit"].fonts.unshift("MathJax_SansSerif-italic");
});

0 comments on commit 3588bb6

Please sign in to comment.