Skip to content

Commit

Permalink
Add how to use html code on README
Browse files Browse the repository at this point in the history
  • Loading branch information
sadiqmmm committed May 25, 2016
1 parent 0229732 commit 57f059c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,22 @@ Now you need to edit your `app/assets/stylesheets/application.css` file and add

## Usage

TODO: To load and intialize the player
To load and intialize the player.

Now you need to add this to your `app/assets/javascripts/application.js` file and add the following line:
You need to add this to your `app/assets/javascripts/application.js` file and add the following line:
``` javascript
$(document).ready(function(){
plyr.setup();
});
```

Add html code to your any view file `app/views/blogs/index.erb` file and add the following code:
``` html
<div class="plyr">
<div data-video-id="bTqVqk7FSmY" data-type="youtube"></div>
</div>
```

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
Expand Down

0 comments on commit 57f059c

Please sign in to comment.