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
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 withgit diff -w b459087:index.php 10da9cc:js/app.js