-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbingo.html
105 lines (90 loc) · 4.22 KB
/
bingo.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
<div class="modal fade" id="modal2">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<!--<h5 class="modal-title"></h5>-->
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Do you want to reset a game?</p>
</div>
<div class="modal-footer">
<button type="button" onclick="confirmreset()" class="btn btn-primary" data-dismiss="modal">Yes</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">No</button>
</div>
</div>
</div>
</div>
<div id="maindiv">
<div class="col-md-offset-4 col-md-3" >
<button class="btn btn-primary" id="roomstatus"></button>
<button class="btn btn-primary" style="float: right;"type="button" onclick="leave()">Leave Room</button>
<table>
<tr>
<td id="" onclick="bingomessage(this.id)">1</td>
<td id="" onclick="bingomessage(this.id)">2</td>
<td id="" onclick="bingomessage(this.id)">3</td>
<td id="" onclick="bingomessage(this.id)">4</td>
<td id="" onclick="bingomessage(this.id)">5</td>
</tr><tr>
<td id="" onclick="bingomessage(this.id)">1</td>
<td id="" onclick="bingomessage(this.id)">2</td>
<td id="" onclick="bingomessage(this.id)">3</td>
<td id="" onclick="bingomessage(this.id)">4</td>
<td id="" onclick="bingomessage(this.id)">5</td>
</tr><tr>
<td id="" onclick="bingomessage(this.id)">1</td>
<td id="" onclick="bingomessage(this.id)">2</td>
<td id="" onclick="bingomessage(this.id)">3</td>
<td id="" onclick="bingomessage(this.id)">4</td>
<td id="" onclick="bingomessage(this.id)">5</td>
</tr><tr>
<td id="" onclick="bingomessage(this.id)">1</td>
<td id="" onclick="bingomessage(this.id)">2</td>
<td id="" onclick="bingomessage(this.id)">3</td>
<td id="" onclick="bingomessage(this.id)">4</td>
<td id="" onclick="bingomessage(this.id)">5</td>
</tr><tr>
<td id="" onclick="bingomessage(this.id)">1</td>
<td id="" onclick="bingomessage(this.id)">2</td>
<td id="" onclick="bingomessage(this.id)">3</td>
<td id="" onclick="bingomessage(this.id)">4</td>
<td id="" onclick="bingomessage(this.id)">5</td>
</tr>
</table><br>
<div class="userlist-label"><p class="user">Players</p></div>
<div id="users"></div>
<button class="btn btn-success playagain" type="button" onclick="resetgame()">Play again</button>
<!------------------chat room------------------>
<div id="chatbox" class="chatbox">
</div>
<form class="form-inline" action="#" style="margin-bottom: 10px;">
<div class="form-group">
<div class="input-group">
<input id="input-chat" class="form-control" onkeypress="enterbutton(event)" type="text" name="message" placeholder="Enter message">
<div class="input-group-addon sendbutton" id="chat-send" onclick="chatmessage()">
Send
</div>
</div>
</div>
</form>
</div>
</div>
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title"></h4>
</div>
<div class="modal-body">
<p id="alert"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>