https://github.com/schamane/time-ago
YUI3 time ago widget
https://github.com/schamane/time-ago
Last synced: 2 months ago
JSON representation
YUI3 time ago widget
- Host: GitHub
- URL: https://github.com/schamane/time-ago
- Owner: schamane
- License: bsd-3-clause
- Created: 2010-06-14T19:05:20.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2010-06-16T12:01:17.000Z (almost 15 years ago)
- Last Synced: 2025-03-01T03:33:12.541Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# YUI3 time ago widget
widget that will show some time ago in human readable format made as YUI3 module.
Based on [jQuery widget](http://github.com/rmm5t/jquery-timeago).
## USAGE
HTML5 code like that:
Time:
Time:
And than
YUI().use('base', 'time-ago', function(Y) {
var timeAgo = new Y.TimeAgo({
contentBox: "#content items time"
});
timeAgo.startUpdates();
});Result something like that:
Time: 20 minutes
Time: 1 days## TODO
* Better inline documentation
* Internationalization of the messages.
* Cleanups## LICENSING
TimeAgo widget is released under the [BSD License](http://creativecommons.org/licenses/BSD/).Copyright (c) 2010, Nazar Kulyk