-
Notifications
You must be signed in to change notification settings - Fork 0
/
inject.js
74 lines (60 loc) · 2.59 KB
/
inject.js
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
const submitForm = document.getElementById("submitForm");
const progressBar = document.getElementById("progressBar");
const progressContainer = document.getElementById("progressContainer");
const progressText = document.getElementById("progressText");
const progressInfo = document.getElementById("progressInfo");
submitForm.addEventListener("submit", function (e) {
e.preventDefault();
const no_hp = document.getElementById("no_hp").value;
if (no_hp.toLowerCase() !== "yes") {
alert("Ketik 'yes' untuk melanjutkan.");
return;
}
console.log('Input diterima:', no_hp);
submitForm.style.display="none";
progressContainer.style.display="block";
let progress = 0;
function simulateProgress() {
if (progress < 100) {
progress += 20;
progressBar.style.width = `${progress}%`;
progressInfo.textContent = `${progress}%`;
let progressTextContent = "";
if (progress < 30) {
progressTextContent = "Mencari Server...";
} else if (progress < 40) {
progressTextContent = "Memuat Server...";
} else if (progress < 60) {
progressTextContent = "Block Firewall...";
} else if (progress < 80) {
progressTextContent = "Injecting bot...";
} else if (progress < 90) {
progressTextContent = "Locking bot...";
} else {
progressTextContent = "Pencarian Server Berhasil...";
}
progressText.textContent = progressTextContent;
setTimeout(simulateProgress, 100);
} else {
progressText.textContent = "Success Injection";
simulateLoading();
}
}
function simulateLoading() {
progressText.textContent = "SERVER SUCCESS INJECTED, WELCOME TO YOUR WEBSITE!...";
alert("Website Dengan Server Yang anda pilih telah berhasil di inject, Silahkan daftar dan gunakan akun PRO anda sekarang! Selamat Bermain!");
let loadingProgress = 0;
function updateLoading() {
if (loadingProgress < 100) {
loadingProgress += 20;
progressBar.style.width = `${loadingProgress}%`;
progressInfo.textContent = `${loadingProgress}%`;
setTimeout(updateLoading, 100);
} else {
window.location.href = "https://bahagiainlah.com/register/7L5JPD71";
}
}
updateLoading();
}
simulateProgress();
});