-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
43 lines (39 loc) · 1.26 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
<html>
<head>
<title>Chris Ashton - Terminal</title>
<link rel="stylesheet" href="main.css" />
</head>
<body>
<div class="terminal">
<div id="output"></div>
<form autocomplete="off">
<span class="terminal__cursor">$</span>
<input id="input" type="text" />
</form>
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.3.5/require.min.js"></script>
<script>
(function () {
var config = {
baseUrl: '.',
paths : {
jquery : "//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min"
},
shim: {
'jquery': {
exports: 'jQuery'
}
}
};
require(config, ['terminal'], function (terminal) {
terminal.init({
container: '.terminal',
input: '#input',
output: '#output',
form: 'form',
});
});
}());
</script>
</body>
</html>