Last active
May 10, 2021 12:48
-
-
Save timersys/fd89fe2fa40dce472db0b5223aae5bbc to your computer and use it in GitHub Desktop.
Revisions
-
timersys revised this gist
May 10, 2021 . 1 changed file with 9 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,12 @@ $(document).on('geotwp_ajax_success', function(e, data) { if( typeof data.geo != 'undefined') { // create a custom cookie with zip value and 999 days duration GeotCreateCookie('geot_switcher', data.geo.city.data.zip, 999); // Add a marker in a custom google map if( data.geo.geolocation.data.latitude && data.geo.geolocation.data.longitude && jQuery('#geot-map').length != 0 ) { var stanton = {lat: parseFloat(data.geo.geolocation.data.latitude), lng: parseFloat(data.geo.geolocation.data.longitude)}; add_marker(stanton); } } }); -
timersys created this gist
May 10, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ $(document).on('geotwp_ajax_success', function(e, data) { if( typeof data.geo != 'undefined') { // create a custom cookie with zip value and 999 days duration GeotCreateCookie('geot_switcher', data.geo.city.data.zip, 999); // Add a marker in a custom google map if( data.geo.geolocation.data.latitude && data.geo.geolocation.data.longitude && jQuery('#geot-map').length != 0 ) { var stanton = {lat: parseFloat(data.geo.geolocation.data.latitude), lng: parseFloat(data.geo.geolocation.data.longitude)}; add_marker(stanton); } } });