Skip to content

Instantly share code, notes, and snippets.

View ViacheslavBedilo's full-sized avatar

ViacheslavBedilo

View GitHub Profile
//add zip code by ip
setTimeout(function () {
$.getJSON('https://ipapi.co/json/', function (data) {
var zipcode = data.postal;
$('.main_search_bar #address_search').val(zipcode);
$('.search_bar .btn').trigger('click');
});
}, 2000);