Skip to content

Instantly share code, notes, and snippets.

@be-mohand
Created March 6, 2020 10:42
Show Gist options
  • Save be-mohand/5425dc5bda5158d7bb856b500ea0f481 to your computer and use it in GitHub Desktop.
Save be-mohand/5425dc5bda5158d7bb856b500ea0f481 to your computer and use it in GitHub Desktop.
$(document).ready(function() {
// Set default location to Paris
if($('.homepage-body').length > 0 && $('#gmap-input-area').length > 0) {
$('#gmap-input-area').val('Paris');
if($('#lat_search').length > 0) {
$('#lat_search').val('48.8485765');
}
if($('#lng_search').length > 0) {
$('#lng_search').val('2.3421943');
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment