-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathindex.html
78 lines (74 loc) · 3.78 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Slot Machine</title>
<meta charset="utf-8" />
<meta name="theme-color" content="#000000" />
<meta name="viewport" content="width=480,initial-scale=1, maximum-scale=1" />
<link rel="icon" href="./img/Cherry.png" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" />
<link rel="stylesheet" type="text/css" href="./css/style.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Permanent+Marker&family=Roboto:ital,wght@1,300&display=swap" />
</head>
<body>
<div>
<a class="github-button" href="https://github.com/n1md7" data-color-scheme="no-preference: dark; light: dark; dark: dark;" data-size="large" data-show-count="true" aria-label="Follow @n1md7 on GitHub">Follow @n1md7</a>
<a class="github-button" href="https://github.com/n1md7/slot-game" data-color-scheme="no-preference: dark; light: dark; dark: dark;" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star n1md7/slot-game on GitHub">Star</a>
<a class="github-button" href="https://github.com/n1md7/slot-game/fork" data-color-scheme="no-preference: dark; light: dark; dark: dark;" data-icon="octicon-repo-forked" data-size="large" data-show-count="true" aria-label="Fork n1md7/slot-game on GitHub">Fork</a>
</div>
<div class="game-container">
<!-- Winner Display -->
<div class="winner-display mb-3">
<span>WIN: <span id="win-amount">$</span></span>
</div>
<!-- Canvas Placeholder -->
<canvas id="slot" width="440" height="240"></canvas>
<!-- Button Controls -->
<div class="controls d-flex align-items-end px-1 mt-3">
<div class="text-warning left d-flex flex-column align-items-start justify-content-between h-100">
<span>Credit: <span id="credits" class="credit text-white">$400</span></span>
<span>Bet: <span id="bet" class="bet text-white">$10</span></span>
</div>
<div class="mx-4 middle d-flex align-items-end justify-content-between">
<button id="minus-bet" class="bet-action-btn">
<i class="fas fa-minus"></i>
</button>
<button class="align-items-center d-flex gap-2" id="spin-manual">
<i class="fas fa-sync-alt"></i>
<b>SPIN</b>
</button>
<button id="plus-bet" class="bet-action-btn">
<i class="fas fa-plus"></i>
</button>
</div>
<div class="right d-flex flex-column align-items-end justify-content-between gap-1">
<button class="align-items-center d-flex gap-1" id="pay-table" data-bs-toggle="modal" data-bs-target="#pay-table-modal">
<i class="fas fa-table"></i>
<b>Pay Table</b>
</button>
<button class="align-items-center control-btn d-flex gap-1" id="spin-auto">
<i class="fas fa-play"></i>
<b>AUTO | OFF</b>
</button>
</div>
</div>
</div>
<div class="modal fade modal-fullscreen-sm-down modal-lg" id="pay-table-modal">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Pay Table</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
</div>
</div>
</div>
</div>
<script src="https://unpkg.com/@n1md7/html-table-builder@1.0.1/dist/table_builder.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<script type="module" src="./js/main.mjs"></script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>