-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtable.html
More file actions
30 lines (29 loc) · 873 Bytes
/
table.html
File metadata and controls
30 lines (29 loc) · 873 Bytes
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
<!-- table.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Shanghai Rummy - Table</title>
<link rel="stylesheet" href="table.css" />
</head>
<body>
<div id="table-container">
<!-- Draw and discard piles -->
<div id="drawPile" class="pile"></div>
<div id="discardPile" class="pile">Discard</div>
<!-- Containers for players and contracts -->
<div id="playersContainer"></div>
<div id="contractsContainer"></div>
</div>
<script src="initDeck.js"></script>
<script src="tableManager.js"></script>
<script src="cardManager.js"></script>
<script>
const gs = localStorage.getItem('gameSetup');
let setup;
setup = JSON.parse(gs);
window.initTable(setup.playerNames);
</script>
</body>
</html>