Update main.js.download
This commit is contained in:
parent
f95871b976
commit
52abd9d554
|
@ -65,58 +65,46 @@ 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) {
|
||||||
commands.push(command.innerHTML);
|
commands.push(command.innerHTML);
|
||||||
|
@ -190,7 +178,7 @@ function commander(cmd) {
|
||||||
loopLines(help, "color2 margin", 80);
|
loopLines(help, "color2 margin", 80);
|
||||||
break;
|
break;
|
||||||
case "version":
|
case "version":
|
||||||
addLine("ASCODES v2.6.4", "color2", 80);
|
addLine("ASCODES v2.6.3", "color2", 80);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
},800);
|
},800);
|
||||||
break;
|
break;
|
||||||
|
@ -199,17 +187,25 @@ 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);
|
||||||
|
|
Loading…
Reference in New Issue