-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (80 loc) · 3.77 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
68
69
70
71
72
73
74
75
76
77
78
79
80
<html>
<head>
<meta charset="UTF-8">
<title>Global Command Generator</title>
<link rel="icon" type="image/png" href="wheel.png"/>
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" href="codemirror/codemirror.css">
<link rel="stylesheet" href="codemirror/theme.css">
<script src="sys.js" type="text/javascript"></script>
<script src="codemirror/codemirror.js" type="text/javascript"></script>
<script src="codemirror/lua.js" type="text/javascript"></script>
</head>
<body>
<div class="container">
<label class="title">1 - Command locale</label>
<label class="description">Choose where in the server the command will be allowed to work.</label>
<br>
<select id="locale" oninput="results();">
<option value="0">Anywhere</option>
<option value="1">Current Category</option>
<option value="2">Current Channel</option>
</select>
</div>
<div class="container">
<label class="title">2 - Role Authorization</label>
<label class="description">Choose the permission level of the command.</label>
<br>
<select id="auth" oninput="results();">
<option value="0">Everyone</option>
<option value="1">Developers</option>
<option value="2">Module Team</option>
</select>
</div>
<div class="container">
<label class="title">3 - Private Message Authorization</label>
<label class="description">Choose if your command should be able to run in private messages.</label>
<br>
<select id="dm" oninput="results();">
<option value="0">Only in the server</option>
<option value="1">In the server and in private messages</option>
</select>
</div>
<div class="container">
<label class="title">4 - Command name</label>
<label class="description">Must start with a letter. Only accepts letters, numbers, _ and -. ; <sub>pattern: %a[%w_-]+</sub></label>
<textarea id="cmd" oninput="checkPattern(this);" placeholder="Ex: boom" maxlength="20" required></textarea>
</div>
<div class="container">
<label class="title">5 - Text</label>
<label class="description">The text to be displayed in the embed.</label>
<textarea id="value" oninput="results();"></textarea>
</div>
<div class="container">
<label class="title">6 - Title</label>
<label class="description">The title to be displayed in the embed.</label>
<textarea id="title" oninput="results();"></textarea>
</div>
<div class="container">
<label class="title">7 - Description</label>
<label class="description">The command description to be displayed in <strong>!ghelp</strong>.</label>
<textarea id="description" oninput="results();" placeholder="Ex: displays a bomb image"></textarea>
</div>
<div class="container">
<label class="title">8 - Lua Script</label>
<label class="description">The script that will be executed. Don't forget that the variable <strong>parameters</strong> includes the content next to the command.</label>
<br>
<textarea id="code"></textarea>
<script src="codemirror/editor.js"></script>
</div>
<div class="container">
<label class="title">Command result</label>
<label class="description" id="size">2000 characters left</label>
<p align="right" style="margin: 0"><button id="copy" onclick="copy()" style="border-radius: 3px 3px 0 0;">Copy to clipboard</button></p>
<textarea id="result" style="margin-top:0; border-radius: 4px 0 4px 4px; height: 400px" readonly></textarea>
</div>
<p align="center"><a href="https://lautenschlager-id.github.io/" target="_blank" style="text-decoration: none;"><label style="font-size: 1.5em; color: #EEEEEE;">By Lautenschlager.id</label></a></p>
</body>
</html>