Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 28 lines (24 sloc) 0.923 kb
8c46e6a Jason Grout Add pdf version of book, with an xsl transformation from the xhtml.
authored
1 <meta name="viewport" content="width=device-width"/>
0e69c58 Jason Grout Add the possibility of inserting sage cells
authored
2
3 <script src="http://aleph.sagemath.org/static/jquery.min.js"></script>
4 <script src="http://aleph.sagemath.org/static/embedded_sagecell.js"></script>
5 <script>
6 $(function () {
7
8 // For some reason, MathJax gets messed up if we don't put this timeout.
9 // my guess is it has to do with us appending script tags to the end
10 // the head element, but I don't know.
11 setTimeout(function() {
12 sagecell.loadMathJax=false;
8c46e6a Jason Grout Add pdf version of book, with an xsl transformation from the xhtml.
authored
13 sagecell.makeSagecell({inputLocation: '.asagecell'});
f3dc37e Jason Grout HW for chapter 10; octave example for chapter 9
authored
14 sagecell.makeSagecell({inputLocation: '.aoctavecell',
15 defaultLanguage: "octave", languages: sagecell.allLanguages});
0e69c58 Jason Grout Add the possibility of inserting sage cells
authored
16 }, 1000);
17
18 //console.log(MathJax);
19 });
20 </script>
47e2d48 Jason Grout Add collapsible Sage cells.
authored
21 <script>
22 $(function() {
23 $(document).on("click", '.collapsible .title', function(e) {
24 var body = $(e.target.parentElement).find('.body').slideToggle("fast").find('.CodeMirror').each(function(i, e) {e.CodeMirror.refresh()});
25 });
26 });
27 </script>
Something went wrong with that request. Please try again.