forked from jscl-project/jscl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.html
76 lines (74 loc) · 1.86 KB
/
tests.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!doctype html>
<html>
<head>
<style>
/* The console container element */
body { background-color: black; font-size: 16px; font-family: Courier; overflow: hidden; padding: 0 0 0 0;}
#console {
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
background-color:black;
}
.parents {
font-weight: bold;
}
/* The inner console element. */
.jqconsole {
padding: 10px;
}
/* The cursor. */
.jqconsole-cursor {
background-color: gray;
}
/* The cursor color when the console looses focus. */
.jqconsole-blurred .jqconsole-cursor {
background-color: #666;
}
/* The current prompt text color */
.jqconsole-prompt {
color: White;
}
/* The command history */
.jqconsole-old-prompt {
color: White;
font-weight: normal;
}
/* The text color when in input mode. */
.jqconsole-input {
color: White;
}
/* Previously entered input. */
.jqconsole-old-input {
color: White;
font-weight: normal;
}
/* The text color of the output. */
.jqconsole-output {
color: green;
}
.jqconsole-return, .jqconsole-header {
color: gray;
}
.jqconsole-error {
color: red;
}
</style>
</head>
<body>
<div id="console"></div>
<script src="jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="jqconsole.min.js" type="text/javascript" charset="utf-8"></script>
<script src="jscl.js" type="text/javascript"></script>
<script>
var jqconsole = $('#console').jqconsole();
lisp.write = function(str){
jqconsole.Write(xstring(str), 'jqconsole-output', false);
return str;
};
</script>
<script src="tests.js" type="text/javascript"></script>
</body>
</html>