5 ms·
You're missing the 'Cats in <name of city> are waiting for you!', with the name of a city ~800km from where you are.
by sitharus 14y ago
You're missing the 'Cats in <name of city> are waiting for you!', with the name of a city ~800km from where you are.
- rachelbythebay 14y ago"Cats in TOR EXIT NODE are waiting for you!" "Cats in BOEING EARTH STATION are waiting for you!"
- mkopinsky 14y agoI usually get "Cats in US-East-1 are waiting for you!"
- ajasmin 14y ago$.ajax({url:"http://freegeoip.net/json", dataType:"json"}) .done(function(data){$('#city').text(data.city)}); freegeoip.net seems to send the "Access-Control-Allow-Origin: *" header which allows the cross-domain ajax call. Picking a city ~800km from where you are is an exercise left for the reader.
- fountainla 14y agoThis is great. We initially had it in PHP server side, but didn't want to slow down the process. Having it lazy load via ajax is a great idea.
- fountainla 14y agoWe had this in initially server-side, but took it out to account for a rush. Someone posted a JS solution below, we might integrate that!