Skip to content

v1.0

Latest
Compare
Choose a tag to compare
@Buggem Buggem released this 14 Aug 00:33
· 1 commit to main since this release
07f5768

First version of youtubejs that isn't beta!!

youtubejs 1.0-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]", "[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>