Skip to content

Commit

Permalink
Fixed case typo: ytIframe( should be YtIframe(
Browse files Browse the repository at this point in the history
  • Loading branch information
mdix committed Feb 26, 2012
1 parent e678dbc commit 950ef16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -7,17 +7,17 @@ none
## Instruction
1. Include the script `iframe.min.js` to the bottom of your app: `<script type="text/javascript" src="iframe.min.js"></script>`

2. You can call ytIframe() by either passing a config object:
`ytIframe({
2. You can call YtIframe() by either passing a config object:
`YtIframe({
https: true,
width: 560,
height: 315,
videoHash: 'w4yGJEU85wY',
cookie: true
})`
or by passing the videoHash directly as a string (and thus, using the defaults for size etc.): `ytIframe('w4yGJEU85wY')` You may also pass a full youtube url and ytIframe extracts the hash.
or by passing the videoHash directly as a string (and thus, using the defaults for size etc.): `YtIframe('w4yGJEU85wY')` You may also pass a full youtube url and ytIframe extracts the hash.

3. ytIframe() returns a DOM object (iframe) which then can be appended to other elements, like: `document.body.appendChild(ytIframe(config));` or `document.getElementById('myVideoDiv').appendChild(ytIframe(config));`
3. YtIframe() returns a DOM object (IFRAME) which then can be appended to other elements, like: `document.body.appendChild(YtIframe(config));` or `document.getElementById('myVideoDiv').appendChild(YtIframe(config));`

See index.html for four examples, two by passing a string and two by passing a config object.

Expand Down

0 comments on commit 950ef16

Please sign in to comment.