Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
README.md
candy.css
candy.js
screenshot.png

README.md

Candy Timeago plugin

This plugin replaces the exact time/date with 'fuzzy timestamps' (e.g. 'less than a minute ago', '2 minutes ago', 'about an hour ago'). The timestamps update dynamically. All the heavy lifting is done by Ryan McGeary's excellent jQuery Timeago plugin (http://timeago.yarp.com/).

Usage

To enable Timeago include it's JavaScript code and CSS file (after the main Candy script and CSS):

<script type="text/javascript" src="candyshop/timeago/candy.js"></script>
<link rel="stylesheet" type="text/css" href="candyshop/timeago/candy.css" />

Then call its init() method after Candy has been initialized:

Candy.init('/http-bind/');
CandyShop.Timeago.init();
Candy.Core.connect();
Something went wrong with that request. Please try again.