forked from hacktoolkit/xterm.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
52 lines (41 loc) · 1.53 KB
/
demo.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
<html>
<head>
<style type="text/css">
html, body {
background-color: #000;
color: #fff;
}
#xterm_input {
font-family: 'Courier New';
}
</style>
<script type="text/javascript">
function convert() {
var xtermInput = document.getElementById('xterm_input');
var xtermOutput = document.getElementById('xterm_output');
xtermOutput.innerHTML = xtermInput.value;
formatXtermWidgets();
}
</script>
</head>
<body>
<h1>Live Demo of <code>xterm.js</code></h1>
<code class="xterm">
@g[1] Your flame @G<@W*><-:-><*@G> @YSLAUGHTERS @G<@W*><-:-><*@G>@w @gan antlion! @R[358]
@RAn antlion screams as the flames engulf it!!
@wYou receive @G68+7+@R7@w experience points.
@wYou receive @G82@w bonus experience points from your daily blessing.
@wYou have @Y71@w daily blessing bonus experience kills remaining.
@wYou get @Y6,790@w gold coins from the charred corpse of an antlion.
@MYou are taxed @Y67@M gold coins by your clan.
@wYou get an @ra@wn@rt@wl@ri@wo@rn @Y{@whusk@Y}@w from the charred corpse of an antlion.
@cThe Fallen Soldier gives you @Y62@c gold coins for the charred corpse of an antlion.
</code>
<h2>Give it a try!</h2>
<h3>Your Input</h3>
<textarea id="xterm_input" cols="80" rows="20" onInput="convert();"></textarea>
<h3>Output</h3>
<code id="xterm_output" class="xterm"></code>
<script type="text/javascript" src="xterm.js"></script>
</body>
</html>