-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplay.html
124 lines (121 loc) · 5.27 KB
/
play.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Playing Great Eight</title>
<!-- Bootstrap -->
<link href="css/css-animation.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/jquery-ui.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="notify"></div>
<div class="container">
<div id="playarea">
<div id="playerTop">
Player Three
</div>
<div id="playerBottom">
Player One
</div>
<div id="playerLeft">
Player Two
</div>
<div id="playerRight">
Player Four
</div>
<div id="playerCards">
<img id = "playerCard1" src = "./images/back.png" width = "175" height = "190" onclick="playCard(0);"/>
<img id = "playerCard2" src = "./images/back.png" width = "175" height = "190" onclick="playCard(1);"/>
</div>
<div id="deck" style="position:absolute;top:160px;left:325px;">
<img src="./images/back.png" width = "175" height="190" />
<div><h3>Cards in Deck: </h3></div>
<div style="position:relative;left:70px;top:-20px;"><h3 id="cardsInDeck">10</h3></div>
</div>
</div>
<button type="button" class="btn btn-primary" id="playAgainButton" onclick="location.href='play.html';">Play Again!</button>
<button type="button" class="btn btn-primary" id="gameLogButton" onclick="$('#gameLog').modal().draggable({handle: '.modal-header'});">View Game Log</button>
<div class="modal fade" id="gameLog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Game Log</h4>
</div>
<div class="modal-body" id="gameLogBody">
</div>
<div class="modal-footer">
<!-- <button type="button" class="btn btn-primary" onclick="location.href='tests.html';">Run Unit Tests</button> -->
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="endModal" tabindex="-1" role="dialog" aria-labelledby="gameOver" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel"></h4>
</div>
<div class="modal-body" id="endModalBody">
<h1 id="endModalMessage"></h1>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="window.location.reload();">Play Again!</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="userInput" tabindex="-1" role="dialog" aria-labelledby="userInputLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="userInputTitle">Target Player</h4>
</div>
<div class="modal-body" id="userInputBody">
<div class="alert alert-danger" role="alert" id="alert" style="display: none;"></div>
<form id="selectedPlayer">
</form>
<hr>
<form id="cardGuess">
<p>Card Guess</p>
<input type="radio" name="guess" value="2">2<br>
<input type="radio" name="guess" value="3">3<br>
<input type="radio" name="guess" value="4">4<br>
<input type="radio" name="guess" value="5">5<br>
<input type="radio" name="guess" value="6">6<br>
<input type="radio" name="guess" value="7">7<br>
<input type="radio" name="guess" value="8">8<br>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="playCardButton">Play Card</button>
</div>
</div>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script src="./js/greateight.js"></script>
<script src="./js/functions.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="./js/bootstrap-notify.min.js"></script>
</body>
</html>