Refactor: Supression des ${}
This commit is contained in:
parent
44a05a3035
commit
1a410ebb6d
|
|
@ -480,8 +480,10 @@ tarteaucitron.services.metrica = {
|
|||
}
|
||||
tarteaucitron.addScript('https://mc.yandex.ru/metrika/tag.js', '', function () {
|
||||
|
||||
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
|
||||
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
|
||||
(function (m, e, t, r, i, k, a) {
|
||||
m[i] = m[i] || function () { (m[i].a = m[i].a || []).push(arguments) };
|
||||
m[i].l = 1 * new Date(); k = e.createElement(t), a = e.getElementsByTagName(t)[0], k.async = 1, k.src = r, a.parentNode.insertBefore(k, a)
|
||||
})
|
||||
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
|
||||
|
||||
ym(tarteaucitron.user.yandexmetrica, "init", {
|
||||
|
|
@ -4374,8 +4376,6 @@ tarteaucitron.services.bandcamp = {
|
|||
}
|
||||
};
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
// Discord Widget
|
||||
tarteaucitron.services.discord = {
|
||||
"key": "discord",
|
||||
|
|
@ -4391,7 +4391,7 @@ tarteaucitron.services.discord = {
|
|||
width = x.getAttribute("width"),
|
||||
height = x.getAttribute("height")
|
||||
var widgetURL = "https://discord.com/widget?id=" + id;
|
||||
return "<iframe width=\""+ width + "\" height=\"" + height + "\"src=\"" + widgetURL + "\"></iframe>";
|
||||
return "<iframe width=\"" + width + "\" height=\"" + height + "\"src=\"https://discord.com/widget?id=" + widgetURL + "\"></iframe>";
|
||||
});
|
||||
},
|
||||
"fallback": function () {
|
||||
|
|
@ -4494,8 +4494,8 @@ tarteaucitron.services.acast = {
|
|||
width = x.getAttribute('width'),
|
||||
height = x.getAttribute('height'),
|
||||
seek = x.getAttribute('seek');
|
||||
var widgetURL = `https://embed.acast.com/${id}/${id2}?seek=${seek}`
|
||||
return `<iframe title="Embed Player" width="${width}" height="${height}" src="${widgetURL}" scrolling="no" frameBorder="0" style="border:none;overflow:hidden;"></iframe>`;
|
||||
var widgetURL = "https://embed.acast.com/" + id + "/" + id2 + "?seek=" + seek;
|
||||
return "<iframe title=\"Embed Player\" width=" + width + " height=" + height + " src=" + widgetURL + " scrolling=\"no\" frameBorder=\"0\" style=\"border: none; overflow: hidden;\"></iframe>";
|
||||
});
|
||||
},
|
||||
"fallback": function () {
|
||||
|
|
@ -4522,7 +4522,7 @@ tarteaucitron.services.mixcloud = {
|
|||
light = x.getAttribute('light'),
|
||||
width = x.getAttribute('width'),
|
||||
height = x.getAttribute('height');
|
||||
return `<iframe width="${width}" height="${height}" src="https://www.mixcloud.com/widget/iframe/?hide_cover=${hidecover}&mini=${mini}&light=${light}&feed=${id}" frameborder="0" ></iframe>`;
|
||||
return "<iframe width=\"" + width + " height=\"" + height + "\" src=\"https://www.mixcloud.com/widget/iframe/?hide_cover=" + hidecover + "&mini=" + mini + "&light=" + light + "&feed=" + id + "\" frameborder=\"0\" ></iframe>";
|
||||
});
|
||||
},
|
||||
"fallback": function () {
|
||||
|
|
@ -4546,7 +4546,7 @@ tarteaucitron.services.gagenda = {
|
|||
var calendar_data = x.getAttribute('data'),
|
||||
width = x.getAttribute('width'),
|
||||
height = x.getAttribute('height');
|
||||
return `<iframe loarding="lazy" width="${width}" height="${height}" src="https://www.google.com/calendar/embed?${calendar_data}" frameborder="0" scrolling="no" style="border-width:0"></iframe>`;
|
||||
return "<iframe loarding=\"lazy\" width=\"" + width + "\" height=\"" + height + "\" src=\"https://www.google.com/calendar/embed?" + calendar_data + "\" frameborder=\"0\" scrolling=\"no\" style=\"border-width:0\"></iframe>";
|
||||
});
|
||||
},
|
||||
"fallback": function () {
|
||||
|
|
@ -4570,7 +4570,7 @@ tarteaucitron.services.gdocs = {
|
|||
var id = x.getAttribute('id'),
|
||||
width = x.getAttribute('width'),
|
||||
height = x.getAttribute('height');
|
||||
return `<iframe width="${width}" height="${height}" src="https://docs.google.com/document/d/e/${id}/pub?embedded=true"></iframe>`;
|
||||
return "<iframe width=" + width +" height=" + height + " src=\"https://docs.google.com/document/d/e/" + id + "/pub?embedded=true\"></iframe>";
|
||||
});
|
||||
},
|
||||
"fallback": function () {
|
||||
|
|
@ -4595,7 +4595,7 @@ tarteaucitron.services.gsheets = {
|
|||
width = x.getAttribute('width'),
|
||||
height = x.getAttribute('height'),
|
||||
headers = x.getAttribute('headers');
|
||||
return `<iframe width="${width}" height="${height}" src="https://docs.google.com/spreadsheets/d/e/${id}/pubhtml?widget=true&headers=${headers}"></iframe>`;
|
||||
return "<iframe width=\"" + width + "\" height=\"" + height + "\" src=\"https://docs.google.com/spreadsheets/d/e/" + id + "/pubhtml?widget=true&headers=\"" + headers + "\"></iframe>";
|
||||
});
|
||||
},
|
||||
"fallback": function () {
|
||||
|
|
@ -4622,7 +4622,7 @@ tarteaucitron.services.gslides = {
|
|||
autostart = x.getAttribute('autostart'),
|
||||
loop = x.getAttribute('loop'),
|
||||
delay = x.getAttribute('delay');
|
||||
return `<iframe width="${width}" height="${height}" src="https://docs.google.com/presentation/d/e/${id}/embed?start=${autostart}&loop=${loop}&delayms=${delay}" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>`;
|
||||
return "<iframe width=" + width + " height=" + height + " src=\"https://docs.google.com/presentation/d/e/" + id + "/embed?start=\"" + autostart + "&loop=\"" + loop + "&delayms=\"" + delay + " frameborder=\"0\" allowfullscreen=\"true\" mozallowfullscreen=\"true\" webkitallowfullscreen=\"true\"></iframe>";
|
||||
});
|
||||
},
|
||||
"fallback": function () {
|
||||
|
|
@ -4646,14 +4646,15 @@ tarteaucitron.services.gforms = {
|
|||
var id = x.getAttribute('id'),
|
||||
width = x.getAttribute('width'),
|
||||
height = x.getAttribute('height');
|
||||
return `<iframe width="${width}" height="${height}" src="https://docs.google.com/forms/d/e/${id}/viewform?embedded=true" frameborder="0" marginheight="0" marginwidth="0"></iframe>`;
|
||||
return "<iframe width=" + width + " height=" + height + "src=\"https://docs.google.com/forms/d/e/" + id + "/viewform?embedded=true\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\"></iframe>";
|
||||
});
|
||||
},
|
||||
"fallback": function () {
|
||||
"use strict";
|
||||
var id = "gforms";
|
||||
tarteaucitron.fallback(['gforms_embed'], tarteaucitron.engage(id));
|
||||
=======
|
||||
}
|
||||
}
|
||||
// Marketo munchkin
|
||||
tarteaucitron.services.marketomunchkin = {
|
||||
"key": "marketomunchkin",
|
||||
|
|
@ -4685,6 +4686,5 @@ tarteaucitron.services.marketomunchkin = {
|
|||
};
|
||||
s.onload = initMunchkin;
|
||||
document.getElementsByTagName('head')[0].appendChild(s);
|
||||
>>>>>>> 28cff26d20b74e70f70fef9adf9d711baee845df
|
||||
}
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue