-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
208 lines (184 loc) · 11.9 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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!doctype html>
<html lang="pl">
<head>
<meta charset="utf-8" />
<title>BankHeist - 5City</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nanum+Gothic+Coding&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body style="background-color: black; ">
<nav class="navbar fixed-bottom navbar-dark bg-dark" id="settings">
<div class="row px-4">
<p class="h5 my-3" style="color:#33da6a;">Wybierz preset:</p>
<button type="button" class="btn btn-success btn col mx-2" onClick='setPreset(10,4,2,1.5,3)'>BANK</button>
<button type="button" class="btn btn-success btn col mx-2" onClick='setPreset(15,6,2,1.5,3)'>PACYFIK WEJSCIE</button>
<button type="button" class="btn btn-success btn col mx-2" onClick='setPreset(18,8,2,1.5,5)'>PACYFIK SKARBIEC GORNY</button>
<button type="button" class="btn btn-success btn col mx-2" onClick='setPreset(15,6,2,1.5,4)'>PALETO BANK</button>
<p class="h5 my-2" style="color:#33da6a;">Lub ustaw parametry samodzielnie:</p>
</div>
<div class="btn btn-outline-danger mx-5 text-center align-middle fw-bold" id="heistDrink" onClick='useHeistDrink()'>
Wypij Heist Drink
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" fill="#a51d2a" class="bi bi-cup-straw" viewBox="0 0 16 16">
<path d="M13.902.334a.5.5 0 0 1-.28.65l-2.254.902-.4 1.927c.376.095.715.215.972.367.228.135.56.396.56.82 0 .046-.004.09-.011.132l-.962 9.068a1.28 1.28 0 0 1-.524.93c-.488.34-1.494.87-3.01.87-1.516 0-2.522-.53-3.01-.87a1.28 1.28 0 0 1-.524-.93L3.51 5.132A.78.78 0 0 1 3.5 5c0-.424.332-.685.56-.82.262-.154.607-.276.99-.372C5.824 3.614 6.867 3.5 8 3.5c.712 0 1.389.045 1.985.127l.464-2.215a.5.5 0 0 1 .303-.356l2.5-1a.5.5 0 0 1 .65.278zM9.768 4.607A13.991 13.991 0 0 0 8 4.5c-1.076 0-2.033.11-2.707.278A3.284 3.284 0 0 0 4.645 5c.146.073.362.15.648.222C5.967 5.39 6.924 5.5 8 5.5c.571 0 1.109-.03 1.588-.085l.18-.808zm.292 1.756C9.445 6.45 8.742 6.5 8 6.5c-1.133 0-2.176-.114-2.95-.308a5.514 5.514 0 0 1-.435-.127l.838 8.03c.013.121.06.186.102.215.357.249 1.168.69 2.438.69 1.27 0 2.081-.441 2.438-.69.042-.029.09-.094.102-.215l.852-8.03a5.517 5.517 0 0 1-.435.127 8.88 8.88 0 0 1-.89.17zM4.467 4.884s.003.002.005.006l-.005-.006zm7.066 0-.005.006c.002-.004.005-.006.005-.006zM11.354 5a3.174 3.174 0 0 0-.604-.21l-.099.445.055-.013c.286-.072.502-.149.648-.222z"/>
</svg>
</div>
<div class="text-success mx-5 text-center align-middle fw-bold" id="heistDrinkMessage" style="display:none;">
Nałożono efekt Heist Drink (+50% czasu)
</div>
<div class="row w-100 px-4">
<div class="col w-25">
<p class="h5 d-flex justify-content-left mt-2 mb-2" style="color:#33da6a;">
Czas
<span class="badge bg-success" id="timeBadge">x</span>
</p>
<input type="range" class="form-range" min="5" max="60" step="1" id="time" oninput="timeChange()">
</div>
<div class="col w-25">
<p class="h5 d-flex justify-content-left mt-2 mb-2" style="color:#33da6a;">
Ilosc kafelkow
<span class="badge bg-success" id="amountBadge">x</span>
</p>
<input type="range" class="form-range" min="2" max="21" step="1" id="amount" oninput="amountChange()">
</div>
<div class="col w-25">
<p class="h5 d-flex justify-content-left mt-2 mb-2" style="color:#33da6a;">
Ilosc pytan
<span class="badge bg-success" id="questionBadge">x</span>
</p>
<input type="range" class="form-range" min="1" max="4" step="1" id="question" oninput="questionChange()">
</div>
<div class="col w-25">
<p class="h5 d-flex justify-content-left mt-2 mb-2" style="color:#33da6a;">
Czas zanikania
<span class="badge bg-success" id="shrinkingBadge">x</span>
</p>
<input type="range" class="form-range" min="1.5" max="6" step="0.5" id="shrinking" oninput="shrinkingChange()">
</div>
<div class="col w-25">
<p class="h5 d-flex justify-content-left mt-2 mb-2" style="color:#33da6a;">
Liczba prób
<span class="badge bg-success" id="attemptsBadge">x</span>
</p>
<input type="range" class="form-range" min="3" max="8" step="1" id="attempts" oninput="attemptsChange()">
</div>
</div>
<a class="navbar-brand p-3">Bank/Pacyfik hack - Odwzorowanie hacka z serwera 5City GTA V RolePlay</a>
</nav>
<div class="container-fluid" id="terminal" style="position:absolute; top:25%; ">
<p id="terminalText" class="h1 text-white d-flex justify-content-center mt-2 mb-2" style="font-family: 'Nanum Gothic Coding';">
<button type="button" class="btn btn-primary btn-lg" id="startButton">Start</button>
</p>
<p class="d-flex justify-content-center mt-4">
<button type="button" class="btn btn-primary" id="correctAnswerButton" data-bs-toggle="modal" data-bs-target="#myModal" style="display:none;">Zobacz poprawna odpowiedz</button>
</p>
</div>
<div class="container-fluid" id="game">
<div class="container-fluid my-auto mt-3 " style="background-color: black;">
<div class="container-fluid m-auto mt-3" id="tileContainer">
<!-- tiles here -->
</div>
<div class="container" id="menu">
<div class="container mt-1">
<div class="progress justify-content-center m-1 mt-4 mb-0 bg-success" style="height: 6px;">
<div class="" role="progressbar" id="progress-bar" style=" background-color: #33da6a;"></div>
</div>
<p id="hint" class="h3 d-flex justify-content-center mt-2 mb-2" style="font-family: 'Nanum Gothic Coding'; font-size:24px; color:#33da6a;">tutaj powinno byc pytanie</p>
</div>
<div class="container mt-0 mb-5">
<p class="h5 d-flex justify-content-left mt-0 mb-2" style="color:#33da6a;font-family: 'Nanum Gothic Coding';">Odpowiedz</p>
<input autofocus type="text" class="form-control text-success" id="answer" placeholder="niebieski kwadrat" spellcheck="false" name="answer" style="font-family: 'Nanum Gothic Coding';font-size:20px; width:25%; background-color:black; border-color:black; border-bottom-color: #33da6a; border-width: 3px; border-radius:0px;">
</div>
</div>
</div>
</div>
<script type="module" src="src/bankheist.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script>
var default_time = 10;
var default_value = 4;
var default_question = 2;
var default_shrinking = 1.5;
var default_attempts = 3;
document.getElementById("timeBadge").innerHTML=String(default_time);
document.getElementById("time").value=default_time;
document.getElementById("amountBadge").innerHTML=String(default_value);
document.getElementById("amount").value=default_value;
document.getElementById("questionBadge").innerHTML=String(default_question);
document.getElementById("question").value=default_question;
document.getElementById("shrinkingBadge").innerHTML=String(default_shrinking);
document.getElementById("shrinking").value=default_shrinking;
document.getElementById("attemptsBadge").innerHTML=String(default_attempts);
document.getElementById("attempts").value=default_attempts;
function timeChange(){
$("#heistDrink").show();
$("#heistDrinkMessage").hide();
document.getElementById("timeBadge").innerHTML=document.getElementById("time").value;
}
function amountChange(){
document.getElementById("amountBadge").innerHTML=document.getElementById("amount").value;
}
function questionChange(){
document.getElementById("questionBadge").innerHTML=document.getElementById("question").value;
}
function shrinkingChange(){
document.getElementById("shrinkingBadge").innerHTML=document.getElementById("shrinking").value;
}
function attemptsChange(){
document.getElementById("attemptsBadge").innerHTML=document.getElementById("attempts").value;
}
function setPreset(time,amount,questions,shrinking,attempts)
{
$("#heistDrink").show();
$("#heistDrinkMessage").hide();
document.getElementById("timeBadge").innerHTML=String(time);
document.getElementById("time").value=time;
document.getElementById("amountBadge").innerHTML=String(amount);
document.getElementById("amount").value=amount;
document.getElementById("questionBadge").innerHTML=String(questions);
document.getElementById("question").value=questions;
document.getElementById("shrinkingBadge").innerHTML=String(shrinking);
document.getElementById("shrinking").value=shrinking;
document.getElementById("attemptsBadge").innerHTML=String(attempts);
document.getElementById("attempts").value=attempts;
}
function useHeistDrink(){
$("#heistDrink").hide();
$("#heistDrinkMessage").show();
var time = document.getElementById("time").value * 1.5;
document.getElementById("timeBadge").innerHTML=String(time) + ' (+heist drink boost)';
document.getElementById("time").value=time;
}
</script>
<div class="modal" id="myModal">
<div class="modal-dialog modal-fullscreen">
<div class="modal-content bg-dark text-white">
<!-- Modal body -->
<div class="modal-body">
<div id="modalTiles"></div>
<p id="modalHintLabel" class="h3 d-flex justify-content-center mt-2 mb-2 text-center" style="font-family: 'Nanum Gothic Coding'; font-size:20px; color:white;">PYTANIE:</p>
<p id="modalHint" class="h3 d-flex justify-content-center mt-2 mb-2 text-center" style="font-family: 'Nanum Gothic Coding'; font-size:24px; color:#33da6a;">tutaj powinno byc pytanie</p>
<p id="modalSequenceLabel" class="h3 d-flex justify-content-center mt-2 mb-2 text-center" style="font-family: 'Nanum Gothic Coding'; font-size:20px; color:white;">KOLEJNOSC KAFELKÓW:</p>
<p id="modalSequence" class="h3 d-flex justify-content-center mt-2 mb-2 text-center" style="font-family: 'Nanum Gothic Coding'; font-size:24px; color:#33da6a;">tutaj powinna byc kolejnosc kafelkow</p>
<p id="modalCorrectAnswerLabel" class="h3 d-flex justify-content-center mt-2 mb-2 text-center" style="font-family: 'Nanum Gothic Coding'; font-size:20px; color:white;">POPRAWNA ODPOWIEDZ:</p>
<p id="modalCorrectAnswer" class="h3 d-flex justify-content-center mt-2 mb-2 text-center" style="font-family: 'Nanum Gothic Coding'; font-size:24px; color:#33da6a;">tutaj powinna byc poprawna odpowiedz</p>
<p id="modalAnswerLabel" class="h3 d-flex justify-content-center mt-2 mb-2 text-center" style="font-family: 'Nanum Gothic Coding'; font-size:20px; color:white;">TWOJA ODPOWIEDZ:</p>
<p id="modalAnswer" class="h3 d-flex justify-content-center mt-2 mb-2 text-center" style="font-family: 'Nanum Gothic Coding'; font-size:24px; color:#33da6a;">tutaj powinna byc twoja odpowiedz</p>
<p class="h5 d-flex justify-content-center mt-2 mb-2 text-center" style="font-family: 'Nanum Gothic Coding'; font-size:24px; color:white;"> ! PAMIETAJ, ZE CIEMNY MOTYW Z PRZEGLADARKI/WTYCZKI ZMIENIA KOLORY !</p>
</div>
<!-- Modal footer -->
<div class="modal-footer">
<div class="d-grid gap-2 col-12 mr-0">
<button class="btn-lg btn-danger" type="button" data-bs-dismiss="modal">ZAMKNIJ</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>