Update main.js.download
This commit is contained in:
parent
438a81be18
commit
c8233a8ee4
|
@ -14,6 +14,7 @@ let wrr = false;
|
||||||
let wrdd = false;
|
let wrdd = false;
|
||||||
var commands = [];
|
var commands = [];
|
||||||
|
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
loopLines(banner, "", 80);
|
loopLines(banner, "", 80);
|
||||||
textarea.focus();
|
textarea.focus();
|
||||||
|
@ -65,57 +66,45 @@ function enterKey(e) {
|
||||||
liner.classList.remove("password");
|
liner.classList.remove("password");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (wr) {
|
if (wr) {
|
||||||
|
// Set the command text to the value of the textarea
|
||||||
|
command.innerHTML = textarea.value;
|
||||||
|
|
||||||
command.innerHTML = textarea.value;
|
// Check if the textarea value matches any of the expected values
|
||||||
if (textarea.value === adil) {
|
if (textarea.value === adil || textarea.value === Adil || textarea.value === ADIL) {
|
||||||
wrd = true;
|
wrd = true;
|
||||||
}
|
} else if (textarea.value === jaber) {
|
||||||
if (textarea.value === Adil) {
|
wrdd = true;
|
||||||
wrd = true;
|
|
||||||
}
|
|
||||||
if (textarea.value === ADIL) {
|
|
||||||
wrd = true;
|
|
||||||
}
|
|
||||||
if (textarea.value === jaber) {
|
|
||||||
wrdd = true;
|
|
||||||
}
|
|
||||||
if (wrd && e.keyCode == 13) {
|
|
||||||
loopLines(whois, social, "color2 margin", 120);
|
|
||||||
loopLines(social, "color2 margin", 120);
|
|
||||||
command.innerHTML = "";
|
|
||||||
textarea.value = "";
|
|
||||||
wrd = false;
|
|
||||||
wr = false;
|
|
||||||
liner.classList.remove("who");
|
|
||||||
}
|
|
||||||
if (wrd && e.keyCode == 13) {
|
|
||||||
loopLines(whois, social, "color2 margin", 120);
|
|
||||||
loopLines(social, "color2 margin", 120);
|
|
||||||
command.innerHTML = "";
|
|
||||||
textarea.value = "";
|
|
||||||
wrd = false;
|
|
||||||
wr = false;
|
|
||||||
liner.classList.remove("who");
|
|
||||||
}
|
|
||||||
if (wrdd && e.keyCode == 13) {
|
|
||||||
loopLines(jb, "color2 margin", 120);
|
|
||||||
loopLines(socialjb, "color2 margin", 120);
|
|
||||||
command.innerHTML = "";
|
|
||||||
textarea.value = "";
|
|
||||||
wrdd = false;
|
|
||||||
wrr = false;
|
|
||||||
liner.classList.remove("who");
|
|
||||||
} else if (e.keyCode == 13) {
|
|
||||||
addLine("We don't know anything about this person yet", "error", 0);
|
|
||||||
command.innerHTML = "";
|
|
||||||
textarea.value = "";
|
|
||||||
wrr = false;
|
|
||||||
wr = false;
|
|
||||||
liner.classList.remove("who");
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If the textarea value matches, execute the appropriate function
|
||||||
|
if (wrd && e.keyCode == 13) {
|
||||||
|
loopLines(whois, social, "color2 margin", 120);
|
||||||
|
loopLines(social, "color2 margin", 120);
|
||||||
|
command.innerHTML = "";
|
||||||
|
textarea.value = "";
|
||||||
|
wrd = false;
|
||||||
|
wr = false;
|
||||||
|
liner.classList.remove("who");
|
||||||
|
} else if (wrdd && e.keyCode == 13) {
|
||||||
|
loopLines(jb, "color2 margin", 120);
|
||||||
|
loopLines(socialjb, "color2 margin", 120);
|
||||||
|
command.innerHTML = "";
|
||||||
|
textarea.value = "";
|
||||||
|
wrdd = false;
|
||||||
|
wrr = false;
|
||||||
|
liner.classList.remove("who");
|
||||||
|
} else if (e.keyCode == 13) {
|
||||||
|
// If the textarea value doesn't match, display an error message
|
||||||
|
addLine("We don't know anything about this person yet", "error", 0);
|
||||||
|
command.innerHTML = "";
|
||||||
|
textarea.value = "";
|
||||||
|
wrr = false;
|
||||||
|
wr = false;
|
||||||
|
liner.classList.remove("who");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
else {
|
else {
|
||||||
if (e.keyCode == 13) {
|
if (e.keyCode == 13) {
|
||||||
|
@ -190,7 +179,7 @@ function commander(cmd) {
|
||||||
loopLines(help, "color2 margin", 80);
|
loopLines(help, "color2 margin", 80);
|
||||||
break;
|
break;
|
||||||
case "version":
|
case "version":
|
||||||
addLine("ASCODES v2.6.3", "color2", 80);
|
addLine("ASCODES v2.8.0", "color2", 80);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
},800);
|
},800);
|
||||||
break;
|
break;
|
||||||
|
@ -199,21 +188,32 @@ function commander(cmd) {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
},800);
|
},800);
|
||||||
break;
|
break;
|
||||||
case "exit":
|
case "exit":
|
||||||
addLine("Thank you for your visit, Good Bye...", "color2", 80);
|
addLine("Thank you for your visit. Goodbye!", "color2", 80);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
window.close('https://adil.asadqi.com');
|
window.open('','_parent','');
|
||||||
}, 2500);
|
window.setTimeout(function() {
|
||||||
|
window.location.href = 'about:blank';
|
||||||
|
window.close();
|
||||||
|
}, 500);
|
||||||
|
}, 2500);
|
||||||
break;
|
break;
|
||||||
case "close":
|
case "close":
|
||||||
addLine("Thank you for your visit, Good Bye..", "color2", 80);
|
addLine("Thank you for your visit. Goodbye!", "color2", 80);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
window.close('https://adil.asadqi.com');
|
window.open('','_parent','');
|
||||||
}, 2500);
|
window.setTimeout(function() {
|
||||||
|
window.location.href = 'about:blank';
|
||||||
|
window.close();
|
||||||
|
}, 500);
|
||||||
|
}, 2500);
|
||||||
break;
|
break;
|
||||||
case "update":
|
case "update":
|
||||||
loopLines(update, "color2 margin", 1000);
|
loopLines(update, "color2 margin", 1000);
|
||||||
break;
|
setTimeout(function() {
|
||||||
|
location.reload();
|
||||||
|
}, 17000);
|
||||||
|
break;
|
||||||
case "social":
|
case "social":
|
||||||
loopLines(social, "color2 margin", 80);
|
loopLines(social, "color2 margin", 80);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue