6279: Noticed that enabled.gif is also needed. I see this one when I use the right...
[arvados.git] / apps / workbench / app / views / virtual_machines / _webshell.html.erb
1 <html>
2     <title>Shell login into <%= @webshell_hostname %> </title>
3     <link rel="stylesheet" href="/webshell_styles.css" type="text/css">
4     <style type="text/css">
5       body {
6         margin: 0px;
7       }
8     </style>
9     <script type="text/javascript"><!--
10       (function() {
11         // We would like to hide overflowing lines as this can lead to
12         // visually jarring results if the browser substitutes oversized
13         // Unicode characters from different fonts. Unfortunately, a bug
14         // in Firefox prevents it from allowing multi-line text
15         // selections whenever we change the "overflow" style. So, only
16         // do so for non-Netscape browsers.
17         if (typeof navigator.appName == 'undefined' ||
18             navigator.appName != 'Netscape') {
19           document.write('<style type="text/css">' +
20                          '#vt100 #console div, #vt100 #alt_console div {' +
21                          '  overflow: hidden;' +
22                          '}' +
23                          '</style>');
24         }
25       })();
26
27       function login(username, token) {
28         var sh = new ShellInABox("<%= @webshell_url %>");
29         setTimeout(function() {
30           sh.keysPressed("<%= @webshell_login %>\n");
31           setTimeout(function() {
32             sh.keysPressed("<%= Thread.current[:arvados_api_token] %>\n");
33           }, 1000);
34         }, 1000);
35       }
36     -->
37 </script>
38     <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
39     <script type="text/javascript" src="/shell_in_a_box.js"></script>
40   </head>
41   <!-- Load ShellInABox from a timer as Konqueror sometimes fails to
42        correctly deal with the enclosing frameset (if any), if we do not
43        do this
44    -->
45 <body onload="setTimeout('login()', 1000)"
46     scroll="no"><noscript>JavaScript must be enabled for ShellInABox</noscript>
47 </body>
48 </html>