-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathadmin.html
46 lines (36 loc) · 1.13 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
46
<html>
<title>Family Feud</title>
<link rel="stylesheet" href="css/bootstrap/css/bootstrap.css" type="text/css">
<link rel="stylesheet" href="css/family-feud.css" type="text/css">
<script src="js/jquery-1.8.0.min.js" type="text/javascript"></script>
<script src="js/underscore.js" type="text/javascript"></script>
<script src="data.js" type="text/javascript"></script>
</head>
<body>
<div id="content">
<div id="board">
<div id="question"><p></p><ol></ol></div>
<div id="answers"></div>
</div>
</div>
<div class="footer">
<input name="round" />
<button id="strike" type="button">Round</button>
</div>
<script>
$(function() {
$('#strike').click(function() {
var i = parseInt($('input[name=round]').val());
var roundData = GameData['FamilyFeud'][i];
$('#question p').html(roundData['Question']);
$('#question ol').empty();
for(var i in roundData['Answers']) {
var answer = roundData['Answers'][i];
var li = $('<li>'+answer.text+' ['+answer.points+']</li>');
$('#question ol').append(li);
}
})
})
</script>
</body>
</html>