Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mpf.listen("ui.share3.*", function(e) {
- var title = $('.mpf-in-player-video-title').text(),
- sharecontrolrow = $('.mpf-share3-controls-row'),
- twitterhref = decodeURIComponent(sharecontrolrow.find('.mpf-i-twitter').attr('href')).replace('text=Check this out','text='+title),
- emailhref = decodeURIComponent(sharecontrolrow.find('.mpf-i-email').attr('href')).replace('body=Check this out','body='+title+' ')
- sharecontrolrow.find('.mpf-i-twitter').attr('href',twitterhref);
- sharecontrolrow.find('.mpf-i-email').attr('href',emailhref);
- });
- mpf.metadata.listen("data",function(data) {
- var data = mpf.metadata.getData();
- mpf.overlays.ui.bottom.prepend($('<div class="mpf-in-player-video-title">'+data.title+'</div>'));
- });
- mpf.listen("overlays.focus", function(e) {
- $(mpf.overlays.ui.bottom).find('.mpf-in-player-video-title').show();
- });
- mpf.listen("overlays.blur", function(e) {
- $(mpf.overlays.ui.bottom).find('.mpf-in-player-video-title').hide();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement