Skip to content

A sleek, modern tip calculator that helps you quickly calculate the total bill amount including tip. Built with vanilla JavaScript, this calculator features a clean UI, input validation, and keyboard support.

License

Notifications You must be signed in to change notification settings

koustavx08/tip-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 Cannot retrieve latest commit at this time.

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

๐Ÿ’ฐ Tip Calculator

A sleek, modern tip calculator that helps you quickly calculate the total bill amount including tip. Built with vanilla JavaScript, this calculator features a clean UI, input validation, and keyboard support.

โœจ Features

  • ๐Ÿงฎ Instant tip calculations
  • ๐Ÿ’ป Clean, responsive design
  • โŒจ๏ธ Keyboard support (Enter key)
  • โŒ Input validation with error messages
  • ๐Ÿ“ฑ Mobile-friendly interface
  • ๐ŸŽจ Modern UI with smooth animations
  • ๐Ÿ”ข Supports decimal values for precise calculations

๐Ÿ› ๏ธ Installation

  1. Clone the repository:
git clone https://github.com/koustavx08/tip-calculator.git
  1. Navigate to the project directory:
cd tip-calculator
  1. Open index.html in your preferred browser

That's it! No build process or dependencies required.

๐Ÿ’ป Usage

  1. Enter the bill amount in the first input field
  2. Enter the desired tip percentage in the second input field
  3. Click "Calculate" or press Enter
  4. The total amount (bill + tip) will be displayed below

๐Ÿ”ง Technical Details

File Structure

tip-calculator/
โ”‚
โ”œโ”€โ”€ index.html      # Main HTML file
โ”œโ”€โ”€ style.css       # Styles and animations
โ”œโ”€โ”€ script.js       # JavaScript logic
โ””โ”€โ”€ README.md       # Project documentation

Technologies Used

  • HTML5
  • CSS3
    • Flexbox for layout
    • CSS transitions for animations
    • Mobile-first responsive design
  • Vanilla JavaScript
    • DOM manipulation
    • Event handling
    • Input validation

โšก Performance

  • Lightweight: No external dependencies
  • Fast loading: Single page application
  • Optimized: Minimal DOM operations

๐ŸŽฏ Browser Support

  • โœ… Chrome (latest)
  • โœ… Firefox (latest)
  • โœ… Safari (latest)
  • โœ… Edge (latest)
  • โœ… Opera (latest)

๐Ÿค Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“ Future Enhancements

  • Add split bill functionality
  • Save calculation history
  • Dark mode support
  • Multiple currency support
  • Custom tip presets
  • PWA support for offline use

๐Ÿ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ‘ Acknowledgments

  • Design inspired by modern UI/UX principles
  • Icons provided by Font Awesome
  • Color scheme based on Material Design

๐Ÿ“ง Contact

Koustav Singh

Project Link


Made with โค๏ธ by Koustav Singh

About

A sleek, modern tip calculator that helps you quickly calculate the total bill amount including tip. Built with vanilla JavaScript, this calculator features a clean UI, input validation, and keyboard support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published