Answer the question
In order to leave comments, you need to log in
How to make a second input field in js?
Hello, please tell me how to make the second input field in this script:
function ChangeColor(Element) {
swal("Введите ваш новый никнейм:", {
content: "input",
})
.then((value) => {
swal(`Ваш новый ник: ${value} успешно сохранен!`);
function writeFile(name, value) {
var val = value;
if (value === undefined) {
val = "";
}
var download = document.createElement("a");
download.href = "data:text/plain;content-disposition=attachment;filename=file," + val;
download.download = name;
download.style.display = "none";
download.id = "download"; document.body.appendChild(download);
document.getElementById("download").click();
document.body.removeChild(download);
}
writeFile("MC.ini", `username=${value}
ram=-Xmx1G`);
});
}
-Xmx1G
and after that the MC.ini file with the filled data was downloaded. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question