forked from vakila/net-set
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
167 lines (116 loc) · 4.28 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Net-Set</title>
<!-- Styles -->
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous"> -->
<link rel="stylesheet" type="text/css" href="public/styles.css">
<link rel="stylesheet" type="text/css" href="public/shapes-new.css">
<link rel="stylesheet" type="text/css" href="public/cards.css">
</head>
<body>
<div id="sidebar">
<h1>Net-Set</h1>
<p>A colorful competitive card game</p>
<p><a class="button" href="http://www.setgame.com/sites/default/files/instructions/SET%20INSTRUCTIONS%20-%20ENGLISH.pdf" target="blank">How to play</a></p>
<div id="players">
</div>
</div>
<div id="content">
<div id="pre-game">
<div id="player-form">
<p class="question">What's your name?</p>
<input name="user-name" type="text" maxlength="14" />
<p class="question">Pick a color:
<select name="user-color">
<option value="1" class="pcol-1">Red</option>
<option value="2" class="pcol-2">Orange</option>
<option value="3" class="pcol-3">Yellow</option>
<option value="4" class="pcol-4">Green</option>
<option value="5" class="pcol-5">Blue</option>
<option value="6" class="pcol-6">Purple</option>
</select>
</p>
<button name="join">Join game</button>
</div>
<button name="start" class="hidden">Start game</button>
</div>
<div id="board" class="hidden">
<div id="slot-A" class="card hidden">
</div>
<div id="slot-B" class="card hidden">
</div>
<div id="slot-C" class="card hidden">
</div>
<div id="slot-D" class="card hidden">
</div>
<div id="slot-E" class="card hidden">
</div>
<div id="slot-F" class="card hidden">
</div>
<div id="slot-G" class="card hidden">
</div>
<div id="slot-H" class="card hidden">
</div>
<div id="slot-I" class="card hidden">
</div>
<div id="slot-J" class="card hidden">
</div>
<div id="slot-K" class="card hidden">
</div>
<div id="slot-L" class="card hidden">
</div>
<!-- additional 3 cards to make 15: -->
<div id="slot-M" class="card hidden">
</div>
<div id="slot-N" class="card hidden">
</div>
<div id="slot-O" class="card hidden">
</div>
<!-- additional 3 cards to make 18: -->
<div id="slot-P" class="card hidden">
</div>
<div id="slot-Q" class="card hidden">
</div>
<div id="slot-R" class="card hidden">
</div>
</div> <!-- end board -->
<div id="dealer" class="hidden">
<p><span id="cards-left">5</span> cards left</p>
<p>No sets?</p>
<button name="deal-3">Deal 3</button>
</div>
</div> <!-- end content -->
<!-- SCRIPTS: Libraries -->
<script src="https://cdn.socket.io/socket.io-1.2.0.js" type="text/javascript"></script>
<script src="http://code.jquery.com/jquery-1.11.1.js" type="text/javascript"></script>
<script src="public/underscore-1.3.3-templates.js" type="text/javascript"></script>
<script src="public/mori.js" type="text/javascript"></script>
<!-- CLIENT SCRIPT -->
<script src="public/client.js" type="text/javascript"></script>
<!-- TEMPLATES -->
<script id="cardContentTemplate" type="text/template">
<div id="<%= card.id %>" class="card-content" data-slot="<%= slot %>">
<div class="markers"></div>
<% for (var i=0; i<card.number; i++) { %>
<div class="shape <%= card.fill %>-<%= card.color %> <%= card.shape %>"></div>
<% } %>
</div>
</script>
<script id="svgTemplate" type="text/template">
<svg class="shape <%= card.fill %>-<%= card.color %> <%= card.shape %>">
<%= shapes[card.shape] %>
</svg>
</script>
<script id="playerTemplate" type="text/template">
<div id="<%= name %>" class="player pcol-<%= color %> <% if (isMe) {%> me <% } %>">
<%= name %>
<span class="score"><%= score %></span>
</div>
</script>
<script id="markerTemplate" type="text/template">
<div class="marker pcol-<%= color %>" data-player="<%= name %>"></div>
</script>
</body>
</html>