-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommands-old.html
117 lines (102 loc) · 3.39 KB
/
commands-old.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<head>
<title>Otto's Stream Commands</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Karma">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- So you were curious what was under the hood, eh? -->
<!-- Just a little bit of JQuery to generate the elements, populated by some JSON -->
<!-- Much love from Kenesti! -->
<script type="text/javascript">
$.getJSON("/data/user-commands.json", function(data) {
var html='';
html += '<tr>';
html += '<td><b>COMMAND</b></td>';
html += '<td><b>USAGE</b></td>';
html += '<td><b>DESCRIPTION</b></td>';
html += '</tr>';
$.each(data, function(key, value){
html+='<tr>';
html+='<td>'+value.name+'</td>';
html+='<td><xmp>'+value.usage+'</xmp></td>';
html+='<td>'+value.description+'</td>';
html+='</tr>';
});
$('#user').html(html);
});
$.getJSON("/data/mod-commands.json", function(data) {
var html='';
html += '<tr>';
html += '<td><b>COMMAND</b></td>';
html += '<td><b>USAGE</b></td>';
html += '<td><b>DESCRIPTION</b></td>';
html += '</tr>';
$.each(data, function(key, value){
html+='<tr>';
html+='<td>'+value.name+'</td>';
html+='<td><xmp>'+value.usage+'</xmp></td>';
html+='<td>'+value.description+'</td>';
html+='</tr>';
});
$('#mod').html(html);
});
$.getJSON("/data/sub-commands.json", function(data) {
var html='';
html += '<tr>';
html += '<td><b>COMMAND</b></td>';
html += '<td><b>USAGE</b></td>';
html += '<td><b>DESCRIPTION</b></td>';
html += '</tr>';
$.each(data, function(key, value){
html+='<tr>';
html+='<td>'+value.name+'</td>';
html+='<td><xmp>'+value.usage+'</xmp></td>';
html+='<td>'+value.description+'</td>';
html+='</tr>';
});
$('#sub').html(html);
});
</script>
</head>
<style>
body,h1 {font-family: "Raleway", sans-serif}
.w3-top {font-family: "Karma", sans-serif; top:0; font-size:24px!important; color:#000!important}
a:visited {color:white}
</style>
<body id="content">
<div class="w3-top">
<a href="https://ottomus-prime.github.io/">Home</a>
</div>
<div>
<table class="wrapper">
<tr>
<td valign="top">
<table id="user" class="user-commands">
<tr>
<h1>Viewer Commands</h1>
</tr>
</table>
</td>
<td style="width:100px"> </td>
<td valign="top">
<table id="mod" class="mod-commands">
<tr>
<h1>Mod Commands</h1>
</tr>
</table>
</td>
<td style="width:100px"> </td>
<td valign="top">
<table id="sub" class="sub-commands">
<tr>
<h1>Sub Commands</h1>
</tr>
</table>
</td>
<td style="width:100px"> </td>
</tr>
</table>
</div>
</body>
</html>