Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 491 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 491 Bytes

Momentary

A JavaScipt plugin for updating the time stamp in your webpages.

Example:
  • 1 minute ago
  • 5 days ago
Usage:

Include the momentary.js file in the <body> section of your page.
Use: <span class="relativetime" title="2015-09-17 18:25:08"></span> in your HTML code. Add the time stamp in the title attribute via your scriping language.

eg: <span class="relativetime" title="{{ $post->created_at }}"></span>

output:

1 minute ago