8000 Merge pull request #55 from digitalex/patch-1 · rmm5t/jquery-timeago@389c1af · GitHub
[go: up one dir, main page]

Skip to content

Commit 389c1af

Browse files
committed
Merge pull request #55 from digitalex/patch-1
Updated the README to show correct markup for the activation script.
2 parents 0477dbb + fc0e272 commit 389c1af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ First, load jQuery and the plugin:
1313
<script src="jquery.timeago.js" type="text/javascript"></script>
1414
```
1515

16-
Now, let's attach it to your timestamps on DOM ready:
16+
Now, let's attach it to your timestamps on DOM ready - put this in the head section:
1717

1818
```html
19-
<pre>
19+
<script type="text/javascript">
2020
jQuery(document).ready(function() {
21-
jQuery("abbr.timeago").timeago();
21+
$("abbr.timeago").timeago();
2222
});
23-
</pre>
23+
</script>
2424
```
2525

2626
This will turn all abbr elements with a class of timeago and an ISO 8601 timestamp in the title:

0 commit comments

Comments
 (0)
0