Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Rogerio committed Nov 26, 2014
1 parent 2cdf5e9 commit 712f84d
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,20 @@ Display Instagram user feed with PHP, jQuery and Handlebars Template.

##Usage

1. Paste right before your page's closing `</body>` tag
1 - Paste right before your page's closing `</body>` tag
```html
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.min.js"></script>
<script type="text/javascript" src="src/instagram.js"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<![endif]-->
<!--[if (gte IE 9) | (!IE)]><!-->
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!--<![endif]-->
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/2.0.0/handlebars.min.js"></script>
<script type="text/javascript" src="/path/to/instagram.min.js"></script>
```

2. From within a script tag or a JS file
```javascript
2 - From within a script tag or a JS file
```javascript
Instaphotos.init({
template: $('#instagram-template').html(), // The ID of your template
container: $('#container'), // domNode to attach to
Expand All @@ -24,7 +29,7 @@ Display Instagram user feed with PHP, jQuery and Handlebars Template.

##Customize Template

1. To customize the template open the index.html file and look for the following block of code:
1 - To customize the template open the index.html file and look for the following block of code:

```javascript
<script id="instagram-template" type="text/x-handlebars-template">
Expand All @@ -46,6 +51,11 @@ Change the HTML as it deems necessary.

You can obtain a accessToken here [http://www.pinceladasdaweb.com.br/instagram/access-token/](http://www.pinceladasdaweb.com.br/instagram/access-token/)

##License
## Compatibility

![IE](https://cloud.githubusercontent.com/assets/398893/3528325/20373e76-078e-11e4-8e3a-1cb86cf506f0.png) | ![Chrome](https://cloud.githubusercontent.com/assets/398893/3528328/23bc7bc4-078e-11e4-8752-ba2809bf5cce.png) | ![Firefox](https://cloud.githubusercontent.com/assets/398893/3528329/26283ab0-078e-11e4-84d4-db2cf1009953.png) | ![Opera](https://cloud.githubusercontent.com/assets/398893/3528330/27ec9fa8-078e-11e4-95cb-709fd11dac16.png) | ![Safari](https://cloud.githubusercontent.com/assets/398893/3528331/29df8618-078e-11e4-8e3e-ed8ac738693f.png)
--- | --- | --- | --- | --- |
IE 7+ ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |

[WTFPL](http://www.wtfpl.net/)
## License
Instaphotos is licensed under the MIT License.

0 comments on commit 712f84d

Please sign in to comment.