Skip to content

foss-dev/embed.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Embed.JS

Embed.JS simple and dynamic embed helper.

Embed.JS currently supports these platforms:

youtube
facebook
instagram
soundcloud
vimeo
dailymotion
metacafe

Usage

Initialize Embed class and call run method

Params:

- target: Embed content shown will be in this area
- source: name for platforms:
	- youtube
	- dailymotion
	- facebook
	- instagram
	- soundcloud
	- vimeo
	- metacafe
- width: Optional: (default: 500)
- height: Optional (default: 315)

For Example

var embed = new Embed({
	id: 'wZZ7oFKsKzY',
	target: '.video_container',
	source: 'youtube',
	width: 600,
	height: 600
})

embed.run()