merge
This commit is contained in:
commit
046a724272
4209 changed files with 1186656 additions and 0 deletions
12
www/analytics/plugins/CoreHome/javascripts/promo.js
Normal file
12
www/analytics/plugins/CoreHome/javascripts/promo.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
$(function () {
|
||||
$('#piwik-promo-thumbnail').click(function () {
|
||||
var promoEmbed = $('#piwik-promo-embed'),
|
||||
widgetWidth = $(this).closest('.widgetContent').width(),
|
||||
height = (266 * widgetWidth) / 421,
|
||||
embedHtml = '<iframe width="100%" height="' + height + '" src="http://www.youtube.com/embed/OslfF_EH81g?autoplay=1&vq=hd720&wmode=transparent" frameborder="0" wmode="Opaque"></iframe>';
|
||||
|
||||
$(this).hide();
|
||||
promoEmbed.height(height).html(embedHtml);
|
||||
promoEmbed.show();
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue