Last active
June 5, 2024 11:28
-
-
Save brennandunn/d73141fe366cfab994aeda1477daa80c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax('https://ipapi.co/json/') | |
.then( | |
function success(response) { | |
window.geolocation = response; | |
loadRM(); | |
}, | |
function fail(data, status) { | |
loadRM(); | |
} | |
); | |
function loadRM() { | |
// insert your RightMessage script here! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment