Initial Import.

This commit is contained in:
2013-03-31 23:15:07 +01:00
commit c19f2f5562
66 changed files with 1780 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
function supports_geolocation() {
return 'geolocation' in navigator;
}
function init_geolocation() {
if (supports_geolocation()) {
navigator.geolocation.getCurrentPosition(handle_geolocation_event)
}
}
function handle_geolocation_event(position) {
$('#geolocation a').attr('href', '/stores/search/?lat=' + position.coords.latitude + '&lng=' + position.coords.longitude + '&distance=10');
$('#geolocation').fadeIn(1000);
}
$(document).ready(function() {init_geolocation();})