mirror of
https://github.com/scratchfoundation/jquery-timeago.git
synced 2025-02-17 00:20:32 -05:00
Additional docs on time tag support (HTML5)
This commit is contained in:
parent
ee869e5634
commit
db74d8837b
1 changed files with 14 additions and 0 deletions
14
index.html
14
index.html
|
@ -146,6 +146,20 @@ jQuery.timeago.settings.allowFuture = true;</pre>
|
|||
Timeago was conceived <abbr class="timeago" title="2008-07-17T02:30:00-0500">on July 17, 2008</abbr>. <span class="help">(Yup, that's powered by timeago too)</span>
|
||||
</p>
|
||||
|
||||
<h3>What else?</h3>
|
||||
<p class="example">
|
||||
HTML5 has a new <tt>time</tt> tag and timeago supports it too.
|
||||
</p>
|
||||
<pre>
|
||||
<time class="<em>timeago</em>" datetime="<em>2008-07-17T09:24:17Z</em>">July 17, 2008</time></pre>
|
||||
<p class="how">
|
||||
Attach timeago like so:
|
||||
</p>
|
||||
<pre>
|
||||
jQuery(document).ready(function() {
|
||||
jQuery('time.timeago').timeago();
|
||||
});</pre>
|
||||
|
||||
<h3>Huh?</h3>
|
||||
<p class="last">
|
||||
Need a Rails helper to make those fancy microformat <tt>abbr</tt> tags? Fine, here ya go:
|
||||
|
|
Loading…
Reference in a new issue