-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin.html
45 lines (42 loc) · 2.01 KB
/
admin.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LetoBet admin</title>
</head>
<body>
<input type="datetime-local" id="datetime-local">
<button onclick='alert(new Date(document.querySelector("#datetime-local").value).getTime())'>Get time in MS</button>
<br><br><br><br>
<form method="post" action="/admin">
<h1>Create Event</h1>
<input name="username" value="admin" hidden>
<input name="password" type="password" placeholder="Password"><br>
<input name="description" type="text" placeholder="Description"><br>
<input name="outcome_left" type="text" placeholder="Left outcome"><br>
<input name="outcome_left_chance" type="number" min="0.001" max="0.999" step="0.001" placeholder="Left outcome chance"><br>
<input name="outcome_right" type="text" placeholder="Right outcome"><br>
<input name="outcome_right_chance" type="number" min="0.001" max="0.999" step="0.001" placeholder="Right outcome chance"><br>
<b>Until: </b><input name="until" type="number"><br>
<input type="submit">
</form>
<form method="post" action="/admin/events">
<h1>Get Events</h1>
<input name="username" value="admin" hidden>
<input name="password" type="password" placeholder="Password"><br>
<input type="submit">
</form>
<form method="post" action="/admin/finish">
<h1>Finish Event</h1>
<input name="username" value="admin" hidden>
<input name="password" type="password" placeholder="Password"><br>
<input name="id" type="number" placeholder="ID"><br>
<select name="outcome">
<option value="L">Left</option>
<option value="R">Right</option>
</select><br>
<input type="submit">
</form>
</body>
</html>