Skip to content

Instantly share code, notes, and snippets.

@conraddecker
Created March 13, 2012 20:41
Show Gist options
  • Save conraddecker/2031433 to your computer and use it in GitHub Desktop.
Save conraddecker/2031433 to your computer and use it in GitHub Desktop.
$(document).ready( function() {
$.getJSON( "http://smart-ip.net/geoip-json?callback=?",
function(data){
document.location.href='http://'+data.countryCode+'.coolsculpting.com';
}
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment