-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (62 loc) · 1.93 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
<!-- https://github.com/properties/command-style-site -->
<html>
<head>
<title>Matth.ee/w</title>
<meta name="viewport" content="width=device-width">
<meta name="author" content="https://github.com/properties/command-style-site">
<link rel="stylesheet" href="style.css">
<script src="scripts.js"></script>
<script src="jquery.js"></script>
</head>
<body>
<div>
<textarea class="side" rows="10" cols="15" disabled="">
,--.
/ /
,---. ,---. / /,--. ,--.
| .-. :| .-. : / / | |.'.| |
.--.\ --.\ --. / / | .'. |
'--' `----' `----'/ / '--' '--'
`--'
------------------------------------
Command style portfolio & tools
Made by github/properties
©2016 Core Inc Licensed.
------------------------------------
</textarea>
<div id="h">$ ></div>
<textarea id="t" class="typ" autofocus spellcheck="false"></textarea>
</div>
<div id="portfolio" class="portfolio">Matth.ee/w > Enter your command left. Type "help" for all commands.</div>
<script>
var Command = '';
var dataSpeed = 40;
var setSpeed = false;
$(".typ") . keydown( function (key)
{
var keyDown = key.which;
if(keyDown == 38) $(".typ").val(Command);
if(keyDown == 13) key.preventDefault();
if(keyDown == 13)
{
$('#portfolio').html("Matth.ee/w > Loading..");
Command = $(this).val();
$(".typ").val('');
var cmd = Command.split(" ");
if(cmd[0] + cmd[1] == "setspeed")
{
dataSpeed = cmd[2];
setSpeed = true;
}
$.post( "postCommand.php", { command:Command }, function( data )
{
$('#portfolio').html(data.message);
if(setSpeed == false) dataSpeed = data.speed;
new MatthewCore(document.getElementById("portfolio"), dataSpeed);
MatthewCore.runAll();
}, "json");
}
});
</script>
</body>
</html>