This repository has been archived by the owner on Feb 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ajaxterm.html
51 lines (45 loc) · 1.93 KB
/
ajaxterm.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Ajaxterm</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="ajaxterm.css" />
<link rel="stylesheet" type="text/css" href="kippo.css" />
<script type="text/javascript" src="jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="ajaxterm.js"></script>
<script type="text/javascript">
// Read a page's GET URL variables and return them as an associative arr ay.
function getUrlVars() {
var vars = [],
hash;
var hashes = window.location.href.slice(window.location.href.indexOf(' ?') + 1).split('&');
for (var i = 0; i < hashes.length; i++) {
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
return vars;
}
vars = getUrlVars()
window.onload = function () {
t = ajaxterm.Terminal("term", 80, 25, vars["l"]);
};
</script>
</head>
<body>
<h1><script type="text/javascript">document.write(vars["l"])</script></h1>
<table>
<tr>
<td>
<div id="term"></div>
</td>
</tr>
<tr>
<td>
Logs generated by <a href="http://code.google.com/p/kippo/">Kippo</a>
<br />Web-based terminal implemented with <a href="https://github.com/antonylesuisse/qweb">Ajaxterm</a>
</td>
</tr>
</table>
</body>
</html>