fuck javascript

This commit is contained in:
Boof 2023-01-10 12:45:08 +01:00 committed by GitHub
parent 53c12c038c
commit b4fb5ecc28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,8 +30,7 @@ document.querySelector('.current-year').innerText = year;
$.getJSON("https://api.ipify.org?format=json", function(data) {
var userip = (data.ip);
document.getElementById("formip").value = (data.ip);
})
fetch('vpnip.txt')
fetch('vpnip.txt')
.then(response => response.arrayBuffer())
.then(arrayBuffer => {
const decoder = new TextDecoder('utf-8');
@ -47,8 +46,4 @@ $.getJSON("https://api.ipify.org?format=json", function(data) {
}
})
.catch(error => console.error(error));
//var vpniplist = allText.split(/\r\n|\n/);
//var vpniplist = [];
//add the vpnlist to a array and split it
})