Skip to content

Commit

Permalink
fix(css): added ejs-embed class to all embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
ritz078 committed Nov 9, 2015
1 parent bbccf07 commit e9fdb88
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 24 deletions.
5 changes: 2 additions & 3 deletions dist/embed.min.js

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions src/embed.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/embed.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/modules/audio/basic.es6
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class BasicAudio extends Base {

template(match) {
let template =
`<div class="ejs-audio">
`<div class="ejs-audio ejs-embed">
<audio src="${match}" controls class="video-js ejs-video-js"></audio>
</div>`;
return template;
Expand Down
2 changes: 1 addition & 1 deletion src/js/modules/image/basic.es6
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Basic extends Base{

template(match){
let template =
`<div class="ejs-image">
`<div class="ejs-image ejs-embed">
<div class="ne-image-wrapper">
<img src="${match}"/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/js/modules/markdown.es6
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Markdown {
if (href.indexOf('&lt;/a') === -1) return href
if (href.match(/&gt;(.+)&lt;\/a/gi)) {
if (!title) title=''
return `<div class="ejs-image">
return `<div class="ejs-image ejs-embed">
<div class="ne-image-wrapper">
<img src="${RegExp.$1}" title="${title}" alt="${text}"/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/js/modules/video/basic.es6
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class BasicVideo extends Base {

template(match) {
let template =
`<div class="ejs-video">
`<div class="ejs-video ejs-embed">
<div class="ejs-video-player">
<div class="ejs-player">
<video src="${match}" class="ejs-video-js video-js" controls></video>
Expand Down
2 changes: 1 addition & 1 deletion src/js/modules/video/dailymotion.es6
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Dailymotion extends Base{
const dimensions = utils.dimensions(this.options);
const id = match.split('/')[2];
const template =
`<div class="ejs-video">
`<div class="ejs-video ejs-embed">
<iframe src="http://www.dailymotion.com/embed/video/${id}" height="${dimensions.height}" width="${dimensions.width}"></iframe>
</div>`
return template;
Expand Down
4 changes: 2 additions & 2 deletions src/js/modules/video/helper.es6
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var helper = {
template: (url, options) => {
let dimensions = utils.dimensions(options);
let template =
`<div class="ejs-video-player">
`<div class="ejs-video-player ejs-embed">
<iframe src="${url}" frameBorder="0" width="${dimensions.width}" height="${dimensions.height}"></iframe>
</div>`;
return template;
Expand All @@ -42,7 +42,7 @@ var helper = {
*/
detailsTemplate: (data, embedUrl) => {
var template =
`<div class="ejs-video">
`<div class="ejs-video ejs-embed">
<div class="ejs-video-preview">
<div class="ejs-video-thumb" data-ejs-url="${embedUrl}">
<div class="ejs-thumb" style="background-image:url(${data.thumbnail})"></div>
Expand Down
2 changes: 1 addition & 1 deletion src/js/modules/video/liveleak.es6
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class LiveLeak extends Base{
template(match){
const dimensions = utils.dimensions(this.options);
const template =
`<div class="ejs-video">
`<div class="ejs-video ejs-embed">
<iframe src="http://www.liveleak.com/e/${match.split('=')[1]}" height="${dimensions.height}" width="${dimensions.width}"></iframe>
</div>`;
return template;
Expand Down
2 changes: 1 addition & 1 deletion src/js/modules/video/ted.es6
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Ted extends Base{
template(id){
const dimensions = utils.dimensions(this.options);
const template =
`<div class="ejs-embed">
`<div class="ejs-embed ejs-ted">
<iframe src="http://embed.ted.com/talks/${id.split('/')[2]}.html" height="${dimensions.height}" width="${dimensions.width}"></iframe>
</div>`;
return template;
Expand Down
2 changes: 1 addition & 1 deletion src/js/modules/video/ustream.es6
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Ustream extends Base{
id.splice(1, 0, 'embed');
const dimensions = utils.dimensions(this.options);
const template =
`<div class="ejs-embed">
`<div class="ejs-embed ejs-ustream">
<iframe src="//www.${id.join('/')}" height="${dimensions.height}" width="${dimensions.width}"></iframe>',
'</div>'`;
return template;
Expand Down

0 comments on commit e9fdb88

Please sign in to comment.