8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0477dbb + fc0e272 commit 389c1afCopy full SHA for 389c1af
README.markdown
@@ -13,14 +13,14 @@ First, load jQuery and the plugin:
13
<script src="jquery.timeago.js" type="text/javascript"></script>
14
```
15
16
-Now, let's attach it to your timestamps on DOM ready:
+Now, let's attach it to your timestamps on DOM ready - put this in the head section:
17
18
```html
19
-<pre>
+<script type="text/javascript">
20
jQuery(document).ready(function() {
21
- jQuery("abbr.timeago").timeago();
+ $("abbr.timeago").timeago();
22
});
23
-</pre>
+</script>
24
25
26
This will turn all abbr elements with a class of timeago and an ISO 8601 timestamp in the title:
0 commit comments