-
Notifications
You must be signed in to change notification settings - Fork 7
Home
This simulator will allow users you to find the true cost of owning a car. It will normally give them a good estimate of what they really need to spend to afford owning and running a car. As the motor bills come in at different points over the year, it's often difficult to really appreciate the total spend on cars. The test version is found at http://autocosts.org/XX
The project is optimized for a web-base version, but it can be easily adapted to other platforms. It can be forked as well only for one specific language taken from the folder country_files in which we find the php files translations.
The connections to databases, in a off-line option is also easy to adapt, changing only few lines of code, in the function submit_data() called when the user clicks the Run button.
The colourful charts are taken from Google Charts, so if you'd like to have them off-line or in other platforms you must find other solutions, like hosted charts platforms. The drawing of the charts are in the drawChartsResult() function. To remove the charts simply remove the correspondent divs whose ids are chart_div and graph_div in the file i.php
The back-end of the project is purely Javascript, though the middle-end and user-end uses a lot of php, mainly for the translated words got from the translation files.
An easy way to get a pure HTML/JS version of the project for a certain language might be simply surfing to the country version of the site http://autocosts.org/XX where XX is the 2-letters country code, and obtain the generated HTML/JS code, using a browser like Firefox, pressing CTRL-U.
Any question report an issue!