Update main.js.download

This commit is contained in:
Adil Sadqi 2023-03-01 20:51:45 +01:00 committed by GitHub
parent f95871b976
commit 52abd9d554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 54 additions and 58 deletions

View File

@ -65,58 +65,46 @@ function enterKey(e) {
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;
if (textarea.value === adil) {
wrd = true;
}
if (textarea.value === Adil) {
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");
}
// Check if the textarea value matches any of the expected values
if (textarea.value === adil || textarea.value === Adil || textarea.value === ADIL) {
wrd = true;
} else if (textarea.value === jaber) {
wrdd = true;
}
// 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 {
if (e.keyCode == 13) {
commands.push(command.innerHTML);
@ -190,7 +178,7 @@ function commander(cmd) {
loopLines(help, "color2 margin", 80);
break;
case "version":
addLine("ASCODES v2.6.4", "color2", 80);
addLine("ASCODES v2.6.3", "color2", 80);
setTimeout(function() {
},800);
break;
@ -199,17 +187,25 @@ function commander(cmd) {
setTimeout(function() {
},800);
break;
case "exit":
addLine("Thank you for your visit, Good Bye...", "color2", 80);
case "exit":
addLine("Thank you for your visit. Goodbye!", "color2", 80);
setTimeout(function() {
window.close('https://adil.asadqi.com');
}, 2500);
window.open('','_parent','');
window.setTimeout(function() {
window.location.href = 'about:blank';
window.close();
}, 500);
}, 2500);
break;
case "close":
addLine("Thank you for your visit, Good Bye..", "color2", 80);
case "close":
addLine("Thank you for your visit. Goodbye!", "color2", 80);
setTimeout(function() {
window.close('https://adil.asadqi.com');
}, 2500);
window.open('','_parent','');
window.setTimeout(function() {
window.location.href = 'about:blank';
window.close();
}, 500);
}, 2500);
break;
case "update":
loopLines(update, "color2 margin", 1000);