-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.html
95 lines (86 loc) · 2.49 KB
/
config.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Configure</title>
<style>
html, input {
font-family: monospace;
font-size: .75em;
}
body {
width: 100%;
background-color:black;
color: #ffffff;
font-family: monospace;
display: flex;
flex-direction: column;
font-size: 2em;
}
h1 {
text-align: center;
}
h1, h2 {
font-size: 1.5em;
margin: 5px;
}
a {
color: white;
white-space: nowrap;
}
p {
font-size: 2em;
}
input[type=text] {
background-color: black;
color: white;
margin: 2px;
max-width: 100%;
}
input[type=submit] {
border: 2px solid lightgray;
background-color:transparent;
color: white;
font-size: 1em;
}
</style>
</head>
<body>
<h1>Configuration</h1>
<ul>
<li>
<a href="/">Home</a>
</li>
</ul>
<h2>Options</h2>
<form action="/config" method="post">
<ul>
Title: <input type="text" id="title" name="title"><br>
Choices: <input type="number" id="choices" name="choices"><br>
<input type="hidden" name="show_votes" value="0">
Show votes:<input type="checkbox" name="show_votes" id="show_votes" value="1"><br>
<input type="hidden" name="show_results" value="0">
Show results:<input type="checkbox" name="show_results" id="show_results" value="1"><br>
<input type="hidden" name="winner_only" value="0">
Show winner only:<input type="checkbox" name="winner_only" id="winner_only" value="1"><br>
</ul>
<input type="submit" value="Submit">
</form>
<h2>Choice Names</h2>
<form action="/config" method="post">
<ul>
<span id="input-choices" style="display:none;"></span>
</ul>
<input type="submit" value="Submit">
</form>
<h2>Reset</h2>
<form action="/config" method="post">
<ul>
Names:<input type="checkbox" name="reset_names"><br>
Votes:<input type="checkbox" name="reset_votes"><br>
</ul>
<input type="submit" value="Submit">
</form>
</body>
</html>