test using custom api

This commit is contained in:
hexahigh 2023-01-10 14:42:52 +01:00
parent 77a154c429
commit ab5fb11c4e

View File

@ -27,7 +27,7 @@ document.querySelector('.current-year').innerText = year;
//Get user ip to put it in the contact form
//Also check if they are using a vpn
$.getJSON("https://api.ipify.org?format=json", function(data) {
$.getJSON("https://europe-central2-portfolio-website-374313.cloudfunctions.net/getip-1", function(data) {
var userip = (data.ip);
document.getElementById("formip").value = (data.ip);
fetch('vpnip.txt')