-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (38 loc) · 2.09 KB
/
index.html
File metadata and controls
53 lines (38 loc) · 2.09 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
<script src="words.js"></script>
<center>
<br>
<br>
<p name="initial"> Hello! What is the name of your game?</p>
<input type="text" name="initial" value="" id="gameid"></input>
<p name="initial"> Are you the codemaker or the codebreaker?</p>
<button name="initial" id="makerId" type="radio">Maker</button>
<button name="initial" id="breakerId" type="radio">Breaker</button>
<br><br>
<p name="warning" id="warning">Important! The codemaker must log in first! Once the codemaker is ready, a bell will ring and the codebreaker can log in.</p>
<audio id="audio" src="ding.mp3" autostart="false"></audio>
<script src="https://cdn.jsdelivr.net/npm/peerjs@0.3.20/dist/peer.min.js"></script>
<script src="connection.js"></script>
<script src="makerCode.js"></script>
<script src="breakerCode.js"></script>
<script src="util.js"></script>
<table style = "display:none" name="isMaker" border="1" width="300" id="MakerBoard">
</table>
<p name="pickCategories" style="display:none">In addition to the basic set of words, what other kinds of words would you like?</p>
<table border="0" style="display:none" id="selection" name="pickCategories"></table>
<button name="pickCategories" type="button" style="display:none" id="submitCategories">Submit</button>
<table border="1" width="390" id="BreakerBoard" name="isBreaker" style="display:none">
</table>
<br>
<div name="playing" id="turn" style="display:none; border:5px solid black">
<p name="playing" id="turnText" style="display:none" > </p>
<button name="isBreaker" type="button" style="display:none" id="endTurn">End Turn</button></div>
<div name="ending" style="display:none">
<p id="endGameText"> Would you like to play again?</p>
<button name="PlayAgain" type="button" id="PlayYes">Yes</button>
<button name="PlayAgain" type="button" id="PlayNo">No</button>
<button name="SameMaker" type="button" id="SameYes" style="display:none">Yes</button>
<button name="SameMaker" type="button" id="SameNo" style="display:none">No</button>
</div>
<br>
<table border="0" width="390" id="wordsRemaining" name="BreakerCounts" style="display:none"></table>
</center>