-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
119 lines (107 loc) · 2.49 KB
/
index.html
File metadata and controls
119 lines (107 loc) · 2.49 KB
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
118
119
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vote by MAC</title>
<style>
html, body {
height: 100%;
margin: 0pt;
}
a {
color: white;
white-space: nowrap;
}
header, main, footer {
flex-shrink: 0;
}
header {
font-size: 3em;
}
main {
flex-grow: 1;
}
body {
min-height: 100vH;
display: flex;
flex-direction: column;
font-family: monospace;
font-size: 20px;
background-color:black;
color: #ffffff;
}
h1 {
max-width: 100%;
text-align: center;
font-weight: bold;
font-size: 3em;
}
h2 {
font-size: 1.5em;
text-align: center;
}
table {
font-size: 1em;
border-collapse: collapse;
width: 100%;
}
table,
th,
td {
border: 1px solid black;
text-align: center;
}
tr:nth-child(even) {
background-color: #202020;
}
ul {
font-size: .3em;
font-weight: bold;
}
footer {
position: relative;
width: 100%;
text-align: center;
font-size: .8em;
}
</style>
</head>
<body>
<h1>Vote by MAC</h1>
<header>
<ul>
<li><a href="/#">/#</a> to cast/change vote.</li>
<li><a href="/0">/0</a> to delete vote.</li>
</ul>
<ul>
<span id="ul-choices" style="display:none;"></span>
</ul>
</header>
<main>
<results>
<h2>Results</h2>
<table>
<tr>
<th>Choice</th>
<th>Count</th>
</tr>
<span id="tr-choice-count" style="display:none;"></span>
</table>
</results>
<votes>
<h2>Votes</h2>
<table>
<tr>
<th>MAC</th>
<th>Vote</th>
</tr>
<span id="tr-mac-vote" style="display:none;"></span>
</table>
</votes>
</main>
<footer>
<p>Fork me on GitHub: <a href="https://github.com/robotnyc/nodejs-vote-by-mac">robotnyc/nodejs-vote-by-mac</a></p>
</footer>
</body>
</html>