Skip to content

Buggem/youtubejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

youtubejs 1.0

youtubejs is Pure Javascript that allows you to embed youtube videos.

Using Javascript

Run the command:
youtubejs.embed("[place your width here]", "[place your height here]", "[video id]", "[ssl or not! accepted values: string true if equals "true"]");
For [video id], the id is what is after http://www.youtube.com/watch?v=
Note: document.write("<yt-embed width="[place your width here]" height="[place your height here]" videoid="[video id]"></yt-embed>");
Will only work if youtubejs.update() is called after it.

Pure HTML

Add the element <yt-embed> It should look like:
<yt-embed width="[place your width here]" height="[place your height here]" videoid="[video id]" ssl="[ssl or not! accepted values: string true if equals "true"]"></yt-embed>

youtubejs 0.9-beta

youtubejs is Pure Javascript that allows you to embed youtube videos.

Using Javascript

Run the command:
youtubejs.embed("[place your width here]", "[place your height here]", "[video id]");
For [video id], the id is what is after http://www.youtube.com/watch?v=
Note: document.write("<yt-embed width="[place your width here]" height="[place your height here]" videoid="[video id]"></yt-embed>");
Will not work.

Pure HTML

Add the element <yt-embed> It should look like:
<yt-embed width="[place your width here]" height="[place your height here]" videoid="[video id]"></yt-embed>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published