Code a jQuery plugin to add a “human touch” to data.
$100-500 USD
已完成
已发布将近 12 年前
$100-500 USD
货到付款
Django has this nice set of template tags called [humanize][1]. We need something similar in JS. One could simply look at the python code and re-write in JS, find one that someone else wrote and tweak. For the latter, We'd like it to be a jQuery plugin compatible with [login to view URL] loading, or a stand-alone library in its own name space (e.g., Humanize). For instance, I'd like to be able to write $('17 Feb 2007 16:25:3').natrualtime() and get '4 minutes ago' as the result.
more details bellow
## Deliverables
In addition to the functions in the humanize library, I'd like the JS version to include these additional function from the [standard Django template tags][2]:
- filesizeformat
- linebreaks
- linebreaksbr
- pluralize
- truncatechars
- truncatewords
For filesizeformat, I came across [this snippet][3]. But I'd like these all packaged in one place without me spending too much time search for them.