mirror of
https://github.com/hexahigh/portfolio.git
synced 2025-12-12 03:25:06 +01:00
test
This commit is contained in:
parent
59d61abf8b
commit
5a37fec4ad
6
index.js
6
index.js
@ -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);
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user