Browse Source

Fixed google app widgets

master
Igor Zhukov 10 years ago
parent
commit
5e1be4a360
  1. 12
      app/js/directives.js

12
app/js/directives.js

@ -187,28 +187,28 @@ angular.module('myApp.directives', ['myApp.filters'])
case 'youtube': case 'youtube':
var videoID = embedData[1]; var videoID = embedData[1];
html = '<div class="im_message_media_embed im_message_video_embed"><' + embedTag + ' type="text/html" frameborder="0" ' + html = '<div class="im_message_media_embed im_message_video_embed"><' + embedTag + ' type="text/html" frameborder="0" ' +
'src="//www.youtube.com/embed/' + videoID + 'src="https://www.youtube.com/embed/' + videoID +
'?autoplay=0&amp;controls=2" webkitallowfullscreen mozallowfullscreen allowfullscreen></' + embedTag + '></div>'; '?autoplay=0&amp;controls=2" webkitallowfullscreen mozallowfullscreen allowfullscreen></' + embedTag + '></div>';
break; break;
case 'vimeo': case 'vimeo':
var videoID = embedData[1]; var videoID = embedData[1];
html = '<div class="im_message_media_embed im_message_video_embed"><' + embedTag + ' type="text/html" frameborder="0" ' + html = '<div class="im_message_media_embed im_message_video_embed"><' + embedTag + ' type="text/html" frameborder="0" ' +
'src="//player.vimeo.com/video/' + videoID + 'src="https://player.vimeo.com/video/' + videoID +
'?title=0&amp;byline=0&amp;portrait=0" webkitallowfullscreen mozallowfullscreen allowfullscreen></' + embedTag + '></div>'; '?title=0&amp;byline=0&amp;portrait=0" webkitallowfullscreen mozallowfullscreen allowfullscreen></' + embedTag + '></div>';
break; break;
case 'instagram': case 'instagram':
var instaID = embedData[1]; var instaID = embedData[1];
html = '<div class="im_message_media_embed im_message_insta_embed"><' + embedTag + ' type="text/html" frameborder="0" ' + html = '<div class="im_message_media_embed im_message_insta_embed"><' + embedTag + ' type="text/html" frameborder="0" ' +
'src="//instagram.com/p/' + instaID + 'src="https://instagram.com/p/' + instaID +
'/embed/"></' + embedTag + '></div>'; '/embed/"></' + embedTag + '></div>';
break; break;
case 'vine': case 'vine':
var vineID = embedData[1]; var vineID = embedData[1];
html = '<div class="im_message_media_embed im_message_vine_embed"><' + embedTag + ' type="text/html" frameborder="0" ' + html = '<div class="im_message_media_embed im_message_vine_embed"><' + embedTag + ' type="text/html" frameborder="0" ' +
'src="//vine.co/v/' + vineID + '/embed/simple"></' + embedTag + '></div>'; 'src="https://vine.co/v/' + vineID + '/embed/simple"></' + embedTag + '></div>';
break; break;
case 'twitter': case 'twitter':
@ -227,7 +227,7 @@ angular.module('myApp.directives', ['myApp.filters'])
twitterPendingWidgets = []; twitterPendingWidgets = [];
}); });
}) })
.attr('src', '//platform.twitter.com/widgets.js'); .attr('src', 'https://platform.twitter.com/widgets.js');
} }
else if (window.twttr) { else if (window.twttr) {
twttr.widgets.load(element[0]); twttr.widgets.load(element[0]);
@ -252,7 +252,7 @@ angular.module('myApp.directives', ['myApp.filters'])
facebookPendingWidgets = []; facebookPendingWidgets = [];
}); });
}) })
.attr('src', '//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=254098051407226&version=v2.0'); .attr('src', 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&appId=254098051407226&version=v2.0');
} }
else if (window.FB) { else if (window.FB) {

Loading…
Cancel
Save