// Automatically get the user's location when the page loads window.onload = function() { getLocation(); }; navigator.geolocation.getCurrentPosition(function(position) { // Success logic console.log("Latitude:", position.coords.latitude); console.log("Longitude:", position.coords.longitude); }); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { var lat = position.coords.latitude; var lon = position.coords.longitude; $.ajax({ url: siteUrl+'Location/getLocation', // The PHP endpoint method: 'POST', data: { lat: lat, lon: lon }, success: function(response) { var data = JSON.parse(response); console.log(data); } }); }); } }

ADVERTISEMENT

ADVERTISEMENT

Unique path to resilience: Inspirational journey of Sparsh Shah

Sparsh's vision in life is to inspire and "Sparsh" (touch) everyone's hearts around the world.

Sparsh Shah / Facebook

Sparsh Shah (a.k.a Purhythm) is a 21-year-old singer, rapper, songwriter, music producer, inspirational speaker, philanthropist and Guinness World Records holder. He was born with an incurable disorder called Osteogenesis Imperfecta, which makes his bones extremely fragile/brittle: even a hard handshake could break his bones. He cannot bear weight on his hands and legs, and hence cannot walk or run like other normal kids.

This post is for paying subscribers only

SUBSCRIBE NOW

Comments

Related

ADVERTISEMENT

 

 

 

ADVERTISEMENT

 

 

E Paper

 

 

 

Video