Quickly make calculations involving dates and time intervals
JavaScript HTML CSS Ruby Makefile
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
compiler
js
.gitignore
Makefile
README.md
app.js
date-calculator.html
index.html
package.json
style.css
web.config

README.md

date-calculator

A minuscule tool for doing date calculations with basic natural language support. First add in your starting date, and then either add or subtract time, or add a second date. We'll do the rest, and give you a range of useful time formats. Created for fun, modified for the 10k apart contest.

Check out the live demo here

The page currently sits at 3.7KB after minification + gzipping

What we did to squeeze our website into as few kibbles as possible:

  • HTML/CSS/JavaScript minification
  • As much JavaScript encapsulation as possible to get maximum minification.
  • Minimal class/variable names
  • Gzipping

Installation

  • Run npm install to install dependencies
  • Run node app.js to run the server

Compilation:

Run make, which will run our ruby script to generate index.html (minified), and index.html.gz (minified + gzipped)

Ruby gems used:

Created by: Sunmock (Sunny) Yang and Russell (Rusty) Baylis