Skip to content

Quickly make calculations involving dates and time intervals in a < 10kb webpage

Notifications You must be signed in to change notification settings

sunmockyang/date-calculator

Repository files navigation

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

About

Quickly make calculations involving dates and time intervals in a < 10kb webpage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published