##// END OF EJS Templates
Split apart the body attributes and classes in the notebook templates
Jason Grout -
Show More
@@ -1,96 +1,96 b''
1 1 {% extends "page.html" %}
2 2
3 3 {% block title %}{{page_title}}{% endblock %}
4 4
5 5 {% block stylesheet %}
6 6 <link rel="stylesheet" href="{{ static_url('components/codemirror/lib/codemirror.css') }}">
7 7 <link rel="stylesheet" href="{{ static_url('components/codemirror/addon/dialog/dialog.css') }}">
8 8 {{super()}}
9 9 {% endblock %}
10 10
11 {% block params %}
11 {% block bodyclasses %}edit_app {{super()}}{% endblock %}
12 12
13 class="edit_app"
13 {% block params %}
14 14 data-base-url="{{base_url}}"
15 15 data-file-path="{{file_path}}"
16
16 {{super()}}
17 17 {% endblock %}
18 18
19 19 {% block headercontainer %}
20 20
21 21 <span id="save_widget" class="pull-left save_widget">
22 22 <span class="filename"></span>
23 23 <span class="last_modified"></span>
24 24 </span>
25 25
26 26 {% endblock %}
27 27
28 28 {% block header %}
29 29
30 30 <div id="menubar-container" class="container">
31 31 <div id="menubar">
32 32 <div id="menus" class="navbar navbar-default" role="navigation">
33 33 <div class="container-fluid">
34 34 <button type="button" class="btn btn-default navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
35 35 <i class="fa fa-bars"></i>
36 36 <span class="navbar-text">Menu</span>
37 37 </button>
38 38 <ul class="nav navbar-nav navbar-right">
39 39 <li id="notification_area"></li>
40 40 </ul>
41 41 <div class="navbar-collapse collapse">
42 42 <ul class="nav navbar-nav">
43 43 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">File</a>
44 44 <ul id="file-menu" class="dropdown-menu">
45 45 <li id="new-file"><a href="#">New</a></li>
46 46 <li id="save-file"><a href="#">Save</a></li>
47 47 <li id="rename-file"><a href="#">Rename</a></li>
48 48 </ul>
49 49 </li>
50 50 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a>
51 51 <ul id="edit-menu" class="dropdown-menu">
52 52 <li id="menu-find"><a href="#">Find</a></li>
53 53 <li id="menu-replace"><a href="#">Find &amp; Replace</a></li>
54 54 <li class="divider"></li>
55 55 <li class="dropdown-header">Key Map</li>
56 56 <li id="menu-keymap-default"><a href="#">Default<i class="fa"></i></a></li>
57 57 <li id="menu-keymap-sublime"><a href="#">Sublime Text<i class="fa"></i></a></li>
58 58 <li id="menu-keymap-vim"><a href="#">Vim<i class="fa"></i></a></li>
59 59 <li id="menu-keymap-emacs"><a href="#">emacs<i class="fa"></i></a></li>
60 60 </ul>
61 61 </li>
62 62 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a>
63 63 <ul id="view-menu" class="dropdown-menu">
64 64 <li id="menu-line-numbers"><a href="#">Toggle Line Numbers</a></li>
65 65 </ul>
66 66 </li>
67 67 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Language</a>
68 68 <ul id="mode-menu" class="dropdown-menu">
69 69 </ul>
70 70 </li>
71 71 </ul>
72 72 <p id="current-mode" class="navbar-text navbar-right">current mode</p>
73 73 </div>
74 74 </div>
75 75 </div>
76 76 </div>
77 77 </div>
78 78
79 79 <div class="lower-header-bar"></div>
80 80
81 81 {% endblock %}
82 82
83 83 {% block site %}
84 84
85 85 <div id="texteditor-backdrop">
86 86 <div id="texteditor-container" class="container"></div>
87 87 </div>
88 88
89 89 {% endblock %}
90 90
91 91 {% block script %}
92 92
93 93 {{super()}}
94 94
95 95 <script src="{{ static_url("edit/js/main.js") }}" type="text/javascript" charset="utf-8"></script>
96 96 {% endblock %}
@@ -1,318 +1,319 b''
1 1 {% extends "page.html" %}
2 2
3 3 {% block stylesheet %}
4 4
5 5 {% if mathjax_url %}
6 6 <script type="text/javascript" src="{{mathjax_url}}?config=TeX-AMS_HTML-full&delayStartupUntil=configured" charset="utf-8"></script>
7 7 {% endif %}
8 8 <script type="text/javascript">
9 9 // MathJax disabled, set as null to distingish from *missing* MathJax,
10 10 // where it will be undefined, and should prompt a dialog later.
11 11 window.mathjax_url = "{{mathjax_url}}";
12 12 </script>
13 13
14 14 <link rel="stylesheet" href="{{ static_url("components/bootstrap-tour/build/css/bootstrap-tour.min.css") }}" type="text/css" />
15 15 <link rel="stylesheet" href="{{ static_url("components/codemirror/lib/codemirror.css") }}">
16 16
17 17 {{super()}}
18 18
19 19 <link rel="stylesheet" href="{{ static_url("notebook/css/override.css") }}" type="text/css" />
20 20 <link rel="stylesheet" href="" id='kernel-css' type="text/css" />
21 21
22 22 {% endblock %}
23 23
24 {% block bodyclasses %}notebook_app {{super()}}{% endblock %}
25
24 26 {% block params %}
25 27
26 28 data-project="{{project}}"
27 29 data-base-url="{{base_url}}"
28 30 data-ws-url="{{ws_url}}"
29 31 data-notebook-name="{{notebook_name}}"
30 32 data-notebook-path="{{notebook_path}}"
31 class="notebook_app"
32 33
33 34 {% endblock %}
34 35
35 36
36 37 {% block headercontainer %}
37 38
38 39
39 40 <span id="save_widget" class="pull-left save_widget">
40 41 <span class="filename"></span>
41 42 <span class="checkpoint_status"></span>
42 43 <span class="autosave_status"></span>
43 44 </span>
44 45
45 46 <span id="kernel_logo_widget">
46 47 <img class="current_kernel_logo" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/>
47 48 </span>
48 49
49 50 {% endblock headercontainer %}
50 51
51 52 {% block header %}
52 53 <div id="menubar-container" class="container">
53 54 <div id="menubar">
54 55 <div id="menus" class="navbar navbar-default" role="navigation">
55 56 <div class="container-fluid">
56 57 <button type="button" class="btn btn-default navbar-btn navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
57 58 <i class="fa fa-bars"></i>
58 59 <span class="navbar-text">Menu</span>
59 60 </button>
60 61 <p id="kernel_indicator" class="navbar-text">
61 62 <span class="kernel_indicator_name">Kernel</span>
62 63 <i id="kernel_indicator_icon"></i>
63 64 </p>
64 65 <i id="modal_indicator" class="navbar-text"></i>
65 66 <span id="notification_area"></span>
66 67 <div class="navbar-collapse collapse">
67 68 <ul class="nav navbar-nav">
68 69 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">File</a>
69 70 <ul id="file_menu" class="dropdown-menu">
70 71 <li id="new_notebook"
71 72 title="Make a new notebook (Opens a new window)">
72 73 <a href="#">New</a></li>
73 74 <li id="open_notebook"
74 75 title="Opens a new window with the Dashboard view">
75 76 <a href="#">Open...</a></li>
76 77 <!-- <hr/> -->
77 78 <li class="divider"></li>
78 79 <li id="copy_notebook"
79 80 title="Open a copy of this notebook's contents and start a new kernel">
80 81 <a href="#">Make a Copy...</a></li>
81 82 <li id="rename_notebook"><a href="#">Rename...</a></li>
82 83 <li id="save_checkpoint"><a href="#">Save and Checkpoint</a></li>
83 84 <!-- <hr/> -->
84 85 <li class="divider"></li>
85 86 <li id="restore_checkpoint" class="dropdown-submenu"><a href="#">Revert to Checkpoint</a>
86 87 <ul class="dropdown-menu">
87 88 <li><a href="#"></a></li>
88 89 <li><a href="#"></a></li>
89 90 <li><a href="#"></a></li>
90 91 <li><a href="#"></a></li>
91 92 <li><a href="#"></a></li>
92 93 </ul>
93 94 </li>
94 95 <li class="divider"></li>
95 96 <li id="print_preview"><a href="#">Print Preview</a></li>
96 97 <li class="dropdown-submenu"><a href="#">Download as</a>
97 98 <ul class="dropdown-menu">
98 99 <li id="download_ipynb"><a href="#">IPython Notebook (.ipynb)</a></li>
99 100 <li id="download_script"><a href="#">Script</a></li>
100 101 <li id="download_html"><a href="#">HTML (.html)</a></li>
101 102 <li id="download_rst"><a href="#">reST (.rst)</a></li>
102 103 <li id="download_pdf"><a href="#">PDF (.pdf)</a></li>
103 104 </ul>
104 105 </li>
105 106 <li class="divider"></li>
106 107 <li id="trust_notebook"
107 108 title="Trust the output of this notebook">
108 109 <a href="#" >Trust Notebook</a></li>
109 110 <li class="divider"></li>
110 111 <li id="kill_and_exit"
111 112 title="Shutdown this notebook's kernel, and close this window">
112 113 <a href="#" >Close and halt</a></li>
113 114 </ul>
114 115 </li>
115 116 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a>
116 117 <ul id="edit_menu" class="dropdown-menu">
117 118 <li id="cut_cell"><a href="#">Cut Cell</a></li>
118 119 <li id="copy_cell"><a href="#">Copy Cell</a></li>
119 120 <li id="paste_cell_above" class="disabled"><a href="#">Paste Cell Above</a></li>
120 121 <li id="paste_cell_below" class="disabled"><a href="#">Paste Cell Below</a></li>
121 122 <li id="paste_cell_replace" class="disabled"><a href="#">Paste Cell &amp; Replace</a></li>
122 123 <li id="delete_cell"><a href="#">Delete Cell</a></li>
123 124 <li id="undelete_cell" class="disabled"><a href="#">Undo Delete Cell</a></li>
124 125 <li class="divider"></li>
125 126 <li id="split_cell"><a href="#">Split Cell</a></li>
126 127 <li id="merge_cell_above"><a href="#">Merge Cell Above</a></li>
127 128 <li id="merge_cell_below"><a href="#">Merge Cell Below</a></li>
128 129 <li class="divider"></li>
129 130 <li id="move_cell_up"><a href="#">Move Cell Up</a></li>
130 131 <li id="move_cell_down"><a href="#">Move Cell Down</a></li>
131 132 <li class="divider"></li>
132 133 <li id="edit_nb_metadata"><a href="#">Edit Notebook Metadata</a></li>
133 134 </ul>
134 135 </li>
135 136 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a>
136 137 <ul id="view_menu" class="dropdown-menu">
137 138 <li id="toggle_header"
138 139 title="Show/Hide the IPython Notebook logo and notebook title (above menu bar)">
139 140 <a href="#">Toggle Header</a></li>
140 141 <li id="toggle_toolbar"
141 142 title="Show/Hide the action icons (below menu bar)">
142 143 <a href="#">Toggle Toolbar</a></li>
143 144 </ul>
144 145 </li>
145 146 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Insert</a>
146 147 <ul id="insert_menu" class="dropdown-menu">
147 148 <li id="insert_cell_above"
148 149 title="Insert an empty Code cell above the currently active cell">
149 150 <a href="#">Insert Cell Above</a></li>
150 151 <li id="insert_cell_below"
151 152 title="Insert an empty Code cell below the currently active cell">
152 153 <a href="#">Insert Cell Below</a></li>
153 154 </ul>
154 155 </li>
155 156 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Cell</a>
156 157 <ul id="cell_menu" class="dropdown-menu">
157 158 <li id="run_cell" title="Run this cell, and move cursor to the next one">
158 159 <a href="#">Run</a></li>
159 160 <li id="run_cell_select_below" title="Run this cell, select below">
160 161 <a href="#">Run and Select Below</a></li>
161 162 <li id="run_cell_insert_below" title="Run this cell, insert below">
162 163 <a href="#">Run and Insert Below</a></li>
163 164 <li id="run_all_cells" title="Run all cells in the notebook">
164 165 <a href="#">Run All</a></li>
165 166 <li id="run_all_cells_above" title="Run all cells above (but not including) this cell">
166 167 <a href="#">Run All Above</a></li>
167 168 <li id="run_all_cells_below" title="Run this cell and all cells below it">
168 169 <a href="#">Run All Below</a></li>
169 170 <li class="divider"></li>
170 171 <li id="change_cell_type" class="dropdown-submenu"
171 172 title="All cells in the notebook have a cell type. By default, new cells are created as 'Code' cells">
172 173 <a href="#">Cell Type</a>
173 174 <ul class="dropdown-menu">
174 175 <li id="to_code"
175 176 title="Contents will be sent to the kernel for execution, and output will display in the footer of cell">
176 177 <a href="#">Code</a></li>
177 178 <li id="to_markdown"
178 179 title="Contents will be rendered as HTML and serve as explanatory text">
179 180 <a href="#">Markdown</a></li>
180 181 <li id="to_raw"
181 182 title="Contents will pass through nbconvert unmodified">
182 183 <a href="#">Raw NBConvert</a></li>
183 184 </ul>
184 185 </li>
185 186 <li class="divider"></li>
186 187 <li id="current_outputs" class="dropdown-submenu"><a href="#">Current Output</a>
187 188 <ul class="dropdown-menu">
188 189 <li id="toggle_current_output"
189 190 title="Hide/Show the output of the current cell">
190 191 <a href="#">Toggle</a>
191 192 </li>
192 193 <li id="toggle_current_output_scroll"
193 194 title="Scroll the output of the current cell">
194 195 <a href="#">Toggle Scrolling</a>
195 196 </li>
196 197 <li id="clear_current_output"
197 198 title="Clear the output of the current cell">
198 199 <a href="#">Clear</a>
199 200 </li>
200 201 </ul>
201 202 </li>
202 203 <li id="all_outputs" class="dropdown-submenu"><a href="#">All Output</a>
203 204 <ul class="dropdown-menu">
204 205 <li id="toggle_all_output"
205 206 title="Hide/Show the output of all cells">
206 207 <a href="#">Toggle</a>
207 208 </li>
208 209 <li id="toggle_all_output_scroll"
209 210 title="Scroll the output of all cells">
210 211 <a href="#">Toggle Scrolling</a>
211 212 </li>
212 213 <li id="clear_all_output"
213 214 title="Clear the output of all cells">
214 215 <a href="#">Clear</a>
215 216 </li>
216 217 </ul>
217 218 </li>
218 219 </ul>
219 220 </li>
220 221 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Kernel</a>
221 222 <ul id="kernel_menu" class="dropdown-menu">
222 223 <li id="int_kernel"
223 224 title="Send KeyboardInterrupt (CTRL-C) to the Kernel">
224 225 <a href="#">Interrupt</a>
225 226 </li>
226 227 <li id="restart_kernel"
227 228 title="Restart the Kernel">
228 229 <a href="#">Restart</a>
229 230 </li>
230 231 <li id="reconnect_kernel"
231 232 title="Reconnect to the Kernel">
232 233 <a href="#">Reconnect</a>
233 234 </li>
234 235 <li class="divider"></li>
235 236 <li id="menu-change-kernel" class="dropdown-submenu">
236 237 <a href="#">Change kernel</a>
237 238 <ul class="dropdown-menu" id="menu-change-kernel-submenu"></ul>
238 239 </li>
239 240 </ul>
240 241 </li>
241 242 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a>
242 243 <ul id="help_menu" class="dropdown-menu">
243 244 <li id="notebook_tour" title="A quick tour of the notebook user interface"><a href="#">User Interface Tour</a></li>
244 245 <li id="keyboard_shortcuts" title="Opens a tooltip with all keyboard shortcuts"><a href="#">Keyboard Shortcuts</a></li>
245 246 <li class="divider"></li>
246 247 {% set
247 248 sections = (
248 249 (
249 250 ("http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Index.ipynb", "Notebook Help", True),
250 251 ("http://help.github.com/articles/github-flavored-markdown","Markdown",True),
251 252 ),
252 253 )
253 254 %}
254 255
255 256 {% for helplinks in sections %}
256 257 {% for link in helplinks %}
257 258 <li><a href="{{link[0]}}" {{'target="_blank" title="Opens in a new window"' if link[2]}}>
258 259 {{'<i class="fa fa-external-link menu-icon pull-right"></i>' if link[2]}}
259 260 {{link[1]}}
260 261 </a></li>
261 262 {% endfor %}
262 263 {% if not loop.last %}
263 264 <li class="divider"></li>
264 265 {% endif %}
265 266 {% endfor %}
266 267 <li class="divider"></li>
267 268 <li title="About IPython Notebook"><a id="notebook_about" href="#">About</a></li>
268 269 </ul>
269 270 </li>
270 271 </ul>
271 272 </div>
272 273 </div>
273 274 </div>
274 275 </div>
275 276
276 277 <div id="maintoolbar" class="navbar">
277 278 <div class="toolbar-inner navbar-inner navbar-nobg">
278 279 <div id="maintoolbar-container" class="container"></div>
279 280 </div>
280 281 </div>
281 282 </div>
282 283
283 284 <div class="lower-header-bar"></div>
284 285 {% endblock header %}
285 286
286 287 {% block site %}
287 288
288 289
289 290 <div id="ipython-main-app">
290 291 <div id="notebook_panel">
291 292 <div id="notebook"></div>
292 293 </div>
293 294 </div>
294 295
295 296 <div id="pager">
296 297 <div id="pager-contents">
297 298 <div id="pager-container" class="container"></div>
298 299 </div>
299 300 <div id='pager-button-area'></div>
300 301 </div>
301 302
302 303 <div id='tooltip' class='ipython_tooltip' style='display:none'></div>
303 304
304 305
305 306 {% endblock %}
306 307
307 308
308 309 {% block script %}
309 310 {{super()}}
310 311 <script type="text/javascript">
311 312 sys_info = {{sys_info}};
312 313 </script>
313 314
314 315 <script src="{{ static_url("components/text-encoding/lib/encoding.js") }}" charset="utf-8"></script>
315 316
316 317 <script src="{{ static_url("notebook/js/main.js") }}" charset="utf-8"></script>
317 318
318 319 {% endblock %}
@@ -1,121 +1,121 b''
1 1 <!DOCTYPE HTML>
2 2 <html>
3 3
4 4 <head>
5 5 <meta charset="utf-8">
6 6
7 7 <title>{% block title %}IPython Notebook{% endblock %}</title>
8 8 {% block favicon %}<link rel="shortcut icon" type="image/x-icon" href="{{static_url("base/images/favicon.ico") }}">{% endblock %}
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
10 10 <link rel="stylesheet" href="{{static_url("components/jquery-ui/themes/smoothness/jquery-ui.min.css") }}" type="text/css" />
11 11 <meta name="viewport" content="width=device-width, initial-scale=1.0">
12 12
13 13 {% block stylesheet %}
14 14 <link rel="stylesheet" href="{{ static_url("style/style.min.css") }}" type="text/css"/>
15 15 {% endblock %}
16 16 <link rel="stylesheet" href="{{ static_url("custom/custom.css") }}" type="text/css" />
17 17 <script src="{{static_url("components/es6-promise/promise.min.js")}}" type="text/javascript" charset="utf-8"></script>
18 18 <script src="{{static_url("components/requirejs/require.js") }}" type="text/javascript" charset="utf-8"></script>
19 19 <script>
20 20 require.config({
21 21 {% if version_hash %}
22 22 urlArgs: "v={{version_hash}}",
23 23 {% endif %}
24 24 baseUrl: '{{static_url("", include_version=False)}}',
25 25 paths: {
26 26 nbextensions : '{{ base_url }}nbextensions',
27 27 kernelspecs : '{{ base_url }}kernelspecs',
28 28 underscore : 'components/underscore/underscore-min',
29 29 backbone : 'components/backbone/backbone-min',
30 30 jquery: 'components/jquery/jquery.min',
31 31 bootstrap: 'components/bootstrap/js/bootstrap.min',
32 32 bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min',
33 33 jqueryui: 'components/jquery-ui/ui/minified/jquery-ui.min',
34 34 moment: 'components/moment/moment',
35 35 codemirror: 'components/codemirror',
36 36 termjs: 'components/term.js/src/term',
37 37 },
38 38 shim: {
39 39 underscore: {
40 40 exports: '_'
41 41 },
42 42 backbone: {
43 43 deps: ["underscore", "jquery"],
44 44 exports: "Backbone"
45 45 },
46 46 bootstrap: {
47 47 deps: ["jquery"],
48 48 exports: "bootstrap"
49 49 },
50 50 bootstraptour: {
51 51 deps: ["bootstrap"],
52 52 exports: "Tour"
53 53 },
54 54 jqueryui: {
55 55 deps: ["jquery"],
56 56 exports: "$"
57 57 }
58 58 }
59 59 });
60 60
61 61 require.config({
62 62 map: {
63 63 '*':{
64 64 'contents': '{{ contents_js_source }}',
65 65 }
66 66 }
67 67 });
68 68 </script>
69 69
70 70 {% block meta %}
71 71 {% endblock %}
72 72
73 73 </head>
74 74
75 <body {% block params %}{% endblock %}>
75 <body class="{% block bodyclasses %}{% endblock %}" {% block params %}{% endblock %}>
76 76
77 77 <noscript>
78 78 <div id='noscript'>
79 79 IPython Notebook requires JavaScript.<br>
80 80 Please enable it to proceed.
81 81 </div>
82 82 </noscript>
83 83
84 84 <div id="header" class="navbar navbar-fixed-top">
85 85 <div id="header-container" class="container">
86 86 <div id="ipython_notebook" class="nav navbar-brand pull-left"><a href="{{base_url}}tree" title='dashboard'>{% block logo %}<img src='{{static_url("base/images/logo.png") }}' alt='Jupyter Notebook'/>{% endblock %}</a></div>
87 87
88 88 {% block login_widget %}
89 89
90 90 <span id="login_widget">
91 91 {% if logged_in %}
92 92 <button id="logout" class="btn btn-sm navbar-btn">Logout</button>
93 93 {% elif login_available and not logged_in %}
94 94 <button id="login" class="btn btn-sm navbar-btn">Login</button>
95 95 {% endif %}
96 96 </span>
97 97
98 98 {% endblock %}
99 99
100 100 {% block headercontainer %}
101 101 {% endblock %}
102 102 </div>
103 103 <div class="header-bar"></div>
104 104
105 105 {% block header %}
106 106 {% endblock %}
107 107 </div>
108 108
109 109 <div id="header-spacer"></div>
110 110
111 111 <div id="site">
112 112 {% block site %}
113 113 {% endblock %}
114 114 </div>
115 115
116 116 {% block script %}
117 117 {% endblock %}
118 118
119 119 </body>
120 120
121 121 </html>
@@ -1,63 +1,64 b''
1 1 {% extends "page.html" %}
2 2
3 3 {% block title %}{{page_title}}{% endblock %}
4 4
5 {% block bodyclasses %}terminal-app {{super()}}{% endblock %}
6
5 7 {% block params %}
6 8
7 9 data-base-url="{{base_url}}"
8 10 data-ws-path="{{ws_path}}"
9 class="terminal-app"
10 11
11 12 {% endblock %}
12 13
13 14 {% block stylesheet %}
14 15 {{super()}}
15 16
16 17 <link rel="stylesheet" href="{{ static_url("terminal/css/override.css") }}" type="text/css" />
17 18 {% endblock %}
18 19
19 20 {% block site %}
20 21
21 22 <div id="terminado-container" class="container"></div>
22 23
23 24 {% endblock %}
24 25
25 26 {% block script %}
26 27
27 28 <!-- Hack: this needs to be outside the display:none block, so we can measure
28 29 its size in JS in setting up the page. It is still invisible. Putting in
29 30 the script block gets it outside the initially undisplayed region. -->
30 31 <!-- test size: 25x80 -->
31 32 <div style='position:absolute; left:-1000em'>
32 33 <pre id="dummy-screen" style="border: solid 5px white;" class="terminal">0
33 34 1
34 35 2
35 36 3
36 37 4
37 38 5
38 39 6
39 40 7
40 41 8
41 42 9
42 43 0
43 44 1
44 45 2
45 46 3
46 47 4
47 48 5
48 49 6
49 50 7
50 51 8
51 52 9
52 53 0
53 54 1
54 55 2
55 56 3
56 57 <span id="dummy-screen-rows" style="">01234567890123456789012345678901234567890123456789012345678901234567890123456789</span>
57 58 </pre>
58 59 </div>
59 60
60 61 {{super()}}
61 62
62 63 <script src="{{ static_url("terminal/js/main.js") }}" type="text/javascript" charset="utf-8"></script>
63 64 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now