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 characters
<?php | |
/** | |
* User: matteo.orefice | |
* Date: 16/02/2018 | |
* Time: 16:57 | |
*/ | |
namespace MatteoOrefice\Illuminate\Database\Eloquent\Concerns; |
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 characters
function getLocation() { | |
if (!navigator.geolocation) { | |
alert("Sorry, but Geolocation is not supported by this browser."); | |
} | |
navigator.geolocation.getCurrentPosition(showPosition); | |
} | |
function showPosition(position) { | |
var lat = position.coords.latitude; | |
var long = position.coords.longitude; |