Comparing version
$(document).on('click', '.ez-player-placeholder', function (event) { | ||
if (event.target.nodeName === 'A') return; | ||
// Click on title => follow link | ||
if ($(event.target).hasClass('ez-player-title')) return; | ||
event.preventDefault(); | ||
var $el = $(this); | ||
@@ -5,0 +8,0 @@ |
@@ -0,1 +1,8 @@ | ||
2.2.0 / 2017-05-05 | ||
------------------ | ||
- Improve player placeholder layout. All area should be | ||
clickable without JS. | ||
2.1.0 / 2017-01-27 | ||
@@ -2,0 +9,0 @@ ------------------ |
@@ -53,3 +53,3 @@ 'use strict'; | ||
<div class="ez-player-container" style="padding-bottom: <%= _.round(100 / player.media.width * player.media.height, 4) %>%;"> | ||
<div class="ez-player-placeholder"> | ||
<a class="ez-player-placeholder" target="_blank" href="<%- self.src %>" rel="nofollow"> | ||
<div class="ez-player-picture" style="background-image: url('<%- thumbnail.href %>');"></div> | ||
@@ -59,3 +59,3 @@ <% if (self.meta.title) { %> | ||
<div class="ez-player-title"> | ||
<a target="_blank" href="<%- self.src %>" rel="nofollow"><%- self.meta.title %></a> | ||
<%- self.meta.title %> | ||
</div> | ||
@@ -69,4 +69,4 @@ </div> | ||
<% } %> | ||
</div> | ||
</a> | ||
</div> | ||
</div>`; |
{ | ||
"name": "embedza", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Create HTML snippets/embeds from URLs using info from oEmbed, Open Graph, meta tags.", | ||
@@ -37,3 +37,4 @@ "keywords": [ | ||
"proclaim": "^3.4.4", | ||
"pug": "^2.0.0-beta6" | ||
"pug": "^2.0.0-beta6", | ||
"supertest": "^3.0.0" | ||
}, | ||
@@ -47,6 +48,4 @@ "scripts": { | ||
"start": "node support/server", | ||
"build-demo": "rm -rf ./demo/embedza.js && browserify -r ./ -s embedza -o ./demo/embedza.js", | ||
"gh-pages": "git subtree split --prefix demo -b gh-pages && git push -f origin gh-pages:gh-pages && git branch -D gh-pages", | ||
"heroku-postbuild": "npm install express pug" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
1910
0.05%78033
-0.02%9
12.5%