-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (69 loc) · 2.83 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Dots and Lines by Emile</title>
<meta name="description" content="Dots and Lines by Emile" />
<meta name="author" content="SitePoint" />
<link rel="stylesheet" href="main.css?v=1.0" />
</head>
<body onload="populateGrid()">
<div id="container">
<nav></nav>
<div id="main">
<div id="main-inner" style="display: none;"></div>
<div id="score-container">
<div class="score-box" id="score-box1">
<h3 class="score" id="score1"></h3>
<h4 class="score-name" id="score-name1"></h4>
</div>
<div id="current-player-box">
<h4 id="current-player">Please select an option</h4>
</div>
<div class="score-box" id="score-box2">
<h3 class="score" id="score2"></h3>
<h4 class="score-name" id="score-name2"></h4>
</div>
</div>
<div id="connection-container">
<div id="connect-cont">
<div id="host-button" class="con-button" onclick="showCode()">
<h3>Host</h3>
</div>
<div id="join-button" class="con-button" onclick="showJoin()">
<h3>Join</h3>
</div>
<div id="local-button" class="con-button" onclick="localCreate()">
<h3>Local</h3>
</div>
</div>
<h4 class="host-inf" style="display: none;">
Share the code below with your opponent
</h4>
<h3 id="current-id" class="host-inf" style="display: none;"></h3>
<div id="dimen-cont" style="display:none">
<div id="dim-min-button" class="dimen-button" onclick="decrDim()">
<h3>-</h3>
</div>
<div id="dim-num">
<input onchange="manualUpdateDim()" value="3" />
</div>
<div id="dim-plus-button" class="dimen-button" onclick="incrDim()">
<h3>+</h3>
</div>
</div>
<input id="peer-id" style="display: none;" class="join-inf" />
<div id="con-button"
onclick="connectToPeer()"
style="display: none;"
class="join-inf con-button">
Connect to opponent
</div>
</div>
</div>
</div>
<script src="main.js"></script>
<script src="peerjs.min.js"></script>
<!--<script src="https://unpkg.com/peerjs@1.0.0/dist/peerjs.min.js"></script>-->
</body>
</html>