57e811e38322f">30f7226d9a first commit 2 lat temu tailwind-color-palette 30f7226d9a first commit 2 lat temu tailwindcss 30f7226d9a first commit 2 lat temu thenify 30f7226d9a first commit 2 lat temu thenify-all 30f7226d9a first commit 2 lat temu to-regex-range 30f7226d9a first commit 2 lat temu tr46 30f7226d9a first commit 2 lat temu ts-interface-checker 30f7226d9a first commit 2 lat temu uglify-js 30f7226d9a first commit 2 lat temu underscore 30f7226d9a first commit 2 lat temu upper-case 30f7226d9a first commit 2 lat temu util-deprecate 30f7226d9a first commit 2 lat temu valid-data-url 30f7226d9a first commit 2 lat temu web-resource-inliner 30f7226d9a first commit 2 lat temu webidl-conversions 30f7226d9a first commit 2 lat temu whatwg-url 30f7226d9a first commit 2 lat temu wrap-ansi 30f7226d9a first commit 2 lat temu wrappy 30f7226d9a first commit 2 lat temu y18n 30f7226d9a first commit 2 lat temu yallist 30f7226d9a first commit 2 lat temu yaml 30f7226d9a first commit 2 lat temu yargs 30f7226d9a first commit 2 lat temu yargs-parser 30f7226d9a first commit 2 lat temu .yarn-integrity 30f7226d9a first commit 2 lat temu tum/shaqfindbeds - Gogs: Simplico Git Service

Нема описа

main.js 579B

12345678910111213141516
  1. $(function(){
  2. $("#currentLocationBtn").click(function(){
  3. if ("geolocation" in navigator){ //check geolocation available
  4. //try to get user current location using getCurrentPosition() method
  5. console.log("current location");
  6. navigator.geolocation.getCurrentPosition(function(position){
  7. console.log("xxxx");
  8. $("#geoText").val(position.coords.latitude+","+position.coords.longitude );
  9. });
  10. }else{
  11. console.log("Browser doesn't support geolocation!");
  12. }
  13. });
  14. });