Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 1.55 KB

README.md

File metadata and controls

60 lines (43 loc) · 1.55 KB

ChemBalance: A Dynamic Chemical Equation Balancer

This repository contains the source code for ChemBalance, a web application built with vanilla JavaScript (TypeScript) that allows users to dynamically balance chemical equations in a fun calculator-like environment.

you can play with it here.

Help & Shortcuts

Shortcut Description
⇧ + 0 Clear all elements (AC)
⇧ + 1 Compute coefficients to balance the equation
⇧ + 2 Copy the balanced equation to clipboard
↑ or ↓ Select the upper/lower element

Some Keys function differently wheter the focus is on table or on console.

key Table Console
Enter Add selected element balance the equation
← or → Select previous/next element Move cursor to left/right

Chemical Equation Formatting:

  1. Formulae and elements are enclosed within brackets: [].
[H O*2]
  1. Multiplication is denoted using *.
[Cl*2]
[Al [O H]*3]
  1. Charges are indicated using ^.
[O H]^-1
  1. Equations are constructed using + (reactants) and (products).
[2*Al [S O*3]*3] + [Na O H] ⇒ [Na*2 S O*3] + [Al [O H]*3]
  1. Free electrons are represented using -.
[H*2 O] + [Mn O*4]^-1 -1 ⇒[Mn O*2] + [O H]^-1
  1. Setting a default coefficient on a formula:
[H*2] + 1*[O*2] ⇒ [H*2 O]