Skip to content

Commit

Permalink
Idevices Adivina, Rosco, QuExt y Selecciona: Comprobación url imagen …
Browse files Browse the repository at this point in the history
…valida en iDevices experimentales
  • Loading branch information
mnarvaezm committed Jun 15, 2021
1 parent 1f5bdb2 commit 1c25ba8
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1791,7 +1791,7 @@ var $exeDevice = {
},
extractURLGD: function (urlmedia) {
var sUrl=urlmedia;
if(urlmedia.toLowerCase().indexOf("https://drive.google.com")==0 && urlmedia.toLowerCase().indexOf("sharing")!=-1){
if(typeof urlmedia!="undefined" && urlmedia.length>0 && urlmedia.toLowerCase().indexOf("https://drive.google.com")==0 && urlmedia.toLowerCase().indexOf("sharing")!=-1){
sUrl = sUrl.replace(/https:\/\/drive\.google\.com\/file\/d\/(.*?)\/.*?\?usp=sharing/g, "https://docs.google.com/uc?export=open&id=$1");
}
return sUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ var $eXeAdivina = {
},
extractURLGD: function (urlmedia) {
var sUrl = urlmedia;
if (urlmedia.toLowerCase().indexOf("https://drive.google.com") == 0 && urlmedia.toLowerCase().indexOf("sharing") != -1) {
if(typeof urlmedia != "undefined" && urlmedia.length>0 && urlmedia.toLowerCase().indexOf("https://drive.google.com")==0 && urlmedia.toLowerCase().indexOf("sharing")!=-1){
sUrl = sUrl.replace(/https:\/\/drive\.google\.com\/file\/d\/(.*?)\/.*?\?usp=sharing/g, "https://docs.google.com/uc?export=open&id=$1");
}
return sUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ var $exeDevice = {
qt.author = '';
qt.alt = '';
} else if (qt.type == 3) {
qt.eText = escape(qt.eText);
qt.eText = qt.eText;
}
}
var scorm = $exeAuthoring.iDevice.gamification.scorm.getValues();
Expand Down Expand Up @@ -2097,7 +2097,7 @@ var $exeDevice = {
},
extractURLGD: function (urlmedia) {
var sUrl = urlmedia;
if (urlmedia.toLowerCase().indexOf("https://drive.google.com") == 0 && urlmedia.toLowerCase().indexOf("sharing") != -1) {
if (typeof urlmedia != "undefined" && urlmedia.length>0 && urlmedia.toLowerCase().indexOf("https://drive.google.com") == 0 && urlmedia.toLowerCase().indexOf("sharing") != -1) {
sUrl = sUrl.replace(/https:\/\/drive\.google\.com\/file\/d\/(.*?)\/.*?\?usp=sharing/g, "https://docs.google.com/uc?export=open&id=$1");
}
return sUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,7 @@ var $eXeQuExt = {
},
extractURLGD: function (urlmedia) {
var sUrl = urlmedia;
if (urlmedia.toLowerCase().indexOf("https://drive.google.com") == 0 && urlmedia.toLowerCase().indexOf("sharing") != -1) {
if (typeof urlmedia != "undefined" && urlmedia.length>0 && urlmedia.toLowerCase().indexOf("https://drive.google.com") == 0 && urlmedia.toLowerCase().indexOf("sharing") != -1) {
sUrl = sUrl.replace(/https:\/\/drive\.google\.com\/file\/d\/(.*?)\/.*?\?usp=sharing/g, "https://docs.google.com/uc?export=open&id=$1");
}
return sUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -972,10 +972,10 @@ var $exeDevice = {
return false;
},
extractURLGD: function (urlmedia) {
var sUrl = urlmedia;
if (urlmedia.toLowerCase().indexOf("https://drive.google.com") == 0 && urlmedia.toLowerCase().indexOf("sharing") != -1) {
sUrl = sUrl.replace(/https:\/\/drive\.google\.com\/file\/d\/(.*?)\/.*?\?usp=sharing/g, "https://docs.google.com/uc?export=open&id=$1");
}
return sUrl;
}
var sUrl = urlmedia;
if(typeof urlmedia != "undefined" && urlmedia.length>0 && urlmedia.toLowerCase().indexOf("https://drive.google.com")==0 && urlmedia.toLowerCase().indexOf("sharing")!=-1){
sUrl = sUrl.replace(/https:\/\/drive\.google\.com\/file\/d\/(.*?)\/.*?\?usp=sharing/g, "https://docs.google.com/uc?export=open&id=$1");
}
return sUrl;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1370,12 +1370,12 @@ var $eXeRosco = {
return sp;
},
extractURLGD: function (urlmedia) {
var sUrl = urlmedia;
if (urlmedia.toLowerCase().indexOf("https://drive.google.com") == 0 && urlmedia.toLowerCase().indexOf("sharing") != -1) {
sUrl = sUrl.replace(/https:\/\/drive\.google\.com\/file\/d\/(.*?)\/.*?\?usp=sharing/g, "https://docs.google.com/uc?export=open&id=$1");
}
return sUrl;
}
var sUrl = urlmedia;
if(typeof urlmedia != "undefined" && urlmedia.length>0 && urlmedia.toLowerCase().indexOf("https://drive.google.com")==0 && urlmedia.toLowerCase().indexOf("sharing")!=-1){
sUrl = sUrl.replace(/https:\/\/drive\.google\.com\/file\/d\/(.*?)\/.*?\?usp=sharing/g, "https://docs.google.com/uc?export=open&id=$1");
}
return sUrl;
}
}
$(function () {
$eXeRosco.init();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1755,7 +1755,7 @@ var $exeDevice = {
qt.author = '';
qt.alt = '';
} else if (qt.type == 3) {
qt.eText = escape(qt.eText);
qt.eText = qt.eText;
}
}
var scorm = $exeAuthoring.iDevice.gamification.scorm.getValues();
Expand Down Expand Up @@ -2504,8 +2504,8 @@ var $exeDevice = {
}
},
extractURLGD: function (urlmedia) {
var sUrl=urlmedia;
if(urlmedia.toLowerCase().indexOf("https://drive.google.com")==0 && urlmedia.toLowerCase().indexOf("sharing")!=-1){
var sUrl = urlmedia;
if (typeof urlmedia != "undefined" && urlmedia.length>0 && urlmedia.toLowerCase().indexOf("https://drive.google.com") == 0 && urlmedia.toLowerCase().indexOf("sharing") != -1) {
sUrl = sUrl.replace(/https:\/\/drive\.google\.com\/file\/d\/(.*?)\/.*?\?usp=sharing/g, "https://docs.google.com/uc?export=open&id=$1");
}
return sUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ var $eXeSelecciona = {

extractURLGD: function (urlmedia) {
var sUrl = urlmedia;
if (urlmedia.toLowerCase().indexOf("https://drive.google.com") == 0 && urlmedia.toLowerCase().indexOf("sharing") != -1) {
if (typeof urlmedia != "undefined" && urlmedia.length>0 && urlmedia.toLowerCase().indexOf("https://drive.google.com") == 0 && urlmedia.toLowerCase().indexOf("sharing") != -1) {
sUrl = sUrl.replace(/https:\/\/drive\.google\.com\/file\/d\/(.*?)\/.*?\?usp=sharing/g, "https://docs.google.com/uc?export=open&id=$1");
}
return sUrl;
Expand Down

0 comments on commit 1c25ba8

Please sign in to comment.