-
Notifications
You must be signed in to change notification settings - Fork 3
/
template_screen.html
99 lines (98 loc) · 2.47 KB
/
template_screen.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
96
97
98
99
<html>
<head>
<title>Mafia Mockup</title>
<script type="text/javascript" src="mafia_r.js">
</script>
<script>
// Init a GameState object and put it to work
var gs = new GameState();
gs.username="uname";
gs.type="Mafia";
gs.names = {"uname":true, "slw":true, "tr":true, "flak":true, "heron":true, "one_leg":true};
gs.round = "#MAFIA_VOTE";
gs.voteState = {"uname" : "tr", "flak":"tr"};
gs.teamNames = ["uname", "flak"];
</script>
<style type="text/css">
body {
font-family: Verdana, sans-serif;
}
div#upper {
display: block;;
margin: 0px;
padding:0px;
border-bottom: 1px solid black;
background-color: white;
overflow:auto;
padding-bottom: 1em;
}
div#upper table tr td {
padding:5px;
}
div#upper table tr td.type {
font-weight: bold;
}
div#voting-screen {
margin: 0rem 0 0 0;
}
div#voting-screen form label {
display: block;
padding-top: 1.7em;
padding-bottom: 1.7em;
margin:0px;
}
div#voting-screen form {
margin:0px;
}
div#voting-screen form label.alter {
background-color: #ddd;
}
div#voting-screen form label span {
float:right;
color:red;
font-style: italic;
font-weight: bold;
}
div#voting-screen form label input {
margin:0px;
display: none;
}
div#splash {
position: fixed;
top:0px;
left:0px;
width:100%;
height:100%;
background-color: white;
display: none;
}
div#splash h1 {
position: fixed;
top:40%;
width:100%;
text-align: center;
}
</style>
</head>
<body onload = "gs.decorate('status')">
<div id="splash">
<h1>Splash</h1>
</div>
<div id="upper" class="panel">
<table>
<tr id="username"><td class="type">Username:</td><td> uname</td></tr>
<tr id="status"><td class="type">Status:</td><td>Some user was killed. Time to vote.</td></tr>
<tr id="type"><td class="type">Type:</td><td></td></tr>
<tr id="team"><td class="type">Team:</td><td> On your team: 1, 2 and 3</td></tr>
<tr id="detection-result"><td class="type">Detection Result:</td><td>Only if you're a detective</td></tr>
</table>
</div>
<div id="voting-screen" class="panel">
<form id="voting-form" name="voting_form">
<!-- Keep one as sample, this is what they should look like when dynamically generated
<label><input type="radio" name="players" id="player1" value="player1">Player 1<span id="player1-voters"></label>
-->
</form>
</div>
</body>
</html>