Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

ThinkCalc

Description

ThinkCalc is a stylish calculator web application inspired by the iconic IBM/Lenovo ThinkPad design. It features a sleek black design with a distinctive red trackpoint (the small red dot found on ThinkPad keyboards), creating a nostalgic yet functional calculator experience.

Features

  • Basic arithmetic operations (addition, subtraction, multiplication, division)
  • Percentage calculations
  • Clear and All Clear functions
  • Positive/negative number toggle
  • Decimal point support
  • ThinkPad-inspired design with the iconic red trackpoint
  • Responsive layout for different screen sizes

Files

  • index.html - The main HTML structure of the calculator
  • calculator.css - Styling for the calculator and ThinkPad information section
  • calculator.js - JavaScript functionality for the calculator operations

Setup Instructions

  1. Clone or download the repository
  2. Open index.html in your web browser
  3. Start calculating with ThinkPad style!

Calculator Usage

  • Use number buttons (0-9) to input values
  • Press operation buttons (+, -, X, ÷) to perform calculations
  • Use "=" to compute the result
  • "AC" button clears all entries
  • "C" button removes the last digit entered
  • "+/-" toggles between positive and negative numbers
  • "%" calculates percentages
  • "." adds a decimal point

Technical Details

The calculator implements the following features:

  • Event listeners for button interactions
  • Operation logic for basic arithmetic
  • Sequential calculation support (continuing operations with previous results)
  • Display formatting for current and previous operations
  • ThinkPad styling with CSS

ThinkPad Inspiration

ThinkCalc draws inspiration from the IBM ThinkPad, the iconic laptop series known for its reliability and the distinctive red TrackPoint. First launched in 1992 by IBM and later acquired by Lenovo in 2005, ThinkPad revolutionized portable computing with its black, boxy design and exceptional keyboard.

Browser Compatibility

ThinkCalc works on all modern browsers including:

  • Google Chrome
  • Mozilla Firefox
  • Safari
  • Microsoft Edge

License

This project is open-source and available for personal and educational use.

Future Improvements

  • Memory functions (M+, M-, MR)
  • Scientific calculator mode
  • History of calculations
  • Keyboard support for input
  • ThinkPad keyboard click sounds when pressing buttons

Community Recognition

https://www.reddit.com/r/thinkpad/comments/1j9pdsy/was_learning_js_and_thought_why_not_build/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages