Skip to content

A simple calculator just like the one you will find on your windows pc or apple mac but in the browser. Using AJAX for transport and app main logic in PHP. Only 2 files.

Notifications You must be signed in to change notification settings

gamorvi/AJAX-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

AJAX-Calculator

A simple calculator just like the one you will find on your windows pc or apple mac but in the browser. Using AJAX for transport and app main logic in PHP. Only 2 files.

This calculator mimics everything your pc or mac calculator will do.

  1. index.php holds the interface and controlls of the calculator (uses jquery AJAX to send click events to 2. ajax.php)

  2. ajax.php contains the logic that checks input to ensure all calculations are correct. Very basic logic but very powerful

Whip this code in 2 hours there are two features missing, if you want to get your hands a bit dirty you can complete them.

Current Features Not Present

a. Recognise decimal numbers and stop adding extra dots b. Recognise a negative number and and use it in a calculation

About

A simple calculator just like the one you will find on your windows pc or apple mac but in the browser. Using AJAX for transport and app main logic in PHP. Only 2 files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages