mirror of
https://github.com/hexahigh/portfolio.git
synced 2025-12-12 03:25:06 +01:00
cleaned
This commit is contained in:
parent
e3884a77a9
commit
643615bc22
9
index.js
9
index.js
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user