delikarga
Kilopat
- Katılım
- 30 Temmuz 2019
- Mesajlar
- 1.959
- Çözümler
- 27
Hocam javascript ile koordinatı alıp fetch api GET veya POST request yaparak koordinatları gönderin flask tarafına.
Başarılar dilerim.
MouseEvent: clientX property - Web APIs | MDN
The clientX read-only property of the MouseEvent interface provides the horizontal coordinate within the application's viewport at which the event occurred (as opposed to the coordinate within the page).
developer.mozilla.org
Using the Fetch API - Web APIs | MDN
The Fetch API provides a JavaScript interface for accessing and manipulating parts of the protocol, such as requests and responses. It also provides a global fetch() method that provides an easy, logical way to fetch resources asynchronously across the network.
developer.mozilla.org