README.md in googledocviewer-0.0.1 vs README.md in googledocviewer-0.0.2
- old
+ new
@@ -28,17 +28,27 @@
## Usage
Set some class name or id to the anchor tag for all URLs to files that you want to be displayed using the Google Docs Viewer. E.g. "embed"
+
+```html
<a href="url/to/file.pdf" class="embed">Download file</a>
+```
or
+```html
<a href="url/to/file.pdf" id="embedURL">Download file</a>
+```
Initialize gDocsViewer and set it to process the URL with id or all URLs with the class name set in the previous step.
+
+```html
$('a.embed').gdocsViewer();
+```
or
+```html
$('#embedURL').gdocsViewer();
+```
## Contributing
1. Fork it ( https://github.com/scy0846/googledocviewer/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)