source: package_branches/invirt-web/ajaxterm-rebased/code/templates/terminal.mako @ 3052

Last change on this file since 3052 was 2760, checked in by broder, 15 years ago

Update focus rules to failback in safari

File size: 955 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}
25</script>
26</%def>
27
28<div tabindex="0" id="term"></div>
29<div style="clear: both;"></div>
Note: See TracBrowser for help on using the repository browser.