##// END OF EJS Templates
CDN JS resources
Jonathan Frederic -
Show More
@@ -1,78 +1,81 b''
1 {%- extends 'basic.tpl' -%}
1 {%- extends 'basic.tpl' -%}
2 {% from 'mathjax.tpl' import mathjax %}
2 {% from 'mathjax.tpl' import mathjax %}
3
3
4
4
5 {%- block header -%}
5 {%- block header -%}
6 <!DOCTYPE html>
6 <!DOCTYPE html>
7 <html>
7 <html>
8 <head>
8 <head>
9
9
10 <meta charset="utf-8" />
10 <meta charset="utf-8" />
11 <title>{{resources['metadata']['name']}}</title>
11 <title>{{resources['metadata']['name']}}</title>
12
12
13 <script src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
14 <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
15
13 {% for css in resources.inlining.css -%}
16 {% for css in resources.inlining.css -%}
14 <style type="text/css">
17 <style type="text/css">
15 {{ css }}
18 {{ css }}
16 </style>
19 </style>
17 {% endfor %}
20 {% endfor %}
18
21
19 <style type="text/css">
22 <style type="text/css">
20 /* Overrides of notebook CSS for static HTML export */
23 /* Overrides of notebook CSS for static HTML export */
21 body {
24 body {
22 overflow: visible;
25 overflow: visible;
23 padding: 8px;
26 padding: 8px;
24 }
27 }
25 .input_area {
28 .input_area {
26 padding: 0.2em;
29 padding: 0.2em;
27 }
30 }
28
31
29 pre {
32 pre {
30 padding: 0.2em;
33 padding: 0.2em;
31 border: none;
34 border: none;
32 margin: 0px;
35 margin: 0px;
33 font-size: 13px;
36 font-size: 13px;
34 }
37 }
35
38
36 div#notebook {
39 div#notebook {
37 overflow: visible;
40 overflow: visible;
38 border-top: none;
41 border-top: none;
39 }
42 }
40
43
41 @media print {
44 @media print {
42 div.cell {
45 div.cell {
43 display: block;
46 display: block;
44 page-break-inside: avoid;
47 page-break-inside: avoid;
45 }
48 }
46 div.output_wrapper {
49 div.output_wrapper {
47 display: block;
50 display: block;
48 page-break-inside: avoid;
51 page-break-inside: avoid;
49 }
52 }
50 div.output {
53 div.output {
51 display: block;
54 display: block;
52 page-break-inside: avoid;
55 page-break-inside: avoid;
53 }
56 }
54 }
57 }
55 </style>
58 </style>
56
59
57 <!-- Custom stylesheet, it must be in the same directory as the html file -->
60 <!-- Custom stylesheet, it must be in the same directory as the html file -->
58 <link rel="stylesheet" href="custom.css">
61 <link rel="stylesheet" href="custom.css">
59
62
60 <!-- Loading mathjax macro -->
63 <!-- Loading mathjax macro -->
61 {{ mathjax() }}
64 {{ mathjax() }}
62
65
63 </head>
66 </head>
64 {%- endblock header -%}
67 {%- endblock header -%}
65
68
66 {% block body %}
69 {% block body %}
67 <body>
70 <body>
68 <div tabindex="-1" id="notebook" class="border-box-sizing">
71 <div tabindex="-1" id="notebook" class="border-box-sizing">
69 <div class="container" id="notebook-container">
72 <div class="container" id="notebook-container">
70 {{ super() }}
73 {{ super() }}
71 </div>
74 </div>
72 </div>
75 </div>
73 </body>
76 </body>
74 {%- endblock body %}
77 {%- endblock body %}
75
78
76 {% block footer %}
79 {% block footer %}
77 </html>
80 </html>
78 {% endblock footer %}
81 {% endblock footer %}
General Comments 0
You need to be logged in to leave comments. Login now