mirror of
https://github.com/hexahigh/portfolio.git
synced 2025-12-12 03:25:06 +01:00
test using custom api
This commit is contained in:
parent
77a154c429
commit
ab5fb11c4e
2
index.js
2
index.js
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user