The link and a brief jokes from Ahmed Saad .. A stranger from Amr Adib on the air a peep
Singer Ahmed Saad entered precise into a link of snappy jokes, for the length of his meeting with the media Amr Adib on the “Al -Hakaya” program, within the presence of a amount of artists, along side composer Nader Hamdi.
Amr Adeeb, from the singer Ahmed Saad, called for a amount of rapid jokes, and he got right here with amusing avaires, to acknowledge to Ahmed Saad jokingly: “I’m a salvation, and I invalidate.”
The owner of rapid jokes and perhaps the most
Amr Adeeb commented: This meeting will very finest happen when we hear Ahmed Saad, even though the jokes will be fabricated from jokes, and it is that you just’ll want to perhaps well perhaps snarl that there could be a want, why did you live for the origin. ”
The singer Ahmed Saad concluded by announcing: “I’m your generation with your pocket, Abu Bakh, a want available within the market.”
operate replaceOembedWithHtml(element, sourceData) {
if (sourceData.provide.toLowerCase() === “youtube”) {
var html=”
‘;
replaceElementWithHtml(element, html);
} else if (sourceData.provide.toLowerCase() === “instagram”) {
var html=”
‘;
replaceElementWithHtml(element, html);
} else if (sourceData.provide.toLowerCase() === “twitter”) {
var html=”
‘;
replaceElementWithHtml(element, html);
} else if (sourceData.provide.toLowerCase() === “fb”) {
var html=”
‘
replaceElementWithHtml(element, html);
} else {
replaceElementWithHtml(element, “”);
}
}
operate extractLinkFromOembed(element) {
return getUrlSource(element.getAttribute(“url”));
}
operate getUrlSource(url) {
var ytRegex = /http(?:s?)://(?:www.)?youtu(?:be.com/look?v=|.be/)((w-_)*)(&(amp;)?(w?=)*)?/;
var instaRegex = /(https?://www.)?instagram.com(/p/(w+)/?)/;
var twitterRegex = /twitter.com/.*/set(?:es)?/((^/?)+)/;
var fbRegex = /^https?://www.fb.com.*/(video(s)?|look|anecdote|posts)(.php?|/).+$/;
if (ytRegex.take a look at(url)) {
return {
provide: “Youtube”,
url: url,
identification: ytRegex.exec(url)(1)
};
}
if (instaRegex.take a look at(url)) {
return {
provide: “Instagram”,
url: url,
identification: instaRegex.exec(url)(3)
};
}
if (twitterRegex.take a look at(url)) {
return {
provide: “Twitter”,
url: url,
identification: twitterRegex.exec(url)(1)
};
}
if (fbRegex.take a look at(url)) {
return {
provide: “Facebook”,
url: url,
identification: fbRegex.exec(url)(1)
};
}
return {
provide: “Unknown”,
url: url,
identification: “”
};
}
operate replaceElementWithHtml(element, html) {
var str = html;
var Obj = element; //any element to be fully modified
if (Obj.outerHTML) { //if outerHTML is supported
Obj.outerHTML = str; ///it is uncomplicated replace of total element with contents of str var
} else { //if outerHTML is no longer supported, there could be a uncommon but crossbrowsered trick
var tmpObj = document.createElement(“div”);
tmpObj.innerHTML = ‘‘;
ObjParent = Obj.parentNode; //Okey, element wants to be parented
ObjParent.replaceChild(tmpObj, Obj); //right here we placing our non everlasting data moderately than our target, so we are in a position to search out it then and replace it into no topic we are searching to replace to
ObjParent.innerHTML = ObjParent.innerHTML.replace(‘
‘, str);
}
}
operate loadfbApi() {
var js = document.createElement(‘script’);
js.src=”
document.body.appendChild(js);
}
operate runYoutubeLazyLoad() {
/// youtube lazyload
var youtube = document.querySelectorAll(“.youtube”);
for (var i = 0; i < youtube.dimension; i++) { var provide = "https://img.youtube.com/vi/" + youtube(i).dataset.embed + "http://192.168.2.55/0.jpg"; var image = fresh Image(); image.src = "https://www.elbalad.news/issues/elbalad/belongings/photography/no.jpg"; image.classList.add('lazyload'); image.setAttribute("data-src", provide); image.setAttribute("alt", "youtube"); image.addEventListener("load", operate () { youtube(i).appendChild(image); }(i)); youtube(i).addEventListener("click", operate () { var iframe = document.createElement("iframe"); iframe.setAttribute("frameborder", "0"); iframe.setAttribute("allowfullscreen", ""); iframe.setAttribute("src", "https://www.youtube.com/embed/" + this.dataset .embed + "?rel=0&showinfo=0&autoplay=1"); this.innerHTML = ""; this.appendChild(iframe); }); }; } (Tagstotranslate) Ahmed Saad (T) Amr Adeeb (T) The Sage (T) Speedily Jokes (T) Jokes (T) Tok Worth
Source link