mirror of
https://github.com/hexahigh/cdn.git
synced 2025-12-11 20:15:22 +01:00
Create ajax.js
This commit is contained in:
parent
51c3bb9a05
commit
110241d434
11
js/ajax.js
Normal file
11
js/ajax.js
Normal file
@ -0,0 +1,11 @@
|
||||
// Set delay to ms
|
||||
function delay(milliseconds){
|
||||
return new Promise(resolve => {
|
||||
setTimeout(resolve, milliseconds);
|
||||
});
|
||||
}
|
||||
|
||||
// Get the userip and store it in a variable
|
||||
$.getJSON("https://europe-central2-portfolio-website-374313.cloudfunctions.net/getip", function(data) {
|
||||
})
|
||||
var userip = (data.ip);
|
||||
Loading…
x
Reference in New Issue
Block a user