-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
175 lines (157 loc) · 7.97 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Simon Barchi - Simon Game with Blue Archive Theme</title>
<meta
name="description"
content="Simon Barchi is a web-based Simon game with a Blue Archive theme, stages, a fun interface, and character voices."
/>
<meta name="keywords" content="Blue Archive, Simon game, web-based game, sequence game, game" />
<meta name="author" content="Rezzvy" />
<link rel="stylesheet" href="./lib/bootstrap-5.3.3-dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="./css/main.css" />
</head>
<body>
<div class="container-fluid d-flex flex-column p-0 h-screen">
<header>
<div class="_wrapper text-bg-dark text-center p-2">
<div class="costum-header-width">
<div class="mb-1 fw-bold fs-3 letter-spacing">STAGE <span id="current-stage">1</span></div>
<div id="stage-completion-bar" class="progress rounded-top-pill" role="progressbar">
<div class="progress-bar bg-secondary progress-bar-striped rounded-top-pill mx-auto"></div>
</div>
</div>
</div>
</header>
<main>
<div class="_wrapper bg-white position-relative h-100">
<div id="sequence-play-indicator" class="position-absolute p-2 text-bg-light bg-opacity-75 rounded-2 shadow-sm fw-bold fs-5 text-nowrap">
Watch the sequences
</div>
<div id="freezone" class="position-absolute bg-white rounded-circle"></div>
<div id="sequence-wrapper" class="row g-0 row-cols-2 h-inherit">
<div class="sequence-col position-relative p-2" role="button" data-color="yellow">
<div class="sequence-inner-wrap position-relative">
<img src="./assets/img/momoi.webp" alt="Momoi Image" />
</div>
</div>
<div class="sequence-col position-relative p-2" role="button" data-color="blue">
<div class="sequence-inner-wrap position-relative">
<img src="./assets/img/arisu.webp" alt="Arisu Image" />
</div>
</div>
<div class="sequence-col position-relative p-2" role="button" data-color="red">
<div class="sequence-inner-wrap position-relative">
<img src="./assets/img/iroha.webp" alt="Iroha Image" />
</div>
</div>
<div class="sequence-col position-relative p-2" role="button" data-color="green">
<div class="sequence-inner-wrap position-relative">
<img src="./assets/img/izuna.webp" alt="Izuna Image" />
</div>
</div>
</div>
<button id="main-menu-btn" class="btn btn-light position-absolute fw-bold" data-bs-toggle="modal" data-bs-target="#main-menu-modal">
Main Menu
</button>
</div>
</main>
<footer>
<div class="_wrapper text-bg-dark text-center p-2">
<p>Made with lots of love by <a href="https://github.com/rezzvy" class="link-light fw-bold">Muhammad Reza Fahlevi</a></p>
</div>
</footer>
</div>
<aside>
<div class="modal fade" id="main-menu-modal" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-4 fw-bold text-dark">Main Menu</h1>
<button id="main-menu-close-btn" type="button" class="d-none btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="mb-3">
<h2 class="fs-5 mb-3">Configuration</h2>
<div class="row row-cols-2 g-2">
<div id="voice-vol-config">
<label class="form-label">Voice Volume</label>
<div class="badge text-bg-dark">0.3</div>
<input type="range" class="form-range" value="0.3" min="0" max="1" step="0.1" />
</div>
<div id="bgm-vol-config">
<label class="form-label">BGM Volume</label>
<div class="badge text-bg-dark">0.6</div>
<input type="range" class="form-range" value="0.6" min="0" max="1" step="0.1" />
</div>
</div>
<div id="sequence-delay-config">
<label class="form-label">Sequence Delay</label>
<div class="badge text-bg-dark">600ms</div>
<input type="range" class="form-range" value="600" min="100" max="1000" step="100" />
</div>
<div>
<label class="form-label">Sequence Transition</label>
<select id="sequence-transition-selection" class="form-select">
<option value="unset">No Transition</option>
<option value="linear">Linear</option>
<option value="ease">Ease</option>
<option value="ease-in">Ease In</option>
<option value="ease-in-out">Ease In Out</option>
<option value="cubic-bezier(0.68, -0.55, 0.27, 1.55)" selected>cubic-bezier(0.68, -0.55, 0.27, 1.55)</option>
</select>
</div>
</div>
<div class="alert alert-dark mb-2">
After you click "Start Game" - watch the sequence and repeat it. Keep going until you make a mistake.
</div>
<button id="main-menu-start-game-btn" class="btn btn-dark fw-bold w-100 mb-1">Start Game</button>
<div class="form-check form-switch">
<input id="full-screen-mode" class="form-check-input" type="checkbox" role="switch" />
<label class="form-check-label" for="full-screen-mode">Full Screen Mode</label>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="result-modal" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-4 fw-bold text-dark">Result</h1>
</div>
<div class="modal-body">
<div id="stage-reached" class="p-4 mb-3 text-bg-dark text-center rounded-2">
<div class="fw-bold">Stage Reached:</div>
<div class="display-1 fw-bold">1</div>
</div>
<div>
<h2 class="fs-6 mb-2">Expected Moves</h2>
<div id="expected-moves" class="moves-box p-2 border d-flex gap-2 overflow-x-auto"></div>
</div>
<div class="mt-2 mb-3">
<h2 class="fs-6 mb-2">Your Moves</h2>
<div id="player-moves" class="moves-box p-2 border d-flex gap-2 overflow-x-auto"></div>
</div>
<button id="retry-btn" class="btn btn-dark fw-bold w-100 mb-1">Play Again</button>
<button id="go-to-main-menu-btn" class="btn btn-outline-dark fw-bold w-100">Main Menu</button>
</div>
</div>
</div>
</div>
</aside>
<div class="d-none">
<audio src="./assets/voice/momoi.mp3" data-audio="yellow"></audio>
<audio src="./assets/voice/arisu.mp3" data-audio="blue"></audio>
<audio src="./assets/voice/iroha.mp3" data-audio="red"></audio>
<audio src="./assets/voice/izuna.mp3" data-audio="green"></audio>
<audio src="./assets/audio/correct.mp3" data-audio="correct"></audio>
<audio src="./assets/audio/wrong.mp3" data-audio="wrong"></audio>
<audio src="./assets/audio/bgm.mp3" data-audio="bgm" loop></audio>
</div>
<script src="./lib/bootstrap-5.3.3-dist/js/bootstrap.min.js"></script>
<script src="./src/main.js" type="module"></script>
</body>
</html>