Skip to content

Instantly share code, notes, and snippets.

@callison-burch
Created February 3, 2010 18:49
Show Gist options
  • Save callison-burch/293884 to your computer and use it in GitHub Desktop.
Save callison-burch/293884 to your computer and use it in GitHub Desktop.
<script language="Javascript" src="http://gd.geobytes.com/gd?after=-1&variables=GeobytesCountry,GeobytesCity,GeobytesRegion,GeobytesIpAddress"></script>
<script language="Javascript">
<!--
function getUserInfo() {
var userDisplayLanguage = navigator.language ? navigator.language : navigator.userDisplayLanguage;
var browserInfo = navigator.userAgent;
var country = sGeobytesCountry;
var city = sGeobytesCity;
var region = sGeobytesRegion;
document.mturk_form.userDisplayLanguage.value = userDisplayLanguage;
document.mturk_form.browserInfo.value = browserInfo;
document.mturk_form.country.value = country;
document.mturk_form.city.value = city;
document.mturk_form.region.value = region;
}
getUserInfo();
// -->
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment