now shows new bio again

This commit is contained in:
Mystikfluu 2022-06-09 16:13:32 +02:00
parent b63246dd78
commit f473f2acc7

View File

@ -16,11 +16,11 @@ async function bioChanger() {
document.getElementById("bio").disabled = !document.getElementById("bio").disabled
document.getElementById("changeBio").innerText = (document.getElementById("bio").disabled && "Change Bio") || "Submit"
if(document.getElementById("bio").disabled) {
document.querySelector('style').innerHTML = '::placeholder {color: white;} #bio {border: 0px solid black}'
document.querySelector('style').innerHTML = '::placeholder {color: white;} #bio {border: 0px solid black; color:white;}'
}
else
{
document.querySelector('style').innerHTML = '::placeholder {color: black;} #bio {border: 2px solid gray}'
document.querySelector('style').innerHTML = '::placeholder {color: white;} #bio {border: 2px solid gray; color:white;}'
}
if(document.getElementById("bio").disabled) {
let response = await sendBio(document.getElementById("bio").value)