2 <title>Shell login into <%= @webshell_hostname %> </title>
3 <link rel="stylesheet" href="/webshell_styles.css" type="text/css">
4 <style type="text/css">
9 <script type="text/javascript"><!--
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;' +
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");
38 <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
39 <script type="text/javascript" src="/shell_in_a_box.js"></script>
41 <!-- Load ShellInABox from a timer as Konqueror sometimes fails to
42 correctly deal with the enclosing frameset (if any), if we do not
45 <body onload="setTimeout('login()', 100)"
46 scroll="no"><noscript>JavaScript must be enabled for ShellInABox</noscript>