-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
184 lines (164 loc) · 10.2 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
<!doctype html>
<html lang="pl">
<head>
<meta charset="utf-8" />
<title>MemoryBlockHack</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://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">
<script type="text/javascript" src="src/memoryHack.js" defer></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=Open+Sans:wght@800&display=swap" rel="stylesheet">
</head>
<body style="background-color: #1b1b1b; ">
<div id="buttonDiv">
<button type="button" class="btn btn-primary btn-lg mx-auto d-flex" id="buttonStart" style="margin-top:300px;">Start hack</button>
<nav class="navbar fixed-bottom navbar-dark bg-dark">
<div class="row w-75 mb-3" style="border:none;">
<p class="h5 my-3" style="color:#33da6a;">Wybierz preset: </p>
<button type="button" class="btn btn-success btn col-2 mx-2" onClick='setPreset(5,8,9)'>Pacyfik skrzynki</button>
<button type="button" class="btn btn-success btn col-2 mx-2" onClick='setPreset(8,8,9)'>UD metalowe drzwi</button>
<p class="h5 my-2" style="color:#33da6a;">Lub ustaw parametry samodzielnie:</p>
</div>
<div class="btn btn-outline-danger col-2 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">
<div class="col w-25">
<p class="h5 d-flex justify-content-left mt-2 mb-2" style="color:#33da6a;">
Ilosc liczb
<span class="badge bg-success" id="amountBadge">x</span>
</p>
<input type="range" class="form-range" min="1" max="32" 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;">
Czas na zaznaczanie
<span class="badge bg-success" id="timeToCheckBadge">x</span>
</p>
<input type="range" class="form-range" min="5" max="30" step="1" id="timeToCheck" oninput="timeToCheckChange()">
</div>
<div class="col w-25">
<p class="h5 d-flex justify-content-left mt-2 mb-2" style="color:#33da6a;">
Czas na zapamietanie
<span class="badge bg-success" id="timeToRememberBadge">x</span>
</p>
<input type="range" class="form-range" min="2" max="30" step="1" id="timeToRemember" oninput="timeToRememberChange()">
</div>
</div>
<a class="navbar-brand p-3" href="#">MemoryBlock - Odwzorowanie hacka z serwera 5City GTA V RolePlay</a>
</nav>
</div>
<div id="mainSpot" class="pt-5">
<div id="textBox" >
<div class="h1 text-white text-center" style="margin-top:190px;" id="text">PRZYGOTUJ SIĘ</div>
</div>
<div id="maze" style="display:none;" >
<div class="row">
<span class="square text-center" id="00" onclick="squareClick(0,0)"></span>
<span class="square text-center" id="01" onclick="squareClick(0,1)"></span>
<span class="square text-center" id="02" onclick="squareClick(0,2)"></span>
<span class="square text-center" id="03" onclick="squareClick(0,3)"></span>
<span class="square text-center" id="04" onclick="squareClick(0,4)"></span>
<span class="square text-center" id="05" onclick="squareClick(0,5)"></span>
<span class="square text-center" id="06" onclick="squareClick(0,6)"></span>
<span class="square text-center" id="07" onclick="squareClick(0,7)"></span>
</div>
<div class="row">
<span class="square text-center" id="10" onclick="squareClick(1,0)"></span>
<span class="square text-center" id="11" onclick="squareClick(1,1)"></span>
<span class="square text-center" id="12" onclick="squareClick(1,2)"></span>
<span class="square text-center" id="13" onclick="squareClick(1,3)"></span>
<span class="square text-center" id="14" onclick="squareClick(1,4)"></span>
<span class="square text-center" id="15" onclick="squareClick(1,5)"></span>
<span class="square text-center" id="16" onclick="squareClick(1,6)"></span>
<span class="square text-center" id="17" onclick="squareClick(1,7)"></span>
</div>
<div class="row">
<span class="square text-center" id="20" onclick="squareClick(2,0)"></span>
<span class="square text-center" id="21" onclick="squareClick(2,1)"></span>
<span class="square text-center" id="22" onclick="squareClick(2,2)"></span>
<span class="square text-center" id="23" onclick="squareClick(2,3)"></span>
<span class="square text-center" id="24" onclick="squareClick(2,4)"></span>
<span class="square text-center" id="25" onclick="squareClick(2,5)"></span>
<span class="square text-center" id="26" onclick="squareClick(2,6)"></span>
<span class="square text-center" id="27" onclick="squareClick(2,7)"></span>
</div>
<div class="row">
<span class="square text-center" id="30" onclick="squareClick(3,0)"></span>
<span class="square text-center" id="31" onclick="squareClick(3,1)"></span>
<span class="square text-center" id="32" onclick="squareClick(3,2)"></span>
<span class="square text-center" id="33" onclick="squareClick(3,3)"></span>
<span class="square text-center" id="34" onclick="squareClick(3,4)"></span>
<span class="square text-center" id="35" onclick="squareClick(3,5)"></span>
<span class="square text-center" id="36" onclick="squareClick(3,6)"></span>
<span class="square text-center" id="37" onclick="squareClick(3,7)"></span>
</div>
</div>
<div class="container">
<div class="row align-content-center" style="border-bottom: none;">
<div class="col-9 p-0" id="progressBox">
<div class="progress m-1 mt-4 mb-3" style="height: 2px; width:100%; background-color: black;">
<div class="" role="progressbar" id="progress-bar" style=" background-color: white;" ></div>
</div>
</div>
<div class="col-3 p-0 text-end">
<p class="h3 text-white text-end" id="navText">Memory block</p>
</div>
</div>
</div>
</div>
<div id="updateDiv"></div>
<script>
var defaut_timeToCheck = 9;
var default_timeToRemember = 8;
var default_amount = 5;
document.getElementById("amountBadge").innerHTML=String(default_amount);
document.getElementById("amount").value=default_amount;
document.getElementById("timeToCheckBadge").innerHTML=String(defaut_timeToCheck);
document.getElementById("timeToCheck").value=defaut_timeToCheck;
document.getElementById("timeToRememberBadge").innerHTML=String(default_timeToRemember);
document.getElementById("timeToRemember").value=default_timeToRemember;
function timeToCheckChange(){
document.getElementById("timeToCheckBadge").innerHTML=document.getElementById("timeToCheck").value;
}
function timeToRememberChange(){
document.getElementById("timeToRememberBadge").innerHTML=document.getElementById("timeToRemember").value;
}
function amountChange(){
document.getElementById("amountBadge").innerHTML=document.getElementById("amount").value;
}
function setPreset(amount, timeToRemember, timeToCheck){
$("#heistDrink").show();
$("#heistDrinkMessage").hide();
document.getElementById("amountBadge").innerHTML=String(amount);
document.getElementById("amount").value=amount;
document.getElementById("timeToCheckBadge").innerHTML=String(timeToCheck);
document.getElementById("timeToCheck").value=timeToCheck;
document.getElementById("timeToRememberBadge").innerHTML=String(timeToRemember);
document.getElementById("timeToRemember").value=timeToRemember;
}
function useHeistDrink(){
$("#heistDrink").hide();
$("#heistDrinkMessage").show();
var time = document.getElementById("timeToCheck").value * 1.5;
document.getElementById("timeToCheckBadge").innerHTML=String(time) + ' (+heist drink boost)';
document.getElementById("timeToCheck").value=time;
time = document.getElementById("timeToRemember").value * 1.5;
document.getElementById("timeToRememberBadge").innerHTML=String(time) + ' (+heist drink boost)';
document.getElementById("timeToRemember").value=time;
}
</script>
</body>
</html>