Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mpf.listen("ui.share3.*", function(e) {
  2.             var title = $('.mpf-in-player-video-title').text(),
  3.                 sharecontrolrow = $('.mpf-share3-controls-row'),
  4.                 twitterhref = decodeURIComponent(sharecontrolrow.find('.mpf-i-twitter').attr('href')).replace('text=Check this out','text='+title),
  5.                 emailhref = decodeURIComponent(sharecontrolrow.find('.mpf-i-email').attr('href')).replace('body=Check this out','body='+title+' ')
  6.             sharecontrolrow.find('.mpf-i-twitter').attr('href',twitterhref);
  7.             sharecontrolrow.find('.mpf-i-email').attr('href',emailhref);
  8.         });
  9.  
  10.         mpf.metadata.listen("data",function(data) {
  11.             var data = mpf.metadata.getData();
  12.             mpf.overlays.ui.bottom.prepend($('<div class="mpf-in-player-video-title">'+data.title+'</div>'));
  13.         });
  14.  
  15.         mpf.listen("overlays.focus", function(e) {
  16.             $(mpf.overlays.ui.bottom).find('.mpf-in-player-video-title').show();
  17.         });
  18.  
  19.         mpf.listen("overlays.blur", function(e) {
  20.             $(mpf.overlays.ui.bottom).find('.mpf-in-player-video-title').hide();
  21.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement