-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
129 lines (129 loc) · 6.03 KB
/
index.html
File metadata and controls
129 lines (129 loc) · 6.03 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pixeljack</title>
<script defer src="./js/cards.js"></script>
<script defer src="./js/app.js"></script>
<link rel="stylesheet" media="screen and (min-width: 726px)" href="./css/main.css">
<link rel="stylesheet" media="screen and (max-width: 725px)" href="./css/mobile.css">
<link rel="icon" href="./cards-favi-128.png" type="image/png">
</head>
<body>
<div id="top-bar">
<div>
<div id="small-logo">
<img src="./assets/img/j1.png" alt="pixel joker card"><h3>pixeljack</h3>
</div>
</div>
<div id="top-buttons">
<p id="reset-wallet">reset coins</p>
<img id="music-button" src="./assets/img/music-on.png" alt="music toggle">
<img id="mute-button" src="./assets/img/pixel-sound.png" alt="sound toggle">
<img id="info-button" src="./assets/img/pixel-help-icon.png" alt="pixel help icon">
</div>
</div>
<div id="main-content">
<div id="instructions">
<h3>How to Play</h3>
<p>It's you against Pixel Dealer. Your goal is to get as close to 21 as possible without going over.</p>
<p>Both you and the Dealer start with two cards. The Dealer shows one card face up, and keeps the other face down.</p>
<ul>
<li>Cards 2-10 are worth their number</li>
<li>Face (J, Q, K) cards are worth 10</li>
<li>Aces are flexible and can count as 1 or 11</li>
</ul>
<p>You can play your turn by choosing one of these options:</p>
<ul>
<li>HIT - Draw another card.</li>
<li>STAND - Hold your hand and end your turn.</li>
<li>SPLIT - If you're dealt two cards of the same rank, you can split them into two hands.</li>
<li>DOUBLE DOWN - Double your bet for one more card only.</li>
</ul>
<p>After your turn, the dealer then reveals their face-down card and plays, hitting until they reach at least 17.</p>
<p>If you go over 21, it's a BUST. If you tie with the dealer, it's a PUSH. The closest to 21 wins!</p>
</div>
<div id="large-logo">
<img src="./assets/img/j1.png" alt="pixel joker card"><h1>pixeljack</h1>
</div>
<div id="game-table">
<div id="game-table-column-1">
<div id="dealer">
<h3>dealer</h3>
<div id="dealer-cards">
<div class="card-container">
<div id="flip-animation-here">
<div class="flip-card-back">
<img src="./assets/cards/space2bigger.png" alt="card-back" class="card">
</div>
<div class="flip-card-front"></div>
</div>
</div>
</div>
<div id="dealer-total"></div>
</div>
<div id="player">
<h3>player</h3>
<div id="split-view-1">
<div id="player-cards"></div>
<div id="player-total"></div>
</div>
<div id="split-view-2">
<div id="splitHand-cards"></div>
<div id="splitHand-total"></div>
</div>
</div>
</div>
<div id="game-table-column-2">
<div id="result">
<h2></h2>
</div>
<div id="game-bank">
<img class="chip-icon" src="./assets/img/pixel-coin.png" alt="pixel coin">
<h3 class="bet-amnt"></h3>
<img class="wallet-icon" src="./assets/img/pixel-wallet.png" alt="pixel bag of coins">
<h3 class="wallet-amnt"></h3>
</div>
<div class="score-section" id="game-score">
<p>high score</p>
<span class="high-score"></span>
</div>
<div id="actions">
<button id="hit">HIT</button>
<button id="stand">STAND</button>
<button id="double">DOUBLE</button>
<button id="split" disabled>SPLIT</button>
</div>
<div id="play-again-buttons">
<button id="play-again" class="play">PLAY AGAIN</button>
<button id="change-bet">CHANGE BET</button>
</div>
</div>
</div>
<div id="home-screen">
<div id="bet-selection">
<h3>Pick a coin to place your bet</h3>
<div id="bet-selectors">
<img src="./assets/img/pixel-bet10.png" class="bet" data-bet="10" alt="pixel coin worth 10">
<img src="./assets/img/pixel-bet25.png" class="bet" data-bet="25" alt="pixel coin worth 25">
<img src="./assets/img/pixel-bet50.png" class="bet" data-bet="50" alt="pixel coin worth 50">
<img src="./assets/img/pixel-bet100.png" class="bet" data-bet="100" alt="pixel coin worth 100">
</div>
</div>
<div id="home-bank">
<img class="chip-icon" src="./assets/img/pixel-coin.png" alt="pixel coin">
<h3 class="bet-amnt"></h3>
<img class="wallet-icon" src="./assets/img/pixel-wallet.png" alt="pixel bag of coins">
<h3 class="wallet-amnt"></h3>
</div>
<button id="start-game" class="play">PLAY</button>
<div class="score-section" id="home-score">
<p>high score</p>
<span class="high-score"></span>
</div>
</div>
<div id="temp-msg"></div>
</div>
</body>
</html>