-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
52 lines (47 loc) · 1.72 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>/api</title>
<script src="./moonshine.min.js"></script>
<script>
var query = window.location.search
var searchParams = new URLSearchParams(query);
var search = searchParams.get("search")
if (search) {
env = {
args: search,
};
} else {
env = {}
}
var vm = new shine.VM(env);
shine.stdout.write = function () {
var outputElement = document.querySelector("pre");
var args = Array.prototype.slice.call(arguments);
outputElement.innerHTML += args.join('\t') + '\n';
}
vm.load('./api.lua.json');
</script>
<style>
body {
color:white;
background-color: #1f1f21;
}
a { text-decoration: none; color: white}
input { color:white; background-color: #1f1f21; }
form { display: inline; }
pre { color: yellow; }
</style>
</head>
<body>
<h1>World Of Warcraft 9.2.5 43810 (23/05/2022) - Blizzard API Documentation - Offline /api Addon</h1>
<a href="?">Usage</a> -
<a href="?search=system list">List all systems</a><br/><br/>
/api <form method="GET"><input type="text" name="search" /></form>
<br/><br/>
<pre class="output"></pre>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
<span style="text-align: center">contact: buds#0500 @ discord</span>
</body>