diff options
author | ache <ache@ache.one> | 2017-10-16 12:58:58 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2017-10-17 04:44:17 +0200 |
commit | 84ab3c30f477a34cf9015be728048e86b26c1d69 (patch) | |
tree | 9d210c924b34a11bcf118b5e4c32597ce7c615c3 /public/js/script.js | |
parent | HTML safe off (diff) |
MathJax integration
Diffstat (limited to 'public/js/script.js')
-rw-r--r-- | public/js/script.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/public/js/script.js b/public/js/script.js index 4c9769a..cbc4221 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -7,13 +7,16 @@ $(document).ready(function() { e.stopPropagation(); $.get(this.href, function(data) { $('#md').html(data); + MathJax.Hub.Queue(["Typeset", MathJax.Hub]); }); }); + $('.directory').find('ul').hide(); $('.directory').click(function(e) { e.stopPropagation(); $(this).children('ul').slideToggle(); + MathJax.Hub.Queue(["Typeset", MathJax.Hub]); }); }); }); |