gith-ubuser/live-location-tracker ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple web page for a school project that lets a user share their location with permission and then shows their live location on the screen.

I want it to feel clean and easy to use, with a clear button to start tracking and a message that explains why location access is needed. Once the user allows it, show their current latitude and longitude and keep updating it as they move. If permission is denied or location is unavailable, show a friendly error message instead of breaking.

Keep it all in one simple page if possible, using plain HTML with whatever script is needed inside it. Make it work nicely on both desktop and mobile, and style it a little so it does not look bare. If you need to look up current browser location API details online, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab