source: package_branches/invirt-web/cherrypy/code/templates/terminal.mako @ 2451

Last change on this file since 2451 was 2451, checked in by ecprice, 15 years ago

Make ajaxterm only seize keypresses when focused.

File size: 982 bytes
Line 
1<%page expression_filter="h" />
2<%inherit file="skeleton.mako" />
3
4<%def name="title()">
5Terminal for ${machine.name}
6</%def>
7
8<style type='text/css'>body { max-width: none }</style>
9% if not on:
10<p> Your machine appears to be off.</p>
11% elif has_vnc:
12<p> Your machine appears to be an HVM; you will need to specially configure a serial console before you can use this terminal.</p>
13% endif
14
15<%def name="header_extra()">
16${parent.header_extra()}
17<link rel="stylesheet" type="text/css" href="static/ajaxterm/ajaxterm.css"/>
18<script type="text/javascript" src="static/ajaxterm/sarissa.js"></script>      
19<script type="text/javascript" src="static/ajaxterm/sarissa_dhtml.js"></script> 
20<script type="text/javascript" src="static/ajaxterm/ajaxterm.js"></script>
21<script type="text/javascript">
22window.onload=function() {
23        t=ajaxterm.Terminal("term", ${machine.machine_id});
24        $('term').focus();
25}
26</script>
27</%def>
28
29<div tabindex="0" id="term"></div>
30<div style="clear: both;"></div>
Note: See TracBrowser for help on using the repository browser.