Additional docs on time tag support (HTML5)

This commit is contained in:
Ryan McGeary 2009-10-25 20:41:41 -04:00
parent ee869e5634
commit db74d8837b

View file

@ -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>
&lt;time class=&quot;<em>timeago</em>&quot; datetime=&quot;<em>2008-07-17T09:24:17Z</em>&quot;&gt;July 17, 2008&lt;/time&gt;</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: