From 5e1be4a360bc3f26f28fe730d30aa256ea5189c4 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 13 Nov 2014 13:56:49 +0300 Subject: [PATCH] Fixed google app widgets --- app/js/directives.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/js/directives.js b/app/js/directives.js index 357b9f59..7305412f 100644 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -187,28 +187,28 @@ angular.module('myApp.directives', ['myApp.filters']) case 'youtube': var videoID = embedData[1]; html = '
<' + embedTag + ' type="text/html" frameborder="0" ' + - 'src="//www.youtube.com/embed/' + videoID + + 'src="https://www.youtube.com/embed/' + videoID + '?autoplay=0&controls=2" webkitallowfullscreen mozallowfullscreen allowfullscreen>
'; break; case 'vimeo': var videoID = embedData[1]; html = '
<' + embedTag + ' type="text/html" frameborder="0" ' + - 'src="//player.vimeo.com/video/' + videoID + + 'src="https://player.vimeo.com/video/' + videoID + '?title=0&byline=0&portrait=0" webkitallowfullscreen mozallowfullscreen allowfullscreen>
'; break; case 'instagram': var instaID = embedData[1]; html = '
<' + embedTag + ' type="text/html" frameborder="0" ' + - 'src="//instagram.com/p/' + instaID + + 'src="https://instagram.com/p/' + instaID + '/embed/">
'; break; case 'vine': var vineID = embedData[1]; html = '
<' + embedTag + ' type="text/html" frameborder="0" ' + - 'src="//vine.co/v/' + vineID + '/embed/simple">
'; + 'src="https://vine.co/v/' + vineID + '/embed/simple">'; break; case 'twitter': @@ -227,7 +227,7 @@ angular.module('myApp.directives', ['myApp.filters']) twitterPendingWidgets = []; }); }) - .attr('src', '//platform.twitter.com/widgets.js'); + .attr('src', 'https://platform.twitter.com/widgets.js'); } else if (window.twttr) { twttr.widgets.load(element[0]); @@ -252,7 +252,7 @@ angular.module('myApp.directives', ['myApp.filters']) 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) {