-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
index.html
67 lines (55 loc) · 1.84 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Terminal Faker Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<meta name="theme-color" content="#000" />
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="stylesheet" href="terminal.css" />
<style>
/* Over-write some styles or define on-page styles. */
body {
background: black;
color: white;
width: 100%;
height: 100%;
padding: 4px;
margin: 0;
font-size:1.1em;
box-sizing: border-box;
}
h1 {
font-size: 1.4em;
}
h1 a{
color: #999;
font-size:0.8em;
text-decoration: none;
}
</style>
</head>
<body>
<h1><a href="https://github.com/syntaxseed/terminalfaker">Terminal Faker Demo</a></h1>
<div id="terminal">
<p class="hidden">
<span class="prompt"></span>
<span contenteditable="true" class="input" autocorrect="off" autocapitalize="none" autocomplete="off"> </span>
</p>
</div>
<script src="js/bundle.min.js"></script>
<!--<script src="js/src/terminal.js"></script>
<script src="js/src/boot.js"></script>
<script src="js/src/crypto.js"></script>
<script src="js/src/system.js"></script>-->
<script src="js/filesystem.js"></script>
<script src="js/commands.js"></script>
<script>
// Whether to use the longer boot load screen. If this is missing, defaults to true.
var useBootLoader = true;
// Set the command prompt style:
var customPrompt = function () { return "guest@TermFake ("+Terminal.path+") $ ";};
// Initialize the terminal:
var term = Terminal.init(document.getElementById("terminal"), commands, customPrompt);
</script>
</body>
</html>