-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
158 lines (138 loc) · 7.6 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<link rel="shortcut icon" href="img/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta name="keywords"
content="Free, Blackjack, 21, play, cards, black jack,Blackjack Rules, Online Blackjack, Browser Blackjack, Free Blackjack Game, Play Blackjack Online, No Download Blackjack,Web-based Blackjack, Instant Play Blackjack, Blackjack in Browser, HTML5 Blackjack Game, Virtual Blackjack, Play Blackjack for Fun,Browser Card Game,Mobile Blackjack Online,No Registration Blackjack, Blackjack Simulator,Web Gaming Blackjack, Browser Table Games, Casual Blackjack Play,Interactive Blackjack" />
<meta name="description" content="Free Black Jack. Play 21 for free. No login. No app to install." />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/brands.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/solid.css" rel="stylesheet" />
<!-- Bootstrap CSS-->
<link href="https://bootswatch.com/5/spacelab/bootstrap.css" rel="stylesheet" id="themedStyle">
<link rel="stylesheet" href="css/animate.min.css" />
<link href="css/shared.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<title>Vanilla JavaScript Card Games</title>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JJWFFXF8G0"></script>
<script>
const urlStr = window.location.href;
if (urlStr.indexOf("file:///Users/") !== -1 || urlStr.indexOf("exclude") !== -1) {
console.log("Not running GA");
} else {
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-JJWFFXF8G0');
}
</script>
</head>
<body>
<div class="container">
<span id="audio"></span>
<div class="row">
<div class="btn-group form-control mb-2 animated fadeInDown" role="group" alt="Play Blackjack Online">
<button type="button" class="btn btn-primary dealAmt" alt="1" onClick="deal(Number(1))">$1</button>
<button type="button" class="btn btn-primary dealAmt" alt="5" onClick="deal(Number(5))">$5</button>
<button type="button" class="btn btn-primary dealAmt" alt="10" onClick="deal(Number(10))">$10</button>
<button type="button" class="btn btn-primary dealAmt" alt="25" onClick="deal(Number(25))">$25</button>
<button type="button" class="btn btn-primary dealAmt" alt="50" onClick="deal(Number(50))">$50</button>
<button type="button" class="btn btn-primary dealAmt" alt="100"
onClick="deal(Number(100))">$100</button>
</div>
<div class="col-md-12">
<div class="alert alert-info" role="alert">
<div class="row">
<div class="col-6">
<h3>Balance: $<span id="playerMoney"></span></h3>
</div>
<div class="col-6">
<h3 id="betTarget">Black Jack</h3>
</div>
</div>
</div>
</div>
<div class="col-md-12" id="dealerCards">
</div>
<div class="col-md-12">
<div class="alert alert-secondary hide" id="dealerTotal" role="alert"></div>
</div>
<div class="col-md-12" id="playerCards" alt="cards">
</div>
<!--start split-->
<div class="col-md-6" id="split0"></div>
<div class="col-md-6" id="split1"></div>
<!--end split-->
<div class="col-md-12">
<div class="alert alert-secondary hide" id="playerTotal" role="alert"></div>
</div>
<div class="col-md-12 hide" id="splitPlayBts">
<div class="btn-group form-control" role="group">
<button class="btn btn-primary" alt="hit-split0" onClick="hit('split0')">HIT</button>
<button class="btn btn-primary" alt="stay-split0" onClick="stay('split0')">STAY</button>
<button class="btn btn-primary" alt="hit-split1" onClick="hit('split1')">HIT</button>
<button class="btn btn-primary" alt="stay-split1" onClick="stay('split1')">STAY</button>
</div>
</div>
<div class="col-md-12 hide" id="playBts">
<div class="btn-group form-control" role="group">
<button class="btn btn-primary" alt="hit" onClick="hit('default')">HIT</button>
<button class="btn btn-primary" alt="stay" onClick="stay('default')">STAY</button>
<button class="btn btn-primary" alt="split" onClick="split()">SPLIT</button>
<button class="btn btn-primary" alt="doubleD" onClick="doubleD()">DOUBLE DOWN</button>
</div>
</div>
<div class="col-md-12">
<div class="alert hide" id="status" role="alert">
<h1 id="message"></h1>
</div>
</div>
<div class="col-md-12 py-2">
<div class="d-grid gap-2">
<button class="btn btn-info btn-block py-2" onClick="javascript:toggle('rules')" type="button"
data-toggle="default">View Rules</button>
<button class="btn btn-info hide btn-block py-2" onClick="javascript:toggle('default')"
type="button" data-toggle="rules">Hide Rules</button>
</div>
<div class="card hide" data-toggle="rules">
<div class="card-body">
<h5 class="card-title" alt="Black Jack rules">Black Jack rules:</h5>
<p>Your goal is to draw cards with
a value
as close to 21 as possible without going over. A hand that goes over 21 is a bust or break .
The
players at a blackjack table do not play against each other, they play against the dealer.
</p>
<p>Select your bet amount at the top to start.</p>
</div>
</div>
</div>
<div class="col-md-12"> <i data-sound="false" class="pointer fas fa-volume-up" onClick="updateAudio()"></i>
</div>
</div>
</div>
<div class="hide alert fadeInUp" role="alert" id="globalAlert"></div>
<footer class="footer mt-auto py-3 animated fadeInUp">
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="btn-group block my-2" role="group" id="gameLinks"></div>
</div>
<div class="col-md-2 my-2"> <select class="form-control" onChange="changeTheme()" id="themes"></select>
</div>
<div class="col-md-4" id="socialList">
</div>
<div class="col-md-2 my-3" id="year"></div>
</div>
</div>
</footer>
</body>
<script src="js/footer.js"></script>
<script src="js/cards.js"></script>
<script src="js/sounds.js"></script>
<script src="js/functionality.js"></script>
</html>