-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.html
27 lines (24 loc) · 923 Bytes
/
header.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<meta name="viewport" content="width=device-width"/>
<script src="http://aleph.sagemath.org/static/jquery.min.js"></script>
<script src="http://aleph.sagemath.org/static/embedded_sagecell.js"></script>
<script>
$(function () {
// For some reason, MathJax gets messed up if we don't put this timeout.
// my guess is it has to do with us appending script tags to the end
// the head element, but I don't know.
setTimeout(function() {
sagecell.loadMathJax=false;
sagecell.makeSagecell({inputLocation: '.asagecell'});
sagecell.makeSagecell({inputLocation: '.aoctavecell',
defaultLanguage: "octave", languages: sagecell.allLanguages});
}, 1000);
//console.log(MathJax);
});
</script>
<script>
$(function() {
$(document).on("click", '.collapsible .title', function(e) {
var body = $(e.target.parentElement).find('.body').slideToggle("fast").find('.CodeMirror').each(function(i, e) {e.CodeMirror.refresh()});
});
});
</script>