tomyvi / php-tracks-recorder

PHP front & backend for owntracks & overland payload
GNU General Public License v3.0
66 stars 33 forks source link

Move javascript to separate file #31

Closed mauricesvay closed 1 year ago

mauricesvay commented 1 year ago

The main index.php file currently contains PHP code, HTML code and JavaScript code. This can make it harder for the project to accept contributions.

This pull request proposes to move the JavaScript file to a separate file.

All the data that the JavaScript code needs from PHP would be available in the global window.config object. No other change to the JavaScript code is introduced. This can be checked with git diff -w b459087:index.php 10da9cc:js/app.js