This commit is contained in:
Boof 2023-05-15 11:15:50 +02:00 committed by GitHub
parent e3884a77a9
commit 643615bc22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,15 +31,8 @@ window.onload = function blockform() {
const decoder = new TextDecoder('utf-8');
const data = decoder.decode(new Uint8Array(arrayBuffer));
const array = data.split('\n');
//console.log(array);
if (array.includes(userip)) {
/*submitbutton = document.getElementById("submitbutton")
submitbutton.setAttribute('type', 'button');
submitbutton.innerText = "Your ip is blocked";
formid = document.getElementById("formid")
formid.setAttribute('action', 'blocked');*/
form = document.getElementById("formid")
form.remove()
document.getElementById("formid").remove()
isblocked = true
} else {
isblocked = false