-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
84 lines (67 loc) · 2.3 KB
/
index.html
File metadata and controls
84 lines (67 loc) · 2.3 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
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
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<title>Gioco di Carte Personalizzato</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<!-- FULLSCREEN BUTTON -->
<button id="fullscreenBtn" onclick="toggleFullScreen()">Full Screen</button>
<!-- START SCREEN -->
<div id="startScreen" class="screen">
<h2>Benvenuto nel Gioco di Carte</h2>
<button onclick="startNewGame()">Nuova Partita</button>
<button onclick="loadGame()">Carica Partita</button>
</div>
<!-- LOAD SCREEN -->
<div id="loadScreen" class="screen">
<h2>Partite Salvate</h2>
<div id="savedGamesList"></div>
<button onclick="backToStart()">Indietro</button>
</div>
<!-- GAME SCREEN -->
<div id="gameScreen" class="screen">
<h2>Gioco di Carte</h2>
<div>
<button onclick="shuffleDeck()">Mescola Mazzo</button>
<button onclick="drawCard()">Pesca</button>
<button onclick="putSelectedBottom()">Metti sul fondo</button>
<button onclick="toggleDeckView()">Mostra/Nascondi Mazzo</button>
<button onclick="saveGamePopup()">Salva Partita</button>
<button onclick="exitGame()">Esci dalla Partita</button>
</div>
<div>Dimensione mazzo: <span id="deckSize"></span></div>
<!-- <h3>Mano</h3> -->
<div id="hand" class="cards"></div>
<h3>Tavolo (5 per riga)</h3>
<button onclick="placeSelectedOnTable()">Metti Mano → Tavolo</button>
<button onclick="returnSelectedFromTable()">Tavolo → Mano</button>
<div id="table" class="cards"></div>
<div id="deckView">
<h3>Mazzo (carte visibili)</h3>
<button onclick="moveDeckSelectedToHand()">Mazzo → Mano</button>
<div id="deckCards" class="cards"></div>
</div>
</div>
<!-- ZOOM -->
<div id="zoomOverlay" onclick="closeZoom()">
<img id="zoomImg">
</div>
<!-- POPUP GENERICO -->
<div id="appPopup" class="popup">
<div class="popupContent" role="dialog" aria-modal="true" id="popupContent">
<p id="popupMessage"></p>
<div id="popupButtons"></div>
</div>
</div>
<script src="js/game.js"></script>
<script>
document.getElementById('startScreen').style.display='block';
document.getElementById('gameScreen').style.display='none';
document.getElementById('loadScreen').style.display='none';
</script>
</div>
</body>
</html>