This commit is contained in:
Boof 2023-01-09 14:08:31 +01:00 committed by GitHub
parent 59d61abf8b
commit 5a37fec4ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,9 +27,9 @@ document.querySelector('.current-year').innerText = year;
//Get user ip to put it in the contact form
$.getJSON("https://api.ipify.org?format=json", function(getip) {
$.getJSON("https://api.ipify.org?format=json", function(data) {
var userip = (getip.ip);
//var userip = (data.ip);
//$("#gfg").html(getip.ip);
document.getElementById("formip").value = userip;
document.getElementById("formip").value = (data.ip);
})