diff options
author | Sam Potts <sam@selz.com> | 2016-05-27 08:42:11 +0100 |
---|---|---|
committer | Sam Potts <sam@selz.com> | 2016-05-27 08:42:11 +0100 |
commit | cb318dd6add5e8955cb33659aa4da397713ebd3d (patch) | |
tree | 54ed5673cbd6a0a7f36b587e75cc145cff95855a | |
parent | 9ee0d00a352506ed602f43f1ed4e1269f8037bee (diff) | |
download | plyr-cb318dd6add5e8955cb33659aa4da397713ebd3d.tar.lz plyr-cb318dd6add5e8955cb33659aa4da397713ebd3d.tar.xz plyr-cb318dd6add5e8955cb33659aa4da397713ebd3d.zip |
Update readme.md
-rw-r--r-- | readme.md | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -197,7 +197,13 @@ Some touch browsers (particularly Mobile Safari on iOS) seem to have issues with #### Options -Options must be passed as an object to the `setup()` method as above or as JSON in `data-plyr` attribute on each of your target elements (e.g. data-plyr='{ title: "testing" }') - note the single quotes encapsulating the JSON. +Options must be passed as an object to the `setup()` method as above or as JSON in `data-plyr` attribute on each of your target elements: + +```html +<div class="plyr" data-plyr='{ title: "testing" }'> +``` + +Note the single quotes encapsulating the JSON and double quotes on the object keys. <table class="table" width="100%"> <thead> |