summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoseph.olstad2016-11-25 04:36:02 (GMT)
committerolstjos2016-11-25 04:36:02 (GMT)
commitdfbcbd15ca738697492069cccd0f95df2e47a967 (patch)
tree4b3ec63e74ccd4f809197d2188ef034e9081099e
parent38f300947f91677457ed47875f9038548b9bfd2b (diff)
Issue #1442994 by Sarenc, aloyr, dooug, joseph.olstad: YouTube embedding should not use a protocol to enable https secure connections7.x-2.10
-rw-r--r--js/lightbox_video.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/js/lightbox_video.js b/js/lightbox_video.js
index 3b63d92..887127c 100644
--- a/js/lightbox_video.js
+++ b/js/lightbox_video.js
@@ -86,7 +86,7 @@ Lightvideo = {
var results = pattern.exec(href);
if (results !== null) {
Lightbox.videoId = results[1];
- var href = "https://www.youtube.com/embed/"+Lightbox.videoId;
+ var href = "//www.youtube.com/embed/"+Lightbox.videoId;
var variables = 'fs=1';
if (Lightbox.flvFlashvars.length) {
variables = variables + '&' + Lightbox.flvFlashvars;
@@ -109,9 +109,9 @@ Lightvideo = {
// checkGoogleVideo()
checkGoogleVideo: function(href) {
var patterns = [
- 'http://video.google.[a-z]{2,4}/googleplayer.swf\\?docId=(-?\\d*)',
- 'http://video.google.[a-z]{2,4}/videoplay\\?docid=([^&]*)&',
- 'http://video.google.[a-z]{2,4}/videoplay\\?docid=(.*)'
+ '//video.google.[a-z]{2,4}/googleplayer.swf\\?docId=(-?\\d*)',
+ '//video.google.[a-z]{2,4}/videoplay\\?docid=([^&]*)&',
+ '//video.google.[a-z]{2,4}/videoplay\\?docid=(.*)'
];
for (var i = 0; i < patterns.length; i++) {
@@ -119,7 +119,7 @@ Lightvideo = {
var results = pattern.exec(href);
if (results !== null) {
Lightbox.videoId = results[1];
- var href = "http://video.google.com/googleplayer.swf?docId="+Lightbox.videoId+"&hl=en";
+ var href = "//video.google.com/googleplayer.swf?docId="+Lightbox.videoId+"&hl=en";
var variables = 'fs=true';
if (Lightbox.flvFlashvars.length) {
variables = variables + '&' + Lightbox.flvFlashvars;
@@ -145,7 +145,7 @@ Lightvideo = {
var results = pattern.exec(href);
if (results !== null) {
Lightbox.videoId = results[1];
- Lightvideo.createEmbed("http://www.metacafe.com/fplayer/"+Lightbox.videoId+"/.swf", "flvvideo", "#ffffff");
+ Lightvideo.createEmbed("//www.metacafe.com/fplayer/"+Lightbox.videoId+"/.swf", "flvvideo", "#ffffff");
return true;
}
}
@@ -166,7 +166,7 @@ Lightvideo = {
var results = pattern.exec(href);
if (results !== null) {
Lightbox.videoId = results[1];
- Lightvideo.createEmbed("http://www.spike.com/efp", "flvvideo", "#000", "flvbaseclip="+Lightbox.videoId+"&amp;");
+ Lightvideo.createEmbed("//www.spike.com/efp", "flvvideo", "#000", "flvbaseclip="+Lightbox.videoId+"&amp;");
return true;
}
}
@@ -187,7 +187,7 @@ Lightvideo = {
var results = pattern.exec(href);
if (results !== null) {
Lightbox.videoId = results[1];
- Lightvideo.createEmbed("http://lads.myspace.com/videos/vplayer.swf", "flvvideo", "#ffffff", "m="+Lightbox.videoId);
+ Lightvideo.createEmbed("//lads.myspace.com/videos/vplayer.swf", "flvvideo", "#ffffff", "m="+Lightbox.videoId);
return true;
}
}
@@ -207,7 +207,7 @@ Lightvideo = {
var results = pattern.exec(href);
if (results !== null) {
Lightbox.videoId = results[1];
- Lightvideo.createEmbed("http://www.livevideo.com/flvplayer/embed/"+Lightbox.videoId, "flvvideo", "#ffffff");
+ Lightvideo.createEmbed("//www.livevideo.com/flvplayer/embed/"+Lightbox.videoId, "flvvideo", "#ffffff");
return true;
}
}