diff --git a/resources/library/interactivities/associer_images.wgt/locales/fr/js/script.js b/resources/library/interactivities/associer_images.wgt/locales/fr/js/script.js index fa003d5e..34f3f327 100644 --- a/resources/library/interactivities/associer_images.wgt/locales/fr/js/script.js +++ b/resources/library/interactivities/associer_images.wgt/locales/fr/js/script.js @@ -254,7 +254,7 @@ function exportData(){ $(this).find(".img_block").each(function(){ var img_obj = new Object(); img_obj.value = $(this).find("input").val(); - img_obj.link = $(this).find("img").attr("src").replace("../../",""); + img_obj.link = $(this).find("img").attr("src"); img_obj.ht = $(this).find("img").height(); img_obj.wd = $(this).find("img").width(); cont_obj.imgs.push(img_obj); @@ -272,7 +272,7 @@ function exportData(){ var tmp_cont = $(this).find(".imgs_answers").find(".img_block"); var img_obj = new Object(); img_obj.value = tmp_cont.find("input").val(); - img_obj.link = tmp_cont.find("img").attr("src").replace("../../",""); + img_obj.link = tmp_cont.find("img").attr("src"); img_obj.ht = tmp_cont.find("img").height(); img_obj.wd = tmp_cont.find("img").width(); img_obj.cont = "answers"; @@ -281,7 +281,7 @@ function exportData(){ $(this).find(".imgs_cont .img_block").each(function(){ var img_obj = new Object(); img_obj.value = $(this).find("input").val(); - img_obj.link = $(this).find("img").attr("src").replace("../../",""); + img_obj.link = $(this).find("img").attr("src"); img_obj.ht = $(this).find("img").height(); img_obj.wd = $(this).find("img").width(); img_obj.cont = "cont"; @@ -326,7 +326,7 @@ function importData(data){ for(var j in data[i].imgs){ var img_block = $("
"); - var img = $(""); + var img = $(""); img.height(data[i].imgs[j].ht).width(data[i].imgs[j].wd); if((120 - data[i].imgs[j].ht) > 0) img.css("margin",(120 - data[i].imgs[j].ht)/2 + "px 0"); @@ -409,7 +409,7 @@ function importData(data){ for(j in data[i].imgs){ img_block = $("
"); - img = $(""); + img = $(""); img.height(data[i].imgs[j].ht).width(data[i].imgs[j].wd); if((120 - data[i].imgs[j].ht) > 0) img.css("margin",(120 - data[i].imgs[j].ht)/2 + "px 0"); @@ -509,19 +509,19 @@ function showExample(){ var img1 = $("
"); $("").appendTo(img1); - $("").appendTo(img1); + $("").appendTo(img1); var img2 = $("
"); $("").appendTo(img2); - $("").appendTo(img2); + $("").appendTo(img2); var img3 = $("
"); $("").appendTo(img3); - $("").appendTo(img3); + $("").appendTo(img3); var img4 = $("
"); $("").appendTo(img4); - $("").appendTo(img4); + $("").appendTo(img4); var img5 = $("
"); $("").appendTo(img5); - $("").appendTo(img5); + $("").appendTo(img5); tmp_array.push(img1, img2, img3, img4, img5); tmp_array = shuffle(tmp_array); diff --git a/resources/library/interactivities/associer_images.wgt/locales/ru/js/script.js b/resources/library/interactivities/associer_images.wgt/locales/ru/js/script.js index 54c5aa2e..68c299d6 100644 --- a/resources/library/interactivities/associer_images.wgt/locales/ru/js/script.js +++ b/resources/library/interactivities/associer_images.wgt/locales/ru/js/script.js @@ -254,7 +254,7 @@ function exportData(){ $(this).find(".img_block").each(function(){ var img_obj = new Object(); img_obj.value = $(this).find("input").val(); - img_obj.link = $(this).find("img").attr("src").replace("../../",""); + img_obj.link = $(this).find("img").attr("src"); img_obj.ht = $(this).find("img").height(); img_obj.wd = $(this).find("img").width(); cont_obj.imgs.push(img_obj); @@ -272,7 +272,7 @@ function exportData(){ var tmp_cont = $(this).find(".imgs_answers").find(".img_block"); var img_obj = new Object(); img_obj.value = tmp_cont.find("input").val(); - img_obj.link = tmp_cont.find("img").attr("src").replace("../../",""); + img_obj.link = tmp_cont.find("img").attr("src"); img_obj.ht = tmp_cont.find("img").height(); img_obj.wd = tmp_cont.find("img").width(); img_obj.cont = "answers"; @@ -281,7 +281,7 @@ function exportData(){ $(this).find(".imgs_cont .img_block").each(function(){ var img_obj = new Object(); img_obj.value = $(this).find("input").val(); - img_obj.link = $(this).find("img").attr("src").replace("../../",""); + img_obj.link = $(this).find("img").attr("src"); img_obj.ht = $(this).find("img").height(); img_obj.wd = $(this).find("img").width(); img_obj.cont = "cont"; @@ -326,7 +326,7 @@ function importData(data){ for(var j in data[i].imgs){ var img_block = $("
"); - var img = $(""); + var img = $(""); img.height(data[i].imgs[j].ht).width(data[i].imgs[j].wd); if((120 - data[i].imgs[j].ht) > 0) img.css("margin",(120 - data[i].imgs[j].ht)/2 + "px 0"); @@ -409,7 +409,7 @@ function importData(data){ for(j in data[i].imgs){ img_block = $("
"); - img = $(""); + img = $(""); img.height(data[i].imgs[j].ht).width(data[i].imgs[j].wd); if((120 - data[i].imgs[j].ht) > 0) img.css("margin",(120 - data[i].imgs[j].ht)/2 + "px 0"); @@ -509,19 +509,19 @@ function showExample(){ var img1 = $("
"); $("").appendTo(img1); - $("").appendTo(img1); + $("").appendTo(img1); var img2 = $("
"); $("").appendTo(img2); - $("").appendTo(img2); + $("").appendTo(img2); var img3 = $("
"); $("").appendTo(img3); - $("").appendTo(img3); + $("").appendTo(img3); var img4 = $("
"); $("").appendTo(img4); - $("").appendTo(img4); + $("").appendTo(img4); var img5 = $("
"); $("").appendTo(img5); - $("").appendTo(img5); + $("").appendTo(img5); tmp_array.push(img1, img2, img3, img4, img5); tmp_array = shuffle(tmp_array); diff --git a/resources/library/interactivities/associer_sounds.wgt/locales/fr/js/script.js b/resources/library/interactivities/associer_sounds.wgt/locales/fr/js/script.js index 895d1237..a8439904 100644 --- a/resources/library/interactivities/associer_sounds.wgt/locales/fr/js/script.js +++ b/resources/library/interactivities/associer_sounds.wgt/locales/fr/js/script.js @@ -299,13 +299,13 @@ function exportData(){ $(".cont").each(function(){ var cont_obj = new Object(); cont_obj.text = $(this).find(".audio_desc").text(); - cont_obj.audio = $(this).find("source").attr("src").replace("../../",""); + cont_obj.audio = $(this).find("source").attr("src"); cont_obj.mode = "edit"; cont_obj.imgs = []; $(this).find(".img_block").each(function(){ var img_obj = new Object(); img_obj.value = $(this).find("input").val(); - img_obj.link = $(this).find("img").attr("src").replace("../../",""); + img_obj.link = $(this).find("img").attr("src"); img_obj.ht = $(this).find("img").height(); img_obj.wd = $(this).find("img").width(); cont_obj.imgs.push(img_obj); @@ -316,14 +316,14 @@ function exportData(){ $(".cont").each(function(){ var cont_obj = new Object(); cont_obj.text = $(this).find(".audio_desc").text(); - cont_obj.audio = $(this).find("source").attr("src").replace("../../",""); + cont_obj.audio = $(this).find("source").attr("src"); cont_obj.mode = "display"; cont_obj.imgs = []; if($(this).find(".imgs_answers").children()[0].tagName == "DIV"){ var tmp_cont = $(this).find(".imgs_answers").find(".img_block"); var img_obj = new Object(); img_obj.value = tmp_cont.find("input").val(); - img_obj.link = tmp_cont.find("img").attr("src").replace("../../",""); + img_obj.link = tmp_cont.find("img").attr("src"); img_obj.ht = tmp_cont.find("img").height(); img_obj.wd = tmp_cont.find("img").width(); img_obj.cont = "answers"; @@ -332,7 +332,7 @@ function exportData(){ $(this).find(".imgs_cont .img_block").each(function(){ var img_obj = new Object(); img_obj.value = $(this).find("input").val(); - img_obj.link = $(this).find("img").attr("src").replace("../../",""); + img_obj.link = $(this).find("img").attr("src"); img_obj.ht = $(this).find("img").height(); img_obj.wd = $(this).find("img").width(); img_obj.cont = "cont"; @@ -361,7 +361,7 @@ function importData(data){ var audio_block = $("
").appendTo(text); $("
").appendTo(audio_block); $("
").appendTo(audio_block); - var source = $("").attr("src","../../" + data[i].audio); + var source = $("").attr("src",data[i].audio); var audio = $("